@metamask/design-system-react-native 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/CHANGELOG.md +49 -18
  2. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
  3. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  4. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  5. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  6. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  7. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  8. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  9. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  10. package/dist/components/BannerBase/BannerBase.cjs +1 -1
  11. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  12. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  13. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  14. package/dist/components/BannerBase/BannerBase.mjs +2 -2
  15. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  16. package/dist/components/BottomSheet/BottomSheet.d.cts +10 -5
  17. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  18. package/dist/components/BottomSheet/BottomSheet.d.mts +10 -5
  19. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  20. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +0 -1
  21. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  22. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +10 -5
  23. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  24. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +10 -5
  25. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  26. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +0 -1
  27. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  28. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +1 -0
  29. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  30. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +1 -0
  31. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  32. package/dist/components/Box/Box.cjs +35 -12
  33. package/dist/components/Box/Box.cjs.map +1 -1
  34. package/dist/components/Box/Box.constants.cjs.map +1 -1
  35. package/dist/components/Box/Box.constants.d.cts +1 -1
  36. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  37. package/dist/components/Box/Box.constants.d.mts +1 -1
  38. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  39. package/dist/components/Box/Box.constants.mjs.map +1 -1
  40. package/dist/components/Box/Box.d.cts +4 -2
  41. package/dist/components/Box/Box.d.cts.map +1 -1
  42. package/dist/components/Box/Box.d.mts +4 -2
  43. package/dist/components/Box/Box.d.mts.map +1 -1
  44. package/dist/components/Box/Box.mjs +13 -9
  45. package/dist/components/Box/Box.mjs.map +1 -1
  46. package/dist/components/Box/Box.types.cjs.map +1 -1
  47. package/dist/components/Box/Box.types.d.cts +3 -107
  48. package/dist/components/Box/Box.types.d.cts.map +1 -1
  49. package/dist/components/Box/Box.types.d.mts +3 -107
  50. package/dist/components/Box/Box.types.d.mts.map +1 -1
  51. package/dist/components/Box/Box.types.mjs.map +1 -1
  52. package/dist/components/Box/index.cjs +7 -7
  53. package/dist/components/Box/index.cjs.map +1 -1
  54. package/dist/components/Box/index.d.cts +1 -2
  55. package/dist/components/Box/index.d.cts.map +1 -1
  56. package/dist/components/Box/index.d.mts +1 -2
  57. package/dist/components/Box/index.d.mts.map +1 -1
  58. package/dist/components/Box/index.mjs +1 -1
  59. package/dist/components/Box/index.mjs.map +1 -1
  60. package/dist/components/BoxColumn/BoxColumn.cjs +2 -2
  61. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
  62. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
  63. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
  64. package/dist/components/BoxColumn/BoxColumn.mjs +1 -1
  65. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
  66. package/dist/components/BoxRow/BoxRow.cjs +2 -2
  67. package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
  68. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
  69. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
  70. package/dist/components/BoxRow/BoxRow.mjs +1 -1
  71. package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
  72. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +2 -3
  73. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  74. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  75. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  76. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +2 -3
  77. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  78. package/dist/components/ButtonBase/ButtonBase.types.d.cts +1 -0
  79. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  80. package/dist/components/ButtonBase/ButtonBase.types.d.mts +1 -0
  81. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  82. package/dist/components/Checkbox/Checkbox.d.cts +1 -6
  83. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  84. package/dist/components/Checkbox/Checkbox.d.mts +1 -6
  85. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  86. package/dist/components/Checkbox/Checkbox.types.cjs.map +1 -1
  87. package/dist/components/Checkbox/Checkbox.types.d.cts +2 -28
  88. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  89. package/dist/components/Checkbox/Checkbox.types.d.mts +2 -28
  90. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  91. package/dist/components/Checkbox/Checkbox.types.mjs.map +1 -1
  92. package/dist/components/HeaderRoot/HeaderRoot.cjs +6 -15
  93. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  94. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
  95. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
  96. package/dist/components/HeaderRoot/HeaderRoot.mjs +6 -15
  97. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  98. package/dist/components/Icon/Icon.assets.cjs +284 -281
  99. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  100. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  101. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  102. package/dist/components/Icon/Icon.assets.mjs +284 -281
  103. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  104. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  105. package/dist/components/Icon/Icon.types.d.cts +3 -21
  106. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  107. package/dist/components/Icon/Icon.types.d.mts +3 -21
  108. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  109. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  110. package/dist/components/Icon/assets/after-hours.svg +1 -1
  111. package/dist/components/Icon/assets/pop-up.svg +1 -0
  112. package/dist/components/Icon/assets/side-panel.svg +1 -0
  113. package/dist/components/Input/Input.d.cts +2 -1
  114. package/dist/components/Input/Input.d.cts.map +1 -1
  115. package/dist/components/Input/Input.d.mts +2 -1
  116. package/dist/components/Input/Input.d.mts.map +1 -1
  117. package/dist/components/RadioButton/RadioButton.types.d.cts +1 -0
  118. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -1
  119. package/dist/components/RadioButton/RadioButton.types.d.mts +1 -0
  120. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -1
  121. package/dist/components/SensitiveText/SensitiveText.types.d.cts +1 -0
  122. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  123. package/dist/components/SensitiveText/SensitiveText.types.d.mts +1 -0
  124. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  125. package/dist/components/Tag/Tag.cjs +45 -0
  126. package/dist/components/Tag/Tag.cjs.map +1 -0
  127. package/dist/components/Tag/Tag.constants.cjs +27 -0
  128. package/dist/components/Tag/Tag.constants.cjs.map +1 -0
  129. package/dist/components/Tag/Tag.constants.d.cts +6 -0
  130. package/dist/components/Tag/Tag.constants.d.cts.map +1 -0
  131. package/dist/components/Tag/Tag.constants.d.mts +6 -0
  132. package/dist/components/Tag/Tag.constants.d.mts.map +1 -0
  133. package/dist/components/Tag/Tag.constants.mjs +24 -0
  134. package/dist/components/Tag/Tag.constants.mjs.map +1 -0
  135. package/dist/components/Tag/Tag.d.cts +4 -0
  136. package/dist/components/Tag/Tag.d.cts.map +1 -0
  137. package/dist/components/Tag/Tag.d.mts +4 -0
  138. package/dist/components/Tag/Tag.d.mts.map +1 -0
  139. package/dist/components/Tag/Tag.mjs +45 -0
  140. package/dist/components/Tag/Tag.mjs.map +1 -0
  141. package/dist/components/Tag/Tag.types.cjs +3 -0
  142. package/dist/components/Tag/Tag.types.cjs.map +1 -0
  143. package/dist/components/Tag/Tag.types.d.cts +38 -0
  144. package/dist/components/Tag/Tag.types.d.cts.map +1 -0
  145. package/dist/components/Tag/Tag.types.d.mts +38 -0
  146. package/dist/components/Tag/Tag.types.d.mts.map +1 -0
  147. package/dist/components/Tag/Tag.types.mjs +2 -0
  148. package/dist/components/Tag/Tag.types.mjs.map +1 -0
  149. package/dist/components/Tag/index.cjs +8 -0
  150. package/dist/components/Tag/index.cjs.map +1 -0
  151. package/dist/components/Tag/index.d.cts +4 -0
  152. package/dist/components/Tag/index.d.cts.map +1 -0
  153. package/dist/components/Tag/index.d.mts +4 -0
  154. package/dist/components/Tag/index.d.mts.map +1 -0
  155. package/dist/components/Tag/index.mjs +3 -0
  156. package/dist/components/Tag/index.mjs.map +1 -0
  157. package/dist/components/TextButton/TextButton.types.d.cts +1 -0
  158. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  159. package/dist/components/TextButton/TextButton.types.d.mts +1 -0
  160. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  161. package/dist/components/TextField/TextField.d.cts +1 -0
  162. package/dist/components/TextField/TextField.d.cts.map +1 -1
  163. package/dist/components/TextField/TextField.d.mts +1 -0
  164. package/dist/components/TextField/TextField.d.mts.map +1 -1
  165. package/dist/components/TitleHub/TitleHub.cjs +65 -0
  166. package/dist/components/TitleHub/TitleHub.cjs.map +1 -0
  167. package/dist/components/TitleHub/TitleHub.d.cts +26 -0
  168. package/dist/components/TitleHub/TitleHub.d.cts.map +1 -0
  169. package/dist/components/TitleHub/TitleHub.d.mts +26 -0
  170. package/dist/components/TitleHub/TitleHub.d.mts.map +1 -0
  171. package/dist/components/TitleHub/TitleHub.mjs +65 -0
  172. package/dist/components/TitleHub/TitleHub.mjs.map +1 -0
  173. package/dist/components/TitleHub/TitleHub.types.cjs +3 -0
  174. package/dist/components/TitleHub/TitleHub.types.cjs.map +1 -0
  175. package/dist/components/TitleHub/TitleHub.types.d.cts +39 -0
  176. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -0
  177. package/dist/components/TitleHub/TitleHub.types.d.mts +39 -0
  178. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -0
  179. package/dist/components/TitleHub/TitleHub.types.mjs +2 -0
  180. package/dist/components/TitleHub/TitleHub.types.mjs.map +1 -0
  181. package/dist/components/TitleHub/index.cjs +6 -0
  182. package/dist/components/TitleHub/index.cjs.map +1 -0
  183. package/dist/components/TitleHub/index.d.cts +4 -0
  184. package/dist/components/TitleHub/index.d.cts.map +1 -0
  185. package/dist/components/TitleHub/index.d.mts +4 -0
  186. package/dist/components/TitleHub/index.d.mts.map +1 -0
  187. package/dist/components/TitleHub/index.mjs +2 -0
  188. package/dist/components/TitleHub/index.mjs.map +1 -0
  189. package/dist/components/TitleStandard/TitleStandard.cjs +58 -0
  190. package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -0
  191. package/dist/components/TitleStandard/TitleStandard.d.cts +23 -0
  192. package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -0
  193. package/dist/components/TitleStandard/TitleStandard.d.mts +23 -0
  194. package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -0
  195. package/dist/components/TitleStandard/TitleStandard.mjs +58 -0
  196. package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -0
  197. package/dist/components/TitleStandard/TitleStandard.types.cjs +3 -0
  198. package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -0
  199. package/dist/components/TitleStandard/TitleStandard.types.d.cts +31 -0
  200. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -0
  201. package/dist/components/TitleStandard/TitleStandard.types.d.mts +31 -0
  202. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -0
  203. package/dist/components/TitleStandard/TitleStandard.types.mjs +2 -0
  204. package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -0
  205. package/dist/components/TitleStandard/index.cjs +6 -0
  206. package/dist/components/TitleStandard/index.cjs.map +1 -0
  207. package/dist/components/TitleStandard/index.d.cts +3 -0
  208. package/dist/components/TitleStandard/index.d.cts.map +1 -0
  209. package/dist/components/TitleStandard/index.d.mts +3 -0
  210. package/dist/components/TitleStandard/index.d.mts.map +1 -0
  211. package/dist/components/TitleStandard/index.mjs +2 -0
  212. package/dist/components/TitleStandard/index.mjs.map +1 -0
  213. package/dist/components/TitleSubpage/TitleSubpage.cjs +85 -0
  214. package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -0
  215. package/dist/components/TitleSubpage/TitleSubpage.d.cts +30 -0
  216. package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -0
  217. package/dist/components/TitleSubpage/TitleSubpage.d.mts +30 -0
  218. package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -0
  219. package/dist/components/TitleSubpage/TitleSubpage.mjs +85 -0
  220. package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -0
  221. package/dist/components/TitleSubpage/TitleSubpage.types.cjs +3 -0
  222. package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -0
  223. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +44 -0
  224. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -0
  225. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +44 -0
  226. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -0
  227. package/dist/components/TitleSubpage/TitleSubpage.types.mjs +2 -0
  228. package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -0
  229. package/dist/components/TitleSubpage/index.cjs +6 -0
  230. package/dist/components/TitleSubpage/index.cjs.map +1 -0
  231. package/dist/components/TitleSubpage/index.d.cts +3 -0
  232. package/dist/components/TitleSubpage/index.d.cts.map +1 -0
  233. package/dist/components/TitleSubpage/index.d.mts +3 -0
  234. package/dist/components/TitleSubpage/index.d.mts.map +1 -0
  235. package/dist/components/TitleSubpage/index.mjs +2 -0
  236. package/dist/components/TitleSubpage/index.mjs.map +1 -0
  237. package/dist/components/Toast/Toast.cjs +0 -1
  238. package/dist/components/Toast/Toast.cjs.map +1 -1
  239. package/dist/components/Toast/Toast.d.cts +1 -1
  240. package/dist/components/Toast/Toast.d.cts.map +1 -1
  241. package/dist/components/Toast/Toast.d.mts +1 -1
  242. package/dist/components/Toast/Toast.d.mts.map +1 -1
  243. package/dist/components/Toast/Toast.mjs +0 -1
  244. package/dist/components/Toast/Toast.mjs.map +1 -1
  245. package/dist/components/index.cjs +11 -2
  246. package/dist/components/index.cjs.map +1 -1
  247. package/dist/components/index.d.cts +8 -0
  248. package/dist/components/index.d.cts.map +1 -1
  249. package/dist/components/index.d.mts +8 -0
  250. package/dist/components/index.d.mts.map +1 -1
  251. package/dist/components/index.mjs +4 -0
  252. package/dist/components/index.mjs.map +1 -1
  253. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +1 -0
  254. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  255. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +1 -0
  256. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  257. package/dist/types/index.cjs +12 -530
  258. package/dist/types/index.cjs.map +1 -1
  259. package/dist/types/index.d.cts +4 -518
  260. package/dist/types/index.d.cts.map +1 -1
  261. package/dist/types/index.d.mts +4 -518
  262. package/dist/types/index.d.mts.map +1 -1
  263. package/dist/types/index.mjs +4 -525
  264. package/dist/types/index.mjs.map +1 -1
  265. package/package.json +21 -20
@@ -1,113 +1,9 @@
1
+ import type { BoxPropsShared } from "@metamask/design-system-shared";
1
2
  import type { ViewProps } from "react-native/index.js";
2
- import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxBorderWidth, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.mjs";
3
- export type BoxProps = {
4
- /**
5
- * The flexDirection style of the component.
6
- */
7
- flexDirection?: BoxFlexDirection;
8
- /**
9
- * The flexWrap style of the component.
10
- */
11
- flexWrap?: BoxFlexWrap;
12
- /**
13
- * The gap between the component's children.
14
- * Use 1-12 for a gap of 4px-48px.
15
- */
16
- gap?: BoxSpacing;
17
- /**
18
- * The alignItems style of the component.
19
- */
20
- alignItems?: BoxAlignItems;
21
- /**
22
- * The justifyContent style of the component.
23
- */
24
- justifyContent?: BoxJustifyContent;
25
- /**
26
- * The margin of the component.
27
- * Use 1-12 for margin of 4px-48px.
28
- */
29
- margin?: BoxSpacing;
30
- /**
31
- * The top margin of the component.
32
- * Use 1-12 for margin of 4px-48px.
33
- */
34
- marginTop?: BoxSpacing;
35
- /**
36
- * The right margin of the component.
37
- * Use 1-12 for margin of 4px-48px.
38
- */
39
- marginRight?: BoxSpacing;
40
- /**
41
- * The bottom margin of the component.
42
- * Use 1-12 for margin of 4px-48px.
43
- */
44
- marginBottom?: BoxSpacing;
45
- /**
46
- * The left margin of the component.
47
- * Use 1-12 for margin of 4px-48px.
48
- */
49
- marginLeft?: BoxSpacing;
50
- /**
51
- * The horizontal margin of the component.
52
- * Use 1-12 for margin of 4px-48px.
53
- */
54
- marginHorizontal?: BoxSpacing;
55
- /**
56
- * The vertical margin of the component.
57
- * Use 1-12 for margin of 4px-48px.
58
- */
59
- marginVertical?: BoxSpacing;
60
- /**
61
- * The padding of the component.
62
- * Use 1-12 for padding of 4px-48px.
63
- */
64
- padding?: BoxSpacing;
65
- /**
66
- * The top padding of the component.
67
- * Use 1-12 for padding of 4px-48px.
68
- */
69
- paddingTop?: BoxSpacing;
70
- /**
71
- * The right padding of the component.
72
- * Use 1-12 for padding of 4px-48px.
73
- */
74
- paddingRight?: BoxSpacing;
75
- /**
76
- * The bottom padding of the component.
77
- * Use 1-12 for padding of 4px-48px.
78
- */
79
- paddingBottom?: BoxSpacing;
80
- /**
81
- * The left padding of the component.
82
- * Use 1-12 for padding of 4px-48px.
83
- */
84
- paddingLeft?: BoxSpacing;
85
- /**
86
- * The horizontal padding of the component.
87
- * Use 1-12 for padding of 4px-48px.
88
- */
89
- paddingHorizontal?: BoxSpacing;
90
- /**
91
- * The vertical padding of the component.
92
- * Use 1-12 for padding of 4px-48px.
93
- */
94
- paddingVertical?: BoxSpacing;
95
- /**
96
- * The border width of the component.
97
- * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.
98
- */
99
- borderWidth?: BoxBorderWidth;
100
- /**
101
- * The border color of the component.
102
- */
103
- borderColor?: BoxBorderColor;
104
- /**
105
- * The background color of the component.
106
- */
107
- backgroundColor?: BoxBackgroundColor;
3
+ export type BoxProps = BoxPropsShared & ViewProps & {
108
4
  /**
109
5
  * Optional prop to add twrnc overriding classNames.
110
6
  */
111
7
  twClassName?: string;
112
- } & ViewProps;
8
+ };
113
9
  //# sourceMappingURL=Box.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Box.types.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,uCAAuC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,MAAM,MAAM,QAAQ,GAAG,cAAc,GACnC,SAAS,GAAG;IACV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxBorderWidth,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\n\nexport type BoxProps = {\n /**\n * The flexDirection style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flexWrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 1-12 for a gap of 4px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The alignItems style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justifyContent style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nexport type BoxProps = BoxPropsShared &\n ViewProps & {\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n };\n"]}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Box = exports.BoxBorderColor = exports.BoxBackgroundColor = exports.BoxJustifyContent = exports.BoxAlignItems = exports.BoxFlexWrap = exports.BoxFlexDirection = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "BoxFlexDirection", { enumerable: true, get: function () { return types_1.BoxFlexDirection; } });
6
- Object.defineProperty(exports, "BoxFlexWrap", { enumerable: true, get: function () { return types_1.BoxFlexWrap; } });
7
- Object.defineProperty(exports, "BoxAlignItems", { enumerable: true, get: function () { return types_1.BoxAlignItems; } });
8
- Object.defineProperty(exports, "BoxJustifyContent", { enumerable: true, get: function () { return types_1.BoxJustifyContent; } });
9
- Object.defineProperty(exports, "BoxBackgroundColor", { enumerable: true, get: function () { return types_1.BoxBackgroundColor; } });
10
- Object.defineProperty(exports, "BoxBorderColor", { enumerable: true, get: function () { return types_1.BoxBorderColor; } });
4
+ var design_system_shared_1 = require("@metamask/design-system-shared");
5
+ Object.defineProperty(exports, "BoxFlexDirection", { enumerable: true, get: function () { return design_system_shared_1.BoxFlexDirection; } });
6
+ Object.defineProperty(exports, "BoxFlexWrap", { enumerable: true, get: function () { return design_system_shared_1.BoxFlexWrap; } });
7
+ Object.defineProperty(exports, "BoxAlignItems", { enumerable: true, get: function () { return design_system_shared_1.BoxAlignItems; } });
8
+ Object.defineProperty(exports, "BoxJustifyContent", { enumerable: true, get: function () { return design_system_shared_1.BoxJustifyContent; } });
9
+ Object.defineProperty(exports, "BoxBackgroundColor", { enumerable: true, get: function () { return design_system_shared_1.BoxBackgroundColor; } });
10
+ Object.defineProperty(exports, "BoxBorderColor", { enumerable: true, get: function () { return design_system_shared_1.BoxBorderColor; } });
11
11
  var Box_1 = require("./Box.cjs");
12
12
  Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return Box_1.Box; } });
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":";;;AAAA,+CAOqB;AANnB,yGAAA,gBAAgB,OAAA;AAChB,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,0GAAA,iBAAiB,OAAA;AACjB,2GAAA,kBAAkB,OAAA;AAClB,uGAAA,cAAc,OAAA;AAGhB,iCAA4B;AAAnB,0FAAA,GAAG,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\nexport type { BoxSpacing, BoxBorderWidth } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":";;;AAAA,uEASwC;AARtC,wHAAA,gBAAgB,OAAA;AAChB,mHAAA,WAAW,OAAA;AACX,qHAAA,aAAa,OAAA;AACb,yHAAA,iBAAiB,OAAA;AACjB,0HAAA,kBAAkB,OAAA;AAClB,sHAAA,cAAc,OAAA;AAIhB,iCAA4B;AAAnB,0FAAA,GAAG,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n} from '@metamask/design-system-shared';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
@@ -1,5 +1,4 @@
1
- export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, } from "../../types/index.cjs";
2
- export type { BoxSpacing, BoxBorderWidth } from "../../types/index.cjs";
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, } from "@metamask/design-system-shared";
3
2
  export { Box } from "./Box.cjs";
4
3
  export type { BoxProps } from "./Box.types.cjs";
5
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,uCAAuC;AACxC,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -1,5 +1,4 @@
1
- export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, } from "../../types/index.mjs";
2
- export type { BoxSpacing, BoxBorderWidth } from "../../types/index.mjs";
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, } from "@metamask/design-system-shared";
3
2
  export { Box } from "./Box.mjs";
4
3
  export type { BoxProps } from "./Box.types.mjs";
5
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,uCAAuC;AACxC,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -1,3 +1,3 @@
1
- export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.mjs";
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "@metamask/design-system-shared";
2
2
  export { Box } from "./Box.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,OAAO,EAAE,GAAG,EAAE,kBAAc","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\nexport type { BoxSpacing, BoxBorderWidth } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EAGf,uCAAuC;AACxC,OAAO,EAAE,GAAG,EAAE,kBAAc","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n} from '@metamask/design-system-shared';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BoxColumn = void 0;
7
+ const design_system_shared_1 = require("@metamask/design-system-shared");
7
8
  const react_1 = __importDefault(require("react"));
8
- const types_1 = require("../../types/index.cjs");
9
9
  const Box_1 = require("../Box/index.cjs");
10
10
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
11
- const BoxColumn = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
11
+ const BoxColumn = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
12
12
  {topAccessory}
13
13
  <TextOrChildren_1.TextOrChildren textProps={textProps}>{children}</TextOrChildren_1.TextOrChildren>
14
14
  {bottomAccessory}
@@ -1 +1 @@
1
- {"version":3,"file":"BoxColumn.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA+C;AAC/C,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,wBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAjBW,QAAA,SAAS,aAiBpB;AAEF,iBAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
1
+ {"version":3,"file":"BoxColumn.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,yEAAkE;AAClE,kDAA0B;AAE1B,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAjBW,QAAA,SAAS,aAiBpB;AAEF,iBAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import { BoxFlexDirection } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BoxColumn.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
1
+ {"version":3,"file":"BoxColumn.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BoxColumn.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
1
+ {"version":3,"file":"BoxColumn.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { BoxFlexDirection } from "@metamask/design-system-shared";
7
8
  import $React from "react";
8
9
  const React = $importDefault($React);
9
- import { BoxFlexDirection } from "../../types/index.mjs";
10
10
  import { Box } from "../Box/index.mjs";
11
11
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
12
  export const BoxColumn = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
@@ -1 +1 @@
1
- {"version":3,"file":"BoxColumn.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,gBAAgB,EAAE,8BAAoB;AAC/C,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
1
+ {"version":3,"file":"BoxColumn.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,uCAAuC;AAClE,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import { BoxFlexDirection } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BoxRow = void 0;
7
+ const design_system_shared_1 = require("@metamask/design-system-shared");
7
8
  const react_1 = __importDefault(require("react"));
8
- const types_1 = require("../../types/index.cjs");
9
9
  const Box_1 = require("../Box/index.cjs");
10
10
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
11
- const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Row} alignItems={types_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
11
+ const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
12
12
  {startAccessory}
13
13
  <TextOrChildren_1.TextOrChildren textProps={textProps}>{children}</TextOrChildren_1.TextOrChildren>
14
14
  {endAccessory}
@@ -1 +1 @@
1
- {"version":3,"file":"BoxRow.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA8D;AAC9D,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,wBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,qBAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAnBW,QAAA,MAAM,UAmBjB;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxAlignItems, BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
1
+ {"version":3,"file":"BoxRow.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,yEAGwC;AACxC,kDAA0B;AAE1B,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAnBW,QAAA,MAAM,UAmBjB;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n} from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BoxRow.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
1
+ {"version":3,"file":"BoxRow.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BoxRow.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
1
+ {"version":3,"file":"BoxRow.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { BoxAlignItems, BoxFlexDirection } from "@metamask/design-system-shared";
7
8
  import $React from "react";
8
9
  const React = $importDefault($React);
9
- import { BoxAlignItems, BoxFlexDirection } from "../../types/index.mjs";
10
10
  import { Box } from "../Box/index.mjs";
11
11
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
12
  export const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
@@ -1 +1 @@
1
- {"version":3,"file":"BoxRow.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxAlignItems, BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
1
+ {"version":3,"file":"BoxRow.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EACjB,uCAAuC;AACxC,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n} from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
@@ -77,9 +77,8 @@ const ButtonTertiary = ({ children, textProps, spinnerProps, startIconProps, end
77
77
  if (isInverse) {
78
78
  return 'text-primary-inverse';
79
79
  }
80
- return pressed || isLoading
81
- ? 'text-primary-default-pressed'
82
- : 'text-primary-default';
80
+ // Use neutral text color for all states (default, pressed, loading)
81
+ return 'text-default';
83
82
  }, [isDanger, isInverse, isLoading]);
84
83
  return (<ButtonBase_1.ButtonBase textProps={{
85
84
  variant: Text_1.TextVariant.BodyMd,
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonTertiary.cjs","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAE3C,8DAAiD;AACjD,kDAAyC;AACzC,kDAAwD;AAIjD,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,CAAC,OAAgB,EAAU,EAAE;QAC3B,MAAM,YAAY,GAChB,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QAEzE,MAAM,WAAW,GAAG;UAChB,SAAS,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU;UACtD,YAAY;OACf,CAAC;QAEF,IAAI,eAAe,GAAG,EAAE,CAAC;QACzB,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IAAI,SAAS,IAAI,QAAQ,EAAE;YACzB,eAAe;gBACb,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,YAAY,C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AS,CAAC,CACjC,CAAC;IAEF,OAAO,CACL,CAAC,uBAAU,CACT,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kBAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,iBAAU,CAAC,MAAM;YAC7B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,SAAS;SACb,CAAC,CACF,YAAY,CAAC,CAAC;YACZ,GAAG,YAAY;SAChB,CAAC,CACF,cAAc,CAAC,CAAC;YACd,IAAI,EAAE,eAAQ,CAAC,EAAE;YACjB,GAAG,cAAc;SAClB,CAAC,CACF,YAAY,CAAC,CAAC;YACZ,IAAI,EAAE,eAAQ,CAAC,EAAE;YACjB,GAAG,YAAY;SAChB,CAAC,CACF,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,WAAW,CAAC,CAAC,qBAAqB,CAAC,CACnC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAzGW,QAAA,cAAc,kBAyGzB","sourcesContent":["import React, { useCallback } from 'react';\n\nimport { ButtonBase } from '../../../ButtonBase';\nimport { IconSize } from '../../../Icon';\nimport { TextVariant, FontWeight } from '../../../Text';\n\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\nexport const ButtonTertiary = ({\n children,\n textProps,\n spinnerProps,\n startIconProps,\n endIconProps,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n style,\n ...props\n}: ButtonTertiaryProps) => {\n const getContainerClassName = useCallback(\n (pressed: boolean): string => {\n const classNameStr =\n typeof twClassName === 'function' ? twClassName(pressed) : twClassName;\n\n const baseClasses = `\n ${isInverse && !isDanger ? 'border-[1.5px]' : 'border-0'}\n ${classNameStr}\n `;\n\n let backgroundClass = '';\n let borderClass = '';\n\n if (isInverse && isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-default-pressed' : 'bg-default';\n borderClass =\n pressed || isLoading\n ? 'border-background-default-pressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-error-muted-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-error-muted-pressed'\n : 'border-transparent';\n } else if (isInverse) {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass = 'border-primary-inverse';\n } else {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-background-pressed'\n : 'border-transparent';\n }\n\n return `${backgroundClass} ${borderClass} ${baseClasses}`;\n },\n [isInverse, isDanger, isLoading, twClassName],\n );\n\n const getTextClassName = useCallback(\n (pressed: boolean): string => {\n if (isDanger) {\n return pressed || isLoading\n ? 'text-error-default-pressed'\n : 'text-error-default';\n }\n if (isInverse) {\n return 'text-primary-inverse';\n }\n return pressed || isLoading\n ? 'text-primary-default-pressed'\n : 'text-primary-default';\n },\n [isDanger, isInverse, isLoading],\n );\n\n return (\n <ButtonBase\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n numberOfLines: 1,\n ellipsizeMode: 'clip',\n ...textProps,\n }}\n spinnerProps={{\n ...spinnerProps,\n }}\n startIconProps={{\n size: IconSize.Sm,\n ...startIconProps,\n }}\n endIconProps={{\n size: IconSize.Sm,\n ...endIconProps,\n }}\n isLoading={isLoading}\n twClassName={getContainerClassName}\n textClassName={getTextClassName}\n iconClassName={getTextClassName}\n style={style}\n {...props}\n >\n {children}\n </ButtonBase>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonTertiary.cjs","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,CAAC,SAAS,CAAC,CACrB,WAAW,CAAC,CAAC,qBAAqB,CAAC,CACnC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAxGW,QAAA,cAAc,kBAwGzB","sourcesContent":["import React, { useCallback } from 'react';\n\nimport { ButtonBase } from '../../../ButtonBase';\nimport { IconSize } from '../../../Icon';\nimport { TextVariant, FontWeight } from '../../../Text';\n\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\nexport const ButtonTertiary = ({\n children,\n textProps,\n spinnerProps,\n startIconProps,\n endIconProps,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n style,\n ...props\n}: ButtonTertiaryProps) => {\n const getContainerClassName = useCallback(\n (pressed: boolean): string => {\n const classNameStr =\n typeof twClassName === 'function' ? twClassName(pressed) : twClassName;\n\n const baseClasses = `\n ${isInverse && !isDanger ? 'border-[1.5px]' : 'border-0'}\n ${classNameStr}\n `;\n\n let backgroundClass = '';\n let borderClass = '';\n\n if (isInverse && isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-default-pressed' : 'bg-default';\n borderClass =\n pressed || isLoading\n ? 'border-background-default-pressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-error-muted-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-error-muted-pressed'\n : 'border-transparent';\n } else if (isInverse) {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass = 'border-primary-inverse';\n } else {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-background-pressed'\n : 'border-transparent';\n }\n\n return `${backgroundClass} ${borderClass} ${baseClasses}`;\n },\n [isInverse, isDanger, isLoading, twClassName],\n );\n\n const getTextClassName = useCallback(\n (pressed: boolean): string => {\n if (isDanger) {\n return pressed || isLoading\n ? 'text-error-default-pressed'\n : 'text-error-default';\n }\n if (isInverse) {\n return 'text-primary-inverse';\n }\n // Use neutral text color for all states (default, pressed, loading)\n return 'text-default';\n },\n [isDanger, isInverse, isLoading],\n );\n\n return (\n <ButtonBase\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n numberOfLines: 1,\n ellipsizeMode: 'clip',\n ...textProps,\n }}\n spinnerProps={{\n ...spinnerProps,\n }}\n startIconProps={{\n size: IconSize.Sm,\n ...startIconProps,\n }}\n endIconProps={{\n size: IconSize.Sm,\n ...endIconProps,\n }}\n isLoading={isLoading}\n twClassName={getContainerClassName}\n textClassName={getTextClassName}\n iconClassName={getTextClassName}\n style={style}\n {...props}\n >\n {children}\n </ButtonBase>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonTertiary.d.cts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,cAAc;AAM3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,sIAYxB,mBAAmB,sBA6FrB,CAAC"}
1
+ {"version":3,"file":"ButtonTertiary.d.cts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,cAAc;AAM3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,sIAYxB,mBAAmB,sBA4FrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonTertiary.d.mts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,cAAc;AAM3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,sIAYxB,mBAAmB,sBA6FrB,CAAC"}
1
+ {"version":3,"file":"ButtonTertiary.d.mts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,cAAc;AAM3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,sIAYxB,mBAAmB,sBA4FrB,CAAC"}
@@ -58,9 +58,8 @@ export const ButtonTertiary = ({ children, textProps, spinnerProps, startIconPro
58
58
  if (isInverse) {
59
59
  return 'text-primary-inverse';
60
60
  }
61
- return pressed || isLoading
62
- ? 'text-primary-default-pressed'
63
- : 'text-primary-default';
61
+ // Use neutral text color for all states (default, pressed, loading)
62
+ return 'text-default';
64
63
  }, [isDanger, isInverse, isLoading]);
65
64
  return (<ButtonBase textProps={{
66
65
  variant: TextVariant.BodyMd,
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonTertiary.mjs","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,WAAW,EAAE,cAAc;;AAE3C,OAAO,EAAE,UAAU,EAAE,sCAA4B;AACjD,OAAO,EAAE,QAAQ,EAAE,gCAAsB;AACzC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,gCAAsB;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,qBAAqB,GAAG,WAA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["import React, { useCallback } from 'react';\n\nimport { ButtonBase } from '../../../ButtonBase';\nimport { IconSize } from '../../../Icon';\nimport { TextVariant, FontWeight } from '../../../Text';\n\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\nexport const ButtonTertiary = ({\n children,\n textProps,\n spinnerProps,\n startIconProps,\n endIconProps,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n style,\n ...props\n}: ButtonTertiaryProps) => {\n const getContainerClassName = useCallback(\n (pressed: boolean): string => {\n const classNameStr =\n typeof twClassName === 'function' ? twClassName(pressed) : twClassName;\n\n const baseClasses = `\n ${isInverse && !isDanger ? 'border-[1.5px]' : 'border-0'}\n ${classNameStr}\n `;\n\n let backgroundClass = '';\n let borderClass = '';\n\n if (isInverse && isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-default-pressed' : 'bg-default';\n borderClass =\n pressed || isLoading\n ? 'border-background-default-pressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-error-muted-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-error-muted-pressed'\n : 'border-transparent';\n } else if (isInverse) {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass = 'border-primary-inverse';\n } else {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-background-pressed'\n : 'border-transparent';\n }\n\n return `${backgroundClass} ${borderClass} ${baseClasses}`;\n },\n [isInverse, isDanger, isLoading, twClassName],\n );\n\n const getTextClassName = useCallback(\n (pressed: boolean): string => {\n if (isDanger) {\n return pressed || isLoading\n ? 'text-error-default-pressed'\n : 'text-error-default';\n }\n if (isInverse) {\n return 'text-primary-inverse';\n }\n return pressed || isLoading\n ? 'text-primary-default-pressed'\n : 'text-primary-default';\n },\n [isDanger, isInverse, isLoading],\n );\n\n return (\n <ButtonBase\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n numberOfLines: 1,\n ellipsizeMode: 'clip',\n ...textProps,\n }}\n spinnerProps={{\n ...spinnerProps,\n }}\n startIconProps={{\n size: IconSize.Sm,\n ...startIconProps,\n }}\n endIconProps={{\n size: IconSize.Sm,\n ...endIconProps,\n }}\n isLoading={isLoading}\n twClassName={getContainerClassName}\n textClassName={getTextClassName}\n iconClassName={getTextClassName}\n style={style}\n {...props}\n >\n {children}\n </ButtonBase>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonTertiary.mjs","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,WAAW,EAAE,cAAc;;AAE3C,OAAO,EAAE,UAAU,EAAE,sCAA4B;AACjD,OAAO,EAAE,QAAQ,EAAE,gCAAsB;AACzC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,gCAAsB;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,qBAAqB,GAAG,WAAW,CACvC,CAAC,OAAgB,EAAU,EAAE;QAC3B,MAAM,YAAY,GAChB,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QAEzE,MAAM,WAAW,GAAG;UAChB,SAAS,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU;UACtD,YAAY;OACf,CAAC;QAEF,IAAI,eAAe,GAAG,EAAE,CAAC;QACzB,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IA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,CAAC;IACxB,CAAC,EACD,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CACjC,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CACT,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,WAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;YAC7B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,SAAS;SACb,CAAC,CACF,YAAY,CAAC,CAAC;YACZ,GAAG,YAAY;SAChB,CAAC,CACF,cAAc,CAAC,CAAC;YACd,IAAI,EAAE,QAAQ,CAAC,EAAE;YACjB,GAAG,cAAc;SAClB,CAAC,CACF,YAAY,CAAC,CAAC;YACZ,IAAI,EAAE,QAAQ,CAAC,EAAE;YACjB,GAAG,YAAY;SAChB,CAAC,CACF,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,WAAW,CAAC,CAAC,qBAAqB,CAAC,CACnC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useCallback } from 'react';\n\nimport { ButtonBase } from '../../../ButtonBase';\nimport { IconSize } from '../../../Icon';\nimport { TextVariant, FontWeight } from '../../../Text';\n\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\nexport const ButtonTertiary = ({\n children,\n textProps,\n spinnerProps,\n startIconProps,\n endIconProps,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n style,\n ...props\n}: ButtonTertiaryProps) => {\n const getContainerClassName = useCallback(\n (pressed: boolean): string => {\n const classNameStr =\n typeof twClassName === 'function' ? twClassName(pressed) : twClassName;\n\n const baseClasses = `\n ${isInverse && !isDanger ? 'border-[1.5px]' : 'border-0'}\n ${classNameStr}\n `;\n\n let backgroundClass = '';\n let borderClass = '';\n\n if (isInverse && isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-default-pressed' : 'bg-default';\n borderClass =\n pressed || isLoading\n ? 'border-background-default-pressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundClass =\n pressed || isLoading ? 'bg-error-muted-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-error-muted-pressed'\n : 'border-transparent';\n } else if (isInverse) {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass = 'border-primary-inverse';\n } else {\n backgroundClass =\n pressed || isLoading ? 'bg-pressed' : 'bg-transparent';\n borderClass =\n pressed || isLoading\n ? 'border-background-pressed'\n : 'border-transparent';\n }\n\n return `${backgroundClass} ${borderClass} ${baseClasses}`;\n },\n [isInverse, isDanger, isLoading, twClassName],\n );\n\n const getTextClassName = useCallback(\n (pressed: boolean): string => {\n if (isDanger) {\n return pressed || isLoading\n ? 'text-error-default-pressed'\n : 'text-error-default';\n }\n if (isInverse) {\n return 'text-primary-inverse';\n }\n // Use neutral text color for all states (default, pressed, loading)\n return 'text-default';\n },\n [isDanger, isInverse, isLoading],\n );\n\n return (\n <ButtonBase\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n numberOfLines: 1,\n ellipsizeMode: 'clip',\n ...textProps,\n }}\n spinnerProps={{\n ...spinnerProps,\n }}\n startIconProps={{\n size: IconSize.Sm,\n ...startIconProps,\n }}\n endIconProps={{\n size: IconSize.Sm,\n ...endIconProps,\n }}\n isLoading={isLoading}\n twClassName={getContainerClassName}\n textClassName={getTextClassName}\n iconClassName={getTextClassName}\n style={style}\n {...props}\n >\n {children}\n </ButtonBase>\n );\n};\n"]}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { PressableProps, StyleProp, ViewStyle } from "react-native/index.js";
2
3
  import type { ButtonBaseSize } from "../../types/index.cjs";
3
4
  import type { IconProps, IconName } from "../Icon/index.cjs";
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonBase.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonBase/ButtonBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAoB;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,6CAAmC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACjD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC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C;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;IACpE;;;OAGG;IACH,oBAAoB,CAAC,EAAE;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ;;OAEG;IACH,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC9B,WAAW,EAAE;YAAE,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC;KACrC,KAAK,IAAI,CAAC;CACZ,GAAG,IAAI,CACN,cAAc,EACZ,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,GACtB,uBAAuB,CAC1B,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { PressableProps, StyleProp, ViewStyle } from "react-native/index.js";
2
3
  import type { ButtonBaseSize } from "../../types/index.mjs";
3
4
  import type { IconProps, IconName } from "../Icon/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonBase.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonBase/ButtonBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAoB;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,6CAAmC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;I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,EAAE;QAC9B,WAAW,EAAE;YAAE,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC;KACrC,KAAK,IAAI,CAAC;CACZ,GAAG,IAAI,CACN,cAAc,EACZ,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,GACtB,uBAAuB,CAC1B,CAAC"}
@@ -1,12 +1,7 @@
1
1
  import React from "react";
2
2
  import type { PressableStateCallbackType } from "react-native/index.js";
3
- export declare const Checkbox: React.ForwardRefExoticComponent<{
4
- isSelected: boolean;
5
- isDisabled?: boolean | undefined;
6
- isInvalid?: boolean | undefined;
7
- label?: React.ReactNode;
3
+ export declare const Checkbox: React.ForwardRefExoticComponent<import("@metamask/design-system-shared").CheckboxPropsShared & {
8
4
  labelProps?: Omit<Partial<import("../index.cjs").TextProps>, "children"> | undefined;
9
- onChange: (isSelected: boolean) => void;
10
5
  checkboxContainerProps?: Omit<Partial<import("react-native").ViewProps>, "children"> | undefined;
11
6
  checkedIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
12
7
  twClassName?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
@@ -1,12 +1,7 @@
1
1
  import React from "react";
2
2
  import type { PressableStateCallbackType } from "react-native/index.js";
3
- export declare const Checkbox: React.ForwardRefExoticComponent<{
4
- isSelected: boolean;
5
- isDisabled?: boolean | undefined;
6
- isInvalid?: boolean | undefined;
7
- label?: React.ReactNode;
3
+ export declare const Checkbox: React.ForwardRefExoticComponent<import("@metamask/design-system-shared").CheckboxPropsShared & {
8
4
  labelProps?: Omit<Partial<import("../index.mjs").TextProps>, "children"> | undefined;
9
- onChange: (isSelected: boolean) => void;
10
5
  checkboxContainerProps?: Omit<Partial<import("react-native").ViewProps>, "children"> | undefined;
11
6
  checkedIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
12
7
  twClassName?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.cjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n/**\n * Checkbox component props.\n */\n\nexport type CheckboxProps = {\n /**\n * Required prop to determine whether the checkbox is currently selected.\n * This component is fully controlled, so you must manage this state\n * in your parent component.\n */\n isSelected: boolean;\n\n /**\n * Optional prop that when true, disables the checkbox.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * Optional prop that when true, displays the invalid/error state of the checkbox.\n *\n * @default false\n */\n isInvalid?: boolean;\n\n /**\n * Optional label prop that renders text or a React node as a label beside the checkbox.\n */\n label?: React.ReactNode | string;\n\n /**\n * Optional props to be passed to the label's Text component.\n */\n labelProps?: Omit<Partial<TextProps>, 'children'>;\n\n /**\n * Required callback for when the checked state changes.\n * Use this to update your state.\n */\n onChange: (isSelected: boolean) => void;\n\n /**\n * Optional props passed to the container view wrapping the checkbox icon.\n */\n checkboxContainerProps?: Omit<Partial<ViewProps>, 'children'>;\n\n /**\n * Optional props to be passed to the check Icon component.\n */\n checkedIconProps?: Partial<IconProps>;\n\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n\n /**\n * Optional prop to control the style.\n */\n style?: PressableProps['style'];\n} & Omit<PressableProps, 'children'>;\n"]}
1
+ {"version":3,"file":"Checkbox.types.cjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { CheckboxPropsShared } from '@metamask/design-system-shared';\nimport type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * Checkbox component props.\n */\nexport type CheckboxProps = CheckboxPropsShared & {\n /**\n * Optional props to be passed to the label's Text component.\n */\n labelProps?: Omit<Partial<TextProps>, 'children'>;\n\n /**\n * Optional props passed to the container view wrapping the checkbox icon.\n */\n checkboxContainerProps?: Omit<Partial<ViewProps>, 'children'>;\n\n /**\n * Optional props to be passed to the check Icon component.\n */\n checkedIconProps?: Partial<IconProps>;\n\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n\n /**\n * Optional prop to control the style.\n */\n style?: PressableProps['style'];\n} & Omit<PressableProps, 'children'>;\n"]}
@@ -1,41 +1,15 @@
1
+ import type { CheckboxPropsShared } from "@metamask/design-system-shared";
1
2
  import type { PressableProps, ViewProps } from "react-native/index.js";
2
3
  import type { IconProps } from "../Icon/index.cjs";
3
4
  import type { TextProps } from "../Text/index.cjs";
4
5
  /**
5
6
  * Checkbox component props.
6
7
  */
7
- export type CheckboxProps = {
8
- /**
9
- * Required prop to determine whether the checkbox is currently selected.
10
- * This component is fully controlled, so you must manage this state
11
- * in your parent component.
12
- */
13
- isSelected: boolean;
14
- /**
15
- * Optional prop that when true, disables the checkbox.
16
- *
17
- * @default false
18
- */
19
- isDisabled?: boolean;
20
- /**
21
- * Optional prop that when true, displays the invalid/error state of the checkbox.
22
- *
23
- * @default false
24
- */
25
- isInvalid?: boolean;
26
- /**
27
- * Optional label prop that renders text or a React node as a label beside the checkbox.
28
- */
29
- label?: React.ReactNode | string;
8
+ export type CheckboxProps = CheckboxPropsShared & {
30
9
  /**
31
10
  * Optional props to be passed to the label's Text component.
32
11
  */
33
12
  labelProps?: Omit<Partial<TextProps>, 'children'>;
34
- /**
35
- * Required callback for when the checked state changes.
36
- * Use this to update your state.
37
- */
38
- onChange: (isSelected: boolean) => void;
39
13
  /**
40
14
  * Optional props passed to the container view wrapping the checkbox icon.
41
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC;;GAEG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SA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