@metamask-previews/design-system-shared 0.24.0-preview.55a2d71 → 0.24.0-preview.808be73

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.
@@ -6,6 +6,8 @@ exports.BannerAlertSeverity = void 0;
6
6
  * Uses const object with derived union type (ADR-0003).
7
7
  */
8
8
  exports.BannerAlertSeverity = {
9
+ /** Neutral style. */
10
+ Neutral: 'neutral',
9
11
  /** Informational style. */
10
12
  Info: 'info',
11
13
  /** Success style. */
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.types.cjs","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,2BAA2B;IAC3B,IAAI,EAAE,MAAM;IACZ,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { BannerBasePropsShared } from '../BannerBase';\n\n/**\n * BannerAlert severity variants.\n * Uses const object with derived union type (ADR-0003).\n */\nexport const BannerAlertSeverity = {\n /** Informational style. */\n Info: 'info',\n /** Success style. */\n Success: 'success',\n /** Warning style. */\n Warning: 'warning',\n /** Danger style. */\n Danger: 'danger',\n} as const;\n\nexport type BannerAlertSeverity =\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity];\n\n/**\n * BannerAlert shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type BannerAlertPropsShared = BannerBasePropsShared & {\n /**\n * Optional semantic severity.\n *\n * @default BannerAlertSeverity.Info\n */\n severity?: BannerAlertSeverity;\n};\n"]}
1
+ {"version":3,"file":"BannerAlert.types.cjs","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,2BAA2B;IAC3B,IAAI,EAAE,MAAM;IACZ,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { BannerBasePropsShared } from '../BannerBase';\n\n/**\n * BannerAlert severity variants.\n * Uses const object with derived union type (ADR-0003).\n */\nexport const BannerAlertSeverity = {\n /** Neutral style. */\n Neutral: 'neutral',\n /** Informational style. */\n Info: 'info',\n /** Success style. */\n Success: 'success',\n /** Warning style. */\n Warning: 'warning',\n /** Danger style. */\n Danger: 'danger',\n} as const;\n\nexport type BannerAlertSeverity =\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity];\n\n/**\n * BannerAlert shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type BannerAlertPropsShared = BannerBasePropsShared & {\n /**\n * Optional semantic severity.\n *\n * @default BannerAlertSeverity.Info\n */\n severity?: BannerAlertSeverity;\n};\n"]}
@@ -4,6 +4,8 @@ import type { BannerBasePropsShared } from "../BannerBase/index.cjs";
4
4
  * Uses const object with derived union type (ADR-0003).
5
5
  */
6
6
  export declare const BannerAlertSeverity: {
7
+ /** Neutral style. */
8
+ readonly Neutral: "neutral";
7
9
  /** Informational style. */
8
10
  readonly Info: "info";
9
11
  /** Success style. */
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.types.d.cts","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gCAAsB;AAE3D;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,2BAA2B;;IAE3B,qBAAqB;;IAErB,qBAAqB;;IAErB,oBAAoB;;CAEZ,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,GAAG;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"BannerAlert.types.d.cts","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gCAAsB;AAE3D;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,qBAAqB;;IAErB,2BAA2B;;IAE3B,qBAAqB;;IAErB,qBAAqB;;IAErB,oBAAoB;;CAEZ,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,GAAG;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
@@ -4,6 +4,8 @@ import type { BannerBasePropsShared } from "../BannerBase/index.mjs";
4
4
  * Uses const object with derived union type (ADR-0003).
5
5
  */
6
6
  export declare const BannerAlertSeverity: {
7
+ /** Neutral style. */
8
+ readonly Neutral: "neutral";
7
9
  /** Informational style. */
8
10
  readonly Info: "info";
9
11
  /** Success style. */
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.types.d.mts","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gCAAsB;AAE3D;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,2BAA2B;;IAE3B,qBAAqB;;IAErB,qBAAqB;;IAErB,oBAAoB;;CAEZ,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,GAAG;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"BannerAlert.types.d.mts","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gCAAsB;AAE3D;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,qBAAqB;;IAErB,2BAA2B;;IAE3B,qBAAqB;;IAErB,qBAAqB;;IAErB,oBAAoB;;CAEZ,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,GAAG;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
@@ -3,6 +3,8 @@
3
3
  * Uses const object with derived union type (ADR-0003).
4
4
  */
5
5
  export const BannerAlertSeverity = {
6
+ /** Neutral style. */
7
+ Neutral: 'neutral',
6
8
  /** Informational style. */
7
9
  Info: 'info',
8
10
  /** Success style. */
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.types.mjs","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,2BAA2B;IAC3B,IAAI,EAAE,MAAM;IACZ,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { BannerBasePropsShared } from '../BannerBase';\n\n/**\n * BannerAlert severity variants.\n * Uses const object with derived union type (ADR-0003).\n */\nexport const BannerAlertSeverity = {\n /** Informational style. */\n Info: 'info',\n /** Success style. */\n Success: 'success',\n /** Warning style. */\n Warning: 'warning',\n /** Danger style. */\n Danger: 'danger',\n} as const;\n\nexport type BannerAlertSeverity =\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity];\n\n/**\n * BannerAlert shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type BannerAlertPropsShared = BannerBasePropsShared & {\n /**\n * Optional semantic severity.\n *\n * @default BannerAlertSeverity.Info\n */\n severity?: BannerAlertSeverity;\n};\n"]}
1
+ {"version":3,"file":"BannerAlert.types.mjs","sourceRoot":"","sources":["../../../src/types/BannerAlert/BannerAlert.types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,2BAA2B;IAC3B,IAAI,EAAE,MAAM;IACZ,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { BannerBasePropsShared } from '../BannerBase';\n\n/**\n * BannerAlert severity variants.\n * Uses const object with derived union type (ADR-0003).\n */\nexport const BannerAlertSeverity = {\n /** Neutral style. */\n Neutral: 'neutral',\n /** Informational style. */\n Info: 'info',\n /** Success style. */\n Success: 'success',\n /** Warning style. */\n Warning: 'warning',\n /** Danger style. */\n Danger: 'danger',\n} as const;\n\nexport type BannerAlertSeverity =\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity];\n\n/**\n * BannerAlert shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type BannerAlertPropsShared = BannerBasePropsShared & {\n /**\n * Optional semantic severity.\n *\n * @default BannerAlertSeverity.Info\n */\n severity?: BannerAlertSeverity;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconAlertSeverity } from '../IconAlert/IconAlert.types';\n\n/**\n * TitleAlert component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps` / `className`,\n * `twClassName`, and platform `Text` prop passthroughs.\n */\nexport type TitleAlertPropsShared = {\n /**\n * Maps to {@link IconAlert} glyph and theme color for the leading alert icon.\n */\n severity: IconAlertSeverity;\n /**\n * Title row content. The title row renders only when `title` is renderable;\n * `titleStartAccessory` / `titleEndAccessory` alone do not show the row.\n */\n title: ReactNode;\n /**\n * Optional accessory rendered inline to the left of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleStartAccessory?: ReactNode;\n /**\n * Optional accessory rendered inline to the right of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleEndAccessory?: ReactNode;\n /**\n * Optional description below the title row (platform packages render via `TextOrChildren`).\n * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).\n */\n description?: ReactNode;\n};\n"]}
1
+ {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconAlertSeverity } from '../IconAlert/IconAlert.types';\n\n/**\n * TitleAlert component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps` / `className`,\n * `twClassName`, and platform `Text` prop passthroughs.\n */\nexport type TitleAlertPropsShared = {\n /**\n * Maps to {@link IconAlert} glyph and theme color for the leading alert icon.\n */\n severity: IconAlertSeverity;\n /**\n * Title row content. The title row renders only when `title` is renderable.\n */\n title: ReactNode;\n /**\n * Optional description below the title row (platform packages render via `TextOrChildren`).\n * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).\n */\n description?: ReactNode;\n};\n"]}
@@ -11,20 +11,9 @@ export type TitleAlertPropsShared = {
11
11
  */
12
12
  severity: IconAlertSeverity;
13
13
  /**
14
- * Title row content. The title row renders only when `title` is renderable;
15
- * `titleStartAccessory` / `titleEndAccessory` alone do not show the row.
14
+ * Title row content. The title row renders only when `title` is renderable.
16
15
  */
17
16
  title: ReactNode;
18
- /**
19
- * Optional accessory rendered inline to the left of `title` in the title row.
20
- * Only shown when the title row is shown (i.e. when `title` is renderable).
21
- */
22
- titleStartAccessory?: ReactNode;
23
- /**
24
- * Optional accessory rendered inline to the right of `title` in the title row.
25
- * Only shown when the title row is shown (i.e. when `title` is renderable).
26
- */
27
- titleEndAccessory?: ReactNode;
28
17
  /**
29
18
  * Optional description below the title row (platform packages render via `TextOrChildren`).
30
19
  * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.d.cts","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,yCAAqC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"TitleAlert.types.d.cts","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,yCAAqC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC"}
@@ -11,20 +11,9 @@ export type TitleAlertPropsShared = {
11
11
  */
12
12
  severity: IconAlertSeverity;
13
13
  /**
14
- * Title row content. The title row renders only when `title` is renderable;
15
- * `titleStartAccessory` / `titleEndAccessory` alone do not show the row.
14
+ * Title row content. The title row renders only when `title` is renderable.
16
15
  */
17
16
  title: ReactNode;
18
- /**
19
- * Optional accessory rendered inline to the left of `title` in the title row.
20
- * Only shown when the title row is shown (i.e. when `title` is renderable).
21
- */
22
- titleStartAccessory?: ReactNode;
23
- /**
24
- * Optional accessory rendered inline to the right of `title` in the title row.
25
- * Only shown when the title row is shown (i.e. when `title` is renderable).
26
- */
27
- titleEndAccessory?: ReactNode;
28
17
  /**
29
18
  * Optional description below the title row (platform packages render via `TextOrChildren`).
30
19
  * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.d.mts","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,yCAAqC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"TitleAlert.types.d.mts","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,yCAAqC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconAlertSeverity } from '../IconAlert/IconAlert.types';\n\n/**\n * TitleAlert component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps` / `className`,\n * `twClassName`, and platform `Text` prop passthroughs.\n */\nexport type TitleAlertPropsShared = {\n /**\n * Maps to {@link IconAlert} glyph and theme color for the leading alert icon.\n */\n severity: IconAlertSeverity;\n /**\n * Title row content. The title row renders only when `title` is renderable;\n * `titleStartAccessory` / `titleEndAccessory` alone do not show the row.\n */\n title: ReactNode;\n /**\n * Optional accessory rendered inline to the left of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleStartAccessory?: ReactNode;\n /**\n * Optional accessory rendered inline to the right of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleEndAccessory?: ReactNode;\n /**\n * Optional description below the title row (platform packages render via `TextOrChildren`).\n * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).\n */\n description?: ReactNode;\n};\n"]}
1
+ {"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconAlertSeverity } from '../IconAlert/IconAlert.types';\n\n/**\n * TitleAlert component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps` / `className`,\n * `twClassName`, and platform `Text` prop passthroughs.\n */\nexport type TitleAlertPropsShared = {\n /**\n * Maps to {@link IconAlert} glyph and theme color for the leading alert icon.\n */\n severity: IconAlertSeverity;\n /**\n * Title row content. The title row renders only when `title` is renderable.\n */\n title: ReactNode;\n /**\n * Optional description below the title row (platform packages render via `TextOrChildren`).\n * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).\n */\n description?: ReactNode;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-shared",
3
- "version": "0.24.0-preview.55a2d71",
3
+ "version": "0.24.0-preview.808be73",
4
4
  "description": "Shared types for design system libraries",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -70,7 +70,7 @@
70
70
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
71
71
  },
72
72
  "engines": {
73
- "node": ">=20"
73
+ "node": ">=24"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public",