@narmi/design_system 4.36.1 → 4.37.0-beta.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.
- package/dist/icons/fonts/icomoon.woff2 +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +2 -2
- 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 +141 -141
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/Button/Spinner.d.ts +17 -0
- package/dist/types/Button/Spinner.d.ts.map +1 -0
- package/dist/types/Snackbar/index.d.ts +5 -11
- package/dist/types/Snackbar/index.d.ts.map +1 -1
- package/dist/types/Table/index.d.ts.map +1 -1
- package/dist/types/Table/util/breakpoint.d.ts.map +1 -1
- package/dist/types/Table/util/tableSectionContext.d.ts +10 -0
- package/dist/types/Table/util/tableSectionContext.d.ts.map +1 -0
- package/dist/types/TableAutocomplete/TableAutocomplete.d.ts +31 -0
- package/dist/types/TableAutocomplete/TableAutocomplete.d.ts.map +1 -0
- package/dist/types/TableField/Input.d.ts +19 -0
- package/dist/types/TableField/Input.d.ts.map +1 -0
- package/dist/types/TableField/index.d.ts +17 -0
- package/dist/types/TableField/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface SpinnerProps {
|
|
2
|
+
/**
|
|
3
|
+
* Square size of spinner as unitless number
|
|
4
|
+
*/
|
|
5
|
+
size?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Width of animated stroke
|
|
8
|
+
*/
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
/**
|
|
11
|
+
* CSS color value
|
|
12
|
+
*/
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
declare const Spinner: ({ size, strokeWidth, color, }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default Spinner;
|
|
17
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/Button/Spinner.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,OAAO,kCAIV,YAAY,4CAsBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export interface SnackbarProps {
|
|
3
|
-
children: React.ReactNode[];
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
}
|
|
6
2
|
/**
|
|
7
3
|
* A status toolbar for multiple selection in a table.
|
|
8
4
|
* Intended to be rendered in fixed position over a table.
|
|
9
5
|
*/
|
|
10
6
|
declare const Snackbar: {
|
|
11
|
-
({ children, isActive }:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
({ children, isActive, }: React.PropsWithChildren<{
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
ButtonGroup: ({ children }: React.PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
15
11
|
Divider: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
Text: ({ children }:
|
|
17
|
-
children: React.ReactNode[];
|
|
18
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Text: ({ children }: React.PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
19
13
|
};
|
|
20
14
|
export default Snackbar;
|
|
21
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Snackbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Snackbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkD1B;;;GAGG;AACH,QAAA,MAAM,QAAQ;8BAGX,KAAK,CAAC,iBAAiB,CAAC;QACzB,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;gCArByC,KAAK,CAAC,iBAAiB;;yBAP9B,KAAK,CAAC,iBAAiB;CA0C1D,CAAC;AAKF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACrD,0EAA0E;AAC1E,MAAM,MAAM,kBAAkB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,qEAAqE;AACrE,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAE,QAAQ,CAAC;IACZ,CAAC,EAAE,QAAQ,CAAC;IACZ,CAAC,EAAE,QAAQ,CAAC;CACb,CAAC;AAEF,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;;;OAOG;IACH,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,C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3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/Table/util/breakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/Table/util/breakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAW/D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,gBAAgB,EAC7B,SAAS,kBAAkB,KAC1B,OAG6D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface TableSectionContextProps {
|
|
2
|
+
section: "header" | "body";
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Used to inform rows and cells which area of the table they're
|
|
6
|
+
* being rendered in, so we can apply the appropriate aria roles.
|
|
7
|
+
*/
|
|
8
|
+
declare const TableSectionContext: import("react").Context<TableSectionContextProps>;
|
|
9
|
+
export default TableSectionContext;
|
|
10
|
+
//# sourceMappingURL=tableSectionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableSectionContext.d.ts","sourceRoot":"","sources":["../../../../src/Table/util/tableSectionContext.ts"],"names":[],"mappings":"AAEA,UAAU,wBAAwB;IAChC,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,mDAEvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TableAutocompleteItem = React.ReactElement;
|
|
3
|
+
export interface TableAutocompleteProps {
|
|
4
|
+
/** Input label for accessibility */
|
|
5
|
+
label: string;
|
|
6
|
+
/** TableAutocomplete.Item children */
|
|
7
|
+
items: TableAutocompleteItem[];
|
|
8
|
+
selectedItem: TableAutocompleteItem | null;
|
|
9
|
+
/** Selection change event callback */
|
|
10
|
+
onChange?: (item: TableAutocompleteItem) => void;
|
|
11
|
+
/** Input change event callback */
|
|
12
|
+
onInputChange?: (value: string) => void;
|
|
13
|
+
/** Optional pinned footer content; use for action buttons */
|
|
14
|
+
footerContent?: React.ReactNode;
|
|
15
|
+
/** Input placeholder text */
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/** Input value */
|
|
18
|
+
inputValue?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const itemToString: (item: TableAutocompleteItem) => any;
|
|
21
|
+
export declare const filterItems: (items: TableAutocompleteItem[], inputValue: string) => TableAutocompleteItem[];
|
|
22
|
+
/**
|
|
23
|
+
* A simplified Combobox component for table inline editing.
|
|
24
|
+
* Useful for inline editing of table items where we want to
|
|
25
|
+
* provide an autocomplete of possible values with a native input.
|
|
26
|
+
*
|
|
27
|
+
* Allows single selection only. The selected value is controlled, allowing the selection to render in the trigger.
|
|
28
|
+
*/
|
|
29
|
+
declare const TableAutocomplete: ({ label, items: allItems, selectedItem: selectedItemProp, onChange, onInputChange, footerContent, placeholder, inputValue, }: TableAutocompleteProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default TableAutocomplete;
|
|
31
|
+
//# sourceMappingURL=TableAutocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableAutocomplete.d.ts","sourceRoot":"","sources":["../../../src/TableAutocomplete/TableAutocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAAC;AAEvD,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,YAAY,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC3C,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,6DAA6D;IAC7D,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,qBAAqB,QACN,CAAC;AAEnD,eAAO,MAAM,WAAW,GAAI,OAAO,qBAAqB,EAAE,EAAE,YAAY,MAAM,4BAG3E,CAAC;AAEJ;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,GAAI,8HASxB,sBAAsB,4CA0FxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface TableFieldInputProps {
|
|
2
|
+
/** Current value of the input */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Callback when input value changes */
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
/** Hidden label for accessibility - read by screen readers */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Optional placeholder text */
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Whether the input is disabled */
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A text input component specifically designed for use within Table.Cell.
|
|
15
|
+
* Provides consistent styling and behavior for editable table cells.
|
|
16
|
+
*/
|
|
17
|
+
declare const Input: ({ value, onChange, label, isDisabled, placeholder, }: TableFieldInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default Input;
|
|
19
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/TableField/Input.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,KAAK,GAAI,sDAMZ,oBAAoB,4CAatB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Namespace for table-specific input components.
|
|
3
|
+
* These components are designed to be used within Table.Cell elements
|
|
4
|
+
* and provide consistent styling and behavior for editable tables.
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* ```jsx
|
|
8
|
+
* <Table.Cell>
|
|
9
|
+
* <TableField.Input value="John" onInputChange={handleChange} label="Name" />
|
|
10
|
+
* </Table.Cell>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
declare const TableField: {
|
|
14
|
+
Input: ({ value, onChange, label, isDisabled, placeholder, }: import("./Input").TableFieldInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
export default TableField;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TableField/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,UAAU;;CAEf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|