@narmi/design_system 3.36.1 → 3.37.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 13 May 2024 22:48:28 GMT
3
+ * Generated on Tue, 14 May 2024 14:13:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 13 May 2024 22:48:28 GMT
3
+ * Generated on Tue, 14 May 2024 14:13:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 13 May 2024 22:48:28 GMT
3
+ * Generated on Tue, 14 May 2024 14:13:45 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 13 May 2024 22:48:28 GMT
3
+ * Generated on Tue, 14 May 2024 14:13:45 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DO NOT EDIT
3
- * Generated by style-dictionary on Mon May 13 2024 22:48:28 GMT+0000 (Coordinated Universal Time)
3
+ * Generated by style-dictionary on Tue May 14 2024 14:13:45 GMT+0000 (Coordinated Universal Time)
4
4
  * github.com/narmi/design_system/
5
5
  */
6
6
 
@@ -24,18 +24,42 @@ declare module "Slider/Thumbs" {
24
24
  export default Thumbs;
25
25
  }
26
26
  declare module "Slider/index" {
27
- interface Props {
27
+ export interface Props {
28
+ /** Visually hidden label to describe the input */
28
29
  label: string;
29
- output?: string;
30
- higherName?: string;
31
- lowerName?: string;
32
- formatOptions: Intl.NumberFormatOptions;
33
- maxValue: number;
34
- defaultValue?: number[];
35
- step: number;
30
+ /** `name` attribute passed to the lower value input thumb */
31
+ lowerName: string;
32
+ /** `name` attribute passed to the higher value input thumb */
33
+ higherName: string;
34
+ /** value of the input */
36
35
  value?: number[];
36
+ /** change callback invoked when the value of the `input` changes */
37
37
  onChange?: (value: number[]) => void;
38
+ /** optionally format the input value */
39
+ formatOptions?: Intl.NumberFormatOptions;
40
+ /** lower bound for the input, inclusive */
41
+ minValue?: number;
42
+ /** upper bound for the input, inclusive */
43
+ maxValue?: number;
44
+ /** if uncontrolled, intial value for the input */
45
+ defaultValue?: number[];
46
+ /** increment number for the range input */
47
+ step?: number;
48
+ /**
49
+ * Text rendered within an `<output>` element.
50
+ * If omitted, will default to `Between {lower} and {upper}`
51
+ */
52
+ output?: string;
38
53
  }
39
54
  const Slider: (props: Props) => import("react/jsx-runtime").JSX.Element;
40
55
  export default Slider;
41
56
  }
57
+ declare module "Slider/index.stories" {
58
+ export const Overview: any;
59
+ export const AsControlled: () => import("react/jsx-runtime").JSX.Element;
60
+ const _default: {
61
+ title: string;
62
+ component: (props: import("Slider").Props) => import("react/jsx-runtime").JSX.Element;
63
+ };
64
+ export default _default;
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narmi/design_system",
3
- "version": "3.36.1",
3
+ "version": "3.37.0",
4
4
  "description": "⚡ A consistent look-and-feel and extensible interface for Narmi experiences 🔥",
5
5
  "main": "dist/index.js",
6
6
  "files": [