@narmi/design_system 4.5.3 → 4.6.1
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/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +2 -2
- package/dist/index.js.map +1 -1
- package/dist/style.css +3 -3
- package/dist/style.css.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.js +1 -1
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/Button/index.d.ts.map +1 -1
- package/dist/types/Checkbox/index.d.ts +54 -0
- package/dist/types/Checkbox/index.d.ts.map +1 -0
- package/dist/types/ContentCard/index.d.ts +51 -0
- package/dist/types/ContentCard/index.d.ts.map +1 -0
- package/dist/types/LoadingSkeleton/index.d.ts +34 -0
- package/dist/types/LoadingSkeleton/index.d.ts.map +1 -0
- package/dist/types/Radio/index.d.ts +30 -0
- package/dist/types/Radio/index.d.ts.map +1 -0
- package/dist/types/RadioButtons/index.d.ts +74 -0
- package/dist/types/RadioButtons/index.d.ts.map +1 -0
- package/dist/types/Tabs/Arrow.d.ts +8 -0
- package/dist/types/Tabs/Arrow.d.ts.map +1 -0
- package/dist/types/Tabs/TabsList.d.ts +13 -0
- package/dist/types/Tabs/TabsList.d.ts.map +1 -0
- package/dist/types/Tabs/TabsPanel.d.ts +12 -0
- package/dist/types/Tabs/TabsPanel.d.ts.map +1 -0
- package/dist/types/Tabs/TabsTab.d.ts +11 -0
- package/dist/types/Tabs/TabsTab.d.ts.map +1 -0
- package/dist/types/Tabs/context.d.ts +14 -0
- package/dist/types/Tabs/context.d.ts.map +1 -0
- package/dist/types/Tabs/index.d.ts +37 -0
- package/dist/types/Tabs/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -6
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +19 -16
package/dist/tokens/js/colors.js
CHANGED
|
@@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
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface CheckboxProps {
|
|
3
|
+
/** Content of `label` element */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Markdown to use in place of the `label` field */
|
|
6
|
+
markdownLabel?: string;
|
|
7
|
+
/** Change callback invoked when the value of the `input` changes */
|
|
8
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
/** `id` attribute of `input` */
|
|
10
|
+
id?: string | number;
|
|
11
|
+
/** `name` attribute of `input` */
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* ⚠️ DEPRECATED
|
|
15
|
+
*
|
|
16
|
+
* Uncontrolled Checkbox props will be removed in a future release.
|
|
17
|
+
* Use `checked` instead to use Checkbox as a fully controlled input.
|
|
18
|
+
*/
|
|
19
|
+
defaultChecked?: boolean;
|
|
20
|
+
/** Sets the checkbox checked value */
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Checkbox renders in
|
|
24
|
+
* [indeterminate state](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes)
|
|
25
|
+
* when `true`.
|
|
26
|
+
*/
|
|
27
|
+
indeterminate?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Checkbox renders as disabled and ignores click/check events.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** Sets the `value` attribute of the `input` */
|
|
33
|
+
value?: string;
|
|
34
|
+
/** Sets whether the checkbox has an error. To be used with multiple checkboxes */
|
|
35
|
+
hasError?: boolean;
|
|
36
|
+
/** Text of error message to display under the checkbox */
|
|
37
|
+
error?: string;
|
|
38
|
+
/** Optional value for `data-testid` attribute */
|
|
39
|
+
testId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* `normal` - visually matches a checkbox input
|
|
42
|
+
*
|
|
43
|
+
* `condensed` - like `normal`, but without added top margin when there are multiple checkboxes
|
|
44
|
+
*
|
|
45
|
+
* `card` - visually present as a toggleable card
|
|
46
|
+
*/
|
|
47
|
+
kind?: "normal" | "condensed" | "card" | "table";
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Narmi styled checkbox with built-in label.
|
|
51
|
+
*/
|
|
52
|
+
declare const Checkbox: ({ label, markdownLabel, onChange, id, name, defaultChecked, checked, disabled, indeterminate, value, hasError, error, kind, testId, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export default Checkbox;
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Checkbox/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,UAAU,aAAa;IACrB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,gCAAgC;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;CAClD;AAED;;GAEG;AACH,QAAA,MAAM,QAAQ,kJAgBX,aAAa,4CA0Gf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ContentCardProps {
|
|
3
|
+
/** Accepts any content as children */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Amount of padding to add on all sides of card.
|
|
7
|
+
* For custom padding control, use `none` and compose your own element(s)
|
|
8
|
+
* in ContentCard children.
|
|
9
|
+
*/
|
|
10
|
+
paddingSize?: "xs" | "s" | "m" | "l" | "xl" | "none";
|
|
11
|
+
/**
|
|
12
|
+
* Kind of card to render.
|
|
13
|
+
*
|
|
14
|
+
* `plain`: flat, rounded rect
|
|
15
|
+
*
|
|
16
|
+
* `elevated`: rounded rect with shadow
|
|
17
|
+
*
|
|
18
|
+
* `toggle`: toggle button (checkbox-like)
|
|
19
|
+
*
|
|
20
|
+
* `button`: action button (button-like)
|
|
21
|
+
*
|
|
22
|
+
* `bordered`: flat, rounded rect with border
|
|
23
|
+
*/
|
|
24
|
+
kind?: "plain" | "elevated" | "toggle" | "button" | "bordered" | "interactive";
|
|
25
|
+
/**
|
|
26
|
+
* Amount of border radius to add on all sides of card.
|
|
27
|
+
*/
|
|
28
|
+
radiusSize?: "s" | "m" | "l";
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Only applicable for `toggle` type.
|
|
32
|
+
* Renders card in visually selected state with appropriate attributes.
|
|
33
|
+
*/
|
|
34
|
+
isSelected?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Only applicable for `toggle` type.
|
|
37
|
+
* Renders card in visually selected state with appropriate attributes.
|
|
38
|
+
*/
|
|
39
|
+
testId?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Narmi style content containers, with support for rendering as an interactive button.
|
|
43
|
+
*/
|
|
44
|
+
declare const ContentCard: {
|
|
45
|
+
({ kind, paddingSize, onClick, isSelected, children, testId, radiusSize, }: ContentCardProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
propTypes: {
|
|
47
|
+
onClick: (props: any, propName: any) => Error;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export default ContentCard;
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ContentCard/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,gBAAgB;IACxB,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,CAAC;IACrD;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EACD,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,aAAa,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,QAAA,MAAM,WAAW;gFAQd,gBAAgB;;;;CAyClB,CAAC;AA4BF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LoadingSkeletonProps {
|
|
3
|
+
/** Loadable content area - will render normally unless `isLoading` is true. */
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** When `true`, the child content is replaced by the skeleton imitation. */
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
/** The mask type that best represents the content. */
|
|
8
|
+
content?: "paragraph" | "headerText";
|
|
9
|
+
/**
|
|
10
|
+
* Only applies if `content` prop is set to `paragraph`.
|
|
11
|
+
* The number of lines to be shown by the skeleton.
|
|
12
|
+
*/
|
|
13
|
+
lines?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Only applies if `content` prop is set to `paragraph`.
|
|
16
|
+
* When `true`, a skeletal title row will be shown above the first line.
|
|
17
|
+
*/
|
|
18
|
+
showTitle?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Only applies if `content` prop is set to `headerText`.
|
|
21
|
+
* The size of the skeletal header text.
|
|
22
|
+
*/
|
|
23
|
+
size?: "small" | "medium" | "large";
|
|
24
|
+
/** Optional value for `data-testid` attribute */
|
|
25
|
+
testId?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Used to mask a limited block of loadable content. When `isLoading` is set to true,
|
|
29
|
+
* the content area will be replaced by a shadowed, skeletal imitation of the
|
|
30
|
+
* pending content.
|
|
31
|
+
*/
|
|
32
|
+
declare const LoadingSkeleton: ({ children, isLoading, content, lines, showTitle, size, testId, }: LoadingSkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default LoadingSkeleton;
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/LoadingSkeleton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,oBAAoB;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IACrC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,QAAA,MAAM,eAAe,sEAQlB,oBAAoB,4CAgBtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface RadioProps {
|
|
3
|
+
/** The `name` attribute for radio input. Use this to group radio sets. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** The `value attribute for the radio input */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Custom label for the Radio input*/
|
|
8
|
+
children: React.ReactNode | string;
|
|
9
|
+
/**
|
|
10
|
+
* Optional callback when the Radio is checked by a user.
|
|
11
|
+
* Called with the `value` of the currently checked input
|
|
12
|
+
*/
|
|
13
|
+
onCheck: (value: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Optional prop to set the Radio to checked, making the Radio fully controlled.
|
|
16
|
+
* When fully controlled track the checked state by value in the parent component.
|
|
17
|
+
* e.g. `checked={currentlyCheckedValue === thisRadioValue}`
|
|
18
|
+
*/
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
/** Disables the input when `true` */
|
|
21
|
+
isDisabled?: boolean;
|
|
22
|
+
/** Error text */
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Single radio input that takes arbitrary JSX children as a label.
|
|
27
|
+
*/
|
|
28
|
+
declare const Radio: ({ name, value, isDisabled, onCheck, checked, children, error, }: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export default Radio;
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,UAAU;IAClB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACnC;;;OAGG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,QAAA,MAAM,KAAK,oEAQR,UAAU,4CA+BZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type OptionType = {
|
|
3
|
+
value: string;
|
|
4
|
+
details?: string;
|
|
5
|
+
} | string;
|
|
6
|
+
interface RadioButtonsProps {
|
|
7
|
+
/** Map of label strings to input values
|
|
8
|
+
*
|
|
9
|
+
* ```
|
|
10
|
+
* type OptionType = {
|
|
11
|
+
* value: string;
|
|
12
|
+
* details?: string;
|
|
13
|
+
* }
|
|
14
|
+
* | string;
|
|
15
|
+
* ```
|
|
16
|
+
* */
|
|
17
|
+
options: Record<string, OptionType>;
|
|
18
|
+
/** name of radiogroup */
|
|
19
|
+
name: string;
|
|
20
|
+
/** initially selected option by input value (uncontrolled) */
|
|
21
|
+
initialValue?: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* selected option by input value (fully controlled)
|
|
24
|
+
* When passing a `value` prop, you must use the `onChange`
|
|
25
|
+
* handler to update the `value`
|
|
26
|
+
*/
|
|
27
|
+
value?: string;
|
|
28
|
+
/** change callback invoked with input value */
|
|
29
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
30
|
+
/**
|
|
31
|
+
* `normal` - display input and label normally
|
|
32
|
+
*
|
|
33
|
+
* `card` - display input and label as a toggleable card
|
|
34
|
+
*
|
|
35
|
+
* `input-card` - display toggleable card with a faux radio input
|
|
36
|
+
*
|
|
37
|
+
* `checkmark` - uses a checkmark icon instead of a faux radio
|
|
38
|
+
*/
|
|
39
|
+
kind?: "normal" | "row" | "row-start" | "card" | "input-card" | "checkmark";
|
|
40
|
+
/**
|
|
41
|
+
* Error message. When passed, the `error` prop will
|
|
42
|
+
* render the radio group in an error state.
|
|
43
|
+
*/
|
|
44
|
+
error?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Always show details. When `true`, the details will
|
|
47
|
+
* always be shown, regardless of if an radio button is selected.
|
|
48
|
+
* When `false`, the details will only be shown when a radio
|
|
49
|
+
* button is selected. Defaults to `false`
|
|
50
|
+
*/
|
|
51
|
+
alwaysShowDetails?: boolean;
|
|
52
|
+
/** Optional value for `data-testid` attribute */
|
|
53
|
+
testId?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
The Narmi RadioButtons component expects an "options" Prop, which is an object where the keys are the radiobutton
|
|
57
|
+
labels and the values are the radiobutton values. An "initialvalue" Prop can be passed to set a default checked
|
|
58
|
+
radiobutton.
|
|
59
|
+
```
|
|
60
|
+
options={{
|
|
61
|
+
"First Label": { value: "firstValue", details: "This is the explanation of the firstValue" },
|
|
62
|
+
"Second Label": { value: "secondValue", details: "This is the explanation of the secondValue" }
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The other options configuration without details would be:
|
|
67
|
+
```
|
|
68
|
+
options={{ "First Label": "firstValue", "Second Label": "secondValue" }}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
declare const RadioButtons: ({ options, name, initialValue, value, kind, onChange, testId, error, alwaysShowDetails, ...containerProps }: RadioButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export default RadioButtons;
|
|
74
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/RadioButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,KAAK,UAAU,GACX;IACE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GACD,MAAM,CAAC;AAEX,UAAU,iBAAiB;IACzB;;;;;;;;;SASK;IACL,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;IAC5E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;EAgBE;AACF,QAAA,MAAM,YAAY,gHAWf,iBAAiB,4CA2GnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arrow.d.ts","sourceRoot":"","sources":["../../../src/Tabs/Arrow.tsx"],"names":[],"mappings":"AAKA,UAAU,UAAU;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,QAAA,MAAM,KAAK,iCAAkC,UAAU,4CAyBtD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TabsListProps {
|
|
3
|
+
/** Children must be of type `Tabs.Tab` */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Amount of padding to apply on the x axis to indent tabs
|
|
7
|
+
* from edges of the `Tabs.Panel`
|
|
8
|
+
* */
|
|
9
|
+
xPadding?: "xxs" | "xs" | "s" | "m" | "l" | "xl" | "none";
|
|
10
|
+
}
|
|
11
|
+
declare const TabsList: ({ children, xPadding }: TabsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default TabsList;
|
|
13
|
+
//# sourceMappingURL=TabsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../src/Tabs/TabsList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAM1E,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;SAGK;IACL,QAAQ,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,CAAC;CAC3D;AAED,QAAA,MAAM,QAAQ,2BAAqC,aAAa,4CAqI/D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TabsPanelProps {
|
|
3
|
+
/** The content of the tab panel (any node type) */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** String ID used to link the `Tabs.Panel` to a `Tabs.Tab` */
|
|
6
|
+
tabId: string;
|
|
7
|
+
/** Optional value for `data-testid` attribute */
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const TabsPanel: ({ children, tabId, testId }: TabsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default TabsPanel;
|
|
12
|
+
//# sourceMappingURL=TabsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabsPanel.d.ts","sourceRoot":"","sources":["../../../src/Tabs/TabsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,SAAS,gCAAiC,cAAc,4CA4B7D,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface TabsTabProps {
|
|
2
|
+
/** Label of the tab button */
|
|
3
|
+
label: string;
|
|
4
|
+
/** String ID used to link the `Tabs.Tab` to a `Tabs.Panel` */
|
|
5
|
+
tabId: string;
|
|
6
|
+
/** Optional value for `data-testid` attribute */
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const TabsTab: ({ label, tabId, testId }: TabsTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default TabsTab;
|
|
11
|
+
//# sourceMappingURL=TabsTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabsTab.d.ts","sourceRoot":"","sources":["../../../src/Tabs/TabsTab.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,OAAO,6BAA8B,YAAY,4CAyCtD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface TabsContextProps {
|
|
2
|
+
tabIds: string[];
|
|
3
|
+
setTabIds: (ids: string[]) => void;
|
|
4
|
+
currentIndex: number;
|
|
5
|
+
hasPanels: boolean;
|
|
6
|
+
setHasPanels: (hasPanels: boolean) => void;
|
|
7
|
+
changeTabs: (index: string) => void;
|
|
8
|
+
tabsListRef: React.RefObject<HTMLElement>;
|
|
9
|
+
isResponsive: boolean;
|
|
10
|
+
setIsResponsive: (isResponsive: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const TabsContext: import("react").Context<TabsContextProps>;
|
|
13
|
+
export default TabsContext;
|
|
14
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/Tabs/context.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAEnC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAE3C,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAE1C,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAED,QAAA,MAAM,WAAW,2CAmBf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface TabsProps {
|
|
3
|
+
/**
|
|
4
|
+
* Direct children of `Tabs` should be one of:
|
|
5
|
+
* `Tabs.List` or `Tabs.Panel`
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Sets _default_ tab selection by index in source order */
|
|
9
|
+
defaultSelectedIndex?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Sets selected tab by index, making Tabs **fully controlled**.
|
|
12
|
+
* When using this prop, you must use the `onTabChange` callback
|
|
13
|
+
* to update the value of this prop to update the selected tab.
|
|
14
|
+
*/
|
|
15
|
+
selectedIndex?: number;
|
|
16
|
+
/** Callback invoked with the index of the tab the user is moving selection to */
|
|
17
|
+
onTabChange?: (index: number) => void;
|
|
18
|
+
/** Shows bottom border when `true` */
|
|
19
|
+
hasBorder?: boolean;
|
|
20
|
+
/** Optional value for `data-testid` attribute */
|
|
21
|
+
testId?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Component that handles tabs and tab panels based on WAI-ARIA [best practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel)
|
|
25
|
+
* for the "tabs" design pattern.
|
|
26
|
+
*
|
|
27
|
+
* The `Tabs` component manages its own state, changing the visible tab panel based
|
|
28
|
+
* on user events. Use the `onTabChange` callback to add any custom behaviors.
|
|
29
|
+
*/
|
|
30
|
+
declare const Tabs: {
|
|
31
|
+
({ children, defaultSelectedIndex, selectedIndex, onTabChange, hasBorder, testId, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
List: ({ children, xPadding }: import("./TabsList").TabsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
Tab: ({ label, tabId, testId }: import("./TabsTab").TabsTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
Panel: ({ children, tabId, testId }: import("./TabsPanel").TabsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
};
|
|
36
|
+
export default Tabs;
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Tabs/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,UAAU,SAAS;IACjB;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4DAA4D;IAC5D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,IAAI;yFAOP,SAAS;;;;CAoEX,CAAC;AAMF,eAAe,IAAI,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,19 +5,23 @@ import Alert from "./Alert";
|
|
|
5
5
|
import AutocompleteModal from "./AutocompleteModal";
|
|
6
6
|
import Avatar from "./Avatar";
|
|
7
7
|
import Button from "./Button";
|
|
8
|
+
import ContentCard from "./ContentCard";
|
|
9
|
+
import Checkbox from "./Checkbox";
|
|
8
10
|
import ContextMenu from "./ContextMenu";
|
|
9
11
|
import Dialog from "./Dialog";
|
|
10
12
|
import DisabledShim from "./DisabledShim";
|
|
13
|
+
import Radio from "./Radio";
|
|
14
|
+
import RadioButtons from "./RadioButtons";
|
|
11
15
|
import Row from "./Row";
|
|
12
16
|
import SeparatorList from "./SeparatorList";
|
|
13
17
|
import Slider from "./Slider";
|
|
14
18
|
import Snackbar from "./Snackbar";
|
|
19
|
+
import LoadingSkeleton from "./LoadingSkeleton";
|
|
20
|
+
import Tabs from "./Tabs";
|
|
15
21
|
import Tooltip from "./Tooltip";
|
|
16
22
|
/**
|
|
17
23
|
* Untyped Components
|
|
18
24
|
*/
|
|
19
|
-
declare const Checkbox: any;
|
|
20
|
-
declare const ContentCard: any;
|
|
21
25
|
declare const CollapsibleCard: any;
|
|
22
26
|
declare const Combobox: any;
|
|
23
27
|
declare const DateInput: any;
|
|
@@ -30,18 +34,15 @@ declare const FormSection: any;
|
|
|
30
34
|
declare const IconButton: any;
|
|
31
35
|
declare const Input: any;
|
|
32
36
|
declare const LoadingShim: any;
|
|
33
|
-
declare const LoadingSkeleton: any;
|
|
34
37
|
declare const MenuButton: any;
|
|
35
38
|
declare const MultiSelect: any;
|
|
36
39
|
declare const Pagination: any;
|
|
37
40
|
declare const PlainButton: any;
|
|
38
41
|
declare const ProgressBar: any;
|
|
39
42
|
declare const Popover: any;
|
|
40
|
-
declare const RadioButtons: any;
|
|
41
43
|
declare const ResponsiveFlex: any;
|
|
42
44
|
declare const Select: any;
|
|
43
45
|
declare const Sidebar: any;
|
|
44
|
-
declare const Tabs: any;
|
|
45
46
|
declare const Tag: any;
|
|
46
47
|
declare const TextInput: any;
|
|
47
48
|
declare const TimelineEvent: any;
|
|
@@ -53,5 +54,5 @@ declare const useLockBodyScroll: any;
|
|
|
53
54
|
declare const formatNumber: any;
|
|
54
55
|
declare const formatDate: any;
|
|
55
56
|
export * from "./types/Icon.types";
|
|
56
|
-
export { AutocompleteModal, Avatar, Button, ContextMenu, DisabledShim, Row, SeparatorList, Slider, Snackbar, Alert,
|
|
57
|
+
export { AutocompleteModal, Avatar, Button, ContentCard, ContextMenu, Checkbox, DisabledShim, Radio, RadioButtons, Row, SeparatorList, Slider, Snackbar, Alert, CollapsibleCard, Combobox, DateInput, Dialog, Drawer, Dropdown, DropdownTrigger, Error, FieldToken, FormSection, IconButton, Input, LoadingShim, LoadingSkeleton, MenuButton, MultiSelect, Pagination, PlainButton, ProgressBar, Popover, ResponsiveFlex, Select, Sidebar, Tabs, Tag, TextInput, TimelineEvent, Toggle, TokenInput, Tooltip, TruncatedAccount, useBreakpoints, useLockBodyScroll, formatNumber, formatDate, };
|
|
57
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAA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AS,KAAA,CAAC;AACxB,OAAO,CAAC,MAAM,aAAa,KAAA,CAAC;AAC5B,OAAO,CAAC,MAAM,MAAM,KAAA,CAAC;AACrB,OAAO,CAAC,MAAM,UAAU,KAAA,CAAC;AACzB,OAAO,CAAC,MAAM,gBAAgB,KAAA,CAAC;AAC/B,OAAO,CAAC,MAAM,cAAc,KAAA,CAAC;AAC7B,OAAO,CAAC,MAAM,iBAAiB,KAAA,CAAC;AAChC,OAAO,CAAC,MAAM,YAAY,KAAA,CAAC;AAC3B,OAAO,CAAC,MAAM,UAAU,KAAA,CAAC;AAEzB,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,GAAG,EACH,aAAa,EACb,MAAM,EACN,QAAQ,EACR,KAAK,EACL,eAAe,EACf,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,eAAe,EACf,KAAK,EACL,UAAU,EACV,WAAW,EACX,UAAU,EACV,KAAK,EACL,WAAW,EACX,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,OAAO,EACP,cAAc,EACd,MAAM,EACN,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,aAAa,EACb,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,GACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narmi/design_system",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "⚡ A consistent look-and-feel and extensible interface for Narmi experiences 🔥",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -46,20 +46,23 @@
|
|
|
46
46
|
"@babel/preset-typescript": "^7.23.2",
|
|
47
47
|
"@commitlint/cli": "^19",
|
|
48
48
|
"@commitlint/config-conventional": "^19.2.2",
|
|
49
|
-
"@mdx-js/mdx": "^1.
|
|
50
|
-
"@mdx-js/react": "^1.
|
|
49
|
+
"@mdx-js/mdx": "^3.1.0",
|
|
50
|
+
"@mdx-js/react": "^3.1.0",
|
|
51
51
|
"@semantic-release/changelog": "^6.0.0",
|
|
52
52
|
"@semantic-release/git": "^10.0.0",
|
|
53
|
-
"@storybook/addon-a11y": "^
|
|
54
|
-
"@storybook/addon-actions": "^
|
|
55
|
-
"@storybook/addon-essentials": "^
|
|
56
|
-
"@storybook/addon-links": "^
|
|
57
|
-
"@storybook/addon-mdx-gfm": "^
|
|
58
|
-
"@storybook/
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
53
|
+
"@storybook/addon-a11y": "^8.6.0-alpha.0",
|
|
54
|
+
"@storybook/addon-actions": "^8.6.0-alpha.0",
|
|
55
|
+
"@storybook/addon-essentials": "^8.6.0-alpha.0",
|
|
56
|
+
"@storybook/addon-links": "^8.6.0-alpha.0",
|
|
57
|
+
"@storybook/addon-mdx-gfm": "^8.6.0-alpha.0",
|
|
58
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
59
|
+
"@storybook/manager-api": "^8.6.0-alpha.0",
|
|
60
|
+
"@storybook/preview-api": "^8.6.0-alpha.0",
|
|
61
|
+
"@storybook/react": "^8.6.0-alpha.0",
|
|
62
|
+
"@storybook/react-webpack5": "^8.6.0-alpha.0",
|
|
63
|
+
"@storybook/theming": "^8.6.0-alpha.0",
|
|
64
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
65
|
+
"@testing-library/react": "^16.2.0",
|
|
63
66
|
"@types/jest": "^27.0.2",
|
|
64
67
|
"@types/react": "^18.2.31",
|
|
65
68
|
"@types/react-dom": "^18.2.14",
|
|
@@ -90,13 +93,13 @@
|
|
|
90
93
|
"prettier": "^3.2.5",
|
|
91
94
|
"pretty-quick": "^4",
|
|
92
95
|
"prop-types": "^15.7.2",
|
|
93
|
-
"react": "^
|
|
96
|
+
"react": "^18.3.1",
|
|
94
97
|
"react-docgen-typescript-plugin": "^1.0.5",
|
|
95
|
-
"react-dom": "^
|
|
98
|
+
"react-dom": "^18.3.1",
|
|
96
99
|
"sass": "^1.45.0",
|
|
97
100
|
"sass-loader": "^12.1.0",
|
|
98
101
|
"semantic-release": "^19.0.0",
|
|
99
|
-
"storybook": "^
|
|
102
|
+
"storybook": "^8.6.0-alpha.0",
|
|
100
103
|
"style-dictionary": "^3.9.2",
|
|
101
104
|
"style-loader": "^0.23.1",
|
|
102
105
|
"tinycolor2": "^1.4.2",
|