@narmi/design_system 6.17.0 → 6.18.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.
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ export interface FauxInputProps {
3
+ children: React.ReactNode;
4
+ /** When true, renders active (focused) border styling */
5
+ isActive?: boolean;
6
+ isDisabled?: boolean;
7
+ hasError?: boolean;
8
+ className?: string;
9
+ }
10
+ /**
11
+ * Internal presentational component.
12
+ * Renders a `<button>` styled to look like `.nds-field-input-box`.
13
+ * Used by Field.Select (and future dropdown-based Field variants)
14
+ * as the anchor/trigger element.
15
+ *
16
+ * Accepts arbitrary props (e.g. from downshift's getToggleButtonProps)
17
+ * which are spread onto the underlying `<button>`.
18
+ */
19
+ export declare const FauxInput: React.ForwardRefExoticComponent<Omit<FauxInputProps & Record<string, any>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Field/FauxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,6HAiCrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ export interface FieldSelectItemProps {
3
+ /** The value submitted when this item is selected */
4
+ value: string;
5
+ /** Display content for the option */
6
+ children: React.ReactNode;
7
+ }
8
+ /**
9
+ * Compound child for Field.Select.
10
+ * Renders its children directly — all positioning and interaction
11
+ * is handled by the parent FieldSelect via downshift.
12
+ */
13
+ declare const FieldSelectItem: React.FC<FieldSelectItemProps>;
14
+ export default FieldSelectItem;
15
+ //# sourceMappingURL=SelectItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../../../../src/Field/Select/SelectItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAEnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { FieldProps } from '../types';
3
+ import { FieldSelectItemProps } from './SelectItem';
4
+ export interface FieldSelectProps extends Pick<FieldProps, "id" | "label" | "errors" | "isDisabled"> {
5
+ /** Currently selected value (controlled) */
6
+ value: string;
7
+ /** Called with the new value when selection changes */
8
+ onChange: (value: string) => void;
9
+ /** Placeholder text when no value is selected */
10
+ placeholder?: string;
11
+ /** Field.Select.Item elements */
12
+ children: React.ReactNode;
13
+ }
14
+ /**
15
+ * Field.Select renders a dropdown select styled consistently with Field.Text.
16
+ * It uses downshift's `useSelect` for keyboard navigation and ARIA,
17
+ * and `useDropdownLayer` for dropdown positioning.
18
+ */
19
+ export declare const FieldSelect: {
20
+ ({ label, id, value, onChange, placeholder, errors, isDisabled, children, }: FieldSelectProps): React.JSX.Element;
21
+ displayName: string;
22
+ Item: React.FC<FieldSelectItemProps>;
23
+ };
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Field/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AASpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,UAAU,EACV,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,CACzC;IACC,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AASD;;;;GAIG;AACH,eAAO,MAAM,WAAW;iFASrB,gBAAgB;;;CA4GlB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { MaskitoOptions } from '@maskito/core';
3
+ import { FieldProps } from '../types';
4
+ export interface FieldTextProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "id" | "disabled" | "aria-invalid" | "aria-describedby">, FieldProps {
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ mask?: MaskitoOptions;
8
+ }
9
+ /**
10
+ * Field.Text renders a decorative shell containing a native text input.
11
+ * It automatically handles ARIA orchestration and optional input masking.
12
+ */
13
+ export declare const FieldText: React.ForwardRefExoticComponent<FieldTextProps & React.RefAttributes<HTMLInputElement>>;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Field/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,cACf,SACE,IAAI,CACF,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACzC,UAAU,GACV,OAAO,GACP,IAAI,GACJ,UAAU,GACV,cAAc,GACd,kBAAkB,CACrB,EACD,UAAU;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,yFA0GrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ColVisibilityContextProps } from './colVisibilityContext';
2
+ export type PinStatus = "start" | "end" | undefined;
3
+ /**
4
+ * Determines if a cell at a given column index is pinned.
5
+ */
6
+ export declare function getPinStatus(colIndex: number, ctx: ColVisibilityContextProps): PinStatus;
7
+ //# sourceMappingURL=pinning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pinning.d.ts","sourceRoot":"","sources":["../../../../src/Table/util/pinning.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEpD;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,yBAAyB,GAC7B,SAAS,CAMX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narmi/design_system",
3
- "version": "6.17.0",
3
+ "version": "6.18.0-beta.0",
4
4
  "description": "⚡ A consistent look-and-feel and extensible interface for Narmi experiences 🔥",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/style.css",
@@ -21,7 +21,7 @@
21
21
  "build:types": "node ./scripts/buildTypes.mjs",
22
22
  "build:jsdoc": "node ./scripts/jsDoc.mjs",
23
23
  "build:classdoc": "node ./scripts/classManifest.mjs",
24
- "build:tokens": "style-dictionary build --config=./tokens/config.js",
24
+ "build:tokens": "tsx ./tokens/build.ts",
25
25
  "build:css": "sass src/index.scss dist/style.css --style=compressed --source-map",
26
26
  "build:components": "vite build && node ./scripts/copyAssets.mjs",
27
27
  "build": "npm run build:icon-names && npm run build:tokens && npx tsc && npm run build:css && npm run build:jsdoc && npm run build:components && npm run build:classdoc",
@@ -50,7 +50,7 @@
50
50
  "@babel/preset-env": "^7.15.6",
51
51
  "@babel/preset-react": "^7.14.5",
52
52
  "@babel/preset-typescript": "^7.23.2",
53
- "@commitlint/cli": "^20.5.0",
53
+ "@commitlint/cli": "^21.0.2",
54
54
  "@commitlint/config-conventional": "^20.5.0",
55
55
  "@figma/code-connect": "^1.3.10",
56
56
  "@mdx-js/mdx": "^3.1.0",
@@ -99,8 +99,9 @@
99
99
  "sass": "^1.45.0",
100
100
  "semantic-release": "^25.0.3",
101
101
  "storybook": "^10.4.5",
102
- "style-dictionary": "^3.9.2",
102
+ "style-dictionary": "^5.5.0",
103
103
  "tinycolor2": "^1.4.2",
104
+ "tsx": "^4.23.1",
104
105
  "typescript": "^5.2.2",
105
106
  "use-clipboard-copy": "^0.2.0",
106
107
  "vite": "^8.0.16",