atelier-ui-react 1.0.2

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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -0
  3. package/dist/index.cjs +909 -0
  4. package/dist/index.css +962 -0
  5. package/dist/index.mjs +876 -0
  6. package/package.json +52 -0
  7. package/src/Button/Button.css +169 -0
  8. package/src/Button/Button.tsx +57 -0
  9. package/src/Button/Button.types.ts +19 -0
  10. package/src/Button/index.ts +2 -0
  11. package/src/Card/Card.css +73 -0
  12. package/src/Card/Card.tsx +79 -0
  13. package/src/Card/Card.types.ts +25 -0
  14. package/src/Card/index.ts +2 -0
  15. package/src/Checkbox/Checkbox.css +101 -0
  16. package/src/Checkbox/Checkbox.tsx +85 -0
  17. package/src/Checkbox/Checkbox.types.ts +9 -0
  18. package/src/Checkbox/index.ts +2 -0
  19. package/src/Divider/Divider.css +47 -0
  20. package/src/Divider/Divider.tsx +53 -0
  21. package/src/Divider/Divider.types.ts +12 -0
  22. package/src/Divider/index.ts +2 -0
  23. package/src/Heading/Heading.css +30 -0
  24. package/src/Heading/Heading.tsx +50 -0
  25. package/src/Heading/Heading.types.ts +16 -0
  26. package/src/Heading/index.ts +2 -0
  27. package/src/Icon/Icon.css +26 -0
  28. package/src/Icon/Icon.tsx +79 -0
  29. package/src/Icon/Icon.types.ts +13 -0
  30. package/src/Icon/index.ts +2 -0
  31. package/src/Input/Input.css +145 -0
  32. package/src/Input/Input.tsx +86 -0
  33. package/src/Input/Input.types.ts +15 -0
  34. package/src/Input/index.ts +2 -0
  35. package/src/Link/Link.css +50 -0
  36. package/src/Link/Link.tsx +64 -0
  37. package/src/Link/Link.types.ts +13 -0
  38. package/src/Link/index.ts +2 -0
  39. package/src/Select/Select.css +115 -0
  40. package/src/Select/Select.tsx +109 -0
  41. package/src/Select/Select.types.ts +19 -0
  42. package/src/Select/index.ts +2 -0
  43. package/src/Text/Text.css +49 -0
  44. package/src/Text/Text.tsx +46 -0
  45. package/src/Text/Text.types.ts +19 -0
  46. package/src/Text/index.ts +2 -0
  47. package/src/index.ts +34 -0
  48. package/src/layout/Container/Container.css +16 -0
  49. package/src/layout/Container/Container.tsx +51 -0
  50. package/src/layout/Container/Container.types.ts +12 -0
  51. package/src/layout/Container/index.ts +2 -0
  52. package/src/layout/Flex/Flex.css +34 -0
  53. package/src/layout/Flex/Flex.tsx +56 -0
  54. package/src/layout/Flex/Flex.types.ts +18 -0
  55. package/src/layout/Flex/index.ts +2 -0
  56. package/src/layout/Grid/Grid.css +18 -0
  57. package/src/layout/Grid/Grid.tsx +61 -0
  58. package/src/layout/Grid/Grid.types.ts +17 -0
  59. package/src/layout/Grid/index.ts +2 -0
  60. package/src/layout/Stack/Stack.css +50 -0
  61. package/src/layout/Stack/Stack.tsx +70 -0
  62. package/src/layout/Stack/Stack.types.ts +17 -0
  63. package/src/layout/Stack/index.ts +2 -0
  64. package/src/styles/globals.css +28 -0
  65. package/src/styles/reset.css +44 -0
  66. package/src/theme/ThemeProvider.tsx +83 -0
  67. package/src/theme/dark.css +62 -0
  68. package/src/theme/index.ts +2 -0
  69. package/src/theme/light.css +62 -0
  70. package/src/theme/theme.types.ts +19 -0
  71. package/src/theme/tokens.css +61 -0
  72. package/src/utils/index.ts +44 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Atelier UI Team
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 ADDED
@@ -0,0 +1,101 @@
1
+ # Atelier UI
2
+
3
+ **Modern, accessible React + TypeScript UI framework built with pure CSS design tokens.**
4
+
5
+ > **Un framework UI minimaliste, accessible et beau par défaut.** Aucun framework CSS tiers (pas de Tailwind, pas de Bootstrap). Juste des variables CSS pures et des composants React typés.
6
+
7
+ ## 📦 Installation
8
+
9
+ ```bash
10
+ npm install atelier-ui
11
+ # ou depuis ce dépôt
12
+ cd .. && npm install
13
+ ```
14
+
15
+ ## 🚀 Utilisation de base
16
+
17
+ ```tsx
18
+ import React from 'react';
19
+ import 'atelier-ui/styles/globals.css';
20
+ import { Card, Button, ThemeProvider } from 'atelier-ui';
21
+
22
+ function App() {
23
+ return (
24
+ <ThemeProvider defaultTheme="light">
25
+ <Card variant="outlined" padding="md">
26
+ <Button variant="primary">Action</Button>
27
+ </Card>
28
+ </ThemeProvider>
29
+ );
30
+ }
31
+ ```
32
+
33
+ ## 📚 Documentation
34
+
35
+ - **Guide rapide** : Voir `doc.md`
36
+ - **Documentation IA** : Voir `skill.md`
37
+ - **API complète** : Tous les composants et tokens sont documentés dans ce dépôt
38
+
39
+ ## 🛠️ Features
40
+
41
+ - **Design tokens CSS purs** — `--ui-color-*`, `--ui-space-*`, `--ui-radius-*`, `--ui-shadow-*`
42
+ - **Thème clair/sombre** complet avec `ThemeProvider`
43
+ - **15+ composants** prêts à l'emploi : Card, Button, Input, Select, Checkbox, Heading, Text, Stack, Flex, Grid, Container, Link, Divider, Icon, etc.
44
+ - **Accessibilité WCAG AA** garantie dans les deux modes
45
+ - **Aucune dépendance CSS tierce** — zéro compromis sur les performances
46
+ - **API déclarative** claire et prévisible
47
+ - **Support V1** : L'assemblage standard produit une interface sobre sans CSS custom
48
+
49
+ ## 🏗️ Structure du dépôt
50
+
51
+ ```
52
+ framework/
53
+ ├── package.json
54
+ ├── tsconfig.json
55
+ ├── skill.md ← Documentation IA / détails techniques
56
+ ├── doc.md ← Documentation utilisateur détaillée
57
+ ├── README.md ← Présentation du framework
58
+ └── src/ ← Tout le code source
59
+ ├── components/ ← Card, Button, Input, Select, Checkbox, etc.
60
+ ├── layout/ ← Stack, Flex, Grid, Container
61
+ ├── theme/ ← Tokens CSS, ThemeProvider, light/dark
62
+ ├── styles/ ← globals.css, reset.css
63
+ └── utils/ ← cx(), getSpaceValue()
64
+
65
+ ## 🛠️ Installation
66
+
67
+ ```bash
68
+ # Via npm (package publié)
69
+ npm install atelier-ui
70
+
71
+ # En développement local ce dépôt
72
+ cd ..
73
+ git clone https://github.com/Ilyan-Margueritte/atelier-ui.git
74
+
75
+ cd atelier-ui
76
+
77
+ npm install
78
+ ```
79
+
80
+ ## 📄 Licence
81
+
82
+ MIT — Construit avec des variables CSS pures, pas de dépendances CSS tierces.
83
+
84
+ ---
85
+
86
+ **⚡ Atelier UI — Beau par défaut, construit avec des tokens CSS purs.**
87
+
88
+ ---
89
+
90
+ ## 🔧 Développement
91
+
92
+ ```bash
93
+ # Compiler les types
94
+ npm run lint # tsc --noEmit
95
+
96
+ # Build du package
97
+ npm run build:ui
98
+
99
+ # Lancer les tests
100
+ npm test
101
+ ```