@lucasromero/matrix-ui 0.7.2 → 0.8.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 +24 -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 +35 -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 +14 -0
  149. package/dist/components/Phone/helpers/formatPhoneNumber.js +15 -0
  150. package/dist/components/Phone/index.d.ts +1 -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 +62 -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,27 @@
1
+ "use client";
2
+ import { Spinner as e } from "../Spinner/Spinner.js";
3
+ import { getButtonClassName as t } from "./buttonClassName.js";
4
+ import { forwardRef as n } from "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
+ // src/components/Button/Button.tsx
7
+ var a = (e) => e.preventDefault(), o = n(({ variant: n = "primary", size: o = "medium", iconOnly: s = !1, loading: c = !1, type: l = "button", className: u, children: d, onClick: f, ...p }, m) => /* @__PURE__ */ i("button", {
8
+ ...p,
9
+ ref: m,
10
+ type: l,
11
+ "aria-disabled": c ? !0 : p["aria-disabled"],
12
+ "aria-busy": c ? !0 : p["aria-busy"],
13
+ onClick: c ? a : f,
14
+ className: t({
15
+ variant: n,
16
+ size: o,
17
+ iconOnly: s,
18
+ loading: c,
19
+ className: u
20
+ }),
21
+ children: [c && /* @__PURE__ */ r(e, {
22
+ size: "small",
23
+ label: null
24
+ }), c && s ? null : d]
25
+ }));
26
+ o.displayName = "Button";
27
+ export { o as Button };
@@ -0,0 +1,6 @@
1
+ export declare const ButtonLink: import("react").ForwardRefExoticComponent<import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
2
+ href: string;
3
+ variant?: import("../../index.js").ButtonVariant;
4
+ size?: import("../../index.js").ButtonSize;
5
+ iconOnly?: boolean;
6
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -0,0 +1,16 @@
1
+ import { getButtonClassName as e } from "./buttonClassName.js";
2
+ import { forwardRef as t } from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ // src/components/Button/ButtonLink.tsx
5
+ var r = t(({ variant: t = "primary", size: r = "medium", iconOnly: i = !1, className: a, ...o }, s) => /* @__PURE__ */ n("a", {
6
+ ...o,
7
+ ref: s,
8
+ className: e({
9
+ variant: t,
10
+ size: r,
11
+ iconOnly: i,
12
+ className: a
13
+ })
14
+ }));
15
+ r.displayName = "ButtonLink";
16
+ export { r as ButtonLink };
@@ -0,0 +1,2 @@
1
+ import type { ButtonClassNameOptions } from "../../types/buttonType.js";
2
+ export declare const getButtonClassName: ({ variant, size, iconOnly, loading, className, }: ButtonClassNameOptions) => string;
@@ -0,0 +1,11 @@
1
+ import e from "./index.module.js";
2
+ // src/components/Button/buttonClassName.ts
3
+ var t = ({ variant: t, size: n, iconOnly: r, loading: i = !1, className: a }) => [
4
+ e.button,
5
+ e[t],
6
+ n !== "medium" && e[n],
7
+ r && e.iconOnly,
8
+ i && e.loading,
9
+ a
10
+ ].filter(Boolean).join(" ");
11
+ export { t as getButtonClassName };
@@ -1 +1,2 @@
1
- export * from './Button';
1
+ export { Button } from "./Button.js";
2
+ export { ButtonLink } from "./ButtonLink.js";
@@ -0,0 +1,13 @@
1
+ // src/components/Button/index.module.scss
2
+ var e = "matrix-button-button", t = "matrix-button-primary", n = "matrix-button-secondary", r = "matrix-button-ghost", i = "matrix-button-danger", a = "matrix-button-small", o = "matrix-button-large", s = "matrix-button-iconOnly", c = "matrix-button-loading", l = {
3
+ button: e,
4
+ primary: t,
5
+ secondary: n,
6
+ ghost: r,
7
+ danger: i,
8
+ small: a,
9
+ large: o,
10
+ iconOnly: s,
11
+ loading: c
12
+ };
13
+ export { e as button, i as danger, l as default, r as ghost, s as iconOnly, o as large, c as loading, t as primary, n as secondary, a as small };
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
- import { CardProps } from '../../types';
3
- export declare const Card: React.FC<CardProps>;
1
+ export declare const Card: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
2
+ as?: "div" | "article" | "section";
3
+ } & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,10 @@
1
+ import e from "./index.module.js";
2
+ import { createElement as t, forwardRef as n } from "react";
3
+ // src/components/Card/Card.tsx
4
+ var r = n(({ as: n = "div", className: r, ...i }, a) => t(n, {
5
+ ...i,
6
+ ref: a,
7
+ className: [e.card, r].filter(Boolean).join(" ")
8
+ }));
9
+ r.displayName = "Card";
10
+ export { r as Card };
@@ -0,0 +1 @@
1
+ export { Card } from "./Card.js";
@@ -0,0 +1,3 @@
1
+ // src/components/Card/index.module.scss
2
+ var e = "matrix-card-card", t = { card: e };
3
+ export { e as card, t as default };
@@ -0,0 +1,3 @@
1
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "children" | "type"> & {
2
+ label?: import("react").ReactNode;
3
+ } & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,21 @@
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/Checkbox/Checkbox.tsx
5
+ var i = t(({ label: t, className: i, ...a }, o) => {
6
+ let s = /* @__PURE__ */ n("input", {
7
+ ...a,
8
+ ref: o,
9
+ type: "checkbox",
10
+ className: [e.input, i].filter(Boolean).join(" ")
11
+ });
12
+ return t == null ? s : /* @__PURE__ */ r("label", {
13
+ className: e.checkbox,
14
+ children: [s, /* @__PURE__ */ n("span", {
15
+ className: e.label,
16
+ children: t
17
+ })]
18
+ });
19
+ });
20
+ i.displayName = "Checkbox";
21
+ export { i as Checkbox };
@@ -0,0 +1 @@
1
+ export { Checkbox } from "./Checkbox.js";
@@ -0,0 +1,7 @@
1
+ // src/components/Checkbox/index.module.scss
2
+ var e = "matrix-checkbox-checkbox", t = "matrix-checkbox-label", n = "matrix-checkbox-input", r = {
3
+ checkbox: e,
4
+ label: t,
5
+ input: n
6
+ };
7
+ export { e as checkbox, r as default, n as input, t as label };
@@ -0,0 +1,7 @@
1
+ export declare const Chip: import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
2
+ label: import("react").ReactNode;
3
+ selected?: boolean;
4
+ icon?: import("react").ReactNode;
5
+ count?: number;
6
+ size?: import("../../index.js").ChipSize;
7
+ } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,34 @@
1
+ import { Badge as e } from "../Badge/Badge.js";
2
+ import t from "./index.module.js";
3
+ import { forwardRef as n } from "react";
4
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ // src/components/Chip/Chip.tsx
6
+ var o = n(({ label: n, selected: o, icon: s, count: c, size: l = "small", className: u, type: d = "button", ...f }, p) => /* @__PURE__ */ a("button", {
7
+ ...f,
8
+ ref: p,
9
+ type: d,
10
+ "aria-pressed": o,
11
+ className: [
12
+ t.chip,
13
+ t[l],
14
+ o && t.selected,
15
+ u
16
+ ].filter(Boolean).join(" "),
17
+ children: [
18
+ s != null && /* @__PURE__ */ i("span", {
19
+ className: t.icon,
20
+ "aria-hidden": "true",
21
+ children: s
22
+ }),
23
+ /* @__PURE__ */ i("span", {
24
+ className: t.label,
25
+ children: n
26
+ }),
27
+ c != null && /* @__PURE__ */ a(r, { children: [" ", /* @__PURE__ */ i(e, {
28
+ className: t.count,
29
+ children: c
30
+ })] })
31
+ ]
32
+ }));
33
+ o.displayName = "Chip";
34
+ export { o as Chip };
@@ -0,0 +1 @@
1
+ export { Chip } from "./Chip.js";
@@ -0,0 +1,10 @@
1
+ // src/components/Chip/index.module.scss
2
+ var e = "matrix-chip-chip", t = "matrix-chip-small", n = "matrix-chip-medium", r = "matrix-chip-selected", i = "matrix-chip-icon", a = "matrix-chip-count", o = {
3
+ chip: e,
4
+ small: t,
5
+ medium: n,
6
+ selected: r,
7
+ icon: i,
8
+ count: a
9
+ };
10
+ export { e as chip, a as count, o as default, i as icon, n as medium, r as selected, t as small };
@@ -0,0 +1,8 @@
1
+ export declare const CodeBlock: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "children" | "title"> & {
2
+ code: string;
3
+ title?: string;
4
+ copyLabel?: string;
5
+ copyButtonLabel?: string;
6
+ copiedMessage?: string;
7
+ copyFailedMessage?: string;
8
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { Button as e } from "../Button/Button.js";
3
+ import { Text as t } from "../Text/Text.js";
4
+ import n from "./index.module.js";
5
+ import { forwardRef as r, useState as i } from "react";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ // src/components/CodeBlock/CodeBlock.tsx
8
+ var s = r(({ code: r, title: s, copyLabel: c = "Copy", copyButtonLabel: l = s ? `${c} ${s}` : `${c} code`, copiedMessage: u = "Copied", copyFailedMessage: d = "Copy failed", className: f, ...p }, m) => {
9
+ let [h, g] = i("idle"), _ = async () => {
10
+ try {
11
+ await navigator.clipboard.writeText(r), g("copied");
12
+ } catch {
13
+ g("failed");
14
+ }
15
+ };
16
+ return /* @__PURE__ */ o("div", {
17
+ ...p,
18
+ ref: m,
19
+ className: [n.codeBlock, f].filter(Boolean).join(" "),
20
+ children: [/* @__PURE__ */ o("div", {
21
+ className: n.header,
22
+ children: [s && /* @__PURE__ */ a(t, {
23
+ variant: "label",
24
+ children: s
25
+ }), /* @__PURE__ */ o("div", {
26
+ className: n.actions,
27
+ children: [/* @__PURE__ */ o("span", {
28
+ role: "status",
29
+ className: n.status,
30
+ children: [h === "copied" && u, h === "failed" && d]
31
+ }), /* @__PURE__ */ a(e, {
32
+ variant: "ghost",
33
+ size: "small",
34
+ onClick: _,
35
+ "aria-label": l,
36
+ children: c
37
+ })]
38
+ })]
39
+ }), /* @__PURE__ */ a("pre", {
40
+ className: n.code,
41
+ tabIndex: 0,
42
+ children: /* @__PURE__ */ a("code", { children: r.trimEnd() })
43
+ })]
44
+ });
45
+ });
46
+ s.displayName = "CodeBlock";
47
+ export { s as CodeBlock };
@@ -0,0 +1 @@
1
+ export { CodeBlock } from "./CodeBlock.js";
@@ -0,0 +1,9 @@
1
+ // src/components/CodeBlock/index.module.scss
2
+ var e = "matrix-codeblock-codeBlock", t = "matrix-codeblock-header", n = "matrix-codeblock-actions", r = "matrix-codeblock-status", i = "matrix-codeblock-code", a = {
3
+ codeBlock: e,
4
+ header: t,
5
+ actions: n,
6
+ status: r,
7
+ code: i
8
+ };
9
+ export { n as actions, i as code, e as codeBlock, a as default, t as header, r as status };
@@ -0,0 +1,11 @@
1
+ import type { ComboboxOption } from "../../types/comboboxType.js";
2
+ export declare const Combobox: import("react").ForwardRefExoticComponent<Omit<import("../../index.js").InputProps, "defaultValue" | "role" | "onChange" | "list" | "type" | "value"> & {
3
+ options: ComboboxOption[];
4
+ value?: string | null;
5
+ defaultValue?: string | null;
6
+ onValueChange?: (value: string | null) => void;
7
+ onInputChange?: (text: string) => void;
8
+ filter?: (option: ComboboxOption, query: string) => boolean;
9
+ emptyMessage?: string;
10
+ listboxLabel?: string;
11
+ } & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,123 @@
1
+ "use client";
2
+ import { topLayerAttributes as e, useAnchoredPosition as t } from "../../hooks/useAnchoredPosition.js";
3
+ import { Input as n } from "../Input/Input.js";
4
+ import r from "./index.module.js";
5
+ import { ChevronDown as i } from "lucide-react";
6
+ import { forwardRef as a, useEffect as o, useId as s, useImperativeHandle as c, useRef as l, useState as u } from "react";
7
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
+ // src/components/Combobox/Combobox.tsx
9
+ var p = (e, t) => e.label.toLocaleLowerCase().includes(t.trim().toLocaleLowerCase()), m = a(({ options: a, value: m, defaultValue: h = null, onValueChange: g, onInputChange: _, filter: v = p, emptyMessage: y = "No results", listboxLabel: b = "Suggestions", id: x, disabled: S, className: C, onKeyDown: w, onBlur: ee, ...te }, T) => {
10
+ let E = s(), D = x ?? E, O = `${D}-listbox`, k = (e) => `${O}-${e}`, [A, j] = u(h), M = m !== void 0, N = M ? m : A, P = a.find((e) => e.value === N) ?? null, [F, I] = u(P?.label ?? ""), [L, R] = u(null), [z, B] = u(!1), [V, H] = u(null), [U, W] = u(N);
11
+ U !== N && (W(N), I(P?.label ?? ""), R(null));
12
+ let G = l(null), K = l(null), q = l(null);
13
+ c(T, () => K.current), t(z, G, q, "bottom", "start", 4, !0);
14
+ let J = L === null || L.trim() === "" ? a : a.filter((e) => v(e, L)), Y = J.filter((e) => !e.disabled), X = a.findIndex((e) => e.value === V), Z = Y.some((e) => e.value === V);
15
+ o(() => {
16
+ !z || X < 0 || document.getElementById(k(X))?.scrollIntoView?.({ block: "nearest" });
17
+ });
18
+ let Q = (e) => {
19
+ if (e?.disabled) return;
20
+ let t = e?.value ?? null;
21
+ M || j(t), t !== N && g?.(t), I(e?.label ?? ""), R(null), B(!1), H(null);
22
+ }, $ = (e) => {
23
+ B(!0), H(e?.value ?? null);
24
+ }, ne = (e) => {
25
+ if (Y.length === 0) return;
26
+ let t = Y.findIndex((e) => e.value === V), n = t === -1 ? e === 1 ? 0 : Y.length - 1 : (t + e + Y.length) % Y.length;
27
+ H(Y[n].value);
28
+ }, re = (e) => {
29
+ if (w?.(e), !e.defaultPrevented) {
30
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
31
+ if (e.preventDefault(), !z) {
32
+ if (e.altKey) return $(null);
33
+ let t = Y.find((e) => e.value === N) ?? (e.key === "ArrowDown" ? Y[0] : Y[Y.length - 1]) ?? null;
34
+ return $(t);
35
+ }
36
+ return ne(e.key === "ArrowDown" ? 1 : -1);
37
+ }
38
+ if (e.key === "Enter" && z && Z) return e.preventDefault(), Q(a[X]);
39
+ if (e.key === "Escape") {
40
+ if (z) {
41
+ e.preventDefault(), e.stopPropagation(), B(!1), H(null);
42
+ return;
43
+ }
44
+ F !== "" && (e.preventDefault(), Q(null), _?.(""));
45
+ }
46
+ }
47
+ }, ie = (e) => {
48
+ let t = e.target.value;
49
+ I(t), R(t), B(!0), H(null), _?.(t), t === "" && N !== null && (M || j(null), g?.(null));
50
+ }, ae = (e) => {
51
+ ee?.(e), B(!1), H(null), R(null), I(P?.label ?? "");
52
+ };
53
+ return /* @__PURE__ */ f("div", {
54
+ ref: G,
55
+ className: r.wrapper,
56
+ children: [
57
+ /* @__PURE__ */ d(n, {
58
+ ...te,
59
+ ref: K,
60
+ id: D,
61
+ role: "combobox",
62
+ "aria-autocomplete": "list",
63
+ "aria-expanded": z,
64
+ "aria-controls": z ? O : void 0,
65
+ "aria-activedescendant": z && Z ? k(X) : void 0,
66
+ autoComplete: "off",
67
+ value: F,
68
+ disabled: S,
69
+ className: [r.input, C].filter(Boolean).join(" "),
70
+ onChange: ie,
71
+ onKeyDown: re,
72
+ onBlur: ae
73
+ }),
74
+ /* @__PURE__ */ d("span", {
75
+ className: r.toggle,
76
+ "aria-hidden": "true",
77
+ onMouseDown: (e) => {
78
+ e.preventDefault(), S || (K.current?.focus(), z ? B(!1) : (R(null), $(null)));
79
+ },
80
+ children: /* @__PURE__ */ d(i, {
81
+ size: 16,
82
+ strokeWidth: 1.75
83
+ })
84
+ }),
85
+ z && /* @__PURE__ */ d("ul", {
86
+ ref: q,
87
+ id: O,
88
+ role: "listbox",
89
+ "aria-label": b,
90
+ ...e,
91
+ className: r.listbox,
92
+ children: J.length === 0 ? /* @__PURE__ */ d("li", {
93
+ role: "option",
94
+ "aria-selected": "false",
95
+ "aria-disabled": "true",
96
+ className: r.empty,
97
+ children: y
98
+ }) : J.map((e) => {
99
+ let t = a.indexOf(e);
100
+ return /* @__PURE__ */ d("li", {
101
+ id: k(t),
102
+ role: "option",
103
+ "aria-selected": e.value === N,
104
+ "aria-disabled": e.disabled || void 0,
105
+ className: [
106
+ r.option,
107
+ e.value === V && r.active,
108
+ e.value === N && r.selected
109
+ ].filter(Boolean).join(" "),
110
+ onMouseDown: (e) => e.preventDefault(),
111
+ onMouseMove: () => {
112
+ !e.disabled && e.value !== V && H(e.value);
113
+ },
114
+ onClick: () => Q(e),
115
+ children: e.label
116
+ }, e.value);
117
+ })
118
+ })
119
+ ]
120
+ });
121
+ });
122
+ m.displayName = "Combobox";
123
+ export { m as Combobox };
@@ -0,0 +1 @@
1
+ export { Combobox } from "./Combobox.js";
@@ -0,0 +1,12 @@
1
+ // src/components/Combobox/index.module.scss
2
+ var e = "matrix-combobox-wrapper", t = "matrix-combobox-input", n = "matrix-combobox-toggle", r = "matrix-combobox-listbox", i = "matrix-combobox-option", a = "matrix-combobox-empty", o = "matrix-combobox-selected", s = "matrix-combobox-active", c = {
3
+ wrapper: e,
4
+ input: t,
5
+ toggle: n,
6
+ listbox: r,
7
+ option: i,
8
+ empty: a,
9
+ selected: o,
10
+ active: s
11
+ };
12
+ export { s as active, c as default, a as empty, t as input, r as listbox, i as option, o as selected, n as toggle, e as wrapper };
@@ -0,0 +1,5 @@
1
+ export declare const Container: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
2
+ size?: import("../../index.js").ContainerSize;
3
+ padding?: import("../../index.js").SpaceToken;
4
+ as?: "div" | "main" | "section" | "article" | "header" | "footer";
5
+ } & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,15 @@
1
+ import e from "./index.module.js";
2
+ import { createElement as t, forwardRef as n } from "react";
3
+ // src/components/Container/Container.tsx
4
+ var r = n(({ as: n = "div", size: r = "large", padding: i = 4, className: a, ...o }, s) => t(n, {
5
+ ...o,
6
+ ref: s,
7
+ className: [
8
+ e.container,
9
+ e[r],
10
+ e[`padding${i}`],
11
+ a
12
+ ].filter(Boolean).join(" ")
13
+ }));
14
+ r.displayName = "Container";
15
+ export { r as Container };
@@ -0,0 +1 @@
1
+ export { Container } from "./Container.js";
@@ -0,0 +1,21 @@
1
+ // src/components/Container/index.module.scss
2
+ var e = "matrix-container-container", t = "matrix-container-small", n = "matrix-container-medium", r = "matrix-container-large", i = "matrix-container-full", a = "matrix-container-padding0", o = "matrix-container-padding1", s = "matrix-container-padding2", c = "matrix-container-padding3", l = "matrix-container-padding4", u = "matrix-container-padding5", d = "matrix-container-padding6", f = "matrix-container-padding8", p = "matrix-container-padding10", m = "matrix-container-padding12", h = "matrix-container-padding16", g = "matrix-container-padding20", _ = {
3
+ container: e,
4
+ small: t,
5
+ medium: n,
6
+ large: r,
7
+ full: i,
8
+ padding0: a,
9
+ padding1: o,
10
+ padding2: s,
11
+ padding3: c,
12
+ padding4: l,
13
+ padding5: u,
14
+ padding6: d,
15
+ padding8: f,
16
+ padding10: p,
17
+ padding12: m,
18
+ padding16: h,
19
+ padding20: g
20
+ };
21
+ export { e as container, _ as default, i as full, r as large, n as medium, a as padding0, o as padding1, p as padding10, m as padding12, h as padding16, s as padding2, g as padding20, c as padding3, l as padding4, u as padding5, d as padding6, f as padding8, t as small };
@@ -0,0 +1,4 @@
1
+ export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<import("../../index.js").InputProps, "type"> & {
2
+ calendarButtonClassName?: string;
3
+ calendarButtonLabel?: 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 { Calendar 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/DateInput/DateInput.tsx
9
+ var u = i(({ className: i, calendarButtonClassName: u, calendarButtonLabel: d = "Choose date", 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: "date",
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 = "DateInput";
54
+ export { u as DateInput };
@@ -0,0 +1 @@
1
+ export { DateInput } from "./DateInput.js";
@@ -0,0 +1,7 @@
1
+ // src/components/DateInput/index.module.scss
2
+ var e = "matrix-dateinput-wrapper", t = "matrix-dateinput-input", n = "matrix-dateinput-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,5 @@
1
+ export declare const DescriptionList: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDListElement>, "children"> & {
2
+ items: import("../../index.js").DescriptionListItem[];
3
+ layout?: import("../../index.js").DescriptionListLayout;
4
+ dividers?: boolean;
5
+ } & import("react").RefAttributes<HTMLDListElement>>;
@@ -0,0 +1,26 @@
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/DescriptionList/DescriptionList.tsx
5
+ var i = t(({ items: t, layout: i = "columns", dividers: a = !0, className: o, ...s }, c) => /* @__PURE__ */ n("dl", {
6
+ ...s,
7
+ ref: c,
8
+ className: [
9
+ e.descriptionList,
10
+ e[i],
11
+ a && e.dividers,
12
+ o
13
+ ].filter(Boolean).join(" "),
14
+ children: t.map((t, i) => /* @__PURE__ */ r("div", {
15
+ className: e.row,
16
+ children: [/* @__PURE__ */ n("dt", {
17
+ className: e.term,
18
+ children: t.term
19
+ }), /* @__PURE__ */ n("dd", {
20
+ className: e.description,
21
+ children: t.description
22
+ })]
23
+ }, i))
24
+ }));
25
+ i.displayName = "DescriptionList";
26
+ export { i as DescriptionList };
@@ -0,0 +1 @@
1
+ export { DescriptionList } from "./DescriptionList.js";
@@ -0,0 +1,10 @@
1
+ // src/components/DescriptionList/index.module.scss
2
+ var e = "matrix-descriptionlist-descriptionList", t = "matrix-descriptionlist-row", n = "matrix-descriptionlist-dividers", r = "matrix-descriptionlist-columns", i = "matrix-descriptionlist-term", a = "matrix-descriptionlist-description", o = {
3
+ descriptionList: e,
4
+ row: t,
5
+ dividers: n,
6
+ columns: r,
7
+ term: i,
8
+ description: a
9
+ };
10
+ export { r as columns, o as default, a as description, e as descriptionList, n as dividers, t as row, i as term };
@@ -0,0 +1,14 @@
1
+ export declare const Dialog: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDialogElement>, "children" | "title" | "open"> & {
2
+ open: boolean;
3
+ onClose: (reason: import("../../index.js").DialogCloseReason) => void;
4
+ title: import("react").ReactNode;
5
+ titleLevel?: import("../../index.js").HeadingLevel;
6
+ description?: import("react").ReactNode;
7
+ children?: import("react").ReactNode;
8
+ footer?: import("react").ReactNode;
9
+ size?: import("../../index.js").DialogSize;
10
+ closeLabel?: string;
11
+ hideCloseButton?: boolean;
12
+ closeOnBackdropClick?: boolean;
13
+ initialFocusRef?: import("react").RefObject<HTMLElement | null>;
14
+ } & import("react").RefAttributes<HTMLDialogElement>>;