@narmi/design_system 3.48.0-beta.2 → 3.48.0-beta.3

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 (35) hide show
  1. package/dist/deprecations.json +16 -0
  2. package/dist/docs/Formatters.md +55 -0
  3. package/dist/docs/classManifest.json +1342 -0
  4. package/dist/fonts/8b53d5067b416b155cc8.woff +0 -0
  5. package/dist/fonts/d819207ee2e092cc2735.woff2 +0 -0
  6. package/dist/icons/Icons.stories.jsx +74 -0
  7. package/dist/icons/README.md +29 -0
  8. package/dist/icons/compat-icons.json +327 -0
  9. package/dist/icons/fonts/icomoon.svg +343 -0
  10. package/dist/icons/fonts/icomoon.ttf +0 -0
  11. package/dist/icons/fonts/icomoon.woff +0 -0
  12. package/dist/icons/fonts/icomoon.woff2 +0 -0
  13. package/dist/icons/selection.json +1 -0
  14. package/dist/icons/style.css +1037 -0
  15. package/dist/index.js +3 -0
  16. package/dist/index.js.LICENSE.txt +34 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/style.css +2122 -0
  19. package/dist/style.css.map +1 -0
  20. package/dist/tokens/css/rgbColors.css +38 -0
  21. package/dist/tokens/css/tokens.css +146 -0
  22. package/dist/tokens/js/colors.js +98 -0
  23. package/dist/tokens/js/manifest.js +2688 -0
  24. package/dist/tokens/js/reactNativeWeb.js +190 -0
  25. package/dist/types/SeparatorList/index.d.ts +13 -0
  26. package/dist/types/SeparatorList/index.d.ts.map +1 -0
  27. package/dist/types/Slider/Thumbs.d.ts +3 -0
  28. package/dist/types/Slider/Thumbs.d.ts.map +1 -0
  29. package/dist/types/Slider/index.d.ts +30 -0
  30. package/dist/types/Slider/index.d.ts.map +1 -0
  31. package/dist/types/index.d.ts +5 -0
  32. package/dist/types/index.d.ts.map +1 -0
  33. package/dist/types/types/Icon.types.d.ts +5 -0
  34. package/dist/types/types/Icon.types.d.ts.map +1 -0
  35. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ {
2
+ "cssCustomProperties": [
3
+ "--nds-black",
4
+ "--nds-grey",
5
+ "--nds-medium-grey",
6
+ "--nds-lightest-grey",
7
+ "--nds-smoke-grey",
8
+ "--nds-red",
9
+ "--nds-white",
10
+ "--nds-font-family",
11
+ "nds-header-font",
12
+ "subdued-20-opacity",
13
+ "subdued-10-opacity"
14
+ ],
15
+ "components": ["Dropdown"]
16
+ }
@@ -0,0 +1,55 @@
1
+ ## Functions
2
+
3
+ <dl>
4
+ <dt><a href="#formatDate">formatDate(date, style)</a> ⇒ <code>String</code></dt>
5
+ <dd><p>Wrapper for <code>Intl.DateTimeFormat</code> with options configured for Narmi applications.</p>
6
+ </dd>
7
+ <dt><a href="#formatNumber">formatNumber(input, style)</a> ⇒ <code>String</code></dt>
8
+ <dd><p>Wrapper for <code>Intl.NumberFormat</code> with options configured for Narmi applications.</p>
9
+ </dd>
10
+ </dl>
11
+
12
+ <a name="formatDate"></a>
13
+
14
+ ## formatDate(date, style) ⇒ <code>String</code>
15
+ Wrapper for `Intl.DateTimeFormat` with options configured for Narmi applications.
16
+
17
+ **Kind**: global function
18
+ **Returns**: <code>String</code> - date string formatted for display
19
+
20
+ | Param | Type | Default | Description |
21
+ | --- | --- | --- | --- |
22
+ | date | <code>Date</code> | | native date object |
23
+ | style | <code>String</code> | <code>short</code> | formatting style (`short` or `long`) |
24
+
25
+ **Example**
26
+ ```js
27
+ import { formatDate } from '@narmi/design_system';
28
+
29
+ formatDate(new Date('July 4, 2022'), 'short'); // '7/4/22'
30
+ formatDate(new Date('7/4/2022'), 'long'); // 'July 4, 2022'
31
+ ```
32
+ <a name="formatNumber"></a>
33
+
34
+ ## formatNumber(input, style) ⇒ <code>String</code>
35
+ Wrapper for `Intl.NumberFormat` with options configured for Narmi applications.
36
+
37
+ **Kind**: global function
38
+ **Returns**: <code>String</code> - number string formatted for display
39
+
40
+ | Param | Type | Default | Description |
41
+ | --- | --- | --- | --- |
42
+ | input | <code>String</code> \| <code>Number</code> | | string or number to format into a number string |
43
+ | style | <code>String</code> | <code>currency</code> | format style (`currency` or `percent`) |
44
+
45
+ **Example**
46
+ ```js
47
+ import { formatNumber } from '@narmi/design_system';
48
+
49
+ formatNumber(1234.56, 'currency'); // '$1,234.56'
50
+ formatNumber(34.4, 'currency'); // '$34.40'
51
+ formatNumber(-12, 'currency'); // '-$12.00'
52
+ formatNumber('0.0342', 'percent'); // '3.42%'
53
+ formatNumber(0.0023, 'percent'); // '0.23%'
54
+ formatNumber(0.215555, 'percent'); // '21.56%'
55
+ ```