@sia-ui/react 0.1.0 → 0.3.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.
Files changed (3) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +38 -38
  3. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Ivan Mbella
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ivan Mbella
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,38 +1,38 @@
1
- # @sia-ui/react
2
-
3
- Les primitives de runtime dont un composant DOM a besoin.
4
-
5
- ```bash
6
- pnpm add @sia-ui/react
7
- ```
8
-
9
- ```tsx
10
- import { SiaProvider, Portal, usePortal, useOutsideClick } from "@sia-ui/react";
11
- ```
12
-
13
- - `SiaProvider` — thème clair/sombre, variables CSS;
14
- - `Portal` et `usePortal` — rendre hors du flux, sans casser le rendu serveur;
15
- - `useOutsideClick` — écoute `pointerdown`, pas `click` : une sélection de
16
- texte qui déborde ne ferme pas l'overlay;
17
- - `useControllableState`, `useDisclosure`, `mergeRefs`.
18
-
19
- `react` et `react-dom` sont des `peerDependencies`.
20
-
21
- ## Place dans SIA UI
22
-
23
- ```
24
- @sia-ui/tokens valeurs : couleurs, espacements, mouvement, vocabulaire
25
- @sia-ui/utils fonctions sans dépendance
26
- @sia-ui/api client HTTP — indépendant de l'interface
27
- @sia-ui/headless comportement, avec React, sans plateforme
28
- @sia-ui/react primitives de runtime DOM
29
- @sia-ui/react-web composants DOM
30
- @sia-ui/react-native composants natifs, à venir
31
- ```
32
-
33
- Une chose s'écrit au niveau le plus bas où elle a du sens, et une seule fois.
34
- Voir [la documentation](https://github.com/BeatJo/sia-ui/tree/main/docs).
35
-
36
- ## Licence
37
-
38
- MIT
1
+ # @sia-ui/react
2
+
3
+ Les primitives de runtime dont un composant DOM a besoin.
4
+
5
+ ```bash
6
+ pnpm add @sia-ui/react
7
+ ```
8
+
9
+ ```tsx
10
+ import { SiaProvider, Portal, usePortal, useOutsideClick } from "@sia-ui/react";
11
+ ```
12
+
13
+ - `SiaProvider` — thème clair/sombre, variables CSS;
14
+ - `Portal` et `usePortal` — rendre hors du flux, sans casser le rendu serveur;
15
+ - `useOutsideClick` — écoute `pointerdown`, pas `click` : une sélection de
16
+ texte qui déborde ne ferme pas l'overlay;
17
+ - `useControllableState`, `useDisclosure`, `mergeRefs`.
18
+
19
+ `react` et `react-dom` sont des `peerDependencies`.
20
+
21
+ ## Place dans SIA UI
22
+
23
+ ```
24
+ @sia-ui/tokens valeurs : couleurs, espacements, mouvement, vocabulaire
25
+ @sia-ui/utils fonctions sans dépendance
26
+ @sia-ui/api client HTTP — indépendant de l'interface
27
+ @sia-ui/headless comportement, avec React, sans plateforme
28
+ @sia-ui/react primitives de runtime DOM
29
+ @sia-ui/react-web composants DOM
30
+ @sia-ui/react-native composants natifs, à venir
31
+ ```
32
+
33
+ Une chose s'écrit au niveau le plus bas où elle a du sens, et une seule fois.
34
+ Voir [la documentation](https://github.com/BeatJo/sia-ui/tree/main/docs).
35
+
36
+ ## Licence
37
+
38
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia-ui/react",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "React runtime foundations for SIA UI.",
5
5
  "keywords": [
6
6
  "sia-ui",
@@ -44,8 +44,8 @@
44
44
  "access": "public"
45
45
  },
46
46
  "dependencies": {
47
- "@sia-ui/utils": "0.1.0",
48
- "@sia-ui/tokens": "0.1.0"
47
+ "@sia-ui/tokens": "0.3.0",
48
+ "@sia-ui/utils": "0.3.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=18.2.0",