@metamask-previews/design-system-react-native 0.9.0-preview.694a8ed → 0.11.0-preview.fa05289

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 (281) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/dist/components/BannerAlert/BannerAlert.cjs +23 -0
  3. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -0
  4. package/dist/components/BannerAlert/BannerAlert.constants.cjs +30 -0
  5. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -0
  6. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +7 -0
  7. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -0
  8. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +7 -0
  9. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -0
  10. package/dist/components/BannerAlert/BannerAlert.constants.mjs +27 -0
  11. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -0
  12. package/dist/components/BannerAlert/BannerAlert.d.cts +4 -0
  13. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -0
  14. package/dist/components/BannerAlert/BannerAlert.d.mts +4 -0
  15. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -0
  16. package/dist/components/BannerAlert/BannerAlert.mjs +23 -0
  17. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -0
  18. package/dist/components/BannerAlert/BannerAlert.types.cjs +3 -0
  19. package/dist/components/BannerAlert/BannerAlert.types.cjs.map +1 -0
  20. package/dist/components/BannerAlert/BannerAlert.types.d.cts +10 -0
  21. package/dist/components/BannerAlert/BannerAlert.types.d.cts.map +1 -0
  22. package/dist/components/BannerAlert/BannerAlert.types.d.mts +10 -0
  23. package/dist/components/BannerAlert/BannerAlert.types.d.mts.map +1 -0
  24. package/dist/components/BannerAlert/BannerAlert.types.mjs +2 -0
  25. package/dist/components/BannerAlert/BannerAlert.types.mjs.map +1 -0
  26. package/dist/components/BannerAlert/index.cjs +8 -0
  27. package/dist/components/BannerAlert/index.cjs.map +1 -0
  28. package/dist/components/BannerAlert/index.d.cts +4 -0
  29. package/dist/components/BannerAlert/index.d.cts.map +1 -0
  30. package/dist/components/BannerAlert/index.d.mts +4 -0
  31. package/dist/components/BannerAlert/index.d.mts.map +1 -0
  32. package/dist/components/BannerAlert/index.mjs +3 -0
  33. package/dist/components/BannerAlert/index.mjs.map +1 -0
  34. package/dist/components/BannerBase/BannerBase.cjs +1 -1
  35. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  36. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  37. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  38. package/dist/components/BannerBase/BannerBase.mjs +1 -1
  39. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  40. package/dist/components/BottomSheet/BottomSheet.cjs +109 -0
  41. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -0
  42. package/dist/components/BottomSheet/BottomSheet.d.cts +16 -0
  43. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -0
  44. package/dist/components/BottomSheet/BottomSheet.d.mts +16 -0
  45. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -0
  46. package/dist/components/BottomSheet/BottomSheet.mjs +87 -0
  47. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -0
  48. package/dist/components/BottomSheet/BottomSheet.types.cjs +3 -0
  49. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -0
  50. package/dist/components/BottomSheet/BottomSheet.types.d.cts +28 -0
  51. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -0
  52. package/dist/components/BottomSheet/BottomSheet.types.d.mts +28 -0
  53. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -0
  54. package/dist/components/BottomSheet/BottomSheet.types.mjs +2 -0
  55. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -0
  56. package/dist/components/BottomSheet/index.cjs +6 -0
  57. package/dist/components/BottomSheet/index.cjs.map +1 -0
  58. package/dist/components/BottomSheet/index.d.cts +3 -0
  59. package/dist/components/BottomSheet/index.d.cts.map +1 -0
  60. package/dist/components/BottomSheet/index.d.mts +3 -0
  61. package/dist/components/BottomSheet/index.d.mts.map +1 -0
  62. package/dist/components/BottomSheet/index.mjs +2 -0
  63. package/dist/components/BottomSheet/index.mjs.map +1 -0
  64. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +207 -0
  65. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -0
  66. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs +18 -0
  67. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs.map +1 -0
  68. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts +14 -0
  69. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts.map +1 -0
  70. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts +14 -0
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts.map +1 -0
  72. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs +15 -0
  73. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs.map +1 -0
  74. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +13 -0
  75. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -0
  76. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +13 -0
  77. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -0
  78. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +190 -0
  79. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -0
  80. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs +3 -0
  81. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -0
  82. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +56 -0
  83. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -0
  84. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +56 -0
  85. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -0
  86. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs +2 -0
  87. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -0
  88. package/dist/components/BottomSheetDialog/index.cjs +9 -0
  89. package/dist/components/BottomSheetDialog/index.cjs.map +1 -0
  90. package/dist/components/BottomSheetDialog/index.d.cts +3 -0
  91. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -0
  92. package/dist/components/BottomSheetDialog/index.d.mts +3 -0
  93. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -0
  94. package/dist/components/BottomSheetDialog/index.mjs +2 -0
  95. package/dist/components/BottomSheetDialog/index.mjs.map +1 -0
  96. package/dist/components/ButtonBase/ButtonBase.cjs +2 -9
  97. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  98. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  99. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  100. package/dist/components/ButtonBase/ButtonBase.mjs +3 -10
  101. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  102. package/dist/components/ButtonFilter/ButtonFilter.cjs +28 -0
  103. package/dist/components/ButtonFilter/ButtonFilter.cjs.map +1 -0
  104. package/dist/components/ButtonFilter/ButtonFilter.d.cts +4 -0
  105. package/dist/components/ButtonFilter/ButtonFilter.d.cts.map +1 -0
  106. package/dist/components/ButtonFilter/ButtonFilter.d.mts +4 -0
  107. package/dist/components/ButtonFilter/ButtonFilter.d.mts.map +1 -0
  108. package/dist/components/ButtonFilter/ButtonFilter.mjs +28 -0
  109. package/dist/components/ButtonFilter/ButtonFilter.mjs.map +1 -0
  110. package/dist/components/ButtonFilter/ButtonFilter.types.cjs +3 -0
  111. package/dist/components/ButtonFilter/ButtonFilter.types.cjs.map +1 -0
  112. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts +9 -0
  113. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts.map +1 -0
  114. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts +9 -0
  115. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts.map +1 -0
  116. package/dist/components/ButtonFilter/ButtonFilter.types.mjs +2 -0
  117. package/dist/components/ButtonFilter/ButtonFilter.types.mjs.map +1 -0
  118. package/dist/components/ButtonFilter/index.cjs +6 -0
  119. package/dist/components/ButtonFilter/index.cjs.map +1 -0
  120. package/dist/components/ButtonFilter/index.d.cts +3 -0
  121. package/dist/components/ButtonFilter/index.d.cts.map +1 -0
  122. package/dist/components/ButtonFilter/index.d.mts +3 -0
  123. package/dist/components/ButtonFilter/index.d.mts.map +1 -0
  124. package/dist/components/ButtonFilter/index.mjs +2 -0
  125. package/dist/components/ButtonFilter/index.mjs.map +1 -0
  126. package/dist/components/ButtonIcon/ButtonIcon.cjs +10 -4
  127. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  128. package/dist/components/ButtonIcon/ButtonIcon.d.cts +1 -1
  129. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  130. package/dist/components/ButtonIcon/ButtonIcon.d.mts +1 -1
  131. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  132. package/dist/components/ButtonIcon/ButtonIcon.mjs +11 -5
  133. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  134. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  135. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +4 -11
  136. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  137. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +4 -11
  138. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  139. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  140. package/dist/components/ButtonIcon/index.cjs +2 -1
  141. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  142. package/dist/components/ButtonIcon/index.d.cts +1 -1
  143. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  144. package/dist/components/ButtonIcon/index.d.mts +1 -1
  145. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  146. package/dist/components/ButtonIcon/index.mjs +1 -1
  147. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  148. package/dist/components/Icon/assets/ai.svg +1 -1
  149. package/dist/components/Input/Input.cjs +12 -2
  150. package/dist/components/Input/Input.cjs.map +1 -1
  151. package/dist/components/Input/Input.d.cts +2 -1
  152. package/dist/components/Input/Input.d.cts.map +1 -1
  153. package/dist/components/Input/Input.d.mts +2 -1
  154. package/dist/components/Input/Input.d.mts.map +1 -1
  155. package/dist/components/Input/Input.mjs +12 -2
  156. package/dist/components/Input/Input.mjs.map +1 -1
  157. package/dist/components/Input/Input.types.cjs.map +1 -1
  158. package/dist/components/Input/Input.types.d.cts +5 -1
  159. package/dist/components/Input/Input.types.d.cts.map +1 -1
  160. package/dist/components/Input/Input.types.d.mts +5 -1
  161. package/dist/components/Input/Input.types.d.mts.map +1 -1
  162. package/dist/components/Input/Input.types.mjs.map +1 -1
  163. package/dist/components/ListItem/ListItem.cjs +61 -0
  164. package/dist/components/ListItem/ListItem.cjs.map +1 -0
  165. package/dist/components/ListItem/ListItem.constants.cjs +14 -0
  166. package/dist/components/ListItem/ListItem.constants.cjs.map +1 -0
  167. package/dist/components/ListItem/ListItem.constants.d.cts +8 -0
  168. package/dist/components/ListItem/ListItem.constants.d.cts.map +1 -0
  169. package/dist/components/ListItem/ListItem.constants.d.mts +8 -0
  170. package/dist/components/ListItem/ListItem.constants.d.mts.map +1 -0
  171. package/dist/components/ListItem/ListItem.constants.mjs +11 -0
  172. package/dist/components/ListItem/ListItem.constants.mjs.map +1 -0
  173. package/dist/components/ListItem/ListItem.d.cts +4 -0
  174. package/dist/components/ListItem/ListItem.d.cts.map +1 -0
  175. package/dist/components/ListItem/ListItem.d.mts +4 -0
  176. package/dist/components/ListItem/ListItem.d.mts.map +1 -0
  177. package/dist/components/ListItem/ListItem.mjs +41 -0
  178. package/dist/components/ListItem/ListItem.mjs.map +1 -0
  179. package/dist/components/ListItem/ListItem.types.cjs +12 -0
  180. package/dist/components/ListItem/ListItem.types.cjs.map +1 -0
  181. package/dist/components/ListItem/ListItem.types.d.cts +60 -0
  182. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -0
  183. package/dist/components/ListItem/ListItem.types.d.mts +60 -0
  184. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -0
  185. package/dist/components/ListItem/ListItem.types.mjs +9 -0
  186. package/dist/components/ListItem/ListItem.types.mjs.map +1 -0
  187. package/dist/components/ListItem/index.cjs +8 -0
  188. package/dist/components/ListItem/index.cjs.map +1 -0
  189. package/dist/components/ListItem/index.d.cts +4 -0
  190. package/dist/components/ListItem/index.d.cts.map +1 -0
  191. package/dist/components/ListItem/index.d.mts +4 -0
  192. package/dist/components/ListItem/index.d.mts.map +1 -0
  193. package/dist/components/ListItem/index.mjs +3 -0
  194. package/dist/components/ListItem/index.mjs.map +1 -0
  195. package/dist/components/MainActionButton/MainActionButton.cjs +28 -0
  196. package/dist/components/MainActionButton/MainActionButton.cjs.map +1 -0
  197. package/dist/components/MainActionButton/MainActionButton.d.cts +4 -0
  198. package/dist/components/MainActionButton/MainActionButton.d.cts.map +1 -0
  199. package/dist/components/MainActionButton/MainActionButton.d.mts +4 -0
  200. package/dist/components/MainActionButton/MainActionButton.d.mts.map +1 -0
  201. package/dist/components/MainActionButton/MainActionButton.mjs +28 -0
  202. package/dist/components/MainActionButton/MainActionButton.mjs.map +1 -0
  203. package/dist/components/MainActionButton/MainActionButton.types.cjs +3 -0
  204. package/dist/components/MainActionButton/MainActionButton.types.cjs.map +1 -0
  205. package/dist/components/MainActionButton/MainActionButton.types.d.cts +41 -0
  206. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -0
  207. package/dist/components/MainActionButton/MainActionButton.types.d.mts +41 -0
  208. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -0
  209. package/dist/components/MainActionButton/MainActionButton.types.mjs +2 -0
  210. package/dist/components/MainActionButton/MainActionButton.types.mjs.map +1 -0
  211. package/dist/components/MainActionButton/index.cjs +6 -0
  212. package/dist/components/MainActionButton/index.cjs.map +1 -0
  213. package/dist/components/MainActionButton/index.d.cts +3 -0
  214. package/dist/components/MainActionButton/index.d.cts.map +1 -0
  215. package/dist/components/MainActionButton/index.d.mts +3 -0
  216. package/dist/components/MainActionButton/index.d.mts.map +1 -0
  217. package/dist/components/MainActionButton/index.mjs +2 -0
  218. package/dist/components/MainActionButton/index.mjs.map +1 -0
  219. package/dist/components/TabEmptyState/TabEmptyState.cjs +22 -0
  220. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -0
  221. package/dist/components/TabEmptyState/TabEmptyState.d.cts +4 -0
  222. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -0
  223. package/dist/components/TabEmptyState/TabEmptyState.d.mts +4 -0
  224. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -0
  225. package/dist/components/TabEmptyState/TabEmptyState.mjs +22 -0
  226. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -0
  227. package/dist/components/TabEmptyState/TabEmptyState.types.cjs +3 -0
  228. package/dist/components/TabEmptyState/TabEmptyState.types.cjs.map +1 -0
  229. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +45 -0
  230. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -0
  231. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +45 -0
  232. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -0
  233. package/dist/components/TabEmptyState/TabEmptyState.types.mjs +2 -0
  234. package/dist/components/TabEmptyState/TabEmptyState.types.mjs.map +1 -0
  235. package/dist/components/TabEmptyState/index.cjs +6 -0
  236. package/dist/components/TabEmptyState/index.cjs.map +1 -0
  237. package/dist/components/TabEmptyState/index.d.cts +3 -0
  238. package/dist/components/TabEmptyState/index.d.cts.map +1 -0
  239. package/dist/components/TabEmptyState/index.d.mts +3 -0
  240. package/dist/components/TabEmptyState/index.d.mts.map +1 -0
  241. package/dist/components/TabEmptyState/index.mjs +2 -0
  242. package/dist/components/TabEmptyState/index.mjs.map +1 -0
  243. package/dist/components/Toast/Toast.cjs +3 -2
  244. package/dist/components/Toast/Toast.cjs.map +1 -1
  245. package/dist/components/Toast/Toast.d.cts.map +1 -1
  246. package/dist/components/Toast/Toast.d.mts.map +1 -1
  247. package/dist/components/Toast/Toast.mjs +4 -3
  248. package/dist/components/Toast/Toast.mjs.map +1 -1
  249. package/dist/components/Toast/Toast.types.cjs +5 -5
  250. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  251. package/dist/components/Toast/Toast.types.d.cts +5 -4
  252. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  253. package/dist/components/Toast/Toast.types.d.mts +5 -4
  254. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  255. package/dist/components/Toast/Toast.types.mjs +4 -4
  256. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  257. package/dist/components/Toast/index.cjs +2 -2
  258. package/dist/components/Toast/index.cjs.map +1 -1
  259. package/dist/components/Toast/index.d.cts +1 -1
  260. package/dist/components/Toast/index.d.cts.map +1 -1
  261. package/dist/components/Toast/index.d.mts +1 -1
  262. package/dist/components/Toast/index.d.mts.map +1 -1
  263. package/dist/components/Toast/index.mjs +1 -1
  264. package/dist/components/Toast/index.mjs.map +1 -1
  265. package/dist/components/index.cjs +31 -2
  266. package/dist/components/index.cjs.map +1 -1
  267. package/dist/components/index.d.cts +24 -4
  268. package/dist/components/index.d.cts.map +1 -1
  269. package/dist/components/index.d.mts +24 -4
  270. package/dist/components/index.d.mts.map +1 -1
  271. package/dist/components/index.mjs +12 -2
  272. package/dist/components/index.mjs.map +1 -1
  273. package/dist/types/index.cjs +10 -1
  274. package/dist/types/index.cjs.map +1 -1
  275. package/dist/types/index.d.cts +8 -0
  276. package/dist/types/index.d.cts.map +1 -1
  277. package/dist/types/index.d.mts +8 -0
  278. package/dist/types/index.d.mts.map +1 -1
  279. package/dist/types/index.mjs +9 -0
  280. package/dist/types/index.mjs.map +1 -1
  281. package/package.json +5 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\n/**\n * Vertical alignment options for children inside the ListItem row.\n */\nexport const ListItemVerticalAlignment = {\n Top: 'top',\n Center: 'center',\n Bottom: 'bottom',\n} as const;\n\nexport type ListItemVerticalAlignment =\n (typeof ListItemVerticalAlignment)[keyof typeof ListItemVerticalAlignment];\n\n/**\n * ListItem component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type ListItemProps = {\n /**\n * Content to display inside the list item row.\n */\n children?: ReactNode;\n /**\n * Optional content displayed above the list item row.\n */\n topAccessory?: ReactNode;\n /**\n * Optional content displayed below the list item row.\n */\n bottomAccessory?: ReactNode;\n /**\n * Gap in pixels between the topAccessory and the row.\n *\n * @default 0\n */\n topAccessoryGap?: number;\n /**\n * Gap in pixels between the row and the bottomAccessory.\n *\n * @default 0\n */\n bottomAccessoryGap?: number;\n /**\n * Horizontal spacing between each child inside the row.\n *\n * @default 16\n */\n gap?: number | string;\n /**\n * Vertical alignment of children inside the row.\n *\n * @default ListItemVerticalAlignment.Center\n */\n verticalAlignment?: ListItemVerticalAlignment;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListItemVerticalAlignment = exports.ListItem = void 0;
4
+ var ListItem_1 = require("./ListItem.cjs");
5
+ Object.defineProperty(exports, "ListItem", { enumerable: true, get: function () { return ListItem_1.ListItem; } });
6
+ var ListItem_types_1 = require("./ListItem.types.cjs");
7
+ Object.defineProperty(exports, "ListItemVerticalAlignment", { enumerable: true, get: function () { return ListItem_types_1.ListItemVerticalAlignment; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uDAA6D;AAApD,2HAAA,yBAAyB,OAAA","sourcesContent":["export { ListItem } from './ListItem';\nexport { ListItemVerticalAlignment } from './ListItem.types';\nexport type { ListItemProps } from './ListItem.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { ListItem } from "./ListItem.cjs";
2
+ export { ListItemVerticalAlignment } from "./ListItem.types.cjs";
3
+ export type { ListItemProps } from "./ListItem.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,yBAAyB,EAAE,6BAAyB;AAC7D,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,4 @@
1
+ export { ListItem } from "./ListItem.mjs";
2
+ export { ListItemVerticalAlignment } from "./ListItem.types.mjs";
3
+ export type { ListItemProps } from "./ListItem.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,yBAAyB,EAAE,6BAAyB;AAC7D,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,3 @@
1
+ export { ListItem } from "./ListItem.mjs";
2
+ export { ListItemVerticalAlignment } from "./ListItem.types.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,yBAAyB,EAAE,6BAAyB","sourcesContent":["export { ListItem } from './ListItem';\nexport { ListItemVerticalAlignment } from './ListItem.types';\nexport type { ListItemProps } from './ListItem.types';\n"]}
@@ -0,0 +1,28 @@
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.MainActionButton = void 0;
7
+ const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
8
+ const react_1 = __importDefault(require("react"));
9
+ const Icon_1 = require("../Icon/index.cjs");
10
+ const ButtonAnimated_1 = require("../temp-components/ButtonAnimated/index.cjs");
11
+ const Text_1 = require("../Text/index.cjs");
12
+ const MainActionButton = ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled = false, twClassName = '', ...props }) => {
13
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
14
+ return (<ButtonAnimated_1.ButtonAnimated disabled={isDisabled} accessible onPress={!isDisabled ? onPress : undefined} onPressIn={!isDisabled ? onPressIn : undefined} onPressOut={!isDisabled ? onPressOut : undefined} style={({ pressed }) => {
15
+ const baseStyle = tw.style('items-center justify-center rounded-xl px-1 py-4 min-w-[68px]', pressed && !isDisabled ? 'bg-muted-pressed' : 'bg-muted', isDisabled ? 'opacity-50' : 'opacity-100', twClassName);
16
+ const additionalStyle = typeof style === 'function' ? style({ pressed }) : style;
17
+ return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];
18
+ }} {...props}>
19
+ <>
20
+ <Icon_1.Icon {...iconProps} name={iconName} size={Icon_1.IconSize.Lg} color={Icon_1.IconColor.IconAlternative}/>
21
+ <Text_1.Text {...labelProps} variant={Text_1.TextVariant.BodySm} fontWeight={Text_1.FontWeight.Medium} color={Text_1.TextColor.TextDefault} twClassName="mt-0.5 w-full text-center shrink" numberOfLines={1} ellipsizeMode="tail">
22
+ {label}
23
+ </Text_1.Text>
24
+ </>
25
+ </ButtonAnimated_1.ButtonAnimated>);
26
+ };
27
+ exports.MainActionButton = MainActionButton;
28
+ //# sourceMappingURL=MainActionButton.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.cjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAG1B,4CAAoD;AACpD,gFAAmE;AACnE,4CAAmE;AAI5D,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACc,EAAE,EAAE;IAC1B,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,+BAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,UAAU,CACV,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAC3C,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAC/C,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CACjD,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CACxB,+DAA+D,EAC/D,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EACxD,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACY,CAAC;YAE1B,MAAM,eAAe,GACnB,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAE3D,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,CAAC,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,EACE;QAAA,CAAC,WAAI,CACH,IAAI,SAAS,CAAC,CACd,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,EAEnC;QAAA,CAAC,WAAI,CACH,IAAI,UAAU,CAAC,CACf,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAU,CAAC,MAAM,CAAC,CAC9B,KAAK,CAAC,CAAC,gBAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,kCAAkC,CAC9C,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,aAAa,CAAC,MAAM,CAEpB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,WAAI,CACR;MAAA,GACF;IAAA,EAAE,+BAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC;AA1DW,QAAA,gBAAgB,oBA0D3B","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nimport { Icon, IconColor, IconSize } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\nimport { Text, FontWeight, TextColor, TextVariant } from '../Text';\n\nimport type { MainActionButtonProps } from './MainActionButton.types';\n\nexport const MainActionButton = ({\n iconName,\n label,\n iconProps,\n labelProps,\n onPress,\n onPressIn,\n onPressOut,\n style,\n isDisabled = false,\n twClassName = '',\n ...props\n}: MainActionButtonProps) => {\n const tw = useTailwind();\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n accessible\n onPress={!isDisabled ? onPress : undefined}\n onPressIn={!isDisabled ? onPressIn : undefined}\n onPressOut={!isDisabled ? onPressOut : undefined}\n style={({ pressed }) => {\n const baseStyle = tw.style(\n 'items-center justify-center rounded-xl px-1 py-4 min-w-[68px]',\n pressed && !isDisabled ? 'bg-muted-pressed' : 'bg-muted',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ) as StyleProp<ViewStyle>;\n\n const additionalStyle =\n typeof style === 'function' ? style({ pressed }) : style;\n\n return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];\n }}\n {...props}\n >\n <>\n <Icon\n {...iconProps}\n name={iconName}\n size={IconSize.Lg}\n color={IconColor.IconAlternative}\n />\n <Text\n {...labelProps}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n color={TextColor.TextDefault}\n twClassName=\"mt-0.5 w-full text-center shrink\"\n numberOfLines={1}\n ellipsizeMode=\"tail\"\n >\n {label}\n </Text>\n </>\n </ButtonAnimated>\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { MainActionButtonProps } from "./MainActionButton.types.cjs";
3
+ export declare const MainActionButton: ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled, twClassName, ...props }: MainActionButtonProps) => React.JSX.Element;
4
+ //# sourceMappingURL=MainActionButton.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.d.cts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,qCAAiC;AAEtE,eAAO,MAAM,gBAAgB,yHAY1B,qBAAqB,sBA8CvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { MainActionButtonProps } from "./MainActionButton.types.mjs";
3
+ export declare const MainActionButton: ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled, twClassName, ...props }: MainActionButtonProps) => React.JSX.Element;
4
+ //# sourceMappingURL=MainActionButton.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.d.mts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,qCAAiC;AAEtE,eAAO,MAAM,gBAAgB,yHAY1B,qBAAqB,sBA8CvB,CAAC"}
@@ -0,0 +1,28 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { Icon, IconColor, IconSize } from "../Icon/index.mjs";
11
+ import { ButtonAnimated } from "../temp-components/ButtonAnimated/index.mjs";
12
+ import { Text, FontWeight, TextColor, TextVariant } from "../Text/index.mjs";
13
+ export const MainActionButton = ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled = false, twClassName = '', ...props }) => {
14
+ const tw = useTailwind();
15
+ return (<ButtonAnimated disabled={isDisabled} accessible onPress={!isDisabled ? onPress : undefined} onPressIn={!isDisabled ? onPressIn : undefined} onPressOut={!isDisabled ? onPressOut : undefined} style={({ pressed }) => {
16
+ const baseStyle = tw.style('items-center justify-center rounded-xl px-1 py-4 min-w-[68px]', pressed && !isDisabled ? 'bg-muted-pressed' : 'bg-muted', isDisabled ? 'opacity-50' : 'opacity-100', twClassName);
17
+ const additionalStyle = typeof style === 'function' ? style({ pressed }) : style;
18
+ return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];
19
+ }} {...props}>
20
+ <>
21
+ <Icon {...iconProps} name={iconName} size={IconSize.Lg} color={IconColor.IconAlternative}/>
22
+ <Text {...labelProps} variant={TextVariant.BodySm} fontWeight={FontWeight.Medium} color={TextColor.TextDefault} twClassName="mt-0.5 w-full text-center shrink" numberOfLines={1} ellipsizeMode="tail">
23
+ {label}
24
+ </Text>
25
+ </>
26
+ </ButtonAnimated>);
27
+ };
28
+ //# sourceMappingURL=MainActionButton.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.mjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAG1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACpD,OAAO,EAAE,cAAc,EAAE,oDAA0C;AACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,0BAAgB;AAInE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACc,EAAE,EAAE;IAC1B,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,cAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,UAAU,CACV,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAC3C,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAC/C,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CACjD,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CACxB,+DAA+D,EAC/D,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EACxD,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACY,CAAC;YAE1B,MAAM,eAAe,GACnB,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAE3D,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,CAAC,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,EACE;QAAA,CAAC,IAAI,CACH,IAAI,SAAS,CAAC,CACd,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,EAEnC;QAAA,CAAC,IAAI,CACH,IAAI,UAAU,CAAC,CACf,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAC9B,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,kCAAkC,CAC9C,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,aAAa,CAAC,MAAM,CAEpB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,IAAI,CACR;MAAA,GACF;IAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nimport { Icon, IconColor, IconSize } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\nimport { Text, FontWeight, TextColor, TextVariant } from '../Text';\n\nimport type { MainActionButtonProps } from './MainActionButton.types';\n\nexport const MainActionButton = ({\n iconName,\n label,\n iconProps,\n labelProps,\n onPress,\n onPressIn,\n onPressOut,\n style,\n isDisabled = false,\n twClassName = '',\n ...props\n}: MainActionButtonProps) => {\n const tw = useTailwind();\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n accessible\n onPress={!isDisabled ? onPress : undefined}\n onPressIn={!isDisabled ? onPressIn : undefined}\n onPressOut={!isDisabled ? onPressOut : undefined}\n style={({ pressed }) => {\n const baseStyle = tw.style(\n 'items-center justify-center rounded-xl px-1 py-4 min-w-[68px]',\n pressed && !isDisabled ? 'bg-muted-pressed' : 'bg-muted',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ) as StyleProp<ViewStyle>;\n\n const additionalStyle =\n typeof style === 'function' ? style({ pressed }) : style;\n\n return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];\n }}\n {...props}\n >\n <>\n <Icon\n {...iconProps}\n name={iconName}\n size={IconSize.Lg}\n color={IconColor.IconAlternative}\n />\n <Text\n {...labelProps}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n color={TextColor.TextDefault}\n twClassName=\"mt-0.5 w-full text-center shrink\"\n numberOfLines={1}\n ellipsizeMode=\"tail\"\n >\n {label}\n </Text>\n </>\n </ButtonAnimated>\n );\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MainActionButton.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.cjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PressableProps,\n PressableStateCallbackType,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * MainActionButton component props.\n */\nexport type MainActionButtonProps = {\n /**\n * Icon name rendered above the label.\n */\n iconName: IconName;\n /**\n * Label text rendered below the icon.\n */\n label: string;\n /**\n * Optional props forwarded to the internal Icon component.\n * Useful for test IDs and accessibility metadata.\n */\n iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;\n /**\n * Optional props forwarded to the internal Text component.\n * Useful for test IDs and accessibility metadata.\n */\n labelProps?: Omit<\n Partial<TextProps>,\n 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'\n >;\n /**\n * Disables the button interaction and applies disabled styling.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional Tailwind classes to extend or override container styles.\n */\n twClassName?: string;\n /**\n * Optional React Native style for the button container.\n */\n style?:\n | StyleProp<ViewStyle>\n | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);\n} & Omit<PressableProps, 'children' | 'disabled' | 'style'>;\n"]}
@@ -0,0 +1,41 @@
1
+ import type { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native/index.js";
2
+ import type { IconName, IconProps } from "../Icon/index.cjs";
3
+ import type { TextProps } from "../Text/index.cjs";
4
+ /**
5
+ * MainActionButton component props.
6
+ */
7
+ export type MainActionButtonProps = {
8
+ /**
9
+ * Icon name rendered above the label.
10
+ */
11
+ iconName: IconName;
12
+ /**
13
+ * Label text rendered below the icon.
14
+ */
15
+ label: string;
16
+ /**
17
+ * Optional props forwarded to the internal Icon component.
18
+ * Useful for test IDs and accessibility metadata.
19
+ */
20
+ iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;
21
+ /**
22
+ * Optional props forwarded to the internal Text component.
23
+ * Useful for test IDs and accessibility metadata.
24
+ */
25
+ labelProps?: Omit<Partial<TextProps>, 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'>;
26
+ /**
27
+ * Disables the button interaction and applies disabled styling.
28
+ *
29
+ * @default false
30
+ */
31
+ isDisabled?: boolean;
32
+ /**
33
+ * Optional Tailwind classes to extend or override container styles.
34
+ */
35
+ twClassName?: string;
36
+ /**
37
+ * Optional React Native style for the button container.
38
+ */
39
+ style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
40
+ } & Omit<PressableProps, 'children' | 'disabled' | 'style'>;
41
+ //# sourceMappingURL=MainActionButton.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.d.cts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,8BAAqB;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAChE;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CACf,OAAO,CAAC,SAAS,CAAC,EAClB,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,CAChE,CAAC;IACF;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,CAAC,SAAS,CAAC,GACpB,CAAC,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACnE,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native/index.js";
2
+ import type { IconName, IconProps } from "../Icon/index.mjs";
3
+ import type { TextProps } from "../Text/index.mjs";
4
+ /**
5
+ * MainActionButton component props.
6
+ */
7
+ export type MainActionButtonProps = {
8
+ /**
9
+ * Icon name rendered above the label.
10
+ */
11
+ iconName: IconName;
12
+ /**
13
+ * Label text rendered below the icon.
14
+ */
15
+ label: string;
16
+ /**
17
+ * Optional props forwarded to the internal Icon component.
18
+ * Useful for test IDs and accessibility metadata.
19
+ */
20
+ iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;
21
+ /**
22
+ * Optional props forwarded to the internal Text component.
23
+ * Useful for test IDs and accessibility metadata.
24
+ */
25
+ labelProps?: Omit<Partial<TextProps>, 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'>;
26
+ /**
27
+ * Disables the button interaction and applies disabled styling.
28
+ *
29
+ * @default false
30
+ */
31
+ isDisabled?: boolean;
32
+ /**
33
+ * Optional Tailwind classes to extend or override container styles.
34
+ */
35
+ twClassName?: string;
36
+ /**
37
+ * Optional React Native style for the button container.
38
+ */
39
+ style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
40
+ } & Omit<PressableProps, 'children' | 'disabled' | 'style'>;
41
+ //# sourceMappingURL=MainActionButton.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.d.mts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,8BAAqB;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAChE;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CACf,OAAO,CAAC,SAAS,CAAC,EAClB,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,CAChE,CAAC;IACF;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,CAAC,SAAS,CAAC,GACpB,CAAC,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACnE,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MainActionButton.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.mjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PressableProps,\n PressableStateCallbackType,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * MainActionButton component props.\n */\nexport type MainActionButtonProps = {\n /**\n * Icon name rendered above the label.\n */\n iconName: IconName;\n /**\n * Label text rendered below the icon.\n */\n label: string;\n /**\n * Optional props forwarded to the internal Icon component.\n * Useful for test IDs and accessibility metadata.\n */\n iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;\n /**\n * Optional props forwarded to the internal Text component.\n * Useful for test IDs and accessibility metadata.\n */\n labelProps?: Omit<\n Partial<TextProps>,\n 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'\n >;\n /**\n * Disables the button interaction and applies disabled styling.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional Tailwind classes to extend or override container styles.\n */\n twClassName?: string;\n /**\n * Optional React Native style for the button container.\n */\n style?:\n | StyleProp<ViewStyle>\n | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);\n} & Omit<PressableProps, 'children' | 'disabled' | 'style'>;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MainActionButton = void 0;
4
+ var MainActionButton_1 = require("./MainActionButton.cjs");
5
+ Object.defineProperty(exports, "MainActionButton", { enumerable: true, get: function () { return MainActionButton_1.MainActionButton; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAA7C,oHAAA,gBAAgB,OAAA","sourcesContent":["export { MainActionButton } from './MainActionButton';\nexport type { MainActionButtonProps } from './MainActionButton.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { MainActionButton } from "./MainActionButton.cjs";
2
+ export type { MainActionButtonProps } from "./MainActionButton.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B;AACtD,YAAY,EAAE,qBAAqB,EAAE,qCAAiC"}
@@ -0,0 +1,3 @@
1
+ export { MainActionButton } from "./MainActionButton.mjs";
2
+ export type { MainActionButtonProps } from "./MainActionButton.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B;AACtD,YAAY,EAAE,qBAAqB,EAAE,qCAAiC"}
@@ -0,0 +1,2 @@
1
+ export { MainActionButton } from "./MainActionButton.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B","sourcesContent":["export { MainActionButton } from './MainActionButton';\nexport type { MainActionButtonProps } from './MainActionButton.types';\n"]}
@@ -0,0 +1,22 @@
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.TabEmptyState = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Box_1 = require("../Box/index.cjs");
9
+ const Button_1 = require("../Button/index.cjs");
10
+ const Text_1 = require("../Text/index.cjs");
11
+ const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box_1.Box flexDirection={Box_1.BoxFlexDirection.Column} alignItems={Box_1.BoxAlignItems.Center} justifyContent={Box_1.BoxJustifyContent.Center} backgroundColor={Box_1.BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={`max-w-64 ${twClassName}`} style={style} {...props}>
12
+ {icon}
13
+ {description && (<Text_1.Text variant={Text_1.TextVariant.BodyMd} color={Text_1.TextColor.TextAlternative} twClassName="text-center" {...descriptionProps}>
14
+ {description}
15
+ </Text_1.Text>)}
16
+ {actionButtonText && onAction && (<Button_1.Button variant={Button_1.ButtonVariant.Secondary} onPress={onAction} {...actionButtonProps}>
17
+ {actionButtonText}
18
+ </Button_1.Button>)}
19
+ {children}
20
+ </Box_1.Box>);
21
+ exports.TabEmptyState = TabEmptyState;
22
+ //# sourceMappingURL=TabEmptyState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0CAMgB;AAChB,gDAAkD;AAClD,4CAAuD;AAIhD,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,mBAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,uBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,wBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,YAAY,WAAW,EAAE,CAAC,CACvC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,IAAI,CACL;IAAA,CAAC,WAAW,IAAI,CACd,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,aAAa,CACzB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,WAAI,CAAC,CACR,CACD;IAAA,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAC/B,CAAC,eAAM,CACL,OAAO,CAAC,CAAC,sBAAa,CAAC,SAAS,CAAC,CACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,gBAAgB,CACnB;MAAA,EAAE,eAAM,CAAC,CACV,CACD;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AA5CW,QAAA,aAAa,iBA4CxB","sourcesContent":["import React from 'react';\n\nimport {\n Box,\n BoxFlexDirection,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n} from '../Box';\nimport { Button, ButtonVariant } from '../Button';\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { TabEmptyStateProps } from './TabEmptyState.types';\n\nexport const TabEmptyState = ({\n icon,\n description,\n descriptionProps,\n actionButtonText,\n actionButtonProps,\n onAction,\n children,\n style,\n twClassName = '',\n ...props\n}: TabEmptyStateProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n gap={3}\n twClassName={`max-w-64 ${twClassName}`}\n style={style}\n {...props}\n >\n {icon}\n {description && (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextAlternative}\n twClassName=\"text-center\"\n {...descriptionProps}\n >\n {description}\n </Text>\n )}\n {actionButtonText && onAction && (\n <Button\n variant={ButtonVariant.Secondary}\n onPress={onAction}\n {...actionButtonProps}\n >\n {actionButtonText}\n </Button>\n )}\n {children}\n </Box>\n);\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { TabEmptyStateProps } from "./TabEmptyState.types.cjs";
3
+ export declare const TabEmptyState: ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName, ...props }: TabEmptyStateProps) => React.JSX.Element;
4
+ //# sourceMappingURL=TabEmptyState.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,mIAWvB,kBAAkB,sBAiCpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { TabEmptyStateProps } from "./TabEmptyState.types.mjs";
3
+ export declare const TabEmptyState: ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName, ...props }: TabEmptyStateProps) => React.JSX.Element;
4
+ //# sourceMappingURL=TabEmptyState.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,mIAWvB,kBAAkB,sBAiCpB,CAAC"}
@@ -0,0 +1,22 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React from "react";
8
+ const React = $importDefault($React);
9
+ import { Box, BoxFlexDirection, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor } from "../Box/index.mjs";
10
+ import { Button, ButtonVariant } from "../Button/index.mjs";
11
+ import { Text, TextVariant, TextColor } from "../Text/index.mjs";
12
+ export const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box flexDirection={BoxFlexDirection.Column} alignItems={BoxAlignItems.Center} justifyContent={BoxJustifyContent.Center} backgroundColor={BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={`max-w-64 ${twClassName}`} style={style} {...props}>
13
+ {icon}
14
+ {description && (<Text variant={TextVariant.BodyMd} color={TextColor.TextAlternative} twClassName="text-center" {...descriptionProps}>
15
+ {description}
16
+ </Text>)}
17
+ {actionButtonText && onAction && (<Button variant={ButtonVariant.Secondary} onPress={onAction} {...actionButtonProps}>
18
+ {actionButtonText}
19
+ </Button>)}
20
+ {children}
21
+ </Box>);
22
+ //# sourceMappingURL=TabEmptyState.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EACnB,yBAAe;AAChB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,4BAAkB;AAClD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,0BAAgB;AAIvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,YAAY,WAAW,EAAE,CAAC,CACvC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,IAAI,CACL;IAAA,CAAC,WAAW,IAAI,CACd,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,aAAa,CACzB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,IAAI,CAAC,CACR,CACD;IAAA,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAC/B,CAAC,MAAM,CACL,OAAO,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,gBAAgB,CACnB;MAAA,EAAE,MAAM,CAAC,CACV,CACD;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,GAAG,CAAC,CACP,CAAC","sourcesContent":["import React from 'react';\n\nimport {\n Box,\n BoxFlexDirection,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n} from '../Box';\nimport { Button, ButtonVariant } from '../Button';\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { TabEmptyStateProps } from './TabEmptyState.types';\n\nexport const TabEmptyState = ({\n icon,\n description,\n descriptionProps,\n actionButtonText,\n actionButtonProps,\n onAction,\n children,\n style,\n twClassName = '',\n ...props\n}: TabEmptyStateProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n gap={3}\n twClassName={`max-w-64 ${twClassName}`}\n style={style}\n {...props}\n >\n {icon}\n {description && (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextAlternative}\n twClassName=\"text-center\"\n {...descriptionProps}\n >\n {description}\n </Text>\n )}\n {actionButtonText && onAction && (\n <Button\n variant={ButtonVariant.Secondary}\n onPress={onAction}\n {...actionButtonProps}\n >\n {actionButtonText}\n </Button>\n )}\n {children}\n </Box>\n);\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TabEmptyState.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\nimport type { ButtonProps } from '../Button/Button.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TabEmptyState component props.\n */\nexport type TabEmptyStateProps = {\n /**\n * Optional icon to display in the empty state.\n * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.\n */\n icon?: ReactNode;\n /**\n * Optional description text to display in the empty state.\n */\n description?: string;\n /**\n * Optional props to pass to the description Text component.\n */\n descriptionProps?: Partial<TextProps>;\n /**\n * Optional label for the action button.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n actionButtonText?: string;\n /**\n * Optional props to pass to the action Button component.\n */\n actionButtonProps?: Partial<ButtonProps>;\n /**\n * Optional callback when the action button is pressed.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n onAction?: () => void;\n /**\n * Optional additional content to display below the action button.\n */\n children?: ReactNode;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { ButtonProps } from "../Button/Button.types.cjs";
4
+ import type { TextProps } from "../Text/Text.types.cjs";
5
+ /**
6
+ * TabEmptyState component props.
7
+ */
8
+ export type TabEmptyStateProps = {
9
+ /**
10
+ * Optional icon to display in the empty state.
11
+ * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.
12
+ */
13
+ icon?: ReactNode;
14
+ /**
15
+ * Optional description text to display in the empty state.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Optional props to pass to the description Text component.
20
+ */
21
+ descriptionProps?: Partial<TextProps>;
22
+ /**
23
+ * Optional label for the action button.
24
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
25
+ */
26
+ actionButtonText?: string;
27
+ /**
28
+ * Optional props to pass to the action Button component.
29
+ */
30
+ actionButtonProps?: Partial<ButtonProps>;
31
+ /**
32
+ * Optional callback when the action button is pressed.
33
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
34
+ */
35
+ onAction?: () => void;
36
+ /**
37
+ * Optional additional content to display below the action button.
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Optional prop to add twrnc overriding classNames.
42
+ */
43
+ twClassName?: string;
44
+ } & ViewProps;
45
+ //# sourceMappingURL=TabEmptyState.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { ButtonProps } from "../Button/Button.types.mjs";
4
+ import type { TextProps } from "../Text/Text.types.mjs";
5
+ /**
6
+ * TabEmptyState component props.
7
+ */
8
+ export type TabEmptyStateProps = {
9
+ /**
10
+ * Optional icon to display in the empty state.
11
+ * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.
12
+ */
13
+ icon?: ReactNode;
14
+ /**
15
+ * Optional description text to display in the empty state.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Optional props to pass to the description Text component.
20
+ */
21
+ descriptionProps?: Partial<TextProps>;
22
+ /**
23
+ * Optional label for the action button.
24
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
25
+ */
26
+ actionButtonText?: string;
27
+ /**
28
+ * Optional props to pass to the action Button component.
29
+ */
30
+ actionButtonProps?: Partial<ButtonProps>;
31
+ /**
32
+ * Optional callback when the action button is pressed.
33
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
34
+ */
35
+ onAction?: () => void;
36
+ /**
37
+ * Optional additional content to display below the action button.
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Optional prop to add twrnc overriding classNames.
42
+ */
43
+ twClassName?: string;
44
+ } & ViewProps;
45
+ //# sourceMappingURL=TabEmptyState.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TabEmptyState.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\nimport type { ButtonProps } from '../Button/Button.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TabEmptyState component props.\n */\nexport type TabEmptyStateProps = {\n /**\n * Optional icon to display in the empty state.\n * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.\n */\n icon?: ReactNode;\n /**\n * Optional description text to display in the empty state.\n */\n description?: string;\n /**\n * Optional props to pass to the description Text component.\n */\n descriptionProps?: Partial<TextProps>;\n /**\n * Optional label for the action button.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n actionButtonText?: string;\n /**\n * Optional props to pass to the action Button component.\n */\n actionButtonProps?: Partial<ButtonProps>;\n /**\n * Optional callback when the action button is pressed.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n onAction?: () => void;\n /**\n * Optional additional content to display below the action button.\n */\n children?: ReactNode;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TabEmptyState = void 0;
4
+ var TabEmptyState_1 = require("./TabEmptyState.cjs");
5
+ Object.defineProperty(exports, "TabEmptyState", { enumerable: true, get: function () { return TabEmptyState_1.TabEmptyState; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { TabEmptyState } from './TabEmptyState';\nexport type { TabEmptyStateProps } from './TabEmptyState.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TabEmptyState } from "./TabEmptyState.cjs";
2
+ export type { TabEmptyStateProps } from "./TabEmptyState.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,3 @@
1
+ export { TabEmptyState } from "./TabEmptyState.mjs";
2
+ export type { TabEmptyStateProps } from "./TabEmptyState.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { TabEmptyState } from "./TabEmptyState.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB","sourcesContent":["export { TabEmptyState } from './TabEmptyState';\nexport type { TabEmptyStateProps } from './TabEmptyState.types';\n"]}
@@ -116,8 +116,9 @@ const Toast = (0, react_1.forwardRef)(({ twClassName, labelsContainerProps, ...p
116
116
  {linkButtonOptions.label}
117
117
  </Button_1.Button>);
118
118
  const renderCloseButton = (closeButtonOptions) => {
119
- if (closeButtonOptions?.variant === Toast_types_1.ButtonIconVariant.Icon) {
120
- return (<ButtonIcon_1.ButtonIcon onPress={(e) => closeButtonOptions?.onPress?.(e)} iconName={closeButtonOptions?.iconName}/>);
119
+ if (closeButtonOptions && 'iconName' in closeButtonOptions) {
120
+ const iconOptions = closeButtonOptions;
121
+ return (<ButtonIcon_1.ButtonIcon iconName={iconOptions.iconName} onPress={(e) => iconOptions.onPress?.(e)} size={iconOptions.size} isDisabled={iconOptions.isDisabled} twClassName={iconOptions.twClassName} style={iconOptions.style} iconProps={iconOptions.iconProps}/>);
121
122
  }
122
123
  return (<Button_1.Button variant={Button_1.ButtonVariant.Primary} onPress={(e) => closeButtonOptions?.onPress?.(e)} startIconName={closeButtonOptions?.startIconName} endIconName={closeButtonOptions?.endIconName} style={closeButtonOptions?.style}>
123
124
  {closeButtonOptions?.children}