Skip to content

Commit 957eaed

Browse files
committed
Update domain names
1 parent d6a0cc3 commit 957eaed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+81
-84
lines changed

.storybook/manager-head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
<meta property="og:type" content="website">
1616
<meta property="og:title" content="react-dsfr components">
1717
<meta property="og:description" content="@codegouvfr/react-dsfr components playground and showcase">
18-
<meta property="og:image" content="https://react-dsfr-components.etalab.studio/repo-card.png">
18+
<meta property="og:image" content="https://components.react-dsfr.fr/repo-card.png">
1919

2020
<!-- Twitter Meta Tags -->
2121
<meta name="twitter:card" content="summary_large_image">
2222
<meta name="twitter:title" content="react-dsfr components">
2323
<meta name="twitter:description" content="@codegouvfr/react-dsfr components playground and showcase">
24-
<meta name="twitter:image" content="https://react-dsfr-components.etalab.studio/repo-card.png">
24+
<meta name="twitter:image" content="https://components.react-dsfr.fr/repo-card.png">
2525

2626
<style>
2727
.sidebar-item[data-nodetype="document"] svg {

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Would you help us implement [the components](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/accordeon)?
44
Thank you so much to anyone that would!
55

6-
To get you started you can check out [the `<Alert />` component](https://react-dsfr-components.etalab.studio/?path=/docs/components-alert--default).
6+
To get you started you can check out [the `<Alert />` component](https://components.react-dsfr.fr/?path=/docs/components-alert--default).
77

88
- Here is it's definition from the SIG: [systeme-de-design.gouv.fr/elements-d-interface/composants/alerte](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/alerte) (Pro tip: the real source of truth for DSFR component is [here](https://main--ds-gouv.netlify.app/example/component/))
99
- Here is its implementation [src/Alert.tsx](https://github.com/codegouvfr/react-dsfr/blob/main/src/Alert.tsx)
@@ -18,10 +18,10 @@ A few things:
1818
- 🙏🏻 Don't be afraid to push even if you aren't 100% happy with your code or [if it's still WIP](https://github.com/codegouvfr/react-dsfr/blob/1fdcf15cb085c67d37c31badf6ffa4725795ba0f/stories/Accordion.stories.tsx#L6).
1919
- 📣 Let everyone know what component you are working on by [oppening an issue](https://github.com/codegouvfr/react-dsfr/issues).
2020
- 📚 You can draw inspiration from [`dataesr/react-dsfr`](https://github.com/dataesr/react-dsfr/tree/master/src/components/interface) and the implementation of [france connect](https://github.com/france-connect/sources/tree/main/front/libs/dsfr).
21-
- 🔗 Use the component returned by `getLink()` instead of `<a />`. [Example in the `<Header />` component](https://github.com/codegouvfr/react-dsfr/blob/bbaf4a81d78de08d6fdcb059a9f4cb8a78ce4d5a/src/Header.tsx#L84-L87). We want to [play nice with all routing libraries](https://react-dsfr.etalab.studio/integration-with-routing-libraries).
22-
- 🕹️ When it's relevant, try to enable components to be used either in controlled or uncontrolled mode. [Example with <Tabs />](https://react-dsfr-components.etalab.studio/?path=/docs/components-tabs--default).
23-
- 🌎 Avoid hard coding text in JSX, use [the i18n mechanism](https://react-dsfr.etalab.studio/i18n) instead. [Here is an example](https://github.com/codegouvfr/react-dsfr/blob/bbaf4a81d78de08d6fdcb059a9f4cb8a78ce4d5a/src/DarkModeSwitch.tsx#L162-L199). (Don't worry about providing translations other than French.)
24-
- 🍳 If you have to arbitrate between ease of use and customisability I'd encourage you to favor ease of use. People that would need a greater level of customizability can always fall back to making their own wrapper from the reference documentation using [`fr.cx()`](https://react-dsfr.etalab.studio/cx).
21+
- 🔗 Use the component returned by `getLink()` instead of `<a />`. [Example in the `<Header />` component](https://github.com/codegouvfr/react-dsfr/blob/bbaf4a81d78de08d6fdcb059a9f4cb8a78ce4d5a/src/Header.tsx#L84-L87). We want to [play nice with all routing libraries](https://guides.react-dsfr.fr/integration-with-routing-libraries).
22+
- 🕹️ When it's relevant, try to enable components to be used either in controlled or uncontrolled mode. [Example with <Tabs />](https://components.react-dsfr.fr/?path=/docs/components-tabs--default).
23+
- 🌎 Avoid hard coding text in JSX, use [the i18n mechanism](https://guides.react-dsfr.fr/i18n) instead. [Here is an example](https://github.com/codegouvfr/react-dsfr/blob/bbaf4a81d78de08d6fdcb059a9f4cb8a78ce4d5a/src/DarkModeSwitch.tsx#L162-L199). (Don't worry about providing translations other than French.)
24+
- 🍳 If you have to arbitrate between ease of use and customisability I'd encourage you to favor ease of use. People that would need a greater level of customizability can always fall back to making their own wrapper from the reference documentation using [`fr.cx()`](https://guides.react-dsfr.fr/cx).
2525

2626
## PR Reviews
2727

README.fr.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</a>
2020
</p>
2121
<p align="center">
22-
<a href="https://react-dsfr-components.etalab.studio">Documentation des composants</a>
22+
<a href="https://components.react-dsfr.fr">Documentation des composants</a>
2323
-
24-
<a href="https://react-dsfr.etalab.studio/">guides</a>
24+
<a href="https://guides.react-dsfr.fr/">guides</a>
2525
-
2626
<a href="https://stackblitz.com/edit/nextjs-j2wba3?file=pages/index.tsx">essai immédiat</a>
2727
</p>
@@ -46,31 +46,31 @@ DSFR en pur JavaScript/CSS.
4646
- [x] exactement le même aspect et ressenti qu'avec [@gouvfr/dsfr](https://www.npmjs.com/package/@gouvfr/dsfr), il s'agit d'une couche de compatibilité et non pas d'une implémentation alternative.
4747
- [x] pas de [flash d'écran blanc lors du basculement automatique du thème clair vers le thème sombre](https://github.com/codegouvfr/@codegouvfr/react-dsfr/issues/2#issuecomment-1257263480).
4848
- [x] la plupart des composants peuvent être rendus directement sur le serveur (voir [RSC](https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html)). Les autres sont étiquetés `"use client";`.
49-
- [x] [Intégration clef en main pour les différents frameworks de développement: vite, Next.js, y compris la version beta de Next 13 (configuration AppDir) et Create React App](https://react-dsfr.etalab.studio/) si votre
49+
- [x] [Intégration clef en main pour les différents frameworks de développement: vite, Next.js, y compris la version beta de Next 13 (configuration AppDir) et Create React App](https://guides.react-dsfr.fr/) si votre
5050
framework n'est pas supporté, il suffit de demander notre **il manque un mot là** , nous avons pour but de couvrir tous les cas d'usage effectifs.
51-
- [x] (Presque) tout [les composants de référence](https://www.systeme-de-design.gouv.fr/elements-d-interface) sont [implémenté](https://react-dsfr-components.etalab.studio/).
51+
- [x] (Presque) tout [les composants de référence](https://www.systeme-de-design.gouv.fr/elements-d-interface) sont [implémenté](https://components.react-dsfr.fr/).
5252
- [x] seulement le code des composants que vous utilisez effectivement sera inclus dans votre projet final.
5353
- [x] Intégration facultative avec [MUI](https://mui.com/). Si vous utilisez des composants MUI ils seront automatiquement adaptés pour ressembler à des composants DSFR.
54-
Voir la [documentation](https://react-dsfr.etalab.studio/mui-integration).
54+
Voir la [documentation](https://guides.react-dsfr.fr/mui-integration).
5555
- [x] permet de développer à l'aide d'outil de CSS-in-JS comme [Styled component](https://styled-components.com/), [Emotion](https://emotion.sh/docs/introduction) ou [TSS](https://www.tss-react.dev/).
5656
- [x] prévoit un système de traduction pour les textes présents dans les composants (i18n).
57-
- [x] [s'intègre avec les librairies de routing](https://react-dsfr.etalab.studio/routing) comme [React Router](https://reactrouter.com/en/main), [TanStack Router](https://tanstack.com/router/v1) ou encore [Type route](https://type-route.zilch.dev/).
57+
- [x] [s'intègre avec les librairies de routing](https://guides.react-dsfr.fr/routing) comme [React Router](https://reactrouter.com/en/main), [TanStack Router](https://tanstack.com/router/v1) ou encore [Type route](https://type-route.zilch.dev/).
5858

5959
Ce travail est un produit de [CodeGouvFr](https://communs.numerique.gouv.fr/), la mission logiciel libre de [la direction interministérielle du numérique](https://www.numerique.gouv.fr/dinum/) (DINUM).
6060

6161
<p align="center">
62-
<a href="https://react-dsfr.etalab.studio/">🚀 Commencer maintenant 🚀 </a>
62+
<a href="https://guides.react-dsfr.fr/">🚀 Commencer maintenant 🚀 </a>
6363
</p>
6464

6565
## Migration depuis [`@dataesr/react-dsfr`](https://github.com/dataesr/react-dsfr)?
6666

6767
Si votre projet utilise [`@dataesr/react-dsfr`](https://github.com/dataesr/react-dsfr) et que vous n'êtes pas enclin a migrer ver `@codegouvfr/react-dsfr` vous pouvez tout de même profiter de plusieurs fonctionalités de ce dernier:
6868

69-
- Profitez de [l'auto complétion des classes en `fr-*`](https://react-dsfr.etalab.studio/class-names-type-safety).
70-
- Utilisez [le système de couleur strictement typer](https://react-dsfr.etalab.studio/css-in-js#colors).
69+
- Profitez de [l'auto complétion des classes en `fr-*`](https://guides.react-dsfr.fr/class-names-type-safety).
70+
- Utilisez [le système de couleur strictement typer](https://guides.react-dsfr.fr/css-in-js#colors).
7171
- Utilisez le thème MUI.
72-
- Utilisez [le système d'espacement](https://react-dsfr.etalab.studio/css-in-js#fr.spacing) et de
73-
[point de rupture](https://react-dsfr.etalab.studio/css-in-js#fr.breakpoints).
72+
- Utilisez [le système d'espacement](https://guides.react-dsfr.fr/css-in-js#fr.spacing) et de
73+
[point de rupture](https://guides.react-dsfr.fr/css-in-js#fr.breakpoints).
7474

7575
[Voici un bac à sable pour expérimenter](https://stackblitz.com/edit/react-ts-fph9bh?file=App.tsx).
7676

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
</a>
2020
</p>
2121
<p align="center">
22-
<a href="https://react-dsfr-components.etalab.studio">Components documentation</a>
22+
<a href="https://components.react-dsfr.fr">Components documentation</a>
2323
-
24-
<a href="https://react-dsfr.etalab.studio/">Guides</a>
24+
<a href="https://guides.react-dsfr.fr/">Guides</a>
2525
-
2626
<a href="https://stackblitz.com/edit/nextjs-j2wba3?file=pages/index.tsx">Playground</a>
2727
</p>
@@ -45,32 +45,32 @@ This module is an advanced toolkit that leverage [@gouvfr/dsfr](https://github.c
4545
- [x] Exactly the same look and feel than with [@gouvfr/dsfr](https://www.npmjs.com/package/@gouvfr/dsfr).
4646
- [x] No [white flash when reloading in SSR setup](https://github.com/codegouvfr/@codegouvfr/react-dsfr/issues/2#issuecomment-1257263480).
4747
- [x] Most components are server component ready. The others are labeled with `"use client";`
48-
- [x] [Perfect integration with all major React framework: Next.js (PagesDir and AppDir), Create React App, Vue](https://react-dsfr.etalab.studio/).
49-
- [x] (Almost) All [the components](https://www.systeme-de-design.gouv.fr/elements-d-interface) are [implemented](https://react-dsfr-components.etalab.studio/)
48+
- [x] [Perfect integration with all major React framework: Next.js (PagesDir and AppDir), Create React App, Vue](https://guides.react-dsfr.fr/).
49+
- [x] (Almost) All [the components](https://www.systeme-de-design.gouv.fr/elements-d-interface) are [implemented](https://components.react-dsfr.fr/)
5050
- [x] Three shakable distribution, cherry pick the components you import. (It's not all in a big .js bundle)
5151
- [x] Optional integration with [MUI](https://mui.com/). If you use MUI components they will
52-
be automatically adapted to look like [DSFR components](https://www.systeme-de-design.gouv.fr/elements-d-interface). See [documentation](https://react-dsfr.etalab.studio/mui-integration).
52+
be automatically adapted to look like [DSFR components](https://www.systeme-de-design.gouv.fr/elements-d-interface). See [documentation](https://guides.react-dsfr.fr/mui-integration).
5353
- [x] Enable CSS in JS by providing a `useColors()` hooks that exposes the correct colors options and decision
5454
for the currently enabled color scheme.
5555
- [x] Opt-in i18n, built in text can be displayed in multiple languages and user can provide extra translations.
56-
- [x] [Support routing libraries](https://react-dsfr.etalab.studio/routing) like react-router.
56+
- [x] [Support routing libraries](https://guides.react-dsfr.fr/routing) like react-router.
5757

5858
This module is a product of [Etalab's Free and open source software pole](https://communs.numerique.gouv.fr/a-propos/).
5959
I'm working full time on this project. You can expect rapid development.
6060

6161
<p align="center">
62-
<a href="https://react-dsfr.etalab.studio/">🚀 Get started 🚀 </a>
62+
<a href="https://guides.react-dsfr.fr/">🚀 Get started 🚀 </a>
6363
</p>
6464

6565
# Migrating from [`@dataesr/react-dsfr`](https://github.com/dataesr/react-dsfr)?
6666

6767
If your project is using [`@dataesr/react-dsfr`](https://github.com/dataesr/react-dsfr) and you're not willing to migrate to `@codegouvfr/react-dsfr` you can still benefit from some of this project features:
6868

69-
- The [`fr-*` classes autocompletion and type safety](https://react-dsfr.etalab.studio/class-names-type-safety).
70-
- Use [the type safe color system](https://react-dsfr.etalab.studio/css-in-js#colors).
69+
- The [`fr-*` classes autocompletion and type safety](https://guides.react-dsfr.fr/class-names-type-safety).
70+
- Use [the type safe color system](https://guides.react-dsfr.fr/css-in-js#colors).
7171
- Use the MUI theme.
72-
- The [the spacing system](https://react-dsfr.etalab.studio/css-in-js#fr.spacing) and
73-
[breakpoints util for building responsive UI](https://react-dsfr.etalab.studio/css-in-js#fr.breakpoints).
72+
- The [the spacing system](https://guides.react-dsfr.fr/css-in-js#fr.spacing) and
73+
[breakpoints util for building responsive UI](https://guides.react-dsfr.fr/css-in-js#fr.breakpoints).
7474

7575
[Here is a playground to demonstrate it](https://stackblitz.com/edit/react-ts-fph9bh?file=App.tsx).
7676

publiccode.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
publiccodeYmlVersion: '0.2'
66
name: '@codegouvfr/react-dsfr'
77
url: 'https://github.com/codegouvfr/react-dsfr'
8-
landingURL: 'https://react-dsfr-components.etalab.studio/'
8+
landingURL: 'https://components.react-dsfr.fr/'
99
releaseDate: '2022-10-05'
1010
developmentStatus: beta
1111
softwareVersion: 0.21.4
@@ -31,7 +31,7 @@ it:
3131
gdpr: true
3232
description:
3333
en:
34-
documentation: 'https://react-dsfr.etalab.studio/'
34+
documentation: 'https://guides.react-dsfr.fr/'
3535
shortDescription: French State Design System React integration
3636
longDescription: |
3737
This module is a wrapper/compatibility layer for
@@ -56,7 +56,7 @@ description:
5656
`"use client";`
5757
5858
- [Perfect integration with all major React framework: Next.js (PagesDir
59-
and AppDir), Create React App, Vue](https://react-dsfr.etalab.studio/).
59+
and AppDir), Create React App, Vue](https://guides.react-dsfr.fr/).
6060
6161
- All [the
6262
components](https://www.systeme-de-design.gouv.fr/elements-d-interface)
@@ -69,7 +69,7 @@ description:
6969
- Optional integration with [MUI](https://mui.com/). If you use MUI
7070
components they will be automatically adapted to look like [DSFR
7171
components](https://www.systeme-de-design.gouv.fr/elements-d-interface).
72-
See [documentation](https://react-dsfr.etalab.studio/mui-integration).
72+
See [documentation](https://guides.react-dsfr.fr/mui-integration).
7373
7474
- Enable CSS in JS by providing a `useTheme()` hooks that exposes the
7575
correct colors options and decision for the currently enabled color
@@ -78,7 +78,7 @@ description:
7878
- Opt-in i18n, built in text can be displayed in multiple languages and
7979
user can provide extra translations.
8080
81-
- [Support routing libraries](https://react-dsfr.etalab.studio/routing)
81+
- [Support routing libraries](https://guides.react-dsfr.fr/routing)
8282
like react-router.
8383
8484

src/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export namespace AccordionProps {
4646
};
4747
}
4848

49-
/** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-accordion> */
49+
/** @see <https://components.react-dsfr.fr/?path=/docs/components-accordion> */
5050
export const Accordion = memo(
5151
forwardRef<HTMLDivElement, AccordionProps>((props, ref) => {
5252
const {

src/AgentConnectButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export namespace AgentConnectButtonProps {
2525
};
2626
}
2727

28-
/** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-franceconnectbutton> */
28+
/** @see <https://components.react-dsfr.fr/?path=/docs/components-franceconnectbutton> */
2929
export const AgentConnectButton = memo(
3030
forwardRef<HTMLDivElement, AgentConnectButtonProps>((props, ref) => {
3131
const { className, url: href, style, onClick, ...rest } = props;

src/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export namespace AlertProps {
7474
export type Severity = ExtractSeverity<FrClassName>;
7575
}
7676

77-
/** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-alert> */
77+
/** @see <https://components.react-dsfr.fr/?path=/docs/components-alert> */
7878
export const Alert = memo(
7979
forwardRef<HTMLDivElement, AlertProps>((props, ref) => {
8080
const {

src/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type BadgeProps = {
1515
children: NonNullable<ReactNode>;
1616
};
1717

18-
/** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-badge> */
18+
/** @see <https://components.react-dsfr.fr/?path=/docs/components-badge> */
1919
export const Badge = memo(
2020
forwardRef<HTMLDivElement, BadgeProps>((props, ref) => {
2121
const {

src/Breadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type BreadcrumbProps = {
2020
style?: CSSProperties;
2121
};
2222

23-
/** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-breadcrumb> */
23+
/** @see <https://components.react-dsfr.fr/?path=/docs/components-breadcrumb> */
2424
export const Breadcrumb = memo(
2525
forwardRef<HTMLDivElement, BreadcrumbProps>((props, ref) => {
2626
const {

0 commit comments

Comments
 (0)