diff --git a/README.md b/README.md index 80758e5..cb11957 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ See the [documentation](https://suitenumerique.github.io/cunningham/storybook) ➡️ First, install the library ``` -yarn add @openfun/cunningham-react +yarn add @gouvfr-lasuite/cunningham-react ``` ➡️ Then, add this script to your `package.json` file @@ -68,9 +68,9 @@ It will generate a file named `cunningham-tokens.css`. ➡️ Then, add these lines at the top of your main stylesheet file: ``` -@import "@openfun/cunningham-react/fonts"; // Imports default fonts ( Roboto ). You can also import fonts by yourself. -@import "@openfun/cunningham-react/icons"; // Imports icons ( Material Icons ). -@import "@openfun/cunningham-react/style"; // Imports the default theme. +@import "@gouvfr-lasuite/cunningham-react/fonts"; // Imports default fonts ( Roboto ). You can also import fonts by yourself. +@import "@gouvfr-lasuite/cunningham-react/icons"; // Imports icons ( Material Icons ). +@import "@gouvfr-lasuite/cunningham-react/style"; // Imports the default theme. @import "cunningham-tokens"; // Imports the file you just generated. ``` diff --git a/apps/demo/cunningham.ts b/apps/demo/cunningham.ts index a7f3935..f087962 100644 --- a/apps/demo/cunningham.ts +++ b/apps/demo/cunningham.ts @@ -1,4 +1,4 @@ -import { defaultThemes } from "@openfun/cunningham-tokens"; +import { defaultThemes } from "@gouvfr-lasuite/cunningham-tokens"; const defaultConfig = { themes: { diff --git a/apps/demo/package.json b/apps/demo/package.json index 4e98d8b..10dfbf2 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -13,9 +13,9 @@ }, "dependencies": { "@faker-js/faker": "9.7.0", - "@openfun/cunningham-react": "*", - "@openfun/cunningham-tokens": "*", - "@openfun/typescript-configs": "*", + "@gouvfr-lasuite/cunningham-react": "*", + "@gouvfr-lasuite/cunningham-tokens": "*", + "@gouvfr-lasuite/typescript-configs": "*", "@types/react": "19.1.2", "@types/react-dom": "19.1.3", "@vitejs/plugin-react": "4.4.1", diff --git a/apps/demo/src/App.tsx b/apps/demo/src/App.tsx index b901cf2..4bbe9c9 100644 --- a/apps/demo/src/App.tsx +++ b/apps/demo/src/App.tsx @@ -3,7 +3,7 @@ import { CunninghamProvider, Select, useModal, -} from "@openfun/cunningham-react"; +} from "@gouvfr-lasuite/cunningham-react"; import React, { useEffect, useMemo, useState } from "react"; import { Create } from "./Create"; import { Home } from "./Home"; diff --git a/apps/demo/src/Create.tsx b/apps/demo/src/Create.tsx index 5648b16..04d4a07 100644 --- a/apps/demo/src/Create.tsx +++ b/apps/demo/src/Create.tsx @@ -16,7 +16,7 @@ import { TextArea, useToastProvider, VariantType, -} from "@openfun/cunningham-react"; +} from "@gouvfr-lasuite/cunningham-react"; import { faker } from "@faker-js/faker"; import { PageProps } from "./App"; import { Character, database, randomDates } from "./Character"; diff --git a/apps/demo/src/Home.tsx b/apps/demo/src/Home.tsx index 772cbd6..7a59259 100644 --- a/apps/demo/src/Home.tsx +++ b/apps/demo/src/Home.tsx @@ -7,7 +7,7 @@ import { useToastProvider, VariantType, useModals, -} from "@openfun/cunningham-react"; +} from "@gouvfr-lasuite/cunningham-react"; import { PageProps } from "./App"; import { database } from "./Character"; diff --git a/apps/demo/src/Onboarding.tsx b/apps/demo/src/Onboarding.tsx index cb394f8..2a363e0 100644 --- a/apps/demo/src/Onboarding.tsx +++ b/apps/demo/src/Onboarding.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Button, Modal, ModalSize, useModal } from "@openfun/cunningham-react"; +import { Button, Modal, ModalSize, useModal } from "@gouvfr-lasuite/cunningham-react"; const Onboarding = () => { const modal = useModal({ diff --git a/apps/demo/src/index.scss b/apps/demo/src/index.scss index 99bec71..b1965b5 100644 --- a/apps/demo/src/index.scss +++ b/apps/demo/src/index.scss @@ -1,7 +1,7 @@ @use "sass:map"; -@use "@openfun/cunningham-react/sass/fonts"; -@use "@openfun/cunningham-react/sass/icons"; -@use "@openfun/cunningham-react/style"; +@use "@gouvfr-lasuite/cunningham-react/sass/fonts"; +@use "@gouvfr-lasuite/cunningham-react/sass/icons"; +@use "@gouvfr-lasuite/cunningham-react/style"; @use "cunningham-tokens"; @use "cunningham-tokens-sass" as *; diff --git a/apps/demo/tsconfig.json b/apps/demo/tsconfig.json index 8db580b..8cc58b1 100644 --- a/apps/demo/tsconfig.json +++ b/apps/demo/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@openfun/typescript-configs/react.json", + "extends": "@gouvfr-lasuite/typescript-configs/react.json", "compilerOptions": { "noEmit": true }, diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 1098a4c..183d47e 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,4 +1,4 @@ -# @openfun/cunningham-react +# @gouvfr-lasuite/cunningham-react ## 4.0.0 diff --git a/packages/react/cunningham.ts b/packages/react/cunningham.ts index d858382..1d28bd4 100644 --- a/packages/react/cunningham.ts +++ b/packages/react/cunningham.ts @@ -1,5 +1,5 @@ import { dirname, sep } from "path"; -import { defaultTokenRefs } from "@openfun/cunningham-tokens"; +import { defaultTokenRefs } from "@gouvfr-lasuite/cunningham-tokens"; import { globSync } from "glob"; /** diff --git a/packages/react/package.json b/packages/react/package.json index 1064155..879dee8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,5 +1,5 @@ { - "name": "@openfun/cunningham-react", + "name": "@gouvfr-lasuite/cunningham-react", "private": false, "version": "4.0.0", "publishConfig": { @@ -49,7 +49,7 @@ "@fontsource-variable/roboto-flex": "5.2.5", "@fontsource/material-icons-outlined": "5.2.5", "@internationalized/date": "3.8.0", - "@openfun/cunningham-tokens": "*", + "@gouvfr-lasuite/cunningham-tokens": "*", "@react-aria/calendar": "3.8.0", "@react-aria/datepicker": "3.14.2", "@react-aria/i18n": "3.12.8", @@ -76,8 +76,8 @@ "@chromatic-com/storybook": "3.2.6", "@faker-js/faker": "9.7.0", "@hookform/resolvers": "5.0.1", - "@openfun/cunningham-tokens": "*", - "@openfun/typescript-configs": "*", + "@gouvfr-lasuite/cunningham-tokens": "*", + "@gouvfr-lasuite/typescript-configs": "*", "@storybook/addon-a11y": "8.6.12", "@storybook/addon-actions": "8.6.12", "@storybook/addon-essentials": "8.6.12", diff --git a/packages/react/src/components/Alert/index.mdx b/packages/react/src/components/Alert/index.mdx index e1f55b8..1f0011b 100644 --- a/packages/react/src/components/Alert/index.mdx +++ b/packages/react/src/components/Alert/index.mdx @@ -14,7 +14,7 @@ Cunningham provides a versatile Alert component for displaying any kind of infor language='ts' dark format={false} - code={`import { Alert } from "@openfun/cunningham-react";`} + code={`import { Alert } from "@gouvfr-lasuite/cunningham-react";`} /> ## Types diff --git a/packages/react/src/components/Alert/tokens.ts b/packages/react/src/components/Alert/tokens.ts index e9e0fb2..09e7380 100644 --- a/packages/react/src/components/Alert/tokens.ts +++ b/packages/react/src/components/Alert/tokens.ts @@ -1,4 +1,4 @@ -import { DefaultTokens } from "@openfun/cunningham-tokens"; +import { DefaultTokens } from "@gouvfr-lasuite/cunningham-tokens"; export const tokens = (defaults: DefaultTokens) => { return { diff --git a/packages/react/src/components/Button/index.mdx b/packages/react/src/components/Button/index.mdx index c24d6c7..dbaa7a9 100644 --- a/packages/react/src/components/Button/index.mdx +++ b/packages/react/src/components/Button/index.mdx @@ -14,7 +14,7 @@ The Cunningham Button behaves the same as the native html `