@sia-ui/utils 0.2.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 +39 -39
  3. package/package.json +1 -1
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,39 +1,39 @@
1
- # @sia-ui/utils
2
-
3
- Les helpers qu'on réécrit d'un projet à l'autre, sans dépendance.
4
-
5
- ```bash
6
- pnpm add @sia-ui/utils
7
- ```
8
-
9
- ```ts
10
- import { formatCurrency } from "@sia-ui/utils/currency";
11
- import { formatTimeAgo } from "@sia-ui/utils/date";
12
- import { cn } from "@sia-ui/utils/classname";
13
-
14
- formatCurrency(1500000, { currency: "XAF" }); // "1 500 000 FCFA"
15
- formatTimeAgo(commande.createdAt); // "il y a 10 minutes"
16
- ```
17
-
18
- Cinq modules — `classname`, `currency`, `date`, `events`, `number`, `string` —
19
- importables séparément pour rester léger. Tout repose sur `Intl`, donc rien à
20
- embarquer : `XOF` et `XAF` sont formatés correctement.
21
-
22
- ## Place dans SIA UI
23
-
24
- ```
25
- @sia-ui/tokens valeurs : couleurs, espacements, mouvement, vocabulaire
26
- @sia-ui/utils fonctions sans dépendance
27
- @sia-ui/api client HTTP — indépendant de l'interface
28
- @sia-ui/headless comportement, avec React, sans plateforme
29
- @sia-ui/react primitives de runtime DOM
30
- @sia-ui/react-web composants DOM
31
- @sia-ui/react-native composants natifs, à venir
32
- ```
33
-
34
- Une chose s'écrit au niveau le plus bas où elle a du sens, et une seule fois.
35
- Voir [la documentation](https://github.com/BeatJo/sia-ui/tree/main/docs).
36
-
37
- ## Licence
38
-
39
- MIT
1
+ # @sia-ui/utils
2
+
3
+ Les helpers qu'on réécrit d'un projet à l'autre, sans dépendance.
4
+
5
+ ```bash
6
+ pnpm add @sia-ui/utils
7
+ ```
8
+
9
+ ```ts
10
+ import { formatCurrency } from "@sia-ui/utils/currency";
11
+ import { formatTimeAgo } from "@sia-ui/utils/date";
12
+ import { cn } from "@sia-ui/utils/classname";
13
+
14
+ formatCurrency(1500000, { currency: "XAF" }); // "1 500 000 FCFA"
15
+ formatTimeAgo(commande.createdAt); // "il y a 10 minutes"
16
+ ```
17
+
18
+ Cinq modules — `classname`, `currency`, `date`, `events`, `number`, `string` —
19
+ importables séparément pour rester léger. Tout repose sur `Intl`, donc rien à
20
+ embarquer : `XOF` et `XAF` sont formatés correctement.
21
+
22
+ ## Place dans SIA UI
23
+
24
+ ```
25
+ @sia-ui/tokens valeurs : couleurs, espacements, mouvement, vocabulaire
26
+ @sia-ui/utils fonctions sans dépendance
27
+ @sia-ui/api client HTTP — indépendant de l'interface
28
+ @sia-ui/headless comportement, avec React, sans plateforme
29
+ @sia-ui/react primitives de runtime DOM
30
+ @sia-ui/react-web composants DOM
31
+ @sia-ui/react-native composants natifs, à venir
32
+ ```
33
+
34
+ Une chose s'écrit au niveau le plus bas où elle a du sens, et une seule fois.
35
+ Voir [la documentation](https://github.com/BeatJo/sia-ui/tree/main/docs).
36
+
37
+ ## Licence
38
+
39
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia-ui/utils",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Shared utility modules for SIA UI applications.",
5
5
  "keywords": [
6
6
  "sia-ui",