@timmbr/ui 1.4.2 → 1.6.0

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 (395) hide show
  1. package/README.md +12 -10
  2. package/dist/components/Accordion/Accordion.js +1 -1
  3. package/dist/components/Accordion/Accordion.styles.d.ts.map +1 -1
  4. package/dist/components/Accordion/Accordion.styles.js +3 -3
  5. package/dist/components/Alert/Alert.js +2 -2
  6. package/dist/components/Alert/Alert.styles.d.ts +2 -2
  7. package/dist/components/Alert/Alert.styles.js +4 -4
  8. package/dist/components/AlertDialog/AlertDialog.d.ts +5 -3
  9. package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
  10. package/dist/components/AlertDialog/AlertDialog.js +21 -8
  11. package/dist/components/AlertDialog/AlertDialog.styles.d.ts +7 -1
  12. package/dist/components/AlertDialog/AlertDialog.styles.d.ts.map +1 -1
  13. package/dist/components/AlertDialog/AlertDialog.styles.js +29 -6
  14. package/dist/components/AlertDialog/AlertDialog.types.d.ts +19 -2
  15. package/dist/components/AlertDialog/AlertDialog.types.d.ts.map +1 -1
  16. package/dist/components/AuthModal/AuthModal.d.ts +4 -0
  17. package/dist/components/AuthModal/AuthModal.d.ts.map +1 -0
  18. package/dist/components/AuthModal/AuthModal.js +89 -0
  19. package/dist/components/AuthModal/AuthModal.labels.d.ts +6 -0
  20. package/dist/components/AuthModal/AuthModal.labels.d.ts.map +1 -0
  21. package/dist/components/AuthModal/AuthModal.labels.js +52 -0
  22. package/dist/components/AuthModal/AuthModal.styles.d.ts +12 -0
  23. package/dist/components/AuthModal/AuthModal.styles.d.ts.map +1 -0
  24. package/dist/components/AuthModal/AuthModal.styles.js +38 -0
  25. package/dist/components/AuthModal/AuthModal.types.d.ts +158 -0
  26. package/dist/components/AuthModal/AuthModal.types.d.ts.map +1 -0
  27. package/dist/components/AuthModal/index.d.ts +6 -0
  28. package/dist/components/AuthModal/index.d.ts.map +1 -0
  29. package/dist/components/AuthModal/subcomponents/AuthModalBanner.d.ts +11 -0
  30. package/dist/components/AuthModal/subcomponents/AuthModalBanner.d.ts.map +1 -0
  31. package/dist/components/AuthModal/subcomponents/AuthModalBanner.js +58 -0
  32. package/dist/components/AuthModal/subcomponents/AuthModalIdentifierForm.d.ts +11 -0
  33. package/dist/components/AuthModal/subcomponents/AuthModalIdentifierForm.d.ts.map +1 -0
  34. package/dist/components/AuthModal/subcomponents/AuthModalIdentifierForm.js +62 -0
  35. package/dist/components/AuthModal/subcomponents/AuthModalOAuth.d.ts +11 -0
  36. package/dist/components/AuthModal/subcomponents/AuthModalOAuth.d.ts.map +1 -0
  37. package/dist/components/AuthModal/subcomponents/AuthModalOAuth.js +19 -0
  38. package/dist/components/AuthModal/subcomponents/AuthModalOtpForm.d.ts +10 -0
  39. package/dist/components/AuthModal/subcomponents/AuthModalOtpForm.d.ts.map +1 -0
  40. package/dist/components/AuthModal/subcomponents/AuthModalOtpForm.js +62 -0
  41. package/dist/components/AuthModal/subcomponents/AuthModalParts.d.ts +44 -0
  42. package/dist/components/AuthModal/subcomponents/AuthModalParts.d.ts.map +1 -0
  43. package/dist/components/AuthModal/subcomponents/AuthModalParts.js +134 -0
  44. package/dist/components/AuthModal/subcomponents/AuthModalPasswordForm.d.ts +10 -0
  45. package/dist/components/AuthModal/subcomponents/AuthModalPasswordForm.d.ts.map +1 -0
  46. package/dist/components/AuthModal/subcomponents/AuthModalPasswordForm.js +54 -0
  47. package/dist/components/AuthModal/subcomponents/AuthModalSetPasswordForm.d.ts +10 -0
  48. package/dist/components/AuthModal/subcomponents/AuthModalSetPasswordForm.d.ts.map +1 -0
  49. package/dist/components/AuthModal/subcomponents/AuthModalSetPasswordForm.js +79 -0
  50. package/dist/components/AuthModal/subcomponents/AuthModalSuccess.d.ts +10 -0
  51. package/dist/components/AuthModal/subcomponents/AuthModalSuccess.d.ts.map +1 -0
  52. package/dist/components/AuthModal/subcomponents/AuthModalSuccess.js +26 -0
  53. package/dist/components/AuthModal/subcomponents/OAuthButton.d.ts +12 -0
  54. package/dist/components/AuthModal/subcomponents/OAuthButton.d.ts.map +1 -0
  55. package/dist/components/AuthModal/subcomponents/OAuthButton.js +38 -0
  56. package/dist/components/AuthModal/subcomponents/index.d.ts +9 -0
  57. package/dist/components/AuthModal/subcomponents/index.d.ts.map +1 -0
  58. package/dist/components/Avatar/Avatar.styles.d.ts +2 -2
  59. package/dist/components/Avatar/Avatar.styles.js +11 -11
  60. package/dist/components/Badge/Badge.styles.d.ts +2 -2
  61. package/dist/components/Badge/Badge.styles.d.ts.map +1 -1
  62. package/dist/components/Badge/Badge.styles.js +10 -8
  63. package/dist/components/Button/Button.d.ts.map +1 -1
  64. package/dist/components/Button/Button.js +6 -0
  65. package/dist/components/Button/Button.styles.d.ts +4 -2
  66. package/dist/components/Button/Button.styles.d.ts.map +1 -1
  67. package/dist/components/Button/Button.styles.js +29 -10
  68. package/dist/components/Card/Card.d.ts.map +1 -1
  69. package/dist/components/Card/Card.js +51 -32
  70. package/dist/components/Card/Card.styles.d.ts +32 -5
  71. package/dist/components/Card/Card.styles.d.ts.map +1 -1
  72. package/dist/components/Card/Card.styles.js +70 -11
  73. package/dist/components/Card/Card.types.d.ts +14 -3
  74. package/dist/components/Card/Card.types.d.ts.map +1 -1
  75. package/dist/components/Checkbox/Checkbox.js +4 -4
  76. package/dist/components/Checkbox/Checkbox.styles.d.ts +2 -2
  77. package/dist/components/Checkbox/Checkbox.styles.js +1 -1
  78. package/dist/components/Chip/Chip.js +1 -1
  79. package/dist/components/Chip/Chip.styles.d.ts +1 -1
  80. package/dist/components/Chip/Chip.styles.js +5 -5
  81. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +30 -0
  82. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
  83. package/dist/components/ConfirmDialog/ConfirmDialog.js +57 -0
  84. package/dist/components/ConfirmDialog/index.d.ts +2 -0
  85. package/dist/components/ConfirmDialog/index.d.ts.map +1 -0
  86. package/dist/components/Container/Container.styles.d.ts +1 -1
  87. package/dist/components/DataList/DataList.d.ts +3 -1
  88. package/dist/components/DataList/DataList.d.ts.map +1 -1
  89. package/dist/components/DataList/DataList.js +53 -15
  90. package/dist/components/DataList/DataList.styles.d.ts +17 -4
  91. package/dist/components/DataList/DataList.styles.d.ts.map +1 -1
  92. package/dist/components/DataList/DataList.styles.js +56 -13
  93. package/dist/components/DataList/DataList.types.d.ts +19 -2
  94. package/dist/components/DataList/DataList.types.d.ts.map +1 -1
  95. package/dist/components/Dialog/Dialog.styles.js +6 -6
  96. package/dist/components/Divider/Divider.js +1 -1
  97. package/dist/components/Drawer/Drawer.d.ts +4 -3
  98. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  99. package/dist/components/Drawer/Drawer.js +33 -6
  100. package/dist/components/Drawer/Drawer.styles.d.ts +4 -0
  101. package/dist/components/Drawer/Drawer.styles.d.ts.map +1 -1
  102. package/dist/components/Drawer/Drawer.styles.js +9 -6
  103. package/dist/components/Drawer/Drawer.types.d.ts +1 -0
  104. package/dist/components/Drawer/Drawer.types.d.ts.map +1 -1
  105. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
  106. package/dist/components/Dropdown/Dropdown.js +25 -12
  107. package/dist/components/Dropdown/Dropdown.styles.d.ts +5 -1
  108. package/dist/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  109. package/dist/components/Dropdown/Dropdown.styles.js +13 -3
  110. package/dist/components/Dropdown/Dropdown.types.d.ts +4 -0
  111. package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  112. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
  113. package/dist/components/EmptyState/EmptyState.js +4 -3
  114. package/dist/components/EmptyState/EmptyState.styles.d.ts +3 -2
  115. package/dist/components/EmptyState/EmptyState.styles.d.ts.map +1 -1
  116. package/dist/components/EmptyState/EmptyState.styles.js +8 -3
  117. package/dist/components/Fieldset/Fieldset.d.ts +14 -0
  118. package/dist/components/Fieldset/Fieldset.d.ts.map +1 -0
  119. package/dist/components/Fieldset/Fieldset.js +24 -0
  120. package/dist/components/Fieldset/index.d.ts +2 -0
  121. package/dist/components/Fieldset/index.d.ts.map +1 -0
  122. package/dist/components/FormActions/FormActions.d.ts +13 -0
  123. package/dist/components/FormActions/FormActions.d.ts.map +1 -0
  124. package/dist/components/FormActions/FormActions.js +24 -0
  125. package/dist/components/FormActions/index.d.ts +2 -0
  126. package/dist/components/FormActions/index.d.ts.map +1 -0
  127. package/dist/components/FormField/FormField.js +1 -1
  128. package/dist/components/Grid/Grid.d.ts +3 -1
  129. package/dist/components/Grid/Grid.d.ts.map +1 -1
  130. package/dist/components/Grid/Grid.js +31 -5
  131. package/dist/components/Grid/Grid.styles.d.ts +86 -0
  132. package/dist/components/Grid/Grid.styles.d.ts.map +1 -1
  133. package/dist/components/Grid/Grid.styles.js +85 -1
  134. package/dist/components/Grid/Grid.types.d.ts +31 -3
  135. package/dist/components/Grid/Grid.types.d.ts.map +1 -1
  136. package/dist/components/Heading/Heading.styles.d.ts +2 -2
  137. package/dist/components/Heading/Heading.styles.d.ts.map +1 -1
  138. package/dist/components/Heading/Heading.styles.js +15 -11
  139. package/dist/components/Heading/Heading.types.d.ts +1 -1
  140. package/dist/components/Heading/Heading.types.d.ts.map +1 -1
  141. package/dist/components/Icon/Icon.styles.d.ts +2 -2
  142. package/dist/components/Icon/Icon.styles.d.ts.map +1 -1
  143. package/dist/components/Icon/Icon.styles.js +12 -8
  144. package/dist/components/IconTile/IconTile.d.ts +8 -0
  145. package/dist/components/IconTile/IconTile.d.ts.map +1 -0
  146. package/dist/components/IconTile/IconTile.js +23 -0
  147. package/dist/components/IconTile/IconTile.styles.d.ts +7 -0
  148. package/dist/components/IconTile/IconTile.styles.d.ts.map +1 -0
  149. package/dist/components/IconTile/IconTile.styles.js +24 -0
  150. package/dist/components/IconTile/IconTile.types.d.ts +12 -0
  151. package/dist/components/IconTile/IconTile.types.d.ts.map +1 -0
  152. package/dist/components/IconTile/index.d.ts +4 -0
  153. package/dist/components/IconTile/index.d.ts.map +1 -0
  154. package/dist/components/ImageUpload/ImageUpload.js +6 -6
  155. package/dist/components/ImageUpload/subcomponents/ImageUploadDropzone.js +10 -10
  156. package/dist/components/ImageUpload/subcomponents/ImageUploadModal.js +8 -8
  157. package/dist/components/ImageUpload/subcomponents/ImageUploadSinglePreview.js +7 -7
  158. package/dist/components/ImageUpload/subcomponents/ImageUploadThumbnailCard.js +10 -10
  159. package/dist/components/Inline/Inline.d.ts.map +1 -1
  160. package/dist/components/Inline/Inline.js +10 -2
  161. package/dist/components/Inline/Inline.types.d.ts +6 -1
  162. package/dist/components/Inline/Inline.types.d.ts.map +1 -1
  163. package/dist/components/Input/Input.js +4 -4
  164. package/dist/components/Input/Input.styles.d.ts +1 -1
  165. package/dist/components/Input/Input.styles.js +6 -6
  166. package/dist/components/Label/Label.styles.d.ts +1 -1
  167. package/dist/components/Label/Label.styles.js +4 -4
  168. package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
  169. package/dist/components/LinkButton/LinkButton.js +2 -0
  170. package/dist/components/LinkButton/LinkButton.styles.d.ts +3 -2
  171. package/dist/components/LinkButton/LinkButton.styles.d.ts.map +1 -1
  172. package/dist/components/LinkButton/LinkButton.styles.js +12 -6
  173. package/dist/components/List/List.d.ts.map +1 -1
  174. package/dist/components/List/List.js +19 -6
  175. package/dist/components/List/List.styles.d.ts +3 -1
  176. package/dist/components/List/List.styles.d.ts.map +1 -1
  177. package/dist/components/List/List.styles.js +7 -6
  178. package/dist/components/List/List.types.d.ts +7 -0
  179. package/dist/components/List/List.types.d.ts.map +1 -1
  180. package/dist/components/MediaCard/MediaCard.d.ts +13 -0
  181. package/dist/components/MediaCard/MediaCard.d.ts.map +1 -0
  182. package/dist/components/MediaCard/MediaCard.js +123 -0
  183. package/dist/components/MediaCard/MediaCard.styles.d.ts +17 -0
  184. package/dist/components/MediaCard/MediaCard.styles.d.ts.map +1 -0
  185. package/dist/components/MediaCard/MediaCard.styles.js +57 -0
  186. package/dist/components/MediaCard/MediaCard.types.d.ts +73 -0
  187. package/dist/components/MediaCard/MediaCard.types.d.ts.map +1 -0
  188. package/dist/components/MediaCard/index.d.ts +4 -0
  189. package/dist/components/MediaCard/index.d.ts.map +1 -0
  190. package/dist/components/NavFooter/NavFooter.styles.d.ts +1 -1
  191. package/dist/components/NavFooter/NavFooter.styles.js +9 -9
  192. package/dist/components/NavFooter/subcomponents/FooterBrand.js +3 -3
  193. package/dist/components/NavFooter/subcomponents/FooterLegalBar.js +1 -1
  194. package/dist/components/NavFooter/subcomponents/FooterNavSection.js +4 -4
  195. package/dist/components/NavFooter/subcomponents/FooterNewsletter.js +7 -7
  196. package/dist/components/NavFooter/subcomponents/FooterOffice.js +5 -5
  197. package/dist/components/NavFooter/subcomponents/FooterSocial.js +3 -3
  198. package/dist/components/NavHeader/NavHeader.d.ts.map +1 -1
  199. package/dist/components/NavHeader/NavHeader.js +13 -4
  200. package/dist/components/NavHeader/NavHeader.styles.d.ts +1 -1
  201. package/dist/components/NavHeader/NavHeader.styles.js +16 -16
  202. package/dist/components/NavHeader/NavHeader.types.d.ts +41 -0
  203. package/dist/components/NavHeader/NavHeader.types.d.ts.map +1 -1
  204. package/dist/components/NavHeader/index.d.ts +1 -1
  205. package/dist/components/NavHeader/index.d.ts.map +1 -1
  206. package/dist/components/NavHeader/subcomponents/NavActionLabelSkeleton.d.ts +4 -0
  207. package/dist/components/NavHeader/subcomponents/NavActionLabelSkeleton.d.ts.map +1 -0
  208. package/dist/components/NavHeader/subcomponents/NavActionLabelSkeleton.js +16 -0
  209. package/dist/components/NavHeader/subcomponents/NavActionOverflow.d.ts.map +1 -1
  210. package/dist/components/NavHeader/subcomponents/NavActionOverflow.js +6 -5
  211. package/dist/components/NavHeader/subcomponents/NavActions.d.ts +14 -0
  212. package/dist/components/NavHeader/subcomponents/NavActions.d.ts.map +1 -1
  213. package/dist/components/NavHeader/subcomponents/NavActions.js +82 -16
  214. package/dist/components/NavHeader/subcomponents/NavBrand.d.ts.map +1 -1
  215. package/dist/components/NavHeader/subcomponents/NavBrand.js +14 -15
  216. package/dist/components/NavHeader/subcomponents/NavItems.js +3 -3
  217. package/dist/components/NavHeader/subcomponents/NavItemsOverflow.js +7 -7
  218. package/dist/components/NavHeader/subcomponents/NavMobileSearchDrawer.js +5 -5
  219. package/dist/components/NavHeader/subcomponents/NavMobileTabSlider.js +2 -2
  220. package/dist/components/NavHeader/subcomponents/NavSearch.js +5 -5
  221. package/dist/components/NavHeader/subcomponents/OfferBanner.js +1 -1
  222. package/dist/components/OtpInput/OtpInput.d.ts +4 -0
  223. package/dist/components/OtpInput/OtpInput.d.ts.map +1 -0
  224. package/dist/components/OtpInput/OtpInput.js +114 -0
  225. package/dist/components/OtpInput/OtpInput.styles.d.ts +10 -0
  226. package/dist/components/OtpInput/OtpInput.styles.d.ts.map +1 -0
  227. package/dist/components/OtpInput/OtpInput.styles.js +49 -0
  228. package/dist/components/OtpInput/OtpInput.types.d.ts +40 -0
  229. package/dist/components/OtpInput/OtpInput.types.d.ts.map +1 -0
  230. package/dist/components/OtpInput/index.d.ts +4 -0
  231. package/dist/components/OtpInput/index.d.ts.map +1 -0
  232. package/dist/components/PageHeader/PageHeader.d.ts +8 -0
  233. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  234. package/dist/components/PageHeader/PageHeader.js +55 -0
  235. package/dist/components/PageHeader/PageHeader.styles.d.ts +10 -0
  236. package/dist/components/PageHeader/PageHeader.styles.d.ts.map +1 -0
  237. package/dist/components/PageHeader/PageHeader.styles.js +23 -0
  238. package/dist/components/PageHeader/PageHeader.types.d.ts +24 -0
  239. package/dist/components/PageHeader/PageHeader.types.d.ts.map +1 -0
  240. package/dist/components/PageHeader/index.d.ts +4 -0
  241. package/dist/components/PageHeader/index.d.ts.map +1 -0
  242. package/dist/components/Pagination/Pagination.d.ts +9 -3
  243. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  244. package/dist/components/Pagination/Pagination.js +60 -39
  245. package/dist/components/Pagination/Pagination.styles.d.ts +1 -1
  246. package/dist/components/Pagination/Pagination.styles.js +3 -3
  247. package/dist/components/Pagination/Pagination.types.d.ts +23 -14
  248. package/dist/components/Pagination/Pagination.types.d.ts.map +1 -1
  249. package/dist/components/Popover/Popover.styles.js +1 -1
  250. package/dist/components/Price/Price.d.ts +10 -0
  251. package/dist/components/Price/Price.d.ts.map +1 -0
  252. package/dist/components/Price/Price.js +49 -0
  253. package/dist/components/Price/Price.styles.d.ts +15 -0
  254. package/dist/components/Price/Price.styles.d.ts.map +1 -0
  255. package/dist/components/Price/Price.styles.js +44 -0
  256. package/dist/components/Price/Price.types.d.ts +22 -0
  257. package/dist/components/Price/Price.types.d.ts.map +1 -0
  258. package/dist/components/Price/index.d.ts +4 -0
  259. package/dist/components/Price/index.d.ts.map +1 -0
  260. package/dist/components/Progress/Progress.js +2 -2
  261. package/dist/components/Progress/Progress.styles.d.ts +1 -1
  262. package/dist/components/Radio/Radio.js +4 -4
  263. package/dist/components/Radio/Radio.styles.d.ts +2 -2
  264. package/dist/components/Radio/Radio.styles.js +1 -1
  265. package/dist/components/RangeSlider/RangeSlider.js +3 -3
  266. package/dist/components/RangeSlider/RangeSlider.styles.js +1 -1
  267. package/dist/components/Rating/Rating.d.ts +5 -0
  268. package/dist/components/Rating/Rating.d.ts.map +1 -0
  269. package/dist/components/Rating/Rating.js +38 -0
  270. package/dist/components/Rating/Rating.styles.d.ts +6 -0
  271. package/dist/components/Rating/Rating.styles.d.ts.map +1 -0
  272. package/dist/components/Rating/Rating.styles.js +13 -0
  273. package/dist/components/Rating/Rating.types.d.ts +18 -0
  274. package/dist/components/Rating/Rating.types.d.ts.map +1 -0
  275. package/dist/components/Rating/index.d.ts +4 -0
  276. package/dist/components/Rating/index.d.ts.map +1 -0
  277. package/dist/components/ResponsiveDialog/ResponsiveDialog.d.ts +29 -0
  278. package/dist/components/ResponsiveDialog/ResponsiveDialog.d.ts.map +1 -0
  279. package/dist/components/ResponsiveDialog/ResponsiveDialog.js +74 -0
  280. package/dist/components/ResponsiveDialog/ResponsiveDialog.types.d.ts +27 -0
  281. package/dist/components/ResponsiveDialog/ResponsiveDialog.types.d.ts.map +1 -0
  282. package/dist/components/ResponsiveDialog/index.d.ts +3 -0
  283. package/dist/components/ResponsiveDialog/index.d.ts.map +1 -0
  284. package/dist/components/SectionNav/SectionNav.d.ts +12 -0
  285. package/dist/components/SectionNav/SectionNav.d.ts.map +1 -0
  286. package/dist/components/SectionNav/SectionNav.js +67 -0
  287. package/dist/components/SectionNav/SectionNav.styles.d.ts +11 -0
  288. package/dist/components/SectionNav/SectionNav.styles.d.ts.map +1 -0
  289. package/dist/components/SectionNav/SectionNav.styles.js +28 -0
  290. package/dist/components/SectionNav/SectionNav.types.d.ts +37 -0
  291. package/dist/components/SectionNav/SectionNav.types.d.ts.map +1 -0
  292. package/dist/components/SectionNav/index.d.ts +4 -0
  293. package/dist/components/SectionNav/index.d.ts.map +1 -0
  294. package/dist/components/Select/Select.js +2 -2
  295. package/dist/components/Select/Select.styles.d.ts +1 -1
  296. package/dist/components/Select/Select.styles.js +8 -8
  297. package/dist/components/SideBarNavigation/SideBarNavigation.styles.js +8 -8
  298. package/dist/components/SideBarNavigation/subcomponents/SidebarBranding.js +3 -3
  299. package/dist/components/SideBarNavigation/subcomponents/SidebarFooter.js +1 -1
  300. package/dist/components/SideBarNavigation/subcomponents/SidebarPopoverMenu.js +4 -4
  301. package/dist/components/SideBarNavigation/subcomponents/SidebarProfile.js +9 -9
  302. package/dist/components/SideBarNavigation/subcomponents/SidebarSubItem.js +2 -2
  303. package/dist/components/Skeleton/Skeleton.styles.js +1 -1
  304. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  305. package/dist/components/Spinner/Spinner.js +9 -7
  306. package/dist/components/Spinner/Spinner.styles.d.ts +8 -2
  307. package/dist/components/Spinner/Spinner.styles.d.ts.map +1 -1
  308. package/dist/components/Spinner/Spinner.styles.js +27 -24
  309. package/dist/components/Spinner/Spinner.types.d.ts +9 -0
  310. package/dist/components/Spinner/Spinner.types.d.ts.map +1 -1
  311. package/dist/components/Stack/Stack.d.ts.map +1 -1
  312. package/dist/components/Stack/Stack.js +16 -1
  313. package/dist/components/Stack/Stack.types.d.ts +14 -1
  314. package/dist/components/Stack/Stack.types.d.ts.map +1 -1
  315. package/dist/components/Stat/Stat.styles.js +4 -4
  316. package/dist/components/Stepper/Stepper.d.ts +9 -0
  317. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  318. package/dist/components/Stepper/Stepper.js +81 -0
  319. package/dist/components/Stepper/Stepper.styles.d.ts +14 -0
  320. package/dist/components/Stepper/Stepper.styles.d.ts.map +1 -0
  321. package/dist/components/Stepper/Stepper.styles.js +40 -0
  322. package/dist/components/Stepper/Stepper.types.d.ts +17 -0
  323. package/dist/components/Stepper/Stepper.types.d.ts.map +1 -0
  324. package/dist/components/Stepper/index.d.ts +4 -0
  325. package/dist/components/Stepper/index.d.ts.map +1 -0
  326. package/dist/components/Steps/Steps.d.ts +9 -0
  327. package/dist/components/Steps/Steps.d.ts.map +1 -0
  328. package/dist/components/Steps/Steps.js +81 -0
  329. package/dist/components/Steps/Steps.styles.d.ts +14 -0
  330. package/dist/components/Steps/Steps.styles.d.ts.map +1 -0
  331. package/dist/components/Steps/Steps.styles.js +40 -0
  332. package/dist/components/Steps/Steps.types.d.ts +17 -0
  333. package/dist/components/Steps/Steps.types.d.ts.map +1 -0
  334. package/dist/components/Steps/index.d.ts +4 -0
  335. package/dist/components/Steps/index.d.ts.map +1 -0
  336. package/dist/components/SubNav/SubNav.d.ts +17 -0
  337. package/dist/components/SubNav/SubNav.d.ts.map +1 -0
  338. package/dist/components/SubNav/SubNav.js +87 -0
  339. package/dist/components/SubNav/SubNav.styles.d.ts +18 -0
  340. package/dist/components/SubNav/SubNav.styles.d.ts.map +1 -0
  341. package/dist/components/SubNav/SubNav.styles.js +33 -0
  342. package/dist/components/SubNav/SubNav.types.d.ts +45 -0
  343. package/dist/components/SubNav/SubNav.types.d.ts.map +1 -0
  344. package/dist/components/SubNav/index.d.ts +4 -0
  345. package/dist/components/SubNav/index.d.ts.map +1 -0
  346. package/dist/components/Switch/Switch.js +2 -2
  347. package/dist/components/Switch/Switch.styles.d.ts +2 -2
  348. package/dist/components/Switch/Switch.styles.js +1 -1
  349. package/dist/components/Table/Table.js +1 -1
  350. package/dist/components/Table/Table.styles.d.ts +1 -1
  351. package/dist/components/Table/Table.styles.js +5 -5
  352. package/dist/components/Table/TablePagination.js +4 -4
  353. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  354. package/dist/components/Tabs/Tabs.js +75 -8
  355. package/dist/components/Tabs/Tabs.styles.d.ts +10 -2
  356. package/dist/components/Tabs/Tabs.styles.d.ts.map +1 -1
  357. package/dist/components/Tabs/Tabs.styles.js +25 -10
  358. package/dist/components/Tabs/Tabs.types.d.ts +13 -0
  359. package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
  360. package/dist/components/Text/Text.d.ts.map +1 -1
  361. package/dist/components/Text/Text.js +4 -0
  362. package/dist/components/Text/Text.styles.d.ts +4 -2
  363. package/dist/components/Text/Text.styles.d.ts.map +1 -1
  364. package/dist/components/Text/Text.styles.js +32 -16
  365. package/dist/components/Text/Text.types.d.ts +1 -1
  366. package/dist/components/Text/Text.types.d.ts.map +1 -1
  367. package/dist/components/Textarea/Textarea.js +4 -4
  368. package/dist/components/Textarea/Textarea.styles.d.ts +1 -1
  369. package/dist/components/Textarea/Textarea.styles.js +6 -6
  370. package/dist/components/Toast/Toast.js +3 -3
  371. package/dist/components/Toast/Toast.styles.js +5 -5
  372. package/dist/components/Toast/ToastContainer.js +1 -1
  373. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  374. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +8 -0
  375. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  376. package/dist/components/VisuallyHidden/VisuallyHidden.js +14 -0
  377. package/dist/components/VisuallyHidden/index.d.ts +2 -0
  378. package/dist/components/VisuallyHidden/index.d.ts.map +1 -0
  379. package/dist/index.d.ts +15 -0
  380. package/dist/index.d.ts.map +1 -1
  381. package/dist/index.js +46 -14
  382. package/dist/utils/gap.d.ts +21 -1
  383. package/dist/utils/gap.d.ts.map +1 -1
  384. package/dist/utils/gap.js +306 -46
  385. package/package.json +7 -6
  386. package/dist/components/CrossZoneLink/CrossZoneLink.d.ts +0 -10
  387. package/dist/components/CrossZoneLink/CrossZoneLink.d.ts.map +0 -1
  388. package/dist/components/CrossZoneLink/CrossZoneLink.js +0 -111
  389. package/dist/components/CrossZoneLink/CrossZoneLink.styles.d.ts +0 -8
  390. package/dist/components/CrossZoneLink/CrossZoneLink.styles.d.ts.map +0 -1
  391. package/dist/components/CrossZoneLink/CrossZoneLink.styles.js +0 -33
  392. package/dist/components/CrossZoneLink/CrossZoneLink.types.d.ts +0 -31
  393. package/dist/components/CrossZoneLink/CrossZoneLink.types.d.ts.map +0 -1
  394. package/dist/components/CrossZoneLink/index.d.ts +0 -4
  395. package/dist/components/CrossZoneLink/index.d.ts.map +0 -1
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { useAuthModalLabels } from '../AuthModal.labels.js';
4
+ import { AuthStepHeader, AuthDestination, AuthForm, AuthPasswordField, AuthFieldError, AuthSubmitButton, AuthTextLink } from './AuthModalParts.js';
5
+
6
+ const ERROR_ID = "auth-password-error";
7
+ function AuthModalPasswordForm({ form }) {
8
+ const labels = useAuthModalLabels();
9
+ const {
10
+ identifier = "",
11
+ password = "",
12
+ onPasswordChange,
13
+ onPasswordSubmit,
14
+ onForgotPassword,
15
+ onEditIdentifier,
16
+ isLoading = false,
17
+ error
18
+ } = form;
19
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "auth-modal-password-step", className: "flex flex-col", children: [
20
+ /* @__PURE__ */ jsx(
21
+ AuthStepHeader,
22
+ {
23
+ title: labels.passwordTitle,
24
+ subtitle: /* @__PURE__ */ jsx(AuthDestination, { value: identifier, onEdit: onEditIdentifier, disabled: isLoading })
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsxs(AuthForm, { onSubmit: onPasswordSubmit, className: "space-y-4", children: [
28
+ /* @__PURE__ */ jsx("input", { type: "hidden", name: "username", autoComplete: "username", value: identifier, readOnly: true }),
29
+ /* @__PURE__ */ jsxs("div", { children: [
30
+ /* @__PURE__ */ jsx(
31
+ AuthPasswordField,
32
+ {
33
+ id: "auth-password-input",
34
+ label: labels.passwordLabel,
35
+ placeholder: labels.passwordPlaceholder,
36
+ autoComplete: "current-password",
37
+ value: password,
38
+ onValueChange: onPasswordChange,
39
+ disabled: isLoading,
40
+ autoFocus: true,
41
+ invalid: !!error,
42
+ describedBy: error ? ERROR_ID : void 0
43
+ }
44
+ ),
45
+ /* @__PURE__ */ jsx(AuthFieldError, { id: ERROR_ID, children: error })
46
+ ] }),
47
+ /* @__PURE__ */ jsx(AuthSubmitButton, { isLoading, disabled: !password, children: labels.passwordSubmit }),
48
+ onForgotPassword && /* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(AuthTextLink, { onClick: onForgotPassword, disabled: isLoading, className: "text-body-2", children: labels.forgotPassword }) })
49
+ ] })
50
+ ] });
51
+ }
52
+ AuthModalPasswordForm.displayName = "AuthModalPasswordForm";
53
+
54
+ export { AuthModalPasswordForm };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import type { AuthModalFormProps } from '../AuthModal.types';
3
+ export interface AuthModalSetPasswordFormProps {
4
+ form: AuthModalFormProps;
5
+ }
6
+ export declare function AuthModalSetPasswordForm({ form }: AuthModalSetPasswordFormProps): React.JSX.Element;
7
+ export declare namespace AuthModalSetPasswordForm {
8
+ var displayName: string;
9
+ }
10
+ //# sourceMappingURL=AuthModalSetPasswordForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthModalSetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthModal/subcomponents/AuthModalSetPasswordForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAU7D,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAKD,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,EAAE,6BAA6B,qBA0E/E;yBA1Ee,wBAAwB"}
@@ -0,0 +1,79 @@
1
+ "use client";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { useAuthModalLabels } from '../AuthModal.labels.js';
4
+ import { AuthStepHeader, AuthForm, AuthPasswordField, AuthFieldError, AuthSubmitButton, AuthTextLink } from './AuthModalParts.js';
5
+
6
+ const HINT_ID = "auth-new-password-hint";
7
+ const ERROR_ID = "auth-set-password-error";
8
+ function AuthModalSetPasswordForm({ form }) {
9
+ const labels = useAuthModalLabels();
10
+ const {
11
+ setPasswordMode = "create",
12
+ newPassword = "",
13
+ onNewPasswordChange,
14
+ confirmPassword = "",
15
+ onConfirmPasswordChange,
16
+ onSetPasswordSubmit,
17
+ onSkipSetPassword,
18
+ isLoading = false,
19
+ error
20
+ } = form;
21
+ const isReset = setPasswordMode === "reset";
22
+ const mismatch = confirmPassword.length > 0 && confirmPassword !== newPassword;
23
+ const shownError = error ?? (mismatch ? labels.passwordMismatch : null);
24
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "auth-modal-set-password-step", className: "flex flex-col", children: [
25
+ /* @__PURE__ */ jsx(
26
+ AuthStepHeader,
27
+ {
28
+ title: isReset ? labels.setPasswordResetTitle : labels.setPasswordCreateTitle,
29
+ subtitle: isReset ? labels.setPasswordResetSubtitle : labels.setPasswordCreateSubtitle
30
+ }
31
+ ),
32
+ /* @__PURE__ */ jsxs(AuthForm, { onSubmit: onSetPasswordSubmit, className: "space-y-4", children: [
33
+ /* @__PURE__ */ jsx(
34
+ AuthPasswordField,
35
+ {
36
+ id: "auth-new-password-input",
37
+ label: labels.newPasswordLabel,
38
+ placeholder: labels.newPasswordLabel,
39
+ autoComplete: "new-password",
40
+ value: newPassword,
41
+ onValueChange: onNewPasswordChange,
42
+ disabled: isLoading,
43
+ autoFocus: true,
44
+ describedBy: HINT_ID
45
+ }
46
+ ),
47
+ /* @__PURE__ */ jsxs("div", { children: [
48
+ /* @__PURE__ */ jsx(
49
+ AuthPasswordField,
50
+ {
51
+ id: "auth-confirm-password-input",
52
+ label: labels.confirmPasswordLabel,
53
+ placeholder: labels.confirmPasswordLabel,
54
+ autoComplete: "new-password",
55
+ value: confirmPassword,
56
+ onValueChange: onConfirmPasswordChange,
57
+ disabled: isLoading,
58
+ invalid: !!shownError,
59
+ describedBy: shownError ? ERROR_ID : void 0
60
+ }
61
+ ),
62
+ /* @__PURE__ */ jsx(AuthFieldError, { id: ERROR_ID, children: shownError })
63
+ ] }),
64
+ /* @__PURE__ */ jsx("p", { id: HINT_ID, className: "text-body-3 text-grey-600", children: labels.passwordHint }),
65
+ /* @__PURE__ */ jsx(
66
+ AuthSubmitButton,
67
+ {
68
+ isLoading,
69
+ disabled: !newPassword || newPassword !== confirmPassword,
70
+ children: labels.setPasswordSubmit
71
+ }
72
+ ),
73
+ !isReset && onSkipSetPassword && /* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(AuthTextLink, { onClick: onSkipSetPassword, disabled: isLoading, className: "text-body-2", children: labels.skipForNow }) })
74
+ ] })
75
+ ] });
76
+ }
77
+ AuthModalSetPasswordForm.displayName = "AuthModalSetPasswordForm";
78
+
79
+ export { AuthModalSetPasswordForm };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import type { AuthModalFormProps } from '../AuthModal.types';
3
+ export interface AuthModalSuccessProps {
4
+ form: AuthModalFormProps;
5
+ }
6
+ export declare function AuthModalSuccess({ form }: AuthModalSuccessProps): React.JSX.Element;
7
+ export declare namespace AuthModalSuccess {
8
+ var displayName: string;
9
+ }
10
+ //# sourceMappingURL=AuthModalSuccess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthModalSuccess.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthModal/subcomponents/AuthModalSuccess.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,qBAAqB,qBAkB/D;yBAlBe,gBAAgB"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { CheckCircle } from '@timmbr/icons';
4
+ import { useAuthModalLabels } from '../AuthModal.labels.js';
5
+ import { AuthStepHeader } from './AuthModalParts.js';
6
+
7
+ function AuthModalSuccess({ form }) {
8
+ const labels = useAuthModalLabels();
9
+ const { successTitle = labels.successTitle, successMessage } = form;
10
+ return /* @__PURE__ */ jsxs(
11
+ "div",
12
+ {
13
+ "data-slot": "auth-modal-success-step",
14
+ role: "status",
15
+ "aria-live": "polite",
16
+ className: "flex flex-col items-center justify-center text-center gap-4 py-10 min-h-[320px]",
17
+ children: [
18
+ /* @__PURE__ */ jsx("div", { className: "flex size-16 items-center justify-center rounded-full bg-primary/10 text-primary", children: /* @__PURE__ */ jsx(CheckCircle, { className: "size-9", "aria-hidden": "true" }) }),
19
+ /* @__PURE__ */ jsx(AuthStepHeader, { title: successTitle, subtitle: successMessage, focusOnMount: true })
20
+ ]
21
+ }
22
+ );
23
+ }
24
+ AuthModalSuccess.displayName = "AuthModalSuccess";
25
+
26
+ export { AuthModalSuccess };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import type { AuthOAuthProvider } from '../AuthModal.types';
3
+ export interface OAuthButtonProps {
4
+ provider: AuthOAuthProvider;
5
+ /** Disable while another sign-in request is in flight */
6
+ disabled?: boolean;
7
+ }
8
+ export declare function OAuthButton({ provider, disabled }: OAuthButtonProps): React.JSX.Element;
9
+ export declare namespace OAuthButton {
10
+ var displayName: string;
11
+ }
12
+ //# sourceMappingURL=OAuthButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OAuthButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthModal/subcomponents/OAuthButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAe5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,qBAoBnE;yBApBe,WAAW"}
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
+ import { GitHubIcon, AppleIcon, GoogleIcon } from '@timmbr/icons';
4
+ import { useAuthModalLabels } from '../AuthModal.labels.js';
5
+ import { authModalSecondaryButtonVariants } from '../AuthModal.styles.js';
6
+ import { Spinner } from '../../Spinner/Spinner.js';
7
+
8
+ const PROVIDER_ICONS = {
9
+ google: GoogleIcon,
10
+ apple: AppleIcon,
11
+ github: GitHubIcon
12
+ };
13
+ function ProviderIcon({ provider }) {
14
+ if (provider.icon) return /* @__PURE__ */ jsx(Fragment, { children: provider.icon });
15
+ const BuiltIn = PROVIDER_ICONS[provider.id.toLowerCase()];
16
+ return BuiltIn ? /* @__PURE__ */ jsx(BuiltIn, { className: "size-5 shrink-0" }) : null;
17
+ }
18
+ function OAuthButton({ provider, disabled }) {
19
+ const labels = useAuthModalLabels();
20
+ return /* @__PURE__ */ jsxs(
21
+ "button",
22
+ {
23
+ type: "button",
24
+ onClick: provider.onClick,
25
+ disabled: disabled || provider.disabled || provider.isLoading,
26
+ "aria-busy": provider.isLoading || void 0,
27
+ "data-slot": `oauth-button-${provider.id}`,
28
+ className: authModalSecondaryButtonVariants(),
29
+ children: [
30
+ provider.isLoading ? /* @__PURE__ */ jsx(Spinner, { size: "sm", variant: "primary", decorative: true }) : /* @__PURE__ */ jsx(ProviderIcon, { provider }),
31
+ /* @__PURE__ */ jsx("span", { children: labels.oauthContinueWith(provider.name) })
32
+ ]
33
+ }
34
+ );
35
+ }
36
+ OAuthButton.displayName = "OAuthButton";
37
+
38
+ export { OAuthButton };
@@ -0,0 +1,9 @@
1
+ export * from './OAuthButton';
2
+ export * from './AuthModalBanner';
3
+ export * from './AuthModalIdentifierForm';
4
+ export * from './AuthModalOtpForm';
5
+ export * from './AuthModalPasswordForm';
6
+ export * from './AuthModalSetPasswordForm';
7
+ export * from './AuthModalOAuth';
8
+ export * from './AuthModalSuccess';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthModal/subcomponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const avatarRootVariants: (props?: ({
3
- size?: "sm" | "lg" | "md" | "xl" | "2xl" | "xs" | null | undefined;
3
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
4
4
  variant?: "grey" | "outline" | "subtle" | "primary" | "secondary" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export declare const avatarStatusVariants: (props?: ({
7
7
  status?: "offline" | "online" | "busy" | "away" | null | undefined;
8
- size?: "sm" | "lg" | "md" | "xl" | "2xl" | "xs" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  export type AvatarVariants = VariantProps<typeof avatarRootVariants>;
11
11
  //# sourceMappingURL=Avatar.styles.d.ts.map
@@ -5,18 +5,18 @@ const avatarRootVariants = cva(
5
5
  {
6
6
  variants: {
7
7
  size: {
8
- xs: "size-6 text-[10px]",
9
- sm: "size-8 text-xs",
10
- md: "size-10 text-[15px]",
11
- lg: "size-12 text-base",
12
- xl: "size-16 text-xl",
13
- "2xl": "size-20 text-2xl"
8
+ xs: "size-6 text-caption",
9
+ sm: "size-8 text-body-3",
10
+ md: "size-10 text-body-2",
11
+ lg: "size-12 text-body-1",
12
+ xl: "size-16 text-h5",
13
+ "2xl": "size-20 text-h4"
14
14
  },
15
15
  variant: {
16
- primary: "bg-primary text-white",
16
+ primary: "bg-primary text-grey-50",
17
17
  secondary: "bg-secondary text-secondary-foreground",
18
18
  subtle: "bg-bg-subtle text-foreground",
19
- grey: "bg-grey-700 text-white",
19
+ grey: "bg-grey-700 text-grey-50",
20
20
  outline: "bg-background border border-grey-300 dark:border-grey-700 text-foreground"
21
21
  }
22
22
  },
@@ -31,10 +31,10 @@ const avatarStatusVariants = cva(
31
31
  {
32
32
  variants: {
33
33
  status: {
34
- online: "bg-emerald-500",
34
+ online: "bg-success",
35
35
  offline: "bg-grey-400",
36
- busy: "bg-rose-500",
37
- away: "bg-amber-500"
36
+ busy: "bg-destructive",
37
+ away: "bg-warning"
38
38
  },
39
39
  size: {
40
40
  xs: "size-1.5",
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const badgeVariants: (props?: ({
3
- variant?: "default" | "destructive" | "success" | "outline" | "subtle" | "primary" | "secondary" | "brand" | null | undefined;
4
- size?: "sm" | "lg" | "md" | null | undefined;
3
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "outline" | "subtle" | "primary" | "secondary" | "brand" | null | undefined;
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export type BadgeVariants = VariantProps<typeof badgeVariants>;
7
7
  //# sourceMappingURL=Badge.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,aAAa;;;8EAyBzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"Badge.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,aAAa;;;8EA2BzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -5,19 +5,21 @@ const badgeVariants = cva(
5
5
  {
6
6
  variants: {
7
7
  variant: {
8
- primary: "bg-primary-300 text-white",
9
- brand: "bg-primary text-white",
10
- default: "bg-primary text-white",
8
+ primary: "bg-primary-300 text-grey-50",
9
+ brand: "bg-primary text-grey-50",
10
+ default: "bg-primary text-grey-50",
11
11
  secondary: "bg-secondary text-secondary-foreground",
12
12
  outline: "border border-grey-300 dark:border-grey-700 bg-transparent text-foreground",
13
13
  subtle: "bg-bg-subtle text-foreground",
14
- success: "bg-emerald-600 text-white",
15
- destructive: "bg-destructive text-white"
14
+ success: "bg-success text-grey-50",
15
+ destructive: "bg-destructive text-grey-50",
16
+ warning: "bg-warning text-warning-foreground",
17
+ info: "bg-info text-info-foreground"
16
18
  },
17
19
  size: {
18
- sm: "px-1.5 py-0.5 text-xs",
19
- md: "px-2 py-1 text-[14px]",
20
- lg: "px-3 py-1.5 text-base font-medium"
20
+ sm: "px-1.5 py-0.5 text-body-3",
21
+ md: "px-2 py-1 text-body-2",
22
+ lg: "px-3 py-1.5 text-body-1 font-medium"
21
23
  }
22
24
  },
23
25
  defaultVariants: {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,uFA+FlB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,uFAqGlB,CAAC"}
@@ -15,6 +15,8 @@ const Button = React.forwardRef(
15
15
  style,
16
16
  variant,
17
17
  size,
18
+ shape,
19
+ fullWidth,
18
20
  asChild = false,
19
21
  motion,
20
22
  leftIcon,
@@ -40,6 +42,8 @@ const Button = React.forwardRef(
40
42
  buttonVariants({
41
43
  variant: resolvedVariant,
42
44
  size: resolvedSize,
45
+ shape,
46
+ fullWidth,
43
47
  className
44
48
  }),
45
49
  !shouldAnimate && "transition-none active:scale-100",
@@ -66,6 +70,8 @@ const Button = React.forwardRef(
66
70
  buttonVariants({
67
71
  variant: resolvedVariant,
68
72
  size: resolvedSize,
73
+ shape,
74
+ fullWidth,
69
75
  className
70
76
  }),
71
77
  !shouldAnimate && "transition-none active:scale-100",
@@ -1,7 +1,9 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const buttonVariants: (props?: ({
3
- variant?: "link" | "default" | "destructive" | "outline" | "ghost" | "primary" | "secondary" | null | undefined;
4
- size?: "default" | "icon" | "sm" | "lg" | "md" | null | undefined;
3
+ variant?: "link" | "default" | "destructive" | "overlay" | "outline" | "ghost" | "primary" | "secondary" | "destructive-outline" | "destructive-ghost" | null | undefined;
4
+ size?: "sm" | "md" | "lg" | "default" | "icon" | "icon-sm" | null | undefined;
5
+ shape?: "default" | "circle" | null | undefined;
6
+ fullWidth?: boolean | null | undefined;
5
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
8
  export type ButtonVariants = VariantProps<typeof buttonVariants>;
7
9
  //# sourceMappingURL=Button.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,cAAc;;;8EAiC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,cAAc;;;;;8EAuD1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -1,29 +1,48 @@
1
1
  import { cva } from 'class-variance-authority';
2
2
 
3
3
  const buttonVariants = cva(
4
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[2px] font-sans font-semibold transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer select-none active:scale-[0.98]",
4
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap font-sans font-semibold transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer select-none active:scale-[0.98]",
5
5
  {
6
6
  variants: {
7
7
  variant: {
8
- default: "bg-primary text-white hover:bg-primary-600 hover:brightness-105 hover:shadow-md active:bg-primary-700 active:brightness-95 shadow-sm",
9
- primary: "bg-primary text-white hover:bg-primary-600 hover:brightness-105 hover:shadow-md active:bg-primary-700 active:brightness-95 shadow-sm",
8
+ default: "bg-primary text-grey-50 hover:bg-primary-600 hover:brightness-105 hover:shadow-md active:bg-primary-700 active:brightness-95 shadow-sm",
9
+ primary: "bg-primary text-grey-50 hover:bg-primary-600 hover:brightness-105 hover:shadow-md active:bg-primary-700 active:brightness-95 shadow-sm",
10
10
  secondary: "bg-secondary text-secondary-foreground hover:bg-bg-subtle hover:brightness-105 active:bg-secondary-foreground/10 active:brightness-95 shadow-xs hover:shadow-sm",
11
11
  outline: "border border-grey-300 dark:border-grey-700 bg-transparent text-foreground hover:bg-grey-100 dark:hover:bg-grey-900 active:bg-grey-200 dark:active:bg-grey-800 hover:border-grey-400 dark:hover:border-grey-600",
12
12
  ghost: "text-foreground hover:bg-grey-100 dark:hover:bg-grey-900 active:bg-grey-200 dark:active:bg-grey-800",
13
- destructive: "bg-destructive text-white hover:bg-red-700 hover:brightness-105 hover:shadow-md active:brightness-95 shadow-sm",
13
+ destructive: "bg-destructive text-grey-50 hover:bg-destructive/90 hover:brightness-105 hover:shadow-md active:brightness-95 shadow-sm",
14
+ "destructive-outline": "border border-destructive/40 bg-transparent text-destructive hover:bg-destructive/10 hover:border-destructive active:bg-destructive/15",
15
+ "destructive-ghost": "text-destructive hover:bg-destructive/10 active:bg-destructive/15",
16
+ /** Floating over imagery (e.g. a wishlist toggle on a product photo). */
17
+ overlay: "bg-card/90 text-foreground shadow-xs backdrop-blur-xs hover:bg-card hover:text-primary aria-pressed:text-primary [&[aria-pressed=true]_svg]:fill-current",
14
18
  link: "text-primary underline-offset-4 hover:underline p-0 h-auto active:scale-100 font-normal"
15
19
  },
16
20
  size: {
17
- sm: "h-9 px-3 text-xs",
18
- default: "h-11 px-5 text-sm",
19
- md: "h-11 px-5 text-sm",
20
- lg: "h-[52px] px-6 text-base",
21
- icon: "h-10 w-10 p-0 shrink-0"
21
+ sm: "h-9 px-3 text-body-3 [&_svg]:size-3.5",
22
+ default: "h-11 px-5 text-body-2 [&_svg]:size-4",
23
+ md: "h-11 px-5 text-body-2 [&_svg]:size-4",
24
+ lg: "h-[52px] px-6 text-body-1 [&_svg]:size-5",
25
+ icon: "h-10 w-10 p-0 shrink-0 [&_svg]:size-5",
26
+ "icon-sm": "h-8 w-8 p-0 shrink-0 [&_svg]:size-4.5"
27
+ },
28
+ shape: {
29
+ default: "rounded-[2px]",
30
+ circle: "rounded-full"
31
+ },
32
+ fullWidth: {
33
+ true: "w-full",
34
+ false: ""
22
35
  }
23
36
  },
37
+ compoundVariants: [
38
+ // A text link keeps its inline size: no button height or padding.
39
+ { variant: "link", className: "h-auto px-0 py-0" }
40
+ ],
24
41
  defaultVariants: {
25
42
  variant: "default",
26
- size: "default"
43
+ size: "default",
44
+ shape: "default",
45
+ fullWidth: false
27
46
  }
28
47
  }
29
48
  );
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,IAAI,kFAWhB,CAAC;AAGF,eAAO,MAAM,UAAU,wFAWtB,CAAC;AAGF,eAAO,MAAM,SAAS,2FAWrB,CAAC;AAGF,eAAO,MAAM,eAAe,mGAY1B,CAAC;AAGH,eAAO,MAAM,WAAW,yFAWvB,CAAC;AAGF,eAAO,MAAM,UAAU,wFAWtB,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EAChB,MAAM,cAAc,CAAC;AAUtB,eAAO,MAAM,IAAI,kFAkBhB,CAAC;AAGF,eAAO,MAAM,UAAU,wFAmCtB,CAAC;AAGF,eAAO,MAAM,SAAS,2FAKrB,CAAC;AAGF,eAAO,MAAM,eAAe,mGAK3B,CAAC;AAGF,eAAO,MAAM,WAAW,yFAYvB,CAAC;AAGF,eAAO,MAAM,UAAU,wFAgBtB,CAAC"}
@@ -1,32 +1,57 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
3
  import * as React from 'react';
3
4
  import { Slot } from '@radix-ui/react-slot';
4
5
  import { cn } from '@timmbr/utils';
5
- import { cardVariants, cardContentVariants, cardDescriptionVariants, cardFooterVariants, cardHeaderVariants, cardTitleVariants } from './Card.styles.js';
6
+ import { cardVariants, cardContentVariants, cardSectionPadding, cardDescriptionVariants, cardFooterVariants, cardSectionFooterPadding, cardHeaderVariants, cardTitleVariants } from './Card.styles.js';
6
7
 
8
+ const CardContext = React.createContext({
9
+ sectioned: false,
10
+ padding: "default"
11
+ });
7
12
  const Card = React.forwardRef(
8
- ({ className, variant, padding, asChild = false, ...props }, ref) => {
13
+ ({ className, variant, padding, selected = false, sectioned = false, asChild = false, ...props }, ref) => {
9
14
  const Comp = asChild ? Slot : "div";
10
- return /* @__PURE__ */ jsx(
15
+ const context = React.useMemo(
16
+ () => ({ sectioned, padding: padding ?? "default" }),
17
+ [sectioned, padding]
18
+ );
19
+ return /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
11
20
  Comp,
12
21
  {
13
22
  ref,
14
- className: cn(cardVariants({ variant, padding }), className),
23
+ "data-selected": selected || void 0,
24
+ className: cn(cardVariants({ variant, padding, selected, sectioned }), className),
15
25
  ...props
16
26
  }
17
- );
27
+ ) });
18
28
  }
19
29
  );
20
30
  Card.displayName = "Card";
21
31
  const CardHeader = React.forwardRef(
22
- ({ className, asChild = false, ...props }, ref) => {
32
+ ({ className, asChild = false, divider = false, actions, children, ...props }, ref) => {
33
+ const { sectioned, padding } = React.useContext(CardContext);
23
34
  const Comp = asChild ? Slot : "div";
24
- return /* @__PURE__ */ jsx(
35
+ const classes = cn(
36
+ cardHeaderVariants({ sectioned, divider }),
37
+ sectioned && cardSectionPadding[padding],
38
+ // Without a divider the content's own top padding is the gap.
39
+ sectioned && !divider && "pb-0",
40
+ className
41
+ );
42
+ if (actions === void 0 || actions === null || actions === false) {
43
+ return /* @__PURE__ */ jsx(Comp, { ref, className: classes, ...props, children });
44
+ }
45
+ return /* @__PURE__ */ jsxs(
25
46
  Comp,
26
47
  {
27
48
  ref,
28
- className: cn(cardHeaderVariants(), className),
29
- ...props
49
+ className: cn(classes, "flex-row flex-wrap items-start justify-between gap-3"),
50
+ ...props,
51
+ children: [
52
+ /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-col gap-1.5", "data-slot": "card-header-text", children }),
53
+ /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-2", "data-slot": "card-header-actions", children: actions })
54
+ ]
30
55
  }
31
56
  );
32
57
  }
@@ -35,37 +60,26 @@ CardHeader.displayName = "CardHeader";
35
60
  const CardTitle = React.forwardRef(
36
61
  ({ className, asChild = false, ...props }, ref) => {
37
62
  const Comp = asChild ? Slot : "h3";
38
- return /* @__PURE__ */ jsx(
39
- Comp,
40
- {
41
- ref,
42
- className: cn(cardTitleVariants(), className),
43
- ...props
44
- }
45
- );
63
+ return /* @__PURE__ */ jsx(Comp, { ref, className: cn(cardTitleVariants(), className), ...props });
46
64
  }
47
65
  );
48
66
  CardTitle.displayName = "CardTitle";
49
- const CardDescription = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
50
- const Comp = asChild ? Slot : "p";
51
- return /* @__PURE__ */ jsx(
52
- Comp,
53
- {
54
- ref,
55
- className: cn(cardDescriptionVariants(), className),
56
- ...props
57
- }
58
- );
59
- });
67
+ const CardDescription = React.forwardRef(
68
+ ({ className, asChild = false, ...props }, ref) => {
69
+ const Comp = asChild ? Slot : "p";
70
+ return /* @__PURE__ */ jsx(Comp, { ref, className: cn(cardDescriptionVariants(), className), ...props });
71
+ }
72
+ );
60
73
  CardDescription.displayName = "CardDescription";
61
74
  const CardContent = React.forwardRef(
62
75
  ({ className, asChild = false, ...props }, ref) => {
76
+ const { sectioned, padding } = React.useContext(CardContext);
63
77
  const Comp = asChild ? Slot : "div";
64
78
  return /* @__PURE__ */ jsx(
65
79
  Comp,
66
80
  {
67
81
  ref,
68
- className: cn(cardContentVariants(), className),
82
+ className: cn(cardContentVariants({ sectioned }), sectioned && cardSectionPadding[padding], className),
69
83
  ...props
70
84
  }
71
85
  );
@@ -73,13 +87,18 @@ const CardContent = React.forwardRef(
73
87
  );
74
88
  CardContent.displayName = "CardContent";
75
89
  const CardFooter = React.forwardRef(
76
- ({ className, asChild = false, ...props }, ref) => {
90
+ ({ className, asChild = false, justify, ...props }, ref) => {
91
+ const { sectioned, padding } = React.useContext(CardContext);
77
92
  const Comp = asChild ? Slot : "div";
78
93
  return /* @__PURE__ */ jsx(
79
94
  Comp,
80
95
  {
81
96
  ref,
82
- className: cn(cardFooterVariants(), className),
97
+ className: cn(
98
+ cardFooterVariants({ sectioned, justify }),
99
+ sectioned && cardSectionFooterPadding[padding],
100
+ className
101
+ ),
83
102
  ...props
84
103
  }
85
104
  );