@metamask-previews/design-system-react 0.6.1-preview.ab80aae → 0.7.0-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.
Files changed (82) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/components/AvatarGroup/AvatarGroup.d.cts +5 -5
  3. package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
  4. package/dist/components/AvatarGroup/AvatarGroup.d.mts +5 -5
  5. package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  6. package/dist/components/AvatarGroup/AvatarGroup.types.cjs.map +1 -1
  7. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts +5 -5
  8. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts.map +1 -1
  9. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts +5 -5
  10. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts.map +1 -1
  11. package/dist/components/AvatarGroup/AvatarGroup.types.mjs.map +1 -1
  12. package/dist/components/BadgeStatus/BadgeStatus.cjs +2 -2
  13. package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
  14. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs +8 -8
  15. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs.map +1 -1
  16. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts +1 -1
  17. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts.map +1 -1
  18. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts +1 -1
  19. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts.map +1 -1
  20. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs +1 -1
  21. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs.map +1 -1
  22. package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
  23. package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
  24. package/dist/components/BadgeStatus/BadgeStatus.mjs +1 -1
  25. package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
  26. package/dist/components/BadgeStatus/BadgeStatus.types.cjs.map +1 -1
  27. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +4 -28
  28. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  29. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +4 -28
  30. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  31. package/dist/components/BadgeStatus/BadgeStatus.types.mjs.map +1 -1
  32. package/dist/components/BadgeStatus/index.cjs +3 -3
  33. package/dist/components/BadgeStatus/index.cjs.map +1 -1
  34. package/dist/components/BadgeStatus/index.d.cts +1 -1
  35. package/dist/components/BadgeStatus/index.d.cts.map +1 -1
  36. package/dist/components/BadgeStatus/index.d.mts +1 -1
  37. package/dist/components/BadgeStatus/index.d.mts.map +1 -1
  38. package/dist/components/BadgeStatus/index.mjs +1 -1
  39. package/dist/components/BadgeStatus/index.mjs.map +1 -1
  40. package/dist/components/Button/Button.types.cjs.map +1 -1
  41. package/dist/components/Button/Button.types.d.cts +3 -3
  42. package/dist/components/Button/Button.types.d.cts.map +1 -1
  43. package/dist/components/Button/Button.types.d.mts +3 -3
  44. package/dist/components/Button/Button.types.d.mts.map +1 -1
  45. package/dist/components/Button/Button.types.mjs.map +1 -1
  46. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +4 -3
  47. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
  48. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +4 -3
  49. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
  50. package/dist/components/Icon/icons/PopUp.cjs +32 -0
  51. package/dist/components/Icon/icons/PopUp.cjs.map +1 -0
  52. package/dist/components/Icon/icons/PopUp.d.cts +4 -0
  53. package/dist/components/Icon/icons/PopUp.d.cts.map +1 -0
  54. package/dist/components/Icon/icons/PopUp.d.mts +4 -0
  55. package/dist/components/Icon/icons/PopUp.d.mts.map +1 -0
  56. package/dist/components/Icon/icons/PopUp.mjs +7 -0
  57. package/dist/components/Icon/icons/PopUp.mjs.map +1 -0
  58. package/dist/components/Icon/icons/SidePanel.cjs +32 -0
  59. package/dist/components/Icon/icons/SidePanel.cjs.map +1 -0
  60. package/dist/components/Icon/icons/SidePanel.d.cts +4 -0
  61. package/dist/components/Icon/icons/SidePanel.d.cts.map +1 -0
  62. package/dist/components/Icon/icons/SidePanel.d.mts +4 -0
  63. package/dist/components/Icon/icons/SidePanel.d.mts.map +1 -0
  64. package/dist/components/Icon/icons/SidePanel.mjs +7 -0
  65. package/dist/components/Icon/icons/SidePanel.mjs.map +1 -0
  66. package/dist/components/Icon/icons/index.cjs +4 -0
  67. package/dist/components/Icon/icons/index.cjs.map +1 -1
  68. package/dist/components/Icon/icons/index.d.cts +2 -0
  69. package/dist/components/Icon/icons/index.d.cts.map +1 -1
  70. package/dist/components/Icon/icons/index.d.mts +2 -0
  71. package/dist/components/Icon/icons/index.d.mts.map +1 -1
  72. package/dist/components/Icon/icons/index.mjs +4 -0
  73. package/dist/components/Icon/icons/index.mjs.map +1 -1
  74. package/dist/types/index.cjs +369 -281
  75. package/dist/types/index.cjs.map +1 -1
  76. package/dist/types/index.d.cts +252 -303
  77. package/dist/types/index.d.cts.map +1 -1
  78. package/dist/types/index.d.mts +252 -303
  79. package/dist/types/index.d.mts.map +1 -1
  80. package/dist/types/index.mjs +368 -267
  81. package/dist/types/index.mjs.map +1 -1
  82. package/package.json +6 -6
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.7.0]
11
+
12
+ ### Added
13
+
14
+ - Added `AfterHours`, `Popup`, and `Sidepanel` icons ([#898](https://github.com/MetaMask/metamask-design-system/pull/898), [#879](https://github.com/MetaMask/metamask-design-system/pull/879))
15
+
10
16
  ## [0.6.1]
11
17
 
12
18
  ### Changed
@@ -123,7 +129,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
123
129
  - Full TypeScript support with type definitions and enums
124
130
  - Tailwind CSS integration with design token support
125
131
 
126
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react@0.6.1...HEAD
132
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react@0.7.0...HEAD
133
+ [0.7.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react@0.6.1...@metamask/design-system-react@0.7.0
127
134
  [0.6.1]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react@0.6.0...@metamask/design-system-react@0.6.1
128
135
  [0.6.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react@0.5.0...@metamask/design-system-react@0.6.0
129
136
  [0.5.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react@0.4.1...@metamask/design-system-react@0.5.0
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AvatarGroupSize } from "../../types/index.cjs";
2
+ import { AvatarGroupSize, AvatarGroupVariant } from "../../types/index.cjs";
3
3
  import type { AvatarAccountProps } from "../AvatarAccount/index.cjs";
4
4
  import type { AvatarFaviconProps } from "../AvatarFavicon/index.cjs";
5
5
  import type { AvatarNetworkProps } from "../AvatarNetwork/index.cjs";
@@ -12,7 +12,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
12
12
  className?: string | undefined;
13
13
  style?: React.CSSProperties | undefined;
14
14
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
15
- variant: "Account";
15
+ variant: AvatarGroupVariant.Account;
16
16
  avatarPropsArr: AvatarAccountProps[];
17
17
  }, "ref"> | Omit<{
18
18
  size?: AvatarGroupSize | undefined;
@@ -22,7 +22,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
22
22
  className?: string | undefined;
23
23
  style?: React.CSSProperties | undefined;
24
24
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
25
- variant: "Favicon";
25
+ variant: AvatarGroupVariant.Favicon;
26
26
  avatarPropsArr: AvatarFaviconProps[];
27
27
  }, "ref"> | Omit<{
28
28
  size?: AvatarGroupSize | undefined;
@@ -32,7 +32,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
32
32
  className?: string | undefined;
33
33
  style?: React.CSSProperties | undefined;
34
34
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
35
- variant: "Network";
35
+ variant: AvatarGroupVariant.Network;
36
36
  avatarPropsArr: AvatarNetworkProps[];
37
37
  }, "ref"> | Omit<{
38
38
  size?: AvatarGroupSize | undefined;
@@ -42,7 +42,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
42
42
  className?: string | undefined;
43
43
  style?: React.CSSProperties | undefined;
44
44
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
45
- variant: "Token";
45
+ variant: AvatarGroupVariant.Token;
46
46
  avatarPropsArr: AvatarTokenProps[];
47
47
  }, "ref">) & React.RefAttributes<HTMLDivElement>>;
48
48
  //# sourceMappingURL=AvatarGroup.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,cAAc;AAEvD,OAAO,EAAE,eAAe,EAAsB,8BAAoB;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAI3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAWvD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0IvB,CAAC"}
1
+ {"version":3,"file":"AvatarGroup.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,cAAc;AAEvD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,8BAAoB;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAI3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAWvD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0IvB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AvatarGroupSize } from "../../types/index.mjs";
2
+ import { AvatarGroupSize, AvatarGroupVariant } from "../../types/index.mjs";
3
3
  import type { AvatarAccountProps } from "../AvatarAccount/index.mjs";
4
4
  import type { AvatarFaviconProps } from "../AvatarFavicon/index.mjs";
5
5
  import type { AvatarNetworkProps } from "../AvatarNetwork/index.mjs";
@@ -12,7 +12,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
12
12
  className?: string | undefined;
13
13
  style?: React.CSSProperties | undefined;
14
14
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
15
- variant: "Account";
15
+ variant: AvatarGroupVariant.Account;
16
16
  avatarPropsArr: AvatarAccountProps[];
17
17
  }, "ref"> | Omit<{
18
18
  size?: AvatarGroupSize | undefined;
@@ -22,7 +22,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
22
22
  className?: string | undefined;
23
23
  style?: React.CSSProperties | undefined;
24
24
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
25
- variant: "Favicon";
25
+ variant: AvatarGroupVariant.Favicon;
26
26
  avatarPropsArr: AvatarFaviconProps[];
27
27
  }, "ref"> | Omit<{
28
28
  size?: AvatarGroupSize | undefined;
@@ -32,7 +32,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
32
32
  className?: string | undefined;
33
33
  style?: React.CSSProperties | undefined;
34
34
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
35
- variant: "Network";
35
+ variant: AvatarGroupVariant.Network;
36
36
  avatarPropsArr: AvatarNetworkProps[];
37
37
  }, "ref"> | Omit<{
38
38
  size?: AvatarGroupSize | undefined;
@@ -42,7 +42,7 @@ export declare const AvatarGroup: React.ForwardRefExoticComponent<(Omit<{
42
42
  className?: string | undefined;
43
43
  style?: React.CSSProperties | undefined;
44
44
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
45
- variant: "Token";
45
+ variant: AvatarGroupVariant.Token;
46
46
  avatarPropsArr: AvatarTokenProps[];
47
47
  }, "ref">) & React.RefAttributes<HTMLDivElement>>;
48
48
  //# sourceMappingURL=AvatarGroup.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,cAAc;AAEvD,OAAO,EAAE,eAAe,EAAsB,8BAAoB;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAI3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAWvD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0IvB,CAAC"}
1
+ {"version":3,"file":"AvatarGroup.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,cAAc;AAEvD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,8BAAoB;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAI3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAWvD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0IvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { AvatarGroupSize } from '../../types';\nimport type { AvatarAccountProps } from '../AvatarAccount';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { AvatarFaviconProps } from '../AvatarFavicon';\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { AvatarTokenProps } from '../AvatarToken';\n\ntype BaseAvatarGroupProps = {\n /**\n * Optional enum to select between Avatar Group sizes.\n *\n * @default AvatarGroupSize.Md\n */\n size?: AvatarGroupSize;\n /**\n * Optional enum to select max number of Avatars visible,\n * before the overflow counter being displayed\n *\n * @default 4\n */\n max?: number;\n /**\n * Optional prop to reverse the direction of the AvatarGroup\n */\n isReverse?: boolean;\n /**\n * Optional prop to pass additional AvatarBase props to the overflow Text element\n */\n overflowTextProps?: AvatarBaseProps;\n /**\n * Optional prop for additional CSS classes to be applied to the AvatarGroup component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n} & ComponentProps<'div'>;\n\n/**\n * AvatarGroup props.\n */\nexport type AvatarGroupProps = BaseAvatarGroupProps &\n (\n | {\n variant: 'Account';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarAccountProps[];\n }\n | {\n variant: 'Favicon';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarFaviconProps[];\n }\n | {\n variant: 'Network';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarNetworkProps[];\n }\n | {\n variant: 'Token';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarTokenProps[];\n }\n );\n"]}
1
+ {"version":3,"file":"AvatarGroup.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { AvatarGroupSize, AvatarGroupVariant } from '../../types';\nimport type { AvatarAccountProps } from '../AvatarAccount';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { AvatarFaviconProps } from '../AvatarFavicon';\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { AvatarTokenProps } from '../AvatarToken';\n\ntype BaseAvatarGroupProps = {\n /**\n * Optional enum to select between Avatar Group sizes.\n *\n * @default AvatarGroupSize.Md\n */\n size?: AvatarGroupSize;\n /**\n * Optional enum to select max number of Avatars visible,\n * before the overflow counter being displayed\n *\n * @default 4\n */\n max?: number;\n /**\n * Optional prop to reverse the direction of the AvatarGroup\n */\n isReverse?: boolean;\n /**\n * Optional prop to pass additional AvatarBase props to the overflow Text element\n */\n overflowTextProps?: AvatarBaseProps;\n /**\n * Optional prop for additional CSS classes to be applied to the AvatarGroup component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n} & ComponentProps<'div'>;\n\n/**\n * AvatarGroup props.\n */\nexport type AvatarGroupProps = BaseAvatarGroupProps &\n (\n | {\n variant: AvatarGroupVariant.Account;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarAccountProps[];\n }\n | {\n variant: AvatarGroupVariant.Favicon;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarFaviconProps[];\n }\n | {\n variant: AvatarGroupVariant.Network;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarNetworkProps[];\n }\n | {\n variant: AvatarGroupVariant.Token;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarTokenProps[];\n }\n );\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps } from "react";
2
- import type { AvatarGroupSize } from "../../types/index.cjs";
2
+ import type { AvatarGroupSize, AvatarGroupVariant } from "../../types/index.cjs";
3
3
  import type { AvatarAccountProps } from "../AvatarAccount/index.cjs";
4
4
  import type { AvatarBaseProps } from "../AvatarBase/index.cjs";
5
5
  import type { AvatarFaviconProps } from "../AvatarFavicon/index.cjs";
@@ -42,28 +42,28 @@ type BaseAvatarGroupProps = {
42
42
  * AvatarGroup props.
43
43
  */
44
44
  export type AvatarGroupProps = BaseAvatarGroupProps & ({
45
- variant: 'Account';
45
+ variant: AvatarGroupVariant.Account;
46
46
  /**
47
47
  * A list of Avatars to be horizontally stacked.
48
48
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
49
49
  */
50
50
  avatarPropsArr: AvatarAccountProps[];
51
51
  } | {
52
- variant: 'Favicon';
52
+ variant: AvatarGroupVariant.Favicon;
53
53
  /**
54
54
  * A list of Avatars to be horizontally stacked.
55
55
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
56
56
  */
57
57
  avatarPropsArr: AvatarFaviconProps[];
58
58
  } | {
59
- variant: 'Network';
59
+ variant: AvatarGroupVariant.Network;
60
60
  /**
61
61
  * A list of Avatars to be horizontally stacked.
62
62
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
63
63
  */
64
64
  avatarPropsArr: AvatarNetworkProps[];
65
65
  } | {
66
- variant: 'Token';
66
+ variant: AvatarGroupVariant.Token;
67
67
  /**
68
68
  * A list of Avatars to be horizontally stacked.
69
69
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.types.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,8BAAoB;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAEvD,KAAK,oBAAoB,GAAG;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,CACI;IACE,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,cAAc,EAAE,gBAAgB,EAAE,CAAC;CACpC,CACJ,CAAC"}
1
+ {"version":3,"file":"AvatarGroup.types.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,8BAAoB;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAEvD,KAAK,oBAAoB,GAAG;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,CACI;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,KAAK,CAAC;IAClC;;;OAGG;IACH,cAAc,EAAE,gBAAgB,EAAE,CAAC;CACpC,CACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps } from "react";
2
- import type { AvatarGroupSize } from "../../types/index.mjs";
2
+ import type { AvatarGroupSize, AvatarGroupVariant } from "../../types/index.mjs";
3
3
  import type { AvatarAccountProps } from "../AvatarAccount/index.mjs";
4
4
  import type { AvatarBaseProps } from "../AvatarBase/index.mjs";
5
5
  import type { AvatarFaviconProps } from "../AvatarFavicon/index.mjs";
@@ -42,28 +42,28 @@ type BaseAvatarGroupProps = {
42
42
  * AvatarGroup props.
43
43
  */
44
44
  export type AvatarGroupProps = BaseAvatarGroupProps & ({
45
- variant: 'Account';
45
+ variant: AvatarGroupVariant.Account;
46
46
  /**
47
47
  * A list of Avatars to be horizontally stacked.
48
48
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
49
49
  */
50
50
  avatarPropsArr: AvatarAccountProps[];
51
51
  } | {
52
- variant: 'Favicon';
52
+ variant: AvatarGroupVariant.Favicon;
53
53
  /**
54
54
  * A list of Avatars to be horizontally stacked.
55
55
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
56
56
  */
57
57
  avatarPropsArr: AvatarFaviconProps[];
58
58
  } | {
59
- variant: 'Network';
59
+ variant: AvatarGroupVariant.Network;
60
60
  /**
61
61
  * A list of Avatars to be horizontally stacked.
62
62
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
63
63
  */
64
64
  avatarPropsArr: AvatarNetworkProps[];
65
65
  } | {
66
- variant: 'Token';
66
+ variant: AvatarGroupVariant.Token;
67
67
  /**
68
68
  * A list of Avatars to be horizontally stacked.
69
69
  * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.types.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,8BAAoB;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAEvD,KAAK,oBAAoB,GAAG;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,CACI;IACE,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,cAAc,EAAE,gBAAgB,EAAE,CAAC;CACpC,CACJ,CAAC"}
1
+ {"version":3,"file":"AvatarGroup.types.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,8BAAoB;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAuB;AAEvD,KAAK,oBAAoB,GAAG;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,CACI;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,KAAK,CAAC;IAClC;;;OAGG;IACH,cAAc,EAAE,gBAAgB,EAAE,CAAC;CACpC,CACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroup.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { AvatarGroupSize } from '../../types';\nimport type { AvatarAccountProps } from '../AvatarAccount';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { AvatarFaviconProps } from '../AvatarFavicon';\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { AvatarTokenProps } from '../AvatarToken';\n\ntype BaseAvatarGroupProps = {\n /**\n * Optional enum to select between Avatar Group sizes.\n *\n * @default AvatarGroupSize.Md\n */\n size?: AvatarGroupSize;\n /**\n * Optional enum to select max number of Avatars visible,\n * before the overflow counter being displayed\n *\n * @default 4\n */\n max?: number;\n /**\n * Optional prop to reverse the direction of the AvatarGroup\n */\n isReverse?: boolean;\n /**\n * Optional prop to pass additional AvatarBase props to the overflow Text element\n */\n overflowTextProps?: AvatarBaseProps;\n /**\n * Optional prop for additional CSS classes to be applied to the AvatarGroup component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n} & ComponentProps<'div'>;\n\n/**\n * AvatarGroup props.\n */\nexport type AvatarGroupProps = BaseAvatarGroupProps &\n (\n | {\n variant: 'Account';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarAccountProps[];\n }\n | {\n variant: 'Favicon';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarFaviconProps[];\n }\n | {\n variant: 'Network';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarNetworkProps[];\n }\n | {\n variant: 'Token';\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarTokenProps[];\n }\n );\n"]}
1
+ {"version":3,"file":"AvatarGroup.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { AvatarGroupSize, AvatarGroupVariant } from '../../types';\nimport type { AvatarAccountProps } from '../AvatarAccount';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { AvatarFaviconProps } from '../AvatarFavicon';\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { AvatarTokenProps } from '../AvatarToken';\n\ntype BaseAvatarGroupProps = {\n /**\n * Optional enum to select between Avatar Group sizes.\n *\n * @default AvatarGroupSize.Md\n */\n size?: AvatarGroupSize;\n /**\n * Optional enum to select max number of Avatars visible,\n * before the overflow counter being displayed\n *\n * @default 4\n */\n max?: number;\n /**\n * Optional prop to reverse the direction of the AvatarGroup\n */\n isReverse?: boolean;\n /**\n * Optional prop to pass additional AvatarBase props to the overflow Text element\n */\n overflowTextProps?: AvatarBaseProps;\n /**\n * Optional prop for additional CSS classes to be applied to the AvatarGroup component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n} & ComponentProps<'div'>;\n\n/**\n * AvatarGroup props.\n */\nexport type AvatarGroupProps = BaseAvatarGroupProps &\n (\n | {\n variant: AvatarGroupVariant.Account;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarAccountProps[];\n }\n | {\n variant: AvatarGroupVariant.Favicon;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarFaviconProps[];\n }\n | {\n variant: AvatarGroupVariant.Network;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarNetworkProps[];\n }\n | {\n variant: AvatarGroupVariant.Token;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarTokenProps[];\n }\n );\n"]}
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.BadgeStatus = void 0;
27
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
27
28
  const react_1 = __importStar(require("react"));
28
- const types_1 = require("../../types/index.cjs");
29
29
  const tw_merge_1 = require("../../utils/tw-merge.cjs");
30
30
  const BadgeStatus_constants_1 = require("./BadgeStatus.constants.cjs");
31
- exports.BadgeStatus = (0, react_1.forwardRef)(({ status, size = types_1.BadgeStatusSize.Md, hasBorder = true, className, style, ...props }, ref) => {
31
+ exports.BadgeStatus = (0, react_1.forwardRef)(({ status, size = design_system_shared_1.BadgeStatusSize.Md, hasBorder = true, className, style, ...props }, ref) => {
32
32
  const mergedClassName = (0, tw_merge_1.twMerge)(
33
33
  // Base styles
34
34
  'inline-flex rounded-full',
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,iDAA8C;AAC9C,uDAA+C;AAE/C,uEAGiC;AAGpB,QAAA,WAAW,GAAG,IAAA,kBAAU,EACnC,CACE,EACE,MAAM,EACN,IAAI,GAAG,uBAAe,CAAC,EAAE,EACzB,SAAS,GAAG,IAAI,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,eAAe,GAAG,IAAA,kBAAO;IAC7B,cAAc;IACd,0BAA0B;IAC1B,kBAAkB;IAClB,SAAS,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,EAAE;IACrD,iBAAiB;IACjB,SAAS,CACV,CAAC;IAEF,MAAM,qBAAqB,GAAG,IAAA,kBAAO;IACnC,cAAc;IACd,4BAA4B;IAC5B,cAAc;IACd,iDAAyB,CAAC,IAAI,CAAC;IAC/B,8BAA8B;IAC9B,0DAAkC,CAAC,MAAM,CAAC,CAC3C,CAAC;IAEF,OAAO,CACL,uCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,KAAM,KAAK;QAChE,uCAAK,SAAS,EAAE,qBAAqB,GAAI,CACrC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,mBAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { BadgeStatusSize } from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\n\nimport {\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE,\n CLASSMAP_BADGESTATUS_SIZE,\n} from './BadgeStatus.constants';\nimport type { BadgeStatusProps } from './BadgeStatus.types';\n\nexport const BadgeStatus = forwardRef<HTMLDivElement, BadgeStatusProps>(\n (\n {\n status,\n size = BadgeStatusSize.Md,\n hasBorder = true,\n className,\n style,\n ...props\n },\n ref,\n ) => {\n const mergedClassName = twMerge(\n // Base styles\n 'inline-flex rounded-full',\n // hasBorder style\n hasBorder ? 'border-2 border-background-default' : '',\n // Custom classes\n className,\n );\n\n const mergedCircleClassName = twMerge(\n // Base styles\n 'z-10 rounded-full border-2',\n // Size styles\n CLASSMAP_BADGESTATUS_SIZE[size],\n // Circle with semantics style\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE[status],\n );\n\n return (\n <div ref={ref} className={mergedClassName} style={style} {...props}>\n <div className={mergedCircleClassName} />\n </div>\n );\n },\n);\n\nBadgeStatus.displayName = 'BadgeStatus';\n"]}
1
+ {"version":3,"file":"BadgeStatus.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAA0E;AAC1E,+CAA0C;AAE1C,uDAA+C;AAE/C,uEAGiC;AAGpB,QAAA,WAAW,GAAG,IAAA,kBAAU,EACnC,CACE,EACE,MAAM,EACN,IAAI,GAAG,sCAAe,CAAC,EAAE,EACzB,SAAS,GAAG,IAAI,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,eAAe,GAAG,IAAA,kBAAO;IAC7B,cAAc;IACd,0BAA0B;IAC1B,kBAAkB;IAClB,SAAS,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,EAAE;IACrD,iBAAiB;IACjB,SAAS,CACV,CAAC;IAEF,MAAM,qBAAqB,GAAG,IAAA,kBAAO;IACnC,cAAc;IACd,4BAA4B;IAC5B,cAAc;IACd,iDAAyB,CAAC,IAAI,CAAC;IAC/B,8BAA8B;IAC9B,0DAAkC,CAAC,MAAM,CAAC,CAC3C,CAAC;IAEF,OAAO,CACL,uCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,KAAM,KAAK;QAChE,uCAAK,SAAS,EAAE,qBAAqB,GAAI,CACrC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,mBAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import { BadgeStatusSize } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\n\nimport {\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE,\n CLASSMAP_BADGESTATUS_SIZE,\n} from './BadgeStatus.constants';\nimport type { BadgeStatusProps } from './BadgeStatus.types';\n\nexport const BadgeStatus = forwardRef<HTMLDivElement, BadgeStatusProps>(\n (\n {\n status,\n size = BadgeStatusSize.Md,\n hasBorder = true,\n className,\n style,\n ...props\n },\n ref,\n ) => {\n const mergedClassName = twMerge(\n // Base styles\n 'inline-flex rounded-full',\n // hasBorder style\n hasBorder ? 'border-2 border-background-default' : '',\n // Custom classes\n className,\n );\n\n const mergedCircleClassName = twMerge(\n // Base styles\n 'z-10 rounded-full border-2',\n // Size styles\n CLASSMAP_BADGESTATUS_SIZE[size],\n // Circle with semantics style\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE[status],\n );\n\n return (\n <div ref={ref} className={mergedClassName} style={style} {...props}>\n <div className={mergedCircleClassName} />\n </div>\n );\n },\n);\n\nBadgeStatus.displayName = 'BadgeStatus';\n"]}
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLASSMAP_BADGESTATUS_SIZE = exports.CLASSMAP_BADGESTATUS_STATUS_CIRCLE = void 0;
4
- const types_1 = require("../../types/index.cjs");
4
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
5
  // Mappings
6
6
  exports.CLASSMAP_BADGESTATUS_STATUS_CIRCLE = {
7
- [types_1.BadgeStatusStatus.Active]: 'bg-success-default border-success-default',
8
- [types_1.BadgeStatusStatus.Inactive]: 'bg-default border-success-default',
9
- [types_1.BadgeStatusStatus.Disconnected]: 'bg-icon-muted border-icon-muted',
10
- [types_1.BadgeStatusStatus.New]: 'bg-primary-default border-primary-default',
11
- [types_1.BadgeStatusStatus.Attention]: 'bg-error-default border-error-default',
7
+ [design_system_shared_1.BadgeStatusStatus.Active]: 'bg-success-default border-success-default',
8
+ [design_system_shared_1.BadgeStatusStatus.Inactive]: 'bg-default border-success-default',
9
+ [design_system_shared_1.BadgeStatusStatus.Disconnected]: 'bg-icon-muted border-icon-muted',
10
+ [design_system_shared_1.BadgeStatusStatus.New]: 'bg-primary-default border-primary-default',
11
+ [design_system_shared_1.BadgeStatusStatus.Attention]: 'bg-error-default border-error-default',
12
12
  };
13
13
  exports.CLASSMAP_BADGESTATUS_SIZE = {
14
- [types_1.BadgeStatusSize.Md]: 'h-2 w-2',
15
- [types_1.BadgeStatusSize.Lg]: 'h-2.5 w-2.5', // 10px width and height
14
+ [design_system_shared_1.BadgeStatusSize.Md]: 'h-2 w-2',
15
+ [design_system_shared_1.BadgeStatusSize.Lg]: 'h-2.5 w-2.5', // 10px width and height
16
16
  };
17
17
  //# sourceMappingURL=BadgeStatus.constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.constants.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":";;;AAAA,iDAAiE;AAEjE,WAAW;AACE,QAAA,kCAAkC,GAG3C;IACF,CAAC,yBAAiB,CAAC,MAAM,CAAC,EAAE,2CAA2C;IACvE,CAAC,yBAAiB,CAAC,QAAQ,CAAC,EAAE,mCAAmC;IACjE,CAAC,yBAAiB,CAAC,YAAY,CAAC,EAAE,iCAAiC;IACnE,CAAC,yBAAiB,CAAC,GAAG,CAAC,EAAE,2CAA2C;IACpE,CAAC,yBAAiB,CAAC,SAAS,CAAC,EAAE,uCAAuC;CACvE,CAAC;AAEW,QAAA,yBAAyB,GAAoC;IACxE,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,SAAS;IAC/B,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,wBAAwB;CAC9D,CAAC","sourcesContent":["import { BadgeStatusSize, BadgeStatusStatus } from '../../types';\n\n// Mappings\nexport const CLASSMAP_BADGESTATUS_STATUS_CIRCLE: Record<\n BadgeStatusStatus,\n string\n> = {\n [BadgeStatusStatus.Active]: 'bg-success-default border-success-default',\n [BadgeStatusStatus.Inactive]: 'bg-default border-success-default',\n [BadgeStatusStatus.Disconnected]: 'bg-icon-muted border-icon-muted',\n [BadgeStatusStatus.New]: 'bg-primary-default border-primary-default',\n [BadgeStatusStatus.Attention]: 'bg-error-default border-error-default',\n};\n\nexport const CLASSMAP_BADGESTATUS_SIZE: Record<BadgeStatusSize, string> = {\n [BadgeStatusSize.Md]: 'h-2 w-2', // 8px width and height\n [BadgeStatusSize.Lg]: 'h-2.5 w-2.5', // 10px width and height\n};\n"]}
1
+ {"version":3,"file":"BadgeStatus.constants.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":";;;AAAA,kFAGiD;AAEjD,WAAW;AACE,QAAA,kCAAkC,GAG3C;IACF,CAAC,wCAAiB,CAAC,MAAM,CAAC,EAAE,2CAA2C;IACvE,CAAC,wCAAiB,CAAC,QAAQ,CAAC,EAAE,mCAAmC;IACjE,CAAC,wCAAiB,CAAC,YAAY,CAAC,EAAE,iCAAiC;IACnE,CAAC,wCAAiB,CAAC,GAAG,CAAC,EAAE,2CAA2C;IACpE,CAAC,wCAAiB,CAAC,SAAS,CAAC,EAAE,uCAAuC;CACvE,CAAC;AAEW,QAAA,yBAAyB,GAAoC;IACxE,CAAC,sCAAe,CAAC,EAAE,CAAC,EAAE,SAAS;IAC/B,CAAC,sCAAe,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,wBAAwB;CAC9D,CAAC","sourcesContent":["import {\n BadgeStatusSize,\n BadgeStatusStatus,\n} from '@metamask-previews/design-system-shared';\n\n// Mappings\nexport const CLASSMAP_BADGESTATUS_STATUS_CIRCLE: Record<\n BadgeStatusStatus,\n string\n> = {\n [BadgeStatusStatus.Active]: 'bg-success-default border-success-default',\n [BadgeStatusStatus.Inactive]: 'bg-default border-success-default',\n [BadgeStatusStatus.Disconnected]: 'bg-icon-muted border-icon-muted',\n [BadgeStatusStatus.New]: 'bg-primary-default border-primary-default',\n [BadgeStatusStatus.Attention]: 'bg-error-default border-error-default',\n};\n\nexport const CLASSMAP_BADGESTATUS_SIZE: Record<BadgeStatusSize, string> = {\n [BadgeStatusSize.Md]: 'h-2 w-2', // 8px width and height\n [BadgeStatusSize.Lg]: 'h-2.5 w-2.5', // 10px width and height\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.cjs";
1
+ import { BadgeStatusSize, BadgeStatusStatus } from "@metamask-previews/design-system-shared";
2
2
  export declare const CLASSMAP_BADGESTATUS_STATUS_CIRCLE: Record<BadgeStatusStatus, string>;
3
3
  export declare const CLASSMAP_BADGESTATUS_SIZE: Record<BadgeStatusSize, string>;
4
4
  //# sourceMappingURL=BadgeStatus.constants.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.constants.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AAGjE,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,iBAAiB,EACjB,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAGrE,CAAC"}
1
+ {"version":3,"file":"BadgeStatus.constants.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EAClB,gDAAgD;AAGjD,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,iBAAiB,EACjB,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAGrE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.mjs";
1
+ import { BadgeStatusSize, BadgeStatusStatus } from "@metamask-previews/design-system-shared";
2
2
  export declare const CLASSMAP_BADGESTATUS_STATUS_CIRCLE: Record<BadgeStatusStatus, string>;
3
3
  export declare const CLASSMAP_BADGESTATUS_SIZE: Record<BadgeStatusSize, string>;
4
4
  //# sourceMappingURL=BadgeStatus.constants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.constants.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AAGjE,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,iBAAiB,EACjB,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAGrE,CAAC"}
1
+ {"version":3,"file":"BadgeStatus.constants.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EAClB,gDAAgD;AAGjD,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,iBAAiB,EACjB,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAGrE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.mjs";
1
+ import { BadgeStatusSize, BadgeStatusStatus } from "@metamask-previews/design-system-shared";
2
2
  // Mappings
3
3
  export const CLASSMAP_BADGESTATUS_STATUS_CIRCLE = {
4
4
  [BadgeStatusStatus.Active]: 'bg-success-default border-success-default',
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.constants.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AAEjE,WAAW;AACX,MAAM,CAAC,MAAM,kCAAkC,GAG3C;IACF,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,2CAA2C;IACvE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,mCAAmC;IACjE,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,iCAAiC;IACnE,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,2CAA2C;IACpE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,uCAAuC;CACvE,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAoC;IACxE,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,SAAS;IAC/B,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,wBAAwB;CAC9D,CAAC","sourcesContent":["import { BadgeStatusSize, BadgeStatusStatus } from '../../types';\n\n// Mappings\nexport const CLASSMAP_BADGESTATUS_STATUS_CIRCLE: Record<\n BadgeStatusStatus,\n string\n> = {\n [BadgeStatusStatus.Active]: 'bg-success-default border-success-default',\n [BadgeStatusStatus.Inactive]: 'bg-default border-success-default',\n [BadgeStatusStatus.Disconnected]: 'bg-icon-muted border-icon-muted',\n [BadgeStatusStatus.New]: 'bg-primary-default border-primary-default',\n [BadgeStatusStatus.Attention]: 'bg-error-default border-error-default',\n};\n\nexport const CLASSMAP_BADGESTATUS_SIZE: Record<BadgeStatusSize, string> = {\n [BadgeStatusSize.Md]: 'h-2 w-2', // 8px width and height\n [BadgeStatusSize.Lg]: 'h-2.5 w-2.5', // 10px width and height\n};\n"]}
1
+ {"version":3,"file":"BadgeStatus.constants.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EAClB,gDAAgD;AAEjD,WAAW;AACX,MAAM,CAAC,MAAM,kCAAkC,GAG3C;IACF,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,2CAA2C;IACvE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,mCAAmC;IACjE,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,iCAAiC;IACnE,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,2CAA2C;IACpE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,uCAAuC;CACvE,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAoC;IACxE,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,SAAS;IAC/B,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,wBAAwB;CAC9D,CAAC","sourcesContent":["import {\n BadgeStatusSize,\n BadgeStatusStatus,\n} from '@metamask-previews/design-system-shared';\n\n// Mappings\nexport const CLASSMAP_BADGESTATUS_STATUS_CIRCLE: Record<\n BadgeStatusStatus,\n string\n> = {\n [BadgeStatusStatus.Active]: 'bg-success-default border-success-default',\n [BadgeStatusStatus.Inactive]: 'bg-default border-success-default',\n [BadgeStatusStatus.Disconnected]: 'bg-icon-muted border-icon-muted',\n [BadgeStatusStatus.New]: 'bg-primary-default border-primary-default',\n [BadgeStatusStatus.Attention]: 'bg-error-default border-error-default',\n};\n\nexport const CLASSMAP_BADGESTATUS_SIZE: Record<BadgeStatusSize, string> = {\n [BadgeStatusSize.Md]: 'h-2 w-2', // 8px width and height\n [BadgeStatusSize.Lg]: 'h-2.5 w-2.5', // 10px width and height\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAS1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAoCvB,CAAC"}
1
+ {"version":3,"file":"BadgeStatus.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,cAAc;AAQ1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAoCvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAS1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAoCvB,CAAC"}
1
+ {"version":3,"file":"BadgeStatus.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,cAAc;AAQ1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAoCvB,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { BadgeStatusSize } from "@metamask-previews/design-system-shared";
7
8
  import $React, { forwardRef } from "react";
8
9
  const React = $importDefault($React);
9
- import { BadgeStatusSize } from "../../types/index.mjs";
10
10
  import { twMerge } from "../../utils/tw-merge.mjs";
11
11
  import { CLASSMAP_BADGESTATUS_STATUS_CIRCLE, CLASSMAP_BADGESTATUS_SIZE } from "./BadgeStatus.constants.mjs";
12
12
  export const BadgeStatus = forwardRef(({ status, size = BadgeStatusSize.Md, hasBorder = true, className, style, ...props }, ref) => {
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,eAAe,EAAE,8BAAoB;AAC9C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAE/C,OAAO,EACL,kCAAkC,EAClC,yBAAyB,EAC1B,oCAAgC;AAGjC,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CACE,EACE,MAAM,EACN,IAAI,GAAG,eAAe,CAAC,EAAE,EACzB,SAAS,GAAG,IAAI,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,eAAe,GAAG,OAAO;IAC7B,cAAc;IACd,0BAA0B;IAC1B,kBAAkB;IAClB,SAAS,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,EAAE;IACrD,iBAAiB;IACjB,SAAS,CACV,CAAC;IAEF,MAAM,qBAAqB,GAAG,OAAO;IACnC,cAAc;IACd,4BAA4B;IAC5B,cAAc;IACd,yBAAyB,CAAC,IAAI,CAAC;IAC/B,8BAA8B;IAC9B,kCAAkC,CAAC,MAAM,CAAC,CAC3C,CAAC;IAEF,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,KAAM,KAAK;QAChE,6BAAK,SAAS,EAAE,qBAAqB,GAAI,CACrC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { BadgeStatusSize } from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\n\nimport {\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE,\n CLASSMAP_BADGESTATUS_SIZE,\n} from './BadgeStatus.constants';\nimport type { BadgeStatusProps } from './BadgeStatus.types';\n\nexport const BadgeStatus = forwardRef<HTMLDivElement, BadgeStatusProps>(\n (\n {\n status,\n size = BadgeStatusSize.Md,\n hasBorder = true,\n className,\n style,\n ...props\n },\n ref,\n ) => {\n const mergedClassName = twMerge(\n // Base styles\n 'inline-flex rounded-full',\n // hasBorder style\n hasBorder ? 'border-2 border-background-default' : '',\n // Custom classes\n className,\n );\n\n const mergedCircleClassName = twMerge(\n // Base styles\n 'z-10 rounded-full border-2',\n // Size styles\n CLASSMAP_BADGESTATUS_SIZE[size],\n // Circle with semantics style\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE[status],\n );\n\n return (\n <div ref={ref} className={mergedClassName} style={style} {...props}>\n <div className={mergedCircleClassName} />\n </div>\n );\n },\n);\n\nBadgeStatus.displayName = 'BadgeStatus';\n"]}
1
+ {"version":3,"file":"BadgeStatus.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,gDAAgD;AAC1E,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAE/C,OAAO,EACL,kCAAkC,EAClC,yBAAyB,EAC1B,oCAAgC;AAGjC,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CACE,EACE,MAAM,EACN,IAAI,GAAG,eAAe,CAAC,EAAE,EACzB,SAAS,GAAG,IAAI,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,eAAe,GAAG,OAAO;IAC7B,cAAc;IACd,0BAA0B;IAC1B,kBAAkB;IAClB,SAAS,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,EAAE;IACrD,iBAAiB;IACjB,SAAS,CACV,CAAC;IAEF,MAAM,qBAAqB,GAAG,OAAO;IACnC,cAAc;IACd,4BAA4B;IAC5B,cAAc;IACd,yBAAyB,CAAC,IAAI,CAAC;IAC/B,8BAA8B;IAC9B,kCAAkC,CAAC,MAAM,CAAC,CAC3C,CAAC;IAEF,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,KAAM,KAAK;QAChE,6BAAK,SAAS,EAAE,qBAAqB,GAAI,CACrC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import { BadgeStatusSize } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\n\nimport {\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE,\n CLASSMAP_BADGESTATUS_SIZE,\n} from './BadgeStatus.constants';\nimport type { BadgeStatusProps } from './BadgeStatus.types';\n\nexport const BadgeStatus = forwardRef<HTMLDivElement, BadgeStatusProps>(\n (\n {\n status,\n size = BadgeStatusSize.Md,\n hasBorder = true,\n className,\n style,\n ...props\n },\n ref,\n ) => {\n const mergedClassName = twMerge(\n // Base styles\n 'inline-flex rounded-full',\n // hasBorder style\n hasBorder ? 'border-2 border-background-default' : '',\n // Custom classes\n className,\n );\n\n const mergedCircleClassName = twMerge(\n // Base styles\n 'z-10 rounded-full border-2',\n // Size styles\n CLASSMAP_BADGESTATUS_SIZE[size],\n // Circle with semantics style\n CLASSMAP_BADGESTATUS_STATUS_CIRCLE[status],\n );\n\n return (\n <div ref={ref} className={mergedClassName} style={style} {...props}>\n <div className={mergedCircleClassName} />\n </div>\n );\n },\n);\n\nBadgeStatus.displayName = 'BadgeStatus';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { BadgeStatusSize, BadgeStatusStatus } from '../../types';\n\n/**\n * BadgeStatus component props.\n */\nexport type BadgeStatusProps = ComponentProps<'div'> & {\n /**\n * Optional 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 AvatarBaseSize.Md\n */\n size?: BadgeStatusSize;\n /**\n * Optional prop for additional CSS classes to be applied to the BadgeStatus component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
1
+ {"version":3,"file":"BadgeStatus.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"","sourcesContent":["// Import shared type for extension\nimport type { BadgeStatusPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\n/**\n * BadgeStatus component props (React platform-specific)\n * Extends shared props with React-specific platform concerns\n */\nexport type BadgeStatusProps = ComponentProps<'div'> &\n BadgeStatusPropsShared & {\n /**\n * Optional prop for additional CSS classes to be applied to the BadgeStatus component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n };\n"]}
@@ -1,34 +1,10 @@
1
+ import type { BadgeStatusPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.cjs";
3
3
  /**
4
- * BadgeStatus component props.
4
+ * BadgeStatus component props (React platform-specific)
5
+ * Extends shared props with React-specific platform concerns
5
6
  */
6
- export type BadgeStatusProps = ComponentProps<'div'> & {
7
- /**
8
- * Optional prop to control the status of the badge
9
- * Possible values:
10
- * - BadgeStatusStatus.Active. (Connected)
11
- * - BadgeStatusStatus.Inactive. (Connected)
12
- * - BadgeStatusStatus.Disconnected.
13
- * - BadgeStatusStatus.New.
14
- * - BadgeStatusStatus.Attention.
15
- */
16
- status: BadgeStatusStatus;
17
- /**
18
- * Optional prop to determine whether the badge should display a border
19
- *
20
- * @default true
21
- */
22
- hasBorder?: boolean;
23
- /**
24
- * Optional prop to control the size of the BadgeStatus
25
- * Possible values:
26
- * - BadgeStatusSize.Md (8px),
27
- * - BadgeStatusSize.Lg (10px),
28
- *
29
- * @default AvatarBaseSize.Md
30
- */
31
- size?: BadgeStatusSize;
7
+ export type BadgeStatusProps = ComponentProps<'div'> & BadgeStatusPropsShared & {
32
8
  /**
33
9
  * Optional prop for additional CSS classes to be applied to the BadgeStatus component.
34
10
  * These classes will be merged with the component's default classes using twMerge.
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.types.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AAEtE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACrD;;;;;;;;OAQG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"BadgeStatus.types.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,gDAAgD;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAClD,sBAAsB,GAAG;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -1,34 +1,10 @@
1
+ import type { BadgeStatusPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.mjs";
3
3
  /**
4
- * BadgeStatus component props.
4
+ * BadgeStatus component props (React platform-specific)
5
+ * Extends shared props with React-specific platform concerns
5
6
  */
6
- export type BadgeStatusProps = ComponentProps<'div'> & {
7
- /**
8
- * Optional prop to control the status of the badge
9
- * Possible values:
10
- * - BadgeStatusStatus.Active. (Connected)
11
- * - BadgeStatusStatus.Inactive. (Connected)
12
- * - BadgeStatusStatus.Disconnected.
13
- * - BadgeStatusStatus.New.
14
- * - BadgeStatusStatus.Attention.
15
- */
16
- status: BadgeStatusStatus;
17
- /**
18
- * Optional prop to determine whether the badge should display a border
19
- *
20
- * @default true
21
- */
22
- hasBorder?: boolean;
23
- /**
24
- * Optional prop to control the size of the BadgeStatus
25
- * Possible values:
26
- * - BadgeStatusSize.Md (8px),
27
- * - BadgeStatusSize.Lg (10px),
28
- *
29
- * @default AvatarBaseSize.Md
30
- */
31
- size?: BadgeStatusSize;
7
+ export type BadgeStatusProps = ComponentProps<'div'> & BadgeStatusPropsShared & {
32
8
  /**
33
9
  * Optional prop for additional CSS classes to be applied to the BadgeStatus component.
34
10
  * These classes will be merged with the component's default classes using twMerge.
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AAEtE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACrD;;;;;;;;OAQG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"BadgeStatus.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,gDAAgD;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAClD,sBAAsB,GAAG;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeStatus.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { BadgeStatusSize, BadgeStatusStatus } from '../../types';\n\n/**\n * BadgeStatus component props.\n */\nexport type BadgeStatusProps = ComponentProps<'div'> & {\n /**\n * Optional 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 AvatarBaseSize.Md\n */\n size?: BadgeStatusSize;\n /**\n * Optional prop for additional CSS classes to be applied to the BadgeStatus component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
1
+ {"version":3,"file":"BadgeStatus.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/BadgeStatus.types.ts"],"names":[],"mappings":"","sourcesContent":["// Import shared type for extension\nimport type { BadgeStatusPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\n/**\n * BadgeStatus component props (React platform-specific)\n * Extends shared props with React-specific platform concerns\n */\nexport type BadgeStatusProps = ComponentProps<'div'> &\n BadgeStatusPropsShared & {\n /**\n * Optional prop for additional CSS classes to be applied to the BadgeStatus component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n };\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BadgeStatus = exports.BadgeStatusStatus = exports.BadgeStatusSize = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return types_1.BadgeStatusSize; } });
6
- Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return types_1.BadgeStatusStatus; } });
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return design_system_shared_1.BadgeStatusSize; } });
6
+ Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return design_system_shared_1.BadgeStatusStatus; } });
7
7
  var BadgeStatus_1 = require("./BadgeStatus.cjs");
8
8
  Object.defineProperty(exports, "BadgeStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatus; } });
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":";;;AAAA,+CAAiE;AAAxD,wGAAA,eAAe,OAAA;AAAE,0GAAA,iBAAiB,OAAA;AAC3C,iDAA4C;AAAnC,0GAAA,WAAW,OAAA","sourcesContent":["export { BadgeStatusSize, BadgeStatusStatus } from '../../types';\nexport { BadgeStatus } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":";;;AAAA,gFAGiD;AAF/C,uHAAA,eAAe,OAAA;AACf,yHAAA,iBAAiB,OAAA;AAEnB,iDAA4C;AAAnC,0GAAA,WAAW,OAAA","sourcesContent":["export {\n BadgeStatusSize,\n BadgeStatusStatus,\n} from '@metamask-previews/design-system-shared';\nexport { BadgeStatus } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus.types';\n"]}
@@ -1,4 +1,4 @@
1
- export { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.cjs";
1
+ export { BadgeStatusSize, BadgeStatusStatus, } from "@metamask-previews/design-system-shared";
2
2
  export { BadgeStatus } from "./BadgeStatus.cjs";
3
3
  export type { BadgeStatusProps } from "./BadgeStatus.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AACjE,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,GAClB,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B"}
@@ -1,4 +1,4 @@
1
- export { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.mjs";
1
+ export { BadgeStatusSize, BadgeStatusStatus, } from "@metamask-previews/design-system-shared";
2
2
  export { BadgeStatus } from "./BadgeStatus.mjs";
3
3
  export type { BadgeStatusProps } from "./BadgeStatus.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AACjE,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,GAClB,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B"}
@@ -1,3 +1,3 @@
1
- export { BadgeStatusSize, BadgeStatusStatus } from "../../types/index.mjs";
1
+ export { BadgeStatusSize, BadgeStatusStatus } from "@metamask-previews/design-system-shared";
2
2
  export { BadgeStatus } from "./BadgeStatus.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,8BAAoB;AACjE,OAAO,EAAE,WAAW,EAAE,0BAAsB","sourcesContent":["export { BadgeStatusSize, BadgeStatusStatus } from '../../types';\nexport { BadgeStatus } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BadgeStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EAClB,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,0BAAsB","sourcesContent":["export {\n BadgeStatusSize,\n BadgeStatusStatus,\n} from '@metamask-previews/design-system-shared';\nexport { BadgeStatus } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus.types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.cjs","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonVariant } from '../../types';\n\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport type ButtonProps = {\n /**\n * Optional prop to control the variant of the Button\n *\n * @default ButtonVariant.Primary\n */\n variant?: ButtonVariant;\n} & (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: 'primary';\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: 'secondary';\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: 'tertiary';\n })\n);\n"]}
1
+ {"version":3,"file":"Button.types.cjs","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonVariant } from '../../types';\n\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport type ButtonProps = {\n /**\n * Optional prop to control the variant of the Button\n *\n * @default ButtonVariant.Primary\n */\n variant?: ButtonVariant;\n} & (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: ButtonVariant.Tertiary;\n })\n);\n"]}