@etic-insa/ui 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 etic-insa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,138 @@
1
- # Temporary Holding Version
1
+ # @etic-insa/ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Bibliothèque de composants React des applications ETIC (ETIC Members, ETIC Docs…), construite
4
+ sur [shadcn/ui](https://ui.shadcn.com) (style Nova, couleur de base Neutral) et
5
+ [Base UI](https://base-ui.com), avec Tailwind CSS 4, les icônes lucide et la police Geist.
6
+
7
+ ## Utiliser la bibliothèque dans une application
8
+
9
+ ```sh
10
+ npm i @etic-insa/ui
11
+ ```
12
+
13
+ Prérequis : React 19 et Tailwind CSS 4 (`tailwindcss` et `@tailwindcss/vite`).
14
+
15
+ ```css
16
+ /* CSS principal de l'application */
17
+ @import "tailwindcss";
18
+ @import "@etic-insa/ui/styles.css";
19
+ /* Tailwind doit lire les classes des composants ; chemin relatif à ce fichier */
20
+ @source "../node_modules/@etic-insa/ui/dist";
21
+
22
+ /* Couleur d'accent de l'application : les quatre variables, en clair ET en sombre. */
23
+ :root {
24
+ --primary: #2f5fdb;
25
+ --primary-foreground: #ffffff;
26
+ --primary-text: #2f5fdb;
27
+ --ring: #2f5fdb;
28
+ }
29
+ .dark {
30
+ --primary: #6d92f2;
31
+ --primary-foreground: #0e1116;
32
+ --primary-text: #6d92f2;
33
+ --ring: #6d92f2;
34
+ }
35
+ ```
36
+
37
+ ### Thème et couleur d'accent
38
+
39
+ La bibliothèque fournit tout le thème (neutres, rayons, police, couleurs `destructive`, `success`
40
+ et `warning`, clair et sombre) sauf la couleur d'accent. Chaque application remplit, après
41
+ l'import de `styles.css`, en `:root` et en `.dark`, quatre variables :
42
+
43
+ | Variable | Rôle | Exigence |
44
+ | ---------------------- | ------------------------------------ | -------------------------------- |
45
+ | `--primary` | aplats : bouton principal, sélection | — |
46
+ | `--primary-foreground` | texte posé sur `--primary` | ≥ 4,5:1 sur `--primary` |
47
+ | `--primary-text` | l'accent employé comme texte ou lien | ≥ 4,5:1 sur le fond et `--muted` |
48
+ | `--ring` | anneau de focus | ≥ 3:1 sur le fond et `--muted` |
49
+
50
+ Un accent clair (orange, jaune, vert pâle) ne supporte ni texte blanc ni rôle de texte : il prend
51
+ un `--primary-foreground` foncé et un `--primary-text` plus sombre que lui.
52
+
53
+ Les couleurs appartiennent à chaque application : la bibliothèque n'en livre aucune et ne
54
+ connaît pas les applications. [`atelier/accents.css`](atelier/accents.css) contient seulement
55
+ des exemples, aux couleurs des applications ETIC, pour voir les composants avec un vrai accent
56
+ dans l'atelier ; `npm test` vérifie que ces exemples tiennent les exigences ci-dessus. Il n'est
57
+ pas publié et n'est pas la référence d'une application.
58
+
59
+ Dans les classes, l'accent comme texte s'écrit `text-primary-text`, jamais `text-primary`. Les
60
+ composants shadcn d'origine (`src/components/ui/`) emploient parfois `text-primary` (variante
61
+ `link` du bouton) : leurs enveloppes ETIC devront le corriger. **Limite actuelle** : le `Button`
62
+ exporté est encore celui de shadcn ; avec un accent clair (Docs, Intervenant, Browser), sa
63
+ variante `link` est illisible en thème clair. Ne pas l'employer avant son enveloppe.
64
+
65
+ Le thème sombre s'active par la classe `dark` sur `<html>`.
66
+
67
+ ```tsx
68
+ import { Button } from "@etic-insa/ui"
69
+
70
+ export function Export() {
71
+ return (
72
+ <Button variant="outline" className="w-full">
73
+ Exporter
74
+ </Button>
75
+ )
76
+ }
77
+ ```
78
+
79
+ ### Développer contre les sources locales
80
+
81
+ Pour voir une modification de la bibliothèque instantanément dans une application, sans publier,
82
+ avec le dépôt `etic-packages` cloné sur le même poste :
83
+
84
+ ```ts
85
+ // vite.config.ts de l'application : en développement seulement
86
+ // (chemin vers packages/ui/src, ici pour une application à côté d'etic-packages)
87
+ const UI_SRC = path.resolve(__dirname, "../etic-packages/packages/ui/src")
88
+
89
+ export default defineConfig(({ command }) => ({
90
+ resolve:
91
+ command === "serve"
92
+ ? {
93
+ alias: {
94
+ "@etic-insa/ui": UI_SRC,
95
+ // les composants s'importent entre eux par « @etic-ui/… »
96
+ "@etic-ui": UI_SRC,
97
+ },
98
+ // une seule copie de React, même si etic-packages a ses propres node_modules
99
+ dedupe: ["react", "react-dom"],
100
+ }
101
+ : {},
102
+ }))
103
+ ```
104
+
105
+ Côté CSS, ajouter un `@source` vers ce même dossier `src` et importer son `styles.css` au lieu
106
+ de celui du paquet.
107
+
108
+ ## Développer la bibliothèque
109
+
110
+ Node : la version de `.nvmrc` (`nvm use`). Dépôt monorepo : `npm install` à la racine
111
+ d'`etic-packages` installe tous les paquets.
112
+
113
+ ```sh
114
+ # depuis packages/ui
115
+ npm run dev # atelier : tous les composants, touche « d » pour le thème sombre
116
+ npm test # vitest
117
+ npm run typecheck
118
+ npm run lint
119
+ npm run build # dist/ : un module par composant, types, styles.css
120
+ # depuis la racine : les mêmes scripts pour tous les paquets, plus npm run format:check
121
+ ```
122
+
123
+ ### Organisation
124
+
125
+ - `src/components/ui/` : composants shadcn **intacts**, tels que le CLI les installe
126
+ (`npx shadcn add <composant>`). On n'y modifie rien, pour que
127
+ `npx shadcn add <composant> --diff` puis `--overwrite` suivent shadcn sans rien perdre.
128
+ - `src/components/etic/` : composants ETIC qui importent ceux de `ui/` et ajoutent
129
+ comportement, composition ou variantes.
130
+ - `src/index.ts` : tout ce qu'une application peut importer. Un composant non exporté ici
131
+ n'existe pas pour les applications.
132
+ - `src/styles.css` : thème commun (clair et sombre). Au build, `scripts/build-css.mjs` y recopie
133
+ `shadcn/tailwind.css`, pour que les applications n'aient pas à installer le CLI shadcn.
134
+ - `atelier/` : la page de démonstration servie par `npm run dev`. Elle n'est pas publiée.
135
+
136
+ ### Règle absolue
137
+
138
+ Le paquet et ce dépôt sont publics : aucun secret, URL interne, nom de client ni code métier.
@@ -0,0 +1,8 @@
1
+ import { Button as ButtonPrimitive } from '@base-ui/react/button';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, ...props }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
8
+ export { Button, buttonVariants };
@@ -0,0 +1,45 @@
1
+ import { cn as e } from "cn";
2
+ import { Button as t } from "@base-ui/react/button";
3
+ import { cva as n } from "class-variance-authority";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ // src/components/ui/button.tsx
6
+ var i = n("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
7
+ variants: {
8
+ variant: {
9
+ default: "bg-primary text-primary-foreground hover:bg-primary/80",
10
+ outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
11
+ secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
12
+ ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
13
+ destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
14
+ link: "text-primary underline-offset-4 hover:underline"
15
+ },
16
+ size: {
17
+ default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
18
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
19
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
20
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
21
+ icon: "size-8",
22
+ "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
23
+ "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
24
+ "icon-lg": "size-9"
25
+ }
26
+ },
27
+ defaultVariants: {
28
+ variant: "default",
29
+ size: "default"
30
+ }
31
+ });
32
+ function a({ className: n, variant: a = "default", size: o = "default", ...s }) {
33
+ return /* @__PURE__ */ r(t, {
34
+ "data-slot": "button",
35
+ className: e(i({
36
+ variant: a,
37
+ size: o,
38
+ className: n
39
+ })),
40
+ ...s
41
+ });
42
+ }
43
+ export { a as Button, i as buttonVariants };
44
+
45
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","names":["Button","ButtonPrimitive","buttonVariants","cva","Button$1","props","Button","cn"],"sources":["../../../src/components/ui/button.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"cn\"\n\nconst buttonVariants = cva(\n \"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n outline:\n \"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n ghost:\n \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n destructive:\n \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default:\n \"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n xs: \"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5\",\n lg: \"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n icon: \"size-8\",\n \"icon-xs\":\n \"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\":\n \"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg\",\n \"icon-lg\": \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n ...props\n}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n"],"mappings":";;;;;AAIA,IAAME,IAAiBC,EACrB,8lBACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACF,WACE;GACF,OACE;GACF,aACE;GACF,MAAM;EACR;EACA,MAAM;GACJ,SACE;GACF,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,MAAM;GACN,WACE;GACF,WACE;GACF,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAEA,SAASH,EAAO,EACd,cACA,aAAU,WACV,UAAO,WACP,GAAGK,KAC2D;CAC9D,OACE,kBAACJ,GAAD;EACE,aAAU;EACV,WAAWM,EAAGL,EAAe;GAAE;GAAS;GAAM;EAAU,CAAC,CAAC;EAC1D,GAAIG;CACL,CAAA;AAEL"}
@@ -0,0 +1,2 @@
1
+ export { cn } from './lib/utils';
2
+ export { Button, buttonVariants } from './components/ui/button';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { cn as e } from "./lib/utils.js";
2
+ import { Button as t, buttonVariants as n } from "./components/ui/button.js";
3
+ export { t as Button, n as buttonVariants, e as cn };
@@ -0,0 +1 @@
1
+ export { cn } from 'cn';
@@ -0,0 +1 @@
1
+ export { cn } from "cn";
@@ -0,0 +1,802 @@
1
+ /*
2
+ * Thème et styles communs de @etic-insa/ui. L'application l'importe après Tailwind :
3
+ * @import "tailwindcss";
4
+ * @import "@etic-insa/ui/styles.css";
5
+ * et déclare un @source vers les composants de la bibliothèque.
6
+ * Au build, scripts/build-css.mjs remplace l'import de shadcn/tailwind.css par
7
+ * son contenu : le CLI shadcn reste une dépendance de développement.
8
+ *
9
+ * La bibliothèque fournit tout le thème sauf la couleur d'accent. Chaque
10
+ * application remplit, après cet import, en clair (:root) et en sombre (.dark),
11
+ * le contrat de quatre variables :
12
+ * --primary aplats : bouton principal, sélection
13
+ * --primary-foreground texte posé SUR --primary
14
+ * --primary-text l'accent employé comme texte ou lien, sur le fond
15
+ * ou sur --muted : au moins 4,5:1 sur les deux
16
+ * --ring anneau de focus
17
+ * Sans contrat, l'accent est le gris foncé de Nova. La barre latérale suit
18
+ * l'accent : ses variables --sidebar-primary* et --sidebar-ring en dérivent.
19
+ * Le thème sombre s'active par la classe « dark » sur un ancêtre (<html>).
20
+ */
21
+ @import "tw-animate-css";
22
+ @import "@fontsource-variable/geist";
23
+ @import "@fontsource-variable/geist-mono";
24
+ /* Dernier import : son contenu recopié doit suivre tous les @import. */
25
+ /* --- shadcn/tailwind.css --- */
26
+ @theme inline {
27
+ @keyframes accordion-down {
28
+ from {
29
+ height: 0;
30
+ }
31
+ to {
32
+ height: var(
33
+ --radix-accordion-content-height,
34
+ var(--accordion-panel-height, auto)
35
+ );
36
+ }
37
+ }
38
+
39
+ @keyframes accordion-up {
40
+ from {
41
+ height: var(
42
+ --radix-accordion-content-height,
43
+ var(--accordion-panel-height, auto)
44
+ );
45
+ }
46
+ to {
47
+ height: 0;
48
+ }
49
+ }
50
+ }
51
+
52
+ /* Custom variants */
53
+ @custom-variant data-open {
54
+ &:where([data-state="open"]),
55
+ &:where([data-open]:not([data-open="false"])) {
56
+ @slot;
57
+ }
58
+ }
59
+
60
+ @custom-variant data-closed {
61
+ &:where([data-state="closed"]),
62
+ &:where([data-closed]:not([data-closed="false"])) {
63
+ @slot;
64
+ }
65
+ }
66
+
67
+ @custom-variant data-checked {
68
+ &:where([data-state="checked"]),
69
+ &:where([data-checked]:not([data-checked="false"])) {
70
+ @slot;
71
+ }
72
+ }
73
+
74
+ @custom-variant data-unchecked {
75
+ &:where([data-state="unchecked"]),
76
+ &:where([data-unchecked]:not([data-unchecked="false"])) {
77
+ @slot;
78
+ }
79
+ }
80
+
81
+ @custom-variant data-selected {
82
+ &:where([data-selected="true"]) {
83
+ @slot;
84
+ }
85
+ }
86
+
87
+ @custom-variant data-disabled {
88
+ &:where([data-disabled="true"]),
89
+ &:where([data-disabled]:not([data-disabled="false"])) {
90
+ @slot;
91
+ }
92
+ }
93
+
94
+ @custom-variant data-active {
95
+ &:where([data-state="active"]),
96
+ &:where([data-active]:not([data-active="false"])) {
97
+ @slot;
98
+ }
99
+ }
100
+
101
+ @custom-variant data-horizontal {
102
+ &:where([data-orientation="horizontal"]) {
103
+ @slot;
104
+ }
105
+ }
106
+
107
+ @custom-variant data-vertical {
108
+ &:where([data-orientation="vertical"]) {
109
+ @slot;
110
+ }
111
+ }
112
+
113
+ @utility no-scrollbar {
114
+ -ms-overflow-style: none;
115
+ scrollbar-width: none;
116
+
117
+ &::-webkit-scrollbar {
118
+ display: none;
119
+ }
120
+ }
121
+
122
+ /* scroll-fade */
123
+ @property --scroll-fade-t {
124
+ syntax: "<length-percentage>";
125
+ inherits: false;
126
+ initial-value: 0px;
127
+ }
128
+ @property --scroll-fade-b {
129
+ syntax: "<length-percentage>";
130
+ inherits: false;
131
+ initial-value: 0px;
132
+ }
133
+ @property --scroll-fade-s {
134
+ syntax: "<length-percentage>";
135
+ inherits: false;
136
+ initial-value: 0px;
137
+ }
138
+ @property --scroll-fade-e {
139
+ syntax: "<length-percentage>";
140
+ inherits: false;
141
+ initial-value: 0px;
142
+ }
143
+ @property --scroll-fade-mask {
144
+ syntax: "*";
145
+ inherits: false;
146
+ }
147
+
148
+ @theme inline {
149
+ @keyframes scroll-fade-reveal-t {
150
+ from {
151
+ --scroll-fade-t: 0px;
152
+ }
153
+ to {
154
+ --scroll-fade-t: var(--_scroll-fade-size-t, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
155
+ }
156
+ }
157
+ @keyframes scroll-fade-reveal-b {
158
+ from {
159
+ --scroll-fade-b: var(--_scroll-fade-size-b, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
160
+ }
161
+ to {
162
+ --scroll-fade-b: 0px;
163
+ }
164
+ }
165
+ @keyframes scroll-fade-reveal-s {
166
+ from {
167
+ --scroll-fade-s: 0px;
168
+ }
169
+ to {
170
+ --scroll-fade-s: var(--_scroll-fade-size-s, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
171
+ }
172
+ }
173
+ @keyframes scroll-fade-reveal-e {
174
+ from {
175
+ --scroll-fade-e: var(--_scroll-fade-size-e, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
176
+ }
177
+ to {
178
+ --scroll-fade-e: 0px;
179
+ }
180
+ }
181
+ }
182
+
183
+ @utility scroll-fade {
184
+ --_scroll-fade-size-t: var(
185
+ --scroll-fade-t-size,
186
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
187
+ );
188
+ --_scroll-fade-size-b: var(
189
+ --scroll-fade-b-size,
190
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
191
+ );
192
+ --scroll-fade-block: linear-gradient(
193
+ to bottom,
194
+ transparent 0,
195
+ #000 var(--scroll-fade-t, 0px),
196
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
197
+ transparent 100%
198
+ );
199
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
200
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
201
+ -webkit-mask-composite: source-in;
202
+ mask-composite: intersect;
203
+ -webkit-mask-repeat: no-repeat;
204
+ mask-repeat: no-repeat;
205
+
206
+ @supports (animation-timeline: scroll()) {
207
+ animation:
208
+ scroll-fade-reveal-t 1ms ease-in-out,
209
+ scroll-fade-reveal-b 1ms ease-in-out;
210
+ animation-timeline: scroll(self y), scroll(self y);
211
+ animation-range:
212
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
213
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
214
+ animation-fill-mode: both;
215
+ }
216
+
217
+ @supports not (animation-timeline: scroll()) {
218
+ --scroll-fade-t: var(--_scroll-fade-size-t);
219
+ --scroll-fade-b: var(--_scroll-fade-size-b);
220
+ }
221
+ }
222
+
223
+ @utility scroll-fade-y {
224
+ --_scroll-fade-size-t: var(
225
+ --scroll-fade-t-size,
226
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
227
+ );
228
+ --_scroll-fade-size-b: var(
229
+ --scroll-fade-b-size,
230
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
231
+ );
232
+ --scroll-fade-block: linear-gradient(
233
+ to bottom,
234
+ transparent 0,
235
+ #000 var(--scroll-fade-t, 0px),
236
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
237
+ transparent 100%
238
+ );
239
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
240
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
241
+ -webkit-mask-composite: source-in;
242
+ mask-composite: intersect;
243
+ -webkit-mask-repeat: no-repeat;
244
+ mask-repeat: no-repeat;
245
+
246
+ @supports (animation-timeline: scroll()) {
247
+ animation:
248
+ scroll-fade-reveal-t 1ms ease-in-out,
249
+ scroll-fade-reveal-b 1ms ease-in-out;
250
+ animation-timeline: scroll(self y), scroll(self y);
251
+ animation-range:
252
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
253
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
254
+ animation-fill-mode: both;
255
+ }
256
+
257
+ @supports not (animation-timeline: scroll()) {
258
+ --scroll-fade-t: var(--_scroll-fade-size-t);
259
+ --scroll-fade-b: var(--_scroll-fade-size-b);
260
+ }
261
+ }
262
+
263
+ @utility scroll-fade-x {
264
+ --_scroll-fade-size-s: var(
265
+ --scroll-fade-s-size,
266
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
267
+ );
268
+ --_scroll-fade-size-e: var(
269
+ --scroll-fade-e-size,
270
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
271
+ );
272
+ --scroll-fade-inline: linear-gradient(
273
+ to right,
274
+ transparent 0,
275
+ #000 var(--scroll-fade-s, 0px),
276
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
277
+ transparent 100%
278
+ );
279
+ &:where([dir="rtl"], [dir="rtl"] *) {
280
+ --scroll-fade-inline: linear-gradient(
281
+ to left,
282
+ transparent 0,
283
+ #000 var(--scroll-fade-s, 0px),
284
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
285
+ transparent 100%
286
+ );
287
+ }
288
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
289
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
290
+ -webkit-mask-composite: source-in;
291
+ mask-composite: intersect;
292
+ -webkit-mask-repeat: no-repeat;
293
+ mask-repeat: no-repeat;
294
+
295
+ @supports (animation-timeline: scroll()) {
296
+ animation:
297
+ scroll-fade-reveal-s 1ms ease-in-out,
298
+ scroll-fade-reveal-e 1ms ease-in-out;
299
+ animation-timeline: scroll(self inline), scroll(self inline);
300
+ animation-range:
301
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
302
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
303
+ animation-fill-mode: both;
304
+ }
305
+
306
+ @supports not (animation-timeline: scroll()) {
307
+ --scroll-fade-s: var(--_scroll-fade-size-s);
308
+ --scroll-fade-e: var(--_scroll-fade-size-e);
309
+ }
310
+ }
311
+
312
+ @utility scroll-fade-t {
313
+ --_scroll-fade-size-t: var(
314
+ --scroll-fade-t-size,
315
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
316
+ );
317
+ --scroll-fade-mask: linear-gradient(
318
+ to bottom,
319
+ transparent 0,
320
+ #000 var(--scroll-fade-t, 0px),
321
+ #000 100%
322
+ );
323
+ -webkit-mask-image: var(--scroll-fade-mask);
324
+ mask-image: var(--scroll-fade-mask);
325
+ -webkit-mask-composite: source-in;
326
+ mask-composite: intersect;
327
+ -webkit-mask-repeat: no-repeat;
328
+ mask-repeat: no-repeat;
329
+
330
+ @supports (animation-timeline: scroll()) {
331
+ animation: scroll-fade-reveal-t 1ms ease-in-out;
332
+ animation-timeline: scroll(self y);
333
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
334
+ animation-fill-mode: both;
335
+ }
336
+
337
+ @supports not (animation-timeline: scroll()) {
338
+ --scroll-fade-t: var(--_scroll-fade-size-t);
339
+ }
340
+ }
341
+
342
+ @utility scroll-fade-b {
343
+ --_scroll-fade-size-b: var(
344
+ --scroll-fade-b-size,
345
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
346
+ );
347
+ --scroll-fade-mask: linear-gradient(
348
+ to bottom,
349
+ #000 0,
350
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
351
+ transparent 100%
352
+ );
353
+ -webkit-mask-image: var(--scroll-fade-mask);
354
+ mask-image: var(--scroll-fade-mask);
355
+ -webkit-mask-composite: source-in;
356
+ mask-composite: intersect;
357
+ -webkit-mask-repeat: no-repeat;
358
+ mask-repeat: no-repeat;
359
+
360
+ @supports (animation-timeline: scroll()) {
361
+ animation: scroll-fade-reveal-b 1ms ease-in-out;
362
+ animation-timeline: scroll(self y);
363
+ animation-range: calc(
364
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
365
+ )
366
+ 100%;
367
+ animation-fill-mode: both;
368
+ }
369
+
370
+ @supports not (animation-timeline: scroll()) {
371
+ --scroll-fade-b: var(--_scroll-fade-size-b);
372
+ }
373
+ }
374
+
375
+ @utility scroll-fade-l {
376
+ --_scroll-fade-size-s: var(
377
+ --scroll-fade-s-size,
378
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
379
+ );
380
+ --scroll-fade-mask: linear-gradient(
381
+ to right,
382
+ transparent 0,
383
+ #000 var(--scroll-fade-s, 0px),
384
+ #000 100%
385
+ );
386
+ -webkit-mask-image: var(--scroll-fade-mask);
387
+ mask-image: var(--scroll-fade-mask);
388
+ -webkit-mask-composite: source-in;
389
+ mask-composite: intersect;
390
+ -webkit-mask-repeat: no-repeat;
391
+ mask-repeat: no-repeat;
392
+
393
+ @supports (animation-timeline: scroll()) {
394
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
395
+ animation-timeline: scroll(self x);
396
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
397
+ animation-fill-mode: both;
398
+ }
399
+
400
+ @supports not (animation-timeline: scroll()) {
401
+ --scroll-fade-s: var(--_scroll-fade-size-s);
402
+ }
403
+ }
404
+
405
+ @utility scroll-fade-r {
406
+ --_scroll-fade-size-e: var(
407
+ --scroll-fade-e-size,
408
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
409
+ );
410
+ --scroll-fade-mask: linear-gradient(
411
+ to right,
412
+ #000 0,
413
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
414
+ transparent 100%
415
+ );
416
+ -webkit-mask-image: var(--scroll-fade-mask);
417
+ mask-image: var(--scroll-fade-mask);
418
+ -webkit-mask-composite: source-in;
419
+ mask-composite: intersect;
420
+ -webkit-mask-repeat: no-repeat;
421
+ mask-repeat: no-repeat;
422
+
423
+ @supports (animation-timeline: scroll()) {
424
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
425
+ animation-timeline: scroll(self x);
426
+ animation-range: calc(
427
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
428
+ )
429
+ 100%;
430
+ animation-fill-mode: both;
431
+ }
432
+
433
+ @supports not (animation-timeline: scroll()) {
434
+ --scroll-fade-e: var(--_scroll-fade-size-e);
435
+ }
436
+ }
437
+
438
+ @utility scroll-fade-s {
439
+ --_scroll-fade-size-s: var(
440
+ --scroll-fade-s-size,
441
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
442
+ );
443
+ --scroll-fade-mask: linear-gradient(
444
+ to right,
445
+ transparent 0,
446
+ #000 var(--scroll-fade-s, 0px),
447
+ #000 100%
448
+ );
449
+ &:where([dir="rtl"], [dir="rtl"] *) {
450
+ --scroll-fade-mask: linear-gradient(
451
+ to left,
452
+ transparent 0,
453
+ #000 var(--scroll-fade-s, 0px),
454
+ #000 100%
455
+ );
456
+ }
457
+ -webkit-mask-image: var(--scroll-fade-mask);
458
+ mask-image: var(--scroll-fade-mask);
459
+ -webkit-mask-composite: source-in;
460
+ mask-composite: intersect;
461
+ -webkit-mask-repeat: no-repeat;
462
+ mask-repeat: no-repeat;
463
+
464
+ @supports (animation-timeline: scroll()) {
465
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
466
+ animation-timeline: scroll(self inline);
467
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
468
+ animation-fill-mode: both;
469
+ }
470
+
471
+ @supports not (animation-timeline: scroll()) {
472
+ --scroll-fade-s: var(--_scroll-fade-size-s);
473
+ }
474
+ }
475
+
476
+ @utility scroll-fade-e {
477
+ --_scroll-fade-size-e: var(
478
+ --scroll-fade-e-size,
479
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
480
+ );
481
+ --scroll-fade-mask: linear-gradient(
482
+ to right,
483
+ #000 0,
484
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
485
+ transparent 100%
486
+ );
487
+ &:where([dir="rtl"], [dir="rtl"] *) {
488
+ --scroll-fade-mask: linear-gradient(
489
+ to left,
490
+ #000 0,
491
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
492
+ transparent 100%
493
+ );
494
+ }
495
+ -webkit-mask-image: var(--scroll-fade-mask);
496
+ mask-image: var(--scroll-fade-mask);
497
+ -webkit-mask-composite: source-in;
498
+ mask-composite: intersect;
499
+ -webkit-mask-repeat: no-repeat;
500
+ mask-repeat: no-repeat;
501
+
502
+ @supports (animation-timeline: scroll()) {
503
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
504
+ animation-timeline: scroll(self inline);
505
+ animation-range: calc(
506
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
507
+ )
508
+ 100%;
509
+ animation-fill-mode: both;
510
+ }
511
+
512
+ @supports not (animation-timeline: scroll()) {
513
+ --scroll-fade-e: var(--_scroll-fade-size-e);
514
+ }
515
+ }
516
+
517
+ @utility scroll-fade-* {
518
+ --scroll-fade-size: calc(var(--spacing) * --value(integer));
519
+ --scroll-fade-size: --value([length], [percentage]);
520
+ }
521
+
522
+ @utility scroll-fade-t-* {
523
+ --scroll-fade-t-size: calc(var(--spacing) * --value(integer));
524
+ --scroll-fade-t-size: --value([length], [percentage]);
525
+ }
526
+
527
+ @utility scroll-fade-b-* {
528
+ --scroll-fade-b-size: calc(var(--spacing) * --value(integer));
529
+ --scroll-fade-b-size: --value([length], [percentage]);
530
+ }
531
+
532
+ @utility scroll-fade-s-* {
533
+ --scroll-fade-s-size: calc(var(--spacing) * --value(integer));
534
+ --scroll-fade-s-size: --value([length], [percentage]);
535
+ }
536
+
537
+ @utility scroll-fade-e-* {
538
+ --scroll-fade-e-size: calc(var(--spacing) * --value(integer));
539
+ --scroll-fade-e-size: --value([length], [percentage]);
540
+ }
541
+
542
+ @utility scroll-fade-none {
543
+ --scroll-fade-mask: none;
544
+ }
545
+
546
+ /* shimmer */
547
+ @property --shimmer-angle {
548
+ syntax: "<angle>";
549
+ inherits: true;
550
+ initial-value: 20deg;
551
+ }
552
+ @property --shimmer-image {
553
+ syntax: "*";
554
+ inherits: false;
555
+ }
556
+ @property --shimmer-text-fill {
557
+ syntax: "*";
558
+ inherits: false;
559
+ }
560
+
561
+ @theme inline {
562
+ @keyframes tw-shimmer {
563
+ from {
564
+ background-position: 100% 0;
565
+ }
566
+ to {
567
+ background-position: 0 0;
568
+ }
569
+ }
570
+ }
571
+
572
+ @utility shimmer {
573
+ --_spread: var(--shimmer-spread, calc(3ch + 40px));
574
+ --_base: currentColor;
575
+ --_highlight: var(
576
+ --shimmer-color,
577
+ oklch(from currentColor l c h / calc(alpha* 0.2))
578
+ );
579
+
580
+ background-image: var(
581
+ --shimmer-image,
582
+ linear-gradient(
583
+ calc(90deg + var(--shimmer-angle)),
584
+ var(--_base) calc(50% - var(--_spread)),
585
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%)
586
+ calc(50% - var(--_spread) * 0.5),
587
+ var(--_highlight) 50%,
588
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%)
589
+ calc(50% + var(--_spread) * 0.5),
590
+ var(--_base) calc(50% + var(--_spread))
591
+ )
592
+ );
593
+ background-repeat: no-repeat;
594
+ background-size: calc(200% + var(--_spread) * 2) 100%;
595
+ background-position: 0 0;
596
+ background-clip: text;
597
+ -webkit-background-clip: text;
598
+ -webkit-text-fill-color: var(--shimmer-text-fill, transparent);
599
+ animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
600
+
601
+ @variant dark {
602
+ --_highlight: var(
603
+ --shimmer-color,
604
+ oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
605
+ );
606
+ }
607
+
608
+ &:where([dir="rtl"], [dir="rtl"] *) {
609
+ animation-direction: reverse;
610
+ }
611
+
612
+ @media (prefers-reduced-motion: reduce) {
613
+ animation: none;
614
+ background-image: none;
615
+ -webkit-text-fill-color: currentColor;
616
+ }
617
+ }
618
+
619
+ @utility shimmer-once {
620
+ animation-iteration-count: 1;
621
+ }
622
+
623
+ @utility shimmer-reverse {
624
+ animation-direction: reverse;
625
+ }
626
+
627
+ @utility shimmer-none {
628
+ --shimmer-image: none;
629
+ --shimmer-text-fill: currentColor;
630
+ }
631
+
632
+ @utility shimmer-color-* {
633
+ --shimmer-color: --value(--color, [color]);
634
+ --shimmer-color: color-mix(
635
+ in oklch,
636
+ --value(--color, [color]) calc(--modifier(integer) * 1%),
637
+ transparent
638
+ );
639
+ }
640
+
641
+ @utility shimmer-duration-* {
642
+ --shimmer-duration: calc(--value(integer) * 1ms);
643
+ }
644
+
645
+ @utility shimmer-spread-* {
646
+ --shimmer-spread: calc(var(--spacing) * --value(integer));
647
+ --shimmer-spread: --value([length], [percentage]);
648
+ }
649
+
650
+ @utility shimmer-angle-* {
651
+ --shimmer-angle: calc(--value(integer) * 1deg);
652
+ }
653
+
654
+ /* Kept for backwards compatibility. Unlayered, so it still wins over other
655
+ utilities on a plain .shimmer element. Variants are handled in the utility. */
656
+ @media (prefers-reduced-motion: reduce) {
657
+ .shimmer {
658
+ animation: none;
659
+ background-image: none;
660
+ -webkit-text-fill-color: currentColor;
661
+ }
662
+ }
663
+
664
+ /* --- fin de shadcn/tailwind.css --- */
665
+
666
+ @custom-variant dark (&:is(.dark *));
667
+
668
+ @theme inline {
669
+ --font-heading: var(--font-sans);
670
+ --font-sans: "Geist Variable", sans-serif;
671
+ --font-mono: "Geist Mono Variable", ui-monospace, monospace;
672
+ --color-sidebar-ring: var(--sidebar-ring);
673
+ --color-sidebar-border: var(--sidebar-border);
674
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
675
+ --color-sidebar-accent: var(--sidebar-accent);
676
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
677
+ --color-sidebar-primary: var(--sidebar-primary);
678
+ --color-sidebar-foreground: var(--sidebar-foreground);
679
+ --color-sidebar: var(--sidebar);
680
+ --color-chart-5: var(--chart-5);
681
+ --color-chart-4: var(--chart-4);
682
+ --color-chart-3: var(--chart-3);
683
+ --color-chart-2: var(--chart-2);
684
+ --color-chart-1: var(--chart-1);
685
+ --color-ring: var(--ring);
686
+ --color-input: var(--input);
687
+ --color-border: var(--border);
688
+ --color-destructive: var(--destructive);
689
+ --color-success: var(--success);
690
+ --color-warning: var(--warning);
691
+ --color-primary-text: var(--primary-text);
692
+ --color-accent-foreground: var(--accent-foreground);
693
+ --color-accent: var(--accent);
694
+ --color-muted-foreground: var(--muted-foreground);
695
+ --color-muted: var(--muted);
696
+ --color-secondary-foreground: var(--secondary-foreground);
697
+ --color-secondary: var(--secondary);
698
+ --color-primary-foreground: var(--primary-foreground);
699
+ --color-primary: var(--primary);
700
+ --color-popover-foreground: var(--popover-foreground);
701
+ --color-popover: var(--popover);
702
+ --color-card-foreground: var(--card-foreground);
703
+ --color-card: var(--card);
704
+ --color-foreground: var(--foreground);
705
+ --color-background: var(--background);
706
+ --radius-sm: calc(var(--radius) * 0.6);
707
+ --radius-md: calc(var(--radius) * 0.8);
708
+ --radius-lg: var(--radius);
709
+ --radius-xl: calc(var(--radius) * 1.4);
710
+ --radius-2xl: calc(var(--radius) * 1.8);
711
+ --radius-3xl: calc(var(--radius) * 2.2);
712
+ --radius-4xl: calc(var(--radius) * 2.6);
713
+ }
714
+
715
+ :root {
716
+ --background: oklch(1 0 0);
717
+ --foreground: oklch(0.145 0 0);
718
+ --card: oklch(1 0 0);
719
+ --card-foreground: oklch(0.145 0 0);
720
+ --popover: oklch(1 0 0);
721
+ --popover-foreground: oklch(0.145 0 0);
722
+ /* Contrat d'accent : valeurs par défaut, remplacées par l'application. */
723
+ --primary: oklch(0.205 0 0);
724
+ --primary-foreground: oklch(0.985 0 0);
725
+ --primary-text: oklch(0.205 0 0);
726
+ --ring: oklch(0.708 0 0);
727
+ --secondary: oklch(0.97 0 0);
728
+ --secondary-foreground: oklch(0.205 0 0);
729
+ --muted: oklch(0.97 0 0);
730
+ --muted-foreground: oklch(0.556 0 0);
731
+ --accent: oklch(0.97 0 0);
732
+ --accent-foreground: oklch(0.205 0 0);
733
+ --destructive: oklch(0.577 0.245 27.325);
734
+ /* Texte sur le fond, sur --muted et sur leur teinte à 20 % : ≥ 4,5:1. */
735
+ --success: #15703f;
736
+ --warning: #8a5300;
737
+ --border: oklch(0.922 0 0);
738
+ --input: oklch(0.922 0 0);
739
+ --chart-1: oklch(0.87 0 0);
740
+ --chart-2: oklch(0.556 0 0);
741
+ --chart-3: oklch(0.439 0 0);
742
+ --chart-4: oklch(0.371 0 0);
743
+ --chart-5: oklch(0.269 0 0);
744
+ --radius: 0.625rem;
745
+ --sidebar: oklch(0.985 0 0);
746
+ --sidebar-foreground: oklch(0.145 0 0);
747
+ --sidebar-primary: var(--primary);
748
+ --sidebar-primary-foreground: var(--primary-foreground);
749
+ --sidebar-accent: oklch(0.97 0 0);
750
+ --sidebar-accent-foreground: oklch(0.205 0 0);
751
+ --sidebar-border: oklch(0.922 0 0);
752
+ --sidebar-ring: var(--ring);
753
+ }
754
+
755
+ .dark {
756
+ --background: oklch(0.145 0 0);
757
+ --foreground: oklch(0.985 0 0);
758
+ --card: oklch(0.205 0 0);
759
+ --card-foreground: oklch(0.985 0 0);
760
+ --popover: oklch(0.205 0 0);
761
+ --popover-foreground: oklch(0.985 0 0);
762
+ --primary: oklch(0.922 0 0);
763
+ --primary-foreground: oklch(0.205 0 0);
764
+ --primary-text: oklch(0.922 0 0);
765
+ --ring: oklch(0.556 0 0);
766
+ --secondary: oklch(0.269 0 0);
767
+ --secondary-foreground: oklch(0.985 0 0);
768
+ --muted: oklch(0.269 0 0);
769
+ --muted-foreground: oklch(0.708 0 0);
770
+ --accent: oklch(0.269 0 0);
771
+ --accent-foreground: oklch(0.985 0 0);
772
+ --destructive: oklch(0.704 0.191 22.216);
773
+ --success: #6fd7a7;
774
+ --warning: #f0b25f;
775
+ --border: oklch(1 0 0 / 10%);
776
+ --input: oklch(1 0 0 / 15%);
777
+ --chart-1: oklch(0.87 0 0);
778
+ --chart-2: oklch(0.556 0 0);
779
+ --chart-3: oklch(0.439 0 0);
780
+ --chart-4: oklch(0.371 0 0);
781
+ --chart-5: oklch(0.269 0 0);
782
+ --sidebar: oklch(0.205 0 0);
783
+ --sidebar-foreground: oklch(0.985 0 0);
784
+ --sidebar-primary: var(--primary);
785
+ --sidebar-primary-foreground: var(--primary-foreground);
786
+ --sidebar-accent: oklch(0.269 0 0);
787
+ --sidebar-accent-foreground: oklch(0.985 0 0);
788
+ --sidebar-border: oklch(1 0 0 / 10%);
789
+ --sidebar-ring: var(--ring);
790
+ }
791
+
792
+ @layer base {
793
+ * {
794
+ @apply border-border outline-ring/50;
795
+ }
796
+ body {
797
+ @apply bg-background text-foreground;
798
+ }
799
+ html {
800
+ @apply font-sans;
801
+ }
802
+ }
package/package.json CHANGED
@@ -1,6 +1,74 @@
1
1
  {
2
2
  "name": "@etic-insa/ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.0",
4
+ "description": "Bibliothèque de composants React des applications ETIC, construite sur shadcn et Base UI.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/etic-insa-tech/etic-packages.git",
9
+ "directory": "packages/ui"
10
+ },
11
+ "type": "module",
12
+ "sideEffects": [
13
+ "**/*.css"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ },
20
+ "./styles.css": "./dist/styles.css"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "provenance": true
28
+ },
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build": "vite build && node scripts/build-css.mjs",
32
+ "lint": "eslint .",
33
+ "typecheck": "tsc -b",
34
+ "test": "vitest run"
35
+ },
36
+ "peerDependencies": {
37
+ "react": "^19",
38
+ "react-dom": "^19",
39
+ "tailwindcss": "^4"
40
+ },
41
+ "dependencies": {
42
+ "@base-ui/react": "^1.9.0",
43
+ "@fontsource-variable/geist": "^5.3.0",
44
+ "@fontsource-variable/geist-mono": "^5.3.0",
45
+ "class-variance-authority": "^0.7.1",
46
+ "cn": "^0.5.0",
47
+ "lucide-react": "^1.64.0",
48
+ "tw-animate-css": "^1.4.0"
49
+ },
50
+ "devDependencies": {
51
+ "@eslint/js": "^10",
52
+ "@tailwindcss/vite": "^4",
53
+ "@testing-library/jest-dom": "^7.0.1",
54
+ "@testing-library/react": "^16.3.3",
55
+ "@types/node": "^26.6.5",
56
+ "@types/react": "^19",
57
+ "@types/react-dom": "^19",
58
+ "@vitejs/plugin-react": "^6",
59
+ "eslint": "^10",
60
+ "eslint-plugin-react-hooks": "^7.1.1",
61
+ "eslint-plugin-react-refresh": "^0.5.7",
62
+ "globals": "^17",
63
+ "jsdom": "^30.1.3",
64
+ "react": "^19.3.1",
65
+ "react-dom": "^19.3.1",
66
+ "shadcn": "^4.23.0",
67
+ "tailwindcss": "^4",
68
+ "typescript": "~6.0.2",
69
+ "typescript-eslint": "^8",
70
+ "vite": "^8",
71
+ "vite-plugin-dts": "^4",
72
+ "vitest": "^5.0.5"
73
+ }
74
+ }