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

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"]}
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.ba3ace4e",
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",