@metamask-previews/design-system-react 0.0.0-preview.bf69b6b → 0.0.0-preview.e1b50dd

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 (390) hide show
  1. package/dist/components/avatar-account/AvatarAccount.cjs +27 -0
  2. package/dist/components/avatar-account/AvatarAccount.cjs.map +1 -0
  3. package/dist/components/avatar-account/AvatarAccount.constants.cjs +12 -0
  4. package/dist/components/avatar-account/AvatarAccount.constants.cjs.map +1 -0
  5. package/dist/components/avatar-account/AvatarAccount.constants.d.cts +3 -0
  6. package/dist/components/avatar-account/AvatarAccount.constants.d.cts.map +1 -0
  7. package/dist/components/avatar-account/AvatarAccount.constants.d.mts +3 -0
  8. package/dist/components/avatar-account/AvatarAccount.constants.d.mts.map +1 -0
  9. package/dist/components/avatar-account/AvatarAccount.constants.mjs +9 -0
  10. package/dist/components/avatar-account/AvatarAccount.constants.mjs.map +1 -0
  11. package/dist/components/avatar-account/AvatarAccount.d.cts +4 -0
  12. package/dist/components/avatar-account/AvatarAccount.d.cts.map +1 -0
  13. package/dist/components/avatar-account/AvatarAccount.d.mts +4 -0
  14. package/dist/components/avatar-account/AvatarAccount.d.mts.map +1 -0
  15. package/dist/components/avatar-account/AvatarAccount.mjs +28 -0
  16. package/dist/components/avatar-account/AvatarAccount.mjs.map +1 -0
  17. package/dist/components/avatar-account/AvatarAccount.types.cjs +32 -0
  18. package/dist/components/avatar-account/AvatarAccount.types.cjs.map +1 -0
  19. package/dist/components/avatar-account/AvatarAccount.types.d.cts +58 -0
  20. package/dist/components/avatar-account/AvatarAccount.types.d.cts.map +1 -0
  21. package/dist/components/avatar-account/AvatarAccount.types.d.mts +58 -0
  22. package/dist/components/avatar-account/AvatarAccount.types.d.mts.map +1 -0
  23. package/dist/components/avatar-account/AvatarAccount.types.mjs +29 -0
  24. package/dist/components/avatar-account/AvatarAccount.types.mjs.map +1 -0
  25. package/dist/components/avatar-account/index.cjs +9 -0
  26. package/dist/components/avatar-account/index.cjs.map +1 -0
  27. package/dist/components/avatar-account/index.d.cts +4 -0
  28. package/dist/components/avatar-account/index.d.cts.map +1 -0
  29. package/dist/components/avatar-account/index.d.mts +4 -0
  30. package/dist/components/avatar-account/index.d.mts.map +1 -0
  31. package/dist/components/avatar-account/index.mjs +3 -0
  32. package/dist/components/avatar-account/index.mjs.map +1 -0
  33. package/dist/components/avatar-base/AvatarBase.cjs +28 -0
  34. package/dist/components/avatar-base/AvatarBase.cjs.map +1 -0
  35. package/dist/components/avatar-base/AvatarBase.constants.cjs +19 -0
  36. package/dist/components/avatar-base/AvatarBase.constants.cjs.map +1 -0
  37. package/dist/components/avatar-base/AvatarBase.constants.d.cts +4 -0
  38. package/dist/components/avatar-base/AvatarBase.constants.d.cts.map +1 -0
  39. package/dist/components/avatar-base/AvatarBase.constants.d.mts +4 -0
  40. package/dist/components/avatar-base/AvatarBase.constants.d.mts.map +1 -0
  41. package/dist/components/avatar-base/AvatarBase.constants.mjs +16 -0
  42. package/dist/components/avatar-base/AvatarBase.constants.mjs.map +1 -0
  43. package/dist/components/avatar-base/AvatarBase.d.cts +4 -0
  44. package/dist/components/avatar-base/AvatarBase.d.cts.map +1 -0
  45. package/dist/components/avatar-base/AvatarBase.d.mts +4 -0
  46. package/dist/components/avatar-base/AvatarBase.d.mts.map +1 -0
  47. package/dist/components/avatar-base/AvatarBase.mjs +29 -0
  48. package/dist/components/avatar-base/AvatarBase.mjs.map +1 -0
  49. package/dist/components/avatar-base/AvatarBase.types.cjs +38 -0
  50. package/dist/components/avatar-base/AvatarBase.types.cjs.map +1 -0
  51. package/dist/components/avatar-base/AvatarBase.types.d.cts +77 -0
  52. package/dist/components/avatar-base/AvatarBase.types.d.cts.map +1 -0
  53. package/dist/components/avatar-base/AvatarBase.types.d.mts +77 -0
  54. package/dist/components/avatar-base/AvatarBase.types.d.mts.map +1 -0
  55. package/dist/components/avatar-base/AvatarBase.types.mjs +35 -0
  56. package/dist/components/avatar-base/AvatarBase.types.mjs.map +1 -0
  57. package/dist/components/avatar-base/index.cjs +9 -0
  58. package/dist/components/avatar-base/index.cjs.map +1 -0
  59. package/dist/components/avatar-base/index.d.cts +4 -0
  60. package/dist/components/{button-link → avatar-base}/index.d.cts.map +1 -1
  61. package/dist/components/avatar-base/index.d.mts +4 -0
  62. package/dist/components/{button-link → avatar-base}/index.d.mts.map +1 -1
  63. package/dist/components/avatar-base/index.mjs +3 -0
  64. package/dist/components/avatar-base/index.mjs.map +1 -0
  65. package/dist/components/avatar-favicon/AvatarFavicon.cjs +15 -0
  66. package/dist/components/avatar-favicon/AvatarFavicon.cjs.map +1 -0
  67. package/dist/components/avatar-favicon/AvatarFavicon.d.cts +4 -0
  68. package/dist/components/avatar-favicon/AvatarFavicon.d.cts.map +1 -0
  69. package/dist/components/avatar-favicon/AvatarFavicon.d.mts +4 -0
  70. package/dist/components/avatar-favicon/AvatarFavicon.d.mts.map +1 -0
  71. package/dist/components/avatar-favicon/AvatarFavicon.mjs +16 -0
  72. package/dist/components/avatar-favicon/AvatarFavicon.mjs.map +1 -0
  73. package/dist/components/avatar-favicon/AvatarFavicon.types.cjs +4 -0
  74. package/dist/components/avatar-favicon/AvatarFavicon.types.cjs.map +1 -0
  75. package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts +40 -0
  76. package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts.map +1 -0
  77. package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts +40 -0
  78. package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts.map +1 -0
  79. package/dist/components/avatar-favicon/AvatarFavicon.types.mjs +2 -0
  80. package/dist/components/avatar-favicon/AvatarFavicon.types.mjs.map +1 -0
  81. package/dist/components/avatar-favicon/index.cjs +8 -0
  82. package/dist/components/avatar-favicon/index.cjs.map +1 -0
  83. package/dist/components/avatar-favicon/index.d.cts +4 -0
  84. package/dist/components/avatar-favicon/index.d.cts.map +1 -0
  85. package/dist/components/avatar-favicon/index.d.mts +4 -0
  86. package/dist/components/avatar-favicon/index.d.mts.map +1 -0
  87. package/dist/components/avatar-favicon/index.mjs +3 -0
  88. package/dist/components/avatar-favicon/index.mjs.map +1 -0
  89. package/dist/components/avatar-icon/AvatarIcon.cjs +19 -0
  90. package/dist/components/avatar-icon/AvatarIcon.cjs.map +1 -0
  91. package/dist/components/avatar-icon/AvatarIcon.constants.cjs +44 -0
  92. package/dist/components/avatar-icon/AvatarIcon.constants.cjs.map +1 -0
  93. package/dist/components/avatar-icon/AvatarIcon.constants.d.cts +11 -0
  94. package/dist/components/avatar-icon/AvatarIcon.constants.d.cts.map +1 -0
  95. package/dist/components/avatar-icon/AvatarIcon.constants.d.mts +11 -0
  96. package/dist/components/avatar-icon/AvatarIcon.constants.d.mts.map +1 -0
  97. package/dist/components/avatar-icon/AvatarIcon.constants.mjs +41 -0
  98. package/dist/components/avatar-icon/AvatarIcon.constants.mjs.map +1 -0
  99. package/dist/components/avatar-icon/AvatarIcon.d.cts +4 -0
  100. package/dist/components/avatar-icon/AvatarIcon.d.cts.map +1 -0
  101. package/dist/components/avatar-icon/AvatarIcon.d.mts +4 -0
  102. package/dist/components/avatar-icon/AvatarIcon.d.mts.map +1 -0
  103. package/dist/components/avatar-icon/AvatarIcon.mjs +20 -0
  104. package/dist/components/avatar-icon/AvatarIcon.mjs.map +1 -0
  105. package/dist/components/avatar-icon/AvatarIcon.types.cjs +36 -0
  106. package/dist/components/avatar-icon/AvatarIcon.types.cjs.map +1 -0
  107. package/dist/components/avatar-icon/AvatarIcon.types.d.cts +57 -0
  108. package/dist/components/avatar-icon/AvatarIcon.types.d.cts.map +1 -0
  109. package/dist/components/avatar-icon/AvatarIcon.types.d.mts +57 -0
  110. package/dist/components/avatar-icon/AvatarIcon.types.d.mts.map +1 -0
  111. package/dist/components/avatar-icon/AvatarIcon.types.mjs +33 -0
  112. package/dist/components/avatar-icon/AvatarIcon.types.mjs.map +1 -0
  113. package/dist/components/avatar-icon/index.cjs +9 -0
  114. package/dist/components/avatar-icon/index.cjs.map +1 -0
  115. package/dist/components/avatar-icon/index.d.cts +4 -0
  116. package/dist/components/avatar-icon/index.d.cts.map +1 -0
  117. package/dist/components/avatar-icon/index.d.mts +4 -0
  118. package/dist/components/avatar-icon/index.d.mts.map +1 -0
  119. package/dist/components/avatar-icon/index.mjs +3 -0
  120. package/dist/components/avatar-icon/index.mjs.map +1 -0
  121. package/dist/components/avatar-network/AvatarNetwork.cjs +15 -0
  122. package/dist/components/avatar-network/AvatarNetwork.cjs.map +1 -0
  123. package/dist/components/avatar-network/AvatarNetwork.d.cts +4 -0
  124. package/dist/components/avatar-network/AvatarNetwork.d.cts.map +1 -0
  125. package/dist/components/avatar-network/AvatarNetwork.d.mts +4 -0
  126. package/dist/components/avatar-network/AvatarNetwork.d.mts.map +1 -0
  127. package/dist/components/avatar-network/AvatarNetwork.mjs +16 -0
  128. package/dist/components/avatar-network/AvatarNetwork.mjs.map +1 -0
  129. package/dist/components/avatar-network/AvatarNetwork.types.cjs +4 -0
  130. package/dist/components/avatar-network/AvatarNetwork.types.cjs.map +1 -0
  131. package/dist/components/avatar-network/AvatarNetwork.types.d.cts +40 -0
  132. package/dist/components/avatar-network/AvatarNetwork.types.d.cts.map +1 -0
  133. package/dist/components/avatar-network/AvatarNetwork.types.d.mts +40 -0
  134. package/dist/components/avatar-network/AvatarNetwork.types.d.mts.map +1 -0
  135. package/dist/components/avatar-network/AvatarNetwork.types.mjs +2 -0
  136. package/dist/components/avatar-network/AvatarNetwork.types.mjs.map +1 -0
  137. package/dist/components/avatar-network/index.cjs +8 -0
  138. package/dist/components/avatar-network/index.cjs.map +1 -0
  139. package/dist/components/avatar-network/index.d.cts +4 -0
  140. package/dist/components/avatar-network/index.d.cts.map +1 -0
  141. package/dist/components/avatar-network/index.d.mts +4 -0
  142. package/dist/components/avatar-network/index.d.mts.map +1 -0
  143. package/dist/components/avatar-network/index.mjs +3 -0
  144. package/dist/components/avatar-network/index.mjs.map +1 -0
  145. package/dist/components/avatar-token/AvatarToken.cjs +15 -0
  146. package/dist/components/avatar-token/AvatarToken.cjs.map +1 -0
  147. package/dist/components/avatar-token/AvatarToken.d.cts +4 -0
  148. package/dist/components/avatar-token/AvatarToken.d.cts.map +1 -0
  149. package/dist/components/avatar-token/AvatarToken.d.mts +4 -0
  150. package/dist/components/avatar-token/AvatarToken.d.mts.map +1 -0
  151. package/dist/components/avatar-token/AvatarToken.mjs +16 -0
  152. package/dist/components/avatar-token/AvatarToken.mjs.map +1 -0
  153. package/dist/components/avatar-token/AvatarToken.types.cjs +4 -0
  154. package/dist/components/avatar-token/AvatarToken.types.cjs.map +1 -0
  155. package/dist/components/avatar-token/AvatarToken.types.d.cts +40 -0
  156. package/dist/components/avatar-token/AvatarToken.types.d.cts.map +1 -0
  157. package/dist/components/avatar-token/AvatarToken.types.d.mts +40 -0
  158. package/dist/components/avatar-token/AvatarToken.types.d.mts.map +1 -0
  159. package/dist/components/avatar-token/AvatarToken.types.mjs +2 -0
  160. package/dist/components/avatar-token/AvatarToken.types.mjs.map +1 -0
  161. package/dist/components/avatar-token/index.cjs +8 -0
  162. package/dist/components/avatar-token/index.cjs.map +1 -0
  163. package/dist/components/avatar-token/index.d.cts +4 -0
  164. package/dist/components/avatar-token/index.d.cts.map +1 -0
  165. package/dist/components/avatar-token/index.d.mts +4 -0
  166. package/dist/components/avatar-token/index.d.mts.map +1 -0
  167. package/dist/components/avatar-token/index.mjs +3 -0
  168. package/dist/components/avatar-token/index.mjs.map +1 -0
  169. package/dist/components/blockies/Blockies.cjs +40 -0
  170. package/dist/components/blockies/Blockies.cjs.map +1 -0
  171. package/dist/components/blockies/Blockies.d.cts +7 -0
  172. package/dist/components/blockies/Blockies.d.cts.map +1 -0
  173. package/dist/components/blockies/Blockies.d.mts +7 -0
  174. package/dist/components/blockies/Blockies.d.mts.map +1 -0
  175. package/dist/components/blockies/Blockies.mjs +21 -0
  176. package/dist/components/blockies/Blockies.mjs.map +1 -0
  177. package/dist/components/{button-link/ButtonLink.types.cjs → blockies/Blockies.types.cjs} +1 -1
  178. package/dist/components/blockies/Blockies.types.cjs.map +1 -0
  179. package/dist/components/blockies/Blockies.types.d.cts +16 -0
  180. package/dist/components/blockies/Blockies.types.d.cts.map +1 -0
  181. package/dist/components/blockies/Blockies.types.d.mts +16 -0
  182. package/dist/components/blockies/Blockies.types.d.mts.map +1 -0
  183. package/dist/components/blockies/Blockies.types.mjs +2 -0
  184. package/dist/components/blockies/Blockies.types.mjs.map +1 -0
  185. package/dist/components/blockies/index.cjs +6 -0
  186. package/dist/components/blockies/index.cjs.map +1 -0
  187. package/dist/components/blockies/index.d.cts +3 -0
  188. package/dist/components/blockies/index.d.cts.map +1 -0
  189. package/dist/components/blockies/index.d.mts +3 -0
  190. package/dist/components/blockies/index.d.mts.map +1 -0
  191. package/dist/components/blockies/index.mjs +2 -0
  192. package/dist/components/blockies/index.mjs.map +1 -0
  193. package/dist/components/button/Button.cjs +25 -0
  194. package/dist/components/button/Button.cjs.map +1 -0
  195. package/dist/components/button/Button.d.cts +4 -0
  196. package/dist/components/button/Button.d.cts.map +1 -0
  197. package/dist/components/button/Button.d.mts +4 -0
  198. package/dist/components/button/Button.d.mts.map +1 -0
  199. package/dist/components/button/Button.mjs +26 -0
  200. package/dist/components/button/Button.mjs.map +1 -0
  201. package/dist/components/button/Button.types.cjs +19 -0
  202. package/dist/components/button/Button.types.cjs.map +1 -0
  203. package/dist/components/button/Button.types.d.cts +31 -0
  204. package/dist/components/button/Button.types.d.cts.map +1 -0
  205. package/dist/components/button/Button.types.d.mts +31 -0
  206. package/dist/components/button/Button.types.d.mts.map +1 -0
  207. package/dist/components/button/Button.types.mjs +16 -0
  208. package/dist/components/button/Button.types.mjs.map +1 -0
  209. package/dist/components/button/index.cjs +10 -0
  210. package/dist/components/button/index.cjs.map +1 -0
  211. package/dist/components/button/index.d.cts +5 -0
  212. package/dist/components/button/index.d.cts.map +1 -0
  213. package/dist/components/button/index.d.mts +5 -0
  214. package/dist/components/button/index.d.mts.map +1 -0
  215. package/dist/components/button/index.mjs +4 -0
  216. package/dist/components/button/index.mjs.map +1 -0
  217. package/dist/components/button-base/ButtonBase.cjs +24 -10
  218. package/dist/components/button-base/ButtonBase.cjs.map +1 -1
  219. package/dist/components/button-base/ButtonBase.d.cts.map +1 -1
  220. package/dist/components/button-base/ButtonBase.d.mts.map +1 -1
  221. package/dist/components/button-base/ButtonBase.mjs +22 -8
  222. package/dist/components/button-base/ButtonBase.mjs.map +1 -1
  223. package/dist/components/button-base/ButtonBase.types.cjs.map +1 -1
  224. package/dist/components/button-base/ButtonBase.types.d.cts +1 -1
  225. package/dist/components/button-base/ButtonBase.types.d.mts +1 -1
  226. package/dist/components/button-base/ButtonBase.types.mjs.map +1 -1
  227. package/dist/components/button-icon/ButtonIcon.cjs +38 -0
  228. package/dist/components/button-icon/ButtonIcon.cjs.map +1 -0
  229. package/dist/components/button-icon/ButtonIcon.constants.cjs +16 -0
  230. package/dist/components/button-icon/ButtonIcon.constants.cjs.map +1 -0
  231. package/dist/components/button-icon/ButtonIcon.constants.d.cts +12 -0
  232. package/dist/components/button-icon/ButtonIcon.constants.d.cts.map +1 -0
  233. package/dist/components/button-icon/ButtonIcon.constants.d.mts +12 -0
  234. package/dist/components/button-icon/ButtonIcon.constants.d.mts.map +1 -0
  235. package/dist/components/button-icon/ButtonIcon.constants.mjs +13 -0
  236. package/dist/components/button-icon/ButtonIcon.constants.mjs.map +1 -0
  237. package/dist/components/button-icon/ButtonIcon.d.cts +4 -0
  238. package/dist/components/button-icon/ButtonIcon.d.cts.map +1 -0
  239. package/dist/components/button-icon/ButtonIcon.d.mts +4 -0
  240. package/dist/components/button-icon/ButtonIcon.d.mts.map +1 -0
  241. package/dist/components/button-icon/ButtonIcon.mjs +39 -0
  242. package/dist/components/button-icon/ButtonIcon.mjs.map +1 -0
  243. package/dist/components/button-icon/ButtonIcon.types.cjs +19 -0
  244. package/dist/components/button-icon/ButtonIcon.types.cjs.map +1 -0
  245. package/dist/components/button-icon/ButtonIcon.types.d.cts +61 -0
  246. package/dist/components/button-icon/ButtonIcon.types.d.cts.map +1 -0
  247. package/dist/components/button-icon/ButtonIcon.types.d.mts +61 -0
  248. package/dist/components/button-icon/ButtonIcon.types.d.mts.map +1 -0
  249. package/dist/components/button-icon/ButtonIcon.types.mjs +16 -0
  250. package/dist/components/button-icon/ButtonIcon.types.mjs.map +1 -0
  251. package/dist/components/button-icon/index.cjs +8 -0
  252. package/dist/components/button-icon/index.cjs.map +1 -0
  253. package/dist/components/button-icon/index.d.cts +4 -0
  254. package/dist/components/button-icon/index.d.cts.map +1 -0
  255. package/dist/components/button-icon/index.d.mts +4 -0
  256. package/dist/components/button-icon/index.d.mts.map +1 -0
  257. package/dist/components/button-icon/index.mjs +3 -0
  258. package/dist/components/button-icon/index.mjs.map +1 -0
  259. package/dist/components/button-primary/ButtonPrimary.cjs +45 -23
  260. package/dist/components/button-primary/ButtonPrimary.cjs.map +1 -1
  261. package/dist/components/button-primary/ButtonPrimary.d.cts.map +1 -1
  262. package/dist/components/button-primary/ButtonPrimary.d.mts.map +1 -1
  263. package/dist/components/button-primary/ButtonPrimary.mjs +45 -23
  264. package/dist/components/button-primary/ButtonPrimary.mjs.map +1 -1
  265. package/dist/components/button-secondary/ButtonSecondary.cjs +26 -25
  266. package/dist/components/button-secondary/ButtonSecondary.cjs.map +1 -1
  267. package/dist/components/button-secondary/ButtonSecondary.d.cts.map +1 -1
  268. package/dist/components/button-secondary/ButtonSecondary.d.mts.map +1 -1
  269. package/dist/components/button-secondary/ButtonSecondary.mjs +26 -25
  270. package/dist/components/button-secondary/ButtonSecondary.mjs.map +1 -1
  271. package/dist/components/button-tertiary/ButtonTertiary.cjs +60 -0
  272. package/dist/components/button-tertiary/ButtonTertiary.cjs.map +1 -0
  273. package/dist/components/button-tertiary/ButtonTertiary.d.cts +4 -0
  274. package/dist/components/button-tertiary/ButtonTertiary.d.cts.map +1 -0
  275. package/dist/components/button-tertiary/ButtonTertiary.d.mts +4 -0
  276. package/dist/components/button-tertiary/ButtonTertiary.d.mts.map +1 -0
  277. package/dist/components/button-tertiary/ButtonTertiary.mjs +61 -0
  278. package/dist/components/button-tertiary/ButtonTertiary.mjs.map +1 -0
  279. package/dist/components/button-tertiary/ButtonTertiary.types.cjs +3 -0
  280. package/dist/components/button-tertiary/ButtonTertiary.types.cjs.map +1 -0
  281. package/dist/components/{button-link/ButtonLink.types.d.cts → button-tertiary/ButtonTertiary.types.d.cts} +8 -3
  282. package/dist/components/button-tertiary/ButtonTertiary.types.d.cts.map +1 -0
  283. package/dist/components/{button-link/ButtonLink.types.d.mts → button-tertiary/ButtonTertiary.types.d.mts} +8 -3
  284. package/dist/components/button-tertiary/ButtonTertiary.types.d.mts.map +1 -0
  285. package/dist/components/button-tertiary/ButtonTertiary.types.mjs +2 -0
  286. package/dist/components/button-tertiary/ButtonTertiary.types.mjs.map +1 -0
  287. package/dist/components/button-tertiary/index.cjs +8 -0
  288. package/dist/components/button-tertiary/index.cjs.map +1 -0
  289. package/dist/components/button-tertiary/index.d.cts +4 -0
  290. package/dist/components/button-tertiary/index.d.cts.map +1 -0
  291. package/dist/components/button-tertiary/index.d.mts +4 -0
  292. package/dist/components/button-tertiary/index.d.mts.map +1 -0
  293. package/dist/components/button-tertiary/index.mjs +3 -0
  294. package/dist/components/button-tertiary/index.mjs.map +1 -0
  295. package/dist/components/index.cjs +40 -9
  296. package/dist/components/index.cjs.map +1 -1
  297. package/dist/components/index.d.cts +26 -7
  298. package/dist/components/index.d.cts.map +1 -1
  299. package/dist/components/index.d.mts +26 -7
  300. package/dist/components/index.d.mts.map +1 -1
  301. package/dist/components/index.mjs +14 -6
  302. package/dist/components/index.mjs.map +1 -1
  303. package/dist/components/jazzicon/Jazzicon.cjs +98 -0
  304. package/dist/components/jazzicon/Jazzicon.cjs.map +1 -0
  305. package/dist/components/jazzicon/Jazzicon.d.cts +7 -0
  306. package/dist/components/jazzicon/Jazzicon.d.cts.map +1 -0
  307. package/dist/components/jazzicon/Jazzicon.d.mts +7 -0
  308. package/dist/components/jazzicon/Jazzicon.d.mts.map +1 -0
  309. package/dist/components/jazzicon/Jazzicon.mjs +77 -0
  310. package/dist/components/jazzicon/Jazzicon.mjs.map +1 -0
  311. package/dist/components/jazzicon/Jazzicon.types.cjs +3 -0
  312. package/dist/components/jazzicon/Jazzicon.types.cjs.map +1 -0
  313. package/dist/components/jazzicon/Jazzicon.types.d.cts +16 -0
  314. package/dist/components/jazzicon/Jazzicon.types.d.cts.map +1 -0
  315. package/dist/components/jazzicon/Jazzicon.types.d.mts +16 -0
  316. package/dist/components/jazzicon/Jazzicon.types.d.mts.map +1 -0
  317. package/dist/components/jazzicon/Jazzicon.types.mjs +2 -0
  318. package/dist/components/jazzicon/Jazzicon.types.mjs.map +1 -0
  319. package/dist/components/jazzicon/Jazzicon.utilities.cjs +58 -0
  320. package/dist/components/jazzicon/Jazzicon.utilities.cjs.map +1 -0
  321. package/dist/components/jazzicon/Jazzicon.utilities.d.cts +15 -0
  322. package/dist/components/jazzicon/Jazzicon.utilities.d.cts.map +1 -0
  323. package/dist/components/jazzicon/Jazzicon.utilities.d.mts +15 -0
  324. package/dist/components/jazzicon/Jazzicon.utilities.d.mts.map +1 -0
  325. package/dist/components/jazzicon/Jazzicon.utilities.mjs +52 -0
  326. package/dist/components/jazzicon/Jazzicon.utilities.mjs.map +1 -0
  327. package/dist/components/jazzicon/index.cjs +6 -0
  328. package/dist/components/jazzicon/index.cjs.map +1 -0
  329. package/dist/components/jazzicon/index.d.cts +3 -0
  330. package/dist/components/jazzicon/index.d.cts.map +1 -0
  331. package/dist/components/jazzicon/index.d.mts +3 -0
  332. package/dist/components/jazzicon/index.d.mts.map +1 -0
  333. package/dist/components/jazzicon/index.mjs +2 -0
  334. package/dist/components/jazzicon/index.mjs.map +1 -0
  335. package/dist/components/text/Text.cjs +2 -2
  336. package/dist/components/text/Text.cjs.map +1 -1
  337. package/dist/components/text/Text.d.cts.map +1 -1
  338. package/dist/components/text/Text.d.mts.map +1 -1
  339. package/dist/components/text/Text.mjs +2 -2
  340. package/dist/components/text/Text.mjs.map +1 -1
  341. package/dist/components/text/Text.types.cjs.map +1 -1
  342. package/dist/components/text/Text.types.d.cts +4 -0
  343. package/dist/components/text/Text.types.d.cts.map +1 -1
  344. package/dist/components/text/Text.types.d.mts +4 -0
  345. package/dist/components/text/Text.types.d.mts.map +1 -1
  346. package/dist/components/text/Text.types.mjs.map +1 -1
  347. package/dist/components/text-button/TextButton.cjs +49 -0
  348. package/dist/components/text-button/TextButton.cjs.map +1 -0
  349. package/dist/components/text-button/TextButton.d.cts +4 -0
  350. package/dist/components/text-button/TextButton.d.cts.map +1 -0
  351. package/dist/components/text-button/TextButton.d.mts +4 -0
  352. package/dist/components/text-button/TextButton.d.mts.map +1 -0
  353. package/dist/components/text-button/TextButton.mjs +50 -0
  354. package/dist/components/text-button/TextButton.mjs.map +1 -0
  355. package/dist/components/text-button/TextButton.types.cjs +3 -0
  356. package/dist/components/text-button/TextButton.types.cjs.map +1 -0
  357. package/dist/components/text-button/TextButton.types.d.cts +35 -0
  358. package/dist/components/text-button/TextButton.types.d.cts.map +1 -0
  359. package/dist/components/text-button/TextButton.types.d.mts +35 -0
  360. package/dist/components/text-button/TextButton.types.d.mts.map +1 -0
  361. package/dist/components/text-button/TextButton.types.mjs +2 -0
  362. package/dist/components/text-button/TextButton.types.mjs.map +1 -0
  363. package/dist/components/text-button/index.cjs +6 -0
  364. package/dist/components/text-button/index.cjs.map +1 -0
  365. package/dist/components/text-button/index.d.cts +3 -0
  366. package/dist/components/text-button/index.d.cts.map +1 -0
  367. package/dist/components/text-button/index.d.mts +3 -0
  368. package/dist/components/text-button/index.d.mts.map +1 -0
  369. package/dist/components/text-button/index.mjs +2 -0
  370. package/dist/components/text-button/index.mjs.map +1 -0
  371. package/package.json +11 -6
  372. package/dist/components/button-link/ButtonLink.cjs +0 -32
  373. package/dist/components/button-link/ButtonLink.cjs.map +0 -1
  374. package/dist/components/button-link/ButtonLink.d.cts +0 -4
  375. package/dist/components/button-link/ButtonLink.d.cts.map +0 -1
  376. package/dist/components/button-link/ButtonLink.d.mts +0 -4
  377. package/dist/components/button-link/ButtonLink.d.mts.map +0 -1
  378. package/dist/components/button-link/ButtonLink.mjs +0 -33
  379. package/dist/components/button-link/ButtonLink.mjs.map +0 -1
  380. package/dist/components/button-link/ButtonLink.types.cjs.map +0 -1
  381. package/dist/components/button-link/ButtonLink.types.d.cts.map +0 -1
  382. package/dist/components/button-link/ButtonLink.types.d.mts.map +0 -1
  383. package/dist/components/button-link/ButtonLink.types.mjs +0 -2
  384. package/dist/components/button-link/ButtonLink.types.mjs.map +0 -1
  385. package/dist/components/button-link/index.cjs +0 -8
  386. package/dist/components/button-link/index.cjs.map +0 -1
  387. package/dist/components/button-link/index.d.cts +0 -4
  388. package/dist/components/button-link/index.d.mts +0 -4
  389. package/dist/components/button-link/index.mjs +0 -3
  390. package/dist/components/button-link/index.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAsCvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { AvatarTokenProps } from "./AvatarToken.types.mjs";
3
+ export declare const AvatarToken: React.ForwardRefExoticComponent<Omit<AvatarTokenProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=AvatarToken.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAsCvB,CAAC"}
@@ -0,0 +1,16 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React from "react";
8
+ const React = $importDefault($React);
9
+ import { AvatarBase, AvatarBaseShape, AvatarBaseSize } from "../avatar-base/index.mjs";
10
+ export const AvatarToken = React.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = AvatarBaseSize.Md, imageProps, ...props }, ref) => {
11
+ const displayText = fallbackText || (name ? name[0] : '');
12
+ const altText = name || 'Token logo'; // TBC: Add localization for default text
13
+ return (React.createElement(AvatarBase, { ref: ref, shape: AvatarBaseShape.Circle, size: size, className: className, fallbackText: displayText, fallbackTextProps: fallbackTextProps, ...props }, src && (React.createElement("img", { src: src, alt: altText, className: "w-full h-full object-cover", ...imageProps }))));
14
+ });
15
+ AvatarToken.displayName = 'AvatarToken';
16
+ //# sourceMappingURL=AvatarToken.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.mjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,iCAAuB;AAG7E,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CACzC,CACE,EACE,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,UAAU,EACV,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,YAAY,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,IAAI,YAAY,CAAC,CAAC,yCAAyC;IAE/E,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,eAAe,CAAC,MAAM,EAC7B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,WAAW,EACzB,iBAAiB,EAAE,iBAAiB,KAChC,KAAK,IAER,GAAG,IAAI,CACN,6BACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,OAAO,EACZ,SAAS,EAAC,4BAA4B,KAClC,UAAU,GACd,CACH,CACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape, AvatarBaseSize } from '../avatar-base';\nimport type { AvatarTokenProps } from './AvatarToken.types';\n\nexport const AvatarToken = React.forwardRef<HTMLDivElement, AvatarTokenProps>(\n (\n {\n src,\n name,\n fallbackText,\n fallbackTextProps,\n className,\n size = AvatarBaseSize.Md,\n imageProps,\n ...props\n },\n ref,\n ) => {\n const displayText = fallbackText || (name ? name[0] : '');\n const altText = name || 'Token logo'; // TBC: Add localization for default text\n\n return (\n <AvatarBase\n ref={ref}\n shape={AvatarBaseShape.Circle}\n size={size}\n className={className}\n fallbackText={displayText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <img\n src={src}\n alt={altText}\n className=\"w-full h-full object-cover\"\n {...imageProps}\n />\n )}\n </AvatarBase>\n );\n },\n);\n\nAvatarToken.displayName = 'AvatarToken';\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require("./index.cjs");
4
+ //# sourceMappingURL=AvatarToken.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.cjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":";;AAGA,kCAAoC","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarTokenSize } from '.';\n\nexport type AvatarTokenProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the token\n * Used as alt text for image and first letter is used as fallback if no fallbackText provided\n */\n name: string;\n /**\n * Optional URL for the token image\n * When provided, displays the image instead of fallback text\n */\n src?: string;\n /**\n * Optional prop to pass to the underlying img element\n * Useful for overriding the default alt text which is the token name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarTokenSize.Md\n */\n size?: AvatarTokenSize;\n /**\n * Optional text to display when no image is provided\n * If not provided, first letter of name will be used\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the Text component when rendering fallback text\n * Only used when src is not provided\n */\n fallbackTextProps?: Partial<\n React.HTMLAttributes<HTMLSpanElement> & TextProps\n >;\n /**\n * Optional additional CSS classes to be applied to the component\n */\n className?: string;\n};\n"]}
@@ -0,0 +1,40 @@
1
+ import type { ComponentProps } from "react";
2
+ import type { TextProps } from "../text/index.cjs";
3
+ import { AvatarTokenSize } from "./index.cjs";
4
+ export type AvatarTokenProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
5
+ /**
6
+ * Required name of the token
7
+ * Used as alt text for image and first letter is used as fallback if no fallbackText provided
8
+ */
9
+ name: string;
10
+ /**
11
+ * Optional URL for the token image
12
+ * When provided, displays the image instead of fallback text
13
+ */
14
+ src?: string;
15
+ /**
16
+ * Optional prop to pass to the underlying img element
17
+ * Useful for overriding the default alt text which is the token name
18
+ */
19
+ imageProps?: ComponentProps<'img'>;
20
+ /**
21
+ * Optional prop to control the size of the avatar
22
+ * @default AvatarTokenSize.Md
23
+ */
24
+ size?: AvatarTokenSize;
25
+ /**
26
+ * Optional text to display when no image is provided
27
+ * If not provided, first letter of name will be used
28
+ */
29
+ fallbackText?: string;
30
+ /**
31
+ * Optional props to be passed to the Text component when rendering fallback text
32
+ * Only used when src is not provided
33
+ */
34
+ fallbackTextProps?: Partial<React.HTMLAttributes<HTMLSpanElement> & TextProps>;
35
+ /**
36
+ * Optional additional CSS classes to be applied to the component
37
+ */
38
+ className?: string;
39
+ };
40
+ //# sourceMappingURL=AvatarToken.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,eAAe,EAAE,oBAAU;AAEpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,MAAM,CACpB,GAAG;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CACzB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAClD,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { ComponentProps } from "react";
2
+ import type { TextProps } from "../text/index.mjs";
3
+ import { AvatarTokenSize } from "./index.mjs";
4
+ export type AvatarTokenProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
5
+ /**
6
+ * Required name of the token
7
+ * Used as alt text for image and first letter is used as fallback if no fallbackText provided
8
+ */
9
+ name: string;
10
+ /**
11
+ * Optional URL for the token image
12
+ * When provided, displays the image instead of fallback text
13
+ */
14
+ src?: string;
15
+ /**
16
+ * Optional prop to pass to the underlying img element
17
+ * Useful for overriding the default alt text which is the token name
18
+ */
19
+ imageProps?: ComponentProps<'img'>;
20
+ /**
21
+ * Optional prop to control the size of the avatar
22
+ * @default AvatarTokenSize.Md
23
+ */
24
+ size?: AvatarTokenSize;
25
+ /**
26
+ * Optional text to display when no image is provided
27
+ * If not provided, first letter of name will be used
28
+ */
29
+ fallbackText?: string;
30
+ /**
31
+ * Optional props to be passed to the Text component when rendering fallback text
32
+ * Only used when src is not provided
33
+ */
34
+ fallbackTextProps?: Partial<React.HTMLAttributes<HTMLSpanElement> & TextProps>;
35
+ /**
36
+ * Optional additional CSS classes to be applied to the component
37
+ */
38
+ className?: string;
39
+ };
40
+ //# sourceMappingURL=AvatarToken.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,eAAe,EAAE,oBAAU;AAEpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,MAAM,CACpB,GAAG;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CACzB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAClD,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { AvatarTokenSize } from "./index.mjs";
2
+ //# sourceMappingURL=AvatarToken.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.types.mjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,oBAAU","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarTokenSize } from '.';\n\nexport type AvatarTokenProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the token\n * Used as alt text for image and first letter is used as fallback if no fallbackText provided\n */\n name: string;\n /**\n * Optional URL for the token image\n * When provided, displays the image instead of fallback text\n */\n src?: string;\n /**\n * Optional prop to pass to the underlying img element\n * Useful for overriding the default alt text which is the token name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarTokenSize.Md\n */\n size?: AvatarTokenSize;\n /**\n * Optional text to display when no image is provided\n * If not provided, first letter of name will be used\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the Text component when rendering fallback text\n * Only used when src is not provided\n */\n fallbackTextProps?: Partial<\n React.HTMLAttributes<HTMLSpanElement> & TextProps\n >;\n /**\n * Optional additional CSS classes to be applied to the component\n */\n className?: string;\n};\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarTokenSize = exports.AvatarToken = void 0;
4
+ var AvatarToken_1 = require("./AvatarToken.cjs");
5
+ Object.defineProperty(exports, "AvatarToken", { enumerable: true, get: function () { return AvatarToken_1.AvatarToken; } });
6
+ var avatar_base_1 = require("../avatar-base/index.cjs");
7
+ Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return avatar_base_1.AvatarBaseSize; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,wDAAmE;AAA1D,8GAAA,cAAc,OAAmB","sourcesContent":["export { AvatarToken } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken.types';\nexport { AvatarBaseSize as AvatarTokenSize } from '../avatar-base';\n"]}
@@ -0,0 +1,4 @@
1
+ export { AvatarToken } from "./AvatarToken.cjs";
2
+ export type { AvatarTokenProps } from "./AvatarToken.types.cjs";
3
+ export { AvatarBaseSize as AvatarTokenSize } from "../avatar-base/index.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B;AAC5D,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,iCAAuB"}
@@ -0,0 +1,4 @@
1
+ export { AvatarToken } from "./AvatarToken.mjs";
2
+ export type { AvatarTokenProps } from "./AvatarToken.types.mjs";
3
+ export { AvatarBaseSize as AvatarTokenSize } from "../avatar-base/index.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B;AAC5D,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,iCAAuB"}
@@ -0,0 +1,3 @@
1
+ export { AvatarToken } from "./AvatarToken.mjs";
2
+ export { AvatarBaseSize as AvatarTokenSize } from "../avatar-base/index.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAE5C,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,iCAAuB","sourcesContent":["export { AvatarToken } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken.types';\nexport { AvatarBaseSize as AvatarTokenSize } from '../avatar-base';\n"]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Blockies = void 0;
27
+ const react_1 = __importStar(require("react"));
28
+ const Blockies = ({ address, size = 32, ...props }) => {
29
+ const [bloModule, setBloModule] = (0, react_1.useState)(null);
30
+ (0, react_1.useEffect)(() => {
31
+ import("blo").then((module) => setBloModule(module));
32
+ }, []);
33
+ if (!bloModule) {
34
+ return null;
35
+ }
36
+ return (react_1.default.createElement("img", { src: bloModule.blo(address), height: size, width: size, alt: `Blockies for ${address}`, ...props }));
37
+ };
38
+ exports.Blockies = Blockies;
39
+ exports.Blockies.displayName = 'Blockies';
40
+ //# sourceMappingURL=Blockies.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.cjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AAG5C,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAEhC,IAAI,CAAC,CAAC;IAEhB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5B,YAAY,CAAC,MAA8C,CAAC,CAC7D,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uCACE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAC3B,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,gBAAgB,OAAO,EAAE,KAC1B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,QAAQ,YAwBnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport type { BlockiesProps } from './Blockies.types';\n\nexport const Blockies = ({ address, size = 32, ...props }: BlockiesProps) => {\n const [bloModule, setBloModule] = useState<{\n blo: (address: string) => string;\n } | null>(null);\n\n useEffect(() => {\n import('blo').then((module) =>\n setBloModule(module as { blo: (address: string) => string }),\n );\n }, []);\n\n if (!bloModule) {\n return null;\n }\n\n return (\n <img\n src={bloModule.blo(address)}\n height={size}\n width={size}\n alt={`Blockies for ${address}`} // TODO: Add localization for this\n {...props}\n />\n );\n};\n\nBlockies.displayName = 'Blockies';\n"]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BlockiesProps } from "./Blockies.types.cjs";
3
+ export declare const Blockies: {
4
+ ({ address, size, ...props }: BlockiesProps): React.JSX.Element | null;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=Blockies.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.d.cts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,cAAc;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ;kCAAsC,aAAa;;CAwBvE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BlockiesProps } from "./Blockies.types.mjs";
3
+ export declare const Blockies: {
4
+ ({ address, size, ...props }: BlockiesProps): React.JSX.Element | null;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=Blockies.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.d.mts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,cAAc;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ;kCAAsC,aAAa;;CAwBvE,CAAC"}
@@ -0,0 +1,21 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React from "react";
8
+ const { useState, useEffect } = $React;
9
+ const React = $importDefault($React);
10
+ export const Blockies = ({ address, size = 32, ...props }) => {
11
+ const [bloModule, setBloModule] = useState(null);
12
+ useEffect(() => {
13
+ import("blo").then((module) => setBloModule(module));
14
+ }, []);
15
+ if (!bloModule) {
16
+ return null;
17
+ }
18
+ return (React.createElement("img", { src: bloModule.blo(address), height: size, width: size, alt: `Blockies for ${address}`, ...props }));
19
+ };
20
+ Blockies.displayName = 'Blockies';
21
+ //# sourceMappingURL=Blockies.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.mjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAEhC,IAAI,CAAC,CAAC;IAEhB,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5B,YAAY,CAAC,MAA8C,CAAC,CAC7D,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAC3B,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,gBAAgB,OAAO,EAAE,KAC1B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport type { BlockiesProps } from './Blockies.types';\n\nexport const Blockies = ({ address, size = 32, ...props }: BlockiesProps) => {\n const [bloModule, setBloModule] = useState<{\n blo: (address: string) => string;\n } | null>(null);\n\n useEffect(() => {\n import('blo').then((module) =>\n setBloModule(module as { blo: (address: string) => string }),\n );\n }, []);\n\n if (!bloModule) {\n return null;\n }\n\n return (\n <img\n src={bloModule.blo(address)}\n height={size}\n width={size}\n alt={`Blockies for ${address}`} // TODO: Add localization for this\n {...props}\n />\n );\n};\n\nBlockies.displayName = 'Blockies';\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ButtonLink.types.cjs.map
3
+ //# sourceMappingURL=Blockies.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.types.cjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nexport type BlockiesProps = ComponentProps<'img'> & {\n /**\n * Required address used as a unique identifier to generate the Blockies.\n */\n address: string;\n /**\n * Optional prop to control the size of the Blockies.\n */\n size?: number;\n /**\n * Optional prop to add a test id to the icon\n */\n 'data-testid'?: string;\n};\n"]}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from "react";
2
+ export type BlockiesProps = ComponentProps<'img'> & {
3
+ /**
4
+ * Required address used as a unique identifier to generate the Blockies.
5
+ */
6
+ address: string;
7
+ /**
8
+ * Optional prop to control the size of the Blockies.
9
+ */
10
+ size?: number;
11
+ /**
12
+ * Optional prop to add a test id to the icon
13
+ */
14
+ 'data-testid'?: string;
15
+ };
16
+ //# sourceMappingURL=Blockies.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.types.d.cts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAClD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from "react";
2
+ export type BlockiesProps = ComponentProps<'img'> & {
3
+ /**
4
+ * Required address used as a unique identifier to generate the Blockies.
5
+ */
6
+ address: string;
7
+ /**
8
+ * Optional prop to control the size of the Blockies.
9
+ */
10
+ size?: number;
11
+ /**
12
+ * Optional prop to add a test id to the icon
13
+ */
14
+ 'data-testid'?: string;
15
+ };
16
+ //# sourceMappingURL=Blockies.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.types.d.mts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAClD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Blockies.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.types.mjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nexport type BlockiesProps = ComponentProps<'img'> & {\n /**\n * Required address used as a unique identifier to generate the Blockies.\n */\n address: string;\n /**\n * Optional prop to control the size of the Blockies.\n */\n size?: number;\n /**\n * Optional prop to add a test id to the icon\n */\n 'data-testid'?: string;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Blockies = void 0;
4
+ var Blockies_1 = require("./Blockies.cjs");
5
+ Object.defineProperty(exports, "Blockies", { enumerable: true, get: function () { return Blockies_1.Blockies; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { Blockies } from './Blockies';\nexport type { BlockiesProps } from './Blockies.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { Blockies } from "./Blockies.cjs";
2
+ export type { BlockiesProps } from "./Blockies.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,3 @@
1
+ export { Blockies } from "./Blockies.mjs";
2
+ export type { BlockiesProps } from "./Blockies.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,2 @@
1
+ export { Blockies } from "./Blockies.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export { Blockies } from './Blockies';\nexport type { BlockiesProps } from './Blockies.types';\n"]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Button = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const button_tertiary_1 = require("../button-tertiary/index.cjs");
9
+ const button_primary_1 = require("../button-primary/index.cjs");
10
+ const button_secondary_1 = require("../button-secondary/index.cjs");
11
+ const Button_types_1 = require("./Button.types.cjs");
12
+ exports.Button = react_1.default.forwardRef(({ variant = Button_types_1.ButtonVariant.Primary, ...props }, ref) => {
13
+ switch (variant) {
14
+ case Button_types_1.ButtonVariant.Primary:
15
+ return react_1.default.createElement(button_primary_1.ButtonPrimary, { ref: ref, ...props });
16
+ case Button_types_1.ButtonVariant.Secondary:
17
+ return (react_1.default.createElement(button_secondary_1.ButtonSecondary, { ref: ref, ...props }));
18
+ case Button_types_1.ButtonVariant.Tertiary:
19
+ return react_1.default.createElement(button_tertiary_1.ButtonTertiary, { ref: ref, ...props });
20
+ default:
21
+ return react_1.default.createElement(button_primary_1.ButtonPrimary, { ref: ref, ...props });
22
+ }
23
+ });
24
+ exports.Button.displayName = 'Button';
25
+ //# sourceMappingURL=Button.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.cjs","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,kEAAoD;AACpD,gEAAkD;AAClD,oEAAsD;AAKtD,qDAA+C;AAElC,QAAA,MAAM,GAAG,eAAK,CAAC,UAAU,CACpC,CAAC,EAAE,OAAO,GAAG,4BAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,4BAAa,CAAC,OAAO;YACxB,OAAO,8BAAC,8BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,4BAAa,CAAC,SAAS;YAC1B,OAAO,CACL,8BAAC,kCAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,4BAAa,CAAC,QAAQ;YACzB,OAAO,8BAAC,gCAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,8BAAC,8BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { ButtonTertiary } from '../button-tertiary';\nimport { ButtonPrimary } from '../button-primary';\nimport { ButtonSecondary } from '../button-secondary';\nimport type { ButtonTertiaryProps } from '../button-tertiary';\nimport type { ButtonPrimaryProps } from '../button-primary';\nimport type { ButtonSecondaryProps } from '../button-secondary';\nimport type { ButtonProps } from './Button.types';\nimport { ButtonVariant } from './Button.types';\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ButtonProps } from "./Button.types.cjs";
3
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=Button.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.cts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAGlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ButtonProps } from "./Button.types.mjs";
3
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=Button.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.mts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAGlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
@@ -0,0 +1,26 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React from "react";
8
+ const React = $importDefault($React);
9
+ import { ButtonTertiary } from "../button-tertiary/index.mjs";
10
+ import { ButtonPrimary } from "../button-primary/index.mjs";
11
+ import { ButtonSecondary } from "../button-secondary/index.mjs";
12
+ import { ButtonVariant } from "./Button.types.mjs";
13
+ export const Button = React.forwardRef(({ variant = ButtonVariant.Primary, ...props }, ref) => {
14
+ switch (variant) {
15
+ case ButtonVariant.Primary:
16
+ return React.createElement(ButtonPrimary, { ref: ref, ...props });
17
+ case ButtonVariant.Secondary:
18
+ return (React.createElement(ButtonSecondary, { ref: ref, ...props }));
19
+ case ButtonVariant.Tertiary:
20
+ return React.createElement(ButtonTertiary, { ref: ref, ...props });
21
+ default:
22
+ return React.createElement(ButtonPrimary, { ref: ref, ...props });
23
+ }
24
+ });
25
+ Button.displayName = 'Button';
26
+ //# sourceMappingURL=Button.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.mjs","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,cAAc,EAAE,qCAA2B;AACpD,OAAO,EAAE,aAAa,EAAE,oCAA0B;AAClD,OAAO,EAAE,eAAe,EAAE,sCAA4B;AAKtD,OAAO,EAAE,aAAa,EAAE,2BAAuB;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,aAAa,CAAC,OAAO;YACxB,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,aAAa,CAAC,SAAS;YAC1B,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,aAAa,CAAC,QAAQ;YACzB,OAAO,oBAAC,cAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { ButtonTertiary } from '../button-tertiary';\nimport { ButtonPrimary } from '../button-primary';\nimport { ButtonSecondary } from '../button-secondary';\nimport type { ButtonTertiaryProps } from '../button-tertiary';\nimport type { ButtonPrimaryProps } from '../button-primary';\nimport type { ButtonSecondaryProps } from '../button-secondary';\nimport type { ButtonProps } from './Button.types';\nimport { ButtonVariant } from './Button.types';\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonVariant = void 0;
4
+ var ButtonVariant;
5
+ (function (ButtonVariant) {
6
+ /**
7
+ * Primary button variant - used for primary actions
8
+ */
9
+ ButtonVariant["Primary"] = "primary";
10
+ /**
11
+ * Secondary button variant - used for secondary actions
12
+ */
13
+ ButtonVariant["Secondary"] = "secondary";
14
+ /**
15
+ * Tertiary button variant - used for tertiary-like actions
16
+ */
17
+ ButtonVariant["Tertiary"] = "tertiary";
18
+ })(ButtonVariant || (exports.ButtonVariant = ButtonVariant = {}));
19
+ //# sourceMappingURL=Button.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.types.cjs","sourceRoot":"","sources":["../../../src/components/button/Button.types.ts"],"names":[],"mappings":";;;AAIA,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB;;OAEG;IACH,oCAAmB,CAAA;IACnB;;OAEG;IACH,wCAAuB,CAAA;IACvB;;OAEG;IACH,sCAAqB,CAAA;AACvB,CAAC,EAbW,aAAa,6BAAb,aAAa,QAaxB","sourcesContent":["import type { ButtonPrimaryProps } from '../button-primary';\nimport type { ButtonSecondaryProps } from '../button-secondary';\nimport type { ButtonTertiaryProps } from '../button-tertiary';\n\nexport enum ButtonVariant {\n /**\n * Primary button variant - used for primary actions\n */\n Primary = 'primary',\n /**\n * Secondary button variant - used for secondary actions\n */\n Secondary = 'secondary',\n /**\n * Tertiary button variant - used for tertiary-like actions\n */\n Tertiary = 'tertiary',\n}\n\nexport type ButtonProps = {\n /**\n * Optional prop to control the variant of the Button\n * @default ButtonVariant.Primary\n */\n variant?: ButtonVariant;\n} & (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: ButtonVariant.Tertiary;\n })\n);\n"]}
@@ -0,0 +1,31 @@
1
+ import type { ButtonPrimaryProps } from "../button-primary/index.cjs";
2
+ import type { ButtonSecondaryProps } from "../button-secondary/index.cjs";
3
+ import type { ButtonTertiaryProps } from "../button-tertiary/index.cjs";
4
+ export declare enum ButtonVariant {
5
+ /**
6
+ * Primary button variant - used for primary actions
7
+ */
8
+ Primary = "primary",
9
+ /**
10
+ * Secondary button variant - used for secondary actions
11
+ */
12
+ Secondary = "secondary",
13
+ /**
14
+ * Tertiary button variant - used for tertiary-like actions
15
+ */
16
+ Tertiary = "tertiary"
17
+ }
18
+ export type ButtonProps = {
19
+ /**
20
+ * Optional prop to control the variant of the Button
21
+ * @default ButtonVariant.Primary
22
+ */
23
+ variant?: ButtonVariant;
24
+ } & ((Omit<ButtonPrimaryProps, 'ref'> & {
25
+ variant?: ButtonVariant.Primary;
26
+ }) | (Omit<ButtonSecondaryProps, 'ref'> & {
27
+ variant?: ButtonVariant.Secondary;
28
+ }) | (Omit<ButtonTertiaryProps, 'ref'> & {
29
+ variant?: ButtonVariant.Tertiary;
30
+ }));
31
+ //# sourceMappingURL=Button.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.types.d.cts","sourceRoot":"","sources":["../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oCAA0B;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,sCAA4B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qCAA2B;AAE9D,oBAAY,aAAa;IACvB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,CACA,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;CACnC,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;CAClC,CAAC,CACL,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { ButtonPrimaryProps } from "../button-primary/index.mjs";
2
+ import type { ButtonSecondaryProps } from "../button-secondary/index.mjs";
3
+ import type { ButtonTertiaryProps } from "../button-tertiary/index.mjs";
4
+ export declare enum ButtonVariant {
5
+ /**
6
+ * Primary button variant - used for primary actions
7
+ */
8
+ Primary = "primary",
9
+ /**
10
+ * Secondary button variant - used for secondary actions
11
+ */
12
+ Secondary = "secondary",
13
+ /**
14
+ * Tertiary button variant - used for tertiary-like actions
15
+ */
16
+ Tertiary = "tertiary"
17
+ }
18
+ export type ButtonProps = {
19
+ /**
20
+ * Optional prop to control the variant of the Button
21
+ * @default ButtonVariant.Primary
22
+ */
23
+ variant?: ButtonVariant;
24
+ } & ((Omit<ButtonPrimaryProps, 'ref'> & {
25
+ variant?: ButtonVariant.Primary;
26
+ }) | (Omit<ButtonSecondaryProps, 'ref'> & {
27
+ variant?: ButtonVariant.Secondary;
28
+ }) | (Omit<ButtonTertiaryProps, 'ref'> & {
29
+ variant?: ButtonVariant.Tertiary;
30
+ }));
31
+ //# sourceMappingURL=Button.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.types.d.mts","sourceRoot":"","sources":["../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oCAA0B;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,sCAA4B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qCAA2B;AAE9D,oBAAY,aAAa;IACvB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,CACA,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;CACnC,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;CAClC,CAAC,CACL,CAAC"}
@@ -0,0 +1,16 @@
1
+ export var ButtonVariant;
2
+ (function (ButtonVariant) {
3
+ /**
4
+ * Primary button variant - used for primary actions
5
+ */
6
+ ButtonVariant["Primary"] = "primary";
7
+ /**
8
+ * Secondary button variant - used for secondary actions
9
+ */
10
+ ButtonVariant["Secondary"] = "secondary";
11
+ /**
12
+ * Tertiary button variant - used for tertiary-like actions
13
+ */
14
+ ButtonVariant["Tertiary"] = "tertiary";
15
+ })(ButtonVariant || (ButtonVariant = {}));
16
+ //# sourceMappingURL=Button.types.mjs.map