@narmi/design_system 4.41.2 → 4.43.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 Tue, 30 Sep 2025 18:40:54 GMT
3
+ * Generated on Thu, 02 Oct 2025 20:37:58 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 30 Sep 2025 18:40:54 GMT
3
+ * Generated on Thu, 02 Oct 2025 20:37:58 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 30 Sep 2025 18:40:54 GMT
3
+ * Generated on Thu, 02 Oct 2025 20:37:58 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 30 Sep 2025 18:40:54 GMT
3
+ * Generated on Thu, 02 Oct 2025 20:37:58 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 Tue Sep 30 2025 18:40:54 GMT+0000 (Coordinated Universal Time)
3
+ * Generated by style-dictionary on Thu Oct 02 2025 20:37:58 GMT+0000 (Coordinated Universal Time)
4
4
  * github.com/narmi/design_system/
5
5
  */
6
6
 
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ export type RadioKind = "normal" | "card" | "input-card" | "checkmark" | "rating";
2
3
  interface RadioProps {
3
4
  /** The `name` attribute for radio input. Use this to group radio sets. */
4
5
  name: string;
@@ -10,7 +11,8 @@ interface RadioProps {
10
11
  * Optional callback when the Radio is checked by a user.
11
12
  * Called with the `value` of the currently checked input
12
13
  */
13
- onCheck: (value: string) => void;
14
+ onCheck?: (value: string) => void;
15
+ kind?: RadioKind;
14
16
  /**
15
17
  * Optional prop to set the Radio to checked, making the Radio fully controlled.
16
18
  * When fully controlled track the checked state by value in the parent component.
@@ -21,10 +23,12 @@ interface RadioProps {
21
23
  isDisabled?: boolean;
22
24
  /** Error text */
23
25
  error?: string;
26
+ /** Applies error style without a message */
27
+ hasError?: boolean;
24
28
  }
25
29
  /**
26
30
  * Single radio input that takes arbitrary JSX children as a label.
27
31
  */
28
- declare const Radio: ({ name, value, isDisabled, onCheck, checked, children, error, }: RadioProps) => import("react/jsx-runtime").JSX.Element;
32
+ declare const Radio: ({ name, value, isDisabled, onCheck, checked, children, error, hasError, kind, }: RadioProps) => import("react/jsx-runtime").JSX.Element;
29
33
  export default Radio;
30
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,GAAI,iEAQZ,UAAU,4CA+BZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,MAAM,SAAS,GACjB,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,WAAW,GACX,QAAQ,CAAC;AAEb,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,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,QAAA,MAAM,KAAK,GAAI,iFAUZ,UAAU,4CA4DZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import React from "react";
2
+ import type { RadioKind } from "../Radio";
3
+ type RadioButtonsLayouts = "row" | "row-start";
4
+ type RadioButtonsKind = RadioKind | RadioButtonsLayouts;
2
5
  interface RadioButtonsProps {
3
6
  /** Map of label strings to input values
4
7
  *
@@ -33,7 +36,7 @@ interface RadioButtonsProps {
33
36
  *
34
37
  * `checkmark` - uses a checkmark icon instead of a faux radio
35
38
  */
36
- kind?: "normal" | "row" | "row-start" | "card" | "input-card" | "checkmark";
39
+ kind?: RadioButtonsKind;
37
40
  /**
38
41
  * Error message. When passed, the `error` prop will
39
42
  * render the radio group in an error state.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/RadioButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,UAAU,iBAAiB;IACzB;;;;;;;;;;SAUK;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AC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;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,GAAI,6GAWnB,iBAAiB,4CAmFnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narmi/design_system",
3
- "version": "4.41.2",
3
+ "version": "4.43.0",
4
4
  "description": "⚡ A consistent look-and-feel and extensible interface for Narmi experiences 🔥",
5
5
  "main": "dist/index.js",
6
6
  "files": [