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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/components/avatar-base/AvatarBase.cjs +28 -0
  2. package/dist/components/avatar-base/AvatarBase.cjs.map +1 -0
  3. package/dist/components/avatar-base/AvatarBase.constants.cjs +19 -0
  4. package/dist/components/avatar-base/AvatarBase.constants.cjs.map +1 -0
  5. package/dist/components/avatar-base/AvatarBase.constants.d.cts +4 -0
  6. package/dist/components/avatar-base/AvatarBase.constants.d.cts.map +1 -0
  7. package/dist/components/avatar-base/AvatarBase.constants.d.mts +4 -0
  8. package/dist/components/avatar-base/AvatarBase.constants.d.mts.map +1 -0
  9. package/dist/components/avatar-base/AvatarBase.constants.mjs +16 -0
  10. package/dist/components/avatar-base/AvatarBase.constants.mjs.map +1 -0
  11. package/dist/components/avatar-base/AvatarBase.d.cts +4 -0
  12. package/dist/components/avatar-base/AvatarBase.d.cts.map +1 -0
  13. package/dist/components/avatar-base/AvatarBase.d.mts +4 -0
  14. package/dist/components/avatar-base/AvatarBase.d.mts.map +1 -0
  15. package/dist/components/avatar-base/AvatarBase.mjs +29 -0
  16. package/dist/components/avatar-base/AvatarBase.mjs.map +1 -0
  17. package/dist/components/avatar-base/AvatarBase.types.cjs +38 -0
  18. package/dist/components/avatar-base/AvatarBase.types.cjs.map +1 -0
  19. package/dist/components/avatar-base/AvatarBase.types.d.cts +77 -0
  20. package/dist/components/avatar-base/AvatarBase.types.d.cts.map +1 -0
  21. package/dist/components/avatar-base/AvatarBase.types.d.mts +77 -0
  22. package/dist/components/avatar-base/AvatarBase.types.d.mts.map +1 -0
  23. package/dist/components/avatar-base/AvatarBase.types.mjs +35 -0
  24. package/dist/components/avatar-base/AvatarBase.types.mjs.map +1 -0
  25. package/dist/components/avatar-base/index.cjs +9 -0
  26. package/dist/components/avatar-base/index.cjs.map +1 -0
  27. package/dist/components/avatar-base/index.d.cts +4 -0
  28. package/dist/components/{button-link → avatar-base}/index.d.cts.map +1 -1
  29. package/dist/components/avatar-base/index.d.mts +4 -0
  30. package/dist/components/{button-link → avatar-base}/index.d.mts.map +1 -1
  31. package/dist/components/avatar-base/index.mjs +3 -0
  32. package/dist/components/avatar-base/index.mjs.map +1 -0
  33. package/dist/components/avatar-favicon/AvatarFavicon.cjs +16 -0
  34. package/dist/components/avatar-favicon/AvatarFavicon.cjs.map +1 -0
  35. package/dist/components/avatar-favicon/AvatarFavicon.constants.cjs +13 -0
  36. package/dist/components/avatar-favicon/AvatarFavicon.constants.cjs.map +1 -0
  37. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.cts +4 -0
  38. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.cts.map +1 -0
  39. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.mts +4 -0
  40. package/dist/components/avatar-favicon/AvatarFavicon.constants.d.mts.map +1 -0
  41. package/dist/components/avatar-favicon/AvatarFavicon.constants.mjs +10 -0
  42. package/dist/components/avatar-favicon/AvatarFavicon.constants.mjs.map +1 -0
  43. package/dist/components/avatar-favicon/AvatarFavicon.d.cts +4 -0
  44. package/dist/components/avatar-favicon/AvatarFavicon.d.cts.map +1 -0
  45. package/dist/components/avatar-favicon/AvatarFavicon.d.mts +4 -0
  46. package/dist/components/avatar-favicon/AvatarFavicon.d.mts.map +1 -0
  47. package/dist/components/avatar-favicon/AvatarFavicon.mjs +17 -0
  48. package/dist/components/avatar-favicon/AvatarFavicon.mjs.map +1 -0
  49. package/dist/components/avatar-favicon/AvatarFavicon.types.cjs +27 -0
  50. package/dist/components/avatar-favicon/AvatarFavicon.types.cjs.map +1 -0
  51. package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts +62 -0
  52. package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts.map +1 -0
  53. package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts +62 -0
  54. package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts.map +1 -0
  55. package/dist/components/avatar-favicon/AvatarFavicon.types.mjs +24 -0
  56. package/dist/components/avatar-favicon/AvatarFavicon.types.mjs.map +1 -0
  57. package/dist/components/avatar-favicon/index.cjs +8 -0
  58. package/dist/components/avatar-favicon/index.cjs.map +1 -0
  59. package/dist/components/avatar-favicon/index.d.cts +4 -0
  60. package/dist/components/avatar-favicon/index.d.cts.map +1 -0
  61. package/dist/components/avatar-favicon/index.d.mts +4 -0
  62. package/dist/components/avatar-favicon/index.d.mts.map +1 -0
  63. package/dist/components/avatar-favicon/index.mjs +3 -0
  64. package/dist/components/avatar-favicon/index.mjs.map +1 -0
  65. package/dist/components/avatar-icon/AvatarIcon.cjs +19 -0
  66. package/dist/components/avatar-icon/AvatarIcon.cjs.map +1 -0
  67. package/dist/components/avatar-icon/AvatarIcon.constants.cjs +44 -0
  68. package/dist/components/avatar-icon/AvatarIcon.constants.cjs.map +1 -0
  69. package/dist/components/avatar-icon/AvatarIcon.constants.d.cts +11 -0
  70. package/dist/components/avatar-icon/AvatarIcon.constants.d.cts.map +1 -0
  71. package/dist/components/avatar-icon/AvatarIcon.constants.d.mts +11 -0
  72. package/dist/components/avatar-icon/AvatarIcon.constants.d.mts.map +1 -0
  73. package/dist/components/avatar-icon/AvatarIcon.constants.mjs +41 -0
  74. package/dist/components/avatar-icon/AvatarIcon.constants.mjs.map +1 -0
  75. package/dist/components/avatar-icon/AvatarIcon.d.cts +4 -0
  76. package/dist/components/avatar-icon/AvatarIcon.d.cts.map +1 -0
  77. package/dist/components/avatar-icon/AvatarIcon.d.mts +4 -0
  78. package/dist/components/avatar-icon/AvatarIcon.d.mts.map +1 -0
  79. package/dist/components/avatar-icon/AvatarIcon.mjs +20 -0
  80. package/dist/components/avatar-icon/AvatarIcon.mjs.map +1 -0
  81. package/dist/components/avatar-icon/AvatarIcon.types.cjs +36 -0
  82. package/dist/components/avatar-icon/AvatarIcon.types.cjs.map +1 -0
  83. package/dist/components/avatar-icon/AvatarIcon.types.d.cts +57 -0
  84. package/dist/components/avatar-icon/AvatarIcon.types.d.cts.map +1 -0
  85. package/dist/components/avatar-icon/AvatarIcon.types.d.mts +57 -0
  86. package/dist/components/avatar-icon/AvatarIcon.types.d.mts.map +1 -0
  87. package/dist/components/avatar-icon/AvatarIcon.types.mjs +33 -0
  88. package/dist/components/avatar-icon/AvatarIcon.types.mjs.map +1 -0
  89. package/dist/components/avatar-icon/index.cjs +9 -0
  90. package/dist/components/avatar-icon/index.cjs.map +1 -0
  91. package/dist/components/avatar-icon/index.d.cts +4 -0
  92. package/dist/components/avatar-icon/index.d.cts.map +1 -0
  93. package/dist/components/avatar-icon/index.d.mts +4 -0
  94. package/dist/components/avatar-icon/index.d.mts.map +1 -0
  95. package/dist/components/avatar-icon/index.mjs +3 -0
  96. package/dist/components/avatar-icon/index.mjs.map +1 -0
  97. package/dist/components/avatar-network/AvatarNetwork.cjs +15 -0
  98. package/dist/components/avatar-network/AvatarNetwork.cjs.map +1 -0
  99. package/dist/components/avatar-network/AvatarNetwork.d.cts +4 -0
  100. package/dist/components/avatar-network/AvatarNetwork.d.cts.map +1 -0
  101. package/dist/components/avatar-network/AvatarNetwork.d.mts +4 -0
  102. package/dist/components/avatar-network/AvatarNetwork.d.mts.map +1 -0
  103. package/dist/components/avatar-network/AvatarNetwork.mjs +16 -0
  104. package/dist/components/avatar-network/AvatarNetwork.mjs.map +1 -0
  105. package/dist/components/avatar-network/AvatarNetwork.types.cjs +4 -0
  106. package/dist/components/avatar-network/AvatarNetwork.types.cjs.map +1 -0
  107. package/dist/components/avatar-network/AvatarNetwork.types.d.cts +40 -0
  108. package/dist/components/avatar-network/AvatarNetwork.types.d.cts.map +1 -0
  109. package/dist/components/avatar-network/AvatarNetwork.types.d.mts +40 -0
  110. package/dist/components/avatar-network/AvatarNetwork.types.d.mts.map +1 -0
  111. package/dist/components/avatar-network/AvatarNetwork.types.mjs +2 -0
  112. package/dist/components/avatar-network/AvatarNetwork.types.mjs.map +1 -0
  113. package/dist/components/avatar-network/index.cjs +8 -0
  114. package/dist/components/avatar-network/index.cjs.map +1 -0
  115. package/dist/components/avatar-network/index.d.cts +4 -0
  116. package/dist/components/avatar-network/index.d.cts.map +1 -0
  117. package/dist/components/avatar-network/index.d.mts +4 -0
  118. package/dist/components/avatar-network/index.d.mts.map +1 -0
  119. package/dist/components/avatar-network/index.mjs +3 -0
  120. package/dist/components/avatar-network/index.mjs.map +1 -0
  121. package/dist/components/avatar-token/AvatarToken.cjs +15 -0
  122. package/dist/components/avatar-token/AvatarToken.cjs.map +1 -0
  123. package/dist/components/avatar-token/AvatarToken.d.cts +4 -0
  124. package/dist/components/avatar-token/AvatarToken.d.cts.map +1 -0
  125. package/dist/components/avatar-token/AvatarToken.d.mts +4 -0
  126. package/dist/components/avatar-token/AvatarToken.d.mts.map +1 -0
  127. package/dist/components/avatar-token/AvatarToken.mjs +16 -0
  128. package/dist/components/avatar-token/AvatarToken.mjs.map +1 -0
  129. package/dist/components/avatar-token/AvatarToken.types.cjs +4 -0
  130. package/dist/components/avatar-token/AvatarToken.types.cjs.map +1 -0
  131. package/dist/components/avatar-token/AvatarToken.types.d.cts +40 -0
  132. package/dist/components/avatar-token/AvatarToken.types.d.cts.map +1 -0
  133. package/dist/components/avatar-token/AvatarToken.types.d.mts +40 -0
  134. package/dist/components/avatar-token/AvatarToken.types.d.mts.map +1 -0
  135. package/dist/components/avatar-token/AvatarToken.types.mjs +2 -0
  136. package/dist/components/avatar-token/AvatarToken.types.mjs.map +1 -0
  137. package/dist/components/avatar-token/index.cjs +8 -0
  138. package/dist/components/avatar-token/index.cjs.map +1 -0
  139. package/dist/components/avatar-token/index.d.cts +4 -0
  140. package/dist/components/avatar-token/index.d.cts.map +1 -0
  141. package/dist/components/avatar-token/index.d.mts +4 -0
  142. package/dist/components/avatar-token/index.d.mts.map +1 -0
  143. package/dist/components/avatar-token/index.mjs +3 -0
  144. package/dist/components/avatar-token/index.mjs.map +1 -0
  145. package/dist/components/button/Button.cjs +25 -0
  146. package/dist/components/button/Button.cjs.map +1 -0
  147. package/dist/components/button/Button.d.cts +4 -0
  148. package/dist/components/button/Button.d.cts.map +1 -0
  149. package/dist/components/button/Button.d.mts +4 -0
  150. package/dist/components/button/Button.d.mts.map +1 -0
  151. package/dist/components/button/Button.mjs +26 -0
  152. package/dist/components/button/Button.mjs.map +1 -0
  153. package/dist/components/button/Button.types.cjs +19 -0
  154. package/dist/components/button/Button.types.cjs.map +1 -0
  155. package/dist/components/button/Button.types.d.cts +31 -0
  156. package/dist/components/button/Button.types.d.cts.map +1 -0
  157. package/dist/components/button/Button.types.d.mts +31 -0
  158. package/dist/components/button/Button.types.d.mts.map +1 -0
  159. package/dist/components/button/Button.types.mjs +16 -0
  160. package/dist/components/button/Button.types.mjs.map +1 -0
  161. package/dist/components/button/index.cjs +10 -0
  162. package/dist/components/button/index.cjs.map +1 -0
  163. package/dist/components/button/index.d.cts +5 -0
  164. package/dist/components/button/index.d.cts.map +1 -0
  165. package/dist/components/button/index.d.mts +5 -0
  166. package/dist/components/button/index.d.mts.map +1 -0
  167. package/dist/components/button/index.mjs +4 -0
  168. package/dist/components/button/index.mjs.map +1 -0
  169. package/dist/components/button-base/ButtonBase.cjs +24 -10
  170. package/dist/components/button-base/ButtonBase.cjs.map +1 -1
  171. package/dist/components/button-base/ButtonBase.d.cts.map +1 -1
  172. package/dist/components/button-base/ButtonBase.d.mts.map +1 -1
  173. package/dist/components/button-base/ButtonBase.mjs +22 -8
  174. package/dist/components/button-base/ButtonBase.mjs.map +1 -1
  175. package/dist/components/button-base/ButtonBase.types.cjs.map +1 -1
  176. package/dist/components/button-base/ButtonBase.types.d.cts +1 -1
  177. package/dist/components/button-base/ButtonBase.types.d.mts +1 -1
  178. package/dist/components/button-base/ButtonBase.types.mjs.map +1 -1
  179. package/dist/components/button-icon/ButtonIcon.cjs +38 -0
  180. package/dist/components/button-icon/ButtonIcon.cjs.map +1 -0
  181. package/dist/components/button-icon/ButtonIcon.constants.cjs +16 -0
  182. package/dist/components/button-icon/ButtonIcon.constants.cjs.map +1 -0
  183. package/dist/components/button-icon/ButtonIcon.constants.d.cts +12 -0
  184. package/dist/components/button-icon/ButtonIcon.constants.d.cts.map +1 -0
  185. package/dist/components/button-icon/ButtonIcon.constants.d.mts +12 -0
  186. package/dist/components/button-icon/ButtonIcon.constants.d.mts.map +1 -0
  187. package/dist/components/button-icon/ButtonIcon.constants.mjs +13 -0
  188. package/dist/components/button-icon/ButtonIcon.constants.mjs.map +1 -0
  189. package/dist/components/button-icon/ButtonIcon.d.cts +4 -0
  190. package/dist/components/button-icon/ButtonIcon.d.cts.map +1 -0
  191. package/dist/components/button-icon/ButtonIcon.d.mts +4 -0
  192. package/dist/components/button-icon/ButtonIcon.d.mts.map +1 -0
  193. package/dist/components/button-icon/ButtonIcon.mjs +39 -0
  194. package/dist/components/button-icon/ButtonIcon.mjs.map +1 -0
  195. package/dist/components/button-icon/ButtonIcon.types.cjs +19 -0
  196. package/dist/components/button-icon/ButtonIcon.types.cjs.map +1 -0
  197. package/dist/components/button-icon/ButtonIcon.types.d.cts +61 -0
  198. package/dist/components/button-icon/ButtonIcon.types.d.cts.map +1 -0
  199. package/dist/components/button-icon/ButtonIcon.types.d.mts +61 -0
  200. package/dist/components/button-icon/ButtonIcon.types.d.mts.map +1 -0
  201. package/dist/components/button-icon/ButtonIcon.types.mjs +16 -0
  202. package/dist/components/button-icon/ButtonIcon.types.mjs.map +1 -0
  203. package/dist/components/button-icon/index.cjs +8 -0
  204. package/dist/components/button-icon/index.cjs.map +1 -0
  205. package/dist/components/button-icon/index.d.cts +4 -0
  206. package/dist/components/button-icon/index.d.cts.map +1 -0
  207. package/dist/components/button-icon/index.d.mts +4 -0
  208. package/dist/components/button-icon/index.d.mts.map +1 -0
  209. package/dist/components/button-icon/index.mjs +3 -0
  210. package/dist/components/button-icon/index.mjs.map +1 -0
  211. package/dist/components/button-primary/ButtonPrimary.cjs +45 -23
  212. package/dist/components/button-primary/ButtonPrimary.cjs.map +1 -1
  213. package/dist/components/button-primary/ButtonPrimary.d.cts.map +1 -1
  214. package/dist/components/button-primary/ButtonPrimary.d.mts.map +1 -1
  215. package/dist/components/button-primary/ButtonPrimary.mjs +45 -23
  216. package/dist/components/button-primary/ButtonPrimary.mjs.map +1 -1
  217. package/dist/components/button-secondary/ButtonSecondary.cjs +26 -25
  218. package/dist/components/button-secondary/ButtonSecondary.cjs.map +1 -1
  219. package/dist/components/button-secondary/ButtonSecondary.d.cts.map +1 -1
  220. package/dist/components/button-secondary/ButtonSecondary.d.mts.map +1 -1
  221. package/dist/components/button-secondary/ButtonSecondary.mjs +26 -25
  222. package/dist/components/button-secondary/ButtonSecondary.mjs.map +1 -1
  223. package/dist/components/button-tertiary/ButtonTertiary.cjs +60 -0
  224. package/dist/components/button-tertiary/ButtonTertiary.cjs.map +1 -0
  225. package/dist/components/button-tertiary/ButtonTertiary.d.cts +4 -0
  226. package/dist/components/button-tertiary/ButtonTertiary.d.cts.map +1 -0
  227. package/dist/components/button-tertiary/ButtonTertiary.d.mts +4 -0
  228. package/dist/components/button-tertiary/ButtonTertiary.d.mts.map +1 -0
  229. package/dist/components/button-tertiary/ButtonTertiary.mjs +61 -0
  230. package/dist/components/button-tertiary/ButtonTertiary.mjs.map +1 -0
  231. package/dist/components/button-tertiary/ButtonTertiary.types.cjs +3 -0
  232. package/dist/components/button-tertiary/ButtonTertiary.types.cjs.map +1 -0
  233. package/dist/components/{button-link/ButtonLink.types.d.cts → button-tertiary/ButtonTertiary.types.d.cts} +8 -3
  234. package/dist/components/button-tertiary/ButtonTertiary.types.d.cts.map +1 -0
  235. package/dist/components/{button-link/ButtonLink.types.d.mts → button-tertiary/ButtonTertiary.types.d.mts} +8 -3
  236. package/dist/components/button-tertiary/ButtonTertiary.types.d.mts.map +1 -0
  237. package/dist/components/button-tertiary/ButtonTertiary.types.mjs +2 -0
  238. package/dist/components/button-tertiary/ButtonTertiary.types.mjs.map +1 -0
  239. package/dist/components/button-tertiary/index.cjs +8 -0
  240. package/dist/components/button-tertiary/index.cjs.map +1 -0
  241. package/dist/components/button-tertiary/index.d.cts +4 -0
  242. package/dist/components/button-tertiary/index.d.cts.map +1 -0
  243. package/dist/components/button-tertiary/index.d.mts +4 -0
  244. package/dist/components/button-tertiary/index.d.mts.map +1 -0
  245. package/dist/components/button-tertiary/index.mjs +3 -0
  246. package/dist/components/button-tertiary/index.mjs.map +1 -0
  247. package/dist/components/index.cjs +30 -9
  248. package/dist/components/index.cjs.map +1 -1
  249. package/dist/components/index.d.cts +20 -7
  250. package/dist/components/index.d.cts.map +1 -1
  251. package/dist/components/index.d.mts +20 -7
  252. package/dist/components/index.d.mts.map +1 -1
  253. package/dist/components/index.mjs +11 -6
  254. package/dist/components/index.mjs.map +1 -1
  255. package/dist/components/text/Text.cjs +2 -2
  256. package/dist/components/text/Text.cjs.map +1 -1
  257. package/dist/components/text/Text.d.cts.map +1 -1
  258. package/dist/components/text/Text.d.mts.map +1 -1
  259. package/dist/components/text/Text.mjs +2 -2
  260. package/dist/components/text/Text.mjs.map +1 -1
  261. package/dist/components/text/Text.types.cjs.map +1 -1
  262. package/dist/components/text/Text.types.d.cts +4 -0
  263. package/dist/components/text/Text.types.d.cts.map +1 -1
  264. package/dist/components/text/Text.types.d.mts +4 -0
  265. package/dist/components/text/Text.types.d.mts.map +1 -1
  266. package/dist/components/text/Text.types.mjs.map +1 -1
  267. package/dist/components/text-button/TextButton.cjs +49 -0
  268. package/dist/components/text-button/TextButton.cjs.map +1 -0
  269. package/dist/components/text-button/TextButton.d.cts +4 -0
  270. package/dist/components/text-button/TextButton.d.cts.map +1 -0
  271. package/dist/components/text-button/TextButton.d.mts +4 -0
  272. package/dist/components/text-button/TextButton.d.mts.map +1 -0
  273. package/dist/components/text-button/TextButton.mjs +50 -0
  274. package/dist/components/text-button/TextButton.mjs.map +1 -0
  275. package/dist/components/{button-link/ButtonLink.types.cjs → text-button/TextButton.types.cjs} +1 -1
  276. package/dist/components/text-button/TextButton.types.cjs.map +1 -0
  277. package/dist/components/text-button/TextButton.types.d.cts +35 -0
  278. package/dist/components/text-button/TextButton.types.d.cts.map +1 -0
  279. package/dist/components/text-button/TextButton.types.d.mts +35 -0
  280. package/dist/components/text-button/TextButton.types.d.mts.map +1 -0
  281. package/dist/components/text-button/TextButton.types.mjs +2 -0
  282. package/dist/components/text-button/TextButton.types.mjs.map +1 -0
  283. package/dist/components/text-button/index.cjs +6 -0
  284. package/dist/components/text-button/index.cjs.map +1 -0
  285. package/dist/components/text-button/index.d.cts +3 -0
  286. package/dist/components/text-button/index.d.cts.map +1 -0
  287. package/dist/components/text-button/index.d.mts +3 -0
  288. package/dist/components/text-button/index.d.mts.map +1 -0
  289. package/dist/components/text-button/index.mjs +2 -0
  290. package/dist/components/text-button/index.mjs.map +1 -0
  291. package/package.json +6 -6
  292. package/dist/components/button-link/ButtonLink.cjs +0 -32
  293. package/dist/components/button-link/ButtonLink.cjs.map +0 -1
  294. package/dist/components/button-link/ButtonLink.d.cts +0 -4
  295. package/dist/components/button-link/ButtonLink.d.cts.map +0 -1
  296. package/dist/components/button-link/ButtonLink.d.mts +0 -4
  297. package/dist/components/button-link/ButtonLink.d.mts.map +0 -1
  298. package/dist/components/button-link/ButtonLink.mjs +0 -33
  299. package/dist/components/button-link/ButtonLink.mjs.map +0 -1
  300. package/dist/components/button-link/ButtonLink.types.cjs.map +0 -1
  301. package/dist/components/button-link/ButtonLink.types.d.cts.map +0 -1
  302. package/dist/components/button-link/ButtonLink.types.d.mts.map +0 -1
  303. package/dist/components/button-link/ButtonLink.types.mjs +0 -2
  304. package/dist/components/button-link/ButtonLink.types.mjs.map +0 -1
  305. package/dist/components/button-link/index.cjs +0 -8
  306. package/dist/components/button-link/index.cjs.map +0 -1
  307. package/dist/components/button-link/index.d.cts +0 -4
  308. package/dist/components/button-link/index.d.mts +0 -4
  309. package/dist/components/button-link/index.mjs +0 -3
  310. package/dist/components/button-link/index.mjs.map +0 -1
@@ -13,46 +13,47 @@ exports.ButtonSecondary = react_1.default.forwardRef(({ className, isDanger, isI
13
13
  // Default secondary styles
14
14
  !isDanger &&
15
15
  !isInverse && [
16
- 'bg-default border-2 border-muted text-default',
17
- // Only apply hover/active styles when interactive
18
- isInteractive && [
19
- 'hover:bg-default-hover hover:border-default',
20
- 'active:bg-default-pressed',
21
- ],
16
+ 'bg-transparent border-2 border-icon-muted text-default',
17
+ // Loading state uses pressed color
18
+ isLoading && 'bg-pressed',
22
19
  ],
23
20
  // Danger styles
24
21
  isDanger &&
25
22
  !isInverse && [
26
- 'bg-default border-2 border-error-default text-error-default',
27
- // Only apply hover/active styles when interactive
28
- isInteractive && [
29
- 'hover:bg-default-hover',
30
- 'active:bg-default-pressed',
31
- ],
23
+ 'bg-error-muted border-2 border-error-default text-error-default',
24
+ // Loading state uses error muted pressed color
25
+ isLoading && 'bg-error-muted-pressed text-error-default-pressed',
32
26
  ],
33
27
  // Inverse styles
34
28
  isInverse &&
35
29
  !isDanger && [
36
30
  'bg-transparent border-2 border-primary-inverse text-primary-inverse',
37
- // Only apply hover/active styles when interactive
38
- isInteractive && ['hover:bg-hover', 'active:bg-pressed'],
31
+ // Loading state uses pressed color
32
+ isLoading && 'bg-pressed',
39
33
  ],
40
34
  // Inverse danger styles
41
35
  isInverse &&
42
36
  isDanger && [
43
- 'bg-transparent border-2 border-error-inverse text-error-inverse',
44
- // Only apply hover/active styles when interactive
45
- isInteractive && ['hover:bg-hover', 'active:bg-pressed'],
37
+ 'bg-default border-0 text-error-default',
38
+ // Loading state uses pressed color
39
+ isLoading && 'bg-default-pressed',
46
40
  ],
47
- // Animation classes - only applied when interactive
41
+ // Hover/Active states - only applied when interactive
48
42
  isInteractive && [
49
- 'transition-[transform,colors,opacity]',
50
- 'duration-100',
51
- 'ease-linear',
52
- // Scale animation
53
- 'active:scale-95',
54
- 'active:ease-[cubic-bezier(0.3,0.8,0.3,1)]',
55
- ], className);
43
+ !isDanger && !isInverse && ['hover:bg-hover', 'active:bg-pressed'],
44
+ isDanger &&
45
+ !isInverse && [
46
+ 'hover:bg-error-muted-hover',
47
+ 'active:bg-error-muted-pressed',
48
+ ],
49
+ isInverse && !isDanger && ['hover:bg-hover', 'active:bg-pressed'],
50
+ isInverse &&
51
+ isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],
52
+ ],
53
+ // Loading styles
54
+ isLoading && 'cursor-not-allowed',
55
+ // Disabled styles (but not loading)
56
+ isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'], className);
56
57
  return (react_1.default.createElement(button_base_1.ButtonBase, { ref: ref, className: mergedClassName, isDisabled: isDisabled, isLoading: isLoading, ...props }));
57
58
  });
58
59
  exports.ButtonSecondary.displayName = 'ButtonSecondary';
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSecondary.cjs","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uDAA+C;AAC/C,0DAA4C;AAG/B,QAAA,eAAe,GAAG,eAAK,CAAC,UAAU,CAI7C,CACE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,IAAA,kBAAO;IAC7B,2BAA2B;IAC3B,CAAC,QAAQ;QACP,CAAC,SAAS,IAAI;QACZ,+CAA+C;QAC/C,kDAAkD;QAClD,aAAa,IAAI;YACf,6CAA6C;YAC7C,2BAA2B;SAC5B;KACF;IACH,gBAAgB;IAChB,QAAQ;QACN,CAAC,SAAS,IAAI;QACZ,6DAA6D;QAC7D,kDAAkD;QAClD,aAAa,IAAI;YACf,wBAAwB;YACxB,2BAA2B;SAC5B;KACF;IACH,iBAAiB;IACjB,SAAS;QACP,CAAC,QAAQ,IAAI;QACX,qEAAqE;QACrE,kDAAkD;QAClD,aAAa,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;KACzD;IACH,wBAAwB;IACxB,SAAS;QACP,QAAQ,IAAI;QACV,iEAAiE;QACjE,kDAAkD;QAClD,aAAa,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;KACzD;IACH,oDAAoD;IACpD,aAAa,IAAI;QACf,uCAAuC;QACvC,cAAc;QACd,aAAa;QACb,kBAAkB;QAClB,iBAAiB;QACjB,2CAA2C;KAC5C,EACD,SAAS,CACV,CAAC;IAEF,OAAO,CACL,8BAAC,wBAAU,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,uBAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport type { ButtonSecondaryProps } from './ButtonSecondary.types';\n\nexport const ButtonSecondary = React.forwardRef<\n HTMLButtonElement,\n ButtonSecondaryProps\n>(\n (\n { className, isDanger, isInverse, isDisabled, isLoading, ...props },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Default secondary styles\n !isDanger &&\n !isInverse && [\n 'bg-default border-2 border-muted text-default',\n // Only apply hover/active styles when interactive\n isInteractive && [\n 'hover:bg-default-hover hover:border-default',\n 'active:bg-default-pressed',\n ],\n ],\n // Danger styles\n isDanger &&\n !isInverse && [\n 'bg-default border-2 border-error-default text-error-default',\n // Only apply hover/active styles when interactive\n isInteractive && [\n 'hover:bg-default-hover',\n 'active:bg-default-pressed',\n ],\n ],\n // Inverse styles\n isInverse &&\n !isDanger && [\n 'bg-transparent border-2 border-primary-inverse text-primary-inverse',\n // Only apply hover/active styles when interactive\n isInteractive && ['hover:bg-hover', 'active:bg-pressed'],\n ],\n // Inverse danger styles\n isInverse &&\n isDanger && [\n 'bg-transparent border-2 border-error-inverse text-error-inverse',\n // Only apply hover/active styles when interactive\n isInteractive && ['hover:bg-hover', 'active:bg-pressed'],\n ],\n // Animation classes - only applied when interactive\n isInteractive && [\n 'transition-[transform,colors,opacity]',\n 'duration-100',\n 'ease-linear',\n // Scale animation\n 'active:scale-95',\n 'active:ease-[cubic-bezier(0.3,0.8,0.3,1)]',\n ],\n className,\n );\n\n return (\n <ButtonBase\n ref={ref}\n className={mergedClassName}\n isDisabled={isDisabled}\n isLoading={isLoading}\n {...props}\n />\n );\n },\n);\n\nButtonSecondary.displayName = 'ButtonSecondary';\n"]}
1
+ {"version":3,"file":"ButtonSecondary.cjs","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uDAA+C;AAC/C,0DAA4C;AAG/B,QAAA,eAAe,GAAG,eAAK,CAAC,UAAU,CAI7C,CACE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,IAAA,kBAAO;IAC7B,2BAA2B;IAC3B,CAAC,QAAQ;QACP,CAAC,SAAS,IAAI;QACZ,wDAAwD;QACxD,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,gBAAgB;IAChB,QAAQ;QACN,CAAC,SAAS,IAAI;QACZ,iEAAiE;QACjE,+CAA+C;QAC/C,SAAS,IAAI,mDAAmD;KACjE;IACH,iBAAiB;IACjB,SAAS;QACP,CAAC,QAAQ,IAAI;QACX,qEAAqE;QACrE,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,wBAAwB;IACxB,SAAS;QACP,QAAQ,IAAI;QACV,wCAAwC;QACxC,mCAAmC;QACnC,SAAS,IAAI,oBAAoB;KAClC;IACH,sDAAsD;IACtD,aAAa,IAAI;QACf,CAAC,QAAQ,IAAI,CAAC,SAAS,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;QAClE,QAAQ;YACN,CAAC,SAAS,IAAI;YACZ,4BAA4B;YAC5B,+BAA+B;SAChC;QACH,SAAS,IAAI,CAAC,QAAQ,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;QACjE,SAAS;YACP,QAAQ,IAAI,CAAC,wBAAwB,EAAE,2BAA2B,CAAC;KACtE;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,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,uBAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport type { ButtonSecondaryProps } from './ButtonSecondary.types';\n\nexport const ButtonSecondary = React.forwardRef<\n HTMLButtonElement,\n ButtonSecondaryProps\n>(\n (\n { className, isDanger, isInverse, isDisabled, isLoading, ...props },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Default secondary styles\n !isDanger &&\n !isInverse && [\n 'bg-transparent border-2 border-icon-muted text-default',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Danger styles\n isDanger &&\n !isInverse && [\n 'bg-error-muted border-2 border-error-default text-error-default',\n // Loading state uses error muted pressed color\n isLoading && 'bg-error-muted-pressed text-error-default-pressed',\n ],\n // Inverse styles\n isInverse &&\n !isDanger && [\n 'bg-transparent border-2 border-primary-inverse text-primary-inverse',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Inverse danger styles\n isInverse &&\n isDanger && [\n 'bg-default border-0 text-error-default',\n // Loading state uses pressed color\n isLoading && 'bg-default-pressed',\n ],\n // Hover/Active states - only applied when interactive\n isInteractive && [\n !isDanger && !isInverse && ['hover:bg-hover', 'active:bg-pressed'],\n isDanger &&\n !isInverse && [\n 'hover:bg-error-muted-hover',\n 'active:bg-error-muted-pressed',\n ],\n isInverse && !isDanger && ['hover:bg-hover', 'active:bg-pressed'],\n isInverse &&\n isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],\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 {...props}\n />\n );\n },\n);\n\nButtonSecondary.displayName = 'ButtonSecondary';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSecondary.d.cts","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oCAAgC;AAEpE,eAAO,MAAM,eAAe,6GAmE3B,CAAC"}
1
+ {"version":3,"file":"ButtonSecondary.d.cts","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oCAAgC;AAEpE,eAAO,MAAM,eAAe,6GAoE3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSecondary.d.mts","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oCAAgC;AAEpE,eAAO,MAAM,eAAe,6GAmE3B,CAAC"}
1
+ {"version":3,"file":"ButtonSecondary.d.mts","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,oCAAgC;AAEpE,eAAO,MAAM,eAAe,6GAoE3B,CAAC"}
@@ -14,46 +14,47 @@ export const ButtonSecondary = React.forwardRef(({ className, isDanger, isInvers
14
14
  // Default secondary styles
15
15
  !isDanger &&
16
16
  !isInverse && [
17
- 'bg-default border-2 border-muted text-default',
18
- // Only apply hover/active styles when interactive
19
- isInteractive && [
20
- 'hover:bg-default-hover hover:border-default',
21
- 'active:bg-default-pressed',
22
- ],
17
+ 'bg-transparent border-2 border-icon-muted text-default',
18
+ // Loading state uses pressed color
19
+ isLoading && 'bg-pressed',
23
20
  ],
24
21
  // Danger styles
25
22
  isDanger &&
26
23
  !isInverse && [
27
- 'bg-default border-2 border-error-default text-error-default',
28
- // Only apply hover/active styles when interactive
29
- isInteractive && [
30
- 'hover:bg-default-hover',
31
- 'active:bg-default-pressed',
32
- ],
24
+ 'bg-error-muted border-2 border-error-default text-error-default',
25
+ // Loading state uses error muted pressed color
26
+ isLoading && 'bg-error-muted-pressed text-error-default-pressed',
33
27
  ],
34
28
  // Inverse styles
35
29
  isInverse &&
36
30
  !isDanger && [
37
31
  'bg-transparent border-2 border-primary-inverse text-primary-inverse',
38
- // Only apply hover/active styles when interactive
39
- isInteractive && ['hover:bg-hover', 'active:bg-pressed'],
32
+ // Loading state uses pressed color
33
+ isLoading && 'bg-pressed',
40
34
  ],
41
35
  // Inverse danger styles
42
36
  isInverse &&
43
37
  isDanger && [
44
- 'bg-transparent border-2 border-error-inverse text-error-inverse',
45
- // Only apply hover/active styles when interactive
46
- isInteractive && ['hover:bg-hover', 'active:bg-pressed'],
38
+ 'bg-default border-0 text-error-default',
39
+ // Loading state uses pressed color
40
+ isLoading && 'bg-default-pressed',
47
41
  ],
48
- // Animation classes - only applied when interactive
42
+ // Hover/Active states - only applied when interactive
49
43
  isInteractive && [
50
- 'transition-[transform,colors,opacity]',
51
- 'duration-100',
52
- 'ease-linear',
53
- // Scale animation
54
- 'active:scale-95',
55
- 'active:ease-[cubic-bezier(0.3,0.8,0.3,1)]',
56
- ], className);
44
+ !isDanger && !isInverse && ['hover:bg-hover', 'active:bg-pressed'],
45
+ isDanger &&
46
+ !isInverse && [
47
+ 'hover:bg-error-muted-hover',
48
+ 'active:bg-error-muted-pressed',
49
+ ],
50
+ isInverse && !isDanger && ['hover:bg-hover', 'active:bg-pressed'],
51
+ isInverse &&
52
+ isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],
53
+ ],
54
+ // Loading styles
55
+ isLoading && 'cursor-not-allowed',
56
+ // Disabled styles (but not loading)
57
+ isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'], className);
57
58
  return (React.createElement(ButtonBase, { ref: ref, className: mergedClassName, isDisabled: isDisabled, isLoading: isLoading, ...props }));
58
59
  });
59
60
  ButtonSecondary.displayName = 'ButtonSecondary';
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSecondary.mjs","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,UAAU,EAAE,iCAAuB;AAG5C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAI7C,CACE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,OAAO;IAC7B,2BAA2B;IAC3B,CAAC,QAAQ;QACP,CAAC,SAAS,IAAI;QACZ,+CAA+C;QAC/C,kDAAkD;QAClD,aAAa,IAAI;YACf,6CAA6C;YAC7C,2BAA2B;SAC5B;KACF;IACH,gBAAgB;IAChB,QAAQ;QACN,CAAC,SAAS,IAAI;QACZ,6DAA6D;QAC7D,kDAAkD;QAClD,aAAa,IAAI;YACf,wBAAwB;YACxB,2BAA2B;SAC5B;KACF;IACH,iBAAiB;IACjB,SAAS;QACP,CAAC,QAAQ,IAAI;QACX,qEAAqE;QACrE,kDAAkD;QAClD,aAAa,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;KACzD;IACH,wBAAwB;IACxB,SAAS;QACP,QAAQ,IAAI;QACV,iEAAiE;QACjE,kDAAkD;QAClD,aAAa,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;KACzD;IACH,oDAAoD;IACpD,aAAa,IAAI;QACf,uCAAuC;QACvC,cAAc;QACd,aAAa;QACb,kBAAkB;QAClB,iBAAiB;QACjB,2CAA2C;KAC5C,EACD,SAAS,CACV,CAAC;IAEF,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport type { ButtonSecondaryProps } from './ButtonSecondary.types';\n\nexport const ButtonSecondary = React.forwardRef<\n HTMLButtonElement,\n ButtonSecondaryProps\n>(\n (\n { className, isDanger, isInverse, isDisabled, isLoading, ...props },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Default secondary styles\n !isDanger &&\n !isInverse && [\n 'bg-default border-2 border-muted text-default',\n // Only apply hover/active styles when interactive\n isInteractive && [\n 'hover:bg-default-hover hover:border-default',\n 'active:bg-default-pressed',\n ],\n ],\n // Danger styles\n isDanger &&\n !isInverse && [\n 'bg-default border-2 border-error-default text-error-default',\n // Only apply hover/active styles when interactive\n isInteractive && [\n 'hover:bg-default-hover',\n 'active:bg-default-pressed',\n ],\n ],\n // Inverse styles\n isInverse &&\n !isDanger && [\n 'bg-transparent border-2 border-primary-inverse text-primary-inverse',\n // Only apply hover/active styles when interactive\n isInteractive && ['hover:bg-hover', 'active:bg-pressed'],\n ],\n // Inverse danger styles\n isInverse &&\n isDanger && [\n 'bg-transparent border-2 border-error-inverse text-error-inverse',\n // Only apply hover/active styles when interactive\n isInteractive && ['hover:bg-hover', 'active:bg-pressed'],\n ],\n // Animation classes - only applied when interactive\n isInteractive && [\n 'transition-[transform,colors,opacity]',\n 'duration-100',\n 'ease-linear',\n // Scale animation\n 'active:scale-95',\n 'active:ease-[cubic-bezier(0.3,0.8,0.3,1)]',\n ],\n className,\n );\n\n return (\n <ButtonBase\n ref={ref}\n className={mergedClassName}\n isDisabled={isDisabled}\n isLoading={isLoading}\n {...props}\n />\n );\n },\n);\n\nButtonSecondary.displayName = 'ButtonSecondary';\n"]}
1
+ {"version":3,"file":"ButtonSecondary.mjs","sourceRoot":"","sources":["../../../src/components/button-secondary/ButtonSecondary.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,UAAU,EAAE,iCAAuB;AAG5C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAI7C,CACE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,OAAO;IAC7B,2BAA2B;IAC3B,CAAC,QAAQ;QACP,CAAC,SAAS,IAAI;QACZ,wDAAwD;QACxD,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,gBAAgB;IAChB,QAAQ;QACN,CAAC,SAAS,IAAI;QACZ,iEAAiE;QACjE,+CAA+C;QAC/C,SAAS,IAAI,mDAAmD;KACjE;IACH,iBAAiB;IACjB,SAAS;QACP,CAAC,QAAQ,IAAI;QACX,qEAAqE;QACrE,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,wBAAwB;IACxB,SAAS;QACP,QAAQ,IAAI;QACV,wCAAwC;QACxC,mCAAmC;QACnC,SAAS,IAAI,oBAAoB;KAClC;IACH,sDAAsD;IACtD,aAAa,IAAI;QACf,CAAC,QAAQ,IAAI,CAAC,SAAS,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;QAClE,QAAQ;YACN,CAAC,SAAS,IAAI;YACZ,4BAA4B;YAC5B,+BAA+B;SAChC;QACH,SAAS,IAAI,CAAC,QAAQ,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;QACjE,SAAS;YACP,QAAQ,IAAI,CAAC,wBAAwB,EAAE,2BAA2B,CAAC;KACtE;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,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport type { ButtonSecondaryProps } from './ButtonSecondary.types';\n\nexport const ButtonSecondary = React.forwardRef<\n HTMLButtonElement,\n ButtonSecondaryProps\n>(\n (\n { className, isDanger, isInverse, isDisabled, isLoading, ...props },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Default secondary styles\n !isDanger &&\n !isInverse && [\n 'bg-transparent border-2 border-icon-muted text-default',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Danger styles\n isDanger &&\n !isInverse && [\n 'bg-error-muted border-2 border-error-default text-error-default',\n // Loading state uses error muted pressed color\n isLoading && 'bg-error-muted-pressed text-error-default-pressed',\n ],\n // Inverse styles\n isInverse &&\n !isDanger && [\n 'bg-transparent border-2 border-primary-inverse text-primary-inverse',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Inverse danger styles\n isInverse &&\n isDanger && [\n 'bg-default border-0 text-error-default',\n // Loading state uses pressed color\n isLoading && 'bg-default-pressed',\n ],\n // Hover/Active states - only applied when interactive\n isInteractive && [\n !isDanger && !isInverse && ['hover:bg-hover', 'active:bg-pressed'],\n isDanger &&\n !isInverse && [\n 'hover:bg-error-muted-hover',\n 'active:bg-error-muted-pressed',\n ],\n isInverse && !isDanger && ['hover:bg-hover', 'active:bg-pressed'],\n isInverse &&\n isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],\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 {...props}\n />\n );\n },\n);\n\nButtonSecondary.displayName = 'ButtonSecondary';\n"]}
@@ -0,0 +1,60 @@
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.ButtonTertiary = 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
+ exports.ButtonTertiary = react_1.default.forwardRef(({ className, isDanger, isInverse, isDisabled, isLoading, ...props }, ref) => {
11
+ const isInteractive = !(isDisabled ?? isLoading);
12
+ const mergedClassName = (0, tw_merge_1.twMerge)(
13
+ // Default tertiary styles
14
+ !isDanger &&
15
+ !isInverse && [
16
+ 'bg-transparent text-primary-default',
17
+ // Loading state uses pressed color
18
+ isLoading && 'bg-pressed',
19
+ ],
20
+ // Danger styles
21
+ isDanger &&
22
+ !isInverse && [
23
+ 'bg-transparent text-error-default',
24
+ // Loading state uses error muted pressed color
25
+ isLoading && 'bg-error-muted-pressed text-error-default-pressed',
26
+ ],
27
+ // Inverse styles
28
+ isInverse &&
29
+ !isDanger && [
30
+ 'bg-transparent text-primary-inverse',
31
+ // Loading state uses pressed color
32
+ isLoading && 'bg-pressed',
33
+ ],
34
+ // Inverse danger styles
35
+ isInverse &&
36
+ isDanger && [
37
+ 'bg-default text-error-default',
38
+ // Loading state uses pressed color
39
+ isLoading && 'bg-default-pressed',
40
+ ],
41
+ // Hover/Active states - only applied when interactive
42
+ isInteractive && [
43
+ 'hover:bg-hover',
44
+ 'active:bg-pressed',
45
+ isInverse &&
46
+ isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],
47
+ isDanger &&
48
+ !isInverse && [
49
+ 'hover:bg-error-muted-hover',
50
+ 'active:bg-error-muted-pressed',
51
+ ],
52
+ ],
53
+ // Loading styles
54
+ isLoading && 'cursor-not-allowed',
55
+ // Disabled styles (but not loading)
56
+ isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'], className);
57
+ return (react_1.default.createElement(button_base_1.ButtonBase, { ref: ref, className: mergedClassName, isDisabled: isDisabled, isLoading: isLoading, ...props }));
58
+ });
59
+ exports.ButtonTertiary.displayName = 'ButtonTertiary';
60
+ //# sourceMappingURL=ButtonTertiary.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.cjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uDAA+C;AAC/C,0DAA4C;AAG/B,QAAA,cAAc,GAAG,eAAK,CAAC,UAAU,CAI5C,CACE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,IAAA,kBAAO;IAC7B,0BAA0B;IAC1B,CAAC,QAAQ;QACP,CAAC,SAAS,IAAI;QACZ,qCAAqC;QACrC,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,gBAAgB;IAChB,QAAQ;QACN,CAAC,SAAS,IAAI;QACZ,mCAAmC;QACnC,+CAA+C;QAC/C,SAAS,IAAI,mDAAmD;KACjE;IACH,iBAAiB;IACjB,SAAS;QACP,CAAC,QAAQ,IAAI;QACX,qCAAqC;QACrC,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,wBAAwB;IACxB,SAAS;QACP,QAAQ,IAAI;QACV,+BAA+B;QAC/B,mCAAmC;QACnC,SAAS,IAAI,oBAAoB;KAClC;IACH,sDAAsD;IACtD,aAAa,IAAI;QACf,gBAAgB;QAChB,mBAAmB;QACnB,SAAS;YACP,QAAQ,IAAI,CAAC,wBAAwB,EAAE,2BAA2B,CAAC;QACrE,QAAQ;YACN,CAAC,SAAS,IAAI;YACZ,4BAA4B;YAC5B,+BAA+B;SAChC;KACJ;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,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\nexport const ButtonTertiary = React.forwardRef<\n HTMLButtonElement,\n ButtonTertiaryProps\n>(\n (\n { className, isDanger, isInverse, isDisabled, isLoading, ...props },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Default tertiary styles\n !isDanger &&\n !isInverse && [\n 'bg-transparent text-primary-default',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Danger styles\n isDanger &&\n !isInverse && [\n 'bg-transparent text-error-default',\n // Loading state uses error muted pressed color\n isLoading && 'bg-error-muted-pressed text-error-default-pressed',\n ],\n // Inverse styles\n isInverse &&\n !isDanger && [\n 'bg-transparent text-primary-inverse',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Inverse danger styles\n isInverse &&\n isDanger && [\n 'bg-default text-error-default',\n // Loading state uses pressed color\n isLoading && 'bg-default-pressed',\n ],\n // Hover/Active states - only applied when interactive\n isInteractive && [\n 'hover:bg-hover',\n 'active:bg-pressed',\n isInverse &&\n isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],\n isDanger &&\n !isInverse && [\n 'hover:bg-error-muted-hover',\n 'active:bg-error-muted-pressed',\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 {...props}\n />\n );\n },\n);\n\nButtonTertiary.displayName = 'ButtonTertiary';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ButtonTertiaryProps } from "./ButtonTertiary.types.cjs";
3
+ export declare const ButtonTertiary: React.ForwardRefExoticComponent<Omit<ButtonTertiaryProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=ButtonTertiary.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.d.cts","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,4GAoE1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ButtonTertiaryProps } from "./ButtonTertiary.types.mjs";
3
+ export declare const ButtonTertiary: React.ForwardRefExoticComponent<Omit<ButtonTertiaryProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=ButtonTertiary.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.d.mts","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,4GAoE1B,CAAC"}
@@ -0,0 +1,61 @@
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
+ export const ButtonTertiary = React.forwardRef(({ className, isDanger, isInverse, isDisabled, isLoading, ...props }, ref) => {
12
+ const isInteractive = !(isDisabled ?? isLoading);
13
+ const mergedClassName = twMerge(
14
+ // Default tertiary styles
15
+ !isDanger &&
16
+ !isInverse && [
17
+ 'bg-transparent text-primary-default',
18
+ // Loading state uses pressed color
19
+ isLoading && 'bg-pressed',
20
+ ],
21
+ // Danger styles
22
+ isDanger &&
23
+ !isInverse && [
24
+ 'bg-transparent text-error-default',
25
+ // Loading state uses error muted pressed color
26
+ isLoading && 'bg-error-muted-pressed text-error-default-pressed',
27
+ ],
28
+ // Inverse styles
29
+ isInverse &&
30
+ !isDanger && [
31
+ 'bg-transparent text-primary-inverse',
32
+ // Loading state uses pressed color
33
+ isLoading && 'bg-pressed',
34
+ ],
35
+ // Inverse danger styles
36
+ isInverse &&
37
+ isDanger && [
38
+ 'bg-default text-error-default',
39
+ // Loading state uses pressed color
40
+ isLoading && 'bg-default-pressed',
41
+ ],
42
+ // Hover/Active states - only applied when interactive
43
+ isInteractive && [
44
+ 'hover:bg-hover',
45
+ 'active:bg-pressed',
46
+ isInverse &&
47
+ isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],
48
+ isDanger &&
49
+ !isInverse && [
50
+ 'hover:bg-error-muted-hover',
51
+ 'active:bg-error-muted-pressed',
52
+ ],
53
+ ],
54
+ // Loading styles
55
+ isLoading && 'cursor-not-allowed',
56
+ // Disabled styles (but not loading)
57
+ isDisabled && !isLoading && ['opacity-50', 'cursor-not-allowed'], className);
58
+ return (React.createElement(ButtonBase, { ref: ref, className: mergedClassName, isDisabled: isDisabled, isLoading: isLoading, ...props }));
59
+ });
60
+ ButtonTertiary.displayName = 'ButtonTertiary';
61
+ //# sourceMappingURL=ButtonTertiary.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.mjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,UAAU,EAAE,iCAAuB;AAG5C,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAI5C,CACE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,OAAO;IAC7B,0BAA0B;IAC1B,CAAC,QAAQ;QACP,CAAC,SAAS,IAAI;QACZ,qCAAqC;QACrC,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,gBAAgB;IAChB,QAAQ;QACN,CAAC,SAAS,IAAI;QACZ,mCAAmC;QACnC,+CAA+C;QAC/C,SAAS,IAAI,mDAAmD;KACjE;IACH,iBAAiB;IACjB,SAAS;QACP,CAAC,QAAQ,IAAI;QACX,qCAAqC;QACrC,mCAAmC;QACnC,SAAS,IAAI,YAAY;KAC1B;IACH,wBAAwB;IACxB,SAAS;QACP,QAAQ,IAAI;QACV,+BAA+B;QAC/B,mCAAmC;QACnC,SAAS,IAAI,oBAAoB;KAClC;IACH,sDAAsD;IACtD,aAAa,IAAI;QACf,gBAAgB;QAChB,mBAAmB;QACnB,SAAS;YACP,QAAQ,IAAI,CAAC,wBAAwB,EAAE,2BAA2B,CAAC;QACrE,QAAQ;YACN,CAAC,SAAS,IAAI;YACZ,4BAA4B;YAC5B,+BAA+B;SAChC;KACJ;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,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { ButtonBase } from '../button-base';\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\nexport const ButtonTertiary = React.forwardRef<\n HTMLButtonElement,\n ButtonTertiaryProps\n>(\n (\n { className, isDanger, isInverse, isDisabled, isLoading, ...props },\n ref,\n ) => {\n const isInteractive = !(isDisabled ?? isLoading);\n\n const mergedClassName = twMerge(\n // Default tertiary styles\n !isDanger &&\n !isInverse && [\n 'bg-transparent text-primary-default',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Danger styles\n isDanger &&\n !isInverse && [\n 'bg-transparent text-error-default',\n // Loading state uses error muted pressed color\n isLoading && 'bg-error-muted-pressed text-error-default-pressed',\n ],\n // Inverse styles\n isInverse &&\n !isDanger && [\n 'bg-transparent text-primary-inverse',\n // Loading state uses pressed color\n isLoading && 'bg-pressed',\n ],\n // Inverse danger styles\n isInverse &&\n isDanger && [\n 'bg-default text-error-default',\n // Loading state uses pressed color\n isLoading && 'bg-default-pressed',\n ],\n // Hover/Active states - only applied when interactive\n isInteractive && [\n 'hover:bg-hover',\n 'active:bg-pressed',\n isInverse &&\n isDanger && ['hover:bg-default-hover', 'active:bg-default-pressed'],\n isDanger &&\n !isInverse && [\n 'hover:bg-error-muted-hover',\n 'active:bg-error-muted-pressed',\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 {...props}\n />\n );\n },\n);\n\nButtonTertiary.displayName = 'ButtonTertiary';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ButtonTertiary.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.types.cjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../button-base';\n\nexport type ButtonTertiaryProps = Omit<\n ButtonBaseProps,\n 'className' | 'isDisabled' | 'isLoading' | 'style'\n> & {\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonTertiary component\n */\n className?: string;\n /**\n * Optional prop that when true, applies error/danger styling to the button\n * @default false\n */\n isDanger?: boolean;\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 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"]}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { ButtonBaseProps } from "../button-base/index.cjs";
3
- export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style'> & {
3
+ export type ButtonTertiaryProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style'> & {
4
4
  /**
5
- * Optional prop for additional CSS classes to be applied to the ButtonLink component
5
+ * Optional prop for additional CSS classes to be applied to the ButtonTertiary component
6
6
  */
7
7
  className?: string;
8
8
  /**
@@ -10,6 +10,11 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
10
10
  * @default false
11
11
  */
12
12
  isDanger?: boolean;
13
+ /**
14
+ * Optional prop that when true, applies inverse styling to the button
15
+ * @default false
16
+ */
17
+ isInverse?: boolean;
13
18
  /**
14
19
  * Optional prop that when true, disables the button
15
20
  * @default false
@@ -26,4 +31,4 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
26
31
  */
27
32
  style?: React.CSSProperties;
28
33
  };
29
- //# sourceMappingURL=ButtonLink.types.d.cts.map
34
+ //# sourceMappingURL=ButtonTertiary.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.types.d.cts","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAuB;AAEtD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,eAAe,EACf,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CACnD,GAAG;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,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,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { ButtonBaseProps } from "../button-base/index.mjs";
3
- export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style'> & {
3
+ export type ButtonTertiaryProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style'> & {
4
4
  /**
5
- * Optional prop for additional CSS classes to be applied to the ButtonLink component
5
+ * Optional prop for additional CSS classes to be applied to the ButtonTertiary component
6
6
  */
7
7
  className?: string;
8
8
  /**
@@ -10,6 +10,11 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
10
10
  * @default false
11
11
  */
12
12
  isDanger?: boolean;
13
+ /**
14
+ * Optional prop that when true, applies inverse styling to the button
15
+ * @default false
16
+ */
17
+ isInverse?: boolean;
13
18
  /**
14
19
  * Optional prop that when true, disables the button
15
20
  * @default false
@@ -26,4 +31,4 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
26
31
  */
27
32
  style?: React.CSSProperties;
28
33
  };
29
- //# sourceMappingURL=ButtonLink.types.d.mts.map
34
+ //# sourceMappingURL=ButtonTertiary.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.types.d.mts","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAuB;AAEtD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,eAAe,EACf,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CACnD,GAAG;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,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,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonTertiary.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonTertiary.types.mjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../button-base';\n\nexport type ButtonTertiaryProps = Omit<\n ButtonBaseProps,\n 'className' | 'isDisabled' | 'isLoading' | 'style'\n> & {\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonTertiary component\n */\n className?: string;\n /**\n * Optional prop that when true, applies error/danger styling to the button\n * @default false\n */\n isDanger?: boolean;\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 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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonTertiarySize = exports.ButtonTertiary = void 0;
4
+ var ButtonTertiary_1 = require("./ButtonTertiary.cjs");
5
+ Object.defineProperty(exports, "ButtonTertiary", { enumerable: true, get: function () { return ButtonTertiary_1.ButtonTertiary; } });
6
+ var button_base_1 = require("../button-base/index.cjs");
7
+ Object.defineProperty(exports, "ButtonTertiarySize", { enumerable: true, get: function () { return button_base_1.ButtonBaseSize; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,cAAc,OAAA;AAEvB,wDAAsE;AAA7D,iHAAA,cAAc,OAAsB","sourcesContent":["export { ButtonTertiary } from './ButtonTertiary';\nexport type { ButtonTertiaryProps } from './ButtonTertiary.types';\nexport { ButtonBaseSize as ButtonTertiarySize } from '../button-base';\n"]}
@@ -0,0 +1,4 @@
1
+ export { ButtonTertiary } from "./ButtonTertiary.cjs";
2
+ export type { ButtonTertiaryProps } from "./ButtonTertiary.types.cjs";
3
+ export { ButtonBaseSize as ButtonTertiarySize } from "../button-base/index.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B;AAClE,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,iCAAuB"}
@@ -0,0 +1,4 @@
1
+ export { ButtonTertiary } from "./ButtonTertiary.mjs";
2
+ export type { ButtonTertiaryProps } from "./ButtonTertiary.types.mjs";
3
+ export { ButtonBaseSize as ButtonTertiarySize } from "../button-base/index.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B;AAClE,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,iCAAuB"}
@@ -0,0 +1,3 @@
1
+ export { ButtonTertiary } from "./ButtonTertiary.mjs";
2
+ export { ButtonBaseSize as ButtonTertiarySize } from "../button-base/index.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAElD,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,iCAAuB","sourcesContent":["export { ButtonTertiary } from './ButtonTertiary';\nexport type { ButtonTertiaryProps } from './ButtonTertiary.types';\nexport { ButtonBaseSize as ButtonTertiarySize } from '../button-base';\n"]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonLinkSize = exports.ButtonLink = exports.ButtonSecondarySize = exports.ButtonSecondary = exports.ButtonPrimarySize = exports.ButtonPrimary = exports.ButtonBaseSize = exports.ButtonBase = exports.IconColor = exports.IconSize = exports.IconName = exports.Icon = exports.OverflowWrap = exports.TextTransform = exports.FontStyle = exports.FontWeight = exports.TextAlign = exports.TextColor = exports.TextVariant = exports.Text = void 0;
3
+ exports.AvatarIconSeverity = exports.AvatarIconSize = exports.AvatarIcon = exports.AvatarFaviconSize = exports.AvatarFavicon = exports.AvatarTokenSize = exports.AvatarToken = exports.AvatarNetworkSize = exports.AvatarNetwork = exports.AvatarBaseSize = exports.AvatarBase = exports.ButtonIcon = exports.TextButton = exports.ButtonVariant = exports.ButtonSize = exports.Button = exports.ButtonTertiarySize = exports.ButtonTertiary = exports.ButtonSecondarySize = exports.ButtonSecondary = exports.ButtonPrimarySize = exports.ButtonPrimary = exports.ButtonBaseSize = exports.ButtonBase = exports.IconColor = exports.IconSize = exports.IconName = exports.Icon = exports.OverflowWrap = exports.TextTransform = exports.FontStyle = exports.FontWeight = exports.TextAlign = exports.TextColor = exports.TextVariant = exports.Text = void 0;
4
4
  var text_1 = require("./text/index.cjs");
5
5
  Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return text_1.Text; } });
6
6
  var text_2 = require("./text/index.cjs");
@@ -23,14 +23,35 @@ var button_base_2 = require("./button-base/index.cjs");
23
23
  Object.defineProperty(exports, "ButtonBaseSize", { enumerable: true, get: function () { return button_base_2.ButtonBaseSize; } });
24
24
  var button_primary_1 = require("./button-primary/index.cjs");
25
25
  Object.defineProperty(exports, "ButtonPrimary", { enumerable: true, get: function () { return button_primary_1.ButtonPrimary; } });
26
- var button_primary_2 = require("./button-primary/index.cjs");
27
- Object.defineProperty(exports, "ButtonPrimarySize", { enumerable: true, get: function () { return button_primary_2.ButtonPrimarySize; } });
26
+ Object.defineProperty(exports, "ButtonPrimarySize", { enumerable: true, get: function () { return button_primary_1.ButtonPrimarySize; } });
28
27
  var button_secondary_1 = require("./button-secondary/index.cjs");
29
28
  Object.defineProperty(exports, "ButtonSecondary", { enumerable: true, get: function () { return button_secondary_1.ButtonSecondary; } });
30
- var button_secondary_2 = require("./button-secondary/index.cjs");
31
- Object.defineProperty(exports, "ButtonSecondarySize", { enumerable: true, get: function () { return button_secondary_2.ButtonSecondarySize; } });
32
- var button_link_1 = require("./button-link/index.cjs");
33
- Object.defineProperty(exports, "ButtonLink", { enumerable: true, get: function () { return button_link_1.ButtonLink; } });
34
- var button_link_2 = require("./button-link/index.cjs");
35
- Object.defineProperty(exports, "ButtonLinkSize", { enumerable: true, get: function () { return button_link_2.ButtonLinkSize; } });
29
+ Object.defineProperty(exports, "ButtonSecondarySize", { enumerable: true, get: function () { return button_secondary_1.ButtonSecondarySize; } });
30
+ var button_tertiary_1 = require("./button-tertiary/index.cjs");
31
+ Object.defineProperty(exports, "ButtonTertiary", { enumerable: true, get: function () { return button_tertiary_1.ButtonTertiary; } });
32
+ Object.defineProperty(exports, "ButtonTertiarySize", { enumerable: true, get: function () { return button_tertiary_1.ButtonTertiarySize; } });
33
+ var button_1 = require("./button/index.cjs");
34
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return button_1.Button; } });
35
+ Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return button_1.ButtonSize; } });
36
+ Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return button_1.ButtonVariant; } });
37
+ var text_button_1 = require("./text-button/index.cjs");
38
+ Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return text_button_1.TextButton; } });
39
+ var button_icon_1 = require("./button-icon/index.cjs");
40
+ Object.defineProperty(exports, "ButtonIcon", { enumerable: true, get: function () { return button_icon_1.ButtonIcon; } });
41
+ var avatar_base_1 = require("./avatar-base/index.cjs");
42
+ Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return avatar_base_1.AvatarBase; } });
43
+ Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return avatar_base_1.AvatarBaseSize; } });
44
+ var avatar_network_1 = require("./avatar-network/index.cjs");
45
+ Object.defineProperty(exports, "AvatarNetwork", { enumerable: true, get: function () { return avatar_network_1.AvatarNetwork; } });
46
+ Object.defineProperty(exports, "AvatarNetworkSize", { enumerable: true, get: function () { return avatar_network_1.AvatarNetworkSize; } });
47
+ var avatar_token_1 = require("./avatar-token/index.cjs");
48
+ Object.defineProperty(exports, "AvatarToken", { enumerable: true, get: function () { return avatar_token_1.AvatarToken; } });
49
+ Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return avatar_token_1.AvatarTokenSize; } });
50
+ var avatar_favicon_1 = require("./avatar-favicon/index.cjs");
51
+ Object.defineProperty(exports, "AvatarFavicon", { enumerable: true, get: function () { return avatar_favicon_1.AvatarFavicon; } });
52
+ Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return avatar_favicon_1.AvatarFaviconSize; } });
53
+ var avatar_icon_1 = require("./avatar-icon/index.cjs");
54
+ Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return avatar_icon_1.AvatarIcon; } });
55
+ Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return avatar_icon_1.AvatarIconSize; } });
56
+ Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return avatar_icon_1.AvatarIconSeverity; } });
36
57
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,yCAQgB;AAPd,mGAAA,WAAW,OAAA;AACX,iGAAA,SAAS,OAAA;AACT,iGAAA,SAAS,OAAA;AACT,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,qGAAA,aAAa,OAAA;AACb,oGAAA,YAAY,OAAA;AAId,yCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,yCAAuD;AAA9C,gGAAA,QAAQ,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,iGAAA,SAAS,OAAA;AAGtC,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAEnB,uDAA+C;AAAtC,6GAAA,cAAc,OAAA;AAEvB,6DAAiD;AAAxC,+GAAA,aAAa,OAAA;AAEtB,6DAAqD;AAA5C,mHAAA,iBAAiB,OAAA;AAE1B,iEAAqD;AAA5C,mHAAA,eAAe,OAAA;AAExB,iEAAyD;AAAhD,uHAAA,mBAAmB,OAAA;AAE5B,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAEnB,uDAA+C;AAAtC,6GAAA,cAAc,OAAA","sourcesContent":["export { Text } from './text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './text';\nexport type { TextProps } from './text';\n\nexport { Icon } from './icon';\nexport { IconName, IconSize, IconColor } from './icon';\nexport type { IconProps } from './icon';\n\nexport { ButtonBase } from './button-base';\nexport type { ButtonBaseProps } from './button-base';\nexport { ButtonBaseSize } from './button-base';\n\nexport { ButtonPrimary } from './button-primary';\nexport type { ButtonPrimaryProps } from './button-primary';\nexport { ButtonPrimarySize } from './button-primary';\n\nexport { ButtonSecondary } from './button-secondary';\nexport type { ButtonSecondaryProps } from './button-secondary';\nexport { ButtonSecondarySize } from './button-secondary';\n\nexport { ButtonLink } from './button-link';\nexport type { ButtonLinkProps } from './button-link';\nexport { ButtonLinkSize } from './button-link';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,yCAQgB;AAPd,mGAAA,WAAW,OAAA;AACX,iGAAA,SAAS,OAAA;AACT,iGAAA,SAAS,OAAA;AACT,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,qGAAA,aAAa,OAAA;AACb,oGAAA,YAAY,OAAA;AAId,yCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,yCAAuD;AAA9C,gGAAA,QAAQ,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,iGAAA,SAAS,OAAA;AAGtC,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAEnB,uDAA+C;AAAtC,6GAAA,cAAc,OAAA;AAEvB,6DAAoE;AAA3D,+GAAA,aAAa,OAAA;AAAE,mHAAA,iBAAiB,OAAA;AAGzC,iEAA0E;AAAjE,mHAAA,eAAe,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAG7C,+DAAuE;AAA9D,iHAAA,cAAc,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAG3C,6CAA6D;AAApD,gGAAA,MAAM,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,uGAAA,aAAa,OAAA;AAG1C,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAGnB,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAGnB,uDAA2D;AAAlD,yGAAA,UAAU,OAAA;AAAE,6GAAA,cAAc,OAAA;AAGnC,6DAAoE;AAA3D,+GAAA,aAAa,OAAA;AAAE,mHAAA,iBAAiB,OAAA;AAGzC,yDAA8D;AAArD,2GAAA,WAAW,OAAA;AAAE,+GAAA,eAAe,OAAA;AAGrC,6DAAoE;AAA3D,+GAAA,aAAa,OAAA;AAAE,mHAAA,iBAAiB,OAAA;AAGzC,uDAA+E;AAAtE,yGAAA,UAAU,OAAA;AAAE,6GAAA,cAAc,OAAA;AAAE,iHAAA,kBAAkB,OAAA","sourcesContent":["export { Text } from './text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './text';\nexport type { TextProps } from './text';\n\nexport { Icon } from './icon';\nexport { IconName, IconSize, IconColor } from './icon';\nexport type { IconProps } from './icon';\n\nexport { ButtonBase } from './button-base';\nexport type { ButtonBaseProps } from './button-base';\nexport { ButtonBaseSize } from './button-base';\n\nexport { ButtonPrimary, ButtonPrimarySize } from './button-primary';\nexport type { ButtonPrimaryProps } from './button-primary';\n\nexport { ButtonSecondary, ButtonSecondarySize } from './button-secondary';\nexport type { ButtonSecondaryProps } from './button-secondary';\n\nexport { ButtonTertiary, ButtonTertiarySize } from './button-tertiary';\nexport type { ButtonTertiaryProps } from './button-tertiary';\n\nexport { Button, ButtonSize, ButtonVariant } from './button';\nexport type { ButtonProps } from './button';\n\nexport { TextButton } from './text-button';\nexport type { TextButtonProps } from './text-button';\n\nexport { ButtonIcon } from './button-icon';\nexport type { ButtonIconProps } from './button-icon';\n\nexport { AvatarBase, AvatarBaseSize } from './avatar-base';\nexport type { AvatarBaseProps } from './avatar-base';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './avatar-network';\nexport type { AvatarNetworkProps } from './avatar-network';\n\nexport { AvatarToken, AvatarTokenSize } from './avatar-token';\nexport type { AvatarTokenProps } from './avatar-token';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './avatar-favicon';\nexport type { AvatarFaviconProps } from './avatar-favicon';\n\nexport { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from './avatar-icon';\nexport type { AvatarIconProps } from './avatar-icon';\n"]}