Commit Graph

33 Commits

Author SHA1 Message Date
Nathan Vasse
2ff5fc5d29 (react) add Select component
Finally our powerful Select component is available to make great forms!
2023-05-12 11:13:38 +02:00
Nathan Vasse
3545af85ae 📦️(react) pure ESM package
Previously we had some configuration in package.json that were falsely
indicating that the react package was supporting CJS, which wasn't the
case. So this commit makes it clear that the package is pure ESM.
2023-05-11 17:58:13 +02:00
jbpenrath
56227d206a 🔖(react) bump to 0.5.0
Minor Changes
- 7513b4d: fix type files imports and rollup them
- b53afcb: Add DataList component
2023-05-05 11:18:39 +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
Romain Le Cellier
b53afcb4af (react) add DataList
Implement DataList that is a wrapper of DataGrid without header, sorting
nor pagination.
2023-05-05 10:54:50 +02:00
Nathan Vasse
7513b4d217 🔧(react) rollup type files
Previously types file were splitted into their original folder
tree structure. By enabling this option we could just get one
global .d.ts file. To make this more handy I created a dedicated
build bash file, the package.json was starting to get messy.
2023-05-04 16:53:29 +02:00
jbpenrath
7eac0bfca1 (tokens) make sass maps overridable
We suffix all sass maps with `!default` flag. In this way, if a consumer
 needs to override cunningham tokens, it will be able to.
2023-05-03 15:56:40 +02:00
jbpenrath
fb2fb3e107 🔥(tokens) remove colors sub maps
Create color sub maps seems to be a good idea but in fact was not. In
fact if with need to create token sub map this structure should appear
within the tokens module.
2023-05-03 15:56:40 +02:00
Nathan Vasse
a9625eb1c2 🔖(release) version packages
Bump @openfun/cunningham-react to 0.4.0
Bump @openfun/cunningham-tokens to 0.3.0
2023-04-28 16:06:23 +02:00
Romain Le Cellier
b9d2f2955f 🐛(tokens) fix scss generator
scss maps expect keys between quotes like:
$map = (
  'key': value,
)
2023-04-28 09:44:54 +02:00
Nathan Vasse
f5cb2e791e (react) add Radio component
Implement Radio input based on designed sketches.
2023-04-27 15:34:15 +02:00
Nathan Vasse
43096e2bab (react) add Checkbox component
Implement Checkbox input based on designed sketches.
2023-04-27 15:34:15 +02:00
Nathan Vasse
a462bb5a61 (react) add compact mode to Field
The Field component was only able to display for large fields like
text input, but for small component like Checkbox or Radio we need
to set specific generic padding that are suitable to those.
2023-04-27 15:34:15 +02:00
Nathan Vasse
26be159c91 ♻️(react) make Pagination to use new Input
The Pagination component was not using the label of new Input.
2023-04-25 11:28:32 +02:00
Nathan Vasse
feea284ec8 (react) add Input component
Finally the first form component of the design system. It wraps and enhance
the native input element.
2023-04-25 11:28:32 +02:00
Nathan Vasse
4f1168463f (react) add generic Field component
This component will wrap most of form components in order to provide
them a generic state attribute along with texts below them.
2023-04-25 11:28:32 +02:00
jbpenrath
f0a1dd2f5b 🔖(release) version packages
Bump @openfun/cunningham-react to 0.3.0
Bump @openfun/cunningham-tokens to 0.2.0
2023-04-21 11:48:23 +02:00
jbpenrath
1be02f5a85 💄(react) remove button box shadow effect
On hover and active, buttons have a box shadow effect that is too heavy
visually so we remove this effect for now.
2023-04-21 11:33:46 +02:00
jbpenrath
1667d9b501 (tokens) add scss generator
Add a Sass generator which generate a scss file declaring colors, font
families, weights, sizes and spacings as maps.
2023-04-18 14:59:16 +02:00
jbpenrath
72091eecbc 🩹(tokens) add blank line at end of token files
Cunningham CLI did not add a blank line at the end of generated
token files.
2023-04-18 14:59:16 +02:00
jbpenrath
cf325719d5 🩹(tokens) fix typo within cunningham.ts file
The fontSizes.h3 contained an extra ";" chars.
2023-04-18 14:59:16 +02:00
jbpenrath
b79c23da30 💫(tokens) change transitions timing functions
Increase duration by 50ms then switch to ease cubic timing function in
order to get smoother but enough speed transitions.
2023-04-12 17:21:19 +02:00
jbpenrath
e90563aee2 (react) add missing dependencies to run storybook
Since last dependencies storybook, it appears there are missing babel
dependencies to be able to run storybook properly. So we install
missings deps in order to fix that.
2023-04-12 17:21:19 +02:00
Nathan Vasse
b0c6b88141 🔖(release) version packages
Bump @openfun/cunningham-react to 0.2.0
2023-03-30 14:20:38 +02:00
Nathan Vasse
6661c47fc4 🔖(changeset) adding missing changesets
I forgot to add changeset when merging the PR#20, so I add a
dedicated commit to keep an history before bumping versions.
2023-03-30 14:20:38 +02:00
Nathan Vasse
8ad95945a8 🔖(release) version packages
Bump cunningham-demo to 0.0.1
Bump @openfun/cunningham-react to 0.1.1
Bump @openfun/cunningham-tokens to 0.1.1
2023-02-21 18:32:04 +01:00
Nathan Vasse
2a5acea4a4 (tokens) css utility classes are now optionnal
Previously, when using the cunningham bin to build tokens, the CSS
file always included utility classes, resulting in duplicated CSS
utility classes on the consumer side if no specific CSS optimizer
is defined ( its local cunningham-tokens.css + the one from the
react package ). Now, this new feature introduces a param named
--utility-classes that must be provided to generate those classes.
This params is henceforth only provided to the bin inside the tokens
package.
2023-02-21 09:29:24 +01:00
Nathan Vasse
cd88e46537 ♻️(react) split fonts in a seperate CSS file
Fonts were de-facto included in the bundled dist/style.css file which
wasn't convenient in situations were consumers wanted to import fonts
by themselves.
2023-02-21 09:29:24 +01:00
ALC Consulting
479e0777b6 🐛(tokens) fix windows generate tokens
The tokens generation was failing on windows because
of the path separator.
This commit fixes this issue.
2023-02-20 11:29:36 +01:00
Nathan Vasse
722b66b3ae (react) add button with icon only
Previously using Button with only an icon made it render with an
internal offset, that wasn't really nice-looking. Now we force the
button to be squared.
2023-02-15 16:00:14 +01:00
Nathan Vasse
89138e0a5a 🔖(release) version packages
Bump @openfun/cunningham-tokens to 0.1.0
Bump @openfun/cunningham-react to 0.1.0
2023-01-31 16:19:10 +01:00
Nathan Vasse
4ebbf168e2 🔊(changelog) migrate existing changelog entries to changeset
The entries were dispatched in matching packages, but some of them that
were about the overall monorepo's architecture (like "setup circleci"
were delete thrown away because they were not matching any specific
package.
2023-01-30 17:47:34 +01:00
Nathan Vasse
e2204a1234 👷(ci) add changeset to handle package releases and changelog
We needed a tool to automate the handling of monorepo's changelogs and
packages publishing. We want to make the CI responsible to automatically
publish bumped packages and create associated tags.
2023-01-30 17:47:34 +01:00