🚚(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:
committed by
Jean-Baptiste PENRATH
parent
4220061bc0
commit
6097929593
@@ -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
|
||||
* <section>.
|
||||
*/
|
||||
|
||||
@@ -53,6 +53,10 @@ const SportsBase = ({ values }: SportProps) => {
|
||||
methods.reset(values);
|
||||
}, [values]);
|
||||
|
||||
useEffect(() => {
|
||||
methods.setFocus("competition");
|
||||
}, [methods.setFocus]);
|
||||
|
||||
return (
|
||||
<FormProvider {...methods}>
|
||||
<form
|
||||
@@ -116,6 +120,7 @@ const SportsBase = ({ values }: SportProps) => {
|
||||
</div>
|
||||
|
||||
<RhfSelect
|
||||
{...methods.register("competition")}
|
||||
name="competition"
|
||||
label="Competition"
|
||||
options={[
|
||||
|
||||
@@ -68,7 +68,7 @@ module.exports = {
|
||||
};`}></Source>
|
||||
|
||||
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
|
||||
|
||||
@@ -129,7 +129,7 @@ yarn build-theme
|
||||
|
||||
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
|
||||
|
||||
|
||||
@@ -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!
|
||||
|
||||
> 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`.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/).
|
||||
|
||||
> 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! 🎉
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ export const MyApp = () => {
|
||||
|
||||
`}></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 ?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user