🚚(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
This commit is contained in:
jbpenrath
2025-10-14 12:22:41 +02:00
committed by Jean-Baptiste PENRATH
parent 4220061bc0
commit 6097929593
14 changed files with 102 additions and 97 deletions

View File

@@ -3,7 +3,7 @@
Want to contribute to Cunningham? We got you covered. Want to contribute to Cunningham? We got you covered.
We try to raise our code quality standards and expect contributors to follow We try to raise our code quality standards and expect contributors to follow
the recommandations from our [handbook](https://handbook.openfun.fr/). the recommandations from our [handbook](https://suitenumerique.gitbook.io/handbook).
## Development ## Development
@@ -36,7 +36,7 @@ make build
When submitting please follow those steps: When submitting please follow those steps:
- Make sure you followed the commit conventions from the [handbook/git](https://handbook.openfun.fr/git). - Make sure you followed the commit conventions from the [handbook/git](https://suitenumerique.gitbook.io/handbook/git).
- Make sure that you added tests covering your changes. - Make sure that you added tests covering your changes.
- Run `make deploy` to tests, lint and build the project. - Run `make deploy` to tests, lint and build the project.
- Create a [changeset](#adding-a-changeset) by running `yarn changeset` at the root of the repo. In any case, a bot will verify if your PR contains a changeset. - Create a [changeset](#adding-a-changeset) by running `yarn changeset` at the root of the repo. In any case, a bot will verify if your PR contains a changeset.

View File

@@ -1,5 +1,5 @@
<div align="center"> <div align="center">
<a href="https://openfun.github.io/cunningham/storybook"><img src="./resources/banner.png" alt="" /></a> <a href="https://suitenumerique.github.io/cunningham/storybook"><img src="./resources/banner.png" alt="" /></a>
</div> </div>
<div align="center"> <div align="center">
@@ -8,21 +8,21 @@
**A design system and a components library.** **A design system and a components library.**
<a href="https://openfun.github.io/cunningham/storybook"><b>📚&nbsp;&nbsp;Documentation</b></a> • <a href="https://suitenumerique.github.io/cunningham/storybook"><b>📚&nbsp;&nbsp;Documentation</b></a> •
<a href="https://www.figma.com/file/JbPT1R6YUFW4oH8jHvH960/DS-Cunningham---PUBLIC?type=design"><b>🖌️&nbsp;&nbsp;Figma</b></a> • <a href="https://www.figma.com/file/JbPT1R6YUFW4oH8jHvH960/DS-Cunningham---PUBLIC?type=design"><b>🖌️&nbsp;&nbsp;Figma</b></a> •
<a href="https://openfun.github.io/cunningham/demo"><b>🕹️&nbsp;&nbsp;Demo</b></a> <a href="https://suitenumerique.github.io/cunningham/demo"><b>🕹️&nbsp;&nbsp;Demo</b></a>
</div> </div>
- **Atomic**: We follow [atomic design principles](https://bradfrost.com/blog/post/atomic-web-design/). - **Atomic**: We follow [atomic design principles](https://bradfrost.com/blog/post/atomic-web-design/).
- **Modular and Reusable**: Each component is designed to be self-contained and reusable across different projects, promoting consistency and saving development time. - **Modular and Reusable**: Each component is designed to be self-contained and reusable across different projects, promoting consistency and saving development time.
- **Accessibility-focused**: Our components prioritize accessibility standards, making them usable and inclusive for all users. - **Accessibility-focused**: Our components prioritize accessibility standards, making them usable and inclusive for all users.
- **Design tokens based**: We use [design tokens](https://openfun.github.io/cunningham/storybook/?path=/docs/getting-started-customization--docs#what-are-design-tokens-) to ensure consistency between design and code and allow high customization. - **Design tokens based**: We use [design tokens](https://suitenumerique.github.io/cunningham/storybook/?path=/docs/getting-started-customization--docs#what-are-design-tokens-) to ensure consistency between design and code and allow high customization.
- **React** based: at the moment we only support React, but we are open to other frameworks, feel free to [contribute](./CONTRIBUTING.md) ! - **React** based: at the moment we only support React, but we are open to other frameworks, feel free to [contribute](./CONTRIBUTING.md) !
<div align="center"> <div align="center">
[![CircleCI](https://circleci.com/gh/openfun/cunningham/tree/main.svg?style=svg)](https://circleci.com/gh/openfun/cunningham/tree/main) [![CircleCI](https://circleci.com/gh/suitenumerique/cunningham/tree/main.svg?style=svg)](https://circleci.com/gh/suitenumerique/cunningham/tree/main)
[![Discord](https://img.shields.io/discord/1082704478463082496?style=flat&logo=discord&label=discord&labelColor=5b61f1&logoColor=white&color=313338)](https://discord.gg/TXPSCMeDzd) [![Discord](https://img.shields.io/discord/1082704478463082496?style=flat&logo=discord&label=discord&labelColor=5b61f1&logoColor=white&color=313338)](https://discord.gg/TXPSCMeDzd)
</div> </div>
@@ -31,11 +31,11 @@
Here are some examples of real life usage of Cunningham components. Here are some examples of real life usage of Cunningham components.
<a href="https://openfun.github.io/cunningham/storybook"><img src="./resources/examples.png" alt=""/></a> <a href="https://suitenumerique.github.io/cunningham/storybook"><img src="./resources/examples.png" alt=""/></a>
<div align="center"> <div align="center">
See the [documentation](https://openfun.github.io/cunningham/storybook) 📚 to learn more about customization, typography, spacings and available components! See the [documentation](https://suitenumerique.github.io/cunningham/storybook) 📚 to learn more about customization, typography, spacings and available components!
</div> </div>
@@ -74,18 +74,18 @@ It will generate a file named `cunningham-tokens.css`.
@import "cunningham-tokens"; // Imports the file you just generated. @import "cunningham-tokens"; // Imports the file you just generated.
``` ```
> Please take a look at [customization documentation](https://openfun.github.io/cunningham/storybook/?path=/docs/getting-started-customization--docs) for more informations about the `cunningham` command line tool and to customize your local theme. > Please take a look at [customization documentation](https://suitenumerique.github.io/cunningham/storybook/?path=/docs/getting-started-customization--docs) for more informations about the `cunningham` command line tool and to customize your local theme.
We're done! 🎉 We're done! 🎉
To ensure everything works well, let's test rendering a component, such as the [Button](https://openfun.github.io/cunningham/storybook/?path=/docs/components-button--docs) for example. To ensure everything works well, let's test rendering a component, such as the [Button](https://suitenumerique.github.io/cunningham/storybook/?path=/docs/components-button--docs) for example.
Now please see the [documentation](https://openfun.github.io/cunningham/storybook) 📚 to learn more about customization, typography, spacings and available components! Now please see the [documentation](https://suitenumerique.github.io/cunningham/storybook) 📚 to learn more about customization, typography, spacings and available components!
## Contributors ## Contributors
<a href="https://github.com/openfun/cunningham/graphs/contributors"> <a href="https://github.com/suitenumerique/cunningham/graphs/contributors">
<img src="https://contrib.rocks/image?repo=openfun/cunningham" /> <img src="https://contrib.rocks/image?repo=suitenumerique/cunningham" />
</a> </a>
## Contributing ## Contributing

View File

@@ -36,10 +36,10 @@
- 2a5acea: The CSS utility classes are no longer automatically included when using Cunningham bin. - 2a5acea: The CSS utility classes are no longer automatically included when using Cunningham bin.
[unreleased]: https://github.com/openfun/cunningham/compare/cunningham-demo@3.0.0...main [unreleased]: https://github.com/suitenumerique/cunningham/compare/cunningham-demo@3.0.0...main
[3.0.0]: https://github.com/openfun/cunningham/compare/cunningham-demo@2.0.0...cunningham-demo@3.0.0 [3.0.0]: https://github.com/suitenumerique/cunningham/compare/cunningham-demo@2.0.0...cunningham-demo@3.0.0
[2.0.0]: https://github.com/openfun/cunningham/compare/cunningham-demo@1.0.1...cunningham-demo@2.0.0 [2.0.0]: https://github.com/suitenumerique/cunningham/compare/cunningham-demo@1.0.1...cunningham-demo@2.0.0
[1.0.1]: https://github.com/openfun/cunningham/compare/cunningham-demo@1.0.0...cunningham-demo@1.0.1 [1.0.1]: https://github.com/suitenumerique/cunningham/compare/cunningham-demo@1.0.0...cunningham-demo@1.0.1
[1.0.0]: https://github.com/openfun/cunningham/compare/cunningham-demo@0.1.0...cunningham-demo@1.0.0 [1.0.0]: https://github.com/suitenumerique/cunningham/compare/cunningham-demo@0.1.0...cunningham-demo@1.0.0
[0.1.0]: https://github.com/openfun/cunningham/compare/cunningham-demo@0.0.1...cunningham-demo@0.1.0 [0.1.0]: https://github.com/suitenumerique/cunningham/compare/cunningham-demo@0.0.1...cunningham-demo@0.1.0
[0.0.1]: https://github.com/openfun/cunningham/compare/0b532742e7f9747c5d573b869daa8aca0d79e7f1...cunningham-demo@0.0.1 [0.0.1]: https://github.com/suitenumerique/cunningham/compare/0b532742e7f9747c5d573b869daa8aca0d79e7f1...cunningham-demo@0.0.1

View File

@@ -197,7 +197,7 @@ export const Home = ({ modal }: { modal: PageProps }) => {
color="neutral" color="neutral"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
href="https://github.com/openfun/cunningham" href="https://github.com/suitenumerique/cunningham"
> >
Github Github
</Button> </Button>
@@ -209,7 +209,7 @@ export const Home = ({ modal }: { modal: PageProps }) => {
color="neutral" color="neutral"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
href="https://openfun.github.io/cunningham/storybook" href="https://suitenumerique.github.io/cunningham/storybook"
> >
Documentation Documentation
</Button> </Button>

View File

@@ -29,7 +29,7 @@ const Onboarding = () => {
Let&apos;s go! Let&apos;s go!
</Button> </Button>
<Button <Button
href="https://openfun.github.io/cunningham/storybook" href="https://suitenumerique.github.io/cunningham/storybook"
color="brand" color="brand"
variant="tertiary" variant="tertiary"
size="small" size="small"
@@ -50,7 +50,7 @@ const Onboarding = () => {
<p> <p>
👀 Through this demo, you will be able to discover{" "} 👀 Through this demo, you will be able to discover{" "}
<strong>a bunch of Cunningham components</strong>. Take a look at the{" "} <strong>a bunch of Cunningham components</strong>. Take a look at the{" "}
<a href="https://openfun.github.io/cunningham/storybook"> <a href="https://suitenumerique.github.io/cunningham/storybook">
documentation documentation
</a>{" "} </a>{" "}
to see how to use them. to see how to use them.

View File

@@ -6,7 +6,7 @@ const buildTheme = (
type: "default" | "dark" = "default" type: "default" | "dark" = "default"
) => { ) => {
return { return {
brandUrl: "https://github.com/openfun/cunningham", brandUrl: "https://github.com/suitenumerique/cunningham",
brandImage: "logo-cunningham.svg", brandImage: "logo-cunningham.svg",
brandTitle: "Cunningham", brandTitle: "Cunningham",
brandTarget: "_self", brandTarget: "_self",

View File

@@ -481,49 +481,49 @@
- 4ebbf16: Add package - 4ebbf16: Add package
- 4ebbf16: Add component's tokens handling - 4ebbf16: Add component's tokens handling
[unreleased]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@4.0.0...main [unreleased]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@4.0.0...main
[4.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@3.2.3...@openfun/cunningham-react@4.0.0 [4.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@3.2.3...@openfun/cunningham-react@4.0.0
[3.2.3]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@3.2.2...@openfun/cunningham-react@3.2.3 [3.2.3]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@3.2.2...@openfun/cunningham-react@3.2.3
[3.2.2]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@3.2.1...@openfun/cunningham-react@3.2.2 [3.2.2]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@3.2.1...@openfun/cunningham-react@3.2.2
[3.2.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@3.2.0...@openfun/cunningham-react@3.2.1 [3.2.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@3.2.0...@openfun/cunningham-react@3.2.1
[3.2.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@3.1.0...@openfun/cunningham-react@3.2.0 [3.2.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@3.1.0...@openfun/cunningham-react@3.2.0
[3.1.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@3.0.0...@openfun/cunningham-react@3.1.0 [3.1.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@3.0.0...@openfun/cunningham-react@3.1.0
[3.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.9.3...@openfun/cunningham-react@3.0.0 [3.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.9.3...@openfun/cunningham-react@3.0.0
[2.9.3]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.9.2...@openfun/cunningham-react@2.9.3 [2.9.3]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.9.2...@openfun/cunningham-react@2.9.3
[2.9.2]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.9.1...@openfun/cunningham-react@2.9.2 [2.9.2]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.9.1...@openfun/cunningham-react@2.9.2
[2.9.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.9.0...@openfun/cunningham-react@2.9.1 [2.9.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.9.0...@openfun/cunningham-react@2.9.1
[2.9.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.8.0...@openfun/cunningham-react@2.9.0 [2.9.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.8.0...@openfun/cunningham-react@2.9.0
[2.8.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.7.0...@openfun/cunningham-react@2.8.0 [2.8.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.7.0...@openfun/cunningham-react@2.8.0
[2.7.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.6.0...@openfun/cunningham-react@2.7.0 [2.7.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.6.0...@openfun/cunningham-react@2.7.0
[2.6.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.5.0...@openfun/cunningham-react@2.6.0 [2.6.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.5.0...@openfun/cunningham-react@2.6.0
[2.5.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.4.0...@openfun/cunningham-react@2.5.0 [2.5.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.4.0...@openfun/cunningham-react@2.5.0
[2.4.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.3.0...@openfun/cunningham-react@2.4.0 [2.4.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.3.0...@openfun/cunningham-react@2.4.0
[2.3.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.2.0...@openfun/cunningham-react@2.3.0 [2.3.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.2.0...@openfun/cunningham-react@2.3.0
[2.2.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.1.0...@openfun/cunningham-react@2.2.0 [2.2.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.1.0...@openfun/cunningham-react@2.2.0
[2.1.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@2.0.0...@openfun/cunningham-react@2.1.0 [2.1.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@2.0.0...@openfun/cunningham-react@2.1.0
[2.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.3.1...@openfun/cunningham-react@2.0.0 [2.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.3.1...@openfun/cunningham-react@2.0.0
[1.3.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.3.0...@openfun/cunningham-react@1.3.1 [1.3.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.3.0...@openfun/cunningham-react@1.3.1
[1.3.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.2.0...@openfun/cunningham-react@1.3.0 [1.3.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.2.0...@openfun/cunningham-react@1.3.0
[1.2.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.1.0...@openfun/cunningham-react@1.2.0 [1.2.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.1.0...@openfun/cunningham-react@1.2.0
[1.1.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.0.2...@openfun/cunningham-react@1.1.0 [1.1.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.0.2...@openfun/cunningham-react@1.1.0
[1.0.2]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.0.1...@openfun/cunningham-react@1.0.2 [1.0.2]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.0.1...@openfun/cunningham-react@1.0.2
[1.0.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@1.0.0...@openfun/cunningham-react@1.0.1 [1.0.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@1.0.0...@openfun/cunningham-react@1.0.1
[1.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.11.1...@openfun/cunningham-react@1.0.0 [1.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.11.1...@openfun/cunningham-react@1.0.0
[0.11.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.11.0...@openfun/cunningham-react@0.11.1 [0.11.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.11.0...@openfun/cunningham-react@0.11.1
[0.11.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.10.0...@openfun/cunningham-react@0.11.0 [0.11.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.10.0...@openfun/cunningham-react@0.11.0
[0.10.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.9.0...@openfun/cunningham-react@0.10.0 [0.10.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.9.0...@openfun/cunningham-react@0.10.0
[0.9.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.8.2...@openfun/cunningham-react@0.9.0 [0.9.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.8.2...@openfun/cunningham-react@0.9.0
[0.8.2]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.8.1...@openfun/cunningham-react@0.8.2 [0.8.2]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.8.1...@openfun/cunningham-react@0.8.2
[0.8.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.8.0...@openfun/cunningham-react@0.8.1 [0.8.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.8.0...@openfun/cunningham-react@0.8.1
[0.8.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.7.0...@openfun/cunningham-react@0.8.0 [0.8.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.7.0...@openfun/cunningham-react@0.8.0
[0.7.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.6.2...@openfun/cunningham-react@0.7.0 [0.7.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.6.2...@openfun/cunningham-react@0.7.0
[0.6.2]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.6.1...@openfun/cunningham-react@0.6.2 [0.6.2]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.6.1...@openfun/cunningham-react@0.6.2
[0.6.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.6.0...@openfun/cunningham-react@0.6.1 [0.6.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.6.0...@openfun/cunningham-react@0.6.1
[0.6.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.5.0...@openfun/cunningham-react@0.6.0 [0.6.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.5.0...@openfun/cunningham-react@0.6.0
[0.5.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.4.0...@openfun/cunningham-react@0.5.0 [0.5.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.4.0...@openfun/cunningham-react@0.5.0
[0.4.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.3.0...@openfun/cunningham-react@0.4.0 [0.4.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.3.0...@openfun/cunningham-react@0.4.0
[0.3.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.2.0...@openfun/cunningham-react@0.3.0 [0.3.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.2.0...@openfun/cunningham-react@0.3.0
[0.2.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.1.1...@openfun/cunningham-react@0.2.0 [0.2.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.1.1...@openfun/cunningham-react@0.2.0
[0.1.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.1.0...@openfun/cunningham-react@0.1.1 [0.1.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.1.0...@openfun/cunningham-react@0.1.1
[0.1.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-react@0.0.0...@openfun/cunningham-react@0.1.0 [0.1.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-react@0.0.0...@openfun/cunningham-react@0.1.0
[0.0.0]: https://github.com/openfun/cunningham/compare/0b532742e7f9747c5d573b869daa8aca0d79e7f1...@openfun/cunningham-react@0.0.0 [0.0.0]: https://github.com/suitenumerique/cunningham/compare/0b532742e7f9747c5d573b869daa8aca0d79e7f1...@openfun/cunningham-react@0.0.0

View File

@@ -138,7 +138,7 @@ describe("<Checkbox/>", () => {
}); });
/** /**
* From this issue: https://github.com/openfun/cunningham/issues/175 * From this issue: https://github.com/suitenumerique/cunningham/issues/175
* The bug was that when clicking on the checkmark (svg) it was firing two onClick event to * The bug was that when clicking on the checkmark (svg) it was firing two onClick event to
* <section>. * <section>.
*/ */

View File

@@ -53,6 +53,10 @@ const SportsBase = ({ values }: SportProps) => {
methods.reset(values); methods.reset(values);
}, [values]); }, [values]);
useEffect(() => {
methods.setFocus("competition");
}, [methods.setFocus]);
return ( return (
<FormProvider {...methods}> <FormProvider {...methods}>
<form <form
@@ -116,6 +120,7 @@ const SportsBase = ({ values }: SportProps) => {
</div> </div>
<RhfSelect <RhfSelect
{...methods.register("competition")}
name="competition" name="competition"
label="Competition" label="Competition"
options={[ options={[

View File

@@ -68,7 +68,7 @@ module.exports = {
};`}></Source> };`}></Source>
In this configuration file you can overwrite all the default values of the design system. In this configuration file you can overwrite all the default values of the design system.
**You can find the default values [here](https://github.com/openfun/cunningham/blob/main/packages/tokens/src/bin/cunningham.ts).** **You can find the default values [here](https://github.com/suitenumerique/cunningham/blob/main/packages/tokens/src/bin/cunningham.ts).**
### Build ### Build
@@ -129,7 +129,7 @@ yarn build-theme
Build your app again, and you should see the changes applied! 💄 Build your app again, and you should see the changes applied! 💄
If you find out that the current design tokens are not enough for the customization you want to do, feel free to [open an issue](https://github.com/openfun/cunningham/issues/new) or to [contribute to the project](https://github.com/openfun/cunningham/blob/main/CONTRIBUTING.md) 🙏 If you find out that the current design tokens are not enough for the customization you want to do, feel free to [open an issue](https://github.com/suitenumerique/cunningham/issues/new) or to [contribute to the project](https://github.com/suitenumerique/cunningham/blob/main/CONTRIBUTING.md) 🙏
## Use default design tokens ## Use default design tokens

View File

@@ -6,7 +6,7 @@ import { Meta, Source } from '@storybook/addon-docs';
Now that you have completed the [Installation](?path=/docs/getting-started-installation--docs) it's time to render our first component! Now that you have completed the [Installation](?path=/docs/getting-started-installation--docs) it's time to render our first component!
> You can find a fully working example [here](https://github.com/openfun/cunningham/blob/main/apps/demo/src/App.tsx) in the demo app. > You can find a fully working example [here](https://github.com/suitenumerique/cunningham/blob/main/apps/demo/src/App.tsx) in the demo app.
Let's create an `App` component that will render a `Button`. Let's create an `App` component that will render a `Button`.

View File

@@ -30,7 +30,7 @@ Then, add this script to your `package.json` file
`} `}
/> />
> Please take a look at [tokens documentation](https://github.com/openfun/cunningham/tree/main/packages/tokens#configuration-file) for more informations about the `cunningham` command line tool and to customize your local theme. > Please take a look at [tokens documentation](https://github.com/suitenumerique/cunningham/tree/main/packages/tokens#configuration-file) for more informations about the `cunningham` command line tool and to customize your local theme.
Then, in order to generate the css file, run Then, in order to generate the css file, run
@@ -62,7 +62,7 @@ Then, add these lines at the top of your main stylesheet file:
> If you are not using dart sass, you can use `@import`, please visit the [documentation](https://sass-lang.com/documentation/at-rules/import/). > If you are not using dart sass, you can use `@import`, please visit the [documentation](https://sass-lang.com/documentation/at-rules/import/).
> Please see [here](https://github.com/openfun/cunningham/tree/main/packages/tokens#use-the-design-tokens) to see how to use the design tokens in your source code. > Please see [here](https://github.com/suitenumerique/cunningham/tree/main/packages/tokens#use-the-design-tokens) to see how to use the design tokens in your source code.
We're done! 🎉 We're done! 🎉

View File

@@ -40,7 +40,7 @@ export const MyApp = () => {
`}></Source> `}></Source>
> You can find a fully working example [here](https://github.com/openfun/cunningham/blob/main/apps/demo/src/App.tsx) in the demo app. > You can find a fully working example [here](https://github.com/suitenumerique/cunningham/blob/main/apps/demo/src/App.tsx) in the demo app.
## What about CSS variables ? ## What about CSS variables ?

View File

@@ -106,21 +106,21 @@
- 4ebbf16: Add utility classes - 4ebbf16: Add utility classes
- 4ebbf16: Add official design tokens - 4ebbf16: Add official design tokens
[unreleased]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@3.0.0...main [unreleased]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@3.0.0...main
[3.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@2.2.0...@openfun/cunningham-tokens@3.0.0 [3.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@2.2.0...@openfun/cunningham-tokens@3.0.0
[2.2.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@2.1.1...@openfun/cunningham-tokens@2.2.0 [2.2.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@2.1.1...@openfun/cunningham-tokens@2.2.0
[2.1.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@2.1.0...@openfun/cunningham-tokens@2.1.1 [2.1.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@2.1.0...@openfun/cunningham-tokens@2.1.1
[2.1.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@2.0.0...@openfun/cunningham-tokens@2.1.0 [2.1.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@2.0.0...@openfun/cunningham-tokens@2.1.0
[2.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@1.0.1...@openfun/cunningham-tokens@2.0.0 [2.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@1.0.1...@openfun/cunningham-tokens@2.0.0
[1.0.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@1.0.0...@openfun/cunningham-tokens@1.0.1 [1.0.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@1.0.0...@openfun/cunningham-tokens@1.0.1
[1.0.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.7.1...@openfun/cunningham-tokens@1.0.0 [1.0.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.7.1...@openfun/cunningham-tokens@1.0.0
[0.7.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.7.0...@openfun/cunningham-tokens@0.7.1 [0.7.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.7.0...@openfun/cunningham-tokens@0.7.1
[0.7.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.6.0...@openfun/cunningham-tokens@0.7.0 [0.7.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.6.0...@openfun/cunningham-tokens@0.7.0
[0.6.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.5.0...@openfun/cunningham-tokens@0.6.0 [0.6.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.5.0...@openfun/cunningham-tokens@0.6.0
[0.5.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.4.0...@openfun/cunningham-tokens@0.5.0 [0.5.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.4.0...@openfun/cunningham-tokens@0.5.0
[0.4.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.3.0...@openfun/cunningham-tokens@0.4.0 [0.4.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.3.0...@openfun/cunningham-tokens@0.4.0
[0.3.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.2.0...@openfun/cunningham-tokens@0.3.0 [0.3.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.2.0...@openfun/cunningham-tokens@0.3.0
[0.2.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.1.1...@openfun/cunningham-tokens@0.2.0 [0.2.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.1.1...@openfun/cunningham-tokens@0.2.0
[0.1.1]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.1.0...@openfun/cunningham-tokens@0.1.1 [0.1.1]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.1.0...@openfun/cunningham-tokens@0.1.1
[0.1.0]: https://github.com/openfun/cunningham/compare/@openfun/cunningham-tokens@0.0.0...@openfun/cunningham-tokens@0.1.0 [0.1.0]: https://github.com/suitenumerique/cunningham/compare/@openfun/cunningham-tokens@0.0.0...@openfun/cunningham-tokens@0.1.0
[0.0.0]: https://github.com/openfun/cunningham/compare/0b532742e7f9747c5d573b869daa8aca0d79e7f1...@openfun/cunningham-tokens@0.0.0 [0.0.0]: https://github.com/suitenumerique/cunningham/compare/0b532742e7f9747c5d573b869daa8aca0d79e7f1...@openfun/cunningham-tokens@0.0.0