@metamask-previews/design-system-react-native 0.6.0-preview.3dc70e1 → 0.9.0-preview.694a8ed

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 (483) hide show
  1. package/CHANGELOG.md +69 -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/BadgeStatus/BadgeStatus.types.cjs.map +1 -1
  55. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +1 -1
  56. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  57. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +1 -1
  58. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  59. package/dist/components/BadgeStatus/BadgeStatus.types.mjs.map +1 -1
  60. package/dist/components/BannerBase/BannerBase.cjs +63 -0
  61. package/dist/components/BannerBase/BannerBase.cjs.map +1 -0
  62. package/dist/components/BannerBase/BannerBase.d.cts +4 -0
  63. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -0
  64. package/dist/components/BannerBase/BannerBase.d.mts +4 -0
  65. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -0
  66. package/dist/components/BannerBase/BannerBase.mjs +63 -0
  67. package/dist/components/BannerBase/BannerBase.mjs.map +1 -0
  68. package/dist/components/BannerBase/BannerBase.types.cjs +3 -0
  69. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -0
  70. package/dist/components/BannerBase/BannerBase.types.d.cts +53 -0
  71. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -0
  72. package/dist/components/BannerBase/BannerBase.types.d.mts +53 -0
  73. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -0
  74. package/dist/components/BannerBase/BannerBase.types.mjs +2 -0
  75. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -0
  76. package/dist/components/BannerBase/index.cjs +6 -0
  77. package/dist/components/BannerBase/index.cjs.map +1 -0
  78. package/dist/components/BannerBase/index.d.cts +3 -0
  79. package/dist/components/BannerBase/index.d.cts.map +1 -0
  80. package/dist/components/BannerBase/index.d.mts +3 -0
  81. package/dist/components/BannerBase/index.d.mts.map +1 -0
  82. package/dist/components/BannerBase/index.mjs +2 -0
  83. package/dist/components/BannerBase/index.mjs.map +1 -0
  84. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +35 -0
  85. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -0
  86. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts +4 -0
  87. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts.map +1 -0
  88. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts +4 -0
  89. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts.map +1 -0
  90. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +35 -0
  91. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -0
  92. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs +12 -0
  93. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs.map +1 -0
  94. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts +41 -0
  95. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -0
  96. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts +41 -0
  97. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -0
  98. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs +9 -0
  99. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs.map +1 -0
  100. package/dist/components/BottomSheetFooter/index.cjs +8 -0
  101. package/dist/components/BottomSheetFooter/index.cjs.map +1 -0
  102. package/dist/components/BottomSheetFooter/index.d.cts +4 -0
  103. package/dist/components/BottomSheetFooter/index.d.cts.map +1 -0
  104. package/dist/components/BottomSheetFooter/index.d.mts +4 -0
  105. package/dist/components/BottomSheetFooter/index.d.mts.map +1 -0
  106. package/dist/components/BottomSheetFooter/index.mjs +3 -0
  107. package/dist/components/BottomSheetFooter/index.mjs.map +1 -0
  108. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +27 -0
  109. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -0
  110. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs +15 -0
  111. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs.map +1 -0
  112. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts +7 -0
  113. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts.map +1 -0
  114. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts +7 -0
  115. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts.map +1 -0
  116. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs +12 -0
  117. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs.map +1 -0
  118. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts +4 -0
  119. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts.map +1 -0
  120. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts +4 -0
  121. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts.map +1 -0
  122. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +27 -0
  123. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -0
  124. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs +14 -0
  125. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs.map +1 -0
  126. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts +50 -0
  127. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts.map +1 -0
  128. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts +50 -0
  129. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts.map +1 -0
  130. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs +11 -0
  131. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs.map +1 -0
  132. package/dist/components/BottomSheetHeader/index.cjs +8 -0
  133. package/dist/components/BottomSheetHeader/index.cjs.map +1 -0
  134. package/dist/components/BottomSheetHeader/index.d.cts +4 -0
  135. package/dist/components/BottomSheetHeader/index.d.cts.map +1 -0
  136. package/dist/components/BottomSheetHeader/index.d.mts +4 -0
  137. package/dist/components/BottomSheetHeader/index.d.mts.map +1 -0
  138. package/dist/components/BottomSheetHeader/index.mjs +3 -0
  139. package/dist/components/BottomSheetHeader/index.mjs.map +1 -0
  140. package/dist/components/ButtonHero/ButtonHero.cjs +37 -0
  141. package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -0
  142. package/dist/components/ButtonHero/ButtonHero.d.cts +13 -0
  143. package/dist/components/ButtonHero/ButtonHero.d.cts.map +1 -0
  144. package/dist/components/ButtonHero/ButtonHero.d.mts +13 -0
  145. package/dist/components/ButtonHero/ButtonHero.d.mts.map +1 -0
  146. package/dist/components/ButtonHero/ButtonHero.mjs +37 -0
  147. package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -0
  148. package/dist/components/ButtonHero/ButtonHero.types.cjs +3 -0
  149. package/dist/components/ButtonHero/ButtonHero.types.cjs.map +1 -0
  150. package/dist/components/ButtonHero/ButtonHero.types.d.cts +3 -0
  151. package/dist/components/ButtonHero/ButtonHero.types.d.cts.map +1 -0
  152. package/dist/components/ButtonHero/ButtonHero.types.d.mts +3 -0
  153. package/dist/components/ButtonHero/ButtonHero.types.d.mts.map +1 -0
  154. package/dist/components/ButtonHero/ButtonHero.types.mjs +2 -0
  155. package/dist/components/ButtonHero/ButtonHero.types.mjs.map +1 -0
  156. package/dist/components/ButtonHero/index.cjs +8 -0
  157. package/dist/components/ButtonHero/index.cjs.map +1 -0
  158. package/dist/components/ButtonHero/index.d.cts +4 -0
  159. package/dist/components/ButtonHero/index.d.cts.map +1 -0
  160. package/dist/components/ButtonHero/index.d.mts +4 -0
  161. package/dist/components/ButtonHero/index.d.mts.map +1 -0
  162. package/dist/components/ButtonHero/index.mjs +3 -0
  163. package/dist/components/ButtonHero/index.mjs.map +1 -0
  164. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +64 -0
  165. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -0
  166. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs +17 -0
  167. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs.map +1 -0
  168. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts +5 -0
  169. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts.map +1 -0
  170. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts +5 -0
  171. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts.map +1 -0
  172. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs +14 -0
  173. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs.map +1 -0
  174. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts +4 -0
  175. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -0
  176. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts +4 -0
  177. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -0
  178. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +44 -0
  179. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -0
  180. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs +18 -0
  181. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs.map +1 -0
  182. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts +30 -0
  183. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts.map +1 -0
  184. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts +30 -0
  185. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts.map +1 -0
  186. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs +15 -0
  187. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs.map +1 -0
  188. package/dist/components/ButtonSemantic/index.cjs +8 -0
  189. package/dist/components/ButtonSemantic/index.cjs.map +1 -0
  190. package/dist/components/ButtonSemantic/index.d.cts +4 -0
  191. package/dist/components/ButtonSemantic/index.d.cts.map +1 -0
  192. package/dist/components/ButtonSemantic/index.d.mts +4 -0
  193. package/dist/components/ButtonSemantic/index.d.mts.map +1 -0
  194. package/dist/components/ButtonSemantic/index.mjs +3 -0
  195. package/dist/components/ButtonSemantic/index.mjs.map +1 -0
  196. package/dist/components/Card/Card.cjs +26 -0
  197. package/dist/components/Card/Card.cjs.map +1 -0
  198. package/dist/components/Card/Card.d.cts +4 -0
  199. package/dist/components/Card/Card.d.cts.map +1 -0
  200. package/dist/components/Card/Card.d.mts +4 -0
  201. package/dist/components/Card/Card.d.mts.map +1 -0
  202. package/dist/components/Card/Card.mjs +26 -0
  203. package/dist/components/Card/Card.mjs.map +1 -0
  204. package/dist/components/Card/Card.types.cjs +3 -0
  205. package/dist/components/Card/Card.types.cjs.map +1 -0
  206. package/dist/components/Card/Card.types.d.cts +25 -0
  207. package/dist/components/Card/Card.types.d.cts.map +1 -0
  208. package/dist/components/Card/Card.types.d.mts +25 -0
  209. package/dist/components/Card/Card.types.d.mts.map +1 -0
  210. package/dist/components/Card/Card.types.mjs +2 -0
  211. package/dist/components/Card/Card.types.mjs.map +1 -0
  212. package/dist/components/Card/index.cjs +6 -0
  213. package/dist/components/Card/index.cjs.map +1 -0
  214. package/dist/components/Card/index.d.cts +3 -0
  215. package/dist/components/Card/index.d.cts.map +1 -0
  216. package/dist/components/Card/index.d.mts +3 -0
  217. package/dist/components/Card/index.d.mts.map +1 -0
  218. package/dist/components/Card/index.mjs +2 -0
  219. package/dist/components/Card/index.mjs.map +1 -0
  220. package/dist/components/HeaderBase/HeaderBase.cjs +132 -0
  221. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -0
  222. package/dist/components/HeaderBase/HeaderBase.constants.cjs +15 -0
  223. package/dist/components/HeaderBase/HeaderBase.constants.cjs.map +1 -0
  224. package/dist/components/HeaderBase/HeaderBase.constants.d.cts +7 -0
  225. package/dist/components/HeaderBase/HeaderBase.constants.d.cts.map +1 -0
  226. package/dist/components/HeaderBase/HeaderBase.constants.d.mts +7 -0
  227. package/dist/components/HeaderBase/HeaderBase.constants.d.mts.map +1 -0
  228. package/dist/components/HeaderBase/HeaderBase.constants.mjs +12 -0
  229. package/dist/components/HeaderBase/HeaderBase.constants.mjs.map +1 -0
  230. package/dist/components/HeaderBase/HeaderBase.d.cts +4 -0
  231. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -0
  232. package/dist/components/HeaderBase/HeaderBase.d.mts +4 -0
  233. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -0
  234. package/dist/components/HeaderBase/HeaderBase.mjs +112 -0
  235. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -0
  236. package/dist/components/HeaderBase/HeaderBase.types.cjs +15 -0
  237. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -0
  238. package/dist/components/HeaderBase/HeaderBase.types.d.cts +87 -0
  239. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -0
  240. package/dist/components/HeaderBase/HeaderBase.types.d.mts +87 -0
  241. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -0
  242. package/dist/components/HeaderBase/HeaderBase.types.mjs +12 -0
  243. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -0
  244. package/dist/components/HeaderBase/index.cjs +8 -0
  245. package/dist/components/HeaderBase/index.cjs.map +1 -0
  246. package/dist/components/HeaderBase/index.d.cts +4 -0
  247. package/dist/components/HeaderBase/index.d.cts.map +1 -0
  248. package/dist/components/HeaderBase/index.d.mts +4 -0
  249. package/dist/components/HeaderBase/index.d.mts.map +1 -0
  250. package/dist/components/HeaderBase/index.mjs +3 -0
  251. package/dist/components/HeaderBase/index.mjs.map +1 -0
  252. package/dist/components/Icon/Icon.assets.cjs +2 -0
  253. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  254. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  255. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  256. package/dist/components/Icon/Icon.assets.mjs +2 -0
  257. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  258. package/dist/components/Icon/assets/corporate-fare.svg +1 -0
  259. package/dist/components/Input/Input.cjs +53 -0
  260. package/dist/components/Input/Input.cjs.map +1 -0
  261. package/dist/components/Input/Input.d.cts +10 -0
  262. package/dist/components/Input/Input.d.cts.map +1 -0
  263. package/dist/components/Input/Input.d.mts +10 -0
  264. package/dist/components/Input/Input.d.mts.map +1 -0
  265. package/dist/components/Input/Input.mjs +50 -0
  266. package/dist/components/Input/Input.mjs.map +1 -0
  267. package/dist/components/Input/Input.types.cjs +3 -0
  268. package/dist/components/Input/Input.types.cjs.map +1 -0
  269. package/dist/components/Input/Input.types.d.cts +33 -0
  270. package/dist/components/Input/Input.types.d.cts.map +1 -0
  271. package/dist/components/Input/Input.types.d.mts +33 -0
  272. package/dist/components/Input/Input.types.d.mts.map +1 -0
  273. package/dist/components/Input/Input.types.mjs +2 -0
  274. package/dist/components/Input/Input.types.mjs.map +1 -0
  275. package/dist/components/Input/index.cjs +6 -0
  276. package/dist/components/Input/index.cjs.map +1 -0
  277. package/dist/components/Input/index.d.cts +3 -0
  278. package/dist/components/Input/index.d.cts.map +1 -0
  279. package/dist/components/Input/index.d.mts +3 -0
  280. package/dist/components/Input/index.d.mts.map +1 -0
  281. package/dist/components/Input/index.mjs +2 -0
  282. package/dist/components/Input/index.mjs.map +1 -0
  283. package/dist/components/Label/Label.cjs +11 -0
  284. package/dist/components/Label/Label.cjs.map +1 -0
  285. package/dist/components/Label/Label.d.cts +4 -0
  286. package/dist/components/Label/Label.d.cts.map +1 -0
  287. package/dist/components/Label/Label.d.mts +4 -0
  288. package/dist/components/Label/Label.d.mts.map +1 -0
  289. package/dist/components/Label/Label.mjs +11 -0
  290. package/dist/components/Label/Label.mjs.map +1 -0
  291. package/dist/components/Label/Label.types.cjs +3 -0
  292. package/dist/components/Label/Label.types.cjs.map +1 -0
  293. package/dist/components/Label/Label.types.d.cts +9 -0
  294. package/dist/components/Label/Label.types.d.cts.map +1 -0
  295. package/dist/components/Label/Label.types.d.mts +9 -0
  296. package/dist/components/Label/Label.types.d.mts.map +1 -0
  297. package/dist/components/Label/Label.types.mjs +2 -0
  298. package/dist/components/Label/Label.types.mjs.map +1 -0
  299. package/dist/components/Label/index.cjs +6 -0
  300. package/dist/components/Label/index.cjs.map +1 -0
  301. package/dist/components/Label/index.d.cts +3 -0
  302. package/dist/components/Label/index.d.cts.map +1 -0
  303. package/dist/components/Label/index.d.mts +3 -0
  304. package/dist/components/Label/index.d.mts.map +1 -0
  305. package/dist/components/Label/index.mjs +2 -0
  306. package/dist/components/Label/index.mjs.map +1 -0
  307. package/dist/components/RadioButton/RadioButton.cjs +58 -0
  308. package/dist/components/RadioButton/RadioButton.cjs.map +1 -0
  309. package/dist/components/RadioButton/RadioButton.constants.cjs +12 -0
  310. package/dist/components/RadioButton/RadioButton.constants.cjs.map +1 -0
  311. package/dist/components/RadioButton/RadioButton.constants.d.cts +3 -0
  312. package/dist/components/RadioButton/RadioButton.constants.d.cts.map +1 -0
  313. package/dist/components/RadioButton/RadioButton.constants.d.mts +3 -0
  314. package/dist/components/RadioButton/RadioButton.constants.d.mts.map +1 -0
  315. package/dist/components/RadioButton/RadioButton.constants.mjs +9 -0
  316. package/dist/components/RadioButton/RadioButton.constants.mjs.map +1 -0
  317. package/dist/components/RadioButton/RadioButton.d.cts +4 -0
  318. package/dist/components/RadioButton/RadioButton.d.cts.map +1 -0
  319. package/dist/components/RadioButton/RadioButton.d.mts +4 -0
  320. package/dist/components/RadioButton/RadioButton.d.mts.map +1 -0
  321. package/dist/components/RadioButton/RadioButton.mjs +58 -0
  322. package/dist/components/RadioButton/RadioButton.mjs.map +1 -0
  323. package/dist/components/RadioButton/RadioButton.types.cjs +3 -0
  324. package/dist/components/RadioButton/RadioButton.types.cjs.map +1 -0
  325. package/dist/components/RadioButton/RadioButton.types.d.cts +64 -0
  326. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -0
  327. package/dist/components/RadioButton/RadioButton.types.d.mts +64 -0
  328. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -0
  329. package/dist/components/RadioButton/RadioButton.types.mjs +2 -0
  330. package/dist/components/RadioButton/RadioButton.types.mjs.map +1 -0
  331. package/dist/components/RadioButton/index.cjs +6 -0
  332. package/dist/components/RadioButton/index.cjs.map +1 -0
  333. package/dist/components/RadioButton/index.d.cts +3 -0
  334. package/dist/components/RadioButton/index.d.cts.map +1 -0
  335. package/dist/components/RadioButton/index.d.mts +3 -0
  336. package/dist/components/RadioButton/index.d.mts.map +1 -0
  337. package/dist/components/RadioButton/index.mjs +2 -0
  338. package/dist/components/RadioButton/index.mjs.map +1 -0
  339. package/dist/components/SensitiveText/SensitiveText.cjs +47 -0
  340. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -0
  341. package/dist/components/SensitiveText/SensitiveText.constants.cjs +14 -0
  342. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +1 -0
  343. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +11 -0
  344. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +1 -0
  345. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +11 -0
  346. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +1 -0
  347. package/dist/components/SensitiveText/SensitiveText.constants.mjs +11 -0
  348. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +1 -0
  349. package/dist/components/SensitiveText/SensitiveText.d.cts +4 -0
  350. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -0
  351. package/dist/components/SensitiveText/SensitiveText.d.mts +4 -0
  352. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -0
  353. package/dist/components/SensitiveText/SensitiveText.mjs +27 -0
  354. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -0
  355. package/dist/components/SensitiveText/SensitiveText.types.cjs +3 -0
  356. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -0
  357. package/dist/components/SensitiveText/SensitiveText.types.d.cts +38 -0
  358. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -0
  359. package/dist/components/SensitiveText/SensitiveText.types.d.mts +38 -0
  360. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -0
  361. package/dist/components/SensitiveText/SensitiveText.types.mjs +2 -0
  362. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -0
  363. package/dist/components/SensitiveText/index.cjs +8 -0
  364. package/dist/components/SensitiveText/index.cjs.map +1 -0
  365. package/dist/components/SensitiveText/index.d.cts +4 -0
  366. package/dist/components/SensitiveText/index.d.cts.map +1 -0
  367. package/dist/components/SensitiveText/index.d.mts +4 -0
  368. package/dist/components/SensitiveText/index.d.mts.map +1 -0
  369. package/dist/components/SensitiveText/index.mjs +3 -0
  370. package/dist/components/SensitiveText/index.mjs.map +1 -0
  371. package/dist/components/Skeleton/Skeleton.cjs +86 -0
  372. package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
  373. package/dist/components/Skeleton/Skeleton.d.cts +5 -0
  374. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
  375. package/dist/components/Skeleton/Skeleton.d.mts +5 -0
  376. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
  377. package/dist/components/Skeleton/Skeleton.mjs +68 -0
  378. package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
  379. package/dist/components/Skeleton/Skeleton.types.cjs +3 -0
  380. package/dist/components/Skeleton/Skeleton.types.cjs.map +1 -0
  381. package/dist/components/Skeleton/Skeleton.types.d.cts +51 -0
  382. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -0
  383. package/dist/components/Skeleton/Skeleton.types.d.mts +51 -0
  384. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -0
  385. package/dist/components/Skeleton/Skeleton.types.mjs +2 -0
  386. package/dist/components/Skeleton/Skeleton.types.mjs.map +1 -0
  387. package/dist/components/Skeleton/index.cjs +9 -0
  388. package/dist/components/Skeleton/index.cjs.map +1 -0
  389. package/dist/components/Skeleton/index.d.cts +3 -0
  390. package/dist/components/Skeleton/index.d.cts.map +1 -0
  391. package/dist/components/Skeleton/index.d.mts +3 -0
  392. package/dist/components/Skeleton/index.d.mts.map +1 -0
  393. package/dist/components/Skeleton/index.mjs +2 -0
  394. package/dist/components/Skeleton/index.mjs.map +1 -0
  395. package/dist/components/TextField/TextField.cjs +42 -0
  396. package/dist/components/TextField/TextField.cjs.map +1 -0
  397. package/dist/components/TextField/TextField.constants.cjs +13 -0
  398. package/dist/components/TextField/TextField.constants.cjs.map +1 -0
  399. package/dist/components/TextField/TextField.constants.d.cts +6 -0
  400. package/dist/components/TextField/TextField.constants.d.cts.map +1 -0
  401. package/dist/components/TextField/TextField.constants.d.mts +6 -0
  402. package/dist/components/TextField/TextField.constants.d.mts.map +1 -0
  403. package/dist/components/TextField/TextField.constants.mjs +10 -0
  404. package/dist/components/TextField/TextField.constants.mjs.map +1 -0
  405. package/dist/components/TextField/TextField.d.cts +12 -0
  406. package/dist/components/TextField/TextField.d.cts.map +1 -0
  407. package/dist/components/TextField/TextField.d.mts +12 -0
  408. package/dist/components/TextField/TextField.d.mts.map +1 -0
  409. package/dist/components/TextField/TextField.mjs +39 -0
  410. package/dist/components/TextField/TextField.mjs.map +1 -0
  411. package/dist/components/TextField/TextField.types.cjs +13 -0
  412. package/dist/components/TextField/TextField.types.cjs.map +1 -0
  413. package/dist/components/TextField/TextField.types.d.cts +49 -0
  414. package/dist/components/TextField/TextField.types.d.cts.map +1 -0
  415. package/dist/components/TextField/TextField.types.d.mts +49 -0
  416. package/dist/components/TextField/TextField.types.d.mts.map +1 -0
  417. package/dist/components/TextField/TextField.types.mjs +10 -0
  418. package/dist/components/TextField/TextField.types.mjs.map +1 -0
  419. package/dist/components/TextField/index.cjs +8 -0
  420. package/dist/components/TextField/index.cjs.map +1 -0
  421. package/dist/components/TextField/index.d.cts +4 -0
  422. package/dist/components/TextField/index.d.cts.map +1 -0
  423. package/dist/components/TextField/index.d.mts +4 -0
  424. package/dist/components/TextField/index.d.mts.map +1 -0
  425. package/dist/components/TextField/index.mjs +3 -0
  426. package/dist/components/TextField/index.mjs.map +1 -0
  427. package/dist/components/Toast/Toast.cjs +174 -0
  428. package/dist/components/Toast/Toast.cjs.map +1 -0
  429. package/dist/components/Toast/Toast.constants.cjs +12 -0
  430. package/dist/components/Toast/Toast.constants.cjs.map +1 -0
  431. package/dist/components/Toast/Toast.constants.d.cts +8 -0
  432. package/dist/components/Toast/Toast.constants.d.cts.map +1 -0
  433. package/dist/components/Toast/Toast.constants.d.mts +8 -0
  434. package/dist/components/Toast/Toast.constants.d.mts.map +1 -0
  435. package/dist/components/Toast/Toast.constants.mjs +9 -0
  436. package/dist/components/Toast/Toast.constants.mjs.map +1 -0
  437. package/dist/components/Toast/Toast.context.cjs +40 -0
  438. package/dist/components/Toast/Toast.context.cjs.map +1 -0
  439. package/dist/components/Toast/Toast.context.d.cts +7 -0
  440. package/dist/components/Toast/Toast.context.d.cts.map +1 -0
  441. package/dist/components/Toast/Toast.context.d.mts +7 -0
  442. package/dist/components/Toast/Toast.context.d.mts.map +1 -0
  443. package/dist/components/Toast/Toast.context.mjs +20 -0
  444. package/dist/components/Toast/Toast.context.mjs.map +1 -0
  445. package/dist/components/Toast/Toast.d.cts +8 -0
  446. package/dist/components/Toast/Toast.d.cts.map +1 -0
  447. package/dist/components/Toast/Toast.d.mts +8 -0
  448. package/dist/components/Toast/Toast.d.mts.map +1 -0
  449. package/dist/components/Toast/Toast.mjs +156 -0
  450. package/dist/components/Toast/Toast.mjs.map +1 -0
  451. package/dist/components/Toast/Toast.types.cjs +19 -0
  452. package/dist/components/Toast/Toast.types.cjs.map +1 -0
  453. package/dist/components/Toast/Toast.types.d.cts +123 -0
  454. package/dist/components/Toast/Toast.types.d.cts.map +1 -0
  455. package/dist/components/Toast/Toast.types.d.mts +123 -0
  456. package/dist/components/Toast/Toast.types.d.mts.map +1 -0
  457. package/dist/components/Toast/Toast.types.mjs +16 -0
  458. package/dist/components/Toast/Toast.types.mjs.map +1 -0
  459. package/dist/components/Toast/index.cjs +19 -0
  460. package/dist/components/Toast/index.cjs.map +1 -0
  461. package/dist/components/Toast/index.d.cts +6 -0
  462. package/dist/components/Toast/index.d.cts.map +1 -0
  463. package/dist/components/Toast/index.d.mts +6 -0
  464. package/dist/components/Toast/index.d.mts.map +1 -0
  465. package/dist/components/Toast/index.mjs +5 -0
  466. package/dist/components/Toast/index.mjs.map +1 -0
  467. package/dist/components/index.cjs +38 -2
  468. package/dist/components/index.cjs.map +1 -1
  469. package/dist/components/index.d.cts +28 -0
  470. package/dist/components/index.d.cts.map +1 -1
  471. package/dist/components/index.d.mts +28 -0
  472. package/dist/components/index.d.mts.map +1 -1
  473. package/dist/components/index.mjs +14 -0
  474. package/dist/components/index.mjs.map +1 -1
  475. package/dist/types/index.cjs +3 -16
  476. package/dist/types/index.cjs.map +1 -1
  477. package/dist/types/index.d.cts +2 -13
  478. package/dist/types/index.d.cts.map +1 -1
  479. package/dist/types/index.d.mts +2 -13
  480. package/dist/types/index.d.mts.map +1 -1
  481. package/dist/types/index.mjs +2 -14
  482. package/dist/types/index.mjs.map +1 -1
  483. package/package.json +5 -5
@@ -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"]}
@@ -0,0 +1,37 @@
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.ButtonHero = 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 ButtonBase_1 = require("../ButtonBase/index.cjs");
10
+ /**
11
+ * Inner component that uses the locked light theme from ThemeProvider.
12
+ * Destructures and ignores twClassName, textClassName, and iconClassName to prevent
13
+ * overriding the hero-specific styling (light theme lock).
14
+ *
15
+ * @param props - Component props destructured below
16
+ * @param props.isDisabled - Whether the button is disabled
17
+ * @param props.isLoading - Whether the button is in a loading state
18
+ * @param props.twClassName - Ignored to prevent override of hero styling
19
+ * @param props.textClassName - Ignored to prevent override of hero styling
20
+ * @param props.iconClassName - Ignored to prevent override of hero styling
21
+ * @returns ButtonBase component with locked light theme styles
22
+ */
23
+ const ButtonHeroInner = ({ isDisabled, isLoading, twClassName: _twClassName, textClassName: _textClassName, iconClassName: _iconClassName, ...props }) => (<ButtonBase_1.ButtonBase twClassName={(pressed) => `bg-primary-default ${pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''}`} textClassName={(_pressed) => 'text-primary-inverse'} iconClassName={(_pressed) => 'text-primary-inverse'} isDisabled={isDisabled} isLoading={isLoading} {...props}/>);
24
+ /**
25
+ * ButtonHero component - Hero button with locked light theme
26
+ *
27
+ * Used for primary marketing and call-to-action use cases.
28
+ * The button is locked to light theme colors regardless of the app's theme setting.
29
+ *
30
+ * @param props - ButtonHero props extending ButtonBaseProps
31
+ * @returns ButtonHero component wrapped in light ThemeProvider
32
+ */
33
+ const ButtonHero = (props) => (<design_system_twrnc_preset_1.ThemeProvider theme={design_system_twrnc_preset_1.Theme.Light}>
34
+ <ButtonHeroInner {...props}/>
35
+ </design_system_twrnc_preset_1.ThemeProvider>);
36
+ exports.ButtonHero = ButtonHero;
37
+ //# sourceMappingURL=ButtonHero.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.cjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAAqF;AACrF,kDAA0B;AAE1B,wDAA2C;AAI3C;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAA8B,CAAC,EAClD,UAAU,EACV,SAAS,EACT,WAAW,EAAE,YAAY,EACzB,aAAa,EAAE,cAAc,EAC7B,aAAa,EAAE,cAAc,EAC7B,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,CAAC,uBAAU,CACT,WAAW,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CACvB,sBACE,OAAO,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EACxE,EAAE,CACH,CACD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF;;;;;;;;GAQG;AACI,MAAM,UAAU,GAA8B,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9D,CAAC,0CAAa,CAAC,KAAK,CAAC,CAAC,kCAAK,CAAC,KAAK,CAAC,CAChC;IAAA,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,EAC7B;EAAA,EAAE,0CAAa,CAAC,CACjB,CAAC;AAJW,QAAA,UAAU,cAIrB","sourcesContent":["import { Theme, ThemeProvider } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\n\nimport type { ButtonHeroProps } from './ButtonHero.types';\n\n/**\n * Inner component that uses the locked light theme from ThemeProvider.\n * Destructures and ignores twClassName, textClassName, and iconClassName to prevent\n * overriding the hero-specific styling (light theme lock).\n *\n * @param props - Component props destructured below\n * @param props.isDisabled - Whether the button is disabled\n * @param props.isLoading - Whether the button is in a loading state\n * @param props.twClassName - Ignored to prevent override of hero styling\n * @param props.textClassName - Ignored to prevent override of hero styling\n * @param props.iconClassName - Ignored to prevent override of hero styling\n * @returns ButtonBase component with locked light theme styles\n */\nconst ButtonHeroInner: React.FC<ButtonHeroProps> = ({\n isDisabled,\n isLoading,\n twClassName: _twClassName,\n textClassName: _textClassName,\n iconClassName: _iconClassName,\n ...props\n}) => (\n <ButtonBase\n twClassName={(pressed) =>\n `bg-primary-default ${\n pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''\n }`\n }\n textClassName={(_pressed) => 'text-primary-inverse'}\n iconClassName={(_pressed) => 'text-primary-inverse'}\n isDisabled={isDisabled}\n isLoading={isLoading}\n {...props}\n />\n);\n\n/**\n * ButtonHero component - Hero button with locked light theme\n *\n * Used for primary marketing and call-to-action use cases.\n * The button is locked to light theme colors regardless of the app's theme setting.\n *\n * @param props - ButtonHero props extending ButtonBaseProps\n * @returns ButtonHero component wrapped in light ThemeProvider\n */\nexport const ButtonHero: React.FC<ButtonHeroProps> = (props) => (\n <ThemeProvider theme={Theme.Light}>\n <ButtonHeroInner {...props} />\n </ThemeProvider>\n);\n"]}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import type { ButtonHeroProps } from "./ButtonHero.types.cjs";
3
+ /**
4
+ * ButtonHero component - Hero button with locked light theme
5
+ *
6
+ * Used for primary marketing and call-to-action use cases.
7
+ * The button is locked to light theme colors regardless of the app's theme setting.
8
+ *
9
+ * @param props - ButtonHero props extending ButtonBaseProps
10
+ * @returns ButtonHero component wrapped in light ThemeProvider
11
+ */
12
+ export declare const ButtonHero: React.FC<ButtonHeroProps>;
13
+ //# sourceMappingURL=ButtonHero.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAqC1D;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import type { ButtonHeroProps } from "./ButtonHero.types.mjs";
3
+ /**
4
+ * ButtonHero component - Hero button with locked light theme
5
+ *
6
+ * Used for primary marketing and call-to-action use cases.
7
+ * The button is locked to light theme colors regardless of the app's theme setting.
8
+ *
9
+ * @param props - ButtonHero props extending ButtonBaseProps
10
+ * @returns ButtonHero component wrapped in light ThemeProvider
11
+ */
12
+ export declare const ButtonHero: React.FC<ButtonHeroProps>;
13
+ //# sourceMappingURL=ButtonHero.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAqC1D;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
@@ -0,0 +1,37 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { Theme, ThemeProvider } from "@metamask-previews/design-system-twrnc-preset";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { ButtonBase } from "../ButtonBase/index.mjs";
11
+ /**
12
+ * Inner component that uses the locked light theme from ThemeProvider.
13
+ * Destructures and ignores twClassName, textClassName, and iconClassName to prevent
14
+ * overriding the hero-specific styling (light theme lock).
15
+ *
16
+ * @param props - Component props destructured below
17
+ * @param props.isDisabled - Whether the button is disabled
18
+ * @param props.isLoading - Whether the button is in a loading state
19
+ * @param props.twClassName - Ignored to prevent override of hero styling
20
+ * @param props.textClassName - Ignored to prevent override of hero styling
21
+ * @param props.iconClassName - Ignored to prevent override of hero styling
22
+ * @returns ButtonBase component with locked light theme styles
23
+ */
24
+ const ButtonHeroInner = ({ isDisabled, isLoading, twClassName: _twClassName, textClassName: _textClassName, iconClassName: _iconClassName, ...props }) => (<ButtonBase twClassName={(pressed) => `bg-primary-default ${pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''}`} textClassName={(_pressed) => 'text-primary-inverse'} iconClassName={(_pressed) => 'text-primary-inverse'} isDisabled={isDisabled} isLoading={isLoading} {...props}/>);
25
+ /**
26
+ * ButtonHero component - Hero button with locked light theme
27
+ *
28
+ * Used for primary marketing and call-to-action use cases.
29
+ * The button is locked to light theme colors regardless of the app's theme setting.
30
+ *
31
+ * @param props - ButtonHero props extending ButtonBaseProps
32
+ * @returns ButtonHero component wrapped in light ThemeProvider
33
+ */
34
+ export const ButtonHero = (props) => (<ThemeProvider theme={Theme.Light}>
35
+ <ButtonHeroInner {...props}/>
36
+ </ThemeProvider>);
37
+ //# sourceMappingURL=ButtonHero.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.mjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,sDAAsD;AACrF,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAI3C;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAA8B,CAAC,EAClD,UAAU,EACV,SAAS,EACT,WAAW,EAAE,YAAY,EACzB,aAAa,EAAE,cAAc,EAC7B,aAAa,EAAE,cAAc,EAC7B,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,CAAC,UAAU,CACT,WAAW,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CACvB,sBACE,OAAO,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EACxE,EAAE,CACH,CACD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9D,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAChC;IAAA,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,EAC7B;EAAA,EAAE,aAAa,CAAC,CACjB,CAAC","sourcesContent":["import { Theme, ThemeProvider } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\n\nimport type { ButtonHeroProps } from './ButtonHero.types';\n\n/**\n * Inner component that uses the locked light theme from ThemeProvider.\n * Destructures and ignores twClassName, textClassName, and iconClassName to prevent\n * overriding the hero-specific styling (light theme lock).\n *\n * @param props - Component props destructured below\n * @param props.isDisabled - Whether the button is disabled\n * @param props.isLoading - Whether the button is in a loading state\n * @param props.twClassName - Ignored to prevent override of hero styling\n * @param props.textClassName - Ignored to prevent override of hero styling\n * @param props.iconClassName - Ignored to prevent override of hero styling\n * @returns ButtonBase component with locked light theme styles\n */\nconst ButtonHeroInner: React.FC<ButtonHeroProps> = ({\n isDisabled,\n isLoading,\n twClassName: _twClassName,\n textClassName: _textClassName,\n iconClassName: _iconClassName,\n ...props\n}) => (\n <ButtonBase\n twClassName={(pressed) =>\n `bg-primary-default ${\n pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''\n }`\n }\n textClassName={(_pressed) => 'text-primary-inverse'}\n iconClassName={(_pressed) => 'text-primary-inverse'}\n isDisabled={isDisabled}\n isLoading={isLoading}\n {...props}\n />\n);\n\n/**\n * ButtonHero component - Hero button with locked light theme\n *\n * Used for primary marketing and call-to-action use cases.\n * The button is locked to light theme colors regardless of the app's theme setting.\n *\n * @param props - ButtonHero props extending ButtonBaseProps\n * @returns ButtonHero component wrapped in light ThemeProvider\n */\nexport const ButtonHero: React.FC<ButtonHeroProps> = (props) => (\n <ThemeProvider theme={Theme.Light}>\n <ButtonHeroInner {...props} />\n </ThemeProvider>\n);\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ButtonHero.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../ButtonBase';\n\nexport type ButtonHeroProps = ButtonBaseProps;\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ButtonBaseProps } from "../ButtonBase/index.cjs";
2
+ export type ButtonHeroProps = ButtonBaseProps;
3
+ //# sourceMappingURL=ButtonHero.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AAErD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ButtonBaseProps } from "../ButtonBase/index.mjs";
2
+ export type ButtonHeroProps = ButtonBaseProps;
3
+ //# sourceMappingURL=ButtonHero.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AAErD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonHero.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../ButtonBase';\n\nexport type ButtonHeroProps = ButtonBaseProps;\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonHeroSize = exports.ButtonHero = void 0;
4
+ var ButtonHero_1 = require("./ButtonHero.cjs");
5
+ Object.defineProperty(exports, "ButtonHero", { enumerable: true, get: function () { return ButtonHero_1.ButtonHero; } });
6
+ var types_1 = require("../../types/index.cjs");
7
+ Object.defineProperty(exports, "ButtonHeroSize", { enumerable: true, get: function () { return types_1.ButtonHeroSize; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAEnB,+CAA6C;AAApC,uGAAA,cAAc,OAAA","sourcesContent":["export { ButtonHero } from './ButtonHero';\nexport type { ButtonHeroProps } from './ButtonHero.types';\nexport { ButtonHeroSize } from '../../types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { ButtonHero } from "./ButtonHero.cjs";
2
+ export type { ButtonHeroProps } from "./ButtonHero.types.cjs";
3
+ export { ButtonHeroSize } from "../../types/index.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B;AAC1D,OAAO,EAAE,cAAc,EAAE,8BAAoB"}
@@ -0,0 +1,4 @@
1
+ export { ButtonHero } from "./ButtonHero.mjs";
2
+ export type { ButtonHeroProps } from "./ButtonHero.types.mjs";
3
+ export { ButtonHeroSize } from "../../types/index.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B;AAC1D,OAAO,EAAE,cAAc,EAAE,8BAAoB"}
@@ -0,0 +1,3 @@
1
+ export { ButtonHero } from "./ButtonHero.mjs";
2
+ export { ButtonHeroSize } from "../../types/index.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAE1C,OAAO,EAAE,cAAc,EAAE,8BAAoB","sourcesContent":["export { ButtonHero } from './ButtonHero';\nexport type { ButtonHeroProps } from './ButtonHero.types';\nexport { ButtonHeroSize } from '../../types';\n"]}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ButtonSemantic = void 0;
27
+ const react_1 = __importStar(require("react"));
28
+ const ButtonBase_1 = require("../ButtonBase/index.cjs");
29
+ const Icon_1 = require("../Icon/index.cjs");
30
+ const Text_1 = require("../Text/index.cjs");
31
+ const ButtonSemantic_constants_1 = require("./ButtonSemantic.constants.cjs");
32
+ const ButtonSemantic_types_1 = require("./ButtonSemantic.types.cjs");
33
+ const ButtonSemantic = ({ severity, children, textProps, spinnerProps, startIconProps, endIconProps, isLoading = false, twClassName = '', style, ...props }) => {
34
+ const getContainerClassName = (0, react_1.useCallback)((pressed) => {
35
+ const classNameStr = typeof twClassName === 'function' ? twClassName(pressed) : twClassName;
36
+ const bgClass = pressed || isLoading
37
+ ? (ButtonSemantic_constants_1.TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED[severity] ??
38
+ ButtonSemantic_constants_1.TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED[ButtonSemantic_types_1.ButtonSemanticSeverity.Success])
39
+ : (ButtonSemantic_constants_1.TWCLASSMAP_BUTTONSEMANTIC_BG[severity] ??
40
+ ButtonSemantic_constants_1.TWCLASSMAP_BUTTONSEMANTIC_BG[ButtonSemantic_types_1.ButtonSemanticSeverity.Success]);
41
+ return `${bgClass} ${classNameStr}`;
42
+ }, [severity, isLoading, twClassName]);
43
+ const getTextClassName = (0, react_1.useCallback)((_pressed) => ButtonSemantic_constants_1.TWCLASSMAP_BUTTONSEMANTIC_TEXT[severity] ??
44
+ ButtonSemantic_constants_1.TWCLASSMAP_BUTTONSEMANTIC_TEXT[ButtonSemantic_types_1.ButtonSemanticSeverity.Success], [severity]);
45
+ return (<ButtonBase_1.ButtonBase textProps={{
46
+ variant: Text_1.TextVariant.BodyMd,
47
+ fontWeight: Text_1.FontWeight.Medium,
48
+ numberOfLines: 1,
49
+ ellipsizeMode: 'clip',
50
+ ...textProps,
51
+ }} spinnerProps={{
52
+ ...spinnerProps,
53
+ }} startIconProps={{
54
+ size: Icon_1.IconSize.Sm,
55
+ ...startIconProps,
56
+ }} endIconProps={{
57
+ size: Icon_1.IconSize.Sm,
58
+ ...endIconProps,
59
+ }} isLoading={isLoading} twClassName={getContainerClassName} textClassName={getTextClassName} iconClassName={getTextClassName} style={style} {...props}>
60
+ {children}
61
+ </ButtonBase_1.ButtonBase>);
62
+ };
63
+ exports.ButtonSemantic = ButtonSemantic;
64
+ //# sourceMappingURL=ButtonSemantic.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.cjs","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAE3C,wDAA2C;AAC3C,4CAAmC;AACnC,4CAAkD;AAElD,6EAIoC;AAEpC,qEAAgE;AAEzD,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,CAAC,OAAgB,EAAU,EAAE;QAC3B,MAAM,YAAY,GAChB,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QAEzE,MAAM,OAAO,GACX,OAAO,IAAI,SAAS;YAClB,CAAC,CAAC,CAAC,+DAAoC,CAAC,QAAQ,CAAC;gBAC/C,+DAAoC,CAClC,6CAAsB,CAAC,OAAO,CAC/B,CAAC;YACJ,CAAC,CAAC,CAAC,uDAA4B,CAAC,QAAQ,CAAC;gBACvC,uDAA4B,CAAC,6CAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;QAEpE,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;IACtC,CAAC,EACD,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,CACnC,CAAC;IAEF,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,CAAC,QAAiB,EAAU,EAAE,CAC5B,yDAA8B,CAAC,QAAQ,CAAC;QACxC,yDAA8B,CAAC,6CAAsB,CAAC,OAAO,CAAC,EAChE,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,CAAC,uBAAU,CACT,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kBAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,iBAAU,CAAC,MAAM;YAC7B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,SAAS;SACb,CAAC,CACF,YAAY,CAAC,CAAC;YACZ,GAAG,YAAY;SAChB,CAAC,CACF,cAAc,CAAC,CAAC;YACd,IAAI,EAAE,eAAQ,CAAC,EAAE;YACjB,GAAG,cAAc;SAClB,CAAC,CACF,YAAY,CAAC,CAAC;YACZ,IAAI,EAAE,eAAQ,CAAC,EAAE;YACjB,GAAG,YAAY;SAChB,CAAC,CACF,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,WAAW,CAAC,CAAC,qBAAqB,CAAC,CACnC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAChC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AApEW,QAAA,cAAc,kBAoEzB","sourcesContent":["import React, { useCallback } from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\nimport { IconSize } from '../Icon';\nimport { TextVariant, FontWeight } from '../Text';\n\nimport {\n TWCLASSMAP_BUTTONSEMANTIC_BG,\n TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED,\n TWCLASSMAP_BUTTONSEMANTIC_TEXT,\n} from './ButtonSemantic.constants';\nimport type { ButtonSemanticProps } from './ButtonSemantic.types';\nimport { ButtonSemanticSeverity } from './ButtonSemantic.types';\n\nexport const ButtonSemantic = ({\n severity,\n children,\n textProps,\n spinnerProps,\n startIconProps,\n endIconProps,\n isLoading = false,\n twClassName = '',\n style,\n ...props\n}: ButtonSemanticProps) => {\n const getContainerClassName = useCallback(\n (pressed: boolean): string => {\n const classNameStr =\n typeof twClassName === 'function' ? twClassName(pressed) : twClassName;\n\n const bgClass =\n pressed || isLoading\n ? (TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED[severity] ??\n TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED[\n ButtonSemanticSeverity.Success\n ])\n : (TWCLASSMAP_BUTTONSEMANTIC_BG[severity] ??\n TWCLASSMAP_BUTTONSEMANTIC_BG[ButtonSemanticSeverity.Success]);\n\n return `${bgClass} ${classNameStr}`;\n },\n [severity, isLoading, twClassName],\n );\n\n const getTextClassName = useCallback(\n (_pressed: boolean): string =>\n TWCLASSMAP_BUTTONSEMANTIC_TEXT[severity] ??\n TWCLASSMAP_BUTTONSEMANTIC_TEXT[ButtonSemanticSeverity.Success],\n [severity],\n );\n\n return (\n <ButtonBase\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n numberOfLines: 1,\n ellipsizeMode: 'clip',\n ...textProps,\n }}\n spinnerProps={{\n ...spinnerProps,\n }}\n startIconProps={{\n size: IconSize.Sm,\n ...startIconProps,\n }}\n endIconProps={{\n size: IconSize.Sm,\n ...endIconProps,\n }}\n isLoading={isLoading}\n twClassName={getContainerClassName}\n textClassName={getTextClassName}\n iconClassName={getTextClassName}\n style={style}\n {...props}\n >\n {children}\n </ButtonBase>\n );\n};\n"]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TWCLASSMAP_BUTTONSEMANTIC_TEXT = exports.TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED = exports.TWCLASSMAP_BUTTONSEMANTIC_BG = void 0;
4
+ const ButtonSemantic_types_1 = require("./ButtonSemantic.types.cjs");
5
+ exports.TWCLASSMAP_BUTTONSEMANTIC_BG = {
6
+ [ButtonSemantic_types_1.ButtonSemanticSeverity.Success]: 'bg-success-muted',
7
+ [ButtonSemantic_types_1.ButtonSemanticSeverity.Danger]: 'bg-error-muted',
8
+ };
9
+ exports.TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED = {
10
+ [ButtonSemantic_types_1.ButtonSemanticSeverity.Success]: 'bg-success-muted-pressed',
11
+ [ButtonSemantic_types_1.ButtonSemanticSeverity.Danger]: 'bg-error-muted-pressed',
12
+ };
13
+ exports.TWCLASSMAP_BUTTONSEMANTIC_TEXT = {
14
+ [ButtonSemantic_types_1.ButtonSemanticSeverity.Success]: 'text-success-default',
15
+ [ButtonSemantic_types_1.ButtonSemanticSeverity.Danger]: 'text-error-default',
16
+ };
17
+ //# sourceMappingURL=ButtonSemantic.constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.constants.cjs","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.constants.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAEnD,QAAA,4BAA4B,GAGrC;IACF,CAAC,6CAAsB,CAAC,OAAO,CAAC,EAAE,kBAAkB;IACpD,CAAC,6CAAsB,CAAC,MAAM,CAAC,EAAE,gBAAgB;CAClD,CAAC;AAEW,QAAA,oCAAoC,GAG7C;IACF,CAAC,6CAAsB,CAAC,OAAO,CAAC,EAAE,0BAA0B;IAC5D,CAAC,6CAAsB,CAAC,MAAM,CAAC,EAAE,wBAAwB;CAC1D,CAAC;AAEW,QAAA,8BAA8B,GAGvC;IACF,CAAC,6CAAsB,CAAC,OAAO,CAAC,EAAE,sBAAsB;IACxD,CAAC,6CAAsB,CAAC,MAAM,CAAC,EAAE,oBAAoB;CACtD,CAAC","sourcesContent":["import { ButtonSemanticSeverity } from './ButtonSemantic.types';\n\nexport const TWCLASSMAP_BUTTONSEMANTIC_BG: Record<\n ButtonSemanticSeverity,\n string\n> = {\n [ButtonSemanticSeverity.Success]: 'bg-success-muted',\n [ButtonSemanticSeverity.Danger]: 'bg-error-muted',\n};\n\nexport const TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED: Record<\n ButtonSemanticSeverity,\n string\n> = {\n [ButtonSemanticSeverity.Success]: 'bg-success-muted-pressed',\n [ButtonSemanticSeverity.Danger]: 'bg-error-muted-pressed',\n};\n\nexport const TWCLASSMAP_BUTTONSEMANTIC_TEXT: Record<\n ButtonSemanticSeverity,\n string\n> = {\n [ButtonSemanticSeverity.Success]: 'text-success-default',\n [ButtonSemanticSeverity.Danger]: 'text-error-default',\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import { ButtonSemanticSeverity } from "./ButtonSemantic.types.cjs";
2
+ export declare const TWCLASSMAP_BUTTONSEMANTIC_BG: Record<ButtonSemanticSeverity, string>;
3
+ export declare const TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED: Record<ButtonSemanticSeverity, string>;
4
+ export declare const TWCLASSMAP_BUTTONSEMANTIC_TEXT: Record<ButtonSemanticSeverity, string>;
5
+ //# sourceMappingURL=ButtonSemantic.constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.constants.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,mCAA+B;AAEhE,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,sBAAsB,EACtB,MAAM,CAIP,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CACvD,sBAAsB,EACtB,MAAM,CAIP,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CACjD,sBAAsB,EACtB,MAAM,CAIP,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ButtonSemanticSeverity } from "./ButtonSemantic.types.mjs";
2
+ export declare const TWCLASSMAP_BUTTONSEMANTIC_BG: Record<ButtonSemanticSeverity, string>;
3
+ export declare const TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED: Record<ButtonSemanticSeverity, string>;
4
+ export declare const TWCLASSMAP_BUTTONSEMANTIC_TEXT: Record<ButtonSemanticSeverity, string>;
5
+ //# sourceMappingURL=ButtonSemantic.constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.constants.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,mCAA+B;AAEhE,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,sBAAsB,EACtB,MAAM,CAIP,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CACvD,sBAAsB,EACtB,MAAM,CAIP,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CACjD,sBAAsB,EACtB,MAAM,CAIP,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ButtonSemanticSeverity } from "./ButtonSemantic.types.mjs";
2
+ export const TWCLASSMAP_BUTTONSEMANTIC_BG = {
3
+ [ButtonSemanticSeverity.Success]: 'bg-success-muted',
4
+ [ButtonSemanticSeverity.Danger]: 'bg-error-muted',
5
+ };
6
+ export const TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED = {
7
+ [ButtonSemanticSeverity.Success]: 'bg-success-muted-pressed',
8
+ [ButtonSemanticSeverity.Danger]: 'bg-error-muted-pressed',
9
+ };
10
+ export const TWCLASSMAP_BUTTONSEMANTIC_TEXT = {
11
+ [ButtonSemanticSeverity.Success]: 'text-success-default',
12
+ [ButtonSemanticSeverity.Danger]: 'text-error-default',
13
+ };
14
+ //# sourceMappingURL=ButtonSemantic.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.constants.mjs","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,mCAA+B;AAEhE,MAAM,CAAC,MAAM,4BAA4B,GAGrC;IACF,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,kBAAkB;IACpD,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,gBAAgB;CAClD,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAG7C;IACF,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,0BAA0B;IAC5D,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,wBAAwB;CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAGvC;IACF,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,sBAAsB;IACxD,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,oBAAoB;CACtD,CAAC","sourcesContent":["import { ButtonSemanticSeverity } from './ButtonSemantic.types';\n\nexport const TWCLASSMAP_BUTTONSEMANTIC_BG: Record<\n ButtonSemanticSeverity,\n string\n> = {\n [ButtonSemanticSeverity.Success]: 'bg-success-muted',\n [ButtonSemanticSeverity.Danger]: 'bg-error-muted',\n};\n\nexport const TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED: Record<\n ButtonSemanticSeverity,\n string\n> = {\n [ButtonSemanticSeverity.Success]: 'bg-success-muted-pressed',\n [ButtonSemanticSeverity.Danger]: 'bg-error-muted-pressed',\n};\n\nexport const TWCLASSMAP_BUTTONSEMANTIC_TEXT: Record<\n ButtonSemanticSeverity,\n string\n> = {\n [ButtonSemanticSeverity.Success]: 'text-success-default',\n [ButtonSemanticSeverity.Danger]: 'text-error-default',\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ButtonSemanticProps } from "./ButtonSemantic.types.cjs";
3
+ export declare const ButtonSemantic: ({ severity, children, textProps, spinnerProps, startIconProps, endIconProps, isLoading, twClassName, style, ...props }: ButtonSemanticProps) => React.JSX.Element;
4
+ //# sourceMappingURL=ButtonSemantic.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,cAAc;AAW3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAGlE,eAAO,MAAM,cAAc,2HAWxB,mBAAmB,sBAyDrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ButtonSemanticProps } from "./ButtonSemantic.types.mjs";
3
+ export declare const ButtonSemantic: ({ severity, children, textProps, spinnerProps, startIconProps, endIconProps, isLoading, twClassName, style, ...props }: ButtonSemanticProps) => React.JSX.Element;
4
+ //# sourceMappingURL=ButtonSemantic.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonSemantic.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonSemantic/ButtonSemantic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,cAAc;AAW3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAGlE,eAAO,MAAM,cAAc,2HAWxB,mBAAmB,sBAyDrB,CAAC"}
@@ -0,0 +1,44 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React, { useCallback } from "react";
8
+ const React = $importDefault($React);
9
+ import { ButtonBase } from "../ButtonBase/index.mjs";
10
+ import { IconSize } from "../Icon/index.mjs";
11
+ import { TextVariant, FontWeight } from "../Text/index.mjs";
12
+ import { TWCLASSMAP_BUTTONSEMANTIC_BG, TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED, TWCLASSMAP_BUTTONSEMANTIC_TEXT } from "./ButtonSemantic.constants.mjs";
13
+ import { ButtonSemanticSeverity } from "./ButtonSemantic.types.mjs";
14
+ export const ButtonSemantic = ({ severity, children, textProps, spinnerProps, startIconProps, endIconProps, isLoading = false, twClassName = '', style, ...props }) => {
15
+ const getContainerClassName = useCallback((pressed) => {
16
+ const classNameStr = typeof twClassName === 'function' ? twClassName(pressed) : twClassName;
17
+ const bgClass = pressed || isLoading
18
+ ? (TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED[severity] ??
19
+ TWCLASSMAP_BUTTONSEMANTIC_BG_PRESSED[ButtonSemanticSeverity.Success])
20
+ : (TWCLASSMAP_BUTTONSEMANTIC_BG[severity] ??
21
+ TWCLASSMAP_BUTTONSEMANTIC_BG[ButtonSemanticSeverity.Success]);
22
+ return `${bgClass} ${classNameStr}`;
23
+ }, [severity, isLoading, twClassName]);
24
+ const getTextClassName = useCallback((_pressed) => TWCLASSMAP_BUTTONSEMANTIC_TEXT[severity] ??
25
+ TWCLASSMAP_BUTTONSEMANTIC_TEXT[ButtonSemanticSeverity.Success], [severity]);
26
+ return (<ButtonBase textProps={{
27
+ variant: TextVariant.BodyMd,
28
+ fontWeight: FontWeight.Medium,
29
+ numberOfLines: 1,
30
+ ellipsizeMode: 'clip',
31
+ ...textProps,
32
+ }} spinnerProps={{
33
+ ...spinnerProps,
34
+ }} startIconProps={{
35
+ size: IconSize.Sm,
36
+ ...startIconProps,
37
+ }} endIconProps={{
38
+ size: IconSize.Sm,
39
+ ...endIconProps,
40
+ }} isLoading={isLoading} twClassName={getContainerClassName} textClassName={getTextClassName} iconClassName={getTextClassName} style={style} {...props}>
41
+ {children}
42
+ </ButtonBase>);
43
+ };
44
+ //# sourceMappingURL=ButtonSemantic.mjs.map