102 Commits

Author SHA1 Message Date
jbpenrath
db26e21b88 🧑‍💻(tokens) add getThemesFromGlobals utils
Export a new util method `getThemesFromGlobals` to easily generate theme with
its variant only by providing a partial globals object. By default it returns
both available theme variants (light & dark). Through options you can prefix
variant property keys, only generate theme with a subset of variant and also
overrides/extend theme.
2025-12-15 12:58:38 +01:00
jbpenrath
fe8eb4b802 ⬆️(react) update react peer deps
A high level CVE has been published about react. We enforce to use
a patched version of react 19.1
2025-12-15 12:58:38 +01:00
jbpenrath
a6681d19ed 📦(all) update packages namespace
Change packages namespace from `@openfun` to `@gouvfr-lasuite`.
2025-11-03 14:43:08 +01:00
jbpenrath
6097929593 🚚(global) update paths and urls after ownership transfer
This repository has been recently transfered from openfun to lasuitenumerique.
We need to fix some paths and urls especially to fix documentation and README
2025-11-03 14:43:08 +01:00
Nathan Vasse
a2aa9c2e14 🔖(release) version packages
Bump repo for new tokens architecture.
2025-09-23 17:13:00 +02:00
Nathan Vasse
587e782e61 🚨(demo) fix demo lint
Due to previous changes, let's fix the lint for this app.
2025-09-23 15:58:43 +02:00
Nathan Vasse
2e1f28f5ec ♻️(demo) update demo for new tokens
We need to update the demo to make it work with new tokens.
2025-09-23 15:58:43 +02:00
Nathan Panchout
f93a83655c (demo) update demo app
Update the demo app to make it work with new tokens.
2025-09-23 15:58:43 +02:00
Nathan Panchout
a420bcb1ab 🎨(demo) implement new tokens
implements the new token architecture
2025-09-23 15:58:43 +02:00
Nathan Panchout
9cc9214e9a 🎨(react) add UIKit theme support
Introduce new UIKit theme with light and dark variants, including
comprehensive color tokens for both themes. Update relevant components
and styles to accommodate the new theme architecture.
2025-09-23 15:58:43 +02:00
Nathan Panchout
bccdebd770 🎨(react) update theme tokens and structure
This commit introduces a comprehensive update to the theme tokens in the
Cunningham package. The previous color definitions have been replaced
with a new structure that includes global color tokens for branding and
contextual elements. Additionally, the SCSS and JS files have been
refactored to align with this new token architecture, enhancing
maintainability and ensuring a cohesive design system across the
application. The TypeScript configuration has also been updated to
support JSX syntax.
2025-09-23 15:58:43 +02:00
jbpenrath
b1850c029a 🚨(react) fix type and sass warning after deps upgrade
- Do not use deprecated `map-get` Sass method
- Fix type issue in `DatePicker`
2025-05-05 17:56:15 +02:00
renovate[bot]
cf6cf55bae ⬆️(dependencies) update js dependencies 2025-05-05 17:56:15 +02:00
renovate[bot]
186d163050 ⬆️(dependencies) update js dependencies 2025-03-31 11:31:24 +02:00
renovate[bot]
fee0ef4ea5 ⬆️(dependencies) update js dependencies 2025-03-18 10:44:16 +01:00
renovate[bot]
5718c0b8d1 ⬆️(dependencies) update js dependencies 2025-01-08 11:02:50 +01:00
renovate[bot]
a3eadc50db ⬆️(dependencies) update js dependencies 2024-08-20 13:51:29 +02:00
jbpenrath
06d32d9af6 ⬆️(global) upgrade node to 20.x
We are currently using version 18 of node but some packages now requires
 at least node 20.x. As this the LTS version, we upgrade your codebase
 to this version.
2024-07-29 14:46:52 +02:00
renovate[bot]
537dbc7fdd ⬆️(dependencies) update js dependencies 2024-07-29 14:46:52 +02:00
renovate[bot]
b5ed0e957f ⬆️(dependencies) update js dependencies 2024-07-08 11:05:02 +02:00
renovate[bot]
a15b2fdef4 ⬆️(dependencies) update js dependencies 2024-07-01 14:52:26 +02:00
renovate[bot]
2c16f01168 ⬆️(dependencies) update js dependencies 2024-06-24 17:08:48 +02:00
renovate[bot]
a97e0babae ⬆️(dependencies) update js dependencies 2024-06-17 07:25:11 +02:00
renovate[bot]
3ef2d8b0d0 ⬆️(dependencies) update js dependencies 2024-06-10 18:04:48 +02:00
renovate[bot]
69cc847b62 ⬆️(dependencies) update js dependencies 2024-06-03 11:10:24 +02:00
renovate[bot]
79df983d0c ⬆️(dependencies) update js dependencies 2024-05-27 12:36:44 +02:00
renovate[bot]
0e98dfa1b7 ⬆️(dependencies) update js dependencies 2024-05-21 15:00:12 +02:00
renovate[bot]
737c8f4b4d ⬆️(dependencies) update js dependencies 2024-04-29 15:38:22 +02:00
renovate[bot]
91a7b2369f ⬆️(dependencies) update js dependencies 2024-03-11 16:29:45 +01:00
Nathan Vasse
1707ad0b66 📱(demo) make demo responsive
The responsive version of the demo app was buggy, so we need to
make it shiny!

Fixes #275
2024-02-28 17:19:32 +01:00
Nathan Vasse
ea39ea09fd 🔖(release) version packages
Bump @openfun/cunningham-react to 2.5.0
Bump cunningham-demo to 2.0.0
2024-02-21 16:43:45 +01:00
Nathan Vasse
3ef7744083 ♻️(demo) refactor Onboarding modal display
Here is a shorter way to achieve the same result as before.
2024-02-21 14:54:52 +01:00
Nathan Vasse
e9956829d1 ♻️(demo) remove ready flag
This workaround was used as a workaround because default opened modals
were causing a crash. See #269
2024-02-20 17:21:32 +01:00
renovate[bot]
95a6d6dec7 ⬆️(dependencies) update js dependencies 2024-02-19 17:24:21 +01:00
Nathan Vasse
10c9abf1d2 (demo) add delete confirmation modal
We want to showcase pre built modals in the demo.
2024-02-19 16:48:39 +01:00
jbpenrath
1adff4a165 💄(demo) fix layout issue
The previous fix introduces a new layout issue. Let's fix that properly.
..
2024-02-15 18:04:48 +01:00
jbpenrath
ea74307b9b 💄(demo) fix asset path and layout issue
Asset paths were wrong so once built the application contained broken
links. Then fix a layout issue.
2024-02-15 17:23:40 +01:00
jbpenrath
ec4fbb082c 💄(demo) improve some default style
Improve typography responsive and customize card design tokens for the
dark theme
2024-02-15 17:05:06 +01:00
jbpenrath
d119b79c3f (demo) add a footer
Add a footer to display some useful links
2024-02-15 17:05:06 +01:00
jbpenrath
bacd9446b4 (demo) add onboarding modal
On first visit, display an onboarding modal to explain the purpose of
this demo.
2024-02-15 17:05:06 +01:00
jbpenrath
86138df8fe (demo) use modal to show create form
Now that we have a modal component, let's use it to display our creation
 form.
2024-02-15 17:05:06 +01:00
jbpenrath
7913075faf 🍱(demo) change favicon application
Change favicon and title
2024-02-15 17:05:06 +01:00
jbpenrath
ca56ab32c7 💄(demo) add blueney theme
Add a dark theme inspired by another famous streaming platform with blue
 tint.
2024-02-15 17:05:06 +01:00
jbpenrath
270357bc7e 💄(demo) add reflux theme
Add a dark theme inspired by a famous streaming platform
with red tint.
2024-02-15 17:05:06 +01:00
jbpenrath
cd476ae82b (demo) improve create form submit
Take in account more fields. Use a form instead a ref to retrieve values
 easily.
2024-02-15 17:05:06 +01:00
jbpenrath
7320671589 💬(demo) transform gender form into sex
To stick to civil information we rename gender field to sex.
2024-02-15 17:05:06 +01:00
jbpenrath
0ade12251e (demo) add theme selector
As we aims to create several themes for this demo app, we add a select
to easily switch between all existing themes.
2024-02-15 17:05:06 +01:00
Nathan Vasse
a044367d41 👷(ci) deploy demo app on gh-pages
We want to provide a public access to our demo app.
2024-02-15 14:44:17 +01:00
renovate[bot]
364a15596a ⬆️(dependencies) update js dependencies 2024-02-12 11:37:18 +01:00
Nathan Vasse
1445f4a222 (react) add Modal
Here it is! Our really wanted Modal component, based on Figma sketches.
2024-02-05 15:23:03 +01:00