@sia-ui/utils 0.3.1 → 0.3.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.
- package/CHANGELOG.md +6 -0
- package/README.md +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<p align="center"><img src="https://beatjo.github.io/sia-ui-site/brand/sia-ui-logo.png" alt="SIA UI" width="320"></p>
|
|
2
|
+
|
|
1
3
|
# @sia-ui/utils
|
|
2
4
|
|
|
3
5
|
Les helpers qu'on réécrit d'un projet à l'autre, sans dépendance.
|
|
@@ -15,9 +17,9 @@ formatCurrency(1500000, { currency: "XAF" }); // "1 500 000 FCFA"
|
|
|
15
17
|
formatTimeAgo(commande.createdAt); // "il y a 10 minutes"
|
|
16
18
|
```
|
|
17
19
|
|
|
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 :
|
|
20
|
+
Cinq modules — `classname`, `currency`, `date`, `events`, `number`, `string` —
|
|
21
|
+
importables séparément pour rester léger. Tout repose sur `Intl`, donc rien à
|
|
22
|
+
embarquer : la devise et le format suivent la configuration passée.
|
|
21
23
|
|
|
22
24
|
## Place dans SIA UI
|
|
23
25
|
|