@metamask/design-system-react-native 0.8.0 → 0.10.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 (252) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/components/ActionListItem/ActionListItem.cjs +86 -0
  3. package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -0
  4. package/dist/components/ActionListItem/ActionListItem.d.cts +4 -0
  5. package/dist/components/ActionListItem/ActionListItem.d.cts.map +1 -0
  6. package/dist/components/ActionListItem/ActionListItem.d.mts +4 -0
  7. package/dist/components/ActionListItem/ActionListItem.d.mts.map +1 -0
  8. package/dist/components/ActionListItem/ActionListItem.mjs +66 -0
  9. package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -0
  10. package/dist/components/ActionListItem/ActionListItem.types.cjs +3 -0
  11. package/dist/components/ActionListItem/ActionListItem.types.cjs.map +1 -0
  12. package/dist/components/ActionListItem/ActionListItem.types.d.cts +73 -0
  13. package/dist/components/ActionListItem/ActionListItem.types.d.cts.map +1 -0
  14. package/dist/components/ActionListItem/ActionListItem.types.d.mts +73 -0
  15. package/dist/components/ActionListItem/ActionListItem.types.d.mts.map +1 -0
  16. package/dist/components/ActionListItem/ActionListItem.types.mjs +2 -0
  17. package/dist/components/ActionListItem/ActionListItem.types.mjs.map +1 -0
  18. package/dist/components/ActionListItem/index.cjs +6 -0
  19. package/dist/components/ActionListItem/index.cjs.map +1 -0
  20. package/dist/components/ActionListItem/index.d.cts +3 -0
  21. package/dist/components/ActionListItem/index.d.cts.map +1 -0
  22. package/dist/components/ActionListItem/index.d.mts +3 -0
  23. package/dist/components/ActionListItem/index.d.mts.map +1 -0
  24. package/dist/components/ActionListItem/index.mjs +2 -0
  25. package/dist/components/ActionListItem/index.mjs.map +1 -0
  26. package/dist/components/BadgeCount/BadgeCount.cjs +3 -3
  27. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  28. package/dist/components/BadgeCount/BadgeCount.constants.cjs +6 -10
  29. package/dist/components/BadgeCount/BadgeCount.constants.cjs.map +1 -1
  30. package/dist/components/BadgeCount/BadgeCount.constants.d.cts +1 -2
  31. package/dist/components/BadgeCount/BadgeCount.constants.d.cts.map +1 -1
  32. package/dist/components/BadgeCount/BadgeCount.constants.d.mts +1 -2
  33. package/dist/components/BadgeCount/BadgeCount.constants.d.mts.map +1 -1
  34. package/dist/components/BadgeCount/BadgeCount.constants.mjs +3 -7
  35. package/dist/components/BadgeCount/BadgeCount.constants.mjs.map +1 -1
  36. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  37. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  38. package/dist/components/BadgeCount/BadgeCount.mjs +3 -3
  39. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  40. package/dist/components/BadgeCount/BadgeCount.types.cjs.map +1 -1
  41. package/dist/components/BadgeCount/BadgeCount.types.d.cts +5 -22
  42. package/dist/components/BadgeCount/BadgeCount.types.d.cts.map +1 -1
  43. package/dist/components/BadgeCount/BadgeCount.types.d.mts +5 -22
  44. package/dist/components/BadgeCount/BadgeCount.types.d.mts.map +1 -1
  45. package/dist/components/BadgeCount/BadgeCount.types.mjs.map +1 -1
  46. package/dist/components/BadgeCount/index.cjs +2 -2
  47. package/dist/components/BadgeCount/index.cjs.map +1 -1
  48. package/dist/components/BadgeCount/index.d.cts +1 -1
  49. package/dist/components/BadgeCount/index.d.cts.map +1 -1
  50. package/dist/components/BadgeCount/index.d.mts +1 -1
  51. package/dist/components/BadgeCount/index.d.mts.map +1 -1
  52. package/dist/components/BadgeCount/index.mjs +1 -1
  53. package/dist/components/BadgeCount/index.mjs.map +1 -1
  54. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +27 -0
  55. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -0
  56. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs +15 -0
  57. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs.map +1 -0
  58. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts +7 -0
  59. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts.map +1 -0
  60. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts +7 -0
  61. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts.map +1 -0
  62. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs +12 -0
  63. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs.map +1 -0
  64. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts +4 -0
  65. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts.map +1 -0
  66. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts +4 -0
  67. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts.map +1 -0
  68. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +27 -0
  69. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -0
  70. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs +14 -0
  71. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs.map +1 -0
  72. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts +50 -0
  73. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts.map +1 -0
  74. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts +50 -0
  75. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts.map +1 -0
  76. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs +11 -0
  77. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs.map +1 -0
  78. package/dist/components/BottomSheetHeader/index.cjs +8 -0
  79. package/dist/components/BottomSheetHeader/index.cjs.map +1 -0
  80. package/dist/components/BottomSheetHeader/index.d.cts +4 -0
  81. package/dist/components/BottomSheetHeader/index.d.cts.map +1 -0
  82. package/dist/components/BottomSheetHeader/index.d.mts +4 -0
  83. package/dist/components/BottomSheetHeader/index.d.mts.map +1 -0
  84. package/dist/components/BottomSheetHeader/index.mjs +3 -0
  85. package/dist/components/BottomSheetHeader/index.mjs.map +1 -0
  86. package/dist/components/ButtonHero/ButtonHero.cjs +37 -0
  87. package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -0
  88. package/dist/components/ButtonHero/ButtonHero.d.cts +13 -0
  89. package/dist/components/ButtonHero/ButtonHero.d.cts.map +1 -0
  90. package/dist/components/ButtonHero/ButtonHero.d.mts +13 -0
  91. package/dist/components/ButtonHero/ButtonHero.d.mts.map +1 -0
  92. package/dist/components/ButtonHero/ButtonHero.mjs +37 -0
  93. package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -0
  94. package/dist/components/ButtonHero/ButtonHero.types.cjs +3 -0
  95. package/dist/components/ButtonHero/ButtonHero.types.cjs.map +1 -0
  96. package/dist/components/ButtonHero/ButtonHero.types.d.cts +3 -0
  97. package/dist/components/ButtonHero/ButtonHero.types.d.cts.map +1 -0
  98. package/dist/components/ButtonHero/ButtonHero.types.d.mts +3 -0
  99. package/dist/components/ButtonHero/ButtonHero.types.d.mts.map +1 -0
  100. package/dist/components/ButtonHero/ButtonHero.types.mjs +2 -0
  101. package/dist/components/ButtonHero/ButtonHero.types.mjs.map +1 -0
  102. package/dist/components/ButtonHero/index.cjs +8 -0
  103. package/dist/components/ButtonHero/index.cjs.map +1 -0
  104. package/dist/components/ButtonHero/index.d.cts +4 -0
  105. package/dist/components/ButtonHero/index.d.cts.map +1 -0
  106. package/dist/components/ButtonHero/index.d.mts +4 -0
  107. package/dist/components/ButtonHero/index.d.mts.map +1 -0
  108. package/dist/components/ButtonHero/index.mjs +3 -0
  109. package/dist/components/ButtonHero/index.mjs.map +1 -0
  110. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +64 -0
  111. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -0
  112. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs +17 -0
  113. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs.map +1 -0
  114. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts +5 -0
  115. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts.map +1 -0
  116. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts +5 -0
  117. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts.map +1 -0
  118. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs +14 -0
  119. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs.map +1 -0
  120. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts +4 -0
  121. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -0
  122. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts +4 -0
  123. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -0
  124. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +44 -0
  125. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -0
  126. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs +18 -0
  127. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs.map +1 -0
  128. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts +30 -0
  129. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts.map +1 -0
  130. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts +30 -0
  131. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts.map +1 -0
  132. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs +15 -0
  133. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs.map +1 -0
  134. package/dist/components/ButtonSemantic/index.cjs +8 -0
  135. package/dist/components/ButtonSemantic/index.cjs.map +1 -0
  136. package/dist/components/ButtonSemantic/index.d.cts +4 -0
  137. package/dist/components/ButtonSemantic/index.d.cts.map +1 -0
  138. package/dist/components/ButtonSemantic/index.d.mts +4 -0
  139. package/dist/components/ButtonSemantic/index.d.mts.map +1 -0
  140. package/dist/components/ButtonSemantic/index.mjs +3 -0
  141. package/dist/components/ButtonSemantic/index.mjs.map +1 -0
  142. package/dist/components/HeaderBase/HeaderBase.cjs +17 -8
  143. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  144. package/dist/components/HeaderBase/HeaderBase.constants.cjs +15 -0
  145. package/dist/components/HeaderBase/HeaderBase.constants.cjs.map +1 -0
  146. package/dist/components/HeaderBase/HeaderBase.constants.d.cts +7 -0
  147. package/dist/components/HeaderBase/HeaderBase.constants.d.cts.map +1 -0
  148. package/dist/components/HeaderBase/HeaderBase.constants.d.mts +7 -0
  149. package/dist/components/HeaderBase/HeaderBase.constants.d.mts.map +1 -0
  150. package/dist/components/HeaderBase/HeaderBase.constants.mjs +12 -0
  151. package/dist/components/HeaderBase/HeaderBase.constants.mjs.map +1 -0
  152. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -1
  153. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -1
  154. package/dist/components/HeaderBase/HeaderBase.mjs +18 -9
  155. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  156. package/dist/components/HeaderBase/HeaderBase.types.cjs +12 -0
  157. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -1
  158. package/dist/components/HeaderBase/HeaderBase.types.d.cts +16 -0
  159. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -1
  160. package/dist/components/HeaderBase/HeaderBase.types.d.mts +16 -0
  161. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -1
  162. package/dist/components/HeaderBase/HeaderBase.types.mjs +11 -1
  163. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -1
  164. package/dist/components/HeaderBase/index.cjs +3 -1
  165. package/dist/components/HeaderBase/index.cjs.map +1 -1
  166. package/dist/components/HeaderBase/index.d.cts +1 -0
  167. package/dist/components/HeaderBase/index.d.cts.map +1 -1
  168. package/dist/components/HeaderBase/index.d.mts +1 -0
  169. package/dist/components/HeaderBase/index.d.mts.map +1 -1
  170. package/dist/components/HeaderBase/index.mjs +1 -0
  171. package/dist/components/HeaderBase/index.mjs.map +1 -1
  172. package/dist/components/SensitiveText/SensitiveText.cjs +47 -0
  173. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -0
  174. package/dist/components/SensitiveText/SensitiveText.constants.cjs +14 -0
  175. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +1 -0
  176. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +11 -0
  177. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +1 -0
  178. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +11 -0
  179. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +1 -0
  180. package/dist/components/SensitiveText/SensitiveText.constants.mjs +11 -0
  181. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +1 -0
  182. package/dist/components/SensitiveText/SensitiveText.d.cts +4 -0
  183. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -0
  184. package/dist/components/SensitiveText/SensitiveText.d.mts +4 -0
  185. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -0
  186. package/dist/components/SensitiveText/SensitiveText.mjs +27 -0
  187. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -0
  188. package/dist/components/SensitiveText/SensitiveText.types.cjs +3 -0
  189. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -0
  190. package/dist/components/SensitiveText/SensitiveText.types.d.cts +38 -0
  191. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -0
  192. package/dist/components/SensitiveText/SensitiveText.types.d.mts +38 -0
  193. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -0
  194. package/dist/components/SensitiveText/SensitiveText.types.mjs +2 -0
  195. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -0
  196. package/dist/components/SensitiveText/index.cjs +8 -0
  197. package/dist/components/SensitiveText/index.cjs.map +1 -0
  198. package/dist/components/SensitiveText/index.d.cts +4 -0
  199. package/dist/components/SensitiveText/index.d.cts.map +1 -0
  200. package/dist/components/SensitiveText/index.d.mts +4 -0
  201. package/dist/components/SensitiveText/index.d.mts.map +1 -0
  202. package/dist/components/SensitiveText/index.mjs +3 -0
  203. package/dist/components/SensitiveText/index.mjs.map +1 -0
  204. package/dist/components/TextField/TextField.cjs +42 -0
  205. package/dist/components/TextField/TextField.cjs.map +1 -0
  206. package/dist/components/TextField/TextField.constants.cjs +13 -0
  207. package/dist/components/TextField/TextField.constants.cjs.map +1 -0
  208. package/dist/components/TextField/TextField.constants.d.cts +6 -0
  209. package/dist/components/TextField/TextField.constants.d.cts.map +1 -0
  210. package/dist/components/TextField/TextField.constants.d.mts +6 -0
  211. package/dist/components/TextField/TextField.constants.d.mts.map +1 -0
  212. package/dist/components/TextField/TextField.constants.mjs +10 -0
  213. package/dist/components/TextField/TextField.constants.mjs.map +1 -0
  214. package/dist/components/TextField/TextField.d.cts +12 -0
  215. package/dist/components/TextField/TextField.d.cts.map +1 -0
  216. package/dist/components/TextField/TextField.d.mts +12 -0
  217. package/dist/components/TextField/TextField.d.mts.map +1 -0
  218. package/dist/components/TextField/TextField.mjs +39 -0
  219. package/dist/components/TextField/TextField.mjs.map +1 -0
  220. package/dist/components/TextField/TextField.types.cjs +13 -0
  221. package/dist/components/TextField/TextField.types.cjs.map +1 -0
  222. package/dist/components/TextField/TextField.types.d.cts +49 -0
  223. package/dist/components/TextField/TextField.types.d.cts.map +1 -0
  224. package/dist/components/TextField/TextField.types.d.mts +49 -0
  225. package/dist/components/TextField/TextField.types.d.mts.map +1 -0
  226. package/dist/components/TextField/TextField.types.mjs +10 -0
  227. package/dist/components/TextField/TextField.types.mjs.map +1 -0
  228. package/dist/components/TextField/index.cjs +8 -0
  229. package/dist/components/TextField/index.cjs.map +1 -0
  230. package/dist/components/TextField/index.d.cts +4 -0
  231. package/dist/components/TextField/index.d.cts.map +1 -0
  232. package/dist/components/TextField/index.d.mts +4 -0
  233. package/dist/components/TextField/index.d.mts.map +1 -0
  234. package/dist/components/TextField/index.mjs +3 -0
  235. package/dist/components/TextField/index.mjs.map +1 -0
  236. package/dist/components/index.cjs +17 -2
  237. package/dist/components/index.cjs.map +1 -1
  238. package/dist/components/index.d.cts +11 -1
  239. package/dist/components/index.d.cts.map +1 -1
  240. package/dist/components/index.d.mts +11 -1
  241. package/dist/components/index.d.mts.map +1 -1
  242. package/dist/components/index.mjs +6 -1
  243. package/dist/components/index.mjs.map +1 -1
  244. package/dist/types/index.cjs +2 -16
  245. package/dist/types/index.cjs.map +1 -1
  246. package/dist/types/index.d.cts +1 -13
  247. package/dist/types/index.d.cts.map +1 -1
  248. package/dist/types/index.d.mts +1 -13
  249. package/dist/types/index.d.mts.map +1 -1
  250. package/dist/types/index.mjs +1 -14
  251. package/dist/types/index.mjs.map +1 -1
  252. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAW1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,kEAQpB,eAAe,sBA0BjB,CAAC"}
1
+ {"version":3,"file":"BadgeCount.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAS1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,kEAQpB,eAAe,sBA0BjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAW1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,kEAQpB,eAAe,sBA0BjB,CAAC"}
1
+ {"version":3,"file":"BadgeCount.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAS1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,kEAQpB,eAAe,sBA0BjB,CAAC"}
@@ -4,20 +4,20 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { BadgeCountSize } from "@metamask/design-system-shared";
7
8
  import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
9
  import $React from "react";
9
10
  const React = $importDefault($React);
10
11
  import { View } from "react-native/index.js";
11
- import { BadgeCountSize } from "../../types/index.mjs";
12
12
  import { Text, TextColor, FontWeight } from "../Text/index.mjs";
13
- import { MAP_BADGECOUNT_SIZE_TEXTVARIANT, TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER, MAP_BADGECOUNT_SIZE_LINEHEIGHT } from "./BadgeCount.constants.mjs";
13
+ import { MAP_BADGECOUNT_SIZE_TEXTVARIANT, TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER } from "./BadgeCount.constants.mjs";
14
14
  export const BadgeCount = ({ size = BadgeCountSize.Md, count, max = 99, textProps, twClassName, style, ...props }) => {
15
15
  const tw = useTailwind();
16
16
  return (<View {...props} style={[
17
17
  tw.style('bg-error-default rounded-lg items-center justify-center self-start', TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER[size], twClassName),
18
18
  style,
19
19
  ]}>
20
- <Text variant={MAP_BADGECOUNT_SIZE_TEXTVARIANT[size]} color={TextColor.ErrorInverse} fontWeight={FontWeight.Medium} {...textProps} twClassName={`${MAP_BADGECOUNT_SIZE_LINEHEIGHT[size]} ${textProps?.twClassName || ''}`}>
20
+ <Text variant={MAP_BADGECOUNT_SIZE_TEXTVARIANT[size]} color={TextColor.ErrorInverse} fontWeight={FontWeight.Medium} {...textProps} twClassName={`leading-0 ${textProps?.twClassName || ''}`}>
21
21
  {count > max ? `${max}+` : `${count}`}
22
22
  </Text>
23
23
  </View>);
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.mjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,cAAc,EAAE,8BAAoB;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,0BAAgB;AAEtD,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,EAC/B,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,KAAK,EACL,GAAG,GAAG,EAAE,EACR,SAAS,EACT,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,oEAAoE,EACpE,oCAAoC,CAAC,IAAI,CAAC,EAC1C,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,+BAA+B,CAAC,IAAsB,CAAC,CAAC,CACjE,KAAK,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAC9B,UAAU,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,SAAS,CAAC,CACd,WAAW,CAAC,CAAC,GAAG,8BAA8B,CAAC,IAAI,CAAC,IAAI,SAAS,EAAE,WAAW,IAAI,EAAE,EAAE,CAAC,CAEvF;QAAA,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CACvC;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { BadgeCountSize } from '../../types';\nimport { Text, TextColor, FontWeight } from '../Text';\n\nimport {\n MAP_BADGECOUNT_SIZE_TEXTVARIANT,\n TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER,\n MAP_BADGECOUNT_SIZE_LINEHEIGHT,\n} from './BadgeCount.constants';\nimport type { BadgeCountProps } from './BadgeCount.types';\n\nexport const BadgeCount = ({\n size = BadgeCountSize.Md,\n count,\n max = 99,\n textProps,\n twClassName,\n style,\n ...props\n}: BadgeCountProps) => {\n const tw = useTailwind();\n\n return (\n <View\n {...props}\n style={[\n tw.style(\n 'bg-error-default rounded-lg items-center justify-center self-start',\n TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER[size],\n twClassName,\n ),\n style,\n ]}\n >\n <Text\n variant={MAP_BADGECOUNT_SIZE_TEXTVARIANT[size as BadgeCountSize]}\n color={TextColor.ErrorInverse}\n fontWeight={FontWeight.Medium}\n {...textProps}\n twClassName={`${MAP_BADGECOUNT_SIZE_LINEHEIGHT[size]} ${textProps?.twClassName || ''}`}\n >\n {count > max ? `${max}+` : `${count}`}\n </Text>\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"BadgeCount.mjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,uCAAuC;AAChE,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,0BAAgB;AAEtD,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACrC,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,KAAK,EACL,GAAG,GAAG,EAAE,EACR,SAAS,EACT,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,oEAAoE,EACpE,oCAAoC,CAAC,IAAI,CAAC,EAC1C,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC,CAC/C,KAAK,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAC9B,UAAU,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,SAAS,CAAC,CACd,WAAW,CAAC,CAAC,aAAa,SAAS,EAAE,WAAW,IAAI,EAAE,EAAE,CAAC,CAEzD;QAAA,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CACvC;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { BadgeCountSize } from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { Text, TextColor, FontWeight } from '../Text';\n\nimport {\n MAP_BADGECOUNT_SIZE_TEXTVARIANT,\n TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER,\n} from './BadgeCount.constants';\nimport type { BadgeCountProps } from './BadgeCount.types';\n\nexport const BadgeCount = ({\n size = BadgeCountSize.Md,\n count,\n max = 99,\n textProps,\n twClassName,\n style,\n ...props\n}: BadgeCountProps) => {\n const tw = useTailwind();\n\n return (\n <View\n {...props}\n style={[\n tw.style(\n 'bg-error-default rounded-lg items-center justify-center self-start',\n TWCLASSMAP_BADGECOUNT_SIZE_CONTAINER[size],\n twClassName,\n ),\n style,\n ]}\n >\n <Text\n variant={MAP_BADGECOUNT_SIZE_TEXTVARIANT[size]}\n color={TextColor.ErrorInverse}\n fontWeight={FontWeight.Medium}\n {...textProps}\n twClassName={`leading-0 ${textProps?.twClassName || ''}`}\n >\n {count > max ? `${max}+` : `${count}`}\n </Text>\n </View>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { BadgeCountSize } from '../../types';\nimport type { TextProps } from '../Text';\n\n/**\n * BadgeCount component props.\n */\nexport type BadgeCountProps = {\n /**\n * Optional prop to control the size of the BadgeCount\n * Different sizes map to specific height\n *\n * @default IconSize.Md\n */\n size?: BadgeCountSize;\n /**\n * Required prop to show the count number\n */\n count: number;\n /**\n * Optional prop to determine the max the count can go up to.\n * If count > max, the count will be shown as \"max+\"\n *\n * @default 99\n */\n max?: number;\n /**\n * Optional props to be passed to the Text component used by count\n */\n textProps?: Partial<TextProps>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"BadgeCount.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"","sourcesContent":["// Import shared type for extension\nimport type { BadgeCountPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { TextProps } from '../Text';\n\n/**\n * BadgeCount component props (React Native platform-specific)\n * Extends shared props with React Native-specific platform concerns\n */\nexport type BadgeCountProps = BadgeCountPropsShared &\n Omit<ViewProps, 'children'> & {\n /**\n * Optional props to be passed to the Text component used by count\n */\n textProps?: Partial<TextProps>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n };\n"]}
@@ -1,28 +1,11 @@
1
+ import type { BadgeCountPropsShared } from "@metamask/design-system-shared";
1
2
  import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
2
- import type { BadgeCountSize } from "../../types/index.cjs";
3
3
  import type { TextProps } from "../Text/index.cjs";
4
4
  /**
5
- * BadgeCount component props.
5
+ * BadgeCount component props (React Native platform-specific)
6
+ * Extends shared props with React Native-specific platform concerns
6
7
  */
7
- export type BadgeCountProps = {
8
- /**
9
- * Optional prop to control the size of the BadgeCount
10
- * Different sizes map to specific height
11
- *
12
- * @default IconSize.Md
13
- */
14
- size?: BadgeCountSize;
15
- /**
16
- * Required prop to show the count number
17
- */
18
- count: number;
19
- /**
20
- * Optional prop to determine the max the count can go up to.
21
- * If count > max, the count will be shown as "max+"
22
- *
23
- * @default 99
24
- */
25
- max?: number;
8
+ export type BadgeCountProps = BadgeCountPropsShared & Omit<ViewProps, 'children'> & {
26
9
  /**
27
10
  * Optional props to be passed to the Text component used by count
28
11
  */
@@ -35,5 +18,5 @@ export type BadgeCountProps = {
35
18
  * Optional prop to control the style.
36
19
  */
37
20
  style?: StyleProp<ViewStyle>;
38
- } & Omit<ViewProps, 'children'>;
21
+ };
39
22
  //# sourceMappingURL=BadgeCount.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.types.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAoB;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"BadgeCount.types.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uCAAuC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GACjD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
@@ -1,28 +1,11 @@
1
+ import type { BadgeCountPropsShared } from "@metamask/design-system-shared";
1
2
  import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
2
- import type { BadgeCountSize } from "../../types/index.mjs";
3
3
  import type { TextProps } from "../Text/index.mjs";
4
4
  /**
5
- * BadgeCount component props.
5
+ * BadgeCount component props (React Native platform-specific)
6
+ * Extends shared props with React Native-specific platform concerns
6
7
  */
7
- export type BadgeCountProps = {
8
- /**
9
- * Optional prop to control the size of the BadgeCount
10
- * Different sizes map to specific height
11
- *
12
- * @default IconSize.Md
13
- */
14
- size?: BadgeCountSize;
15
- /**
16
- * Required prop to show the count number
17
- */
18
- count: number;
19
- /**
20
- * Optional prop to determine the max the count can go up to.
21
- * If count > max, the count will be shown as "max+"
22
- *
23
- * @default 99
24
- */
25
- max?: number;
8
+ export type BadgeCountProps = BadgeCountPropsShared & Omit<ViewProps, 'children'> & {
26
9
  /**
27
10
  * Optional props to be passed to the Text component used by count
28
11
  */
@@ -35,5 +18,5 @@ export type BadgeCountProps = {
35
18
  * Optional prop to control the style.
36
19
  */
37
20
  style?: StyleProp<ViewStyle>;
38
- } & Omit<ViewProps, 'children'>;
21
+ };
39
22
  //# sourceMappingURL=BadgeCount.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAoB;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"BadgeCount.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uCAAuC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GACjD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeCount.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { BadgeCountSize } from '../../types';\nimport type { TextProps } from '../Text';\n\n/**\n * BadgeCount component props.\n */\nexport type BadgeCountProps = {\n /**\n * Optional prop to control the size of the BadgeCount\n * Different sizes map to specific height\n *\n * @default IconSize.Md\n */\n size?: BadgeCountSize;\n /**\n * Required prop to show the count number\n */\n count: number;\n /**\n * Optional prop to determine the max the count can go up to.\n * If count > max, the count will be shown as \"max+\"\n *\n * @default 99\n */\n max?: number;\n /**\n * Optional props to be passed to the Text component used by count\n */\n textProps?: Partial<TextProps>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"BadgeCount.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/BadgeCount.types.ts"],"names":[],"mappings":"","sourcesContent":["// Import shared type for extension\nimport type { BadgeCountPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { TextProps } from '../Text';\n\n/**\n * BadgeCount component props (React Native platform-specific)\n * Extends shared props with React Native-specific platform concerns\n */\nexport type BadgeCountProps = BadgeCountPropsShared &\n Omit<ViewProps, 'children'> & {\n /**\n * Optional props to be passed to the Text component used by count\n */\n textProps?: Partial<TextProps>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n };\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BadgeCount = exports.BadgeCountSize = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: function () { return types_1.BadgeCountSize; } });
4
+ var design_system_shared_1 = require("@metamask/design-system-shared");
5
+ Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: function () { return design_system_shared_1.BadgeCountSize; } });
6
6
  var BadgeCount_1 = require("./BadgeCount.cjs");
7
7
  Object.defineProperty(exports, "BadgeCount", { enumerable: true, get: function () { return BadgeCount_1.BadgeCount; } });
8
8
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAApC,uGAAA,cAAc,OAAA;AACvB,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { BadgeCountSize } from '../../types';\nexport { BadgeCount } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":";;;AAAA,uEAAgE;AAAvD,sHAAA,cAAc,OAAA;AACvB,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { BadgeCountSize } from '@metamask/design-system-shared';\nexport { BadgeCount } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount.types';\n"]}
@@ -1,4 +1,4 @@
1
- export { BadgeCountSize } from "../../types/index.cjs";
1
+ export { BadgeCountSize } from "@metamask/design-system-shared";
2
2
  export { BadgeCount } from "./BadgeCount.cjs";
3
3
  export type { BadgeCountProps } from "./BadgeCount.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,8BAAoB;AAC7C,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,uCAAuC;AAChE,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -1,4 +1,4 @@
1
- export { BadgeCountSize } from "../../types/index.mjs";
1
+ export { BadgeCountSize } from "@metamask/design-system-shared";
2
2
  export { BadgeCount } from "./BadgeCount.mjs";
3
3
  export type { BadgeCountProps } from "./BadgeCount.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,8BAAoB;AAC7C,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,uCAAuC;AAChE,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -1,3 +1,3 @@
1
- export { BadgeCountSize } from "../../types/index.mjs";
1
+ export { BadgeCountSize } from "@metamask/design-system-shared";
2
2
  export { BadgeCount } from "./BadgeCount.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,8BAAoB;AAC7C,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export { BadgeCountSize } from '../../types';\nexport { BadgeCount } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BadgeCount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,uCAAuC;AAChE,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export { BadgeCountSize } from '@metamask/design-system-shared';\nexport { BadgeCount } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount.types';\n"]}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BottomSheetHeader = void 0;
7
+ // Third party dependencies.
8
+ const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
9
+ const react_1 = __importDefault(require("react"));
10
+ // External dependencies.
11
+ const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
12
+ const HeaderBase_1 = require("../HeaderBase/index.cjs");
13
+ const Icon_1 = require("../Icon/index.cjs");
14
+ // Internal dependencies.
15
+ const BottomSheetHeader_constants_1 = require("./BottomSheetHeader.constants.cjs");
16
+ const BottomSheetHeader_types_1 = require("./BottomSheetHeader.types.cjs");
17
+ const BottomSheetHeader = ({ style, twClassName, children, onBack, backButtonProps, onClose, closeButtonProps, variant = BottomSheetHeader_types_1.BottomSheetHeaderVariant.Compact, ...props }) => {
18
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
19
+ const startAccessory = onBack ? (<ButtonIcon_1.ButtonIcon iconName={Icon_1.IconName.ArrowLeft} onPress={onBack} size={ButtonIcon_1.ButtonIconSize.Lg} {...backButtonProps}/>) : undefined;
20
+ const endAccessory = onClose ? (<ButtonIcon_1.ButtonIcon iconName={Icon_1.IconName.Close} onPress={onClose} size={ButtonIcon_1.ButtonIconSize.Lg} {...closeButtonProps}/>) : undefined;
21
+ const headerBaseVariant = BottomSheetHeader_constants_1.BOTTOM_SHEET_HEADER_VARIANT_MAP[variant];
22
+ return (<HeaderBase_1.HeaderBase {...props} style={[tw.style('px-4', twClassName), style]} startAccessory={startAccessory} endAccessory={endAccessory} variant={headerBaseVariant}>
23
+ {children}
24
+ </HeaderBase_1.HeaderBase>);
25
+ };
26
+ exports.BottomSheetHeader = BottomSheetHeader;
27
+ //# sourceMappingURL=BottomSheetHeader.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.cjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,qFAAmE;AACnE,kDAA0B;AAE1B,yBAAyB;AACzB,wDAA2D;AAC3D,wDAA2C;AAC3C,4CAAmC;AAEnC,yBAAyB;AACzB,mFAAgF;AAEhF,2EAAqE;AAE9D,MAAM,iBAAiB,GAAqC,CAAC,EAClE,KAAK,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,eAAe,EACf,OAAO,EACP,gBAAgB,EAChB,OAAO,GAAG,kDAAwB,CAAC,OAAO,EAC1C,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAC9B,CAAC,uBAAU,CACT,QAAQ,CAAC,CAAC,eAAQ,CAAC,SAAS,CAAC,CAC7B,OAAO,CAAC,CAAC,MAAM,CAAC,CAChB,IAAI,CAAC,CAAC,2BAAc,CAAC,EAAE,CAAC,CACxB,IAAI,eAAe,CAAC,EACpB,CACH,CAAC,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,CAC7B,CAAC,uBAAU,CACT,QAAQ,CAAC,CAAC,eAAQ,CAAC,KAAK,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,IAAI,CAAC,CAAC,2BAAc,CAAC,EAAE,CAAC,CACxB,IAAI,gBAAgB,CAAC,EACrB,CACH,CAAC,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,iBAAiB,GAAG,6DAA+B,CAAC,OAAO,CAAC,CAAC;IAEnE,OAAO,CACL,CAAC,uBAAU,CACT,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAC9C,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAE3B;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,iBAAiB,qBA4C5B","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\n\n// External dependencies.\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { HeaderBase } from '../HeaderBase';\nimport { IconName } from '../Icon';\n\n// Internal dependencies.\nimport { BOTTOM_SHEET_HEADER_VARIANT_MAP } from './BottomSheetHeader.constants';\nimport type { BottomSheetHeaderProps } from './BottomSheetHeader.types';\nimport { BottomSheetHeaderVariant } from './BottomSheetHeader.types';\n\nexport const BottomSheetHeader: React.FC<BottomSheetHeaderProps> = ({\n style,\n twClassName,\n children,\n onBack,\n backButtonProps,\n onClose,\n closeButtonProps,\n variant = BottomSheetHeaderVariant.Compact,\n ...props\n}) => {\n const tw = useTailwind();\n\n const startAccessory = onBack ? (\n <ButtonIcon\n iconName={IconName.ArrowLeft}\n onPress={onBack}\n size={ButtonIconSize.Lg}\n {...backButtonProps}\n />\n ) : undefined;\n\n const endAccessory = onClose ? (\n <ButtonIcon\n iconName={IconName.Close}\n onPress={onClose}\n size={ButtonIconSize.Lg}\n {...closeButtonProps}\n />\n ) : undefined;\n\n const headerBaseVariant = BOTTOM_SHEET_HEADER_VARIANT_MAP[variant];\n\n return (\n <HeaderBase\n {...props}\n style={[tw.style('px-4', twClassName), style]}\n startAccessory={startAccessory}\n endAccessory={endAccessory}\n variant={headerBaseVariant}\n >\n {children}\n </HeaderBase>\n );\n};\n"]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BOTTOM_SHEET_HEADER_VARIANT_MAP = void 0;
4
+ // External dependencies.
5
+ const HeaderBase_types_1 = require("../HeaderBase/HeaderBase.types.cjs");
6
+ // Internal dependencies.
7
+ const BottomSheetHeader_types_1 = require("./BottomSheetHeader.types.cjs");
8
+ /**
9
+ * Maps BottomSheetHeaderVariant to HeaderBaseVariant.
10
+ */
11
+ exports.BOTTOM_SHEET_HEADER_VARIANT_MAP = {
12
+ [BottomSheetHeader_types_1.BottomSheetHeaderVariant.Display]: HeaderBase_types_1.HeaderBaseVariant.Display,
13
+ [BottomSheetHeader_types_1.BottomSheetHeaderVariant.Compact]: HeaderBase_types_1.HeaderBaseVariant.Compact,
14
+ };
15
+ //# sourceMappingURL=BottomSheetHeader.constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.constants.cjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.constants.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,yEAAmE;AAEnE,yBAAyB;AACzB,2EAAqE;AAErE;;GAEG;AACU,QAAA,+BAA+B,GAGxC;IACF,CAAC,kDAAwB,CAAC,OAAO,CAAC,EAAE,oCAAiB,CAAC,OAAO;IAC7D,CAAC,kDAAwB,CAAC,OAAO,CAAC,EAAE,oCAAiB,CAAC,OAAO;CAC9D,CAAC","sourcesContent":["// External dependencies.\nimport { HeaderBaseVariant } from '../HeaderBase/HeaderBase.types';\n\n// Internal dependencies.\nimport { BottomSheetHeaderVariant } from './BottomSheetHeader.types';\n\n/**\n * Maps BottomSheetHeaderVariant to HeaderBaseVariant.\n */\nexport const BOTTOM_SHEET_HEADER_VARIANT_MAP: Record<\n BottomSheetHeaderVariant,\n HeaderBaseVariant\n> = {\n [BottomSheetHeaderVariant.Display]: HeaderBaseVariant.Display,\n [BottomSheetHeaderVariant.Compact]: HeaderBaseVariant.Compact,\n};\n"]}
@@ -0,0 +1,7 @@
1
+ import { HeaderBaseVariant } from "../HeaderBase/HeaderBase.types.cjs";
2
+ import { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.cjs";
3
+ /**
4
+ * Maps BottomSheetHeaderVariant to HeaderBaseVariant.
5
+ */
6
+ export declare const BOTTOM_SHEET_HEADER_VARIANT_MAP: Record<BottomSheetHeaderVariant, HeaderBaseVariant>;
7
+ //# sourceMappingURL=BottomSheetHeader.constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.constants.d.cts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,2CAAuC;AAGnE,OAAO,EAAE,wBAAwB,EAAE,sCAAkC;AAErE;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAClD,wBAAwB,EACxB,iBAAiB,CAIlB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { HeaderBaseVariant } from "../HeaderBase/HeaderBase.types.mjs";
2
+ import { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.mjs";
3
+ /**
4
+ * Maps BottomSheetHeaderVariant to HeaderBaseVariant.
5
+ */
6
+ export declare const BOTTOM_SHEET_HEADER_VARIANT_MAP: Record<BottomSheetHeaderVariant, HeaderBaseVariant>;
7
+ //# sourceMappingURL=BottomSheetHeader.constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.constants.d.mts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,2CAAuC;AAGnE,OAAO,EAAE,wBAAwB,EAAE,sCAAkC;AAErE;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAClD,wBAAwB,EACxB,iBAAiB,CAIlB,CAAC"}
@@ -0,0 +1,12 @@
1
+ // External dependencies.
2
+ import { HeaderBaseVariant } from "../HeaderBase/HeaderBase.types.mjs";
3
+ // Internal dependencies.
4
+ import { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.mjs";
5
+ /**
6
+ * Maps BottomSheetHeaderVariant to HeaderBaseVariant.
7
+ */
8
+ export const BOTTOM_SHEET_HEADER_VARIANT_MAP = {
9
+ [BottomSheetHeaderVariant.Display]: HeaderBaseVariant.Display,
10
+ [BottomSheetHeaderVariant.Compact]: HeaderBaseVariant.Compact,
11
+ };
12
+ //# sourceMappingURL=BottomSheetHeader.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.constants.mjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.constants.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,OAAO,EAAE,iBAAiB,EAAE,2CAAuC;AAEnE,yBAAyB;AACzB,OAAO,EAAE,wBAAwB,EAAE,sCAAkC;AAErE;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAGxC;IACF,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO;IAC7D,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO;CAC9D,CAAC","sourcesContent":["// External dependencies.\nimport { HeaderBaseVariant } from '../HeaderBase/HeaderBase.types';\n\n// Internal dependencies.\nimport { BottomSheetHeaderVariant } from './BottomSheetHeader.types';\n\n/**\n * Maps BottomSheetHeaderVariant to HeaderBaseVariant.\n */\nexport const BOTTOM_SHEET_HEADER_VARIANT_MAP: Record<\n BottomSheetHeaderVariant,\n HeaderBaseVariant\n> = {\n [BottomSheetHeaderVariant.Display]: HeaderBaseVariant.Display,\n [BottomSheetHeaderVariant.Compact]: HeaderBaseVariant.Compact,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BottomSheetHeaderProps } from "./BottomSheetHeader.types.cjs";
3
+ export declare const BottomSheetHeader: React.FC<BottomSheetHeaderProps>;
4
+ //# sourceMappingURL=BottomSheetHeader.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.d.cts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAS1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,sCAAkC;AAGxE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4C9D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { BottomSheetHeaderProps } from "./BottomSheetHeader.types.mjs";
3
+ export declare const BottomSheetHeader: React.FC<BottomSheetHeaderProps>;
4
+ //# sourceMappingURL=BottomSheetHeader.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.d.mts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAS1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,sCAAkC;AAGxE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4C9D,CAAC"}
@@ -0,0 +1,27 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import { useTailwind } from "@metamask/design-system-twrnc-preset";
9
+ import $React from "react";
10
+ const React = $importDefault($React);
11
+ // External dependencies.
12
+ import { ButtonIcon, ButtonIconSize } from "../ButtonIcon/index.mjs";
13
+ import { HeaderBase } from "../HeaderBase/index.mjs";
14
+ import { IconName } from "../Icon/index.mjs";
15
+ // Internal dependencies.
16
+ import { BOTTOM_SHEET_HEADER_VARIANT_MAP } from "./BottomSheetHeader.constants.mjs";
17
+ import { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.mjs";
18
+ export const BottomSheetHeader = ({ style, twClassName, children, onBack, backButtonProps, onClose, closeButtonProps, variant = BottomSheetHeaderVariant.Compact, ...props }) => {
19
+ const tw = useTailwind();
20
+ const startAccessory = onBack ? (<ButtonIcon iconName={IconName.ArrowLeft} onPress={onBack} size={ButtonIconSize.Lg} {...backButtonProps}/>) : undefined;
21
+ const endAccessory = onClose ? (<ButtonIcon iconName={IconName.Close} onPress={onClose} size={ButtonIconSize.Lg} {...closeButtonProps}/>) : undefined;
22
+ const headerBaseVariant = BOTTOM_SHEET_HEADER_VARIANT_MAP[variant];
23
+ return (<HeaderBase {...props} style={[tw.style('px-4', twClassName), style]} startAccessory={startAccessory} endAccessory={endAccessory} variant={headerBaseVariant}>
24
+ {children}
25
+ </HeaderBase>);
26
+ };
27
+ //# sourceMappingURL=BottomSheetHeader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.mjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAE1B,yBAAyB;AACzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,QAAQ,EAAE,0BAAgB;AAEnC,yBAAyB;AACzB,OAAO,EAAE,+BAA+B,EAAE,0CAAsC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,sCAAkC;AAErE,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAClE,KAAK,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,eAAe,EACf,OAAO,EACP,gBAAgB,EAChB,OAAO,GAAG,wBAAwB,CAAC,OAAO,EAC1C,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAC9B,CAAC,UAAU,CACT,QAAQ,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAC7B,OAAO,CAAC,CAAC,MAAM,CAAC,CAChB,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CACxB,IAAI,eAAe,CAAC,EACpB,CACH,CAAC,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,CAC7B,CAAC,UAAU,CACT,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CACxB,IAAI,gBAAgB,CAAC,EACrB,CACH,CAAC,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAEnE,OAAO,CACL,CAAC,UAAU,CACT,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAC9C,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAE3B;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\n\n// External dependencies.\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { HeaderBase } from '../HeaderBase';\nimport { IconName } from '../Icon';\n\n// Internal dependencies.\nimport { BOTTOM_SHEET_HEADER_VARIANT_MAP } from './BottomSheetHeader.constants';\nimport type { BottomSheetHeaderProps } from './BottomSheetHeader.types';\nimport { BottomSheetHeaderVariant } from './BottomSheetHeader.types';\n\nexport const BottomSheetHeader: React.FC<BottomSheetHeaderProps> = ({\n style,\n twClassName,\n children,\n onBack,\n backButtonProps,\n onClose,\n closeButtonProps,\n variant = BottomSheetHeaderVariant.Compact,\n ...props\n}) => {\n const tw = useTailwind();\n\n const startAccessory = onBack ? (\n <ButtonIcon\n iconName={IconName.ArrowLeft}\n onPress={onBack}\n size={ButtonIconSize.Lg}\n {...backButtonProps}\n />\n ) : undefined;\n\n const endAccessory = onClose ? (\n <ButtonIcon\n iconName={IconName.Close}\n onPress={onClose}\n size={ButtonIconSize.Lg}\n {...closeButtonProps}\n />\n ) : undefined;\n\n const headerBaseVariant = BOTTOM_SHEET_HEADER_VARIANT_MAP[variant];\n\n return (\n <HeaderBase\n {...props}\n style={[tw.style('px-4', twClassName), style]}\n startAccessory={startAccessory}\n endAccessory={endAccessory}\n variant={headerBaseVariant}\n >\n {children}\n </HeaderBase>\n );\n};\n"]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BottomSheetHeaderVariant = void 0;
4
+ /**
5
+ * Variant options for BottomSheetHeader component.
6
+ * - Compact: Center-aligned title with HeadingSm text (default)
7
+ * - Display: Left-aligned title with HeadingLg text
8
+ */
9
+ var BottomSheetHeaderVariant;
10
+ (function (BottomSheetHeaderVariant) {
11
+ BottomSheetHeaderVariant["Display"] = "display";
12
+ BottomSheetHeaderVariant["Compact"] = "compact";
13
+ })(BottomSheetHeaderVariant || (exports.BottomSheetHeaderVariant = BottomSheetHeaderVariant = {}));
14
+ //# sourceMappingURL=BottomSheetHeader.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.types.cjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.types.ts"],"names":[],"mappings":";;;AAGA;;;;GAIG;AACH,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;AACrB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC","sourcesContent":["import type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { HeaderBaseProps } from '../HeaderBase/HeaderBase.types';\n\n/**\n * Variant options for BottomSheetHeader component.\n * - Compact: Center-aligned title with HeadingSm text (default)\n * - Display: Left-aligned title with HeadingLg text\n */\nexport enum BottomSheetHeaderVariant {\n Display = 'display',\n Compact = 'compact',\n}\n\n/**\n * BottomSheetHeader component props.\n *\n * Extends HeaderBase's props (which extends ViewProps) to inherit standard\n * props such as `testID`, `accessibilityLabel`, and other View props.\n */\nexport type BottomSheetHeaderProps = {\n /**\n * Callback function triggered when the back button is pressed.\n * When provided, a back arrow ButtonIcon is rendered as the start accessory.\n */\n onBack?: () => void;\n /**\n * Props spread to the back ButtonIcon component for additional properties\n * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.\n * Note: `iconName` and `onPress` are managed internally and excluded.\n */\n backButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;\n /**\n * Callback function triggered when the close button is pressed.\n * When provided, a close ButtonIcon is rendered as the end accessory.\n */\n onClose?: () => void;\n /**\n * Props spread to the close ButtonIcon component for additional properties\n * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.\n * Note: `iconName` and `onPress` are managed internally and excluded.\n */\n closeButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;\n /**\n * Variant controlling header alignment and text size.\n * - Compact: center-aligned with HeadingSm text\n * - Display: left-aligned with HeadingLg text\n *\n * @default BottomSheetHeaderVariant.Compact\n */\n variant?: BottomSheetHeaderVariant;\n} & Omit<HeaderBaseProps, 'variant'>;\n"]}
@@ -0,0 +1,50 @@
1
+ import type { ButtonIconProps } from "../ButtonIcon/ButtonIcon.types.cjs";
2
+ import type { HeaderBaseProps } from "../HeaderBase/HeaderBase.types.cjs";
3
+ /**
4
+ * Variant options for BottomSheetHeader component.
5
+ * - Compact: Center-aligned title with HeadingSm text (default)
6
+ * - Display: Left-aligned title with HeadingLg text
7
+ */
8
+ export declare enum BottomSheetHeaderVariant {
9
+ Display = "display",
10
+ Compact = "compact"
11
+ }
12
+ /**
13
+ * BottomSheetHeader component props.
14
+ *
15
+ * Extends HeaderBase's props (which extends ViewProps) to inherit standard
16
+ * props such as `testID`, `accessibilityLabel`, and other View props.
17
+ */
18
+ export type BottomSheetHeaderProps = {
19
+ /**
20
+ * Callback function triggered when the back button is pressed.
21
+ * When provided, a back arrow ButtonIcon is rendered as the start accessory.
22
+ */
23
+ onBack?: () => void;
24
+ /**
25
+ * Props spread to the back ButtonIcon component for additional properties
26
+ * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.
27
+ * Note: `iconName` and `onPress` are managed internally and excluded.
28
+ */
29
+ backButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;
30
+ /**
31
+ * Callback function triggered when the close button is pressed.
32
+ * When provided, a close ButtonIcon is rendered as the end accessory.
33
+ */
34
+ onClose?: () => void;
35
+ /**
36
+ * Props spread to the close ButtonIcon component for additional properties
37
+ * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.
38
+ * Note: `iconName` and `onPress` are managed internally and excluded.
39
+ */
40
+ closeButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;
41
+ /**
42
+ * Variant controlling header alignment and text size.
43
+ * - Compact: center-aligned with HeadingSm text
44
+ * - Display: left-aligned with HeadingLg text
45
+ *
46
+ * @default BottomSheetHeaderVariant.Compact
47
+ */
48
+ variant?: BottomSheetHeaderVariant;
49
+ } & Omit<HeaderBaseProps, 'variant'>;
50
+ //# sourceMappingURL=BottomSheetHeader.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.types.d.cts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AAEtE;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IACzE;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IAC1E;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { ButtonIconProps } from "../ButtonIcon/ButtonIcon.types.mjs";
2
+ import type { HeaderBaseProps } from "../HeaderBase/HeaderBase.types.mjs";
3
+ /**
4
+ * Variant options for BottomSheetHeader component.
5
+ * - Compact: Center-aligned title with HeadingSm text (default)
6
+ * - Display: Left-aligned title with HeadingLg text
7
+ */
8
+ export declare enum BottomSheetHeaderVariant {
9
+ Display = "display",
10
+ Compact = "compact"
11
+ }
12
+ /**
13
+ * BottomSheetHeader component props.
14
+ *
15
+ * Extends HeaderBase's props (which extends ViewProps) to inherit standard
16
+ * props such as `testID`, `accessibilityLabel`, and other View props.
17
+ */
18
+ export type BottomSheetHeaderProps = {
19
+ /**
20
+ * Callback function triggered when the back button is pressed.
21
+ * When provided, a back arrow ButtonIcon is rendered as the start accessory.
22
+ */
23
+ onBack?: () => void;
24
+ /**
25
+ * Props spread to the back ButtonIcon component for additional properties
26
+ * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.
27
+ * Note: `iconName` and `onPress` are managed internally and excluded.
28
+ */
29
+ backButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;
30
+ /**
31
+ * Callback function triggered when the close button is pressed.
32
+ * When provided, a close ButtonIcon is rendered as the end accessory.
33
+ */
34
+ onClose?: () => void;
35
+ /**
36
+ * Props spread to the close ButtonIcon component for additional properties
37
+ * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.
38
+ * Note: `iconName` and `onPress` are managed internally and excluded.
39
+ */
40
+ closeButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;
41
+ /**
42
+ * Variant controlling header alignment and text size.
43
+ * - Compact: center-aligned with HeadingSm text
44
+ * - Display: left-aligned with HeadingLg text
45
+ *
46
+ * @default BottomSheetHeaderVariant.Compact
47
+ */
48
+ variant?: BottomSheetHeaderVariant;
49
+ } & Omit<HeaderBaseProps, 'variant'>;
50
+ //# sourceMappingURL=BottomSheetHeader.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.types.d.mts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AAEtE;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IACzE;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IAC1E;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Variant options for BottomSheetHeader component.
3
+ * - Compact: Center-aligned title with HeadingSm text (default)
4
+ * - Display: Left-aligned title with HeadingLg text
5
+ */
6
+ export var BottomSheetHeaderVariant;
7
+ (function (BottomSheetHeaderVariant) {
8
+ BottomSheetHeaderVariant["Display"] = "display";
9
+ BottomSheetHeaderVariant["Compact"] = "compact";
10
+ })(BottomSheetHeaderVariant || (BottomSheetHeaderVariant = {}));
11
+ //# sourceMappingURL=BottomSheetHeader.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSheetHeader.types.mjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/BottomSheetHeader.types.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;AACrB,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC","sourcesContent":["import type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { HeaderBaseProps } from '../HeaderBase/HeaderBase.types';\n\n/**\n * Variant options for BottomSheetHeader component.\n * - Compact: Center-aligned title with HeadingSm text (default)\n * - Display: Left-aligned title with HeadingLg text\n */\nexport enum BottomSheetHeaderVariant {\n Display = 'display',\n Compact = 'compact',\n}\n\n/**\n * BottomSheetHeader component props.\n *\n * Extends HeaderBase's props (which extends ViewProps) to inherit standard\n * props such as `testID`, `accessibilityLabel`, and other View props.\n */\nexport type BottomSheetHeaderProps = {\n /**\n * Callback function triggered when the back button is pressed.\n * When provided, a back arrow ButtonIcon is rendered as the start accessory.\n */\n onBack?: () => void;\n /**\n * Props spread to the back ButtonIcon component for additional properties\n * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.\n * Note: `iconName` and `onPress` are managed internally and excluded.\n */\n backButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;\n /**\n * Callback function triggered when the close button is pressed.\n * When provided, a close ButtonIcon is rendered as the end accessory.\n */\n onClose?: () => void;\n /**\n * Props spread to the close ButtonIcon component for additional properties\n * like `testID` or `accessibilityLabel`. Use this for testing or accessibility purposes.\n * Note: `iconName` and `onPress` are managed internally and excluded.\n */\n closeButtonProps?: Partial<Omit<ButtonIconProps, 'iconName' | 'onPress'>>;\n /**\n * Variant controlling header alignment and text size.\n * - Compact: center-aligned with HeadingSm text\n * - Display: left-aligned with HeadingLg text\n *\n * @default BottomSheetHeaderVariant.Compact\n */\n variant?: BottomSheetHeaderVariant;\n} & Omit<HeaderBaseProps, 'variant'>;\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BottomSheetHeaderVariant = exports.BottomSheetHeader = void 0;
4
+ var BottomSheetHeader_1 = require("./BottomSheetHeader.cjs");
5
+ Object.defineProperty(exports, "BottomSheetHeader", { enumerable: true, get: function () { return BottomSheetHeader_1.BottomSheetHeader; } });
6
+ var BottomSheetHeader_types_1 = require("./BottomSheetHeader.types.cjs");
7
+ Object.defineProperty(exports, "BottomSheetHeaderVariant", { enumerable: true, get: function () { return BottomSheetHeader_types_1.BottomSheetHeaderVariant; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/index.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,yEAAqE;AAA5D,mIAAA,wBAAwB,OAAA","sourcesContent":["export { BottomSheetHeader } from './BottomSheetHeader';\nexport { BottomSheetHeaderVariant } from './BottomSheetHeader.types';\nexport type { BottomSheetHeaderProps } from './BottomSheetHeader.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { BottomSheetHeader } from "./BottomSheetHeader.cjs";
2
+ export { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.cjs";
3
+ export type { BottomSheetHeaderProps } from "./BottomSheetHeader.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gCAA4B;AACxD,OAAO,EAAE,wBAAwB,EAAE,sCAAkC;AACrE,YAAY,EAAE,sBAAsB,EAAE,sCAAkC"}
@@ -0,0 +1,4 @@
1
+ export { BottomSheetHeader } from "./BottomSheetHeader.mjs";
2
+ export { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.mjs";
3
+ export type { BottomSheetHeaderProps } from "./BottomSheetHeader.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gCAA4B;AACxD,OAAO,EAAE,wBAAwB,EAAE,sCAAkC;AACrE,YAAY,EAAE,sBAAsB,EAAE,sCAAkC"}
@@ -0,0 +1,3 @@
1
+ export { BottomSheetHeader } from "./BottomSheetHeader.mjs";
2
+ export { BottomSheetHeaderVariant } from "./BottomSheetHeader.types.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BottomSheetHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gCAA4B;AACxD,OAAO,EAAE,wBAAwB,EAAE,sCAAkC","sourcesContent":["export { BottomSheetHeader } from './BottomSheetHeader';\nexport { BottomSheetHeaderVariant } from './BottomSheetHeader.types';\nexport type { BottomSheetHeaderProps } from './BottomSheetHeader.types';\n"]}