@narmi/design_system 4.37.0-beta.0 → 4.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
3
- * Generated by style-dictionary on Fri Aug 15 2025 17:12:38 GMT-0400 (Eastern Daylight Time)
3
+ * Generated by style-dictionary on Thu Aug 21 2025 17:54:50 GMT+0000 (Coordinated Universal Time)
4
4
  * github.com/narmi/design_system/
5
5
  */
6
6
 
@@ -13,6 +13,8 @@ export interface TableAutocompleteProps {
13
13
  onChange?: (value: string) => void;
14
14
  /** Input change event callback */
15
15
  onInputChange?: (value: string) => void;
16
+ /** Optional custom filter function for items. Signature: (items, inputValue) => filteredItems[] */
17
+ filterItemsByInput?: (items: TableAutocompleteItem[], inputValue: string) => TableAutocompleteItem[];
16
18
  /** Optional pinned footer content; use for action buttons */
17
19
  footerContent?: React.ReactNode;
18
20
  /** Input placeholder text */
@@ -34,7 +36,7 @@ export declare const filterItems: (items: TableAutocompleteItem[], inputValue: s
34
36
  * Allows single selection only.
35
37
  */
36
38
  declare const TableAutocomplete: {
37
- ({ label, children, onChange, onInputChange, footerContent, placeholder, isDisabled, hasError, inputValue, }: TableAutocompleteProps): import("react/jsx-runtime").JSX.Element;
39
+ ({ label, children, onChange, onInputChange, filterItemsByInput, footerContent, placeholder, isDisabled, hasError, inputValue, }: TableAutocompleteProps): import("react/jsx-runtime").JSX.Element;
38
40
  Item: React.FC<import("./Item").TableAutocompleteItemProps>;
39
41
  };
40
42
  export default TableAutocomplete;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TableAutocomplete/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,YAAY,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAAC;A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KAAK,IAAI,CAAC;IACnC,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,mGAAmG;IACnG,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,qBAAqB,EAAE,EAC9B,UAAU,EAAE,MAAM,KACf,qBAAqB,EAAE,CAAC;IAC7B,6DAA6D;IAC7D,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,qBAAqB,GAAG,IAAI,QACX,CAAC;AAErD,eAAO,MAAM,WAAW,GACtB,OAAO,qBAAqB,EAAE,EAC9B,YAAY,MAAM,4BAIjB,CAAC;AAEJ;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB;sIAWpB,sBAAsB;;CAqJxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narmi/design_system",
3
- "version": "4.37.0-beta.0",
3
+ "version": "4.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": [
Binary file
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}