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

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 (310) hide show
  1. package/dist/components/avatar-base/AvatarBase.cjs +28 -0
  2. package/dist/components/avatar-base/AvatarBase.cjs.map +1 -0
  3. package/dist/components/avatar-base/AvatarBase.constants.cjs +19 -0
  4. package/dist/components/avatar-base/AvatarBase.constants.cjs.map +1 -0
  5. package/dist/components/avatar-base/AvatarBase.constants.d.cts +4 -0
  6. package/dist/components/avatar-base/AvatarBase.constants.d.cts.map +1 -0
  7. package/dist/components/avatar-base/AvatarBase.constants.d.mts +4 -0
  8. package/dist/components/avatar-base/AvatarBase.constants.d.mts.map +1 -0
  9. package/dist/components/avatar-base/AvatarBase.constants.mjs +16 -0
  10. package/dist/components/avatar-base/AvatarBase.constants.mjs.map +1 -0
  11. package/dist/components/avatar-base/AvatarBase.d.cts +4 -0
  12. package/dist/components/avatar-base/AvatarBase.d.cts.map +1 -0
  13. package/dist/components/avatar-base/AvatarBase.d.mts +4 -0
  14. package/dist/components/avatar-base/AvatarBase.d.mts.map +1 -0
  15. package/dist/components/avatar-base/AvatarBase.mjs +29 -0
  16. package/dist/components/avatar-base/AvatarBase.mjs.map +1 -0
  17. package/dist/components/avatar-base/AvatarBase.types.cjs +38 -0
  18. package/dist/components/avatar-base/AvatarBase.types.cjs.map +1 -0
  19. package/dist/components/avatar-base/AvatarBase.types.d.cts +77 -0
  20. package/dist/components/avatar-base/AvatarBase.types.d.cts.map +1 -0
  21. package/dist/components/avatar-base/AvatarBase.types.d.mts +77 -0
  22. package/dist/components/avatar-base/AvatarBase.types.d.mts.map +1 -0
  23. package/dist/components/avatar-base/AvatarBase.types.mjs +35 -0
  24. package/dist/components/avatar-base/AvatarBase.types.mjs.map +1 -0
  25. package/dist/components/avatar-base/index.cjs +9 -0
  26. package/dist/components/avatar-base/index.cjs.map +1 -0
  27. package/dist/components/avatar-base/index.d.cts +4 -0
  28. package/dist/components/{button-link → avatar-base}/index.d.cts.map +1 -1
  29. package/dist/components/avatar-base/index.d.mts +4 -0
  30. package/dist/components/{button-link → avatar-base}/index.d.mts.map +1 -1
  31. package/dist/components/avatar-base/index.mjs +3 -0
  32. package/dist/components/avatar-base/index.mjs.map +1 -0
  33. package/dist/components/avatar-favicon/AvatarFavicon.cjs +16 -0
  34. package/dist/components/avatar-favicon/AvatarFavicon.cjs.map +1 -0
  35. package/dist/components/avatar-favicon/AvatarFavicon.constants.cjs +13 -0
  36. package/dist/components/avatar-favicon/AvatarFavicon.constants.cjs.map +1 -0
  37. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.cts +4 -0
  38. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.cts.map +1 -0
  39. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.mts +4 -0
  40. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.mts.map +1 -0
  41. package/dist/components/avatar-favicon/AvatarFavicon.constants.mjs +10 -0
  42. package/dist/components/avatar-favicon/AvatarFavicon.constants.mjs.map +1 -0
  43. package/dist/components/avatar-favicon/AvatarFavicon.d.cts +4 -0
  44. package/dist/components/avatar-favicon/AvatarFavicon.d.cts.map +1 -0
  45. package/dist/components/avatar-favicon/AvatarFavicon.d.mts +4 -0
  46. package/dist/components/avatar-favicon/AvatarFavicon.d.mts.map +1 -0
  47. package/dist/components/avatar-favicon/AvatarFavicon.mjs +17 -0
  48. package/dist/components/avatar-favicon/AvatarFavicon.mjs.map +1 -0
  49. package/dist/components/avatar-favicon/AvatarFavicon.types.cjs +27 -0
  50. package/dist/components/avatar-favicon/AvatarFavicon.types.cjs.map +1 -0
  51. package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts +62 -0
  52. package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts.map +1 -0
  53. package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts +62 -0
  54. package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts.map +1 -0
  55. package/dist/components/avatar-favicon/AvatarFavicon.types.mjs +24 -0
  56. package/dist/components/avatar-favicon/AvatarFavicon.types.mjs.map +1 -0
  57. package/dist/components/avatar-favicon/index.cjs +8 -0
  58. package/dist/components/avatar-favicon/index.cjs.map +1 -0
  59. package/dist/components/avatar-favicon/index.d.cts +4 -0
  60. package/dist/components/avatar-favicon/index.d.cts.map +1 -0
  61. package/dist/components/avatar-favicon/index.d.mts +4 -0
  62. package/dist/components/avatar-favicon/index.d.mts.map +1 -0
  63. package/dist/components/avatar-favicon/index.mjs +3 -0
  64. package/dist/components/avatar-favicon/index.mjs.map +1 -0
  65. package/dist/components/avatar-icon/AvatarIcon.cjs +19 -0
  66. package/dist/components/avatar-icon/AvatarIcon.cjs.map +1 -0
  67. package/dist/components/avatar-icon/AvatarIcon.constants.cjs +44 -0
  68. package/dist/components/avatar-icon/AvatarIcon.constants.cjs.map +1 -0
  69. package/dist/components/avatar-icon/AvatarIcon.constants.d.cts +11 -0
  70. package/dist/components/avatar-icon/AvatarIcon.constants.d.cts.map +1 -0
  71. package/dist/components/avatar-icon/AvatarIcon.constants.d.mts +11 -0
  72. package/dist/components/avatar-icon/AvatarIcon.constants.d.mts.map +1 -0
  73. package/dist/components/avatar-icon/AvatarIcon.constants.mjs +41 -0
  74. package/dist/components/avatar-icon/AvatarIcon.constants.mjs.map +1 -0
  75. package/dist/components/avatar-icon/AvatarIcon.d.cts +4 -0
  76. package/dist/components/avatar-icon/AvatarIcon.d.cts.map +1 -0
  77. package/dist/components/avatar-icon/AvatarIcon.d.mts +4 -0
  78. package/dist/components/avatar-icon/AvatarIcon.d.mts.map +1 -0
  79. package/dist/components/avatar-icon/AvatarIcon.mjs +20 -0
  80. package/dist/components/avatar-icon/AvatarIcon.mjs.map +1 -0
  81. package/dist/components/avatar-icon/AvatarIcon.types.cjs +36 -0
  82. package/dist/components/avatar-icon/AvatarIcon.types.cjs.map +1 -0
  83. package/dist/components/avatar-icon/AvatarIcon.types.d.cts +57 -0
  84. package/dist/components/avatar-icon/AvatarIcon.types.d.cts.map +1 -0
  85. package/dist/components/avatar-icon/AvatarIcon.types.d.mts +57 -0
  86. package/dist/components/avatar-icon/AvatarIcon.types.d.mts.map +1 -0
  87. package/dist/components/avatar-icon/AvatarIcon.types.mjs +33 -0
  88. package/dist/components/avatar-icon/AvatarIcon.types.mjs.map +1 -0
  89. package/dist/components/avatar-icon/index.cjs +9 -0
  90. package/dist/components/avatar-icon/index.cjs.map +1 -0
  91. package/dist/components/avatar-icon/index.d.cts +4 -0
  92. package/dist/components/avatar-icon/index.d.cts.map +1 -0
  93. package/dist/components/avatar-icon/index.d.mts +4 -0
  94. package/dist/components/avatar-icon/index.d.mts.map +1 -0
  95. package/dist/components/avatar-icon/index.mjs +3 -0
  96. package/dist/components/avatar-icon/index.mjs.map +1 -0
  97. package/dist/components/avatar-network/AvatarNetwork.cjs +15 -0
  98. package/dist/components/avatar-network/AvatarNetwork.cjs.map +1 -0
  99. package/dist/components/avatar-network/AvatarNetwork.d.cts +4 -0
  100. package/dist/components/avatar-network/AvatarNetwork.d.cts.map +1 -0
  101. package/dist/components/avatar-network/AvatarNetwork.d.mts +4 -0
  102. package/dist/components/avatar-network/AvatarNetwork.d.mts.map +1 -0
  103. package/dist/components/avatar-network/AvatarNetwork.mjs +16 -0
  104. package/dist/components/avatar-network/AvatarNetwork.mjs.map +1 -0
  105. package/dist/components/avatar-network/AvatarNetwork.types.cjs +4 -0
  106. package/dist/components/avatar-network/AvatarNetwork.types.cjs.map +1 -0
  107. package/dist/components/avatar-network/AvatarNetwork.types.d.cts +40 -0
  108. package/dist/components/avatar-network/AvatarNetwork.types.d.cts.map +1 -0
  109. package/dist/components/avatar-network/AvatarNetwork.types.d.mts +40 -0
  110. package/dist/components/avatar-network/AvatarNetwork.types.d.mts.map +1 -0
  111. package/dist/components/avatar-network/AvatarNetwork.types.mjs +2 -0
  112. package/dist/components/avatar-network/AvatarNetwork.types.mjs.map +1 -0
  113. package/dist/components/avatar-network/index.cjs +8 -0
  114. package/dist/components/avatar-network/index.cjs.map +1 -0
  115. package/dist/components/avatar-network/index.d.cts +4 -0
  116. package/dist/components/avatar-network/index.d.cts.map +1 -0
  117. package/dist/components/avatar-network/index.d.mts +4 -0
  118. package/dist/components/avatar-network/index.d.mts.map +1 -0
  119. package/dist/components/avatar-network/index.mjs +3 -0
  120. package/dist/components/avatar-network/index.mjs.map +1 -0
  121. package/dist/components/avatar-token/AvatarToken.cjs +15 -0
  122. package/dist/components/avatar-token/AvatarToken.cjs.map +1 -0
  123. package/dist/components/avatar-token/AvatarToken.d.cts +4 -0
  124. package/dist/components/avatar-token/AvatarToken.d.cts.map +1 -0
  125. package/dist/components/avatar-token/AvatarToken.d.mts +4 -0
  126. package/dist/components/avatar-token/AvatarToken.d.mts.map +1 -0
  127. package/dist/components/avatar-token/AvatarToken.mjs +16 -0
  128. package/dist/components/avatar-token/AvatarToken.mjs.map +1 -0
  129. package/dist/components/avatar-token/AvatarToken.types.cjs +4 -0
  130. package/dist/components/avatar-token/AvatarToken.types.cjs.map +1 -0
  131. package/dist/components/avatar-token/AvatarToken.types.d.cts +40 -0
  132. package/dist/components/avatar-token/AvatarToken.types.d.cts.map +1 -0
  133. package/dist/components/avatar-token/AvatarToken.types.d.mts +40 -0
  134. package/dist/components/avatar-token/AvatarToken.types.d.mts.map +1 -0
  135. package/dist/components/avatar-token/AvatarToken.types.mjs +2 -0
  136. package/dist/components/avatar-token/AvatarToken.types.mjs.map +1 -0
  137. package/dist/components/avatar-token/index.cjs +8 -0
  138. package/dist/components/avatar-token/index.cjs.map +1 -0
  139. package/dist/components/avatar-token/index.d.cts +4 -0
  140. package/dist/components/avatar-token/index.d.cts.map +1 -0
  141. package/dist/components/avatar-token/index.d.mts +4 -0
  142. package/dist/components/avatar-token/index.d.mts.map +1 -0
  143. package/dist/components/avatar-token/index.mjs +3 -0
  144. package/dist/components/avatar-token/index.mjs.map +1 -0
  145. package/dist/components/button/Button.cjs +25 -0
  146. package/dist/components/button/Button.cjs.map +1 -0
  147. package/dist/components/button/Button.d.cts +4 -0
  148. package/dist/components/button/Button.d.cts.map +1 -0
  149. package/dist/components/button/Button.d.mts +4 -0
  150. package/dist/components/button/Button.d.mts.map +1 -0
  151. package/dist/components/button/Button.mjs +26 -0
  152. package/dist/components/button/Button.mjs.map +1 -0
  153. package/dist/components/button/Button.types.cjs +19 -0
  154. package/dist/components/button/Button.types.cjs.map +1 -0
  155. package/dist/components/button/Button.types.d.cts +31 -0
  156. package/dist/components/button/Button.types.d.cts.map +1 -0
  157. package/dist/components/button/Button.types.d.mts +31 -0
  158. package/dist/components/button/Button.types.d.mts.map +1 -0
  159. package/dist/components/button/Button.types.mjs +16 -0
  160. package/dist/components/button/Button.types.mjs.map +1 -0
  161. package/dist/components/button/index.cjs +10 -0
  162. package/dist/components/button/index.cjs.map +1 -0
  163. package/dist/components/button/index.d.cts +5 -0
  164. package/dist/components/button/index.d.cts.map +1 -0
  165. package/dist/components/button/index.d.mts +5 -0
  166. package/dist/components/button/index.d.mts.map +1 -0
  167. package/dist/components/button/index.mjs +4 -0
  168. package/dist/components/button/index.mjs.map +1 -0
  169. package/dist/components/button-base/ButtonBase.cjs +24 -10
  170. package/dist/components/button-base/ButtonBase.cjs.map +1 -1
  171. package/dist/components/button-base/ButtonBase.d.cts.map +1 -1
  172. package/dist/components/button-base/ButtonBase.d.mts.map +1 -1
  173. package/dist/components/button-base/ButtonBase.mjs +22 -8
  174. package/dist/components/button-base/ButtonBase.mjs.map +1 -1
  175. package/dist/components/button-base/ButtonBase.types.cjs.map +1 -1
  176. package/dist/components/button-base/ButtonBase.types.d.cts +1 -1
  177. package/dist/components/button-base/ButtonBase.types.d.mts +1 -1
  178. package/dist/components/button-base/ButtonBase.types.mjs.map +1 -1
  179. package/dist/components/button-icon/ButtonIcon.cjs +38 -0
  180. package/dist/components/button-icon/ButtonIcon.cjs.map +1 -0
  181. package/dist/components/button-icon/ButtonIcon.constants.cjs +16 -0
  182. package/dist/components/button-icon/ButtonIcon.constants.cjs.map +1 -0
  183. package/dist/components/button-icon/ButtonIcon.constants.d.cts +12 -0
  184. package/dist/components/button-icon/ButtonIcon.constants.d.cts.map +1 -0
  185. package/dist/components/button-icon/ButtonIcon.constants.d.mts +12 -0
  186. package/dist/components/button-icon/ButtonIcon.constants.d.mts.map +1 -0
  187. package/dist/components/button-icon/ButtonIcon.constants.mjs +13 -0
  188. package/dist/components/button-icon/ButtonIcon.constants.mjs.map +1 -0
  189. package/dist/components/button-icon/ButtonIcon.d.cts +4 -0
  190. package/dist/components/button-icon/ButtonIcon.d.cts.map +1 -0
  191. package/dist/components/button-icon/ButtonIcon.d.mts +4 -0
  192. package/dist/components/button-icon/ButtonIcon.d.mts.map +1 -0
  193. package/dist/components/button-icon/ButtonIcon.mjs +39 -0
  194. package/dist/components/button-icon/ButtonIcon.mjs.map +1 -0
  195. package/dist/components/button-icon/ButtonIcon.types.cjs +19 -0
  196. package/dist/components/button-icon/ButtonIcon.types.cjs.map +1 -0
  197. package/dist/components/button-icon/ButtonIcon.types.d.cts +61 -0
  198. package/dist/components/button-icon/ButtonIcon.types.d.cts.map +1 -0
  199. package/dist/components/button-icon/ButtonIcon.types.d.mts +61 -0
  200. package/dist/components/button-icon/ButtonIcon.types.d.mts.map +1 -0
  201. package/dist/components/button-icon/ButtonIcon.types.mjs +16 -0
  202. package/dist/components/button-icon/ButtonIcon.types.mjs.map +1 -0
  203. package/dist/components/button-icon/index.cjs +8 -0
  204. package/dist/components/button-icon/index.cjs.map +1 -0
  205. package/dist/components/button-icon/index.d.cts +4 -0
  206. package/dist/components/button-icon/index.d.cts.map +1 -0
  207. package/dist/components/button-icon/index.d.mts +4 -0
  208. package/dist/components/button-icon/index.d.mts.map +1 -0
  209. package/dist/components/button-icon/index.mjs +3 -0
  210. package/dist/components/button-icon/index.mjs.map +1 -0
  211. package/dist/components/button-primary/ButtonPrimary.cjs +45 -23
  212. package/dist/components/button-primary/ButtonPrimary.cjs.map +1 -1
  213. package/dist/components/button-primary/ButtonPrimary.d.cts.map +1 -1
  214. package/dist/components/button-primary/ButtonPrimary.d.mts.map +1 -1
  215. package/dist/components/button-primary/ButtonPrimary.mjs +45 -23
  216. package/dist/components/button-primary/ButtonPrimary.mjs.map +1 -1
  217. package/dist/components/button-secondary/ButtonSecondary.cjs +26 -25
  218. package/dist/components/button-secondary/ButtonSecondary.cjs.map +1 -1
  219. package/dist/components/button-secondary/ButtonSecondary.d.cts.map +1 -1
  220. package/dist/components/button-secondary/ButtonSecondary.d.mts.map +1 -1
  221. package/dist/components/button-secondary/ButtonSecondary.mjs +26 -25
  222. package/dist/components/button-secondary/ButtonSecondary.mjs.map +1 -1
  223. package/dist/components/button-tertiary/ButtonTertiary.cjs +60 -0
  224. package/dist/components/button-tertiary/ButtonTertiary.cjs.map +1 -0
  225. package/dist/components/button-tertiary/ButtonTertiary.d.cts +4 -0
  226. package/dist/components/button-tertiary/ButtonTertiary.d.cts.map +1 -0
  227. package/dist/components/button-tertiary/ButtonTertiary.d.mts +4 -0
  228. package/dist/components/button-tertiary/ButtonTertiary.d.mts.map +1 -0
  229. package/dist/components/button-tertiary/ButtonTertiary.mjs +61 -0
  230. package/dist/components/button-tertiary/ButtonTertiary.mjs.map +1 -0
  231. package/dist/components/button-tertiary/ButtonTertiary.types.cjs +3 -0
  232. package/dist/components/button-tertiary/ButtonTertiary.types.cjs.map +1 -0
  233. package/dist/components/{button-link/ButtonLink.types.d.cts → button-tertiary/ButtonTertiary.types.d.cts} +8 -3
  234. package/dist/components/button-tertiary/ButtonTertiary.types.d.cts.map +1 -0
  235. package/dist/components/{button-link/ButtonLink.types.d.mts → button-tertiary/ButtonTertiary.types.d.mts} +8 -3
  236. package/dist/components/button-tertiary/ButtonTertiary.types.d.mts.map +1 -0
  237. package/dist/components/button-tertiary/ButtonTertiary.types.mjs +2 -0
  238. package/dist/components/button-tertiary/ButtonTertiary.types.mjs.map +1 -0
  239. package/dist/components/button-tertiary/index.cjs +8 -0
  240. package/dist/components/button-tertiary/index.cjs.map +1 -0
  241. package/dist/components/button-tertiary/index.d.cts +4 -0
  242. package/dist/components/button-tertiary/index.d.cts.map +1 -0
  243. package/dist/components/button-tertiary/index.d.mts +4 -0
  244. package/dist/components/button-tertiary/index.d.mts.map +1 -0
  245. package/dist/components/button-tertiary/index.mjs +3 -0
  246. package/dist/components/button-tertiary/index.mjs.map +1 -0
  247. package/dist/components/index.cjs +30 -9
  248. package/dist/components/index.cjs.map +1 -1
  249. package/dist/components/index.d.cts +20 -7
  250. package/dist/components/index.d.cts.map +1 -1
  251. package/dist/components/index.d.mts +20 -7
  252. package/dist/components/index.d.mts.map +1 -1
  253. package/dist/components/index.mjs +11 -6
  254. package/dist/components/index.mjs.map +1 -1
  255. package/dist/components/text/Text.cjs +2 -2
  256. package/dist/components/text/Text.cjs.map +1 -1
  257. package/dist/components/text/Text.d.cts.map +1 -1
  258. package/dist/components/text/Text.d.mts.map +1 -1
  259. package/dist/components/text/Text.mjs +2 -2
  260. package/dist/components/text/Text.mjs.map +1 -1
  261. package/dist/components/text/Text.types.cjs.map +1 -1
  262. package/dist/components/text/Text.types.d.cts +4 -0
  263. package/dist/components/text/Text.types.d.cts.map +1 -1
  264. package/dist/components/text/Text.types.d.mts +4 -0
  265. package/dist/components/text/Text.types.d.mts.map +1 -1
  266. package/dist/components/text/Text.types.mjs.map +1 -1
  267. package/dist/components/text-button/TextButton.cjs +49 -0
  268. package/dist/components/text-button/TextButton.cjs.map +1 -0
  269. package/dist/components/text-button/TextButton.d.cts +4 -0
  270. package/dist/components/text-button/TextButton.d.cts.map +1 -0
  271. package/dist/components/text-button/TextButton.d.mts +4 -0
  272. package/dist/components/text-button/TextButton.d.mts.map +1 -0
  273. package/dist/components/text-button/TextButton.mjs +50 -0
  274. package/dist/components/text-button/TextButton.mjs.map +1 -0
  275. package/dist/components/{button-link/ButtonLink.types.cjs → text-button/TextButton.types.cjs} +1 -1
  276. package/dist/components/text-button/TextButton.types.cjs.map +1 -0
  277. package/dist/components/text-button/TextButton.types.d.cts +35 -0
  278. package/dist/components/text-button/TextButton.types.d.cts.map +1 -0
  279. package/dist/components/text-button/TextButton.types.d.mts +35 -0
  280. package/dist/components/text-button/TextButton.types.d.mts.map +1 -0
  281. package/dist/components/text-button/TextButton.types.mjs +2 -0
  282. package/dist/components/text-button/TextButton.types.mjs.map +1 -0
  283. package/dist/components/text-button/index.cjs +6 -0
  284. package/dist/components/text-button/index.cjs.map +1 -0
  285. package/dist/components/text-button/index.d.cts +3 -0
  286. package/dist/components/text-button/index.d.cts.map +1 -0
  287. package/dist/components/text-button/index.d.mts +3 -0
  288. package/dist/components/text-button/index.d.mts.map +1 -0
  289. package/dist/components/text-button/index.mjs +2 -0
  290. package/dist/components/text-button/index.mjs.map +1 -0
  291. package/package.json +6 -6
  292. package/dist/components/button-link/ButtonLink.cjs +0 -32
  293. package/dist/components/button-link/ButtonLink.cjs.map +0 -1
  294. package/dist/components/button-link/ButtonLink.d.cts +0 -4
  295. package/dist/components/button-link/ButtonLink.d.cts.map +0 -1
  296. package/dist/components/button-link/ButtonLink.d.mts +0 -4
  297. package/dist/components/button-link/ButtonLink.d.mts.map +0 -1
  298. package/dist/components/button-link/ButtonLink.mjs +0 -33
  299. package/dist/components/button-link/ButtonLink.mjs.map +0 -1
  300. package/dist/components/button-link/ButtonLink.types.cjs.map +0 -1
  301. package/dist/components/button-link/ButtonLink.types.d.cts.map +0 -1
  302. package/dist/components/button-link/ButtonLink.types.d.mts.map +0 -1
  303. package/dist/components/button-link/ButtonLink.types.mjs +0 -2
  304. package/dist/components/button-link/ButtonLink.types.mjs.map +0 -1
  305. package/dist/components/button-link/index.cjs +0 -8
  306. package/dist/components/button-link/index.cjs.map +0 -1
  307. package/dist/components/button-link/index.d.cts +0 -4
  308. package/dist/components/button-link/index.d.mts +0 -4
  309. package/dist/components/button-link/index.mjs +0 -3
  310. package/dist/components/button-link/index.mjs.map +0 -1
@@ -0,0 +1,33 @@
1
+ import { IconName } from "../icon/index.mjs";
2
+ export var AvatarIconSeverity;
3
+ (function (AvatarIconSeverity) {
4
+ AvatarIconSeverity["Default"] = "default";
5
+ AvatarIconSeverity["Info"] = "info";
6
+ AvatarIconSeverity["Success"] = "success";
7
+ AvatarIconSeverity["Error"] = "error";
8
+ AvatarIconSeverity["Warning"] = "warning";
9
+ })(AvatarIconSeverity || (AvatarIconSeverity = {}));
10
+ export var AvatarIconSize;
11
+ (function (AvatarIconSize) {
12
+ /**
13
+ * Extra small size (16px)
14
+ */
15
+ AvatarIconSize["Xs"] = "xs";
16
+ /**
17
+ * Small size (24px)
18
+ */
19
+ AvatarIconSize["Sm"] = "sm";
20
+ /**
21
+ * Medium size (32px)
22
+ */
23
+ AvatarIconSize["Md"] = "md";
24
+ /**
25
+ * Large size (40px)
26
+ */
27
+ AvatarIconSize["Lg"] = "lg";
28
+ /**
29
+ * Extra large size (48px)
30
+ */
31
+ AvatarIconSize["Xl"] = "xl";
32
+ })(AvatarIconSize || (AvatarIconSize = {}));
33
+ //# sourceMappingURL=AvatarIcon.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/avatar-icon/AvatarIcon.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,0BAAgB;AAGnC,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,yCAAmB,CAAA;AACrB,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B;AAED,MAAM,CAAN,IAAY,cAqBX;AArBD,WAAY,cAAc;IACxB;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;AACX,CAAC,EArBW,cAAc,KAAd,cAAc,QAqBzB","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { IconName } from '../icon';\nimport type { IconProps } from '../icon';\n\nexport enum AvatarIconSeverity {\n Default = 'default',\n Info = 'info',\n Success = 'success',\n Error = 'error',\n Warning = 'warning',\n}\n\nexport enum AvatarIconSize {\n /**\n * Extra small size (16px)\n */\n Xs = 'xs',\n /**\n * Small size (24px)\n */\n Sm = 'sm',\n /**\n * Medium size (32px)\n */\n Md = 'md',\n /**\n * Large size (40px)\n */\n Lg = 'lg',\n /**\n * Extra large size (48px)\n */\n Xl = 'xl',\n}\n\nexport type AvatarIconProps = Omit<\n ComponentProps<'div'>,\n 'children' | 'size'\n> & {\n /**\n * Required icon name from the icon set\n */\n iconName: IconName;\n /**\n * Optional props to be passed to the Icon component\n */\n iconProps?: Omit<IconProps, 'name'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarIconSize.Md\n */\n size?: AvatarIconSize;\n /**\n * Optional prop to control the severity of the avatar\n * @default AvatarIconSeverity.Default\n */\n severity?: AvatarIconSeverity;\n /**\n * Optional additional CSS classes to be applied to the component\n */\n className?: string;\n};\n"]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarIconSize = exports.AvatarIconSeverity = exports.AvatarIcon = void 0;
4
+ var AvatarIcon_1 = require("./AvatarIcon.cjs");
5
+ Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIcon; } });
6
+ var AvatarIcon_types_1 = require("./AvatarIcon.types.cjs");
7
+ Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return AvatarIcon_types_1.AvatarIconSeverity; } });
8
+ Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return AvatarIcon_types_1.AvatarIconSize; } });
9
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/avatar-icon/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,2DAAwE;AAA/D,sHAAA,kBAAkB,OAAA;AAAE,kHAAA,cAAc,OAAA","sourcesContent":["export { AvatarIcon } from './AvatarIcon';\nexport { AvatarIconSeverity, AvatarIconSize } from './AvatarIcon.types';\nexport type { AvatarIconProps } from './AvatarIcon.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { AvatarIcon } from "./AvatarIcon.cjs";
2
+ export { AvatarIconSeverity, AvatarIconSize } from "./AvatarIcon.types.cjs";
3
+ export type { AvatarIconProps } from "./AvatarIcon.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAA2B;AACxE,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -0,0 +1,4 @@
1
+ export { AvatarIcon } from "./AvatarIcon.mjs";
2
+ export { AvatarIconSeverity, AvatarIconSize } from "./AvatarIcon.types.mjs";
3
+ export type { AvatarIconProps } from "./AvatarIcon.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAA2B;AACxE,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -0,0 +1,3 @@
1
+ export { AvatarIcon } from "./AvatarIcon.mjs";
2
+ export { AvatarIconSeverity, AvatarIconSize } from "./AvatarIcon.types.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/avatar-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAA2B","sourcesContent":["export { AvatarIcon } from './AvatarIcon';\nexport { AvatarIconSeverity, AvatarIconSize } from './AvatarIcon.types';\nexport type { AvatarIconProps } from './AvatarIcon.types';\n"]}
@@ -0,0 +1,15 @@
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.AvatarNetwork = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const avatar_base_1 = require("../avatar-base/index.cjs");
9
+ exports.AvatarNetwork = react_1.default.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = avatar_base_1.AvatarBaseSize.Md, imageProps, ...props }, ref) => {
10
+ const displayText = fallbackText || (name ? name[0] : '');
11
+ const altText = name || 'Network logo'; // TBC: Add localization for default text
12
+ return (react_1.default.createElement(avatar_base_1.AvatarBase, { ref: ref, shape: avatar_base_1.AvatarBaseShape.Square, size: size, className: className, fallbackText: displayText, fallbackTextProps: fallbackTextProps, ...props }, src && (react_1.default.createElement("img", { src: src, alt: altText, className: "w-full h-full object-cover", ...imageProps }))));
13
+ });
14
+ exports.AvatarNetwork.displayName = 'AvatarNetwork';
15
+ //# sourceMappingURL=AvatarNetwork.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.cjs","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0DAA6E;AAGhE,QAAA,aAAa,GAAG,eAAK,CAAC,UAAU,CAI3C,CACE,EACE,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,IAAI,GAAG,4BAAc,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,cAAc,CAAC,CAAC,yCAAyC;IAEjF,OAAO,CACL,8BAAC,wBAAU,IACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,6BAAe,CAAC,MAAM,EAC7B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,WAAW,EACzB,iBAAiB,EAAE,iBAAiB,KAChC,KAAK,IAER,GAAG,IAAI,CACN,uCACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,OAAO,EACZ,SAAS,EAAC,4BAA4B,KAClC,UAAU,GACd,CACH,CACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape, AvatarBaseSize } from '../avatar-base';\nimport type { AvatarNetworkProps } from './AvatarNetwork.types';\n\nexport const AvatarNetwork = React.forwardRef<\n HTMLDivElement,\n AvatarNetworkProps\n>(\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 || 'Network logo'; // TBC: Add localization for default text\n\n return (\n <AvatarBase\n ref={ref}\n shape={AvatarBaseShape.Square}\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\nAvatarNetwork.displayName = 'AvatarNetwork';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { AvatarNetworkProps } from "./AvatarNetwork.types.cjs";
3
+ export declare const AvatarNetwork: React.ForwardRefExoticComponent<Omit<AvatarNetworkProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=AvatarNetwork.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,wGAyCzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { AvatarNetworkProps } from "./AvatarNetwork.types.mjs";
3
+ export declare const AvatarNetwork: React.ForwardRefExoticComponent<Omit<AvatarNetworkProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=AvatarNetwork.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,wGAyCzB,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 AvatarNetwork = React.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = AvatarBaseSize.Md, imageProps, ...props }, ref) => {
11
+ const displayText = fallbackText || (name ? name[0] : '');
12
+ const altText = name || 'Network logo'; // TBC: Add localization for default text
13
+ return (React.createElement(AvatarBase, { ref: ref, shape: AvatarBaseShape.Square, 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
+ AvatarNetwork.displayName = 'AvatarNetwork';
16
+ //# sourceMappingURL=AvatarNetwork.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.mjs","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,iCAAuB;AAG7E,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAI3C,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,cAAc,CAAC,CAAC,yCAAyC;IAEjF,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,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape, AvatarBaseSize } from '../avatar-base';\nimport type { AvatarNetworkProps } from './AvatarNetwork.types';\n\nexport const AvatarNetwork = React.forwardRef<\n HTMLDivElement,\n AvatarNetworkProps\n>(\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 || 'Network logo'; // TBC: Add localization for default text\n\n return (\n <AvatarBase\n ref={ref}\n shape={AvatarBaseShape.Square}\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\nAvatarNetwork.displayName = 'AvatarNetwork';\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require("./index.cjs");
4
+ //# sourceMappingURL=AvatarNetwork.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.cjs","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.types.ts"],"names":[],"mappings":";;AAGA,kCAAsC","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarNetworkSize } from '.';\n\nexport type AvatarNetworkProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the network\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 network 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 network name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarNetworkSize.Md\n */\n size?: AvatarNetworkSize;\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 { AvatarNetworkSize } from "./index.cjs";
4
+ export type AvatarNetworkProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
5
+ /**
6
+ * Required name of the network
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 network 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 network name
18
+ */
19
+ imageProps?: ComponentProps<'img'>;
20
+ /**
21
+ * Optional prop to control the size of the avatar
22
+ * @default AvatarNetworkSize.Md
23
+ */
24
+ size?: AvatarNetworkSize;
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=AvatarNetwork.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,iBAAiB,EAAE,oBAAU;AAEtC,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,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,iBAAiB,CAAC;IACzB;;;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 { AvatarNetworkSize } from "./index.mjs";
4
+ export type AvatarNetworkProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
5
+ /**
6
+ * Required name of the network
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 network 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 network name
18
+ */
19
+ imageProps?: ComponentProps<'img'>;
20
+ /**
21
+ * Optional prop to control the size of the avatar
22
+ * @default AvatarNetworkSize.Md
23
+ */
24
+ size?: AvatarNetworkSize;
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=AvatarNetwork.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,iBAAiB,EAAE,oBAAU;AAEtC,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,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,iBAAiB,CAAC;IACzB;;;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 { AvatarNetworkSize } from "./index.mjs";
2
+ //# sourceMappingURL=AvatarNetwork.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarNetwork.types.mjs","sourceRoot":"","sources":["../../../src/components/avatar-network/AvatarNetwork.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,oBAAU","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarNetworkSize } from '.';\n\nexport type AvatarNetworkProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the network\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 network 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 network name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarNetworkSize.Md\n */\n size?: AvatarNetworkSize;\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.AvatarNetworkSize = exports.AvatarNetwork = void 0;
4
+ var AvatarNetwork_1 = require("./AvatarNetwork.cjs");
5
+ Object.defineProperty(exports, "AvatarNetwork", { enumerable: true, get: function () { return AvatarNetwork_1.AvatarNetwork; } });
6
+ var avatar_base_1 = require("../avatar-base/index.cjs");
7
+ Object.defineProperty(exports, "AvatarNetworkSize", { 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-network/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAEtB,wDAAqE;AAA5D,gHAAA,cAAc,OAAqB","sourcesContent":["export { AvatarNetwork } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork.types';\nexport { AvatarBaseSize as AvatarNetworkSize } from '../avatar-base';\n"]}
@@ -0,0 +1,4 @@
1
+ export { AvatarNetwork } from "./AvatarNetwork.cjs";
2
+ export type { AvatarNetworkProps } from "./AvatarNetwork.types.cjs";
3
+ export { AvatarBaseSize as AvatarNetworkSize } 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-network/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B;AAChE,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,iCAAuB"}
@@ -0,0 +1,4 @@
1
+ export { AvatarNetwork } from "./AvatarNetwork.mjs";
2
+ export type { AvatarNetworkProps } from "./AvatarNetwork.types.mjs";
3
+ export { AvatarBaseSize as AvatarNetworkSize } 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-network/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B;AAChE,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,iCAAuB"}
@@ -0,0 +1,3 @@
1
+ export { AvatarNetwork } from "./AvatarNetwork.mjs";
2
+ export { AvatarBaseSize as AvatarNetworkSize } from "../avatar-base/index.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/avatar-network/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAEhD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,iCAAuB","sourcesContent":["export { AvatarNetwork } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork.types';\nexport { AvatarBaseSize as AvatarNetworkSize } from '../avatar-base';\n"]}
@@ -0,0 +1,15 @@
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.AvatarToken = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const avatar_base_1 = require("../avatar-base/index.cjs");
9
+ exports.AvatarToken = react_1.default.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = avatar_base_1.AvatarBaseSize.Md, imageProps, ...props }, ref) => {
10
+ const displayText = fallbackText || (name ? name[0] : '');
11
+ const altText = name || 'Token logo'; // TBC: Add localization for default text
12
+ return (react_1.default.createElement(avatar_base_1.AvatarBase, { ref: ref, shape: avatar_base_1.AvatarBaseShape.Circle, size: size, className: className, fallbackText: displayText, fallbackTextProps: fallbackTextProps, ...props }, src && (react_1.default.createElement("img", { src: src, alt: altText, className: "w-full h-full object-cover", ...imageProps }))));
13
+ });
14
+ exports.AvatarToken.displayName = 'AvatarToken';
15
+ //# sourceMappingURL=AvatarToken.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarToken.cjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0DAA6E;AAGhE,QAAA,WAAW,GAAG,eAAK,CAAC,UAAU,CACzC,CACE,EACE,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,IAAI,GAAG,4BAAc,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,8BAAC,wBAAU,IACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,6BAAe,CAAC,MAAM,EAC7B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,WAAW,EACzB,iBAAiB,EAAE,iBAAiB,KAChC,KAAK,IAER,GAAG,IAAI,CACN,uCACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,OAAO,EACZ,SAAS,EAAC,4BAA4B,KAClC,UAAU,GACd,CACH,CACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,mBAAW,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
+ import React from "react";
2
+ import type { AvatarTokenProps } from "./AvatarToken.types.cjs";
3
+ export declare const AvatarToken: React.ForwardRefExoticComponent<Omit<AvatarTokenProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=AvatarToken.d.cts.map
@@ -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,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"}