@pimolu/react 0.1.0-beta.3 → 0.1.0-beta.3.1
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/README.fr.md +127 -49
- package/README.md +127 -49
- package/package.json +3 -3
package/README.fr.md
CHANGED
|
@@ -1,49 +1,127 @@
|
|
|
1
|
-
# @pimolu/react
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
# @pimolu/react
|
|
2
|
+
|
|
3
|
+
**Un système. Votre signature.**
|
|
4
|
+
|
|
5
|
+
Une bibliothèque de composants React pilotée par les tokens, pensée pour les interfaces qui doivent sembler intentionnelles. Pimolu fournit 129 familles de composants, sept presets visuels, des thèmes clair et sombre et une personnalisation typée par parties, sans runtime CSS-in-JS.
|
|
6
|
+
|
|
7
|
+
[Documentation](https://pimolu.com/components) · [Démarrage rapide](https://pimolu.com/docs/quick-start) · [Personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/registry/react)
|
|
8
|
+
|
|
9
|
+
> **Bêta :** `0.1.0-beta.3.1` est une prévisualisation. Les API des composants et les tokens visuels peuvent évoluer avant `1.0.0`.
|
|
10
|
+
|
|
11
|
+
## Pourquoi Pimolu ?
|
|
12
|
+
|
|
13
|
+
- **Un système, pas une collection de contrôles.** Toutes les familles partagent le même langage de tokens, thèmes et presets. Changez le preset, toute l'interface suit.
|
|
14
|
+
- **CSS-first par conception.** Des classes CSS et des variables CSS, sans dépendance à Tailwind et sans runtime CSS-in-JS. L'entrée optionnelle `layered.css` rend les surcharges prévisibles.
|
|
15
|
+
- **Une personnalisation qui survit aux refactors.** Les maps `classNames` typées couvrent chaque famille et chaque partie composée. Vous ciblez des clés publiques, pas la structure DOM interne.
|
|
16
|
+
- **Pensé pour de vrais produits.** Formulaires, overlays, navigation, tableaux de données, graphiques, planificateurs, outils fichiers et shells d'application complets.
|
|
17
|
+
- **L'accessibilité fait partie du travail.** Les composants utilisent des motifs clavier, focus et ARIA avec des régressions navigateur. C'est un soin d'ingénierie, pas une certification WCAG globale.
|
|
18
|
+
- **Documentation bilingue.** Guides anglais et français, exemples live, API générées et une carte [llms.txt](https://pimolu.com/llms.txt) pour les workflows assistés par IA.
|
|
19
|
+
|
|
20
|
+
## En bref
|
|
21
|
+
|
|
22
|
+
| | |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| Composants | 129 familles React |
|
|
25
|
+
| Thèmes | Clair, sombre et système |
|
|
26
|
+
| Presets | default, adaptive, cartoon, glass, luxury, monochrome, neo-brutalism |
|
|
27
|
+
| Style | CSS natif, variables CSS, couches optionnelles |
|
|
28
|
+
| Personnalisation | `classNames` typées sur chaque famille et partie composée |
|
|
29
|
+
| Framework | React 18 et 19, Next.js App Router |
|
|
30
|
+
| Distribution | ESM, déclarations TypeScript, entrée `"use client"` |
|
|
31
|
+
| Taille | Un bundle React compilé et le CSS partagé |
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add @pimolu/react@beta @pimolu/web-styles@beta
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
React et React DOM 18 ou 19 sont des peer dependencies. Chargez la feuille de styles partagée une fois au point d'entrée de l'application.
|
|
40
|
+
|
|
41
|
+
## Démarrage rapide
|
|
42
|
+
|
|
43
|
+
Dans votre CSS global — par exemple `app/globals.css` dans Next.js :
|
|
44
|
+
|
|
45
|
+
```css
|
|
46
|
+
@import "@pimolu/web-styles/styles.css";
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Enveloppez l'interface une seule fois. `PimoluProvider` gère le mode de couleur, le preset, le radius, la densité et la couleur de marque.
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
"use client";
|
|
53
|
+
|
|
54
|
+
import { Button, PimoluProvider } from "@pimolu/react";
|
|
55
|
+
|
|
56
|
+
export function App() {
|
|
57
|
+
return (
|
|
58
|
+
<PimoluProvider defaultTheme="system" defaultStylePreset="default">
|
|
59
|
+
<Button>Créer un espace</Button>
|
|
60
|
+
</PimoluProvider>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Le package est ESM uniquement. Son entrée inclut `"use client"` pour être importée depuis une frontière client Next.js sans configuration supplémentaire.
|
|
66
|
+
|
|
67
|
+
## Ce qui est inclus
|
|
68
|
+
|
|
69
|
+
| Domaine | Exemples |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| Saisie et formulaires | Button, Input, Select, Combobox, MultiSelect, DatePicker, Calendar, FileUpload, Form |
|
|
72
|
+
| Surfaces et overlays | Card, Dialog, Drawer, Popover, Tooltip, Toast, Alert, Banner |
|
|
73
|
+
| Navigation et layout | Navbar, Sidebar, Tabs, Breadcrumbs, Pagination, DashboardLayout, AppShell |
|
|
74
|
+
| Données et productivité | Table, DataTable, DataGrid, TreeTable, Chart, Scheduler, Gantt, Kanban, FileManager |
|
|
75
|
+
| Contenu et médias | Typography, Prose, CodeBlock, Carousel, VideoPlayer, AudioPlayer, PDFViewer, Lightbox |
|
|
76
|
+
|
|
77
|
+
## Personnaliser une partie, pas un sélecteur
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
import { Button } from "@pimolu/react";
|
|
81
|
+
|
|
82
|
+
export function CheckoutAction() {
|
|
83
|
+
return (
|
|
84
|
+
<Button
|
|
85
|
+
classNames={{
|
|
86
|
+
root: "checkout-action",
|
|
87
|
+
label: "checkout-action__label",
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
90
|
+
Payer en sécurité
|
|
91
|
+
</Button>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```css
|
|
97
|
+
.checkout-action {
|
|
98
|
+
border-radius: 999px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.checkout-action__label {
|
|
102
|
+
letter-spacing: 0.01em;
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Chaque famille expose des clés de parties stables. Les composants composés héritent du scope de leur famille à travers les wrappers et les portails, tandis qu'un root imbriqué indépendant le réinitialise. Voir le [contrat de personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) pour la référence complète, les recettes de couches et les responsabilités d'accessibilité.
|
|
107
|
+
|
|
108
|
+
## La famille de packages
|
|
109
|
+
|
|
110
|
+
| Package | Rôle |
|
|
111
|
+
| --- | --- |
|
|
112
|
+
| [`@pimolu/react`](https://www.npmjs.com/package/@pimolu/react) | Composants, hooks et layouts React |
|
|
113
|
+
| [`@pimolu/web-styles`](https://www.npmjs.com/package/@pimolu/web-styles) | CSS complet, entrée en couches et CSS par composant |
|
|
114
|
+
| [`@pimolu/themes`](https://www.npmjs.com/package/@pimolu/themes) | Thèmes clair/sombre, sept presets et données visuelles |
|
|
115
|
+
| [`@pimolu/design-tokens`](https://www.npmjs.com/package/@pimolu/design-tokens) | Tokens primitifs en CSS et JSON |
|
|
116
|
+
| [`@pimolu/core`](https://www.npmjs.com/package/@pimolu/core) | Utilitaire de classes de variantes indépendant du framework |
|
|
117
|
+
|
|
118
|
+
## Documentation et état
|
|
119
|
+
|
|
120
|
+
- [Catalogue de composants](https://pimolu.com/components) avec exemples live, API et notes d'usage
|
|
121
|
+
- [Démarrage rapide](https://pimolu.com/docs/quick-start)
|
|
122
|
+
- [Guide des thèmes](https://pimolu.com/docs/theming)
|
|
123
|
+
- [Source et issues](https://github.com/pimoludev/ui)
|
|
124
|
+
|
|
125
|
+
Pimolu UI est en bêta. Le registre React est implémenté ; les registres native, Angular et web components sont des directions futures, pas des packages actuels. La revue visuelle et d'assistance technique complète reste ouverte : cette version est une prévisualisation, pas une stable `1.0.0`.
|
|
126
|
+
|
|
127
|
+
MIT © Pimolu
|
package/README.md
CHANGED
|
@@ -1,49 +1,127 @@
|
|
|
1
|
-
# @pimolu/react
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
# @pimolu/react
|
|
2
|
+
|
|
3
|
+
**One system. Your signature.**
|
|
4
|
+
|
|
5
|
+
A token-first React component library for interfaces that need to feel intentional. Pimolu ships 129 component families, seven visual presets, light and dark themes, and typed named-part styling without a CSS-in-JS runtime.
|
|
6
|
+
|
|
7
|
+
[Documentation](https://pimolu.com/components) · [Quick start](https://pimolu.com/docs/quick-start) · [Customization](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/registry/react)
|
|
8
|
+
|
|
9
|
+
> **Beta:** `0.1.0-beta.3.1` is a preview. Component APIs and visual tokens may change before `1.0.0`.
|
|
10
|
+
|
|
11
|
+
## Why Pimolu?
|
|
12
|
+
|
|
13
|
+
- **A system, not a pile of controls.** Every family shares one token, theme and preset language. Change the preset and the whole interface follows.
|
|
14
|
+
- **CSS-first by design.** Plain CSS classes and CSS variables, with no Tailwind requirement and no CSS-in-JS runtime. The optional `layered.css` entry makes application overrides predictable.
|
|
15
|
+
- **Customization that survives refactors.** Typed `classNames` maps cover every family and compound part. You style public part keys, not internal DOM structure.
|
|
16
|
+
- **Built for real product surfaces.** Forms, overlays, navigation, data tables, charts, schedulers, file tools and complete application shells are included.
|
|
17
|
+
- **Accessibility is part of the work.** Components use keyboard, focus and ARIA patterns with browser regressions. This is engineering care, not a blanket WCAG certification.
|
|
18
|
+
- **Bilingual documentation.** English and French guides, live examples, generated API references and an [llms.txt](https://pimolu.com/llms.txt) map for AI-assisted workflows.
|
|
19
|
+
|
|
20
|
+
## At a glance
|
|
21
|
+
|
|
22
|
+
| | |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| Components | 129 React families |
|
|
25
|
+
| Themes | Light, dark and system |
|
|
26
|
+
| Presets | default, adaptive, cartoon, glass, luxury, monochrome, neo-brutalism |
|
|
27
|
+
| Styling | Plain CSS, CSS variables, optional cascade layers |
|
|
28
|
+
| Customization | Typed `classNames` on every family and compound part |
|
|
29
|
+
| Framework | React 18 and 19, Next.js App Router |
|
|
30
|
+
| Distribution | ESM, TypeScript declarations, `"use client"` entry |
|
|
31
|
+
| Package size | One compiled React bundle plus shared CSS |
|
|
32
|
+
|
|
33
|
+
## Install
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add @pimolu/react@beta @pimolu/web-styles@beta
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
React and React DOM 18 or 19 are peer dependencies. Load the shared stylesheet once in your application entry.
|
|
40
|
+
|
|
41
|
+
## Quick start
|
|
42
|
+
|
|
43
|
+
In your global CSS — for example `app/globals.css` in Next.js:
|
|
44
|
+
|
|
45
|
+
```css
|
|
46
|
+
@import "@pimolu/web-styles/styles.css";
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Wrap the interface once. `PimoluProvider` owns the colour mode, style preset, radius, density and brand colour.
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
"use client";
|
|
53
|
+
|
|
54
|
+
import { Button, PimoluProvider } from "@pimolu/react";
|
|
55
|
+
|
|
56
|
+
export function App() {
|
|
57
|
+
return (
|
|
58
|
+
<PimoluProvider defaultTheme="system" defaultStylePreset="default">
|
|
59
|
+
<Button>Create workspace</Button>
|
|
60
|
+
</PimoluProvider>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The package is ESM-only. Its entry includes `"use client"` so it can be imported from a Next.js client boundary without extra configuration.
|
|
66
|
+
|
|
67
|
+
## What is inside
|
|
68
|
+
|
|
69
|
+
| Area | Examples |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| Inputs and forms | Button, Input, Select, Combobox, MultiSelect, DatePicker, Calendar, FileUpload, Form |
|
|
72
|
+
| Surfaces and overlays | Card, Dialog, Drawer, Popover, Tooltip, Toast, Alert, Banner |
|
|
73
|
+
| Navigation and layout | Navbar, Sidebar, Tabs, Breadcrumbs, Pagination, DashboardLayout, AppShell |
|
|
74
|
+
| Data and productivity | Table, DataTable, DataGrid, TreeTable, Chart, Scheduler, Gantt, Kanban, FileManager |
|
|
75
|
+
| Content and media | Typography, Prose, CodeBlock, Carousel, VideoPlayer, AudioPlayer, PDFViewer, Lightbox |
|
|
76
|
+
|
|
77
|
+
## Customize a part, not a selector
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
import { Button } from "@pimolu/react";
|
|
81
|
+
|
|
82
|
+
export function CheckoutAction() {
|
|
83
|
+
return (
|
|
84
|
+
<Button
|
|
85
|
+
classNames={{
|
|
86
|
+
root: "checkout-action",
|
|
87
|
+
label: "checkout-action__label",
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
90
|
+
Pay securely
|
|
91
|
+
</Button>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```css
|
|
97
|
+
.checkout-action {
|
|
98
|
+
border-radius: 999px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.checkout-action__label {
|
|
102
|
+
letter-spacing: 0.01em;
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Every family exposes stable part keys. Compound components inherit their family scope through wrappers and portals, while independently nested roots reset it. See the [customization contract](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) for the complete key reference, layer recipes and accessibility responsibilities.
|
|
107
|
+
|
|
108
|
+
## The package family
|
|
109
|
+
|
|
110
|
+
| Package | Role |
|
|
111
|
+
| --- | --- |
|
|
112
|
+
| [`@pimolu/react`](https://www.npmjs.com/package/@pimolu/react) | React components, hooks and layouts |
|
|
113
|
+
| [`@pimolu/web-styles`](https://www.npmjs.com/package/@pimolu/web-styles) | Plain CSS bundle, layered entry and per-component CSS |
|
|
114
|
+
| [`@pimolu/themes`](https://www.npmjs.com/package/@pimolu/themes) | Light/dark themes, seven presets and visual data |
|
|
115
|
+
| [`@pimolu/design-tokens`](https://www.npmjs.com/package/@pimolu/design-tokens) | Primitive tokens in CSS and JSON |
|
|
116
|
+
| [`@pimolu/core`](https://www.npmjs.com/package/@pimolu/core) | Framework-independent variant class utility |
|
|
117
|
+
|
|
118
|
+
## Documentation and status
|
|
119
|
+
|
|
120
|
+
- [Component catalogue](https://pimolu.com/components) with live examples, APIs and usage notes
|
|
121
|
+
- [Quick start](https://pimolu.com/docs/quick-start)
|
|
122
|
+
- [Theming guide](https://pimolu.com/docs/theming)
|
|
123
|
+
- [Source and issues](https://github.com/pimoludev/ui)
|
|
124
|
+
|
|
125
|
+
Pimolu UI is a beta. The React registry is implemented; native, Angular and web-component registries are future directions, not current packages. The full visual and assistive-technology audit remains open, so this release is a preview rather than a stable `1.0.0`.
|
|
126
|
+
|
|
127
|
+
MIT © Pimolu
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pimolu/react",
|
|
3
|
-
"version": "0.1.0-beta.3",
|
|
3
|
+
"version": "0.1.0-beta.3.1",
|
|
4
4
|
"description": "Pimolu UI React components, hooks and accessible primitives.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"vitest": "^5.0.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@pimolu/core": "0.1.0-beta.3",
|
|
55
|
-
"@pimolu/themes": "0.1.0-beta.3"
|
|
54
|
+
"@pimolu/core": "0.1.0-beta.3.1",
|
|
55
|
+
"@pimolu/themes": "0.1.0-beta.3.1"
|
|
56
56
|
}
|
|
57
57
|
}
|