Commit Graph

87 Commits

Author SHA1 Message Date
renovate[bot]
91a7b2369f ⬆️(dependencies) update js dependencies 2024-03-11 16:29:45 +01:00
Nathan Vasse
c667d51a11 🔖(release) version packages
Bump @openfun/cunningham-tokens to 2.1.1
Bump @openfun/cunningham-react to 2.6.0
2024-03-04 15:50:15 +01:00
Nathan Vasse
4fbd75cdcf 🐛(tokens) fix invalid sass with comma
The generated sass from tokens containing commas, like font families was
not valid due to the way maps are made in sass. So we wrap those value
in quotes.
2024-02-28 17:19:32 +01:00
renovate[bot]
95a6d6dec7 ⬆️(dependencies) update js dependencies 2024-02-19 17:24:21 +01:00
Nathan Vasse
009714a89d ♻️(tokens) migrate to Commander 12.0.0
Commander changed the way they throw errors and our implementations was
causing issue with tests.
2024-02-12 11:37:18 +01:00
renovate[bot]
364a15596a ⬆️(dependencies) update js dependencies 2024-02-12 11:37:18 +01:00
renovate[bot]
a92ef3244b ⬆️(dependencies) update js dependencies 2024-01-29 16:34:31 +01:00
renovate[bot]
b870fbb760 ⬆️(dependencies) update js dependencies 2024-01-22 17:29:30 +01:00
renovate[bot]
894bf5c155 ⬆️(dependencies) update js dependencies 2024-01-18 17:47:47 +01:00
renovate[bot]
08b5f75b38 ⬆️(dependencies) update js dependencies 2024-01-08 16:34:43 +01:00
Nathan Vasse
3dd7b3ef8e 🔖(release) version packages
Bump @openfun/cunningham-react to 2.4.0
Bump @openfun/cunningham-tokens to 2.1.0
2023-12-12 11:39:32 +01:00
renovate[bot]
bdf17929ba ⬆️(dependencies) update js dependencies 2023-12-12 11:13:30 +01:00
Nathan Vasse
5e3deb2399 (tokens) add breakpoints tokens
We need those to be able to make components responsive.
2023-12-12 11:04:25 +01:00
Nathan Vasse
66e55e9647 ⬇️(deps) downgrade Typescript to 5.2.2
This new Typescript version introduced a crash when executing ts-node
in order to run cunningham.ts file. We need to wait for ts-node
to update their package too. Please see the related issue:
https://github.com/microsoft/TypeScript/issues/56492
2023-11-27 12:34:30 +01:00
renovate[bot]
516cb4e8cb ⬆️(dependencies) update js dependencies 2023-11-27 12:34:30 +01:00
Nathan Vasse
b2866c1d2b 📌(deps) pin node to version 18
We force node to version 18 otherwise renovate will keep updating it
to version 20.
2023-11-21 17:00:07 +01:00
renovate[bot]
35d0821287 ⬆️(dependencies) update js dependencies 2023-11-21 17:00:07 +01:00
renovate[bot]
611eebf0a4 ⬆️(dependencies) update js dependencies 2023-10-18 15:19:12 +02:00
Nathan Vasse
c8c8a04832 🔖(release) version packages
Bump @openfun/cunningham-tokens to 2.0.0
Bump @openfun/cunningham-react to 2.0.0
Bump cunningham-demo to 1.0.0
2023-10-06 15:23:47 +02:00
Nathan Vasse
cce8eccf5b (theme) add themes management
This is made in order to be able to handle natively multiple themes
for the future light/dark themes and also allow consumers to create
their own.
2023-10-04 15:18:00 +02:00
Nathan Vasse
f232ae1e44 🔨(tokens) add Figma to Cunningham script
This script converts Figma's Tokens Studio JSON exports to Cunningham
compatible format. This is just intended to be used by core devs.
2023-10-04 15:18:00 +02:00
renovate[bot]
6c3259a4ac ⬆️(dependencies) update js dependencies 2023-10-03 11:52:23 +02:00
renovate[bot]
f82aeee9ac ⬆️(dependencies) update js dependencies 2023-09-28 11:05:51 +02:00
renovate[bot]
be5559d9fe ⬆️(dependencies) update js dependencies 2023-09-12 15:28:58 +02:00
Nathan Vasse
5bf2bc7e6f 🔖(release) version packages
Bump @openfun/cunningham-react to 1.1.0
Bump @openfun/cunningham-tokens to 1.0.1
2023-09-11 16:43:27 +02:00
Nathan Vasse
6236729ae8 💄(tokens) titles QA feedbacks
QA-based updates to the title classes, the letter-spacing was not
taken into account previously.
2023-09-11 12:07:49 +02:00
jbpenrath
b6e5a876d3 🔖(tokens) major bump to v1.0.0
Major Changes

- The first bunch of components and features are ready,
  the first milestone has been reached
2023-08-21 17:58:14 +02:00
renovate[bot]
25b8f696ed ⬆️(dependencies) update js dependencies 2023-08-21 15:33:50 +02:00
Anthony Le Courric
6ea8544fed 🔨(project) add json, cjs and js extensions to prettier config
Prettier had some missing extensions in the config, this commit
added them, we then prettified the whole project. We
ignore the `cunningham-tokens` files.
2023-08-21 12:32:14 +02:00
Anthony Le Courric
b46aaa66ed 🚨(packages) fix eslint tsconfig root dir
Eslint extension highlighted some issues with the way we were
importing the tsconfig.json file in the .eslintrc.json file.
By changing the extension to .cjs, we are now able to set
tsconfigRootDir to the root of the package thanks to `dirname`.
It helps eslint to find the correct tsconfig.json file.
2023-08-21 12:32:14 +02:00
Anthony Le Courric
4f4f1682a6 🔧(packages) make scripts cross platform friendly
Some scripts had errors when running on windows.
We now use some cross platform cli tools to be
able to run the scripts on every platform.
2023-08-21 12:32:14 +02:00
jbpenrath
956e6f2367 💚(tokens) fix flaky test
Currently tokens test are flaky. It appears `cleanup` function can raise
 an Error. Locally, we use `runInBand` option to run our tests and all
 is working fine. The mess up could appear when test are running in
 parallel as cleanup can remove file used in other test at any moment.
2023-08-11 17:10:57 +02:00
jbpenrath
e3ee7ac065 🔖(tokens) fix release 0.7.1
Patch Changes
- 7de28bc: Fix bug on sass token generation
2023-08-11 09:16:26 +02:00
Romain Le Cellier
7de28bcf9b 🐛(tokens) fix generators
When customized tokens have multiple entries like theme and components,
each variable definition needs to end with a ;.
2023-08-10 15:30:32 +02:00
Nathan Vasse
26304791ae 🔖(release) version packages
Bump @openfun/cunningham-tokens to 0.7.0
2023-07-18 17:22:37 +02:00
Nathan Vasse
d85f9edac8 🚨(lint) update file for prettier 3.0.0
Prettier 3.0.0 comes with new standards so we need to upgrade our files
to comply with it.
2023-07-18 16:59:39 +02:00
renovate[bot]
5f63c2a606 ⬆️(dependencies) update js dependencies 2023-07-18 16:59:39 +02:00
Nathan Vasse
cfd0f7e9d8 ♻️(tokens) handle custom tokens in SassGenerator
Previously the generator was only handling hard-defined design tokens
preventing to make custom tokens to appear in the scss generated file.
This new way of generating the file handles custom tokens in a more
generic way.
2023-07-18 14:36:09 +02:00
Nathan Vasse
72ebd56568 📌(deps) downgrade prettier versions
For now there is a conflict with the new Prettier version, so for now
we just keep the previous version to check it later during the next
renovate pull request.
2023-07-12 15:47:35 +02:00
renovate[bot]
6ffb537cd0 ⬆️(dependencies) update js dependencies 2023-07-12 15:47:35 +02:00
Lebaud Antoine
2886f0c992 💄(react) add styling for range selection on a cell
Integrate new styling classes for grid-cells to facilitate range selection
in the DatePicker component. This implementation improves the visual
representation and user experience of selecting a range. In addition,
outside-month cells are now hidden, to avoid having a range selection
that contains outside-month cells.
2023-07-10 22:05:33 +02:00
Nathan Vasse
0378b3fa0c 🔖(release) version packages
Bump cunningham-demo to 0.1.0
Bump @openfun/cunningham-react to 0.9.0
Bump @openfun/cunningham-tokens to 0.6.0
2023-07-07 15:28:01 +02:00
Nathan Vasse
f36cc07f1b (tokens) add token references
Previously we were not fully using CSS variables as values used in
CSS were hard-coded one. It wasn't keeping the variable references.
This was causing issues when customizing the theme, because editing
colors was not enough, it was needed to customize also the tokens
using these variables. Now by introducing ref() we can delegate how
to deal with these directly to the generators themselves.
2023-07-07 15:06:18 +02:00
jbpenrath
6aca0a3d85 💚(ci) fix performance issue of test job
Currently the test job seems to hit the maximum CPU resource available.
In order to prevent that we try to run tests on several workers.
2023-07-04 17:08:11 +02:00
renovate[bot]
93bfaae502 ⬆️(dependencies) update js dependencies 2023-06-27 17:15:59 +02:00
Nathan Vasse
16463c6c83 🔖(release) version packages
Bump @openfun/cunningham-react to 0.8.2
Bump @openfun/cunningham-tokens to 0.5.0
2023-06-23 14:52:12 +02:00
Nathan Vasse
cfdac8dba9 💄(react) migrate to Roboto Flex
Previously we were using standard Roboto Font but we were struggling to
get the same boldness as the ones from the Figma sketches. It appears
that Figma uses Roboto Flex, so by installing it we can now nearly
perfectly align our visuals with the ones form the sketches. I had to
do some custom tweaks with the weights of the font because if we
use exactly the same font-weight as in Figma the render is still different.
2023-05-26 16:39:02 +02:00
renovate[bot]
1eda301637 ⬆️(dependencies) update js dependencies 2023-05-26 16:39:02 +02:00
renovate[bot]
ed2409e50c ⬆️(dependencies) update js dependencies 2023-05-15 11:04:06 +02:00
jbpenrath
c9f8540dfb 🔖(tokens) bump to 0.4.0
Minor Changes
- 7eac0bf: Suffix all sass maps with the `!default` map
- fb2fb3e: Do not generate sass sub maps
2023-05-05 11:18:39 +02:00