@metamask-previews/design-system-react 0.0.0-preview.ad2f94b → 0.0.0-preview.c0b5e45

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 (496) 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/badge-count/BadgeCount.cjs +21 -0
  170. package/dist/components/badge-count/BadgeCount.cjs.map +1 -0
  171. package/dist/components/badge-count/BadgeCount.constants.cjs +15 -0
  172. package/dist/components/badge-count/BadgeCount.constants.cjs.map +1 -0
  173. package/dist/components/badge-count/BadgeCount.constants.d.cts +5 -0
  174. package/dist/components/badge-count/BadgeCount.constants.d.cts.map +1 -0
  175. package/dist/components/badge-count/BadgeCount.constants.d.mts +5 -0
  176. package/dist/components/badge-count/BadgeCount.constants.d.mts.map +1 -0
  177. package/dist/components/badge-count/BadgeCount.constants.mjs +12 -0
  178. package/dist/components/badge-count/BadgeCount.constants.mjs.map +1 -0
  179. package/dist/components/badge-count/BadgeCount.d.cts +4 -0
  180. package/dist/components/badge-count/BadgeCount.d.cts.map +1 -0
  181. package/dist/components/badge-count/BadgeCount.d.mts +4 -0
  182. package/dist/components/badge-count/BadgeCount.d.mts.map +1 -0
  183. package/dist/components/badge-count/BadgeCount.mjs +22 -0
  184. package/dist/components/badge-count/BadgeCount.mjs.map +1 -0
  185. package/dist/components/badge-count/BadgeCount.types.cjs +15 -0
  186. package/dist/components/badge-count/BadgeCount.types.cjs.map +1 -0
  187. package/dist/components/badge-count/BadgeCount.types.d.cts +48 -0
  188. package/dist/components/badge-count/BadgeCount.types.d.cts.map +1 -0
  189. package/dist/components/badge-count/BadgeCount.types.d.mts +48 -0
  190. package/dist/components/badge-count/BadgeCount.types.d.mts.map +1 -0
  191. package/dist/components/badge-count/BadgeCount.types.mjs +12 -0
  192. package/dist/components/badge-count/BadgeCount.types.mjs.map +1 -0
  193. package/dist/components/badge-count/index.cjs +8 -0
  194. package/dist/components/badge-count/index.cjs.map +1 -0
  195. package/dist/components/badge-count/index.d.cts +4 -0
  196. package/dist/components/badge-count/index.d.cts.map +1 -0
  197. package/dist/components/badge-count/index.d.mts +4 -0
  198. package/dist/components/badge-count/index.d.mts.map +1 -0
  199. package/dist/components/badge-count/index.mjs +3 -0
  200. package/dist/components/badge-count/index.mjs.map +1 -0
  201. package/dist/components/badge-icon/BadgeIcon.cjs +18 -0
  202. package/dist/components/badge-icon/BadgeIcon.cjs.map +1 -0
  203. package/dist/components/badge-icon/BadgeIcon.d.cts +4 -0
  204. package/dist/components/badge-icon/BadgeIcon.d.cts.map +1 -0
  205. package/dist/components/badge-icon/BadgeIcon.d.mts +4 -0
  206. package/dist/components/badge-icon/BadgeIcon.d.mts.map +1 -0
  207. package/dist/components/badge-icon/BadgeIcon.mjs +19 -0
  208. package/dist/components/badge-icon/BadgeIcon.mjs.map +1 -0
  209. package/dist/components/badge-icon/BadgeIcon.types.cjs +4 -0
  210. package/dist/components/badge-icon/BadgeIcon.types.cjs.map +1 -0
  211. package/dist/components/badge-icon/BadgeIcon.types.d.cts +26 -0
  212. package/dist/components/badge-icon/BadgeIcon.types.d.cts.map +1 -0
  213. package/dist/components/badge-icon/BadgeIcon.types.d.mts +26 -0
  214. package/dist/components/badge-icon/BadgeIcon.types.d.mts.map +1 -0
  215. package/dist/components/badge-icon/BadgeIcon.types.mjs +2 -0
  216. package/dist/components/badge-icon/BadgeIcon.types.mjs.map +1 -0
  217. package/dist/components/badge-icon/index.cjs +6 -0
  218. package/dist/components/badge-icon/index.cjs.map +1 -0
  219. package/dist/components/badge-icon/index.d.cts +3 -0
  220. package/dist/components/badge-icon/index.d.cts.map +1 -0
  221. package/dist/components/badge-icon/index.d.mts +3 -0
  222. package/dist/components/badge-icon/index.d.mts.map +1 -0
  223. package/dist/components/badge-icon/index.mjs +2 -0
  224. package/dist/components/badge-icon/index.mjs.map +1 -0
  225. package/dist/components/badge-status/BadgeStatus.cjs +32 -0
  226. package/dist/components/badge-status/BadgeStatus.cjs.map +1 -0
  227. package/dist/components/badge-status/BadgeStatus.constants.cjs +17 -0
  228. package/dist/components/badge-status/BadgeStatus.constants.cjs.map +1 -0
  229. package/dist/components/badge-status/BadgeStatus.constants.d.cts +4 -0
  230. package/dist/components/badge-status/BadgeStatus.constants.d.cts.map +1 -0
  231. package/dist/components/badge-status/BadgeStatus.constants.d.mts +4 -0
  232. package/dist/components/badge-status/BadgeStatus.constants.d.mts.map +1 -0
  233. package/dist/components/badge-status/BadgeStatus.constants.mjs +14 -0
  234. package/dist/components/badge-status/BadgeStatus.constants.mjs.map +1 -0
  235. package/dist/components/badge-status/BadgeStatus.d.cts +4 -0
  236. package/dist/components/badge-status/BadgeStatus.d.cts.map +1 -0
  237. package/dist/components/badge-status/BadgeStatus.d.mts +4 -0
  238. package/dist/components/badge-status/BadgeStatus.d.mts.map +1 -0
  239. package/dist/components/badge-status/BadgeStatus.mjs +33 -0
  240. package/dist/components/badge-status/BadgeStatus.mjs.map +1 -0
  241. package/dist/components/badge-status/BadgeStatus.types.cjs +29 -0
  242. package/dist/components/badge-status/BadgeStatus.types.cjs.map +1 -0
  243. package/dist/components/badge-status/BadgeStatus.types.d.cts +63 -0
  244. package/dist/components/badge-status/BadgeStatus.types.d.cts.map +1 -0
  245. package/dist/components/badge-status/BadgeStatus.types.d.mts +63 -0
  246. package/dist/components/badge-status/BadgeStatus.types.d.mts.map +1 -0
  247. package/dist/components/badge-status/BadgeStatus.types.mjs +26 -0
  248. package/dist/components/badge-status/BadgeStatus.types.mjs.map +1 -0
  249. package/dist/components/badge-status/index.cjs +9 -0
  250. package/dist/components/badge-status/index.cjs.map +1 -0
  251. package/dist/components/badge-status/index.d.cts +4 -0
  252. package/dist/components/badge-status/index.d.cts.map +1 -0
  253. package/dist/components/badge-status/index.d.mts +4 -0
  254. package/dist/components/badge-status/index.d.mts.map +1 -0
  255. package/dist/components/badge-status/index.mjs +3 -0
  256. package/dist/components/badge-status/index.mjs.map +1 -0
  257. package/dist/components/blockies/Blockies.cjs +40 -0
  258. package/dist/components/blockies/Blockies.cjs.map +1 -0
  259. package/dist/components/blockies/Blockies.d.cts +7 -0
  260. package/dist/components/blockies/Blockies.d.cts.map +1 -0
  261. package/dist/components/blockies/Blockies.d.mts +7 -0
  262. package/dist/components/blockies/Blockies.d.mts.map +1 -0
  263. package/dist/components/blockies/Blockies.mjs +21 -0
  264. package/dist/components/blockies/Blockies.mjs.map +1 -0
  265. package/dist/components/{button-link/ButtonLink.types.cjs → blockies/Blockies.types.cjs} +1 -1
  266. package/dist/components/blockies/Blockies.types.cjs.map +1 -0
  267. package/dist/components/blockies/Blockies.types.d.cts +16 -0
  268. package/dist/components/blockies/Blockies.types.d.cts.map +1 -0
  269. package/dist/components/blockies/Blockies.types.d.mts +16 -0
  270. package/dist/components/blockies/Blockies.types.d.mts.map +1 -0
  271. package/dist/components/blockies/Blockies.types.mjs +2 -0
  272. package/dist/components/blockies/Blockies.types.mjs.map +1 -0
  273. package/dist/components/blockies/index.cjs +6 -0
  274. package/dist/components/blockies/index.cjs.map +1 -0
  275. package/dist/components/blockies/index.d.cts +3 -0
  276. package/dist/components/blockies/index.d.cts.map +1 -0
  277. package/dist/components/blockies/index.d.mts +3 -0
  278. package/dist/components/blockies/index.d.mts.map +1 -0
  279. package/dist/components/blockies/index.mjs +2 -0
  280. package/dist/components/blockies/index.mjs.map +1 -0
  281. package/dist/components/button/Button.cjs +25 -0
  282. package/dist/components/button/Button.cjs.map +1 -0
  283. package/dist/components/button/Button.d.cts +4 -0
  284. package/dist/components/button/Button.d.cts.map +1 -0
  285. package/dist/components/button/Button.d.mts +4 -0
  286. package/dist/components/button/Button.d.mts.map +1 -0
  287. package/dist/components/button/Button.mjs +26 -0
  288. package/dist/components/button/Button.mjs.map +1 -0
  289. package/dist/components/button/Button.types.cjs +19 -0
  290. package/dist/components/button/Button.types.cjs.map +1 -0
  291. package/dist/components/button/Button.types.d.cts +31 -0
  292. package/dist/components/button/Button.types.d.cts.map +1 -0
  293. package/dist/components/button/Button.types.d.mts +31 -0
  294. package/dist/components/button/Button.types.d.mts.map +1 -0
  295. package/dist/components/button/Button.types.mjs +16 -0
  296. package/dist/components/button/Button.types.mjs.map +1 -0
  297. package/dist/components/button/index.cjs +10 -0
  298. package/dist/components/button/index.cjs.map +1 -0
  299. package/dist/components/button/index.d.cts +5 -0
  300. package/dist/components/button/index.d.cts.map +1 -0
  301. package/dist/components/button/index.d.mts +5 -0
  302. package/dist/components/button/index.d.mts.map +1 -0
  303. package/dist/components/button/index.mjs +4 -0
  304. package/dist/components/button/index.mjs.map +1 -0
  305. package/dist/components/button-base/ButtonBase.cjs +24 -10
  306. package/dist/components/button-base/ButtonBase.cjs.map +1 -1
  307. package/dist/components/button-base/ButtonBase.d.cts.map +1 -1
  308. package/dist/components/button-base/ButtonBase.d.mts.map +1 -1
  309. package/dist/components/button-base/ButtonBase.mjs +22 -8
  310. package/dist/components/button-base/ButtonBase.mjs.map +1 -1
  311. package/dist/components/button-base/ButtonBase.types.cjs.map +1 -1
  312. package/dist/components/button-base/ButtonBase.types.d.cts +1 -1
  313. package/dist/components/button-base/ButtonBase.types.d.mts +1 -1
  314. package/dist/components/button-base/ButtonBase.types.mjs.map +1 -1
  315. package/dist/components/button-icon/ButtonIcon.cjs +38 -0
  316. package/dist/components/button-icon/ButtonIcon.cjs.map +1 -0
  317. package/dist/components/button-icon/ButtonIcon.constants.cjs +16 -0
  318. package/dist/components/button-icon/ButtonIcon.constants.cjs.map +1 -0
  319. package/dist/components/button-icon/ButtonIcon.constants.d.cts +12 -0
  320. package/dist/components/button-icon/ButtonIcon.constants.d.cts.map +1 -0
  321. package/dist/components/button-icon/ButtonIcon.constants.d.mts +12 -0
  322. package/dist/components/button-icon/ButtonIcon.constants.d.mts.map +1 -0
  323. package/dist/components/button-icon/ButtonIcon.constants.mjs +13 -0
  324. package/dist/components/button-icon/ButtonIcon.constants.mjs.map +1 -0
  325. package/dist/components/button-icon/ButtonIcon.d.cts +4 -0
  326. package/dist/components/button-icon/ButtonIcon.d.cts.map +1 -0
  327. package/dist/components/button-icon/ButtonIcon.d.mts +4 -0
  328. package/dist/components/button-icon/ButtonIcon.d.mts.map +1 -0
  329. package/dist/components/button-icon/ButtonIcon.mjs +39 -0
  330. package/dist/components/button-icon/ButtonIcon.mjs.map +1 -0
  331. package/dist/components/button-icon/ButtonIcon.types.cjs +19 -0
  332. package/dist/components/button-icon/ButtonIcon.types.cjs.map +1 -0
  333. package/dist/components/button-icon/ButtonIcon.types.d.cts +61 -0
  334. package/dist/components/button-icon/ButtonIcon.types.d.cts.map +1 -0
  335. package/dist/components/button-icon/ButtonIcon.types.d.mts +61 -0
  336. package/dist/components/button-icon/ButtonIcon.types.d.mts.map +1 -0
  337. package/dist/components/button-icon/ButtonIcon.types.mjs +16 -0
  338. package/dist/components/button-icon/ButtonIcon.types.mjs.map +1 -0
  339. package/dist/components/button-icon/index.cjs +8 -0
  340. package/dist/components/button-icon/index.cjs.map +1 -0
  341. package/dist/components/button-icon/index.d.cts +4 -0
  342. package/dist/components/button-icon/index.d.cts.map +1 -0
  343. package/dist/components/button-icon/index.d.mts +4 -0
  344. package/dist/components/button-icon/index.d.mts.map +1 -0
  345. package/dist/components/button-icon/index.mjs +3 -0
  346. package/dist/components/button-icon/index.mjs.map +1 -0
  347. package/dist/components/button-primary/ButtonPrimary.cjs +45 -23
  348. package/dist/components/button-primary/ButtonPrimary.cjs.map +1 -1
  349. package/dist/components/button-primary/ButtonPrimary.d.cts.map +1 -1
  350. package/dist/components/button-primary/ButtonPrimary.d.mts.map +1 -1
  351. package/dist/components/button-primary/ButtonPrimary.mjs +45 -23
  352. package/dist/components/button-primary/ButtonPrimary.mjs.map +1 -1
  353. package/dist/components/button-secondary/ButtonSecondary.cjs +26 -25
  354. package/dist/components/button-secondary/ButtonSecondary.cjs.map +1 -1
  355. package/dist/components/button-secondary/ButtonSecondary.d.cts.map +1 -1
  356. package/dist/components/button-secondary/ButtonSecondary.d.mts.map +1 -1
  357. package/dist/components/button-secondary/ButtonSecondary.mjs +26 -25
  358. package/dist/components/button-secondary/ButtonSecondary.mjs.map +1 -1
  359. package/dist/components/button-tertiary/ButtonTertiary.cjs +60 -0
  360. package/dist/components/button-tertiary/ButtonTertiary.cjs.map +1 -0
  361. package/dist/components/button-tertiary/ButtonTertiary.d.cts +4 -0
  362. package/dist/components/button-tertiary/ButtonTertiary.d.cts.map +1 -0
  363. package/dist/components/button-tertiary/ButtonTertiary.d.mts +4 -0
  364. package/dist/components/button-tertiary/ButtonTertiary.d.mts.map +1 -0
  365. package/dist/components/button-tertiary/ButtonTertiary.mjs +61 -0
  366. package/dist/components/button-tertiary/ButtonTertiary.mjs.map +1 -0
  367. package/dist/components/button-tertiary/ButtonTertiary.types.cjs +3 -0
  368. package/dist/components/button-tertiary/ButtonTertiary.types.cjs.map +1 -0
  369. package/dist/components/{button-link/ButtonLink.types.d.cts → button-tertiary/ButtonTertiary.types.d.cts} +8 -3
  370. package/dist/components/button-tertiary/ButtonTertiary.types.d.cts.map +1 -0
  371. package/dist/components/{button-link/ButtonLink.types.d.mts → button-tertiary/ButtonTertiary.types.d.mts} +8 -3
  372. package/dist/components/button-tertiary/ButtonTertiary.types.d.mts.map +1 -0
  373. package/dist/components/button-tertiary/ButtonTertiary.types.mjs +2 -0
  374. package/dist/components/button-tertiary/ButtonTertiary.types.mjs.map +1 -0
  375. package/dist/components/button-tertiary/index.cjs +8 -0
  376. package/dist/components/button-tertiary/index.cjs.map +1 -0
  377. package/dist/components/button-tertiary/index.d.cts +4 -0
  378. package/dist/components/button-tertiary/index.d.cts.map +1 -0
  379. package/dist/components/button-tertiary/index.d.mts +4 -0
  380. package/dist/components/button-tertiary/index.d.mts.map +1 -0
  381. package/dist/components/button-tertiary/index.mjs +3 -0
  382. package/dist/components/button-tertiary/index.mjs.map +1 -0
  383. package/dist/components/index.cjs +52 -9
  384. package/dist/components/index.cjs.map +1 -1
  385. package/dist/components/index.d.cts +35 -8
  386. package/dist/components/index.d.cts.map +1 -1
  387. package/dist/components/index.d.mts +35 -8
  388. package/dist/components/index.d.mts.map +1 -1
  389. package/dist/components/index.mjs +20 -7
  390. package/dist/components/index.mjs.map +1 -1
  391. package/dist/components/jazzicon/Jazzicon.cjs +98 -0
  392. package/dist/components/jazzicon/Jazzicon.cjs.map +1 -0
  393. package/dist/components/jazzicon/Jazzicon.d.cts +7 -0
  394. package/dist/components/jazzicon/Jazzicon.d.cts.map +1 -0
  395. package/dist/components/jazzicon/Jazzicon.d.mts +7 -0
  396. package/dist/components/jazzicon/Jazzicon.d.mts.map +1 -0
  397. package/dist/components/jazzicon/Jazzicon.mjs +77 -0
  398. package/dist/components/jazzicon/Jazzicon.mjs.map +1 -0
  399. package/dist/components/jazzicon/Jazzicon.types.cjs +3 -0
  400. package/dist/components/jazzicon/Jazzicon.types.cjs.map +1 -0
  401. package/dist/components/jazzicon/Jazzicon.types.d.cts +16 -0
  402. package/dist/components/jazzicon/Jazzicon.types.d.cts.map +1 -0
  403. package/dist/components/jazzicon/Jazzicon.types.d.mts +16 -0
  404. package/dist/components/jazzicon/Jazzicon.types.d.mts.map +1 -0
  405. package/dist/components/jazzicon/Jazzicon.types.mjs +2 -0
  406. package/dist/components/jazzicon/Jazzicon.types.mjs.map +1 -0
  407. package/dist/components/jazzicon/Jazzicon.utilities.cjs +58 -0
  408. package/dist/components/jazzicon/Jazzicon.utilities.cjs.map +1 -0
  409. package/dist/components/jazzicon/Jazzicon.utilities.d.cts +15 -0
  410. package/dist/components/jazzicon/Jazzicon.utilities.d.cts.map +1 -0
  411. package/dist/components/jazzicon/Jazzicon.utilities.d.mts +15 -0
  412. package/dist/components/jazzicon/Jazzicon.utilities.d.mts.map +1 -0
  413. package/dist/components/jazzicon/Jazzicon.utilities.mjs +52 -0
  414. package/dist/components/jazzicon/Jazzicon.utilities.mjs.map +1 -0
  415. package/dist/components/jazzicon/index.cjs +6 -0
  416. package/dist/components/jazzicon/index.cjs.map +1 -0
  417. package/dist/components/jazzicon/index.d.cts +3 -0
  418. package/dist/components/jazzicon/index.d.cts.map +1 -0
  419. package/dist/components/jazzicon/index.d.mts +3 -0
  420. package/dist/components/jazzicon/index.d.mts.map +1 -0
  421. package/dist/components/jazzicon/index.mjs +2 -0
  422. package/dist/components/jazzicon/index.mjs.map +1 -0
  423. package/dist/components/text/Text.cjs +4 -4
  424. package/dist/components/text/Text.cjs.map +1 -1
  425. package/dist/components/text/Text.constants.cjs +16 -5
  426. package/dist/components/text/Text.constants.cjs.map +1 -1
  427. package/dist/components/text/Text.constants.d.cts +3 -2
  428. package/dist/components/text/Text.constants.d.cts.map +1 -1
  429. package/dist/components/text/Text.constants.d.mts +3 -2
  430. package/dist/components/text/Text.constants.d.mts.map +1 -1
  431. package/dist/components/text/Text.constants.mjs +15 -4
  432. package/dist/components/text/Text.constants.mjs.map +1 -1
  433. package/dist/components/text/Text.d.cts.map +1 -1
  434. package/dist/components/text/Text.d.mts.map +1 -1
  435. package/dist/components/text/Text.mjs +6 -6
  436. package/dist/components/text/Text.mjs.map +1 -1
  437. package/dist/components/text/Text.types.cjs +8 -2
  438. package/dist/components/text/Text.types.cjs.map +1 -1
  439. package/dist/components/text/Text.types.d.cts +18 -2
  440. package/dist/components/text/Text.types.d.cts.map +1 -1
  441. package/dist/components/text/Text.types.d.mts +18 -2
  442. package/dist/components/text/Text.types.d.mts.map +1 -1
  443. package/dist/components/text/Text.types.mjs +7 -1
  444. package/dist/components/text/Text.types.mjs.map +1 -1
  445. package/dist/components/text/index.cjs +2 -1
  446. package/dist/components/text/index.cjs.map +1 -1
  447. package/dist/components/text/index.d.cts +1 -1
  448. package/dist/components/text/index.d.cts.map +1 -1
  449. package/dist/components/text/index.d.mts +1 -1
  450. package/dist/components/text/index.d.mts.map +1 -1
  451. package/dist/components/text/index.mjs +1 -1
  452. package/dist/components/text/index.mjs.map +1 -1
  453. package/dist/components/text-button/TextButton.cjs +49 -0
  454. package/dist/components/text-button/TextButton.cjs.map +1 -0
  455. package/dist/components/text-button/TextButton.d.cts +4 -0
  456. package/dist/components/text-button/TextButton.d.cts.map +1 -0
  457. package/dist/components/text-button/TextButton.d.mts +4 -0
  458. package/dist/components/text-button/TextButton.d.mts.map +1 -0
  459. package/dist/components/text-button/TextButton.mjs +50 -0
  460. package/dist/components/text-button/TextButton.mjs.map +1 -0
  461. package/dist/components/text-button/TextButton.types.cjs +3 -0
  462. package/dist/components/text-button/TextButton.types.cjs.map +1 -0
  463. package/dist/components/text-button/TextButton.types.d.cts +35 -0
  464. package/dist/components/text-button/TextButton.types.d.cts.map +1 -0
  465. package/dist/components/text-button/TextButton.types.d.mts +35 -0
  466. package/dist/components/text-button/TextButton.types.d.mts.map +1 -0
  467. package/dist/components/text-button/TextButton.types.mjs +2 -0
  468. package/dist/components/text-button/TextButton.types.mjs.map +1 -0
  469. package/dist/components/text-button/index.cjs +6 -0
  470. package/dist/components/text-button/index.cjs.map +1 -0
  471. package/dist/components/text-button/index.d.cts +3 -0
  472. package/dist/components/text-button/index.d.cts.map +1 -0
  473. package/dist/components/text-button/index.d.mts +3 -0
  474. package/dist/components/text-button/index.d.mts.map +1 -0
  475. package/dist/components/text-button/index.mjs +2 -0
  476. package/dist/components/text-button/index.mjs.map +1 -0
  477. package/package.json +11 -6
  478. package/dist/components/button-link/ButtonLink.cjs +0 -32
  479. package/dist/components/button-link/ButtonLink.cjs.map +0 -1
  480. package/dist/components/button-link/ButtonLink.d.cts +0 -4
  481. package/dist/components/button-link/ButtonLink.d.cts.map +0 -1
  482. package/dist/components/button-link/ButtonLink.d.mts +0 -4
  483. package/dist/components/button-link/ButtonLink.d.mts.map +0 -1
  484. package/dist/components/button-link/ButtonLink.mjs +0 -33
  485. package/dist/components/button-link/ButtonLink.mjs.map +0 -1
  486. package/dist/components/button-link/ButtonLink.types.cjs.map +0 -1
  487. package/dist/components/button-link/ButtonLink.types.d.cts.map +0 -1
  488. package/dist/components/button-link/ButtonLink.types.d.mts.map +0 -1
  489. package/dist/components/button-link/ButtonLink.types.mjs +0 -2
  490. package/dist/components/button-link/ButtonLink.types.mjs.map +0 -1
  491. package/dist/components/button-link/index.cjs +0 -8
  492. package/dist/components/button-link/index.cjs.map +0 -1
  493. package/dist/components/button-link/index.d.cts +0 -4
  494. package/dist/components/button-link/index.d.mts +0 -4
  495. package/dist/components/button-link/index.mjs +0 -3
  496. package/dist/components/button-link/index.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.cjs","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":";;;AAgEA,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB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B,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,uCAAsB,CAAA;AACxB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB","sourcesContent":["export type TextProps = {\n /**\n * Optional prop for inline styles\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to change the font size of the component. The Text component uses responsive font sizes.\n * Different variants map to specific HTML elements by default.\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: React.ReactNode;\n /**\n * Optional prop for additional CSS classes to be applied to the Text component.\n */\n className?: string;\n /**\n * Optional prop to control the font weight of the text.\n * - Normal: 400\n * - Medium: 500\n * - Bold: 700\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to control the font style of the text.\n * Options: Normal, Italic\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to apply text transformation to the content.\n * Options: Uppercase, Lowercase, Capitalize, Normal\n */\n textTransform?: TextTransform;\n /**\n * Optional prop to control the text alignment within its container.\n * Options: Left, Center, Right, Justify\n */\n textAlign?: TextAlign;\n /**\n * Optional prop to determine how text should wrap when it reaches the edge of its container.\n * Options: BreakWord, Anywhere, Normal\n */\n overflowWrap?: OverflowWrap;\n /**\n * Optional prop that when true, adds an ellipsis (...) when text overflows its container.\n * @default false\n */\n ellipsis?: boolean;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a default DOM element.\n * @default false\n */\n asChild?: boolean;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n};\n\nexport enum TextVariant {\n // Display Sizes\n DisplayLg = 'display-lg',\n DisplayMd = 'display-md',\n\n // Heading Sizes\n HeadingLg = 'heading-lg',\n HeadingMd = 'heading-md',\n HeadingSm = 'heading-sm',\n\n // Font Sizes\n BodyLg = 'body-lg',\n BodyMd = 'body-md',\n BodySm = 'body-sm',\n BodyXs = 'body-xs',\n}\n\nexport enum TextColor {\n /** For default neutral text. */\n TextDefault = 'text-default',\n /** For softer contrast neutral text */\n TextAlternative = 'text-alternative',\n /** For the softest contrast neutral text (not accessible) */\n TextMuted = 'text-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse = 'text-overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault = 'text-primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse = 'text-primary-inverse',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault = 'text-error-default',\n /** For the stronger contrast error semantic elements. */\n ErrorAlternative = 'text-error-alternative',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse = 'text-error-inverse',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault = 'text-success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse = 'text-success-inverse',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault = 'text-warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse = 'text-warning-inverse',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault = 'text-info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse = 'text-info-inverse',\n /** Inherit the color of the parent element */\n Inherit = 'text-inherit',\n /** Make the text color transparent */\n Transparent = 'text-transparent',\n}\n\nexport enum TextAlign {\n Left = 'text-left',\n Center = 'text-center',\n Right = 'text-right',\n Justify = 'text-justify',\n}\n\nexport enum FontWeight {\n /**\n * Weight - 700\n */\n Bold = 'font-bold',\n /**\n * Weight - 500\n */\n Medium = 'font-medium',\n /**\n * Weight - 400\n */\n Normal = 'font-normal',\n}\n\nexport enum OverflowWrap {\n BreakWord = 'break-words',\n Anywhere = 'break-all',\n Normal = 'break-normal',\n}\n\nexport enum FontStyle {\n Italic = 'italic',\n Normal = 'not-italic',\n}\n\nexport enum TextTransform {\n Uppercase = 'uppercase',\n Lowercase = 'lowercase',\n Capitalize = 'capitalize',\n Normal = 'normal-case',\n}\n"]}
1
+ {"version":3,"file":"Text.types.cjs","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":";;;AA2EA,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,aAAa;IACb,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;AACpB,CAAC,EAfW,WAAW,2BAAX,WAAW,QAetB;AAED,IAAY,SAmCX;AAnCD,WAAY,SAAS;IACnB,gCAAgC;IAChC,yCAA4B,CAAA;IAC5B,uCAAuC;IACvC,iDAAoC,CAAA;IACpC,6DAA6D;IAC7D,qCAAwB,CAAA;IACxB,qFAAqF;IACrF,oDAAuC,CAAA;IACvC,iGAAiG;IACjG,oDAAuC,CAAA;IACvC,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,0FAA0F;IAC1F,gDAAmC,CAAA;IACnC,yDAAyD;IACzD,wDAA2C,CAAA;IAC3C,+EAA+E;IAC/E,gDAAmC,CAAA;IACnC,oFAAoF;IACpF,oDAAuC,CAAA;IACvC,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,yFAAyF;IACzF,oDAAuC,CAAA;IACvC,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,sFAAsF;IACtF,8CAAiC,CAAA;IACjC,8EAA8E;IAC9E,8CAAiC,CAAA;IACjC,8CAA8C;IAC9C,qCAAwB,CAAA;IACxB,sCAAsC;IACtC,6CAAgC,CAAA;AAClC,CAAC,EAnCW,SAAS,yBAAT,SAAS,QAmCpB;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAAkB,CAAA;IAClB,mCAAsB,CAAA;IACtB,iCAAoB,CAAA;IACpB,qCAAwB,CAAA;AAC1B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,UAaX;AAbD,WAAY,UAAU;IACpB;;OAEG;IACH,gCAAkB,CAAA;IAClB;;OAEG;IACH,oCAAsB,CAAA;IACtB;;OAEG;IACH,sCAAwB,CAAA;AAC1B,CAAC,EAbW,UAAU,0BAAV,UAAU,QAarB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,sCAAsB,CAAA;IACtB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,uCAAsB,CAAA;AACxB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,kCAAoB,CAAA;AACtB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB","sourcesContent":["export type TextProps = {\n /**\n * Optional prop for inline styles\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to change the font size of the component. The Text component uses responsive font sizes.\n * Different variants map to specific HTML elements by default.\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: React.ReactNode;\n /**\n * Optional prop for additional CSS classes to be applied to the Text component.\n */\n className?: string;\n /**\n * Optional prop to control the font weight of the text.\n * - Regular: 400\n * - Medium: 500\n * - Bold: 700\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * - Default: centrano1\n * - Accent: mmsans\n * - Hero: mmpoly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to control the font style of the text.\n * Options: Normal, Italic\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to apply text transformation to the content.\n * Options: Uppercase, Lowercase, Capitalize, Normal\n */\n textTransform?: TextTransform;\n /**\n * Optional prop to control the text alignment within its container.\n * Options: Left, Center, Right, Justify\n */\n textAlign?: TextAlign;\n /**\n * Optional prop to determine how text should wrap when it reaches the edge of its container.\n * Options: BreakWord, Anywhere, Normal\n */\n overflowWrap?: OverflowWrap;\n /**\n * Optional prop that when true, adds an ellipsis (...) when text overflows its container.\n * @default false\n */\n ellipsis?: boolean;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a default DOM element.\n * @default false\n */\n asChild?: boolean;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n /**\n * Optional prop for testing purposes\n */\n 'data-testid'?: string;\n};\n\nexport enum TextVariant {\n // Display Sizes\n DisplayLg = 'display-lg',\n DisplayMd = 'display-md',\n\n // Heading Sizes\n HeadingLg = 'heading-lg',\n HeadingMd = 'heading-md',\n HeadingSm = 'heading-sm',\n\n // Font Sizes\n BodyLg = 'body-lg',\n BodyMd = 'body-md',\n BodySm = 'body-sm',\n BodyXs = 'body-xs',\n}\n\nexport enum TextColor {\n /** For default neutral text. */\n TextDefault = 'text-default',\n /** For softer contrast neutral text */\n TextAlternative = 'text-alternative',\n /** For the softest contrast neutral text (not accessible) */\n TextMuted = 'text-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse = 'text-overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault = 'text-primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse = 'text-primary-inverse',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault = 'text-error-default',\n /** For the stronger contrast error semantic elements. */\n ErrorAlternative = 'text-error-alternative',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse = 'text-error-inverse',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault = 'text-success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse = 'text-success-inverse',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault = 'text-warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse = 'text-warning-inverse',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault = 'text-info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse = 'text-info-inverse',\n /** Inherit the color of the parent element */\n Inherit = 'text-inherit',\n /** Make the text color transparent */\n Transparent = 'text-transparent',\n}\n\nexport enum TextAlign {\n Left = 'text-left',\n Center = 'text-center',\n Right = 'text-right',\n Justify = 'text-justify',\n}\n\nexport enum FontWeight {\n /**\n * Weight - 700\n */\n Bold = 'font-bold',\n /**\n * Weight - 500\n */\n Medium = 'font-medium',\n /**\n * Weight - 400\n */\n Regular = 'font-regular',\n}\n\nexport enum OverflowWrap {\n BreakWord = 'break-words',\n Anywhere = 'break-all',\n Normal = 'break-normal',\n}\n\nexport enum FontStyle {\n Italic = 'italic',\n Normal = 'not-italic',\n}\n\nexport enum TextTransform {\n Uppercase = 'uppercase',\n Lowercase = 'lowercase',\n Capitalize = 'capitalize',\n Normal = 'normal-case',\n}\n\nexport enum FontFamily {\n Default = 'font-centrano1',\n Accent = 'font-mmsans',\n Hero = 'font-mmpoly',\n}\n"]}
@@ -20,11 +20,18 @@ export type TextProps = {
20
20
  className?: string;
21
21
  /**
22
22
  * Optional prop to control the font weight of the text.
23
- * - Normal: 400
23
+ * - Regular: 400
24
24
  * - Medium: 500
25
25
  * - Bold: 700
26
26
  */
27
27
  fontWeight?: FontWeight;
28
+ /**
29
+ * Optional prop to adjust the font family.
30
+ * - Default: centrano1
31
+ * - Accent: mmsans
32
+ * - Hero: mmpoly
33
+ */
34
+ fontFamily?: FontFamily;
28
35
  /**
29
36
  * Optional prop to control the font style of the text.
30
37
  * Options: Normal, Italic
@@ -61,6 +68,10 @@ export type TextProps = {
61
68
  * @default TextColor.TextDefault
62
69
  */
63
70
  color?: TextColor;
71
+ /**
72
+ * Optional prop for testing purposes
73
+ */
74
+ 'data-testid'?: string;
64
75
  };
65
76
  export declare enum TextVariant {
66
77
  DisplayLg = "display-lg",
@@ -127,7 +138,7 @@ export declare enum FontWeight {
127
138
  /**
128
139
  * Weight - 400
129
140
  */
130
- Normal = "font-normal"
141
+ Regular = "font-regular"
131
142
  }
132
143
  export declare enum OverflowWrap {
133
144
  BreakWord = "break-words",
@@ -144,4 +155,9 @@ export declare enum TextTransform {
144
155
  Capitalize = "capitalize",
145
156
  Normal = "normal-case"
146
157
  }
158
+ export declare enum FontFamily {
159
+ Default = "font-centrano1",
160
+ Accent = "font-mmsans",
161
+ Hero = "font-mmpoly"
162
+ }
147
163
  //# sourceMappingURL=Text.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,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H,IAAI,cAAc;IAClB;;OAEG;IACH,MAAM,gBAAgB;IACtB;;OAEG;IACH,MAAM,gBAAgB;CACvB;AAED,oBAAY,YAAY;IACtB,SAAS,gBAAgB;IACzB,QAAQ,cAAc;IACtB,MAAM,iBAAiB;CACxB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,MAAM,eAAe;CACtB;AAED,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,gBAAgB;CACvB"}
1
+ {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,WAAW;IAErB,SAAS,eAAe;IACxB,SAAS,eAAe;IAGxB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AU;IACpB,OAAO,mBAAmB;IAC1B,MAAM,gBAAgB;IACtB,IAAI,gBAAgB;CACrB"}
@@ -20,11 +20,18 @@ export type TextProps = {
20
20
  className?: string;
21
21
  /**
22
22
  * Optional prop to control the font weight of the text.
23
- * - Normal: 400
23
+ * - Regular: 400
24
24
  * - Medium: 500
25
25
  * - Bold: 700
26
26
  */
27
27
  fontWeight?: FontWeight;
28
+ /**
29
+ * Optional prop to adjust the font family.
30
+ * - Default: centrano1
31
+ * - Accent: mmsans
32
+ * - Hero: mmpoly
33
+ */
34
+ fontFamily?: FontFamily;
28
35
  /**
29
36
  * Optional prop to control the font style of the text.
30
37
  * Options: Normal, Italic
@@ -61,6 +68,10 @@ export type TextProps = {
61
68
  * @default TextColor.TextDefault
62
69
  */
63
70
  color?: TextColor;
71
+ /**
72
+ * Optional prop for testing purposes
73
+ */
74
+ 'data-testid'?: string;
64
75
  };
65
76
  export declare enum TextVariant {
66
77
  DisplayLg = "display-lg",
@@ -127,7 +138,7 @@ export declare enum FontWeight {
127
138
  /**
128
139
  * Weight - 400
129
140
  */
130
- Normal = "font-normal"
141
+ Regular = "font-regular"
131
142
  }
132
143
  export declare enum OverflowWrap {
133
144
  BreakWord = "break-words",
@@ -144,4 +155,9 @@ export declare enum TextTransform {
144
155
  Capitalize = "capitalize",
145
156
  Normal = "normal-case"
146
157
  }
158
+ export declare enum FontFamily {
159
+ Default = "font-centrano1",
160
+ Accent = "font-mmsans",
161
+ Hero = "font-mmpoly"
162
+ }
147
163
  //# sourceMappingURL=Text.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAA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A8C;IAC9C,OAAO,iBAAiB;IACxB,sCAAsC;IACtC,WAAW,qBAAqB;CACjC;AAED,oBAAY,SAAS;IACnB,IAAI,cAAc;IAClB,MAAM,gBAAgB;IACtB,KAAK,eAAe;IACpB,OAAO,iBAAiB;CACzB;AAED,oBAAY,UAAU;IACpB;;OAEG;IACH,IAAI,cAAc;IAClB;;OAEG;IACH,MAAM,gBAAgB;IACtB;;OAEG;IACH,MAAM,gBAAgB;CACvB;AAED,oBAAY,YAAY;IACtB,SAAS,gBAAgB;IACzB,QAAQ,cAAc;IACtB,MAAM,iBAAiB;CACxB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,MAAM,eAAe;CACtB;AAED,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,gBAAgB;CACvB"}
1
+ {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH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c;IACtB,MAAM,iBAAiB;CACxB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,MAAM,eAAe;CACtB;AAED,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,gBAAgB;CACvB;AAED,oBAAY,UAAU;IACpB,OAAO,mBAAmB;IAC1B,MAAM,gBAAgB;IACtB,IAAI,gBAAgB;CACrB"}
@@ -70,7 +70,7 @@ export var FontWeight;
70
70
  /**
71
71
  * Weight - 400
72
72
  */
73
- FontWeight["Normal"] = "font-normal";
73
+ FontWeight["Regular"] = "font-regular";
74
74
  })(FontWeight || (FontWeight = {}));
75
75
  export var OverflowWrap;
76
76
  (function (OverflowWrap) {
@@ -90,4 +90,10 @@ export var TextTransform;
90
90
  TextTransform["Capitalize"] = "capitalize";
91
91
  TextTransform["Normal"] = "normal-case";
92
92
  })(TextTransform || (TextTransform = {}));
93
+ export var FontFamily;
94
+ (function (FontFamily) {
95
+ FontFamily["Default"] = "font-centrano1";
96
+ FontFamily["Accent"] = "font-mmsans";
97
+ FontFamily["Hero"] = "font-mmpoly";
98
+ })(FontFamily || (FontFamily = {}));
93
99
  //# sourceMappingURL=Text.types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":"AAgEA,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,aAAa;IACb,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;AACpB,CAAC,EAfW,WAAW,KAAX,WAAW,QAetB;AAED,MAAM,CAAN,IAAY,SAmCX;AAnCD,WAAY,SAAS;IACnB,gC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AAA;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,uCAAsB,CAAA;AACxB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["export type TextProps = {\n /**\n * Optional prop for inline styles\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to change the font size of the component. The Text component uses responsive font sizes.\n * Different variants map to specific HTML elements by default.\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: React.ReactNode;\n /**\n * Optional prop for additional CSS classes to be applied to the Text component.\n */\n className?: string;\n /**\n * Optional prop to control the font weight of the text.\n * - Normal: 400\n * - Medium: 500\n * - Bold: 700\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to control the font style of the text.\n * Options: Normal, Italic\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to apply text transformation to the content.\n * Options: Uppercase, Lowercase, Capitalize, Normal\n */\n textTransform?: TextTransform;\n /**\n * Optional prop to control the text alignment within its container.\n * Options: Left, Center, Right, Justify\n */\n textAlign?: TextAlign;\n /**\n * Optional prop to determine how text should wrap when it reaches the edge of its container.\n * Options: BreakWord, Anywhere, Normal\n */\n overflowWrap?: OverflowWrap;\n /**\n * Optional prop that when true, adds an ellipsis (...) when text overflows its container.\n * @default false\n */\n ellipsis?: boolean;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a default DOM element.\n * @default false\n */\n asChild?: boolean;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n};\n\nexport enum TextVariant {\n // Display Sizes\n DisplayLg = 'display-lg',\n DisplayMd = 'display-md',\n\n // Heading Sizes\n HeadingLg = 'heading-lg',\n HeadingMd = 'heading-md',\n HeadingSm = 'heading-sm',\n\n // Font Sizes\n BodyLg = 'body-lg',\n BodyMd = 'body-md',\n BodySm = 'body-sm',\n BodyXs = 'body-xs',\n}\n\nexport enum TextColor {\n /** For default neutral text. */\n TextDefault = 'text-default',\n /** For softer contrast neutral text */\n TextAlternative = 'text-alternative',\n /** For the softest contrast neutral text (not accessible) */\n TextMuted = 'text-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse = 'text-overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault = 'text-primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse = 'text-primary-inverse',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault = 'text-error-default',\n /** For the stronger contrast error semantic elements. */\n ErrorAlternative = 'text-error-alternative',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse = 'text-error-inverse',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault = 'text-success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse = 'text-success-inverse',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault = 'text-warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse = 'text-warning-inverse',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault = 'text-info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse = 'text-info-inverse',\n /** Inherit the color of the parent element */\n Inherit = 'text-inherit',\n /** Make the text color transparent */\n Transparent = 'text-transparent',\n}\n\nexport enum TextAlign {\n Left = 'text-left',\n Center = 'text-center',\n Right = 'text-right',\n Justify = 'text-justify',\n}\n\nexport enum FontWeight {\n /**\n * Weight - 700\n */\n Bold = 'font-bold',\n /**\n * Weight - 500\n */\n Medium = 'font-medium',\n /**\n * Weight - 400\n */\n Normal = 'font-normal',\n}\n\nexport enum OverflowWrap {\n BreakWord = 'break-words',\n Anywhere = 'break-all',\n Normal = 'break-normal',\n}\n\nexport enum FontStyle {\n Italic = 'italic',\n Normal = 'not-italic',\n}\n\nexport enum TextTransform {\n Uppercase = 'uppercase',\n Lowercase = 'lowercase',\n Capitalize = 'capitalize',\n Normal = 'normal-case',\n}\n"]}
1
+ {"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/components/text/Text.types.ts"],"names":[],"mappings":"AA2EA,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,gBAAgB;IAChB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IAExB,aAAa;IACb,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,iCAAkB,CAAA;AACpB,CAAC,EAfW,WAAW,KAAX,WAAW,QAetB;AAED,MAAM,CAAN,IAAY,SAmCX;AAnCD,WAAY,SAAS;IACnB,gCAAgC;IAChC,yCAA4B,CAAA;IAC5B,uCAAuC;IACvC,iDAAoC,CAAA;IACpC,6DAA6D;IAC7D,qCAAwB,CAAA;IACxB,qFAAqF;IACrF,oDAAuC,CAAA;IACvC,iGAAiG;IACjG,oDAAuC,CAAA;IACvC,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,0FAA0F;IAC1F,gDAAmC,CAAA;IACnC,yDAAyD;IACzD,wDAA2C,CAAA;IAC3C,+EAA+E;IAC/E,gDAAmC,CAAA;IACnC,oFAAoF;IACpF,oDAAuC,CAAA;IACvC,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,yFAAyF;IACzF,oDAAuC,CAAA;IACvC,iFAAiF;IACjF,oDAAuC,CAAA;IACvC,sFAAsF;IACtF,8CAAiC,CAAA;IACjC,8EAA8E;IAC9E,8CAAiC,CAAA;IACjC,8CAA8C;IAC9C,qCAAwB,CAAA;IACxB,sCAAsC;IACtC,6CAAgC,CAAA;AAClC,CAAC,EAnCW,SAAS,KAAT,SAAS,QAmCpB;AAED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAAkB,CAAA;IAClB,mCAAsB,CAAA;IACtB,iCAAoB,CAAA;IACpB,qCAAwB,CAAA;AAC1B,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAED,MAAM,CAAN,IAAY,UAaX;AAbD,WAAY,UAAU;IACpB;;OAEG;IACH,gCAAkB,CAAA;IAClB;;OAEG;IACH,oCAAsB,CAAA;IACtB;;OAEG;IACH,sCAAwB,CAAA;AAC1B,CAAC,EAbW,UAAU,KAAV,UAAU,QAarB;AAED,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,sCAAsB,CAAA;IACtB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,uCAAsB,CAAA;AACxB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,kCAAoB,CAAA;AACtB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB","sourcesContent":["export type TextProps = {\n /**\n * Optional prop for inline styles\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to change the font size of the component. The Text component uses responsive font sizes.\n * Different variants map to specific HTML elements by default.\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: React.ReactNode;\n /**\n * Optional prop for additional CSS classes to be applied to the Text component.\n */\n className?: string;\n /**\n * Optional prop to control the font weight of the text.\n * - Regular: 400\n * - Medium: 500\n * - Bold: 700\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * - Default: centrano1\n * - Accent: mmsans\n * - Hero: mmpoly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to control the font style of the text.\n * Options: Normal, Italic\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to apply text transformation to the content.\n * Options: Uppercase, Lowercase, Capitalize, Normal\n */\n textTransform?: TextTransform;\n /**\n * Optional prop to control the text alignment within its container.\n * Options: Left, Center, Right, Justify\n */\n textAlign?: TextAlign;\n /**\n * Optional prop to determine how text should wrap when it reaches the edge of its container.\n * Options: BreakWord, Anywhere, Normal\n */\n overflowWrap?: OverflowWrap;\n /**\n * Optional prop that when true, adds an ellipsis (...) when text overflows its container.\n * @default false\n */\n ellipsis?: boolean;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a default DOM element.\n * @default false\n */\n asChild?: boolean;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n /**\n * Optional prop for testing purposes\n */\n 'data-testid'?: string;\n};\n\nexport enum TextVariant {\n // Display Sizes\n DisplayLg = 'display-lg',\n DisplayMd = 'display-md',\n\n // Heading Sizes\n HeadingLg = 'heading-lg',\n HeadingMd = 'heading-md',\n HeadingSm = 'heading-sm',\n\n // Font Sizes\n BodyLg = 'body-lg',\n BodyMd = 'body-md',\n BodySm = 'body-sm',\n BodyXs = 'body-xs',\n}\n\nexport enum TextColor {\n /** For default neutral text. */\n TextDefault = 'text-default',\n /** For softer contrast neutral text */\n TextAlternative = 'text-alternative',\n /** For the softest contrast neutral text (not accessible) */\n TextMuted = 'text-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse = 'text-overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault = 'text-primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse = 'text-primary-inverse',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault = 'text-error-default',\n /** For the stronger contrast error semantic elements. */\n ErrorAlternative = 'text-error-alternative',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse = 'text-error-inverse',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault = 'text-success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse = 'text-success-inverse',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault = 'text-warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse = 'text-warning-inverse',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault = 'text-info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse = 'text-info-inverse',\n /** Inherit the color of the parent element */\n Inherit = 'text-inherit',\n /** Make the text color transparent */\n Transparent = 'text-transparent',\n}\n\nexport enum TextAlign {\n Left = 'text-left',\n Center = 'text-center',\n Right = 'text-right',\n Justify = 'text-justify',\n}\n\nexport enum FontWeight {\n /**\n * Weight - 700\n */\n Bold = 'font-bold',\n /**\n * Weight - 500\n */\n Medium = 'font-medium',\n /**\n * Weight - 400\n */\n Regular = 'font-regular',\n}\n\nexport enum OverflowWrap {\n BreakWord = 'break-words',\n Anywhere = 'break-all',\n Normal = 'break-normal',\n}\n\nexport enum FontStyle {\n Italic = 'italic',\n Normal = 'not-italic',\n}\n\nexport enum TextTransform {\n Uppercase = 'uppercase',\n Lowercase = 'lowercase',\n Capitalize = 'capitalize',\n Normal = 'normal-case',\n}\n\nexport enum FontFamily {\n Default = 'font-centrano1',\n Accent = 'font-mmsans',\n Hero = 'font-mmpoly',\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OverflowWrap = exports.TextTransform = exports.FontStyle = exports.FontWeight = exports.TextAlign = exports.TextColor = exports.TextVariant = exports.Text = void 0;
3
+ exports.OverflowWrap = exports.TextTransform = exports.FontStyle = exports.FontFamily = exports.FontWeight = exports.TextAlign = exports.TextColor = exports.TextVariant = exports.Text = void 0;
4
4
  var Text_1 = require("./Text.cjs");
5
5
  Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
6
6
  var Text_types_1 = require("./Text.types.cjs");
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function
8
8
  Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return Text_types_1.TextColor; } });
9
9
  Object.defineProperty(exports, "TextAlign", { enumerable: true, get: function () { return Text_types_1.TextAlign; } });
10
10
  Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return Text_types_1.FontWeight; } });
11
+ Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return Text_types_1.FontFamily; } });
11
12
  Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return Text_types_1.FontStyle; } });
12
13
  Object.defineProperty(exports, "TextTransform", { enumerable: true, get: function () { return Text_types_1.TextTransform; } });
13
14
  Object.defineProperty(exports, "OverflowWrap", { enumerable: true, get: function () { return Text_types_1.OverflowWrap; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+CAQsB;AAPpB,yGAAA,WAAW,OAAA;AACX,uGAAA,SAAS,OAAA;AACT,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,uGAAA,SAAS,OAAA;AACT,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA","sourcesContent":["export { Text } from './Text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './Text.types';\nexport type { TextProps } from './Text.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+CASsB;AARpB,yGAAA,WAAW,OAAA;AACX,uGAAA,SAAS,OAAA;AACT,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,wGAAA,UAAU,OAAA;AACV,uGAAA,SAAS,OAAA;AACT,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA","sourcesContent":["export { Text } from './Text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontFamily,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './Text.types';\nexport type { TextProps } from './Text.types';\n"]}
@@ -1,4 +1,4 @@
1
1
  export { Text } from "./Text.cjs";
2
- export { TextVariant, TextColor, TextAlign, FontWeight, FontStyle, TextTransform, OverflowWrap, } from "./Text.types.cjs";
2
+ export { TextVariant, TextColor, TextAlign, FontWeight, FontFamily, FontStyle, TextTransform, OverflowWrap, } from "./Text.types.cjs";
3
3
  export type { TextProps } from "./Text.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,GACb,yBAAqB;AACtB,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,GACb,yBAAqB;AACtB,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -1,4 +1,4 @@
1
1
  export { Text } from "./Text.mjs";
2
- export { TextVariant, TextColor, TextAlign, FontWeight, FontStyle, TextTransform, OverflowWrap, } from "./Text.types.mjs";
2
+ export { TextVariant, TextColor, TextAlign, FontWeight, FontFamily, FontStyle, TextTransform, OverflowWrap, } from "./Text.types.mjs";
3
3
  export type { TextProps } from "./Text.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,GACb,yBAAqB;AACtB,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,GACb,yBAAqB;AACtB,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -1,3 +1,3 @@
1
1
  export { Text } from "./Text.mjs";
2
- export { TextVariant, TextColor, TextAlign, FontWeight, FontStyle, TextTransform, OverflowWrap } from "./Text.types.mjs";
2
+ export { TextVariant, TextColor, TextAlign, FontWeight, FontFamily, FontStyle, TextTransform, OverflowWrap } from "./Text.types.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACb,yBAAqB","sourcesContent":["export { Text } from './Text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './Text.types';\nexport type { TextProps } from './Text.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACb,yBAAqB","sourcesContent":["export { Text } from './Text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontFamily,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './Text.types';\nexport type { TextProps } from './Text.types';\n"]}
@@ -0,0 +1,49 @@
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.TextButton = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const tw_merge_1 = require("../../utils/tw-merge.cjs");
9
+ const button_base_1 = require("../button-base/index.cjs");
10
+ const text_1 = require("../text/index.cjs");
11
+ exports.TextButton = react_1.default.forwardRef(({ className, isInverse, isDisabled, isLoading, textVariant = text_1.TextVariant.BodyMd, textProps, ...props }, ref) => {
12
+ const isInteractive = !(isDisabled ?? isLoading);
13
+ const mergedClassName = (0, tw_merge_1.twMerge)(
14
+ // Reset padding, height and animations
15
+ 'px-0 h-auto bg-transparent rounded-none', 'transform-none transition-none active:scale-100',
16
+ // Default text button styles
17
+ !isInverse && [
18
+ 'text-primary-default',
19
+ // Loading state uses pressed color
20
+ isLoading && 'text-primary-default-pressed',
21
+ ],
22
+ // Inverse styles
23
+ isInverse && [
24
+ 'text-primary-inverse',
25
+ // Loading state uses pressed color
26
+ isLoading && 'text-primary-inverse',
27
+ ],
28
+ // Hover/Active states - only applied when interactive
29
+ isInteractive && [
30
+ !isInverse && [
31
+ 'hover:bg-hover hover:text-primary-default-hover hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-default-hover',
32
+ 'active:bg-pressed active:text-primary-default-pressed active:decoration-primary-default-pressed',
33
+ ],
34
+ isInverse && [
35
+ 'hover:bg-hover hover:text-primary-inverse hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-inverse',
36
+ 'active:bg-pressed active:text-primary-inverse active:decoration-primary-inverse',
37
+ ],
38
+ ],
39
+ // Loading styles
40
+ isLoading && 'cursor-not-allowed',
41
+ // Disabled styles (but not loading)
42
+ isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'], className);
43
+ return (react_1.default.createElement(button_base_1.ButtonBase, { ref: ref, className: mergedClassName, isDisabled: isDisabled, isLoading: isLoading, textProps: {
44
+ variant: textVariant,
45
+ ...textProps,
46
+ }, ...props }));
47
+ });
48
+ exports.TextButton.displayName = 'TextButton';
49
+ //# sourceMappingURL=TextButton.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.cjs","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uDAA+C;AAC/C,0DAA4C;AAC5C,4CAAsC;AAGzB,QAAA,UAAU,GAAG,eAAK,CAAC,UAAU,CACxC,CACE,EACE,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,GAAG,kBAAW,CAAC,MAAM,EAChC,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,IAAA,kBAAO;IAC7B,uCAAuC;IACvC,yCAAyC,EACzC,iDAAiD;IACjD,6BAA6B;IAC7B,CAAC,SAAS,IAAI;QACZ,sBAAsB;QACtB,mCAAmC;QACnC,SAAS,IAAI,8BAA8B;KAC5C;IACD,iBAAiB;IACjB,SAAS,IAAI;QACX,sBAAsB;QACtB,mCAAmC;QACnC,SAAS,IAAI,sBAAsB;KACpC;IACD,sDAAsD;IACtD,aAAa,IAAI;QACf,CAAC,SAAS,IAAI;YACZ,oJAAoJ;YACpJ,iGAAiG;SAClG;QACD,SAAS,IAAI;YACX,wIAAwI;YACxI,iFAAiF;SAClF;KACF;IACD,iBAAiB;IACjB,SAAS,IAAI,oBAAoB;IACjC,oCAAoC;IACpC,UAAU,IAAI,CAAC,SAAS,IAAI,CAAC,YAAY,EAAE,oBAAoB,CAAC,EAChE,SAAS,CACV,CAAC;IAEF,OAAO,CACL,8BAAC,wBAAU,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE;YACT,OAAO,EAAE,WAAW;YACpB,GAAG,SAAS;SACb,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport { TextVariant } from '../text';\nimport type { TextButtonProps } from './TextButton.types';\n\nexport const TextButton = React.forwardRef<HTMLButtonElement, TextButtonProps>(\n (\n {\n className,\n isInverse,\n isDisabled,\n isLoading,\n textVariant = TextVariant.BodyMd,\n textProps,\n ...props\n },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Reset padding, height and animations\n 'px-0 h-auto bg-transparent rounded-none',\n 'transform-none transition-none active:scale-100',\n // Default text button styles\n !isInverse && [\n 'text-primary-default',\n // Loading state uses pressed color\n isLoading && 'text-primary-default-pressed',\n ],\n // Inverse styles\n isInverse && [\n 'text-primary-inverse',\n // Loading state uses pressed color\n isLoading && 'text-primary-inverse',\n ],\n // Hover/Active states - only applied when interactive\n isInteractive && [\n !isInverse && [\n 'hover:bg-hover hover:text-primary-default-hover hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-default-hover',\n 'active:bg-pressed active:text-primary-default-pressed active:decoration-primary-default-pressed',\n ],\n isInverse && [\n 'hover:bg-hover hover:text-primary-inverse hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-inverse',\n 'active:bg-pressed active:text-primary-inverse active:decoration-primary-inverse',\n ],\n ],\n // Loading styles\n isLoading && 'cursor-not-allowed',\n // Disabled styles (but not loading)\n isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'],\n className,\n );\n\n return (\n <ButtonBase\n ref={ref}\n className={mergedClassName}\n isDisabled={isDisabled}\n isLoading={isLoading}\n textProps={{\n variant: textVariant,\n ...textProps,\n }}\n {...props}\n />\n );\n },\n);\n\nTextButton.displayName = 'TextButton';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { TextButtonProps } from "./TextButton.types.cjs";
3
+ export declare const TextButton: React.ForwardRefExoticComponent<Omit<TextButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=TextButton.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.d.cts","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGA+DtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { TextButtonProps } from "./TextButton.types.mjs";
3
+ export declare const TextButton: React.ForwardRefExoticComponent<Omit<TextButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=TextButton.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.d.mts","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGA+DtB,CAAC"}
@@ -0,0 +1,50 @@
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 { twMerge } from "../../utils/tw-merge.mjs";
10
+ import { ButtonBase } from "../button-base/index.mjs";
11
+ import { TextVariant } from "../text/index.mjs";
12
+ export const TextButton = React.forwardRef(({ className, isInverse, isDisabled, isLoading, textVariant = TextVariant.BodyMd, textProps, ...props }, ref) => {
13
+ const isInteractive = !(isDisabled ?? isLoading);
14
+ const mergedClassName = twMerge(
15
+ // Reset padding, height and animations
16
+ 'px-0 h-auto bg-transparent rounded-none', 'transform-none transition-none active:scale-100',
17
+ // Default text button styles
18
+ !isInverse && [
19
+ 'text-primary-default',
20
+ // Loading state uses pressed color
21
+ isLoading && 'text-primary-default-pressed',
22
+ ],
23
+ // Inverse styles
24
+ isInverse && [
25
+ 'text-primary-inverse',
26
+ // Loading state uses pressed color
27
+ isLoading && 'text-primary-inverse',
28
+ ],
29
+ // Hover/Active states - only applied when interactive
30
+ isInteractive && [
31
+ !isInverse && [
32
+ 'hover:bg-hover hover:text-primary-default-hover hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-default-hover',
33
+ 'active:bg-pressed active:text-primary-default-pressed active:decoration-primary-default-pressed',
34
+ ],
35
+ isInverse && [
36
+ 'hover:bg-hover hover:text-primary-inverse hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-inverse',
37
+ 'active:bg-pressed active:text-primary-inverse active:decoration-primary-inverse',
38
+ ],
39
+ ],
40
+ // Loading styles
41
+ isLoading && 'cursor-not-allowed',
42
+ // Disabled styles (but not loading)
43
+ isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'], className);
44
+ return (React.createElement(ButtonBase, { ref: ref, className: mergedClassName, isDisabled: isDisabled, isLoading: isLoading, textProps: {
45
+ variant: textVariant,
46
+ ...textProps,
47
+ }, ...props }));
48
+ });
49
+ TextButton.displayName = 'TextButton';
50
+ //# sourceMappingURL=TextButton.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.mjs","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,UAAU,EAAE,iCAAuB;AAC5C,OAAO,EAAE,WAAW,EAAE,0BAAgB;AAGtC,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACxC,CACE,EACE,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,GAAG,WAAW,CAAC,MAAM,EAChC,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,OAAO;IAC7B,uCAAuC;IACvC,yCAAyC,EACzC,iDAAiD;IACjD,6BAA6B;IAC7B,CAAC,SAAS,IAAI;QACZ,sBAAsB;QACtB,mCAAmC;QACnC,SAAS,IAAI,8BAA8B;KAC5C;IACD,iBAAiB;IACjB,SAAS,IAAI;QACX,sBAAsB;QACtB,mCAAmC;QACnC,SAAS,IAAI,sBAAsB;KACpC;IACD,sDAAsD;IACtD,aAAa,IAAI;QACf,CAAC,SAAS,IAAI;YACZ,oJAAoJ;YACpJ,iGAAiG;SAClG;QACD,SAAS,IAAI;YACX,wIAAwI;YACxI,iFAAiF;SAClF;KACF;IACD,iBAAiB;IACjB,SAAS,IAAI,oBAAoB;IACjC,oCAAoC;IACpC,UAAU,IAAI,CAAC,SAAS,IAAI,CAAC,YAAY,EAAE,oBAAoB,CAAC,EAChE,SAAS,CACV,CAAC;IAEF,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE;YACT,OAAO,EAAE,WAAW;YACpB,GAAG,SAAS;SACb,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport { TextVariant } from '../text';\nimport type { TextButtonProps } from './TextButton.types';\n\nexport const TextButton = React.forwardRef<HTMLButtonElement, TextButtonProps>(\n (\n {\n className,\n isInverse,\n isDisabled,\n isLoading,\n textVariant = TextVariant.BodyMd,\n textProps,\n ...props\n },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Reset padding, height and animations\n 'px-0 h-auto bg-transparent rounded-none',\n 'transform-none transition-none active:scale-100',\n // Default text button styles\n !isInverse && [\n 'text-primary-default',\n // Loading state uses pressed color\n isLoading && 'text-primary-default-pressed',\n ],\n // Inverse styles\n isInverse && [\n 'text-primary-inverse',\n // Loading state uses pressed color\n isLoading && 'text-primary-inverse',\n ],\n // Hover/Active states - only applied when interactive\n isInteractive && [\n !isInverse && [\n 'hover:bg-hover hover:text-primary-default-hover hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-default-hover',\n 'active:bg-pressed active:text-primary-default-pressed active:decoration-primary-default-pressed',\n ],\n isInverse && [\n 'hover:bg-hover hover:text-primary-inverse hover:underline hover:decoration-2 hover:underline-offset-4 hover:decoration-primary-inverse',\n 'active:bg-pressed active:text-primary-inverse active:decoration-primary-inverse',\n ],\n ],\n // Loading styles\n isLoading && 'cursor-not-allowed',\n // Disabled styles (but not loading)\n isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'],\n className,\n );\n\n return (\n <ButtonBase\n ref={ref}\n className={mergedClassName}\n isDisabled={isDisabled}\n isLoading={isLoading}\n textProps={{\n variant: textVariant,\n ...textProps,\n }}\n {...props}\n />\n );\n },\n);\n\nTextButton.displayName = 'TextButton';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TextButton.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.types.cjs","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../button-base';\nimport type { TextVariant } from '../text';\n\nexport type TextButtonProps = Omit<\n ButtonBaseProps,\n // We handle these props in TextButton\n 'className' | 'isDisabled' | 'isLoading' | 'style' | 'size'\n> & {\n /**\n * Optional prop for additional CSS classes to be applied to the TextButton component\n */\n className?: string;\n /**\n * Optional prop that when true, applies inverse styling to the button\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop that when true, disables the button\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop that when true, shows a loading spinner\n * @default false\n */\n isLoading?: boolean;\n /**\n * Optional prop to specify the text variant\n * @default TextVariant.BodyMd\n */\n textVariant?: TextVariant;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import type { ButtonBaseProps } from "../button-base/index.cjs";
3
+ import type { TextVariant } from "../text/index.cjs";
4
+ export type TextButtonProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style' | 'size'> & {
5
+ /**
6
+ * Optional prop for additional CSS classes to be applied to the TextButton component
7
+ */
8
+ className?: string;
9
+ /**
10
+ * Optional prop that when true, applies inverse styling to the button
11
+ * @default false
12
+ */
13
+ isInverse?: boolean;
14
+ /**
15
+ * Optional prop that when true, disables the button
16
+ * @default false
17
+ */
18
+ isDisabled?: boolean;
19
+ /**
20
+ * Optional prop that when true, shows a loading spinner
21
+ * @default false
22
+ */
23
+ isLoading?: boolean;
24
+ /**
25
+ * Optional prop to specify the text variant
26
+ * @default TextVariant.BodyMd
27
+ */
28
+ textVariant?: TextVariant;
29
+ /**
30
+ * Optional CSS styles to be applied to the component.
31
+ * Should be used sparingly and only for dynamic styles that can't be achieved with className.
32
+ */
33
+ style?: React.CSSProperties;
34
+ };
35
+ //# sourceMappingURL=TextButton.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.types.d.cts","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAuB;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,0BAAgB;AAE3C,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,eAAe,EAEf,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAC5D,GAAG;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import type { ButtonBaseProps } from "../button-base/index.mjs";
3
+ import type { TextVariant } from "../text/index.mjs";
4
+ export type TextButtonProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style' | 'size'> & {
5
+ /**
6
+ * Optional prop for additional CSS classes to be applied to the TextButton component
7
+ */
8
+ className?: string;
9
+ /**
10
+ * Optional prop that when true, applies inverse styling to the button
11
+ * @default false
12
+ */
13
+ isInverse?: boolean;
14
+ /**
15
+ * Optional prop that when true, disables the button
16
+ * @default false
17
+ */
18
+ isDisabled?: boolean;
19
+ /**
20
+ * Optional prop that when true, shows a loading spinner
21
+ * @default false
22
+ */
23
+ isLoading?: boolean;
24
+ /**
25
+ * Optional prop to specify the text variant
26
+ * @default TextVariant.BodyMd
27
+ */
28
+ textVariant?: TextVariant;
29
+ /**
30
+ * Optional CSS styles to be applied to the component.
31
+ * Should be used sparingly and only for dynamic styles that can't be achieved with className.
32
+ */
33
+ style?: React.CSSProperties;
34
+ };
35
+ //# sourceMappingURL=TextButton.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.types.d.mts","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAuB;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,0BAAgB;AAE3C,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,eAAe,EAEf,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAC5D,GAAG;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextButton.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextButton.types.mjs","sourceRoot":"","sources":["../../../src/components/text-button/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../button-base';\nimport type { TextVariant } from '../text';\n\nexport type TextButtonProps = Omit<\n ButtonBaseProps,\n // We handle these props in TextButton\n 'className' | 'isDisabled' | 'isLoading' | 'style' | 'size'\n> & {\n /**\n * Optional prop for additional CSS classes to be applied to the TextButton component\n */\n className?: string;\n /**\n * Optional prop that when true, applies inverse styling to the button\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop that when true, disables the button\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop that when true, shows a loading spinner\n * @default false\n */\n isLoading?: boolean;\n /**\n * Optional prop to specify the text variant\n * @default TextVariant.BodyMd\n */\n textVariant?: TextVariant;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextButton = void 0;
4
+ var TextButton_1 = require("./TextButton.cjs");
5
+ Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/text-button/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { TextButton } from './TextButton';\nexport type { TextButtonProps } from './TextButton.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TextButton } from "./TextButton.cjs";
2
+ export type { TextButtonProps } from "./TextButton.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/text-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -0,0 +1,3 @@
1
+ export { TextButton } from "./TextButton.mjs";
2
+ export type { TextButtonProps } from "./TextButton.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/text-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -0,0 +1,2 @@
1
+ export { TextButton } from "./TextButton.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/text-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export { TextButton } from './TextButton';\nexport type { TextButtonProps } from './TextButton.types';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-react",
3
- "version": "0.0.0-preview.ad2f94b",
3
+ "version": "0.0.0-preview.c0b5e45",
4
4
  "description": "Design system react ui components",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -50,15 +50,20 @@
50
50
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
51
51
  },
52
52
  "dependencies": {
53
+ "@metamask/jazzicon": "^2.0.0",
54
+ "@metamask/utils": "^11.3.0",
53
55
  "@radix-ui/react-slot": "^1.1.0",
56
+ "@solana/addresses": "^2.1.0",
57
+ "bitcoin-address-validation": "^3.0.0",
58
+ "blo": "^1.2.0",
54
59
  "tailwind-merge": "^2.0.0"
55
60
  },
56
61
  "devDependencies": {
57
62
  "@jest/globals": "^29.7.0",
58
- "@metamask-previews/design-system-tailwind-preset": "0.0.0-preview.ad2f94b",
59
- "@metamask/auto-changelog": "^3.4.4",
60
- "@storybook/react": "^8.3.5",
61
- "@storybook/test": "^8.3.5",
63
+ "@metamask-previews/design-system-tailwind-preset": "0.2.0-preview.c0b5e45",
64
+ "@metamask/auto-changelog": "^4.1.0",
65
+ "@storybook/react": "^8.5.3",
66
+ "@storybook/test": "^8.5.3",
62
67
  "@svgr/cli": "^8.1.0",
63
68
  "@testing-library/jest-dom": "^6.6.3",
64
69
  "@testing-library/react": "^16.0.1",
@@ -76,7 +81,7 @@
76
81
  "typescript": "~5.2.2"
77
82
  },
78
83
  "peerDependencies": {
79
- "@metamask/design-tokens": "^4.1.0",
84
+ "@metamask/design-tokens": "^6.0.0",
80
85
  "react": "^16.0.0",
81
86
  "react-dom": "^16.0.0",
82
87
  "tailwindcss": "^3.0.0"