@metamask-previews/design-system-react-native 0.0.0-preview.7df341a → 0.0.0-preview.85a0952

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 (831) hide show
  1. package/README.md +18 -0
  2. package/dist/components/AvatarAccount/AvatarAccount.d.ts +1 -2
  3. package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.js +17 -14
  5. package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -1
  6. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +18 -5
  7. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -1
  8. package/dist/components/AvatarAccount/AvatarAccount.types.js +0 -6
  9. package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -1
  10. package/dist/components/AvatarAccount/index.d.ts +2 -3
  11. package/dist/components/AvatarAccount/index.d.ts.map +1 -1
  12. package/dist/components/AvatarAccount/index.js +5 -9
  13. package/dist/components/AvatarAccount/index.js.map +1 -1
  14. package/dist/components/AvatarBase/AvatarBase.constants.d.ts +6 -0
  15. package/dist/components/AvatarBase/AvatarBase.constants.d.ts.map +1 -0
  16. package/dist/components/AvatarBase/AvatarBase.constants.js +33 -0
  17. package/dist/components/AvatarBase/AvatarBase.constants.js.map +1 -0
  18. package/dist/components/AvatarBase/AvatarBase.d.ts +4 -0
  19. package/dist/components/AvatarBase/AvatarBase.d.ts.map +1 -0
  20. package/dist/components/AvatarBase/AvatarBase.js +31 -0
  21. package/dist/components/AvatarBase/AvatarBase.js.map +1 -0
  22. package/dist/{primitives → components}/AvatarBase/AvatarBase.types.d.ts +7 -9
  23. package/dist/components/AvatarBase/AvatarBase.types.d.ts.map +1 -0
  24. package/dist/components/AvatarBase/AvatarBase.types.js.map +1 -0
  25. package/dist/components/AvatarBase/index.d.ts +4 -0
  26. package/dist/components/AvatarBase/index.d.ts.map +1 -0
  27. package/dist/components/AvatarBase/index.js +9 -0
  28. package/dist/components/AvatarBase/index.js.map +1 -0
  29. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +1 -2
  30. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -1
  31. package/dist/components/AvatarFavicon/AvatarFavicon.js +14 -17
  32. package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -1
  33. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +12 -3
  34. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -1
  35. package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -1
  36. package/dist/components/AvatarFavicon/index.d.ts +2 -2
  37. package/dist/components/AvatarFavicon/index.d.ts.map +1 -1
  38. package/dist/components/AvatarFavicon/index.js +4 -7
  39. package/dist/components/AvatarFavicon/index.js.map +1 -1
  40. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +2 -10
  41. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -1
  42. package/dist/components/AvatarGroup/AvatarGroup.constants.js +13 -160
  43. package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -1
  44. package/dist/components/AvatarGroup/AvatarGroup.d.ts +2 -3
  45. package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  46. package/dist/components/AvatarGroup/AvatarGroup.js +30 -39
  47. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
  48. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +13 -15
  49. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -1
  50. package/dist/components/AvatarGroup/AvatarGroup.types.js +0 -11
  51. package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -1
  52. package/dist/components/AvatarGroup/index.d.ts +2 -3
  53. package/dist/components/AvatarGroup/index.d.ts.map +1 -1
  54. package/dist/components/AvatarGroup/index.js +5 -9
  55. package/dist/components/AvatarGroup/index.js.map +1 -1
  56. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +1 -2
  57. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -1
  58. package/dist/components/AvatarIcon/AvatarIcon.constants.js +16 -17
  59. package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -1
  60. package/dist/components/AvatarIcon/AvatarIcon.d.ts +1 -2
  61. package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -1
  62. package/dist/components/AvatarIcon/AvatarIcon.js +14 -41
  63. package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -1
  64. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +5 -10
  65. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -1
  66. package/dist/components/AvatarIcon/AvatarIcon.types.js +0 -9
  67. package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -1
  68. package/dist/components/AvatarIcon/index.d.ts +2 -3
  69. package/dist/components/AvatarIcon/index.d.ts.map +1 -1
  70. package/dist/components/AvatarIcon/index.js +5 -9
  71. package/dist/components/AvatarIcon/index.js.map +1 -1
  72. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +1 -2
  73. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -1
  74. package/dist/components/AvatarNetwork/AvatarNetwork.js +14 -17
  75. package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -1
  76. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +12 -3
  77. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -1
  78. package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -1
  79. package/dist/components/AvatarNetwork/index.d.ts +2 -2
  80. package/dist/components/AvatarNetwork/index.d.ts.map +1 -1
  81. package/dist/components/AvatarNetwork/index.js +4 -7
  82. package/dist/components/AvatarNetwork/index.js.map +1 -1
  83. package/dist/components/AvatarToken/AvatarToken.d.ts +1 -2
  84. package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -1
  85. package/dist/components/AvatarToken/AvatarToken.js +14 -17
  86. package/dist/components/AvatarToken/AvatarToken.js.map +1 -1
  87. package/dist/components/AvatarToken/AvatarToken.types.d.ts +12 -3
  88. package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -1
  89. package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -1
  90. package/dist/components/AvatarToken/index.d.ts +2 -2
  91. package/dist/components/AvatarToken/index.d.ts.map +1 -1
  92. package/dist/components/AvatarToken/index.js +4 -7
  93. package/dist/components/AvatarToken/index.js.map +1 -1
  94. package/dist/components/BadgeCount/BadgeCount.constants.d.ts +1 -1
  95. package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -1
  96. package/dist/components/BadgeCount/BadgeCount.constants.js +7 -7
  97. package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -1
  98. package/dist/components/BadgeCount/BadgeCount.d.ts +1 -2
  99. package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -1
  100. package/dist/components/BadgeCount/BadgeCount.js +7 -30
  101. package/dist/components/BadgeCount/BadgeCount.js.map +1 -1
  102. package/dist/components/BadgeCount/BadgeCount.types.d.ts +3 -10
  103. package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -1
  104. package/dist/components/BadgeCount/BadgeCount.types.js +0 -12
  105. package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -1
  106. package/dist/components/BadgeCount/index.d.ts +2 -2
  107. package/dist/components/BadgeCount/index.d.ts.map +1 -1
  108. package/dist/components/BadgeCount/index.js +4 -7
  109. package/dist/components/BadgeCount/index.js.map +1 -1
  110. package/dist/components/BadgeIcon/BadgeIcon.d.ts +1 -2
  111. package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -1
  112. package/dist/components/BadgeIcon/BadgeIcon.js +4 -27
  113. package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -1
  114. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +2 -2
  115. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -1
  116. package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -1
  117. package/dist/components/BadgeIcon/index.d.ts +1 -1
  118. package/dist/components/BadgeIcon/index.d.ts.map +1 -1
  119. package/dist/components/BadgeIcon/index.js +2 -5
  120. package/dist/components/BadgeIcon/index.js.map +1 -1
  121. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +1 -2
  122. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -1
  123. package/dist/components/BadgeNetwork/BadgeNetwork.js +4 -27
  124. package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -1
  125. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +16 -2
  126. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -1
  127. package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -1
  128. package/dist/components/BadgeNetwork/index.d.ts +1 -1
  129. package/dist/components/BadgeNetwork/index.d.ts.map +1 -1
  130. package/dist/components/BadgeNetwork/index.js +2 -5
  131. package/dist/components/BadgeNetwork/index.js.map +1 -1
  132. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +1 -1
  133. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -1
  134. package/dist/components/BadgeStatus/BadgeStatus.constants.js +8 -8
  135. package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -1
  136. package/dist/components/BadgeStatus/BadgeStatus.d.ts +1 -2
  137. package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -1
  138. package/dist/components/BadgeStatus/BadgeStatus.js +6 -16
  139. package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -1
  140. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +7 -27
  141. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -1
  142. package/dist/components/BadgeStatus/BadgeStatus.types.js +0 -26
  143. package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -1
  144. package/dist/components/BadgeStatus/index.d.ts +2 -2
  145. package/dist/components/BadgeStatus/index.d.ts.map +1 -1
  146. package/dist/components/BadgeStatus/index.js +5 -8
  147. package/dist/components/BadgeStatus/index.js.map +1 -1
  148. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts +4 -0
  149. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -0
  150. package/dist/components/BadgeWrapper/BadgeWrapper.js +110 -0
  151. package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -0
  152. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +73 -0
  153. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -0
  154. package/dist/components/BadgeWrapper/BadgeWrapper.types.js +3 -0
  155. package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -0
  156. package/dist/components/BadgeWrapper/index.d.ts +5 -0
  157. package/dist/components/BadgeWrapper/index.d.ts.map +1 -0
  158. package/dist/components/BadgeWrapper/index.js +9 -0
  159. package/dist/components/BadgeWrapper/index.js.map +1 -0
  160. package/dist/components/Button/Button.d.ts +1 -2
  161. package/dist/components/Button/Button.d.ts.map +1 -1
  162. package/dist/components/Button/Button.js +13 -12
  163. package/dist/components/Button/Button.js.map +1 -1
  164. package/dist/components/Button/Button.types.d.ts +1 -10
  165. package/dist/components/Button/Button.types.d.ts.map +1 -1
  166. package/dist/components/Button/Button.types.js +0 -12
  167. package/dist/components/Button/Button.types.js.map +1 -1
  168. package/dist/components/Button/index.d.ts +2 -2
  169. package/dist/components/Button/index.d.ts.map +1 -1
  170. package/dist/components/Button/index.js +5 -8
  171. package/dist/components/Button/index.js.map +1 -1
  172. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +1 -2
  173. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -1
  174. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +63 -54
  175. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -1
  176. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +3 -1
  177. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -1
  178. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -1
  179. package/dist/components/Button/variants/ButtonPrimary/index.d.ts +2 -2
  180. package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -1
  181. package/dist/components/Button/variants/ButtonPrimary/index.js +4 -7
  182. package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -1
  183. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +1 -2
  184. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -1
  185. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +62 -50
  186. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -1
  187. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +3 -1
  188. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -1
  189. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -1
  190. package/dist/components/Button/variants/ButtonSecondary/index.d.ts +2 -2
  191. package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -1
  192. package/dist/components/Button/variants/ButtonSecondary/index.js +4 -7
  193. package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -1
  194. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +1 -2
  195. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -1
  196. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +69 -50
  197. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -1
  198. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +3 -1
  199. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -1
  200. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -1
  201. package/dist/components/Button/variants/ButtonTertiary/index.d.ts +2 -2
  202. package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -1
  203. package/dist/components/Button/variants/ButtonTertiary/index.js +4 -7
  204. package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -1
  205. package/dist/components/ButtonBase/ButtonBase.d.ts +4 -0
  206. package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -0
  207. package/dist/components/ButtonBase/ButtonBase.js +48 -0
  208. package/dist/components/ButtonBase/ButtonBase.js.map +1 -0
  209. package/dist/{primitives → components}/ButtonBase/ButtonBase.types.d.ts +9 -17
  210. package/dist/components/ButtonBase/ButtonBase.types.d.ts.map +1 -0
  211. package/dist/components/ButtonBase/ButtonBase.types.js +3 -0
  212. package/dist/components/ButtonBase/ButtonBase.types.js.map +1 -0
  213. package/dist/components/ButtonBase/index.d.ts +4 -0
  214. package/dist/components/ButtonBase/index.d.ts.map +1 -0
  215. package/dist/components/ButtonBase/index.js +8 -0
  216. package/dist/components/ButtonBase/index.js.map +1 -0
  217. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +7 -4
  218. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -1
  219. package/dist/components/ButtonIcon/ButtonIcon.constants.js +10 -13
  220. package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -1
  221. package/dist/components/ButtonIcon/ButtonIcon.d.ts +1 -2
  222. package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -1
  223. package/dist/components/ButtonIcon/ButtonIcon.js +17 -32
  224. package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -1
  225. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +8 -16
  226. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -1
  227. package/dist/components/ButtonIcon/ButtonIcon.types.js +0 -16
  228. package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -1
  229. package/dist/components/ButtonIcon/index.d.ts +2 -2
  230. package/dist/components/ButtonIcon/index.d.ts.map +1 -1
  231. package/dist/components/ButtonIcon/index.js +4 -7
  232. package/dist/components/ButtonIcon/index.js.map +1 -1
  233. package/dist/components/Checkbox/Checkbox.d.ts +17 -0
  234. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  235. package/dist/components/Checkbox/Checkbox.js +122 -0
  236. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  237. package/dist/components/Checkbox/Checkbox.types.d.ts +57 -0
  238. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  239. package/dist/components/Checkbox/Checkbox.types.js +3 -0
  240. package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
  241. package/dist/components/Checkbox/index.d.ts +3 -0
  242. package/dist/components/Checkbox/index.d.ts.map +1 -0
  243. package/dist/components/Checkbox/index.js +6 -0
  244. package/dist/components/Checkbox/index.js.map +1 -0
  245. package/dist/components/Icon/Icon.assets.d.ts.map +1 -1
  246. package/dist/components/Icon/Icon.assets.js +401 -171
  247. package/dist/components/Icon/Icon.assets.js.map +1 -1
  248. package/dist/components/Icon/Icon.d.ts +1 -2
  249. package/dist/components/Icon/Icon.d.ts.map +1 -1
  250. package/dist/components/Icon/Icon.js +4 -3
  251. package/dist/components/Icon/Icon.js.map +1 -1
  252. package/dist/components/Icon/Icon.types.d.ts +3 -220
  253. package/dist/components/Icon/Icon.types.d.ts.map +1 -1
  254. package/dist/components/Icon/Icon.types.js +0 -228
  255. package/dist/components/Icon/Icon.types.js.map +1 -1
  256. package/dist/components/Icon/Icon.utilities.d.ts.map +1 -1
  257. package/dist/components/Icon/Icon.utilities.js +2 -2
  258. package/dist/components/Icon/Icon.utilities.js.map +1 -1
  259. package/dist/components/Icon/assets/accessibility.svg +1 -0
  260. package/dist/components/Icon/assets/activity.svg +1 -0
  261. package/dist/components/Icon/assets/add-card.svg +1 -0
  262. package/dist/components/Icon/assets/add-circle.svg +1 -0
  263. package/dist/components/Icon/assets/add-square.svg +1 -0
  264. package/dist/components/Icon/assets/add.svg +1 -0
  265. package/dist/components/Icon/assets/ai.svg +1 -0
  266. package/dist/components/Icon/assets/alternate-email.svg +1 -0
  267. package/dist/components/Icon/assets/apps.svg +1 -0
  268. package/dist/components/Icon/assets/arrow-2-down.svg +1 -0
  269. package/dist/components/Icon/assets/arrow-2-left.svg +1 -0
  270. package/dist/components/Icon/assets/arrow-2-right.svg +1 -0
  271. package/dist/components/Icon/assets/arrow-2-up-right.svg +1 -0
  272. package/dist/components/Icon/assets/arrow-2-up.svg +1 -0
  273. package/dist/components/Icon/assets/arrow-circle-down.svg +1 -0
  274. package/dist/components/Icon/assets/arrow-circle-up.svg +1 -0
  275. package/dist/components/Icon/assets/arrow-double-left.svg +1 -0
  276. package/dist/components/Icon/assets/arrow-double-right.svg +1 -0
  277. package/dist/components/Icon/assets/arrow-down.svg +1 -0
  278. package/dist/components/Icon/assets/arrow-drop-down-circle.svg +1 -0
  279. package/dist/components/Icon/assets/arrow-left.svg +1 -0
  280. package/dist/components/Icon/assets/arrow-right.svg +1 -0
  281. package/dist/components/Icon/assets/arrow-up.svg +1 -0
  282. package/dist/components/Icon/assets/attachment.svg +1 -0
  283. package/dist/components/Icon/assets/ban.svg +1 -0
  284. package/dist/components/Icon/assets/bank-assured.svg +1 -0
  285. package/dist/components/Icon/assets/bank.svg +1 -0
  286. package/dist/components/Icon/assets/bold.svg +1 -0
  287. package/dist/components/Icon/assets/book.svg +1 -0
  288. package/dist/components/Icon/assets/bookmark.svg +1 -0
  289. package/dist/components/Icon/assets/bridge.svg +1 -0
  290. package/dist/components/Icon/assets/briefcase.svg +1 -0
  291. package/dist/components/Icon/assets/bulb.svg +1 -0
  292. package/dist/components/Icon/assets/buy-sell.svg +1 -0
  293. package/dist/components/Icon/assets/cake.svg +1 -0
  294. package/dist/components/Icon/assets/calculator.svg +1 -0
  295. package/dist/components/Icon/assets/calendar.svg +1 -0
  296. package/dist/components/Icon/assets/call.svg +1 -0
  297. package/dist/components/Icon/assets/camera.svg +1 -0
  298. package/dist/components/Icon/assets/campaign.svg +1 -0
  299. package/dist/components/Icon/assets/card-pos.svg +1 -0
  300. package/dist/components/Icon/assets/card.svg +1 -0
  301. package/dist/components/Icon/assets/cash.svg +1 -0
  302. package/dist/components/Icon/assets/category.svg +1 -0
  303. package/dist/components/Icon/assets/chart.svg +1 -0
  304. package/dist/components/Icon/assets/check-bold.svg +1 -0
  305. package/dist/components/Icon/assets/check.svg +1 -0
  306. package/dist/components/Icon/assets/circle-x.svg +1 -0
  307. package/dist/components/Icon/assets/clock-filled.svg +1 -0
  308. package/dist/components/Icon/assets/clock.svg +1 -0
  309. package/dist/components/Icon/assets/close.svg +1 -0
  310. package/dist/components/Icon/assets/cloud-download.svg +1 -0
  311. package/dist/components/Icon/assets/cloud-upload.svg +1 -0
  312. package/dist/components/Icon/assets/cloud.svg +1 -0
  313. package/dist/components/Icon/assets/code-circle.svg +1 -0
  314. package/dist/components/Icon/assets/code.svg +1 -0
  315. package/dist/components/Icon/assets/coin.svg +1 -0
  316. package/dist/components/Icon/assets/collapse.svg +1 -0
  317. package/dist/components/Icon/assets/confirmation.svg +1 -0
  318. package/dist/components/Icon/assets/connect.svg +1 -0
  319. package/dist/components/Icon/assets/copy-success.svg +1 -0
  320. package/dist/components/Icon/assets/copy.svg +1 -0
  321. package/dist/components/Icon/assets/credit-check.svg +1 -0
  322. package/dist/components/Icon/assets/currency-franc.svg +1 -0
  323. package/dist/components/Icon/assets/currency-lira.svg +1 -0
  324. package/dist/components/Icon/assets/currency-pound.svg +1 -0
  325. package/dist/components/Icon/assets/currency-yuan.svg +3 -0
  326. package/dist/components/Icon/assets/customize.svg +1 -0
  327. package/dist/components/Icon/assets/danger.svg +1 -0
  328. package/dist/components/Icon/assets/dark-filled.svg +1 -0
  329. package/dist/components/Icon/assets/dark.svg +1 -0
  330. package/dist/components/Icon/assets/data.svg +1 -0
  331. package/dist/components/Icon/assets/description.svg +1 -0
  332. package/dist/components/Icon/assets/details.svg +1 -0
  333. package/dist/components/Icon/assets/diagram.svg +1 -0
  334. package/dist/components/Icon/assets/document-code.svg +1 -0
  335. package/dist/components/Icon/assets/download.svg +1 -0
  336. package/dist/components/Icon/assets/draft.svg +1 -0
  337. package/dist/components/Icon/assets/eco-leaf.svg +1 -0
  338. package/dist/components/Icon/assets/edit-square.svg +1 -0
  339. package/dist/components/Icon/assets/edit.svg +1 -0
  340. package/dist/components/Icon/assets/encrypted-add.svg +1 -0
  341. package/dist/components/Icon/assets/eraser.svg +1 -0
  342. package/dist/components/Icon/assets/error.svg +1 -0
  343. package/dist/components/Icon/assets/ethereum.svg +1 -0
  344. package/dist/components/Icon/assets/exchange.svg +1 -0
  345. package/dist/components/Icon/assets/expand-vertical.svg +1 -0
  346. package/dist/components/Icon/assets/expand.svg +1 -0
  347. package/dist/components/Icon/assets/explore-filled.svg +1 -0
  348. package/dist/components/Icon/assets/explore.svg +1 -0
  349. package/dist/components/Icon/assets/export.svg +1 -0
  350. package/dist/components/Icon/assets/extension.svg +1 -0
  351. package/dist/components/Icon/assets/eye-slash.svg +1 -0
  352. package/dist/components/Icon/assets/eye.svg +1 -0
  353. package/dist/components/Icon/assets/face-id.svg +1 -0
  354. package/dist/components/Icon/assets/feedback.svg +1 -0
  355. package/dist/components/Icon/assets/file.svg +1 -0
  356. package/dist/components/Icon/assets/filter.svg +1 -0
  357. package/dist/components/Icon/assets/fingerprint.svg +1 -0
  358. package/dist/components/Icon/assets/fire.svg +1 -0
  359. package/dist/components/Icon/assets/first-page.svg +1 -0
  360. package/dist/components/Icon/assets/flag.svg +1 -0
  361. package/dist/components/Icon/assets/flash-slash.svg +1 -0
  362. package/dist/components/Icon/assets/flash.svg +1 -0
  363. package/dist/components/Icon/assets/flask.svg +1 -0
  364. package/dist/components/Icon/assets/flower.svg +1 -0
  365. package/dist/components/Icon/assets/folder.svg +1 -0
  366. package/dist/components/Icon/assets/forest.svg +1 -0
  367. package/dist/components/Icon/assets/full-circle.svg +1 -0
  368. package/dist/components/Icon/assets/gas.svg +1 -0
  369. package/dist/components/Icon/assets/gift.svg +1 -0
  370. package/dist/components/Icon/assets/global-search.svg +1 -0
  371. package/dist/components/Icon/assets/global.svg +1 -0
  372. package/dist/components/Icon/assets/graph.svg +1 -0
  373. package/dist/components/Icon/assets/hardware.svg +1 -0
  374. package/dist/components/Icon/assets/hash-tag.svg +1 -0
  375. package/dist/components/Icon/assets/heart-filled.svg +1 -0
  376. package/dist/components/Icon/assets/heart.svg +1 -0
  377. package/dist/components/Icon/assets/hierarchy.svg +1 -0
  378. package/dist/components/Icon/assets/home-filled.svg +1 -0
  379. package/dist/components/Icon/assets/home.svg +1 -0
  380. package/dist/components/Icon/assets/image.svg +1 -0
  381. package/dist/components/Icon/assets/info.svg +1 -0
  382. package/dist/components/Icon/assets/inventory.svg +1 -0
  383. package/dist/components/Icon/assets/joystick.svg +1 -0
  384. package/dist/components/Icon/assets/keep-filled.svg +1 -0
  385. package/dist/components/Icon/assets/keep.svg +1 -0
  386. package/dist/components/Icon/assets/key.svg +1 -0
  387. package/dist/components/Icon/assets/last-page.svg +1 -0
  388. package/dist/components/Icon/assets/light-filled.svg +1 -0
  389. package/dist/components/Icon/assets/light.svg +1 -0
  390. package/dist/components/Icon/assets/link.svg +1 -0
  391. package/dist/components/Icon/assets/loading.svg +1 -0
  392. package/dist/components/Icon/assets/location.svg +1 -0
  393. package/dist/components/Icon/assets/lock-slash.svg +1 -0
  394. package/dist/components/Icon/assets/lock.svg +1 -0
  395. package/dist/components/Icon/assets/locked-filled.svg +1 -0
  396. package/dist/components/Icon/assets/login.svg +1 -0
  397. package/dist/components/Icon/assets/logout.svg +1 -0
  398. package/dist/components/Icon/assets/mail.svg +1 -0
  399. package/dist/components/Icon/assets/map.svg +1 -0
  400. package/dist/components/Icon/assets/menu.svg +1 -0
  401. package/dist/components/Icon/assets/message-question.svg +1 -0
  402. package/dist/components/Icon/assets/messages.svg +1 -0
  403. package/dist/components/Icon/assets/mic.svg +1 -0
  404. package/dist/components/Icon/assets/minus-bold.svg +1 -0
  405. package/dist/components/Icon/assets/minus-square.svg +1 -0
  406. package/dist/components/Icon/assets/minus.svg +1 -0
  407. package/dist/components/Icon/assets/mobile.svg +1 -0
  408. package/dist/components/Icon/assets/money-bag.svg +1 -0
  409. package/dist/components/Icon/assets/money.svg +1 -0
  410. package/dist/components/Icon/assets/monitor.svg +1 -0
  411. package/dist/components/Icon/assets/more-horizontal.svg +1 -0
  412. package/dist/components/Icon/assets/more-vertical.svg +1 -0
  413. package/dist/components/Icon/assets/mountain-flag.svg +1 -0
  414. package/dist/components/Icon/assets/music-note.svg +1 -0
  415. package/dist/components/Icon/assets/notification.svg +1 -0
  416. package/dist/components/Icon/assets/page-info.svg +1 -0
  417. package/dist/components/Icon/assets/palette.svg +1 -0
  418. package/dist/components/Icon/assets/password-check.svg +1 -0
  419. package/dist/components/Icon/assets/pending.svg +1 -0
  420. package/dist/components/Icon/assets/people.svg +1 -0
  421. package/dist/components/Icon/assets/person-cancel.svg +1 -0
  422. package/dist/components/Icon/assets/pin.svg +1 -0
  423. package/dist/components/Icon/assets/plant.svg +1 -0
  424. package/dist/components/Icon/assets/plug.svg +1 -0
  425. package/dist/components/Icon/assets/plus-and-minus.svg +1 -0
  426. package/dist/components/Icon/assets/policy-alert.svg +1 -0
  427. package/dist/components/Icon/assets/print.svg +1 -0
  428. package/dist/components/Icon/assets/priority-high.svg +1 -0
  429. package/dist/components/Icon/assets/privacy-tip.svg +1 -0
  430. package/dist/components/Icon/assets/programming-arrows.svg +1 -0
  431. package/dist/components/Icon/assets/publish.svg +1 -0
  432. package/dist/components/Icon/assets/qr-code.svg +1 -0
  433. package/dist/components/Icon/assets/question.svg +1 -0
  434. package/dist/components/Icon/assets/receive.svg +1 -0
  435. package/dist/components/Icon/assets/received.svg +1 -0
  436. package/dist/components/Icon/assets/refresh.svg +1 -0
  437. package/dist/components/Icon/assets/remove-minus.svg +1 -0
  438. package/dist/components/Icon/assets/report.svg +1 -0
  439. package/dist/components/Icon/assets/rocket.svg +1 -0
  440. package/dist/components/Icon/assets/save-filled.svg +1 -0
  441. package/dist/components/Icon/assets/save.svg +1 -0
  442. package/dist/components/Icon/assets/saving.svg +1 -0
  443. package/dist/components/Icon/assets/scan-barcode.svg +1 -0
  444. package/dist/components/Icon/assets/scan-focus.svg +1 -0
  445. package/dist/components/Icon/assets/scan.svg +1 -0
  446. package/dist/components/Icon/assets/search.svg +1 -0
  447. package/dist/components/Icon/assets/security-alert.svg +1 -0
  448. package/dist/components/Icon/assets/security-cross.svg +1 -0
  449. package/dist/components/Icon/assets/security-key.svg +1 -0
  450. package/dist/components/Icon/assets/security-search.svg +1 -0
  451. package/dist/components/Icon/assets/security-slash.svg +1 -0
  452. package/dist/components/Icon/assets/security-tick.svg +1 -0
  453. package/dist/components/Icon/assets/security-time.svg +1 -0
  454. package/dist/components/Icon/assets/security-user.svg +1 -0
  455. package/dist/components/Icon/assets/security.svg +1 -0
  456. package/dist/components/Icon/assets/send.svg +1 -0
  457. package/dist/components/Icon/assets/sentiment-dissatisfied.svg +1 -0
  458. package/dist/components/Icon/assets/sentiment-neutral.svg +1 -0
  459. package/dist/components/Icon/assets/sentiment-satisfied.svg +1 -0
  460. package/dist/components/Icon/assets/sentiment-very-satisfied.svg +1 -0
  461. package/dist/components/Icon/assets/setting-filled.svg +1 -0
  462. package/dist/components/Icon/assets/setting.svg +1 -0
  463. package/dist/components/Icon/assets/share.svg +1 -0
  464. package/dist/components/Icon/assets/shield-lock.svg +1 -0
  465. package/dist/components/Icon/assets/shopping-bag.svg +1 -0
  466. package/dist/components/Icon/assets/shopping-cart.svg +1 -0
  467. package/dist/components/Icon/assets/signal-cellular.svg +1 -0
  468. package/dist/components/Icon/assets/slash.svg +1 -0
  469. package/dist/components/Icon/assets/sms.svg +1 -0
  470. package/dist/components/Icon/assets/snaps-mobile.svg +1 -0
  471. package/dist/components/Icon/assets/snaps-plus.svg +1 -0
  472. package/dist/components/Icon/assets/snaps-round.svg +1 -0
  473. package/dist/components/Icon/assets/snaps.svg +1 -0
  474. package/dist/components/Icon/assets/sort-by-alpha.svg +1 -0
  475. package/dist/components/Icon/assets/sort.svg +1 -0
  476. package/dist/components/Icon/assets/sparkle.svg +1 -0
  477. package/dist/components/Icon/assets/speed.svg +1 -0
  478. package/dist/components/Icon/assets/speedometer.svg +1 -0
  479. package/dist/components/Icon/assets/square.svg +1 -0
  480. package/dist/components/Icon/assets/stake.svg +1 -0
  481. package/dist/components/Icon/assets/star-filled.svg +1 -0
  482. package/dist/components/Icon/assets/star.svg +1 -0
  483. package/dist/components/Icon/assets/start.svg +1 -0
  484. package/dist/components/Icon/assets/storefront.svg +1 -0
  485. package/dist/components/Icon/assets/student.svg +1 -0
  486. package/dist/components/Icon/assets/swap-horizontal.svg +1 -0
  487. package/dist/components/Icon/assets/swap-vertical.svg +3 -0
  488. package/dist/components/Icon/assets/tab-close.svg +1 -0
  489. package/dist/components/Icon/assets/table-row.svg +1 -0
  490. package/dist/components/Icon/assets/tablet.svg +1 -0
  491. package/dist/components/Icon/assets/tag.svg +1 -0
  492. package/dist/components/Icon/assets/thumb-down-filled.svg +1 -0
  493. package/dist/components/Icon/assets/thumb-down.svg +1 -0
  494. package/dist/components/Icon/assets/thumb-up-filled.svg +1 -0
  495. package/dist/components/Icon/assets/thumb-up.svg +1 -0
  496. package/dist/components/Icon/assets/tint.svg +1 -0
  497. package/dist/components/Icon/assets/tooltip.svg +1 -0
  498. package/dist/components/Icon/assets/translate.svg +1 -0
  499. package/dist/components/Icon/assets/trash.svg +1 -0
  500. package/dist/components/Icon/assets/trend-down.svg +1 -0
  501. package/dist/components/Icon/assets/trend-up.svg +1 -0
  502. package/dist/components/Icon/assets/undo.svg +1 -0
  503. package/dist/components/Icon/assets/unfold.svg +1 -0
  504. package/dist/components/Icon/assets/unlocked-filled.svg +1 -0
  505. package/dist/components/Icon/assets/unpin.svg +1 -0
  506. package/dist/components/Icon/assets/upload-file.svg +1 -0
  507. package/dist/components/Icon/assets/upload.svg +1 -0
  508. package/dist/components/Icon/assets/usb.svg +1 -0
  509. package/dist/components/Icon/assets/user-check.svg +1 -0
  510. package/dist/components/Icon/assets/user-circle-add.svg +1 -0
  511. package/dist/components/Icon/assets/user-circle-remove.svg +1 -0
  512. package/dist/components/Icon/assets/user-circle.svg +1 -0
  513. package/dist/components/Icon/assets/user.svg +1 -0
  514. package/dist/components/Icon/assets/verified-filled.svg +1 -0
  515. package/dist/components/Icon/assets/verified.svg +1 -0
  516. package/dist/components/Icon/assets/videocam.svg +1 -0
  517. package/dist/components/Icon/assets/view-column.svg +1 -0
  518. package/dist/components/Icon/assets/view-in-ar.svg +1 -0
  519. package/dist/components/Icon/assets/volume-off.svg +1 -0
  520. package/dist/components/Icon/assets/volume-up.svg +1 -0
  521. package/dist/components/Icon/assets/wallet-filled.svg +1 -0
  522. package/dist/components/Icon/assets/wallet.svg +1 -0
  523. package/dist/components/Icon/assets/warning.svg +1 -0
  524. package/dist/components/Icon/assets/web-traffic.svg +1 -0
  525. package/dist/components/Icon/assets/widgets.svg +1 -0
  526. package/dist/components/Icon/assets/wifi-off.svg +1 -0
  527. package/dist/components/Icon/assets/wifi.svg +1 -0
  528. package/dist/components/Icon/assets/x.svg +1 -0
  529. package/dist/components/Icon/index.d.ts +2 -2
  530. package/dist/components/Icon/index.d.ts.map +1 -1
  531. package/dist/components/Icon/index.js +6 -9
  532. package/dist/components/Icon/index.js.map +1 -1
  533. package/dist/components/Text/Text.constants.d.ts +5 -4
  534. package/dist/components/Text/Text.constants.d.ts.map +1 -1
  535. package/dist/components/Text/Text.constants.js +18 -10
  536. package/dist/components/Text/Text.constants.js.map +1 -1
  537. package/dist/components/Text/Text.d.ts +1 -2
  538. package/dist/components/Text/Text.d.ts.map +1 -1
  539. package/dist/components/Text/Text.js +7 -5
  540. package/dist/components/Text/Text.js.map +1 -1
  541. package/dist/components/Text/Text.types.d.ts +9 -89
  542. package/dist/components/Text/Text.types.d.ts.map +1 -1
  543. package/dist/components/Text/Text.types.js +0 -92
  544. package/dist/components/Text/Text.types.js.map +1 -1
  545. package/dist/components/Text/Text.utilities.d.ts.map +1 -1
  546. package/dist/components/Text/Text.utilities.js +4 -4
  547. package/dist/components/Text/Text.utilities.js.map +1 -1
  548. package/dist/components/Text/index.d.ts +2 -2
  549. package/dist/components/Text/index.d.ts.map +1 -1
  550. package/dist/components/Text/index.js +8 -11
  551. package/dist/components/Text/index.js.map +1 -1
  552. package/dist/components/TextButton/TextButton.constants.d.ts +3 -2
  553. package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -1
  554. package/dist/components/TextButton/TextButton.constants.js +7 -24
  555. package/dist/components/TextButton/TextButton.constants.js.map +1 -1
  556. package/dist/components/TextButton/TextButton.d.ts +1 -2
  557. package/dist/components/TextButton/TextButton.d.ts.map +1 -1
  558. package/dist/components/TextButton/TextButton.js +33 -152
  559. package/dist/components/TextButton/TextButton.js.map +1 -1
  560. package/dist/components/TextButton/TextButton.types.d.ts +11 -15
  561. package/dist/components/TextButton/TextButton.types.d.ts.map +1 -1
  562. package/dist/components/TextButton/TextButton.types.js.map +1 -1
  563. package/dist/components/TextButton/index.d.ts +2 -1
  564. package/dist/components/TextButton/index.d.ts.map +1 -1
  565. package/dist/components/TextButton/index.js +4 -5
  566. package/dist/components/TextButton/index.js.map +1 -1
  567. package/dist/components/index.d.ts +49 -0
  568. package/dist/components/index.d.ts.map +1 -0
  569. package/dist/components/index.js +81 -0
  570. package/dist/components/index.js.map +1 -0
  571. package/dist/components/temp-components/Blockies/Blockies.d.ts +4 -0
  572. package/dist/components/temp-components/Blockies/Blockies.d.ts.map +1 -0
  573. package/dist/{primitives → components/temp-components}/Blockies/Blockies.js +2 -3
  574. package/dist/components/temp-components/Blockies/Blockies.js.map +1 -0
  575. package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.d.ts +1 -1
  576. package/dist/components/temp-components/Blockies/Blockies.types.d.ts.map +1 -0
  577. package/dist/components/temp-components/Blockies/Blockies.types.js.map +1 -0
  578. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts +24 -0
  579. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts.map +1 -0
  580. package/dist/components/temp-components/Blockies/Blockies.utilities.js +492 -0
  581. package/dist/components/temp-components/Blockies/Blockies.utilities.js.map +1 -0
  582. package/dist/components/temp-components/Blockies/index.d.ts +3 -0
  583. package/dist/components/temp-components/Blockies/index.d.ts.map +1 -0
  584. package/dist/components/temp-components/Blockies/index.js +6 -0
  585. package/dist/components/temp-components/Blockies/index.js.map +1 -0
  586. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts +4 -0
  587. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
  588. package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.js +2 -1
  589. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js.map +1 -0
  590. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
  591. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
  592. package/dist/components/temp-components/ButtonAnimated/index.d.ts +3 -0
  593. package/dist/components/temp-components/ButtonAnimated/index.d.ts.map +1 -0
  594. package/dist/components/temp-components/ButtonAnimated/index.js +6 -0
  595. package/dist/components/temp-components/ButtonAnimated/index.js.map +1 -0
  596. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts +4 -0
  597. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
  598. package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.js +3 -5
  599. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js.map +1 -0
  600. package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.d.ts +7 -7
  601. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
  602. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
  603. package/dist/components/temp-components/ImageOrSvg/index.d.ts +3 -0
  604. package/dist/components/temp-components/ImageOrSvg/index.d.ts.map +1 -0
  605. package/dist/components/temp-components/ImageOrSvg/index.js +6 -0
  606. package/dist/components/temp-components/ImageOrSvg/index.js.map +1 -0
  607. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts +4 -0
  608. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts.map +1 -0
  609. package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.js +2 -2
  610. package/dist/components/temp-components/Jazzicon/Jazzicon.js.map +1 -0
  611. package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.d.ts +1 -1
  612. package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts.map +1 -0
  613. package/dist/components/temp-components/Jazzicon/Jazzicon.types.js.map +1 -0
  614. package/dist/components/temp-components/Jazzicon/index.d.ts +3 -0
  615. package/dist/components/temp-components/Jazzicon/index.d.ts.map +1 -0
  616. package/dist/components/temp-components/Jazzicon/index.js +6 -0
  617. package/dist/components/temp-components/Jazzicon/index.js.map +1 -0
  618. package/dist/components/temp-components/Maskicon/Maskicon.d.ts +4 -0
  619. package/dist/components/temp-components/Maskicon/Maskicon.d.ts.map +1 -0
  620. package/dist/components/temp-components/Maskicon/Maskicon.js +52 -0
  621. package/dist/components/temp-components/Maskicon/Maskicon.js.map +1 -0
  622. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts +15 -0
  623. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts.map +1 -0
  624. package/dist/components/temp-components/Maskicon/Maskicon.types.js +3 -0
  625. package/dist/components/temp-components/Maskicon/Maskicon.types.js.map +1 -0
  626. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts +57 -0
  627. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts.map +1 -0
  628. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js +282 -0
  629. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js.map +1 -0
  630. package/dist/components/temp-components/Maskicon/index.d.ts +3 -0
  631. package/dist/components/temp-components/Maskicon/index.d.ts.map +1 -0
  632. package/dist/components/temp-components/Maskicon/index.js +6 -0
  633. package/dist/components/temp-components/Maskicon/index.js.map +1 -0
  634. package/dist/components/temp-components/Spinner/Spinner.d.ts +4 -0
  635. package/dist/components/temp-components/Spinner/Spinner.d.ts.map +1 -0
  636. package/dist/{temp-components → components/temp-components}/Spinner/Spinner.js +13 -13
  637. package/dist/components/temp-components/Spinner/Spinner.js.map +1 -0
  638. package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.d.ts +3 -2
  639. package/dist/components/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
  640. package/dist/components/temp-components/Spinner/Spinner.types.js.map +1 -0
  641. package/dist/components/temp-components/Spinner/index.d.ts +3 -0
  642. package/dist/components/temp-components/Spinner/index.d.ts.map +1 -0
  643. package/dist/components/temp-components/Spinner/index.js +6 -0
  644. package/dist/components/temp-components/Spinner/index.js.map +1 -0
  645. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts +4 -0
  646. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts.map +1 -0
  647. package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.js +5 -4
  648. package/dist/components/temp-components/TextOrChildren/TextOrChildren.js.map +1 -0
  649. package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.d.ts +2 -1
  650. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
  651. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js.map +1 -0
  652. package/dist/components/temp-components/TextOrChildren/index.d.ts +3 -0
  653. package/dist/components/temp-components/TextOrChildren/index.d.ts.map +1 -0
  654. package/dist/components/temp-components/TextOrChildren/index.js +6 -0
  655. package/dist/components/temp-components/TextOrChildren/index.js.map +1 -0
  656. package/dist/index.d.ts +1 -136
  657. package/dist/index.d.ts.map +1 -1
  658. package/dist/index.js +14 -85
  659. package/dist/index.js.map +1 -1
  660. package/dist/types/index.d.ts +618 -0
  661. package/dist/types/index.d.ts.map +1 -0
  662. package/dist/types/index.js +629 -0
  663. package/dist/types/index.js.map +1 -0
  664. package/package.json +15 -5
  665. package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts +0 -2
  666. package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts.map +0 -1
  667. package/dist/components/AvatarFavicon/AvatarFavicon.constants.js +0 -14
  668. package/dist/components/AvatarFavicon/AvatarFavicon.constants.js.map +0 -1
  669. package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts +0 -48
  670. package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts.map +0 -1
  671. package/dist/components/AvatarGroup/AvatarGroup.utilities.js +0 -72
  672. package/dist/components/AvatarGroup/AvatarGroup.utilities.js.map +0 -1
  673. package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts +0 -24
  674. package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts.map +0 -1
  675. package/dist/components/AvatarIcon/AvatarIcon.utilities.js +0 -31
  676. package/dist/components/AvatarIcon/AvatarIcon.utilities.js.map +0 -1
  677. package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts +0 -2
  678. package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts.map +0 -1
  679. package/dist/components/AvatarNetwork/AvatarNetwork.constants.js +0 -14
  680. package/dist/components/AvatarNetwork/AvatarNetwork.constants.js.map +0 -1
  681. package/dist/components/AvatarToken/AvatarToken.constants.d.ts +0 -2
  682. package/dist/components/AvatarToken/AvatarToken.constants.d.ts.map +0 -1
  683. package/dist/components/AvatarToken/AvatarToken.constants.js +0 -14
  684. package/dist/components/AvatarToken/AvatarToken.constants.js.map +0 -1
  685. package/dist/components/Button/Button.constants.d.ts +0 -2
  686. package/dist/components/Button/Button.constants.d.ts.map +0 -1
  687. package/dist/components/Button/Button.constants.js +0 -7
  688. package/dist/components/Button/Button.constants.js.map +0 -1
  689. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +0 -3
  690. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +0 -1
  691. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +0 -29
  692. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +0 -1
  693. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +0 -78
  694. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +0 -1
  695. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +0 -122
  696. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +0 -1
  697. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +0 -3
  698. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +0 -1
  699. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +0 -29
  700. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +0 -1
  701. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +0 -90
  702. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +0 -1
  703. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +0 -145
  704. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +0 -1
  705. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +0 -3
  706. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +0 -1
  707. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +0 -29
  708. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +0 -1
  709. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +0 -88
  710. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +0 -1
  711. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +0 -147
  712. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +0 -1
  713. package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +0 -55
  714. package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +0 -1
  715. package/dist/components/ButtonIcon/ButtonIcon.utilities.js +0 -73
  716. package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +0 -1
  717. package/dist/components/Icon/Icon.constants.d.ts +0 -7
  718. package/dist/components/Icon/Icon.constants.d.ts.map +0 -1
  719. package/dist/components/Icon/Icon.constants.js +0 -15
  720. package/dist/components/Icon/Icon.constants.js.map +0 -1
  721. package/dist/components/TextButton/TextButton.utilities.d.ts +0 -55
  722. package/dist/components/TextButton/TextButton.utilities.d.ts.map +0 -1
  723. package/dist/components/TextButton/TextButton.utilities.js +0 -77
  724. package/dist/components/TextButton/TextButton.utilities.js.map +0 -1
  725. package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts +0 -6
  726. package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts.map +0 -1
  727. package/dist/primitives/AvatarBase/AvatarBase.constants.js +0 -34
  728. package/dist/primitives/AvatarBase/AvatarBase.constants.js.map +0 -1
  729. package/dist/primitives/AvatarBase/AvatarBase.d.ts +0 -5
  730. package/dist/primitives/AvatarBase/AvatarBase.d.ts.map +0 -1
  731. package/dist/primitives/AvatarBase/AvatarBase.js +0 -55
  732. package/dist/primitives/AvatarBase/AvatarBase.js.map +0 -1
  733. package/dist/primitives/AvatarBase/AvatarBase.types.d.ts.map +0 -1
  734. package/dist/primitives/AvatarBase/AvatarBase.types.js.map +0 -1
  735. package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts +0 -30
  736. package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts.map +0 -1
  737. package/dist/primitives/AvatarBase/AvatarBase.utilities.js +0 -60
  738. package/dist/primitives/AvatarBase/AvatarBase.utilities.js.map +0 -1
  739. package/dist/primitives/AvatarBase/index.d.ts +0 -4
  740. package/dist/primitives/AvatarBase/index.d.ts.map +0 -1
  741. package/dist/primitives/AvatarBase/index.js +0 -11
  742. package/dist/primitives/AvatarBase/index.js.map +0 -1
  743. package/dist/primitives/Blockies/Blockies.d.ts +0 -5
  744. package/dist/primitives/Blockies/Blockies.d.ts.map +0 -1
  745. package/dist/primitives/Blockies/Blockies.js.map +0 -1
  746. package/dist/primitives/Blockies/Blockies.types.d.ts.map +0 -1
  747. package/dist/primitives/Blockies/Blockies.types.js.map +0 -1
  748. package/dist/primitives/Blockies/index.d.ts +0 -3
  749. package/dist/primitives/Blockies/index.d.ts.map +0 -1
  750. package/dist/primitives/Blockies/index.js +0 -9
  751. package/dist/primitives/Blockies/index.js.map +0 -1
  752. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +0 -5
  753. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +0 -1
  754. package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +0 -1
  755. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +0 -1
  756. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +0 -1
  757. package/dist/primitives/ButtonAnimated/index.d.ts +0 -3
  758. package/dist/primitives/ButtonAnimated/index.d.ts.map +0 -1
  759. package/dist/primitives/ButtonAnimated/index.js +0 -9
  760. package/dist/primitives/ButtonAnimated/index.js.map +0 -1
  761. package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +0 -3
  762. package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +0 -1
  763. package/dist/primitives/ButtonBase/ButtonBase.constants.js +0 -32
  764. package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +0 -1
  765. package/dist/primitives/ButtonBase/ButtonBase.d.ts +0 -5
  766. package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +0 -1
  767. package/dist/primitives/ButtonBase/ButtonBase.js +0 -84
  768. package/dist/primitives/ButtonBase/ButtonBase.js.map +0 -1
  769. package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +0 -1
  770. package/dist/primitives/ButtonBase/ButtonBase.types.js +0 -19
  771. package/dist/primitives/ButtonBase/ButtonBase.types.js.map +0 -1
  772. package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +0 -28
  773. package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +0 -1
  774. package/dist/primitives/ButtonBase/ButtonBase.utilities.js +0 -41
  775. package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +0 -1
  776. package/dist/primitives/ButtonBase/index.d.ts +0 -4
  777. package/dist/primitives/ButtonBase/index.d.ts.map +0 -1
  778. package/dist/primitives/ButtonBase/index.js +0 -11
  779. package/dist/primitives/ButtonBase/index.js.map +0 -1
  780. package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts +0 -5
  781. package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts.map +0 -1
  782. package/dist/primitives/ImageOrSvg/ImageOrSvg.js.map +0 -1
  783. package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts.map +0 -1
  784. package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js.map +0 -1
  785. package/dist/primitives/ImageOrSvg/index.d.ts +0 -3
  786. package/dist/primitives/ImageOrSvg/index.d.ts.map +0 -1
  787. package/dist/primitives/ImageOrSvg/index.js +0 -9
  788. package/dist/primitives/ImageOrSvg/index.js.map +0 -1
  789. package/dist/primitives/Jazzicon/Jazzicon.d.ts +0 -5
  790. package/dist/primitives/Jazzicon/Jazzicon.d.ts.map +0 -1
  791. package/dist/primitives/Jazzicon/Jazzicon.js.map +0 -1
  792. package/dist/primitives/Jazzicon/Jazzicon.types.d.ts.map +0 -1
  793. package/dist/primitives/Jazzicon/Jazzicon.types.js.map +0 -1
  794. package/dist/primitives/Jazzicon/index.d.ts +0 -3
  795. package/dist/primitives/Jazzicon/index.d.ts.map +0 -1
  796. package/dist/primitives/Jazzicon/index.js +0 -9
  797. package/dist/primitives/Jazzicon/index.js.map +0 -1
  798. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +0 -5
  799. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +0 -1
  800. package/dist/primitives/TextOrChildren/TextOrChildren.js.map +0 -1
  801. package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +0 -1
  802. package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +0 -1
  803. package/dist/primitives/TextOrChildren/index.d.ts +0 -3
  804. package/dist/primitives/TextOrChildren/index.d.ts.map +0 -1
  805. package/dist/primitives/TextOrChildren/index.js +0 -9
  806. package/dist/primitives/TextOrChildren/index.js.map +0 -1
  807. package/dist/shared/enums.d.ts +0 -47
  808. package/dist/shared/enums.d.ts.map +0 -1
  809. package/dist/shared/enums.js +0 -44
  810. package/dist/shared/enums.js.map +0 -1
  811. package/dist/temp-components/Spinner/Spinner.constants.d.ts +0 -3
  812. package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +0 -1
  813. package/dist/temp-components/Spinner/Spinner.constants.js +0 -21
  814. package/dist/temp-components/Spinner/Spinner.constants.js.map +0 -1
  815. package/dist/temp-components/Spinner/Spinner.d.ts +0 -5
  816. package/dist/temp-components/Spinner/Spinner.d.ts.map +0 -1
  817. package/dist/temp-components/Spinner/Spinner.js.map +0 -1
  818. package/dist/temp-components/Spinner/Spinner.types.d.ts.map +0 -1
  819. package/dist/temp-components/Spinner/Spinner.types.js.map +0 -1
  820. package/dist/temp-components/Spinner/index.d.ts +0 -3
  821. package/dist/temp-components/Spinner/index.d.ts.map +0 -1
  822. package/dist/temp-components/Spinner/index.js +0 -9
  823. package/dist/temp-components/Spinner/index.js.map +0 -1
  824. /package/dist/{primitives → components}/AvatarBase/AvatarBase.types.js +0 -0
  825. /package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.js +0 -0
  826. /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.d.ts +0 -0
  827. /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.js +0 -0
  828. /package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.js +0 -0
  829. /package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.js +0 -0
  830. /package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.js +0 -0
  831. /package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.js +0 -0
@@ -1,147 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateButtonTertiaryTextClassNames = exports.generateButtonTertiaryContainerClassNames = void 0;
4
- /**
5
- * Generates Tailwind class names for a tertiary button's container based on its state.
6
- *
7
- * This function calculates the background, border color, and border width styles dynamically
8
- * depending on the button's state (`isPressed`, `isDanger`, `isInverse`, `isLoading`). It also
9
- * allows additional Tailwind classes to be appended using the `twClassName` parameter.
10
- *
11
- * @param isPressed - Indicates whether the button is currently being pressed.
12
- * @param isDanger - Indicates whether the button is in a "danger" state.
13
- * @param isInverse - Indicates whether the button is using an "inverse" theme.
14
- * @param isLoading - Indicates whether the button is in a loading state.
15
- * @param twClassName - Additional Tailwind class names for customization.
16
- * @returns A string containing the combined Tailwind class names for the container's background,
17
- * border styles, and any additional classes.
18
- *
19
- * Example:
20
- * ```
21
- * const classNames = generateButtonTertiaryContainerClassNames({
22
- * isPressed: true,
23
- * isDanger: true,
24
- * isInverse: false,
25
- * isLoading: false,
26
- * twClassName: 'rounded-full',
27
- * });
28
- *
29
- * console.log(classNames);
30
- * // Output: "bg-error-mutedPressed border-0 border-error-mutedPressed rounded-full"
31
- *
32
- * const inverseClassNames = generateButtonTertiaryContainerClassNames({
33
- * isInverse: true,
34
- * twClassName: 'rounded-lg',
35
- * });
36
- *
37
- * console.log(inverseClassNames);
38
- * // Output: "bg-transparent border-[1.5px] border-primary-inverse rounded-lg"
39
- * ```
40
- *
41
- * State Priorities:
42
- * 1. If `isInverse` and `isDanger` are true, styles are dynamically determined based on `isPressed` or `isLoading`.
43
- * 2. If only `isDanger` is true, the styles reflect error-related colors with no borders.
44
- * 3. If only `isInverse` is true, a border width is added along with inverse-specific styles.
45
- * 4. If none of the above states are true, default styles are applied for a non-danger, non-inverse tertiary button.
46
- */
47
- const generateButtonTertiaryContainerClassNames = ({ isPressed = false, isDanger = false, isInverse = false, isLoading = false, twClassName = '', }) => {
48
- let backgroundStyle, borderColorStyle;
49
- let borderWidthStyle = 'border-0';
50
- const isPressedOrLoading = isPressed || isLoading;
51
- if (isInverse && isDanger) {
52
- backgroundStyle = isPressedOrLoading
53
- ? 'bg-background-defaultPressed'
54
- : 'bg-background-default';
55
- borderColorStyle = isPressedOrLoading
56
- ? 'border-background-defaultPressed'
57
- : 'border-background-default';
58
- }
59
- else if (isDanger) {
60
- backgroundStyle = isPressedOrLoading
61
- ? 'bg-error-mutedPressed'
62
- : 'bg-transparent';
63
- borderColorStyle = isPressedOrLoading
64
- ? 'border-error-mutedPressed'
65
- : 'border-transparent';
66
- }
67
- else if (isInverse) {
68
- backgroundStyle = isPressedOrLoading
69
- ? 'bg-background-pressed'
70
- : 'bg-transparent';
71
- borderColorStyle = 'border-primary-inverse';
72
- borderWidthStyle = 'border-[1.5px]';
73
- }
74
- else {
75
- backgroundStyle = isPressedOrLoading
76
- ? 'bg-background-pressed'
77
- : 'bg-transparent';
78
- borderColorStyle = isPressedOrLoading
79
- ? 'border-background-pressed'
80
- : 'border-transparent';
81
- }
82
- return `${backgroundStyle} ${borderWidthStyle} ${borderColorStyle} ${twClassName}`;
83
- };
84
- exports.generateButtonTertiaryContainerClassNames = generateButtonTertiaryContainerClassNames;
85
- /**
86
- * Generates Tailwind class names for a tertiary button's text styling based on its state.
87
- *
88
- * This function determines the appropriate text color class name for a tertiary button
89
- * by evaluating the current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).
90
- * The returned class name dynamically reflects the button's configuration.
91
- *
92
- * @param isPressed - Indicates whether the button is currently being pressed.
93
- * @param isDanger - Indicates whether the button is in a "danger" state.
94
- * @param isInverse - Indicates whether the button is using an "inverse" theme.
95
- * @param isLoading - Indicates whether the button is in a loading state.
96
- * @returns A string containing the Tailwind class name for the button's text color.
97
- *
98
- * Example:
99
- * ```
100
- * const classNames = generateButtonTertiaryTextClassNames({
101
- * isPressed: true,
102
- * isDanger: true,
103
- * isInverse: false,
104
- * isLoading: false,
105
- * });
106
- *
107
- * console.log(classNames);
108
- * // Output: "text-error-defaultPressed"
109
- *
110
- * const defaultClassNames = generateButtonTertiaryTextClassNames({});
111
- *
112
- * console.log(defaultClassNames);
113
- * // Output: "text-primary-default"
114
- * ```
115
- *
116
- * State Priorities:
117
- * 1. If `isInverse` and `isDanger` are true, the text color is determined dynamically based on `isPressed` or `isLoading`.
118
- * 2. If only `isDanger` is true, the text color defaults to `text-error-default` or `text-error-defaultPressed` depending on the state.
119
- * 3. If only `isInverse` is true, the text color is `text-primary-inverse`.
120
- * 4. If none of the above states are true, the text color defaults to `text-primary-default`.
121
- */
122
- const generateButtonTertiaryTextClassNames = ({ isPressed = false, isDanger = false, isInverse = false, isLoading = false, }) => {
123
- let textColor;
124
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
125
- const isPressedOrLoading = isPressed || isLoading;
126
- if (isInverse && isDanger) {
127
- textColor = isPressedOrLoading
128
- ? 'text-error-defaultPressed'
129
- : 'text-error-default';
130
- }
131
- else if (isDanger) {
132
- textColor = isPressedOrLoading
133
- ? 'text-error-defaultPressed'
134
- : 'text-error-default';
135
- }
136
- else if (isInverse) {
137
- textColor = 'text-primary-inverse';
138
- }
139
- else {
140
- textColor = isPressedOrLoading
141
- ? 'text-primary-defaultPressed'
142
- : 'text-primary-default';
143
- }
144
- return `${textColor}`;
145
- };
146
- exports.generateButtonTertiaryTextClassNames = generateButtonTertiaryTextClassNames;
147
- //# sourceMappingURL=ButtonTertiary.utilities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonTertiary.utilities.js","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACI,MAAM,yCAAyC,GAAG,CAAC,EACxD,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,GAGjB,EAAU,EAAE;IACX,IAAI,eAAe,EAAE,gBAAgB,CAAC;IACtC,IAAI,gBAAgB,GAAG,UAAU,CAAC;IAElC,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAElD,IAAI,SAAS,IAAI,QAAQ,EAAE;QACzB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,uBAAuB,CAAC;QAC5B,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,kCAAkC;YACpC,CAAC,CAAC,2BAA2B,CAAC;KACjC;SAAM,IAAI,QAAQ,EAAE;QACnB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,wBAAwB,CAAC;QAC5C,gBAAgB,GAAG,gBAAgB,CAAC;KACrC;SAAM;QACL,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;IAED,OAAO,GAAG,eAAe,IAAI,gBAAgB,IAAI,gBAAgB,IAAI,WAAW,EAAE,CAAC;AACrF,CAAC,CAAC;AA5CW,QAAA,yCAAyC,6CA4CpD;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACI,MAAM,oCAAoC,GAAG,CAAC,EACnD,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,GAGlB,EAAU,EAAE;IACX,IAAI,SAAS,CAAC;IACd,wEAAwE;IACxE,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAClD,IAAI,SAAS,IAAI,QAAQ,EAAE;QACzB,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,QAAQ,EAAE;QACnB,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,SAAS,EAAE;QACpB,SAAS,GAAG,sBAAsB,CAAC;KACpC;SAAM;QACL,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,6BAA6B;YAC/B,CAAC,CAAC,sBAAsB,CAAC;KAC5B;IAED,OAAO,GAAG,SAAS,EAAE,CAAC;AACxB,CAAC,CAAC;AA5BW,QAAA,oCAAoC,wCA4B/C","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\n/**\n * Generates Tailwind class names for a tertiary button's container based on its state.\n *\n * This function calculates the background, border color, and border width styles dynamically\n * depending on the button's state (`isPressed`, `isDanger`, `isInverse`, `isLoading`). It also\n * allows additional Tailwind classes to be appended using the `twClassName` parameter.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isDanger - Indicates whether the button is in a \"danger\" state.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A string containing the combined Tailwind class names for the container's background,\n * border styles, and any additional classes.\n *\n * Example:\n * ```\n * const classNames = generateButtonTertiaryContainerClassNames({\n * isPressed: true,\n * isDanger: true,\n * isInverse: false,\n * isLoading: false,\n * twClassName: 'rounded-full',\n * });\n *\n * console.log(classNames);\n * // Output: \"bg-error-mutedPressed border-0 border-error-mutedPressed rounded-full\"\n *\n * const inverseClassNames = generateButtonTertiaryContainerClassNames({\n * isInverse: true,\n * twClassName: 'rounded-lg',\n * });\n *\n * console.log(inverseClassNames);\n * // Output: \"bg-transparent border-[1.5px] border-primary-inverse rounded-lg\"\n * ```\n *\n * State Priorities:\n * 1. If `isInverse` and `isDanger` are true, styles are dynamically determined based on `isPressed` or `isLoading`.\n * 2. If only `isDanger` is true, the styles reflect error-related colors with no borders.\n * 3. If only `isInverse` is true, a border width is added along with inverse-specific styles.\n * 4. If none of the above states are true, default styles are applied for a non-danger, non-inverse tertiary button.\n */\nexport const generateButtonTertiaryContainerClassNames = ({\n isPressed = false,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n}: Partial<ButtonTertiaryProps> & {\n isPressed?: boolean;\n}): string => {\n let backgroundStyle, borderColorStyle;\n let borderWidthStyle = 'border-0';\n\n const isPressedOrLoading = isPressed || isLoading;\n\n if (isInverse && isDanger) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-defaultPressed'\n : 'bg-background-default';\n borderColorStyle = isPressedOrLoading\n ? 'border-background-defaultPressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-error-mutedPressed'\n : 'bg-transparent';\n borderColorStyle = isPressedOrLoading\n ? 'border-error-mutedPressed'\n : 'border-transparent';\n } else if (isInverse) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n borderColorStyle = 'border-primary-inverse';\n borderWidthStyle = 'border-[1.5px]';\n } else {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n borderColorStyle = isPressedOrLoading\n ? 'border-background-pressed'\n : 'border-transparent';\n }\n\n return `${backgroundStyle} ${borderWidthStyle} ${borderColorStyle} ${twClassName}`;\n};\n\n/**\n * Generates Tailwind class names for a tertiary button's text styling based on its state.\n *\n * This function determines the appropriate text color class name for a tertiary button\n * by evaluating the current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).\n * The returned class name dynamically reflects the button's configuration.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isDanger - Indicates whether the button is in a \"danger\" state.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @returns A string containing the Tailwind class name for the button's text color.\n *\n * Example:\n * ```\n * const classNames = generateButtonTertiaryTextClassNames({\n * isPressed: true,\n * isDanger: true,\n * isInverse: false,\n * isLoading: false,\n * });\n *\n * console.log(classNames);\n * // Output: \"text-error-defaultPressed\"\n *\n * const defaultClassNames = generateButtonTertiaryTextClassNames({});\n *\n * console.log(defaultClassNames);\n * // Output: \"text-primary-default\"\n * ```\n *\n * State Priorities:\n * 1. If `isInverse` and `isDanger` are true, the text color is determined dynamically based on `isPressed` or `isLoading`.\n * 2. If only `isDanger` is true, the text color defaults to `text-error-default` or `text-error-defaultPressed` depending on the state.\n * 3. If only `isInverse` is true, the text color is `text-primary-inverse`.\n * 4. If none of the above states are true, the text color defaults to `text-primary-default`.\n */\nexport const generateButtonTertiaryTextClassNames = ({\n isPressed = false,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n}: Partial<ButtonTertiaryProps> & {\n isPressed?: boolean;\n}): string => {\n let textColor;\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n const isPressedOrLoading = isPressed || isLoading;\n if (isInverse && isDanger) {\n textColor = isPressedOrLoading\n ? 'text-error-defaultPressed'\n : 'text-error-default';\n } else if (isDanger) {\n textColor = isPressedOrLoading\n ? 'text-error-defaultPressed'\n : 'text-error-default';\n } else if (isInverse) {\n textColor = 'text-primary-inverse';\n } else {\n textColor = isPressedOrLoading\n ? 'text-primary-defaultPressed'\n : 'text-primary-default';\n }\n\n return `${textColor}`;\n};\n"]}
@@ -1,55 +0,0 @@
1
- import type { IconColor } from '../Icon';
2
- import type { ButtonIconProps } from './ButtonIcon.types';
3
- /**
4
- * Generates a Tailwind class name string for the icon button container.
5
- *
6
- * This function constructs a class name string based on the button icon's `size`,
7
- * `isDisabled`, `isPressed`, `isFloating`, and optional additional Tailwind class names.
8
- *
9
- * @param isDisabled - Determines whether the button is disabled, affecting opacity.
10
- * @param isPressed - Determines whether the button is pressed, affecting background color.
11
- * @param isFloating - Determines whether the button should have a floating, rounded appearance.
12
- * @param size - The size of the button in pixels.
13
- * @param twClassName - Additional Tailwind class names for customization.
14
- * @returns A string of Tailwind class names representing the button icon's container styles.
15
- *
16
- * Example:
17
- * ```
18
- * const classNames = generateButtonIconContainerClassNames({
19
- * isDisabled: true,
20
- * isPressed: false,
21
- * isFloating: true,
22
- * size: 48,
23
- * twClassName: 'border border-blue-500',
24
- * });
25
- *
26
- * console.log(classNames);
27
- * // Output: "items-center justify-center rounded-full h-[48px] w-[48px] bg-icon-default opacity-50 border border-blue-500"
28
- * ```
29
- */
30
- export declare const generateButtonIconContainerClassNames: ({ isDisabled, isPressed, isFloating, size, twClassName, }: Partial<ButtonIconProps> & {
31
- isPressed?: boolean | undefined;
32
- }) => string;
33
- /**
34
- * Generates a Tailwind class name string for the icon color of a button icon.
35
- *
36
- * This function determines the appropriate icon color class based on whether
37
- * the button icon is using an inverse theme or is floating.
38
- *
39
- * @param isInverse - Determines if the button icon should use an inverse theme, affecting text color.
40
- * @param isFloating - Determines if the button icon is floating, affecting text color.
41
- * @returns A string representing the Tailwind class name for the button icon color.
42
- *
43
- * Example:
44
- * ```
45
- * const classNames = generateButtonIconIconColorClassNames({
46
- * isInverse: true,
47
- * isFloating: false,
48
- * });
49
- *
50
- * console.log(classNames);
51
- * // Output: "text-primary-inverse"
52
- * ```
53
- */
54
- export declare const generateButtonIconIconColorClassNames: ({ isInverse, isFloating, }: Partial<ButtonIconProps>) => IconColor;
55
- //# sourceMappingURL=ButtonIcon.utilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonIcon.utilities.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.utilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,qCAAqC;;MAQ9C,MAgBH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qCAAqC,+BAG/C,QAAQ,eAAe,CAAC,KAAG,SAK7B,CAAC"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateButtonIconIconColorClassNames = exports.generateButtonIconContainerClassNames = void 0;
4
- const ButtonIcon_constants_1 = require("./ButtonIcon.constants");
5
- /**
6
- * Generates a Tailwind class name string for the icon button container.
7
- *
8
- * This function constructs a class name string based on the button icon's `size`,
9
- * `isDisabled`, `isPressed`, `isFloating`, and optional additional Tailwind class names.
10
- *
11
- * @param isDisabled - Determines whether the button is disabled, affecting opacity.
12
- * @param isPressed - Determines whether the button is pressed, affecting background color.
13
- * @param isFloating - Determines whether the button should have a floating, rounded appearance.
14
- * @param size - The size of the button in pixels.
15
- * @param twClassName - Additional Tailwind class names for customization.
16
- * @returns A string of Tailwind class names representing the button icon's container styles.
17
- *
18
- * Example:
19
- * ```
20
- * const classNames = generateButtonIconContainerClassNames({
21
- * isDisabled: true,
22
- * isPressed: false,
23
- * isFloating: true,
24
- * size: 48,
25
- * twClassName: 'border border-blue-500',
26
- * });
27
- *
28
- * console.log(classNames);
29
- * // Output: "items-center justify-center rounded-full h-[48px] w-[48px] bg-icon-default opacity-50 border border-blue-500"
30
- * ```
31
- */
32
- const generateButtonIconContainerClassNames = ({ isDisabled = ButtonIcon_constants_1.DEFAULT_BUTTONICON_PROPS.isDisabled, isPressed = false, isFloating = ButtonIcon_constants_1.DEFAULT_BUTTONICON_PROPS.isFloating, size = ButtonIcon_constants_1.DEFAULT_BUTTONICON_PROPS.size, twClassName = '', }) => {
33
- const baseStyle = 'items-center justify-center';
34
- const backgroundStyle = isFloating ? 'rounded-full' : 'rounded-sm';
35
- const sizeStyle = `h-[${size}px] w-[${size}px]`;
36
- let backgroundColor;
37
- if (isFloating) {
38
- backgroundColor = `bg-icon-default`;
39
- }
40
- else {
41
- backgroundColor = isPressed ? 'bg-background-pressed' : 'bg-transparent';
42
- }
43
- const opacityStyle = `opacity-${isDisabled ? 50 : 100}`;
44
- return `${baseStyle} ${backgroundStyle} ${sizeStyle} ${backgroundColor} ${opacityStyle} ${twClassName}`;
45
- };
46
- exports.generateButtonIconContainerClassNames = generateButtonIconContainerClassNames;
47
- /**
48
- * Generates a Tailwind class name string for the icon color of a button icon.
49
- *
50
- * This function determines the appropriate icon color class based on whether
51
- * the button icon is using an inverse theme or is floating.
52
- *
53
- * @param isInverse - Determines if the button icon should use an inverse theme, affecting text color.
54
- * @param isFloating - Determines if the button icon is floating, affecting text color.
55
- * @returns A string representing the Tailwind class name for the button icon color.
56
- *
57
- * Example:
58
- * ```
59
- * const classNames = generateButtonIconIconColorClassNames({
60
- * isInverse: true,
61
- * isFloating: false,
62
- * });
63
- *
64
- * console.log(classNames);
65
- * // Output: "text-primary-inverse"
66
- * ```
67
- */
68
- const generateButtonIconIconColorClassNames = ({ isInverse = false, isFloating = ButtonIcon_constants_1.DEFAULT_BUTTONICON_PROPS.isFloating, }) => {
69
- const iconColor = isInverse || isFloating ? 'text-primary-inverse' : 'text-icon-default';
70
- return `${iconColor}`;
71
- };
72
- exports.generateButtonIconIconColorClassNames = generateButtonIconIconColorClassNames;
73
- //# sourceMappingURL=ButtonIcon.utilities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonIcon.utilities.js","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.utilities.ts"],"names":[],"mappings":";;;AAGA,iEAAkE;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,MAAM,qCAAqC,GAAG,CAAC,EACpD,UAAU,GAAG,+CAAwB,CAAC,UAAU,EAChD,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,+CAAwB,CAAC,UAAU,EAChD,IAAI,GAAG,+CAAwB,CAAC,IAAI,EACpC,WAAW,GAAG,EAAE,GAGjB,EAAU,EAAE;IACX,MAAM,SAAS,GAAG,6BAA6B,CAAC;IAChD,MAAM,eAAe,GAAG,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC;IACnE,MAAM,SAAS,GAAG,MAAM,IAAc,UAAU,IAAc,KAAK,CAAC;IAEpE,IAAI,eAAe,CAAC;IAEpB,IAAI,UAAU,EAAE;QACd,eAAe,GAAG,iBAAiB,CAAC;KACrC;SAAM;QACL,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,gBAAgB,CAAC;KAC1E;IAED,MAAM,YAAY,GAAG,WAAW,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAExD,OAAO,GAAG,SAAS,IAAI,eAAe,IAAI,SAAS,IAAI,eAAe,IAAI,YAAY,IAAI,WAAW,EAAE,CAAC;AAC1G,CAAC,CAAC;AAxBW,QAAA,qCAAqC,yCAwBhD;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,MAAM,qCAAqC,GAAG,CAAC,EACpD,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,+CAAwB,CAAC,UAAU,GACvB,EAAa,EAAE;IACxC,MAAM,SAAS,GACb,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAEzE,OAAO,GAAG,SAAS,EAAe,CAAC;AACrC,CAAC,CAAC;AARW,QAAA,qCAAqC,yCAQhD","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport type { IconColor } from '../Icon';\nimport { DEFAULT_BUTTONICON_PROPS } from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\n/**\n * Generates a Tailwind class name string for the icon button container.\n *\n * This function constructs a class name string based on the button icon's `size`,\n * `isDisabled`, `isPressed`, `isFloating`, and optional additional Tailwind class names.\n *\n * @param isDisabled - Determines whether the button is disabled, affecting opacity.\n * @param isPressed - Determines whether the button is pressed, affecting background color.\n * @param isFloating - Determines whether the button should have a floating, rounded appearance.\n * @param size - The size of the button in pixels.\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A string of Tailwind class names representing the button icon's container styles.\n *\n * Example:\n * ```\n * const classNames = generateButtonIconContainerClassNames({\n * isDisabled: true,\n * isPressed: false,\n * isFloating: true,\n * size: 48,\n * twClassName: 'border border-blue-500',\n * });\n *\n * console.log(classNames);\n * // Output: \"items-center justify-center rounded-full h-[48px] w-[48px] bg-icon-default opacity-50 border border-blue-500\"\n * ```\n */\nexport const generateButtonIconContainerClassNames = ({\n isDisabled = DEFAULT_BUTTONICON_PROPS.isDisabled,\n isPressed = false,\n isFloating = DEFAULT_BUTTONICON_PROPS.isFloating,\n size = DEFAULT_BUTTONICON_PROPS.size,\n twClassName = '',\n}: Partial<ButtonIconProps> & {\n isPressed?: boolean;\n}): string => {\n const baseStyle = 'items-center justify-center';\n const backgroundStyle = isFloating ? 'rounded-full' : 'rounded-sm';\n const sizeStyle = `h-[${size as string}px] w-[${size as string}px]`;\n\n let backgroundColor;\n\n if (isFloating) {\n backgroundColor = `bg-icon-default`;\n } else {\n backgroundColor = isPressed ? 'bg-background-pressed' : 'bg-transparent';\n }\n\n const opacityStyle = `opacity-${isDisabled ? 50 : 100}`;\n\n return `${baseStyle} ${backgroundStyle} ${sizeStyle} ${backgroundColor} ${opacityStyle} ${twClassName}`;\n};\n\n/**\n * Generates a Tailwind class name string for the icon color of a button icon.\n *\n * This function determines the appropriate icon color class based on whether\n * the button icon is using an inverse theme or is floating.\n *\n * @param isInverse - Determines if the button icon should use an inverse theme, affecting text color.\n * @param isFloating - Determines if the button icon is floating, affecting text color.\n * @returns A string representing the Tailwind class name for the button icon color.\n *\n * Example:\n * ```\n * const classNames = generateButtonIconIconColorClassNames({\n * isInverse: true,\n * isFloating: false,\n * });\n *\n * console.log(classNames);\n * // Output: \"text-primary-inverse\"\n * ```\n */\nexport const generateButtonIconIconColorClassNames = ({\n isInverse = false,\n isFloating = DEFAULT_BUTTONICON_PROPS.isFloating,\n}: Partial<ButtonIconProps>): IconColor => {\n const iconColor =\n isInverse || isFloating ? 'text-primary-inverse' : 'text-icon-default';\n\n return `${iconColor}` as IconColor;\n};\n"]}
@@ -1,7 +0,0 @@
1
- import type { IconProps } from './Icon.types';
2
- import { IconName, IconSize, IconColor } from './Icon.types';
3
- export declare const DEFAULT_ICON_ICONSIZE = IconSize.Md;
4
- export declare const DEFAULT_ICON_ICONCOLOR = IconColor.IconDefault;
5
- export declare const DEFAULT_ICON_ICONNAME = IconName.Add;
6
- export declare const SAMPLE_ICON_PROPS: IconProps;
7
- //# sourceMappingURL=Icon.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.constants.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG7D,eAAO,MAAM,qBAAqB,cAAc,CAAC;AACjD,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAGlD,eAAO,MAAM,iBAAiB,EAAE,SAI/B,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SAMPLE_ICON_PROPS = exports.DEFAULT_ICON_ICONNAME = exports.DEFAULT_ICON_ICONCOLOR = exports.DEFAULT_ICON_ICONSIZE = void 0;
4
- const Icon_types_1 = require("./Icon.types");
5
- // Defaults
6
- exports.DEFAULT_ICON_ICONSIZE = Icon_types_1.IconSize.Md;
7
- exports.DEFAULT_ICON_ICONCOLOR = Icon_types_1.IconColor.IconDefault;
8
- exports.DEFAULT_ICON_ICONNAME = Icon_types_1.IconName.Add;
9
- // Sample consts
10
- exports.SAMPLE_ICON_PROPS = {
11
- name: exports.DEFAULT_ICON_ICONNAME,
12
- size: exports.DEFAULT_ICON_ICONSIZE,
13
- color: exports.DEFAULT_ICON_ICONCOLOR,
14
- };
15
- //# sourceMappingURL=Icon.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.constants.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":";;;AAGA,6CAA6D;AAE7D,WAAW;AACE,QAAA,qBAAqB,GAAG,qBAAQ,CAAC,EAAE,CAAC;AACpC,QAAA,sBAAsB,GAAG,sBAAS,CAAC,WAAW,CAAC;AAC/C,QAAA,qBAAqB,GAAG,qBAAQ,CAAC,GAAG,CAAC;AAElD,gBAAgB;AACH,QAAA,iBAAiB,GAAc;IAC1C,IAAI,EAAE,6BAAqB;IAC3B,IAAI,EAAE,6BAAqB;IAC3B,KAAK,EAAE,8BAAsB;CAC9B,CAAC","sourcesContent":["/* eslint-disable import/prefer-default-export */\n// Internal dependencies.\nimport type { IconProps } from './Icon.types';\nimport { IconName, IconSize, IconColor } from './Icon.types';\n\n// Defaults\nexport const DEFAULT_ICON_ICONSIZE = IconSize.Md;\nexport const DEFAULT_ICON_ICONCOLOR = IconColor.IconDefault;\nexport const DEFAULT_ICON_ICONNAME = IconName.Add;\n\n// Sample consts\nexport const SAMPLE_ICON_PROPS: IconProps = {\n name: DEFAULT_ICON_ICONNAME,\n size: DEFAULT_ICON_ICONSIZE,\n color: DEFAULT_ICON_ICONCOLOR,\n};\n"]}
@@ -1,55 +0,0 @@
1
- import type { TextButtonProps } from './TextButton.types';
2
- /**
3
- * Generates a Tailwind class name for the text button container based on its state and optional additional classes.
4
- *
5
- * This function computes the appropriate background class name for a text button's container, considering its
6
- * `isPressed` and `isLoading` states. Additional Tailwind class names can also be appended using the `twClassName` parameter.
7
- *
8
- * @param isPressed - Indicates whether the button is currently being pressed.
9
- * @param isLoading - Indicates whether the button is in a loading state.
10
- * @param isDisabled - Indicates whether the button is in a disabled state.
11
- * @param twClassName - Additional Tailwind class names for customization.
12
- * @returns A combined string of Tailwind class names for the container's background styling.
13
- *
14
- * Example:
15
- * ```
16
- * const classNames = generateTextButtonContainerClassNames({
17
- * isPressed: true,
18
- * isLoading: false,
19
- * twClassName: 'rounded-full',
20
- * });
21
- *
22
- * console.log(classNames);
23
- * // Output: "bg-background-pressed rounded-full"
24
- * ```
25
- */
26
- export declare const generateTextButtonContainerClassNames: ({ isPressed, isLoading, isDisabled, twClassName, }: Partial<TextButtonProps> & {
27
- isPressed?: boolean | undefined;
28
- }) => string;
29
- /**
30
- * Generates a Tailwind class name for the text button's text based on its state.
31
- *
32
- * This function computes the appropriate text color and style class names for a text button,
33
- * considering its `isPressed`, `isInverse`, and `isLoading` states.
34
- *
35
- * @param isPressed - Indicates whether the button is currently being pressed.
36
- * @param isInverse - Indicates whether the button is using an "inverse" theme.
37
- * @param isLoading - Indicates whether the button is in a loading state.
38
- * @returns A combined string of Tailwind class names for the text's color and style.
39
- *
40
- * Example:
41
- * ```
42
- * const classNames = generateTextButtonTextClassNames({
43
- * isPressed: true,
44
- * isInverse: false,
45
- * isLoading: false,
46
- * });
47
- *
48
- * console.log(classNames);
49
- * // Output: "text-primary-defaultPressed underline"
50
- * ```
51
- */
52
- export declare const generateTextButtonTextClassNames: ({ isPressed, isInverse, isLoading, }: Partial<TextButtonProps> & {
53
- isPressed?: boolean | undefined;
54
- }) => string;
55
- //# sourceMappingURL=TextButton.utilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextButton.utilities.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.utilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,qCAAqC;;MAO9C,MAQH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,gCAAgC;;MAMzC,MAeH,CAAC"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateTextButtonTextClassNames = exports.generateTextButtonContainerClassNames = void 0;
4
- /**
5
- * Generates a Tailwind class name for the text button container based on its state and optional additional classes.
6
- *
7
- * This function computes the appropriate background class name for a text button's container, considering its
8
- * `isPressed` and `isLoading` states. Additional Tailwind class names can also be appended using the `twClassName` parameter.
9
- *
10
- * @param isPressed - Indicates whether the button is currently being pressed.
11
- * @param isLoading - Indicates whether the button is in a loading state.
12
- * @param isDisabled - Indicates whether the button is in a disabled state.
13
- * @param twClassName - Additional Tailwind class names for customization.
14
- * @returns A combined string of Tailwind class names for the container's background styling.
15
- *
16
- * Example:
17
- * ```
18
- * const classNames = generateTextButtonContainerClassNames({
19
- * isPressed: true,
20
- * isLoading: false,
21
- * twClassName: 'rounded-full',
22
- * });
23
- *
24
- * console.log(classNames);
25
- * // Output: "bg-background-pressed rounded-full"
26
- * ```
27
- */
28
- const generateTextButtonContainerClassNames = ({ isPressed = false, isLoading = false, isDisabled = false, twClassName = '', }) => {
29
- const isPressedOrLoading = isPressed || isLoading;
30
- const backgroundStyle = isPressedOrLoading
31
- ? 'bg-background-pressed'
32
- : 'bg-transparent';
33
- const opacityStyle = `opacity-${isDisabled ? 50 : 100}`;
34
- return `${backgroundStyle} ${opacityStyle} ${twClassName}`;
35
- };
36
- exports.generateTextButtonContainerClassNames = generateTextButtonContainerClassNames;
37
- /**
38
- * Generates a Tailwind class name for the text button's text based on its state.
39
- *
40
- * This function computes the appropriate text color and style class names for a text button,
41
- * considering its `isPressed`, `isInverse`, and `isLoading` states.
42
- *
43
- * @param isPressed - Indicates whether the button is currently being pressed.
44
- * @param isInverse - Indicates whether the button is using an "inverse" theme.
45
- * @param isLoading - Indicates whether the button is in a loading state.
46
- * @returns A combined string of Tailwind class names for the text's color and style.
47
- *
48
- * Example:
49
- * ```
50
- * const classNames = generateTextButtonTextClassNames({
51
- * isPressed: true,
52
- * isInverse: false,
53
- * isLoading: false,
54
- * });
55
- *
56
- * console.log(classNames);
57
- * // Output: "text-primary-defaultPressed underline"
58
- * ```
59
- */
60
- const generateTextButtonTextClassNames = ({ isPressed = false, isInverse = false, isLoading = false, }) => {
61
- let textColor, textStyle;
62
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
63
- const isPressedOrLoading = isPressed || isLoading;
64
- if (isInverse) {
65
- textColor = 'text-primary-inverse';
66
- textStyle = 'underline';
67
- }
68
- else {
69
- textColor = isPressedOrLoading
70
- ? 'text-primary-defaultPressed'
71
- : 'text-primary-default';
72
- textStyle = isPressedOrLoading ? 'underline' : 'no-underline';
73
- }
74
- return `${textColor} ${textStyle}`;
75
- };
76
- exports.generateTextButtonTextClassNames = generateTextButtonTextClassNames;
77
- //# sourceMappingURL=TextButton.utilities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextButton.utilities.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.utilities.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,MAAM,qCAAqC,GAAG,CAAC,EACpD,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,EAAE,GAGjB,EAAU,EAAE;IACX,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAClD,MAAM,eAAe,GAAG,kBAAkB;QACxC,CAAC,CAAC,uBAAuB;QACzB,CAAC,CAAC,gBAAgB,CAAC;IACrB,MAAM,YAAY,GAAG,WAAW,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAExD,OAAO,GAAG,eAAe,IAAI,YAAY,IAAI,WAAW,EAAE,CAAC;AAC7D,CAAC,CAAC;AAfW,QAAA,qCAAqC,yCAehD;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACI,MAAM,gCAAgC,GAAG,CAAC,EAC/C,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,GAGlB,EAAU,EAAE;IACX,IAAI,SAAS,EAAE,SAAS,CAAC;IACzB,wEAAwE;IACxE,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAClD,IAAI,SAAS,EAAE;QACb,SAAS,GAAG,sBAAsB,CAAC;QACnC,SAAS,GAAG,WAAW,CAAC;KACzB;SAAM;QACL,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,6BAA6B;YAC/B,CAAC,CAAC,sBAAsB,CAAC;QAC3B,SAAS,GAAG,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC;KAC/D;IAED,OAAO,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC;AACrC,CAAC,CAAC;AArBW,QAAA,gCAAgC,oCAqB3C","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport type { TextButtonProps } from './TextButton.types';\n\n/**\n * Generates a Tailwind class name for the text button container based on its state and optional additional classes.\n *\n * This function computes the appropriate background class name for a text button's container, considering its\n * `isPressed` and `isLoading` states. Additional Tailwind class names can also be appended using the `twClassName` parameter.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @param isDisabled - Indicates whether the button is in a disabled state.\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A combined string of Tailwind class names for the container's background styling.\n *\n * Example:\n * ```\n * const classNames = generateTextButtonContainerClassNames({\n * isPressed: true,\n * isLoading: false,\n * twClassName: 'rounded-full',\n * });\n *\n * console.log(classNames);\n * // Output: \"bg-background-pressed rounded-full\"\n * ```\n */\nexport const generateTextButtonContainerClassNames = ({\n isPressed = false,\n isLoading = false,\n isDisabled = false,\n twClassName = '',\n}: Partial<TextButtonProps> & {\n isPressed?: boolean;\n}): string => {\n const isPressedOrLoading = isPressed || isLoading;\n const backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n const opacityStyle = `opacity-${isDisabled ? 50 : 100}`;\n\n return `${backgroundStyle} ${opacityStyle} ${twClassName}`;\n};\n\n/**\n * Generates a Tailwind class name for the text button's text based on its state.\n *\n * This function computes the appropriate text color and style class names for a text button,\n * considering its `isPressed`, `isInverse`, and `isLoading` states.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @returns A combined string of Tailwind class names for the text's color and style.\n *\n * Example:\n * ```\n * const classNames = generateTextButtonTextClassNames({\n * isPressed: true,\n * isInverse: false,\n * isLoading: false,\n * });\n *\n * console.log(classNames);\n * // Output: \"text-primary-defaultPressed underline\"\n * ```\n */\nexport const generateTextButtonTextClassNames = ({\n isPressed = false,\n isInverse = false,\n isLoading = false,\n}: Partial<TextButtonProps> & {\n isPressed?: boolean;\n}): string => {\n let textColor, textStyle;\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n const isPressedOrLoading = isPressed || isLoading;\n if (isInverse) {\n textColor = 'text-primary-inverse';\n textStyle = 'underline';\n } else {\n textColor = isPressedOrLoading\n ? 'text-primary-defaultPressed'\n : 'text-primary-default';\n textStyle = isPressedOrLoading ? 'underline' : 'no-underline';\n }\n\n return `${textColor} ${textStyle}`;\n};\n"]}
@@ -1,6 +0,0 @@
1
- import type { AvatarBaseProps } from './AvatarBase.types';
2
- import { AvatarBaseSize } from '../../shared/enums';
3
- export declare const TWCLASSMAP_AVATARBASE_SIZE_SHAPE: Record<AvatarBaseSize, string>;
4
- export declare const MAP_AVATARBASE_SIZE_BORDERWIDTH: Record<AvatarBaseSize, number>;
5
- export declare const DEFAULT_AVATARBASE_PROPS: Required<Pick<AvatarBaseProps, 'size' | 'shape' | 'fallbackTextProps' | 'hasBorder' | 'hasSolidBackgroundColor'>>;
6
- //# sourceMappingURL=AvatarBase.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarBase.constants.d.ts","sourceRoot":"","sources":["../../../src/primitives/AvatarBase/AvatarBase.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AAGrE,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAOzE,CAAC;AACJ,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAM1E,CAAC;AAGF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAC7C,IAAI,CACF,eAAe,EACb,MAAM,GACN,OAAO,GACP,mBAAmB,GACnB,WAAW,GACX,yBAAyB,CAC5B,CAYF,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_AVATARBASE_PROPS = exports.MAP_AVATARBASE_SIZE_BORDERWIDTH = exports.TWCLASSMAP_AVATARBASE_SIZE_SHAPE = void 0;
4
- const Text_1 = require("../../components/Text");
5
- const enums_1 = require("../../shared/enums");
6
- // Mappings
7
- exports.TWCLASSMAP_AVATARBASE_SIZE_SHAPE = {
8
- [enums_1.AvatarBaseSize.Xs]: 'rounded-sm',
9
- [enums_1.AvatarBaseSize.Sm]: 'rounded-md',
10
- [enums_1.AvatarBaseSize.Md]: 'rounded-lg',
11
- [enums_1.AvatarBaseSize.Lg]: 'rounded-[10px]',
12
- [enums_1.AvatarBaseSize.Xl]: 'rounded-xl',
13
- };
14
- exports.MAP_AVATARBASE_SIZE_BORDERWIDTH = {
15
- [enums_1.AvatarBaseSize.Xs]: 1,
16
- [enums_1.AvatarBaseSize.Sm]: 1,
17
- [enums_1.AvatarBaseSize.Md]: 1,
18
- [enums_1.AvatarBaseSize.Lg]: 2,
19
- [enums_1.AvatarBaseSize.Xl]: 2,
20
- };
21
- // Defaults
22
- exports.DEFAULT_AVATARBASE_PROPS = {
23
- size: enums_1.AvatarBaseSize.Md,
24
- shape: enums_1.AvatarBaseShape.Circle,
25
- fallbackTextProps: {
26
- color: Text_1.TextColor.TextMuted,
27
- variant: Text_1.TextVariant.BodySm,
28
- fontWeight: Text_1.FontWeight.Medium,
29
- twClassName: 'uppercase',
30
- },
31
- hasBorder: false,
32
- hasSolidBackgroundColor: false,
33
- };
34
- //# sourceMappingURL=AvatarBase.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarBase.constants.js","sourceRoot":"","sources":["../../../src/primitives/AvatarBase/AvatarBase.constants.ts"],"names":[],"mappings":";;;AACA,gDAA2E;AAC3E,8CAAqE;AAErE,WAAW;AACE,QAAA,gCAAgC,GAC3C;IACE,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;IACjC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;IACjC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;IACjC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,gBAAgB;IACrC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;CAClC,CAAC;AACS,QAAA,+BAA+B,GAAmC;IAC7E,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,CAAC;IACtB,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,CAAC;IACtB,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,CAAC;IACtB,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,CAAC;IACtB,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,CAAC;CACvB,CAAC;AAEF,WAAW;AACE,QAAA,wBAAwB,GASjC;IACF,IAAI,EAAE,sBAAc,CAAC,EAAE;IACvB,KAAK,EAAE,uBAAe,CAAC,MAAM;IAC7B,iBAAiB,EAAE;QACjB,KAAK,EAAE,gBAAS,CAAC,SAAS;QAC1B,OAAO,EAAE,kBAAW,CAAC,MAAM;QAC3B,UAAU,EAAE,iBAAU,CAAC,MAAM;QAC7B,WAAW,EAAE,WAAW;KACzB;IACD,SAAS,EAAE,KAAK;IAChB,uBAAuB,EAAE,KAAK;CAC/B,CAAC","sourcesContent":["import type { AvatarBaseProps } from './AvatarBase.types';\nimport { TextColor, TextVariant, FontWeight } from '../../components/Text';\nimport { AvatarBaseSize, AvatarBaseShape } from '../../shared/enums';\n\n// Mappings\nexport const TWCLASSMAP_AVATARBASE_SIZE_SHAPE: Record<AvatarBaseSize, string> =\n {\n [AvatarBaseSize.Xs]: 'rounded-sm',\n [AvatarBaseSize.Sm]: 'rounded-md',\n [AvatarBaseSize.Md]: 'rounded-lg',\n [AvatarBaseSize.Lg]: 'rounded-[10px]',\n [AvatarBaseSize.Xl]: 'rounded-xl',\n };\nexport const MAP_AVATARBASE_SIZE_BORDERWIDTH: Record<AvatarBaseSize, number> = {\n [AvatarBaseSize.Xs]: 1,\n [AvatarBaseSize.Sm]: 1,\n [AvatarBaseSize.Md]: 1,\n [AvatarBaseSize.Lg]: 2,\n [AvatarBaseSize.Xl]: 2,\n};\n\n// Defaults\nexport const DEFAULT_AVATARBASE_PROPS: Required<\n Pick<\n AvatarBaseProps,\n | 'size'\n | 'shape'\n | 'fallbackTextProps'\n | 'hasBorder'\n | 'hasSolidBackgroundColor'\n >\n> = {\n size: AvatarBaseSize.Md,\n shape: AvatarBaseShape.Circle,\n fallbackTextProps: {\n color: TextColor.TextMuted,\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n twClassName: 'uppercase',\n },\n hasBorder: false,\n hasSolidBackgroundColor: false,\n};\n"]}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { AvatarBaseProps } from './AvatarBase.types';
3
- declare const AvatarBase: ({ children, size, shape, fallbackText, fallbackTextProps, hasBorder, hasSolidBackgroundColor, twClassName, style, ...props }: AvatarBaseProps) => React.JSX.Element;
4
- export default AvatarBase;
5
- //# sourceMappingURL=AvatarBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarBase.d.ts","sourceRoot":"","sources":["../../../src/primitives/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,QAAA,MAAM,UAAU,iIAWb,eAAe,sBA6BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,55 +0,0 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
30
- const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
31
- const react_1 = __importStar(require("react"));
32
- const react_native_1 = require("react-native");
33
- const Text_1 = __importDefault(require("../../components/Text"));
34
- const AvatarBase_constants_1 = require("./AvatarBase.constants");
35
- const AvatarBase_utilities_1 = require("./AvatarBase.utilities");
36
- const AvatarBase = ({ children, size = AvatarBase_constants_1.DEFAULT_AVATARBASE_PROPS.size, shape = AvatarBase_constants_1.DEFAULT_AVATARBASE_PROPS.shape, fallbackText, fallbackTextProps, hasBorder = AvatarBase_constants_1.DEFAULT_AVATARBASE_PROPS.hasBorder, hasSolidBackgroundColor = AvatarBase_constants_1.DEFAULT_AVATARBASE_PROPS.hasSolidBackgroundColor, twClassName = '', style, ...props }) => {
37
- const tw = (0, design_system_twrnc_preset_1.useTailwind)();
38
- const twContainerClassNames = (0, react_1.useMemo)(() => {
39
- return (0, AvatarBase_utilities_1.generateAvatarBaseContainerClassNames)({
40
- size,
41
- shape,
42
- hasBorder,
43
- hasSolidBackgroundColor,
44
- twClassName,
45
- });
46
- }, [size, shape, hasBorder, twClassName]);
47
- return (<react_native_1.View style={[tw `${twContainerClassNames}`, style]} {...props}>
48
- <react_native_1.View style={tw `bg-background-muted absolute top-0 left-0 bottom-0 right-0`}/>
49
- {fallbackText ? (<Text_1.default {...AvatarBase_constants_1.DEFAULT_AVATARBASE_PROPS.fallbackTextProps} {...fallbackTextProps}>
50
- {fallbackText}
51
- </Text_1.default>) : (children)}
52
- </react_native_1.View>);
53
- };
54
- exports.default = AvatarBase;
55
- //# sourceMappingURL=AvatarBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarBase.js","sourceRoot":"","sources":["../../../src/primitives/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAiE;AACjE,8FAA4E;AAC5E,+CAAuC;AACvC,+CAAoC;AAEpC,iEAAyC;AACzC,iEAAkE;AAElE,iEAA+E;AAE/E,MAAM,UAAU,GAAG,CAAC,EAClB,QAAQ,EACR,IAAI,GAAG,+CAAwB,CAAC,IAAI,EACpC,KAAK,GAAG,+CAAwB,CAAC,KAAK,EACtC,YAAY,EACZ,iBAAiB,EACjB,SAAS,GAAG,+CAAwB,CAAC,SAAS,EAC9C,uBAAuB,GAAG,+CAAwB,CAAC,uBAAuB,EAC1E,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACzC,OAAO,IAAA,4DAAqC,EAAC;YAC3C,IAAI;YACJ,KAAK;YACL,SAAS;YACT,uBAAuB;YACvB,WAAW;SACZ,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IAE1C,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC5D;MAAA,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC,EAAE,CAAA,4DAA4D,CAAC,EAExE;MAAA,CAAC,YAAY,CAAC,CAAC,CAAC,CACd,CAAC,cAAI,CACH,IAAI,+CAAwB,CAAC,iBAAiB,CAAC,CAC/C,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,cAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { View } from 'react-native';\n\nimport Text from '../../components/Text';\nimport { DEFAULT_AVATARBASE_PROPS } from './AvatarBase.constants';\nimport type { AvatarBaseProps } from './AvatarBase.types';\nimport { generateAvatarBaseContainerClassNames } from './AvatarBase.utilities';\n\nconst AvatarBase = ({\n children,\n size = DEFAULT_AVATARBASE_PROPS.size,\n shape = DEFAULT_AVATARBASE_PROPS.shape,\n fallbackText,\n fallbackTextProps,\n hasBorder = DEFAULT_AVATARBASE_PROPS.hasBorder,\n hasSolidBackgroundColor = DEFAULT_AVATARBASE_PROPS.hasSolidBackgroundColor,\n twClassName = '',\n style,\n ...props\n}: AvatarBaseProps) => {\n const tw = useTailwind();\n const twContainerClassNames = useMemo(() => {\n return generateAvatarBaseContainerClassNames({\n size,\n shape,\n hasBorder,\n hasSolidBackgroundColor,\n twClassName,\n });\n }, [size, shape, hasBorder, twClassName]);\n\n return (\n <View style={[tw`${twContainerClassNames}`, style]} {...props}>\n <View\n style={tw`bg-background-muted absolute top-0 left-0 bottom-0 right-0`}\n />\n {fallbackText ? (\n <Text\n {...DEFAULT_AVATARBASE_PROPS.fallbackTextProps}\n {...fallbackTextProps}\n >\n {fallbackText}\n </Text>\n ) : (\n children\n )}\n </View>\n );\n};\n\nexport default AvatarBase;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarBase.types.d.ts","sourceRoot":"","sources":["../../../src/primitives/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAChD;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,SAAS,CAAC"}