@lucasromero/matrix-ui 0.7.2 → 0.9.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 (343) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +21 -0
  3. package/README.md +93 -61
  4. package/dist/components/Accordion/Accordion.d.ts +5 -0
  5. package/dist/components/Accordion/Accordion.js +40 -0
  6. package/dist/components/Accordion/index.d.ts +1 -0
  7. package/dist/components/Accordion/index.module.js +10 -0
  8. package/dist/components/Alert/Alert.d.ts +11 -0
  9. package/dist/components/Alert/Alert.js +66 -0
  10. package/dist/components/Alert/index.d.ts +1 -0
  11. package/dist/components/Alert/index.module.js +15 -0
  12. package/dist/components/Avatar/Avatar.d.ts +6 -0
  13. package/dist/components/Avatar/Avatar.js +36 -0
  14. package/dist/components/Avatar/helpers/getInitials.d.ts +1 -0
  15. package/dist/components/Avatar/helpers/getInitials.js +6 -0
  16. package/dist/components/Avatar/index.d.ts +1 -0
  17. package/dist/components/Avatar/index.module.js +9 -0
  18. package/dist/components/AvatarGroup/AvatarGroup.d.ts +7 -0
  19. package/dist/components/AvatarGroup/AvatarGroup.js +35 -0
  20. package/dist/components/AvatarGroup/index.d.ts +1 -0
  21. package/dist/components/AvatarGroup/index.module.js +9 -0
  22. package/dist/components/Badge/Badge.d.ts +5 -3
  23. package/dist/components/Badge/Badge.js +21 -0
  24. package/dist/components/Badge/index.d.ts +1 -0
  25. package/dist/components/Badge/index.module.js +10 -0
  26. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -0
  27. package/dist/components/Breadcrumbs/Breadcrumbs.js +41 -0
  28. package/dist/components/Breadcrumbs/index.d.ts +1 -0
  29. package/dist/components/Breadcrumbs/index.module.js +11 -0
  30. package/dist/components/Button/Button.d.ts +6 -3
  31. package/dist/components/Button/Button.js +27 -0
  32. package/dist/components/Button/ButtonLink.d.ts +6 -0
  33. package/dist/components/Button/ButtonLink.js +16 -0
  34. package/dist/components/Button/buttonClassName.d.ts +2 -0
  35. package/dist/components/Button/buttonClassName.js +11 -0
  36. package/dist/components/Button/index.d.ts +2 -1
  37. package/dist/components/Button/index.module.js +13 -0
  38. package/dist/components/Card/Card.d.ts +3 -3
  39. package/dist/components/Card/Card.js +10 -0
  40. package/dist/components/Card/index.d.ts +1 -0
  41. package/dist/components/Card/index.module.js +3 -0
  42. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  43. package/dist/components/Checkbox/Checkbox.js +21 -0
  44. package/dist/components/Checkbox/index.d.ts +1 -0
  45. package/dist/components/Checkbox/index.module.js +7 -0
  46. package/dist/components/Chip/Chip.d.ts +7 -0
  47. package/dist/components/Chip/Chip.js +34 -0
  48. package/dist/components/Chip/index.d.ts +1 -0
  49. package/dist/components/Chip/index.module.js +10 -0
  50. package/dist/components/CodeBlock/CodeBlock.d.ts +8 -0
  51. package/dist/components/CodeBlock/CodeBlock.js +47 -0
  52. package/dist/components/CodeBlock/index.d.ts +1 -0
  53. package/dist/components/CodeBlock/index.module.js +9 -0
  54. package/dist/components/Combobox/Combobox.d.ts +11 -0
  55. package/dist/components/Combobox/Combobox.js +123 -0
  56. package/dist/components/Combobox/index.d.ts +1 -0
  57. package/dist/components/Combobox/index.module.js +12 -0
  58. package/dist/components/Container/Container.d.ts +5 -0
  59. package/dist/components/Container/Container.js +15 -0
  60. package/dist/components/Container/index.d.ts +1 -0
  61. package/dist/components/Container/index.module.js +21 -0
  62. package/dist/components/DateInput/DateInput.d.ts +4 -0
  63. package/dist/components/DateInput/DateInput.js +54 -0
  64. package/dist/components/DateInput/index.d.ts +1 -0
  65. package/dist/components/DateInput/index.module.js +7 -0
  66. package/dist/components/DescriptionList/DescriptionList.d.ts +5 -0
  67. package/dist/components/DescriptionList/DescriptionList.js +26 -0
  68. package/dist/components/DescriptionList/index.d.ts +1 -0
  69. package/dist/components/DescriptionList/index.module.js +10 -0
  70. package/dist/components/Dialog/Dialog.d.ts +14 -0
  71. package/dist/components/Dialog/Dialog.js +73 -0
  72. package/dist/components/Dialog/index.d.ts +1 -0
  73. package/dist/components/Dialog/index.module.js +16 -0
  74. package/dist/components/Divider/Divider.d.ts +5 -0
  75. package/dist/components/Divider/Divider.js +18 -0
  76. package/dist/components/Divider/index.d.ts +1 -0
  77. package/dist/components/Divider/index.module.js +19 -0
  78. package/dist/components/Drawer/Drawer.d.ts +3 -0
  79. package/dist/components/Drawer/Drawer.js +73 -0
  80. package/dist/components/Drawer/index.d.ts +1 -0
  81. package/dist/components/Drawer/index.module.js +17 -0
  82. package/dist/components/DropdownMenu/DropdownMenu.d.ts +11 -0
  83. package/dist/components/DropdownMenu/DropdownMenu.js +95 -0
  84. package/dist/components/DropdownMenu/index.d.ts +1 -0
  85. package/dist/components/DropdownMenu/index.module.js +11 -0
  86. package/dist/components/EmptyState/EmptyState.d.ts +8 -0
  87. package/dist/components/EmptyState/EmptyState.js +39 -0
  88. package/dist/components/EmptyState/index.d.ts +1 -0
  89. package/dist/components/EmptyState/index.module.js +10 -0
  90. package/dist/components/FileUpload/FileUpload.d.ts +7 -0
  91. package/dist/components/FileUpload/FileUpload.js +116 -0
  92. package/dist/components/FileUpload/helpers/formatFileSize.d.ts +1 -0
  93. package/dist/components/FileUpload/helpers/formatFileSize.js +12 -0
  94. package/dist/components/FileUpload/helpers/matchesAccept.d.ts +1 -0
  95. package/dist/components/FileUpload/helpers/matchesAccept.js +7 -0
  96. package/dist/components/FileUpload/index.d.ts +1 -0
  97. package/dist/components/FileUpload/index.module.js +16 -0
  98. package/dist/components/FormField/FormField.d.ts +11 -0
  99. package/dist/components/FormField/FormField.js +38 -0
  100. package/dist/components/FormField/index.d.ts +1 -0
  101. package/dist/components/FormField/index.module.js +8 -0
  102. package/dist/components/Heading/Heading.d.ts +4 -0
  103. package/dist/components/Heading/Heading.js +14 -0
  104. package/dist/components/Heading/index.d.ts +1 -0
  105. package/dist/components/Heading/index.module.js +9 -0
  106. package/dist/components/Inline/Inline.d.ts +7 -0
  107. package/dist/components/Inline/Inline.js +17 -0
  108. package/dist/components/Inline/index.d.ts +1 -0
  109. package/dist/components/Inline/index.module.js +27 -0
  110. package/dist/components/Input/Input.d.ts +2 -0
  111. package/dist/components/Input/Input.js +11 -0
  112. package/dist/components/Input/index.d.ts +1 -0
  113. package/dist/components/Input/index.module.js +3 -0
  114. package/dist/components/Link/Link.d.ts +3 -3
  115. package/dist/components/Link/Link.js +11 -0
  116. package/dist/components/Link/index.d.ts +1 -0
  117. package/dist/components/Link/index.module.js +3 -0
  118. package/dist/components/Navigation/Navigation.d.ts +14 -0
  119. package/dist/components/Navigation/Navigation.js +75 -0
  120. package/dist/components/Navigation/NavigationMenu.d.ts +6 -0
  121. package/dist/components/Navigation/NavigationMenu.js +48 -0
  122. package/dist/components/Navigation/index.d.ts +2 -0
  123. package/dist/components/Navigation/index.module.js +20 -0
  124. package/dist/components/NumberInput/NumberInput.d.ts +10 -0
  125. package/dist/components/NumberInput/NumberInput.js +80 -0
  126. package/dist/components/NumberInput/index.d.ts +1 -0
  127. package/dist/components/NumberInput/index.module.js +7 -0
  128. package/dist/components/OtpInput/OtpInput.d.ts +8 -0
  129. package/dist/components/OtpInput/OtpInput.js +47 -0
  130. package/dist/components/OtpInput/index.d.ts +1 -0
  131. package/dist/components/OtpInput/index.module.js +9 -0
  132. package/dist/components/PageHeader/PageHeader.d.ts +8 -0
  133. package/dist/components/PageHeader/PageHeader.js +39 -0
  134. package/dist/components/PageHeader/index.d.ts +1 -0
  135. package/dist/components/PageHeader/index.module.js +8 -0
  136. package/dist/components/Pagination/Pagination.d.ts +14 -0
  137. package/dist/components/Pagination/Pagination.js +81 -0
  138. package/dist/components/Pagination/helpers/getPaginationItems.d.ts +1 -0
  139. package/dist/components/Pagination/helpers/getPaginationItems.js +22 -0
  140. package/dist/components/Pagination/index.d.ts +1 -0
  141. package/dist/components/Pagination/index.module.js +11 -0
  142. package/dist/components/PasswordInput/PasswordInput.d.ts +3 -0
  143. package/dist/components/PasswordInput/PasswordInput.js +42 -0
  144. package/dist/components/PasswordInput/index.d.ts +1 -0
  145. package/dist/components/PasswordInput/index.module.js +7 -0
  146. package/dist/components/Phone/Phone.d.ts +7 -0
  147. package/dist/components/Phone/Phone.js +19 -0
  148. package/dist/components/Phone/helpers/formatPhoneNumber.d.ts +15 -0
  149. package/dist/components/Phone/helpers/formatPhoneNumber.js +15 -0
  150. package/dist/components/Phone/index.d.ts +2 -0
  151. package/dist/components/Popover/Popover.d.ts +11 -0
  152. package/dist/components/Popover/Popover.js +51 -0
  153. package/dist/components/Popover/index.d.ts +1 -0
  154. package/dist/components/Popover/index.module.js +7 -0
  155. package/dist/components/Progress/Progress.d.ts +10 -0
  156. package/dist/components/Progress/Progress.js +74 -0
  157. package/dist/components/Progress/index.d.ts +1 -0
  158. package/dist/components/Progress/index.module.js +21 -0
  159. package/dist/components/Radio/Radio.d.ts +3 -0
  160. package/dist/components/Radio/Radio.js +21 -0
  161. package/dist/components/Radio/index.d.ts +1 -0
  162. package/dist/components/Radio/index.module.js +7 -0
  163. package/dist/components/RelatedLinks/RelatedLinks.d.ts +6 -0
  164. package/dist/components/RelatedLinks/RelatedLinks.js +39 -0
  165. package/dist/components/RelatedLinks/index.d.ts +1 -0
  166. package/dist/components/RelatedLinks/index.module.js +11 -0
  167. package/dist/components/SearchInput/SearchInput.d.ts +3 -0
  168. package/dist/components/SearchInput/SearchInput.js +28 -0
  169. package/dist/components/SearchInput/index.d.ts +1 -0
  170. package/dist/components/SearchInput/index.module.js +8 -0
  171. package/dist/components/Select/Select.d.ts +2 -0
  172. package/dist/components/Select/Select.js +31 -0
  173. package/dist/components/Select/index.d.ts +1 -0
  174. package/dist/components/Select/index.module.js +8 -0
  175. package/dist/components/SideNav/SideNav.d.ts +6 -0
  176. package/dist/components/SideNav/SideNav.js +38 -0
  177. package/dist/components/SideNav/index.d.ts +1 -0
  178. package/dist/components/SideNav/index.module.js +10 -0
  179. package/dist/components/Skeleton/Skeleton.d.ts +6 -0
  180. package/dist/components/Skeleton/Skeleton.js +39 -0
  181. package/dist/components/Skeleton/index.d.ts +1 -0
  182. package/dist/components/Skeleton/index.module.js +11 -0
  183. package/dist/components/Slider/Slider.d.ts +10 -0
  184. package/dist/components/Slider/Slider.js +37 -0
  185. package/dist/components/Slider/index.d.ts +1 -0
  186. package/dist/components/Slider/index.module.js +7 -0
  187. package/dist/components/Spinner/Spinner.d.ts +4 -0
  188. package/dist/components/Spinner/Spinner.js +24 -0
  189. package/dist/components/Spinner/index.d.ts +1 -0
  190. package/dist/components/Spinner/index.module.js +10 -0
  191. package/dist/components/Stack/Stack.d.ts +5 -0
  192. package/dist/components/Stack/Stack.js +15 -0
  193. package/dist/components/Stack/index.d.ts +1 -0
  194. package/dist/components/Stack/index.module.js +21 -0
  195. package/dist/components/Stepper/Stepper.d.ts +6 -0
  196. package/dist/components/Stepper/Stepper.js +50 -0
  197. package/dist/components/Stepper/index.d.ts +1 -0
  198. package/dist/components/Stepper/index.module.js +15 -0
  199. package/dist/components/Switch/Switch.d.ts +3 -0
  200. package/dist/components/Switch/Switch.js +22 -0
  201. package/dist/components/Switch/index.d.ts +1 -0
  202. package/dist/components/Switch/index.module.js +7 -0
  203. package/dist/components/Table/Table.d.ts +3 -0
  204. package/dist/components/Table/Table.js +34 -0
  205. package/dist/components/Table/index.d.ts +1 -0
  206. package/dist/components/Table/index.module.js +9 -0
  207. package/dist/components/Tabs/Tabs.d.ts +8 -0
  208. package/dist/components/Tabs/Tabs.js +63 -0
  209. package/dist/components/Tabs/index.d.ts +1 -0
  210. package/dist/components/Tabs/index.module.js +9 -0
  211. package/dist/components/Text/Text.d.ts +3 -3
  212. package/dist/components/Text/Text.js +15 -0
  213. package/dist/components/Text/index.d.ts +1 -0
  214. package/dist/components/Text/index.module.js +10 -0
  215. package/dist/components/TextTag/TextTag.d.ts +5 -0
  216. package/dist/components/TextTag/TextTag.js +19 -0
  217. package/dist/components/TextTag/index.d.ts +1 -0
  218. package/dist/components/TextTag/index.module.js +7 -0
  219. package/dist/components/Textarea/Textarea.d.ts +2 -0
  220. package/dist/components/Textarea/Textarea.js +11 -0
  221. package/dist/components/Textarea/index.d.ts +1 -0
  222. package/dist/components/Textarea/index.module.js +3 -0
  223. package/dist/components/TimeInput/TimeInput.d.ts +4 -0
  224. package/dist/components/TimeInput/TimeInput.js +54 -0
  225. package/dist/components/TimeInput/index.d.ts +1 -0
  226. package/dist/components/TimeInput/index.module.js +7 -0
  227. package/dist/components/Toast/Toast.d.ts +4 -0
  228. package/dist/components/Toast/Toast.js +26 -0
  229. package/dist/components/Toast/index.d.ts +1 -0
  230. package/dist/components/Toast/index.module.js +8 -0
  231. package/dist/components/Toggle/Toggle.d.ts +4 -0
  232. package/dist/components/Toggle/Toggle.js +20 -0
  233. package/dist/components/Toggle/index.d.ts +1 -0
  234. package/dist/components/Toggle/index.module.js +7 -0
  235. package/dist/components/Tooltip/Tooltip.d.ts +8 -0
  236. package/dist/components/Tooltip/Tooltip.js +48 -0
  237. package/dist/components/Tooltip/index.d.ts +1 -0
  238. package/dist/components/Tooltip/index.module.js +7 -0
  239. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +3 -0
  240. package/dist/components/VisuallyHidden/VisuallyHidden.js +15 -0
  241. package/dist/components/VisuallyHidden/index.d.ts +1 -0
  242. package/dist/components/VisuallyHidden/index.module.js +6 -0
  243. package/dist/hooks/useAnchoredPosition.d.ts +6 -0
  244. package/dist/hooks/useAnchoredPosition.js +40 -0
  245. package/dist/hooks/useDisclosure.d.ts +2 -0
  246. package/dist/hooks/useDisclosure.js +23 -0
  247. package/dist/hooks/useDismiss.d.ts +3 -0
  248. package/dist/hooks/useDismiss.js +22 -0
  249. package/dist/hooks/useMediaQuery.d.ts +2 -0
  250. package/dist/hooks/useMediaQuery.js +12 -0
  251. package/dist/hooks/useModalDialog.d.ts +9 -0
  252. package/dist/hooks/useModalDialog.js +54 -0
  253. package/dist/hooks/useOpenState.d.ts +1 -0
  254. package/dist/hooks/useOpenState.js +14 -0
  255. package/dist/index.d.ts +117 -3
  256. package/dist/index.js +63 -0
  257. package/dist/styles.css +2 -0
  258. package/dist/types/accordionType.d.ts +19 -0
  259. package/dist/types/alertType.d.ts +30 -0
  260. package/dist/types/avatarGroupType.d.ts +20 -0
  261. package/dist/types/avatarType.d.ts +15 -0
  262. package/dist/types/badgeType.d.ts +11 -8
  263. package/dist/types/breadcrumbsType.d.ts +23 -0
  264. package/dist/types/buttonLinkType.d.ts +19 -0
  265. package/dist/types/buttonType.d.ts +27 -9
  266. package/dist/types/cardType.d.ts +9 -43
  267. package/dist/types/checkboxType.d.ts +9 -0
  268. package/dist/types/chipType.d.ts +18 -0
  269. package/dist/types/codeBlockType.d.ts +19 -0
  270. package/dist/types/comboboxType.d.ts +27 -0
  271. package/dist/types/containerType.d.ts +11 -0
  272. package/dist/types/dateInputType.d.ts +7 -0
  273. package/dist/types/descriptionListType.d.ts +20 -0
  274. package/dist/types/dialogType.d.ts +38 -0
  275. package/dist/types/dividerType.d.ts +14 -0
  276. package/dist/types/drawerType.d.ts +7 -0
  277. package/dist/types/dropdownMenuType.d.ts +36 -0
  278. package/dist/types/emptyStateType.d.ts +16 -0
  279. package/dist/types/fileUploadType.d.ts +13 -0
  280. package/dist/types/formFieldType.d.ts +26 -0
  281. package/dist/types/headingType.d.ts +12 -0
  282. package/dist/types/index.d.ts +61 -11
  283. package/dist/types/inlineType.d.ts +17 -0
  284. package/dist/types/inputType.d.ts +8 -0
  285. package/dist/types/linkType.d.ts +8 -9
  286. package/dist/types/navigationMenuType.d.ts +14 -0
  287. package/dist/types/navigationType.d.ts +42 -0
  288. package/dist/types/numberInputType.d.ts +19 -0
  289. package/dist/types/otpInputType.d.ts +16 -0
  290. package/dist/types/pageHeaderType.d.ts +19 -0
  291. package/dist/types/paginationType.d.ts +37 -0
  292. package/dist/types/passwordInputType.d.ts +5 -0
  293. package/dist/types/phoneType.d.ts +19 -0
  294. package/dist/types/popoverType.d.ts +31 -0
  295. package/dist/types/progressType.d.ts +21 -0
  296. package/dist/types/radioType.d.ts +9 -0
  297. package/dist/types/relatedLinksType.d.ts +25 -0
  298. package/dist/types/searchInputType.d.ts +6 -0
  299. package/dist/types/selectType.d.ts +8 -0
  300. package/dist/types/sideNavType.d.ts +35 -0
  301. package/dist/types/skeletonType.d.ts +12 -0
  302. package/dist/types/sliderType.d.ts +19 -0
  303. package/dist/types/spaceType.d.ts +2 -0
  304. package/dist/types/spinnerType.d.ts +12 -0
  305. package/dist/types/stackType.d.ts +15 -0
  306. package/dist/types/stepperType.d.ts +27 -0
  307. package/dist/types/switchType.d.ts +9 -0
  308. package/dist/types/tableType.d.ts +26 -0
  309. package/dist/types/tabsType.d.ts +30 -0
  310. package/dist/types/textTagType.d.ts +9 -0
  311. package/dist/types/textType.d.ts +5 -15
  312. package/dist/types/textareaType.d.ts +8 -0
  313. package/dist/types/timeInputType.d.ts +7 -0
  314. package/dist/types/toastType.d.ts +7 -0
  315. package/dist/types/toggleType.d.ts +7 -0
  316. package/dist/types/tooltipType.d.ts +22 -0
  317. package/dist/types/useDisclosureType.d.ts +30 -0
  318. package/dist/types/useMediaQueryType.d.ts +4 -0
  319. package/dist/types/visuallyHiddenType.d.ts +5 -0
  320. package/package.json +54 -75
  321. package/dist/components/CardRow/CardRow.d.ts +0 -3
  322. package/dist/components/IconDropdown/IconDropdown.d.ts +0 -3
  323. package/dist/components/Image/Image.d.ts +0 -3
  324. package/dist/components/Navbar/Navbar.d.ts +0 -3
  325. package/dist/components/Rating/Rating.d.ts +0 -3
  326. package/dist/components/SelectDropdown/SelectDropdown.d.ts +0 -3
  327. package/dist/components/index.d.ts +0 -11
  328. package/dist/favicon.svg +0 -1
  329. package/dist/fonts/Inter-400.woff2 +0 -11
  330. package/dist/fonts/Inter-500.woff2 +0 -11
  331. package/dist/fonts/Inter-600.woff2 +0 -11
  332. package/dist/fonts/Inter-700.woff2 +0 -11
  333. package/dist/hooks/index.d.ts +0 -1
  334. package/dist/hooks/useBreakpoint.d.ts +0 -7
  335. package/dist/icons.svg +0 -24
  336. package/dist/matrix-ui.es.js +0 -680
  337. package/dist/matrix-ui.umd.js +0 -2
  338. package/dist/types/cardRowType.d.ts +0 -34
  339. package/dist/types/iconDropdownType.d.ts +0 -16
  340. package/dist/types/imageType.d.ts +0 -11
  341. package/dist/types/navbarType.d.ts +0 -27
  342. package/dist/types/ratingType.d.ts +0 -3
  343. package/dist/types/selectDropdownType.d.ts +0 -15
@@ -0,0 +1,4 @@
1
+ export declare const TimeInput: import("react").ForwardRefExoticComponent<Omit<import("../../index.js").InputProps, "type"> & {
2
+ clockButtonClassName?: string;
3
+ clockButtonLabel?: string;
4
+ } & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { Button as e } from "../Button/Button.js";
3
+ import { Input as t } from "../Input/Input.js";
4
+ import n from "./index.module.js";
5
+ import { Clock as r } from "lucide-react";
6
+ import { forwardRef as i, useId as a, useImperativeHandle as o, useRef as s } from "react";
7
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
+ // src/components/TimeInput/TimeInput.tsx
9
+ var u = i(({ className: i, clockButtonClassName: u, clockButtonLabel: d = "Choose time", id: f, disabled: p, ...m }, h) => {
10
+ let g = a(), _ = f ?? g, v = s(null);
11
+ o(h, () => v.current);
12
+ let y = () => {
13
+ let e = v.current;
14
+ if (e && !p) {
15
+ try {
16
+ if (typeof e.showPicker == "function") {
17
+ e.showPicker();
18
+ return;
19
+ }
20
+ } catch {
21
+ e.focus();
22
+ return;
23
+ }
24
+ e.focus();
25
+ }
26
+ };
27
+ return /* @__PURE__ */ l("div", {
28
+ className: n.wrapper,
29
+ children: [/* @__PURE__ */ c(t, {
30
+ ...m,
31
+ ref: v,
32
+ id: _,
33
+ type: "time",
34
+ disabled: p,
35
+ className: [n.input, i].filter(Boolean).join(" ")
36
+ }), /* @__PURE__ */ c(e, {
37
+ variant: "ghost",
38
+ size: "small",
39
+ iconOnly: !0,
40
+ className: [n.button, u].filter(Boolean).join(" "),
41
+ onClick: y,
42
+ "aria-label": d,
43
+ "aria-controls": _,
44
+ disabled: p,
45
+ children: /* @__PURE__ */ c(r, {
46
+ size: 16,
47
+ strokeWidth: 1.75,
48
+ "aria-hidden": "true"
49
+ })
50
+ })]
51
+ });
52
+ });
53
+ u.displayName = "TimeInput";
54
+ export { u as TimeInput };
@@ -0,0 +1 @@
1
+ export { TimeInput } from "./TimeInput.js";
@@ -0,0 +1,7 @@
1
+ // src/components/TimeInput/index.module.scss
2
+ var e = "matrix-timeinput-wrapper", t = "matrix-timeinput-input", n = "matrix-timeinput-button", r = {
3
+ wrapper: e,
4
+ input: t,
5
+ button: n
6
+ };
7
+ export { n as button, r as default, t as input, e as wrapper };
@@ -0,0 +1,4 @@
1
+ export declare const Toast: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "children" | "role"> & {
2
+ message: import("react").ReactNode;
3
+ icon?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,26 @@
1
+ import { Card as e } from "../Card/Card.js";
2
+ import t from "./index.module.js";
3
+ import { Check as n } from "lucide-react";
4
+ import { forwardRef as r } from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ // src/components/Toast/Toast.tsx
7
+ var o = r(({ message: r, icon: o = /* @__PURE__ */ i(n, {
8
+ size: 15,
9
+ strokeWidth: 2
10
+ }), className: s, ...c }, l) => /* @__PURE__ */ i(e, {
11
+ ...c,
12
+ ref: l,
13
+ role: "status",
14
+ "aria-live": "polite",
15
+ className: [t.toast, s].filter(Boolean).join(" "),
16
+ children: /* @__PURE__ */ a("span", {
17
+ className: t.content,
18
+ children: [o != null && /* @__PURE__ */ i("span", {
19
+ className: t.icon,
20
+ "aria-hidden": "true",
21
+ children: o
22
+ }), /* @__PURE__ */ i("span", { children: r })]
23
+ })
24
+ }));
25
+ o.displayName = "Toast";
26
+ export { o as Toast };
@@ -0,0 +1 @@
1
+ export { Toast } from "./Toast.js";
@@ -0,0 +1,8 @@
1
+ // src/components/Toast/index.module.scss
2
+ var e = "matrix-toast-toast", t = "matrix-toast-content", n = "matrix-toast-icon", r = {
3
+ toast: e,
4
+ "toast-in": "matrix-toast-toast-in",
5
+ content: t,
6
+ icon: n
7
+ };
8
+ export { t as content, r as default, n as icon, e as toast };
@@ -0,0 +1,4 @@
1
+ export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
2
+ label: import("react").ReactNode;
3
+ icon?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,20 @@
1
+ import e from "./index.module.js";
2
+ import { forwardRef as t } from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ // src/components/Toggle/Toggle.tsx
5
+ var i = t(({ label: t, icon: i, className: a, type: o = "button", ...s }, c) => /* @__PURE__ */ r("button", {
6
+ ...s,
7
+ ref: c,
8
+ type: o,
9
+ className: [e.toggle, a].filter(Boolean).join(" "),
10
+ children: [i != null && /* @__PURE__ */ n("span", {
11
+ className: e.icon,
12
+ "aria-hidden": "true",
13
+ children: i
14
+ }), /* @__PURE__ */ n("span", {
15
+ className: e.label,
16
+ children: t
17
+ })]
18
+ }));
19
+ i.displayName = "Toggle";
20
+ export { i as Toggle };
@@ -0,0 +1 @@
1
+ export { Toggle } from "./Toggle.js";
@@ -0,0 +1,7 @@
1
+ // src/components/Toggle/index.module.scss
2
+ var e = "matrix-toggle-toggle", t = "matrix-toggle-icon", n = "matrix-toggle-label", r = {
3
+ toggle: e,
4
+ icon: t,
5
+ label: n
6
+ };
7
+ export { r as default, t as icon, n as label, e as toggle };
@@ -0,0 +1,8 @@
1
+ import type { PopoverTriggerProps } from "../../types/popoverType.js";
2
+ export declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLSpanElement>, "children" | "role" | "content"> & {
3
+ children: import("react").ReactElement<PopoverTriggerProps>;
4
+ content: import("react").ReactNode;
5
+ side?: import("../../index.js").PopoverSide;
6
+ align?: import("../../index.js").PopoverAlign;
7
+ delay?: number;
8
+ } & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,48 @@
1
+ "use client";
2
+ import { topLayerAttributes as e, useAnchoredPosition as t } from "../../hooks/useAnchoredPosition.js";
3
+ import { useDismiss as n } from "../../hooks/useDismiss.js";
4
+ import r from "./index.module.js";
5
+ import { cloneElement as i, forwardRef as a, isValidElement as o, useCallback as s, useEffect as c, useId as l, useImperativeHandle as u, useRef as d, useState as f } from "react";
6
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
7
+ // src/components/Tooltip/Tooltip.tsx
8
+ var h = 100, g = (e) => {
9
+ try {
10
+ return e.matches(":focus-visible");
11
+ } catch {
12
+ return !0;
13
+ }
14
+ }, _ = a(({ children: a, content: _, side: v = "top", align: y = "center", delay: b = 300, id: x, className: S, ...C }, w) => {
15
+ let T = l(), E = x ?? T, [D, O] = f(!1), k = d(null), A = d(null), j = d(void 0);
16
+ u(w, () => A.current), t(D, k, A, v, y, 6);
17
+ let M = (e, t) => {
18
+ clearTimeout(j.current), j.current = setTimeout(() => O(e), t);
19
+ }, N = s(() => {
20
+ clearTimeout(j.current), O(!1);
21
+ }, []);
22
+ c(() => () => clearTimeout(j.current), []), n(D, k, N);
23
+ let P = o(a) ? i(a, { "aria-describedby": [a.props["aria-describedby"], E].filter(Boolean).join(" ") }) : a;
24
+ return /* @__PURE__ */ m("span", {
25
+ ref: k,
26
+ className: r.tooltipTrigger,
27
+ onPointerEnter: (e) => {
28
+ e.pointerType !== "touch" && M(!0, D ? 0 : b);
29
+ },
30
+ onPointerLeave: () => M(!1, h),
31
+ onFocus: (e) => {
32
+ e.target !== A.current && g(e.target) && (clearTimeout(j.current), O(!0));
33
+ },
34
+ onBlur: N,
35
+ children: [P, /* @__PURE__ */ p("span", {
36
+ ...C,
37
+ ref: A,
38
+ id: E,
39
+ role: "tooltip",
40
+ ...e,
41
+ hidden: !D,
42
+ className: [r.tooltip, S].filter(Boolean).join(" "),
43
+ children: _
44
+ })]
45
+ });
46
+ });
47
+ _.displayName = "Tooltip";
48
+ export { _ as Tooltip };
@@ -0,0 +1 @@
1
+ export { Tooltip } from "./Tooltip.js";
@@ -0,0 +1,7 @@
1
+ // src/components/Tooltip/index.module.scss
2
+ var e = "matrix-tooltip-tooltipTrigger", t = "matrix-tooltip-tooltip", n = {
3
+ tooltipTrigger: e,
4
+ tooltip: t,
5
+ "floating-enter": "matrix-tooltip-floating-enter"
6
+ };
7
+ export { n as default, t as tooltip, e as tooltipTrigger };
@@ -0,0 +1,3 @@
1
+ export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
2
+ focusable?: boolean;
3
+ } & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,15 @@
1
+ import e from "./index.module.js";
2
+ import { forwardRef as t } from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ // src/components/VisuallyHidden/VisuallyHidden.tsx
5
+ var r = t(({ focusable: t = !1, className: r, ...i }, a) => /* @__PURE__ */ n("span", {
6
+ ...i,
7
+ ref: a,
8
+ className: [
9
+ e.visuallyHidden,
10
+ t && e.focusable,
11
+ r
12
+ ].filter(Boolean).join(" ")
13
+ }));
14
+ r.displayName = "VisuallyHidden";
15
+ export { r as VisuallyHidden };
@@ -0,0 +1 @@
1
+ export { VisuallyHidden } from "./VisuallyHidden.js";
@@ -0,0 +1,6 @@
1
+ // src/components/VisuallyHidden/index.module.scss
2
+ var e = "matrix-visuallyhidden-visuallyHidden", t = "matrix-visuallyhidden-focusable", n = {
3
+ visuallyHidden: e,
4
+ focusable: t
5
+ };
6
+ export { n as default, t as focusable, e as visuallyHidden };
@@ -0,0 +1,6 @@
1
+ import { type RefObject } from "react";
2
+ import type { PopoverAlign, PopoverSide } from "../types/popoverType.js";
3
+ export declare const topLayerAttributes: {
4
+ readonly popover: "manual";
5
+ };
6
+ export declare const useAnchoredPosition: (open: boolean, anchorRef: RefObject<HTMLElement | null>, floatingRef: RefObject<HTMLElement | null>, side: PopoverSide, align: PopoverAlign, offset: number, matchWidth?: boolean) => void;
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { useEffect as e, useLayoutEffect as t } from "react";
3
+ // src/hooks/useAnchoredPosition.ts
4
+ var n = typeof window > "u" ? e : t, r = 8, i = { popover: "manual" }, a = (e, t) => {
5
+ if (e.hasAttribute("popover") && typeof e.showPopover == "function") try {
6
+ t && !e.matches(":popover-open") && e.showPopover(), !t && e.matches(":popover-open") && e.hidePopover();
7
+ } catch {
8
+ return;
9
+ }
10
+ }, o = (e, t, i, o, s, c, l = !1) => {
11
+ n(() => {
12
+ let n = t.current, u = i.current;
13
+ if (!e || !n || !u) return;
14
+ a(u, !0);
15
+ let d = () => {
16
+ let e = n.getBoundingClientRect();
17
+ l && (u.style.width = `${e.width}px`);
18
+ let { width: t, height: i } = u.getBoundingClientRect(), a = document.documentElement.clientWidth, d = document.documentElement.clientHeight, f = e.top - c, p = d - e.bottom - c, m = o === "bottom" ? p < i && f > p ? "top" : "bottom" : f < i && p > f ? "bottom" : "top", h = getComputedStyle(n).direction === "rtl", g = h ? e.right - t : e.left, _ = h ? e.left : e.right - t, v = s === "center" ? e.left + (e.width - t) / 2 : s === "start" ? g : _, y = m === "bottom" ? e.bottom + c : e.top - c - i;
19
+ u.style.left = `${Math.max(r, Math.min(v, a - t - r))}px`, u.style.top = `${Math.max(r, y)}px`, u.style.setProperty("--matrix-floating-available-height", `${Math.max(0, Math.floor((m === "bottom" ? p : f) - r))}px`), u.dataset.side = m;
20
+ };
21
+ d();
22
+ let f = 0, p = () => {
23
+ cancelAnimationFrame(f), f = requestAnimationFrame(d);
24
+ };
25
+ window.addEventListener("resize", p), window.addEventListener("scroll", p, !0);
26
+ let m = typeof ResizeObserver == "function" ? new ResizeObserver(p) : null;
27
+ return m?.observe(n), m?.observe(u), () => {
28
+ cancelAnimationFrame(f), window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0), m?.disconnect(), a(u, !1);
29
+ };
30
+ }, [
31
+ e,
32
+ t,
33
+ i,
34
+ o,
35
+ s,
36
+ c,
37
+ l
38
+ ]);
39
+ };
40
+ export { i as topLayerAttributes, o as useAnchoredPosition };
@@ -0,0 +1,2 @@
1
+ import type { UseDisclosureOptions, UseDisclosureResult } from "../types/useDisclosureType.js";
2
+ export declare const useDisclosure: ({ open: openProp, defaultOpen, onOpenChange, }?: UseDisclosureOptions) => UseDisclosureResult;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ import { useOpenState as e } from "./useOpenState.js";
3
+ import { useCallback as t, useId as n } from "react";
4
+ // src/hooks/useDisclosure.ts
5
+ var r = ({ open: r, defaultOpen: i = !1, onOpenChange: a } = {}) => {
6
+ let [o, s] = e(r, i, a), c = `${n()}-panel`, l = t(() => s(!0), [s]), u = t(() => s(!1), [s]), d = t(() => s(!o), [s, o]);
7
+ return {
8
+ isOpen: o,
9
+ open: l,
10
+ close: u,
11
+ toggle: d,
12
+ buttonProps: {
13
+ "aria-expanded": o,
14
+ "aria-controls": c,
15
+ onClick: d
16
+ },
17
+ panelProps: {
18
+ id: c,
19
+ hidden: !o
20
+ }
21
+ };
22
+ };
23
+ export { r as useDisclosure };
@@ -0,0 +1,3 @@
1
+ import { type RefObject } from "react";
2
+ export type DismissReason = "escape" | "outside";
3
+ export declare const useDismiss: (active: boolean, containerRef: RefObject<HTMLElement | null>, onDismiss: (reason: DismissReason) => void) => void;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { useEffect as e } from "react";
3
+ // src/hooks/useDismiss.ts
4
+ var t = (t, n, r) => {
5
+ e(() => {
6
+ if (!t) return;
7
+ let e = (e) => {
8
+ let { target: t } = e;
9
+ t instanceof Node && n.current && !n.current.contains(t) && r("outside");
10
+ }, i = (e) => {
11
+ e.key === "Escape" && r("escape");
12
+ };
13
+ return document.addEventListener("pointerdown", e), document.addEventListener("keydown", i), () => {
14
+ document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", i);
15
+ };
16
+ }, [
17
+ t,
18
+ n,
19
+ r
20
+ ]);
21
+ };
22
+ export { t as useDismiss };
@@ -0,0 +1,2 @@
1
+ import type { UseMediaQueryOptions } from "../types/useMediaQueryType.js";
2
+ export declare const useMediaQuery: (query: string, { defaultValue }?: UseMediaQueryOptions) => boolean;
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useCallback as e, useSyncExternalStore as t } from "react";
3
+ // src/hooks/useMediaQuery.ts
4
+ var n = () => typeof window < "u" && typeof window.matchMedia == "function", r = (r, { defaultValue: i = !1 } = {}) => {
5
+ let a = e((e) => {
6
+ if (!n()) return () => {};
7
+ let t = window.matchMedia(r);
8
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
9
+ }, [r]);
10
+ return t(a, () => n() ? window.matchMedia(r).matches : i, () => i);
11
+ };
12
+ export { r as useMediaQuery };
@@ -0,0 +1,9 @@
1
+ import { type MouseEvent, type PointerEvent, type RefObject } from "react";
2
+ import type { DialogCloseReason } from "../types/dialogType.js";
3
+ export declare const useModalDialog: (open: boolean, onClose: (reason: DialogCloseReason) => void, closeOnBackdropClick: boolean, initialFocusRef?: RefObject<HTMLElement | null>) => {
4
+ dialogRef: RefObject<HTMLDialogElement | null>;
5
+ backdropHandlers: {
6
+ onPointerDown: (event: PointerEvent<HTMLDialogElement>) => void;
7
+ onClick: (event: MouseEvent<HTMLDialogElement>) => void;
8
+ };
9
+ };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { useEffect as e, useRef as t } from "react";
3
+ // src/hooks/useModalDialog.ts
4
+ var n = 0, r = null, i = () => {
5
+ if (n === 0) {
6
+ let e = document.documentElement, { overflow: t, paddingRight: n } = e.style, i = window.innerWidth - e.clientWidth;
7
+ if (i > 0) {
8
+ let t = parseFloat(getComputedStyle(e).paddingRight) || 0;
9
+ e.style.paddingRight = `${t + i}px`;
10
+ }
11
+ e.style.overflow = "hidden", r = () => {
12
+ e.style.overflow = t, e.style.paddingRight = n;
13
+ };
14
+ }
15
+ n += 1;
16
+ let e = !1;
17
+ return () => {
18
+ e || (e = !0, --n, n === 0 && (r?.(), r = null));
19
+ };
20
+ }, a = (n, r, a, o) => {
21
+ let s = t(null), c = t(null), l = t(!1), u = t(n), d = t(r), f = t(null);
22
+ return e(() => {
23
+ u.current = n, d.current = r;
24
+ }), e(() => {
25
+ let e = s.current;
26
+ e && (n && !e.open ? (c.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.showModal(), o?.current?.focus()) : !n && e.open && e.close(), n && e.open && (f.current ??= i()));
27
+ }, [n, o]), e(() => {
28
+ let e = s.current;
29
+ if (!e) return;
30
+ let t = (e) => {
31
+ e.preventDefault(), d.current("escape");
32
+ }, n = () => {
33
+ f.current?.(), f.current = null;
34
+ }, r = () => {
35
+ n(), u.current && d.current("escape");
36
+ let e = c.current;
37
+ c.current = null, e?.isConnected && e.focus();
38
+ };
39
+ return e.addEventListener("cancel", t), e.addEventListener("close", r), () => {
40
+ e.removeEventListener("cancel", t), e.removeEventListener("close", r), n(), e.open && c.current?.focus();
41
+ };
42
+ }, []), {
43
+ dialogRef: s,
44
+ backdropHandlers: {
45
+ onPointerDown: (e) => {
46
+ l.current = e.target === e.currentTarget;
47
+ },
48
+ onClick: (e) => {
49
+ a && l.current && e.target === e.currentTarget && d.current("backdrop"), l.current = !1;
50
+ }
51
+ }
52
+ };
53
+ };
54
+ export { a as useModalDialog };
@@ -0,0 +1 @@
1
+ export declare const useOpenState: (open: boolean | undefined, defaultOpen: boolean, onOpenChange?: (open: boolean) => void) => readonly [boolean, (next: boolean) => void];
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { useCallback as e, useState as t } from "react";
3
+ // src/hooks/useOpenState.ts
4
+ var n = (n, r, i) => {
5
+ let [a, o] = t(r), s = n !== void 0, c = s ? n : a;
6
+ return [c, e((e) => {
7
+ e !== c && (s || o(e), i?.(e));
8
+ }, [
9
+ c,
10
+ s,
11
+ i
12
+ ])];
13
+ };
14
+ export { n as useOpenState };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,117 @@
1
- export { Badge, Button, Card, CardRow, IconDropdown, Image, Link, Navbar, Rating, SelectDropdown, Text, } from './components';
2
- export * from './types';
3
- export * from './hooks';
1
+ export { Accordion } from "./components/Accordion/index.js";
2
+ export type { AccordionItem, AccordionProps } from "./types/index.js";
3
+ export { Alert } from "./components/Alert/index.js";
4
+ export type { AlertProps, AlertVariant } from "./types/index.js";
5
+ export { Avatar } from "./components/Avatar/index.js";
6
+ export type { AvatarProps, AvatarSize } from "./types/index.js";
7
+ export { AvatarGroup } from "./components/AvatarGroup/index.js";
8
+ export type { AvatarGroupItem, AvatarGroupProps } from "./types/index.js";
9
+ export { Badge } from "./components/Badge/index.js";
10
+ export type { BadgeProps, BadgeSize, BadgeVariant } from "./types/index.js";
11
+ export { Breadcrumbs } from "./components/Breadcrumbs/index.js";
12
+ export type { BreadcrumbItem, BreadcrumbLinkProps, BreadcrumbsProps } from "./types/index.js";
13
+ export { Button, ButtonLink } from "./components/Button/index.js";
14
+ export type { ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant } from "./types/index.js";
15
+ export { Card } from "./components/Card/index.js";
16
+ export type { CardProps } from "./types/index.js";
17
+ export { Checkbox } from "./components/Checkbox/index.js";
18
+ export type { CheckboxProps } from "./types/index.js";
19
+ export { Chip } from "./components/Chip/index.js";
20
+ export type { ChipProps, ChipSize } from "./types/index.js";
21
+ export { CodeBlock } from "./components/CodeBlock/index.js";
22
+ export type { CodeBlockProps } from "./types/index.js";
23
+ export { Combobox } from "./components/Combobox/index.js";
24
+ export type { ComboboxOption, ComboboxProps } from "./types/index.js";
25
+ export { Container } from "./components/Container/index.js";
26
+ export type { ContainerProps, ContainerSize } from "./types/index.js";
27
+ export { DateInput } from "./components/DateInput/index.js";
28
+ export type { DateInputProps } from "./types/index.js";
29
+ export { DescriptionList } from "./components/DescriptionList/index.js";
30
+ export type { DescriptionListItem, DescriptionListLayout, DescriptionListProps, } from "./types/index.js";
31
+ export { Dialog } from "./components/Dialog/index.js";
32
+ export type { DialogCloseReason, DialogProps, DialogSize } from "./types/index.js";
33
+ export { Divider } from "./components/Divider/index.js";
34
+ export type { DividerOrientation, DividerProps } from "./types/index.js";
35
+ export { Drawer } from "./components/Drawer/index.js";
36
+ export type { DrawerProps, DrawerSide } from "./types/index.js";
37
+ export { DropdownMenu } from "./components/DropdownMenu/index.js";
38
+ export type { DropdownMenuItem, DropdownMenuProps } from "./types/index.js";
39
+ export { EmptyState } from "./components/EmptyState/index.js";
40
+ export type { EmptyStateProps } from "./types/index.js";
41
+ export { FormField } from "./components/FormField/index.js";
42
+ export type { FormFieldProps } from "./types/index.js";
43
+ export { FileUpload } from "./components/FileUpload/index.js";
44
+ export type { FileUploadProps } from "./types/index.js";
45
+ export { Heading } from "./components/Heading/index.js";
46
+ export type { HeadingLevel, HeadingProps, HeadingSize } from "./types/index.js";
47
+ export { Inline } from "./components/Inline/index.js";
48
+ export type { InlineAlign, InlineJustify, InlineProps } from "./types/index.js";
49
+ export { Input } from "./components/Input/index.js";
50
+ export type { InputProps } from "./types/index.js";
51
+ export { Link } from "./components/Link/index.js";
52
+ export type { LinkProps } from "./types/index.js";
53
+ export { Navigation, NavigationMenu } from "./components/Navigation/index.js";
54
+ export type { NavigationItem, NavigationLinkProps, NavigationMenuProps, NavigationProps, } from "./types/index.js";
55
+ export { NumberInput } from "./components/NumberInput/index.js";
56
+ export type { NumberInputProps } from "./types/index.js";
57
+ export { OtpInput } from "./components/OtpInput/index.js";
58
+ export type { OtpInputMode, OtpInputProps } from "./types/index.js";
59
+ export { PageHeader } from "./components/PageHeader/index.js";
60
+ export type { PageHeaderProps } from "./types/index.js";
61
+ export { Pagination } from "./components/Pagination/index.js";
62
+ export type { PaginationLinkProps, PaginationProps } from "./types/index.js";
63
+ export { PasswordInput } from "./components/PasswordInput/index.js";
64
+ export type { PasswordInputProps } from "./types/index.js";
65
+ export { Phone, formatPhoneNumber } from "./components/Phone/index.js";
66
+ export type { PhoneCountryCode, PhoneProps } from "./types/index.js";
67
+ export { Popover } from "./components/Popover/index.js";
68
+ export type { PopoverAlign, PopoverProps, PopoverSide, PopoverTriggerProps, } from "./types/index.js";
69
+ export { Progress } from "./components/Progress/index.js";
70
+ export type { ProgressProps, ProgressSize, ProgressVariant } from "./types/index.js";
71
+ export { Radio } from "./components/Radio/index.js";
72
+ export type { RadioProps } from "./types/index.js";
73
+ export { RelatedLinks } from "./components/RelatedLinks/index.js";
74
+ export type { RelatedLinkItem, RelatedLinkProps, RelatedLinksProps } from "./types/index.js";
75
+ export { SearchInput } from "./components/SearchInput/index.js";
76
+ export type { SearchInputProps } from "./types/index.js";
77
+ export { Select } from "./components/Select/index.js";
78
+ export type { SelectProps } from "./types/index.js";
79
+ export { SideNav } from "./components/SideNav/index.js";
80
+ export type { SideNavItem, SideNavLinkProps, SideNavProps, SideNavSection } from "./types/index.js";
81
+ export { Skeleton } from "./components/Skeleton/index.js";
82
+ export type { SkeletonProps, SkeletonVariant } from "./types/index.js";
83
+ export { Slider } from "./components/Slider/index.js";
84
+ export type { SliderProps } from "./types/index.js";
85
+ export { Spinner } from "./components/Spinner/index.js";
86
+ export type { SpinnerProps, SpinnerSize } from "./types/index.js";
87
+ export { Stack } from "./components/Stack/index.js";
88
+ export type { LayoutElement, StackAlign, StackProps } from "./types/index.js";
89
+ export { Stepper } from "./components/Stepper/index.js";
90
+ export type { StepperOrientation, StepperProps, StepperStatusLabels, StepperStep, } from "./types/index.js";
91
+ export { Switch } from "./components/Switch/index.js";
92
+ export type { SwitchProps } from "./types/index.js";
93
+ export { Table } from "./components/Table/index.js";
94
+ export type { TableColumn, TableProps } from "./types/index.js";
95
+ export { Tabs } from "./components/Tabs/index.js";
96
+ export type { TabsActivation, TabsItem, TabsProps } from "./types/index.js";
97
+ export { Text } from "./components/Text/index.js";
98
+ export type { TextProps, TextVariant } from "./types/index.js";
99
+ export { TextTag } from "./components/TextTag/index.js";
100
+ export type { TextTagProps } from "./types/index.js";
101
+ export { Textarea } from "./components/Textarea/index.js";
102
+ export type { TextareaProps } from "./types/index.js";
103
+ export { TimeInput } from "./components/TimeInput/index.js";
104
+ export type { TimeInputProps } from "./types/index.js";
105
+ export { Toast } from "./components/Toast/index.js";
106
+ export type { ToastProps } from "./types/index.js";
107
+ export { Toggle } from "./components/Toggle/index.js";
108
+ export type { ToggleProps } from "./types/index.js";
109
+ export { Tooltip } from "./components/Tooltip/index.js";
110
+ export type { TooltipProps } from "./types/index.js";
111
+ export type { SpaceToken } from "./types/index.js";
112
+ export { VisuallyHidden } from "./components/VisuallyHidden/index.js";
113
+ export type { VisuallyHiddenProps } from "./types/index.js";
114
+ export { useDisclosure } from "./hooks/useDisclosure.js";
115
+ export type { UseDisclosureButtonProps, UseDisclosureOptions, UseDisclosurePanelProps, UseDisclosureResult, } from "./types/index.js";
116
+ export { useMediaQuery } from "./hooks/useMediaQuery.js";
117
+ export type { UseMediaQueryOptions } from "./types/index.js";