@metamask-previews/design-system-shared 0.1.1-preview.c47bb52 → 0.1.2-preview.3dc70e1

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.2]
11
+
12
+ ### Changed
13
+
14
+ - Updated `@metamask/utils` dependency from 11.8.1 to 11.9.0 ([#867](https://github.com/MetaMask/metamask-design-system/pull/867))
15
+
10
16
  ## [0.1.1]
11
17
 
12
18
  ### Fixed
@@ -20,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
26
  - **Initial release** - MetaMask Design System Shared
21
27
  - Adding CAIP-10 address utilities ([#817](https://github.com/MetaMask/metamask-design-system/pull/817))
22
28
 
23
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.1.1...HEAD
29
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.1.2...HEAD
30
+ [0.1.2]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.1.1...@metamask/design-system-shared@0.1.2
24
31
  [0.1.1]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.1.0...@metamask/design-system-shared@0.1.1
25
32
  [0.1.0]: https://github.com/MetaMask/metamask-design-system/releases/tag/@metamask/design-system-shared@0.1.0
package/dist/index.cjs CHANGED
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateIconSeed = exports.isEthereumAddress = exports.generateSeedNonEthereum = exports.generateSeedEthereum = exports.extractAccountAddress = void 0;
3
+ exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.generateIconSeed = exports.isEthereumAddress = exports.generateSeedNonEthereum = exports.generateSeedEthereum = exports.extractAccountAddress = void 0;
4
4
  var caip_address_1 = require("./utils/caip-address.cjs");
5
5
  Object.defineProperty(exports, "extractAccountAddress", { enumerable: true, get: function () { return caip_address_1.extractAccountAddress; } });
6
6
  Object.defineProperty(exports, "generateSeedEthereum", { enumerable: true, get: function () { return caip_address_1.generateSeedEthereum; } });
7
7
  Object.defineProperty(exports, "generateSeedNonEthereum", { enumerable: true, get: function () { return caip_address_1.generateSeedNonEthereum; } });
8
8
  Object.defineProperty(exports, "isEthereumAddress", { enumerable: true, get: function () { return caip_address_1.isEthereumAddress; } });
9
9
  Object.defineProperty(exports, "generateIconSeed", { enumerable: true, get: function () { return caip_address_1.generateIconSeed; } });
10
+ // BadgeStatus types (ADR-0003 + ADR-0004)
11
+ var BadgeStatus_1 = require("./types/BadgeStatus/index.cjs");
12
+ Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusStatus; } });
13
+ Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusSize; } });
10
14
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAM8B;AAL5B,qHAAA,qBAAqB,OAAA;AACrB,oHAAA,oBAAoB,OAAA;AACpB,uHAAA,uBAAuB,OAAA;AACvB,iHAAA,iBAAiB,OAAA;AACjB,gHAAA,gBAAgB,OAAA","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAM8B;AAL5B,qHAAA,qBAAqB,OAAA;AACrB,oHAAA,oBAAoB,OAAA;AACpB,uHAAA,uBAAuB,OAAA;AACvB,iHAAA,iBAAiB,OAAA;AACjB,gHAAA,gBAAgB,OAAA;AAGlB,0CAA0C;AAC1C,6DAI6B;AAH3B,gHAAA,iBAAiB,OAAA;AACjB,8GAAA,eAAe,OAAA","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n\n// BadgeStatus types (ADR-0003 + ADR-0004)\nexport {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './types/BadgeStatus';\n"]}
package/dist/index.d.cts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed, } from "./utils/caip-address.cjs";
2
+ export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.cjs";
2
3
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B;AAG9B,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B"}
package/dist/index.d.mts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed, } from "./utils/caip-address.mjs";
2
+ export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./types/BadgeStatus/index.mjs";
2
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,GACjB,iCAA6B;AAG9B,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,sCAA4B"}
package/dist/index.mjs CHANGED
@@ -1,2 +1,4 @@
1
1
  export { extractAccountAddress, generateSeedEthereum, generateSeedNonEthereum, isEthereumAddress, generateIconSeed } from "./utils/caip-address.mjs";
2
+ // BadgeStatus types (ADR-0003 + ADR-0004)
3
+ export { BadgeStatusStatus, BadgeStatusSize } from "./types/BadgeStatus/index.mjs";
2
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EACjB,iCAA6B","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EACjB,iCAA6B;AAE9B,0CAA0C;AAC1C,OAAO,EACL,iBAAiB,EACjB,eAAe,EAEhB,sCAA4B","sourcesContent":["export {\n extractAccountAddress,\n generateSeedEthereum,\n generateSeedNonEthereum,\n isEthereumAddress,\n generateIconSeed,\n} from './utils/caip-address';\n\n// BadgeStatus types (ADR-0003 + ADR-0004)\nexport {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './types/BadgeStatus';\n"]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BadgeStatusSize = exports.BadgeStatusStatus = void 0;
4
+ /**
5
+ * BadgeStatus - status
6
+ * Convert from enum to const object (ADR-0003)
7
+ */
8
+ exports.BadgeStatusStatus = {
9
+ /**
10
+ * Represents an active status (Connected)
11
+ */
12
+ Active: 'active',
13
+ /**
14
+ * Represents an inactive status (Connected)
15
+ */
16
+ Inactive: 'inactive',
17
+ /**
18
+ * Represents a disconnected status
19
+ */
20
+ Disconnected: 'disconnected',
21
+ /**
22
+ * Represents a new status
23
+ */
24
+ New: 'new',
25
+ /**
26
+ * Represents an attention status
27
+ */
28
+ Attention: 'attention',
29
+ };
30
+ /**
31
+ * BadgeStatus - size
32
+ * Convert from enum to const object (ADR-0003)
33
+ */
34
+ exports.BadgeStatusSize = {
35
+ /**
36
+ * Represents a medium badge status (8px)
37
+ */
38
+ Md: 'md',
39
+ /**
40
+ * Represents a large badge status (10px)
41
+ */
42
+ Lg: 'lg',
43
+ };
44
+ //# sourceMappingURL=BadgeStatus.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeStatus.types.cjs","sourceRoot":"","sources":["../../../src/types/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,iBAAiB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,YAAY,EAAE,cAAc;IAC5B;;OAEG;IACH,GAAG,EAAE,KAAK;IACV;;OAEG;IACH,SAAS,EAAE,WAAW;CACd,CAAC;AAIX;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC7B;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;CACA,CAAC","sourcesContent":["/**\n * BadgeStatus - status\n * Convert from enum to const object (ADR-0003)\n */\nexport const BadgeStatusStatus = {\n /**\n * Represents an active status (Connected)\n */\n Active: 'active',\n /**\n * Represents an inactive status (Connected)\n */\n Inactive: 'inactive',\n /**\n * Represents a disconnected status\n */\n Disconnected: 'disconnected',\n /**\n * Represents a new status\n */\n New: 'new',\n /**\n * Represents an attention status\n */\n Attention: 'attention',\n} as const;\nexport type BadgeStatusStatus =\n (typeof BadgeStatusStatus)[keyof typeof BadgeStatusStatus];\n\n/**\n * BadgeStatus - size\n * Convert from enum to const object (ADR-0003)\n */\nexport const BadgeStatusSize = {\n /**\n * Represents a medium badge status (8px)\n */\n Md: 'md',\n /**\n * Represents a large badge status (10px)\n */\n Lg: 'lg',\n} as const;\nexport type BadgeStatusSize =\n (typeof BadgeStatusSize)[keyof typeof BadgeStatusSize];\n\n/**\n * BadgeStatus component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type BadgeStatusPropsShared = {\n /**\n * Required prop to control the status of the badge\n * Possible values:\n * - BadgeStatusStatus.Active (Connected)\n * - BadgeStatusStatus.Inactive (Connected)\n * - BadgeStatusStatus.Disconnected\n * - BadgeStatusStatus.New\n * - BadgeStatusStatus.Attention\n */\n status: BadgeStatusStatus;\n /**\n * Optional prop to determine whether the badge should display a border\n *\n * @default true\n */\n hasBorder?: boolean;\n /**\n * Optional prop to control the size of the BadgeStatus\n * Possible values:\n * - BadgeStatusSize.Md (8px)\n * - BadgeStatusSize.Lg (10px)\n *\n * @default BadgeStatusSize.Md\n */\n size?: BadgeStatusSize;\n};\n"]}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * BadgeStatus - status
3
+ * Convert from enum to const object (ADR-0003)
4
+ */
5
+ export declare const BadgeStatusStatus: {
6
+ /**
7
+ * Represents an active status (Connected)
8
+ */
9
+ readonly Active: "active";
10
+ /**
11
+ * Represents an inactive status (Connected)
12
+ */
13
+ readonly Inactive: "inactive";
14
+ /**
15
+ * Represents a disconnected status
16
+ */
17
+ readonly Disconnected: "disconnected";
18
+ /**
19
+ * Represents a new status
20
+ */
21
+ readonly New: "new";
22
+ /**
23
+ * Represents an attention status
24
+ */
25
+ readonly Attention: "attention";
26
+ };
27
+ export type BadgeStatusStatus = (typeof BadgeStatusStatus)[keyof typeof BadgeStatusStatus];
28
+ /**
29
+ * BadgeStatus - size
30
+ * Convert from enum to const object (ADR-0003)
31
+ */
32
+ export declare const BadgeStatusSize: {
33
+ /**
34
+ * Represents a medium badge status (8px)
35
+ */
36
+ readonly Md: "md";
37
+ /**
38
+ * Represents a large badge status (10px)
39
+ */
40
+ readonly Lg: "lg";
41
+ };
42
+ export type BadgeStatusSize = (typeof BadgeStatusSize)[keyof typeof BadgeStatusSize];
43
+ /**
44
+ * BadgeStatus component shared props (ADR-0004)
45
+ * Platform-independent properties shared across React and React Native
46
+ */
47
+ export type BadgeStatusPropsShared = {
48
+ /**
49
+ * Required prop to control the status of the badge
50
+ * Possible values:
51
+ * - BadgeStatusStatus.Active (Connected)
52
+ * - BadgeStatusStatus.Inactive (Connected)
53
+ * - BadgeStatusStatus.Disconnected
54
+ * - BadgeStatusStatus.New
55
+ * - BadgeStatusStatus.Attention
56
+ */
57
+ status: BadgeStatusStatus;
58
+ /**
59
+ * Optional prop to determine whether the badge should display a border
60
+ *
61
+ * @default true
62
+ */
63
+ hasBorder?: boolean;
64
+ /**
65
+ * Optional prop to control the size of the BadgeStatus
66
+ * Possible values:
67
+ * - BadgeStatusSize.Md (8px)
68
+ * - BadgeStatusSize.Lg (10px)
69
+ *
70
+ * @default BadgeStatusSize.Md
71
+ */
72
+ size?: BadgeStatusSize;
73
+ };
74
+ //# sourceMappingURL=BadgeStatus.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeStatus.types.d.cts","sourceRoot":"","sources":["../../../src/types/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;OAQG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * BadgeStatus - status
3
+ * Convert from enum to const object (ADR-0003)
4
+ */
5
+ export declare const BadgeStatusStatus: {
6
+ /**
7
+ * Represents an active status (Connected)
8
+ */
9
+ readonly Active: "active";
10
+ /**
11
+ * Represents an inactive status (Connected)
12
+ */
13
+ readonly Inactive: "inactive";
14
+ /**
15
+ * Represents a disconnected status
16
+ */
17
+ readonly Disconnected: "disconnected";
18
+ /**
19
+ * Represents a new status
20
+ */
21
+ readonly New: "new";
22
+ /**
23
+ * Represents an attention status
24
+ */
25
+ readonly Attention: "attention";
26
+ };
27
+ export type BadgeStatusStatus = (typeof BadgeStatusStatus)[keyof typeof BadgeStatusStatus];
28
+ /**
29
+ * BadgeStatus - size
30
+ * Convert from enum to const object (ADR-0003)
31
+ */
32
+ export declare const BadgeStatusSize: {
33
+ /**
34
+ * Represents a medium badge status (8px)
35
+ */
36
+ readonly Md: "md";
37
+ /**
38
+ * Represents a large badge status (10px)
39
+ */
40
+ readonly Lg: "lg";
41
+ };
42
+ export type BadgeStatusSize = (typeof BadgeStatusSize)[keyof typeof BadgeStatusSize];
43
+ /**
44
+ * BadgeStatus component shared props (ADR-0004)
45
+ * Platform-independent properties shared across React and React Native
46
+ */
47
+ export type BadgeStatusPropsShared = {
48
+ /**
49
+ * Required prop to control the status of the badge
50
+ * Possible values:
51
+ * - BadgeStatusStatus.Active (Connected)
52
+ * - BadgeStatusStatus.Inactive (Connected)
53
+ * - BadgeStatusStatus.Disconnected
54
+ * - BadgeStatusStatus.New
55
+ * - BadgeStatusStatus.Attention
56
+ */
57
+ status: BadgeStatusStatus;
58
+ /**
59
+ * Optional prop to determine whether the badge should display a border
60
+ *
61
+ * @default true
62
+ */
63
+ hasBorder?: boolean;
64
+ /**
65
+ * Optional prop to control the size of the BadgeStatus
66
+ * Possible values:
67
+ * - BadgeStatusSize.Md (8px)
68
+ * - BadgeStatusSize.Lg (10px)
69
+ *
70
+ * @default BadgeStatusSize.Md
71
+ */
72
+ size?: BadgeStatusSize;
73
+ };
74
+ //# sourceMappingURL=BadgeStatus.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeStatus.types.d.mts","sourceRoot":"","sources":["../../../src/types/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;OAQG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * BadgeStatus - status
3
+ * Convert from enum to const object (ADR-0003)
4
+ */
5
+ export const BadgeStatusStatus = {
6
+ /**
7
+ * Represents an active status (Connected)
8
+ */
9
+ Active: 'active',
10
+ /**
11
+ * Represents an inactive status (Connected)
12
+ */
13
+ Inactive: 'inactive',
14
+ /**
15
+ * Represents a disconnected status
16
+ */
17
+ Disconnected: 'disconnected',
18
+ /**
19
+ * Represents a new status
20
+ */
21
+ New: 'new',
22
+ /**
23
+ * Represents an attention status
24
+ */
25
+ Attention: 'attention',
26
+ };
27
+ /**
28
+ * BadgeStatus - size
29
+ * Convert from enum to const object (ADR-0003)
30
+ */
31
+ export const BadgeStatusSize = {
32
+ /**
33
+ * Represents a medium badge status (8px)
34
+ */
35
+ Md: 'md',
36
+ /**
37
+ * Represents a large badge status (10px)
38
+ */
39
+ Lg: 'lg',
40
+ };
41
+ //# sourceMappingURL=BadgeStatus.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeStatus.types.mjs","sourceRoot":"","sources":["../../../src/types/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,YAAY,EAAE,cAAc;IAC5B;;OAEG;IACH,GAAG,EAAE,KAAK;IACV;;OAEG;IACH,SAAS,EAAE,WAAW;CACd,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,EAAE,EAAE,IAAI;IACR;;OAEG;IACH,EAAE,EAAE,IAAI;CACA,CAAC","sourcesContent":["/**\n * BadgeStatus - status\n * Convert from enum to const object (ADR-0003)\n */\nexport const BadgeStatusStatus = {\n /**\n * Represents an active status (Connected)\n */\n Active: 'active',\n /**\n * Represents an inactive status (Connected)\n */\n Inactive: 'inactive',\n /**\n * Represents a disconnected status\n */\n Disconnected: 'disconnected',\n /**\n * Represents a new status\n */\n New: 'new',\n /**\n * Represents an attention status\n */\n Attention: 'attention',\n} as const;\nexport type BadgeStatusStatus =\n (typeof BadgeStatusStatus)[keyof typeof BadgeStatusStatus];\n\n/**\n * BadgeStatus - size\n * Convert from enum to const object (ADR-0003)\n */\nexport const BadgeStatusSize = {\n /**\n * Represents a medium badge status (8px)\n */\n Md: 'md',\n /**\n * Represents a large badge status (10px)\n */\n Lg: 'lg',\n} as const;\nexport type BadgeStatusSize =\n (typeof BadgeStatusSize)[keyof typeof BadgeStatusSize];\n\n/**\n * BadgeStatus component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native\n */\nexport type BadgeStatusPropsShared = {\n /**\n * Required prop to control the status of the badge\n * Possible values:\n * - BadgeStatusStatus.Active (Connected)\n * - BadgeStatusStatus.Inactive (Connected)\n * - BadgeStatusStatus.Disconnected\n * - BadgeStatusStatus.New\n * - BadgeStatusStatus.Attention\n */\n status: BadgeStatusStatus;\n /**\n * Optional prop to determine whether the badge should display a border\n *\n * @default true\n */\n hasBorder?: boolean;\n /**\n * Optional prop to control the size of the BadgeStatus\n * Possible values:\n * - BadgeStatusSize.Md (8px)\n * - BadgeStatusSize.Lg (10px)\n *\n * @default BadgeStatusSize.Md\n */\n size?: BadgeStatusSize;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BadgeStatusSize = exports.BadgeStatusStatus = void 0;
4
+ var BadgeStatus_types_1 = require("./BadgeStatus.types.cjs");
5
+ Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return BadgeStatus_types_1.BadgeStatusStatus; } });
6
+ Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return BadgeStatus_types_1.BadgeStatusSize; } });
7
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/BadgeStatus/index.ts"],"names":[],"mappings":";;;AAAA,6DAI6B;AAH3B,sHAAA,iBAAiB,OAAA;AACjB,oHAAA,eAAe,OAAA","sourcesContent":["export {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './BadgeStatus.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./BadgeStatus.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,gCAA4B"}
@@ -0,0 +1,2 @@
1
+ export { BadgeStatusStatus, BadgeStatusSize, type BadgeStatusPropsShared, } from "./BadgeStatus.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,KAAK,sBAAsB,GAC5B,gCAA4B"}
@@ -0,0 +1,2 @@
1
+ export { BadgeStatusStatus, BadgeStatusSize } from "./BadgeStatus.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,eAAe,EAEhB,gCAA4B","sourcesContent":["export {\n BadgeStatusStatus,\n BadgeStatusSize,\n type BadgeStatusPropsShared,\n} from './BadgeStatus.types';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-shared",
3
- "version": "0.1.1-preview.c47bb52",
3
+ "version": "0.1.2-preview.3dc70e1",
4
4
  "description": "Shared types for design system libraries",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -46,10 +46,10 @@
46
46
  "publish:preview": "yarn npm publish --tag preview"
47
47
  },
48
48
  "dependencies": {
49
- "@metamask/utils": "^11.8.1"
49
+ "@metamask/utils": "^11.10.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@metamask/auto-changelog": "^5.3.0",
52
+ "@metamask/auto-changelog": "^5.3.2",
53
53
  "@ts-bridge/cli": "^0.6.3",
54
54
  "@types/jest": "^27.4.1",
55
55
  "deepmerge": "^4.2.2",