@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.
- package/CHANGELOG.md +39 -0
- package/LICENSE +21 -0
- package/README.md +93 -61
- package/dist/components/Accordion/Accordion.d.ts +5 -0
- package/dist/components/Accordion/Accordion.js +40 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.module.js +10 -0
- package/dist/components/Alert/Alert.d.ts +11 -0
- package/dist/components/Alert/Alert.js +66 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Alert/index.module.js +15 -0
- package/dist/components/Avatar/Avatar.d.ts +6 -0
- package/dist/components/Avatar/Avatar.js +36 -0
- package/dist/components/Avatar/helpers/getInitials.d.ts +1 -0
- package/dist/components/Avatar/helpers/getInitials.js +6 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.module.js +9 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +7 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +35 -0
- package/dist/components/AvatarGroup/index.d.ts +1 -0
- package/dist/components/AvatarGroup/index.module.js +9 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +21 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.module.js +10 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +41 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/index.module.js +11 -0
- package/dist/components/Button/Button.d.ts +6 -3
- package/dist/components/Button/Button.js +27 -0
- package/dist/components/Button/ButtonLink.d.ts +6 -0
- package/dist/components/Button/ButtonLink.js +16 -0
- package/dist/components/Button/buttonClassName.d.ts +2 -0
- package/dist/components/Button/buttonClassName.js +11 -0
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.module.js +13 -0
- package/dist/components/Card/Card.d.ts +3 -3
- package/dist/components/Card/Card.js +10 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.module.js +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +21 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.module.js +7 -0
- package/dist/components/Chip/Chip.d.ts +7 -0
- package/dist/components/Chip/Chip.js +34 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/Chip/index.module.js +10 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +8 -0
- package/dist/components/CodeBlock/CodeBlock.js +47 -0
- package/dist/components/CodeBlock/index.d.ts +1 -0
- package/dist/components/CodeBlock/index.module.js +9 -0
- package/dist/components/Combobox/Combobox.d.ts +11 -0
- package/dist/components/Combobox/Combobox.js +123 -0
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Combobox/index.module.js +12 -0
- package/dist/components/Container/Container.d.ts +5 -0
- package/dist/components/Container/Container.js +15 -0
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/index.module.js +21 -0
- package/dist/components/DateInput/DateInput.d.ts +4 -0
- package/dist/components/DateInput/DateInput.js +54 -0
- package/dist/components/DateInput/index.d.ts +1 -0
- package/dist/components/DateInput/index.module.js +7 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +5 -0
- package/dist/components/DescriptionList/DescriptionList.js +26 -0
- package/dist/components/DescriptionList/index.d.ts +1 -0
- package/dist/components/DescriptionList/index.module.js +10 -0
- package/dist/components/Dialog/Dialog.d.ts +14 -0
- package/dist/components/Dialog/Dialog.js +73 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.module.js +16 -0
- package/dist/components/Divider/Divider.d.ts +5 -0
- package/dist/components/Divider/Divider.js +18 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.module.js +19 -0
- package/dist/components/Drawer/Drawer.d.ts +3 -0
- package/dist/components/Drawer/Drawer.js +73 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.module.js +17 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +11 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +95 -0
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/DropdownMenu/index.module.js +11 -0
- package/dist/components/EmptyState/EmptyState.d.ts +8 -0
- package/dist/components/EmptyState/EmptyState.js +39 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.module.js +10 -0
- package/dist/components/FileUpload/FileUpload.d.ts +7 -0
- package/dist/components/FileUpload/FileUpload.js +116 -0
- package/dist/components/FileUpload/helpers/formatFileSize.d.ts +1 -0
- package/dist/components/FileUpload/helpers/formatFileSize.js +12 -0
- package/dist/components/FileUpload/helpers/matchesAccept.d.ts +1 -0
- package/dist/components/FileUpload/helpers/matchesAccept.js +7 -0
- package/dist/components/FileUpload/index.d.ts +1 -0
- package/dist/components/FileUpload/index.module.js +16 -0
- package/dist/components/FormField/FormField.d.ts +11 -0
- package/dist/components/FormField/FormField.js +38 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/FormField/index.module.js +8 -0
- package/dist/components/Heading/Heading.d.ts +4 -0
- package/dist/components/Heading/Heading.js +14 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Heading/index.module.js +9 -0
- package/dist/components/Inline/Inline.d.ts +7 -0
- package/dist/components/Inline/Inline.js +17 -0
- package/dist/components/Inline/index.d.ts +1 -0
- package/dist/components/Inline/index.module.js +27 -0
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Input/Input.js +11 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.module.js +3 -0
- package/dist/components/Link/Link.d.ts +3 -3
- package/dist/components/Link/Link.js +11 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/index.module.js +3 -0
- package/dist/components/Navigation/Navigation.d.ts +14 -0
- package/dist/components/Navigation/Navigation.js +75 -0
- package/dist/components/Navigation/NavigationMenu.d.ts +6 -0
- package/dist/components/Navigation/NavigationMenu.js +48 -0
- package/dist/components/Navigation/index.d.ts +2 -0
- package/dist/components/Navigation/index.module.js +20 -0
- package/dist/components/NumberInput/NumberInput.d.ts +10 -0
- package/dist/components/NumberInput/NumberInput.js +80 -0
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/NumberInput/index.module.js +7 -0
- package/dist/components/OtpInput/OtpInput.d.ts +8 -0
- package/dist/components/OtpInput/OtpInput.js +47 -0
- package/dist/components/OtpInput/index.d.ts +1 -0
- package/dist/components/OtpInput/index.module.js +9 -0
- package/dist/components/PageHeader/PageHeader.d.ts +8 -0
- package/dist/components/PageHeader/PageHeader.js +39 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PageHeader/index.module.js +8 -0
- package/dist/components/Pagination/Pagination.d.ts +14 -0
- package/dist/components/Pagination/Pagination.js +81 -0
- package/dist/components/Pagination/helpers/getPaginationItems.d.ts +1 -0
- package/dist/components/Pagination/helpers/getPaginationItems.js +22 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/index.module.js +11 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +3 -0
- package/dist/components/PasswordInput/PasswordInput.js +42 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/PasswordInput/index.module.js +7 -0
- package/dist/components/Phone/Phone.d.ts +7 -0
- package/dist/components/Phone/Phone.js +19 -0
- package/dist/components/Phone/helpers/formatPhoneNumber.d.ts +15 -0
- package/dist/components/Phone/helpers/formatPhoneNumber.js +15 -0
- package/dist/components/Phone/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +11 -0
- package/dist/components/Popover/Popover.js +51 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.module.js +7 -0
- package/dist/components/Progress/Progress.d.ts +10 -0
- package/dist/components/Progress/Progress.js +74 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/Progress/index.module.js +21 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.js +21 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/index.module.js +7 -0
- package/dist/components/RelatedLinks/RelatedLinks.d.ts +6 -0
- package/dist/components/RelatedLinks/RelatedLinks.js +39 -0
- package/dist/components/RelatedLinks/index.d.ts +1 -0
- package/dist/components/RelatedLinks/index.module.js +11 -0
- package/dist/components/SearchInput/SearchInput.d.ts +3 -0
- package/dist/components/SearchInput/SearchInput.js +28 -0
- package/dist/components/SearchInput/index.d.ts +1 -0
- package/dist/components/SearchInput/index.module.js +8 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.js +31 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.module.js +8 -0
- package/dist/components/SideNav/SideNav.d.ts +6 -0
- package/dist/components/SideNav/SideNav.js +38 -0
- package/dist/components/SideNav/index.d.ts +1 -0
- package/dist/components/SideNav/index.module.js +10 -0
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.js +39 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.module.js +11 -0
- package/dist/components/Slider/Slider.d.ts +10 -0
- package/dist/components/Slider/Slider.js +37 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Slider/index.module.js +7 -0
- package/dist/components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/Spinner/Spinner.js +24 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.module.js +10 -0
- package/dist/components/Stack/Stack.d.ts +5 -0
- package/dist/components/Stack/Stack.js +15 -0
- package/dist/components/Stack/index.d.ts +1 -0
- package/dist/components/Stack/index.module.js +21 -0
- package/dist/components/Stepper/Stepper.d.ts +6 -0
- package/dist/components/Stepper/Stepper.js +50 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Stepper/index.module.js +15 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.module.js +7 -0
- package/dist/components/Table/Table.d.ts +3 -0
- package/dist/components/Table/Table.js +34 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.module.js +9 -0
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/components/Tabs/Tabs.js +63 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.module.js +9 -0
- package/dist/components/Text/Text.d.ts +3 -3
- package/dist/components/Text/Text.js +15 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.module.js +10 -0
- package/dist/components/TextTag/TextTag.d.ts +5 -0
- package/dist/components/TextTag/TextTag.js +19 -0
- package/dist/components/TextTag/index.d.ts +1 -0
- package/dist/components/TextTag/index.module.js +7 -0
- package/dist/components/Textarea/Textarea.d.ts +2 -0
- package/dist/components/Textarea/Textarea.js +11 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Textarea/index.module.js +3 -0
- package/dist/components/TimeInput/TimeInput.d.ts +4 -0
- package/dist/components/TimeInput/TimeInput.js +54 -0
- package/dist/components/TimeInput/index.d.ts +1 -0
- package/dist/components/TimeInput/index.module.js +7 -0
- package/dist/components/Toast/Toast.d.ts +4 -0
- package/dist/components/Toast/Toast.js +26 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Toast/index.module.js +8 -0
- package/dist/components/Toggle/Toggle.d.ts +4 -0
- package/dist/components/Toggle/Toggle.js +20 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/index.module.js +7 -0
- package/dist/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.js +48 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.module.js +7 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +3 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +15 -0
- package/dist/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/components/VisuallyHidden/index.module.js +6 -0
- package/dist/hooks/useAnchoredPosition.d.ts +6 -0
- package/dist/hooks/useAnchoredPosition.js +40 -0
- package/dist/hooks/useDisclosure.d.ts +2 -0
- package/dist/hooks/useDisclosure.js +23 -0
- package/dist/hooks/useDismiss.d.ts +3 -0
- package/dist/hooks/useDismiss.js +22 -0
- package/dist/hooks/useMediaQuery.d.ts +2 -0
- package/dist/hooks/useMediaQuery.js +12 -0
- package/dist/hooks/useModalDialog.d.ts +9 -0
- package/dist/hooks/useModalDialog.js +54 -0
- package/dist/hooks/useOpenState.d.ts +1 -0
- package/dist/hooks/useOpenState.js +14 -0
- package/dist/index.d.ts +117 -3
- package/dist/index.js +63 -0
- package/dist/styles.css +2 -0
- package/dist/types/accordionType.d.ts +19 -0
- package/dist/types/alertType.d.ts +30 -0
- package/dist/types/avatarGroupType.d.ts +20 -0
- package/dist/types/avatarType.d.ts +15 -0
- package/dist/types/badgeType.d.ts +11 -8
- package/dist/types/breadcrumbsType.d.ts +23 -0
- package/dist/types/buttonLinkType.d.ts +19 -0
- package/dist/types/buttonType.d.ts +27 -9
- package/dist/types/cardType.d.ts +9 -43
- package/dist/types/checkboxType.d.ts +9 -0
- package/dist/types/chipType.d.ts +18 -0
- package/dist/types/codeBlockType.d.ts +19 -0
- package/dist/types/comboboxType.d.ts +27 -0
- package/dist/types/containerType.d.ts +11 -0
- package/dist/types/dateInputType.d.ts +7 -0
- package/dist/types/descriptionListType.d.ts +20 -0
- package/dist/types/dialogType.d.ts +38 -0
- package/dist/types/dividerType.d.ts +14 -0
- package/dist/types/drawerType.d.ts +7 -0
- package/dist/types/dropdownMenuType.d.ts +36 -0
- package/dist/types/emptyStateType.d.ts +16 -0
- package/dist/types/fileUploadType.d.ts +13 -0
- package/dist/types/formFieldType.d.ts +26 -0
- package/dist/types/headingType.d.ts +12 -0
- package/dist/types/index.d.ts +61 -11
- package/dist/types/inlineType.d.ts +17 -0
- package/dist/types/inputType.d.ts +8 -0
- package/dist/types/linkType.d.ts +8 -9
- package/dist/types/navigationMenuType.d.ts +14 -0
- package/dist/types/navigationType.d.ts +42 -0
- package/dist/types/numberInputType.d.ts +19 -0
- package/dist/types/otpInputType.d.ts +16 -0
- package/dist/types/pageHeaderType.d.ts +19 -0
- package/dist/types/paginationType.d.ts +37 -0
- package/dist/types/passwordInputType.d.ts +5 -0
- package/dist/types/phoneType.d.ts +19 -0
- package/dist/types/popoverType.d.ts +31 -0
- package/dist/types/progressType.d.ts +21 -0
- package/dist/types/radioType.d.ts +9 -0
- package/dist/types/relatedLinksType.d.ts +25 -0
- package/dist/types/searchInputType.d.ts +6 -0
- package/dist/types/selectType.d.ts +8 -0
- package/dist/types/sideNavType.d.ts +35 -0
- package/dist/types/skeletonType.d.ts +12 -0
- package/dist/types/sliderType.d.ts +19 -0
- package/dist/types/spaceType.d.ts +2 -0
- package/dist/types/spinnerType.d.ts +12 -0
- package/dist/types/stackType.d.ts +15 -0
- package/dist/types/stepperType.d.ts +27 -0
- package/dist/types/switchType.d.ts +9 -0
- package/dist/types/tableType.d.ts +26 -0
- package/dist/types/tabsType.d.ts +30 -0
- package/dist/types/textTagType.d.ts +9 -0
- package/dist/types/textType.d.ts +5 -15
- package/dist/types/textareaType.d.ts +8 -0
- package/dist/types/timeInputType.d.ts +7 -0
- package/dist/types/toastType.d.ts +7 -0
- package/dist/types/toggleType.d.ts +7 -0
- package/dist/types/tooltipType.d.ts +22 -0
- package/dist/types/useDisclosureType.d.ts +30 -0
- package/dist/types/useMediaQueryType.d.ts +4 -0
- package/dist/types/visuallyHiddenType.d.ts +5 -0
- package/package.json +54 -75
- package/dist/components/CardRow/CardRow.d.ts +0 -3
- package/dist/components/IconDropdown/IconDropdown.d.ts +0 -3
- package/dist/components/Image/Image.d.ts +0 -3
- package/dist/components/Navbar/Navbar.d.ts +0 -3
- package/dist/components/Rating/Rating.d.ts +0 -3
- package/dist/components/SelectDropdown/SelectDropdown.d.ts +0 -3
- package/dist/components/index.d.ts +0 -11
- package/dist/favicon.svg +0 -1
- package/dist/fonts/Inter-400.woff2 +0 -11
- package/dist/fonts/Inter-500.woff2 +0 -11
- package/dist/fonts/Inter-600.woff2 +0 -11
- package/dist/fonts/Inter-700.woff2 +0 -11
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useBreakpoint.d.ts +0 -7
- package/dist/icons.svg +0 -24
- package/dist/matrix-ui.es.js +0 -680
- package/dist/matrix-ui.umd.js +0 -2
- package/dist/types/cardRowType.d.ts +0 -34
- package/dist/types/iconDropdownType.d.ts +0 -16
- package/dist/types/imageType.d.ts +0 -11
- package/dist/types/navbarType.d.ts +0 -27
- package/dist/types/ratingType.d.ts +0 -3
- package/dist/types/selectDropdownType.d.ts +0 -15
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/components/FormField/index.module.scss
|
|
2
|
+
var e = "matrix-formfield-field", t = "matrix-formfield-label", n = "matrix-formfield-optional", r = "matrix-formfield-error", i = {
|
|
3
|
+
field: e,
|
|
4
|
+
label: t,
|
|
5
|
+
optional: n,
|
|
6
|
+
error: r
|
|
7
|
+
};
|
|
8
|
+
export { i as default, r as error, e as field, t as label, n as optional };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Heading: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLHeadingElement> & {
|
|
2
|
+
level?: import("../../index.js").HeadingLevel;
|
|
3
|
+
size?: import("../../index.js").HeadingSize;
|
|
4
|
+
} & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "./index.module.js";
|
|
2
|
+
import { createElement as t, forwardRef as n } from "react";
|
|
3
|
+
// src/components/Heading/Heading.tsx
|
|
4
|
+
var r = n(({ level: n = 1, size: r = "display", className: i, ...a }, o) => t(`h${n}`, {
|
|
5
|
+
...a,
|
|
6
|
+
ref: o,
|
|
7
|
+
className: [
|
|
8
|
+
e.heading,
|
|
9
|
+
e[r],
|
|
10
|
+
i
|
|
11
|
+
].filter(Boolean).join(" ")
|
|
12
|
+
}));
|
|
13
|
+
r.displayName = "Heading";
|
|
14
|
+
export { r as Heading };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Heading } from "./Heading.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/components/Heading/index.module.scss
|
|
2
|
+
var e = "matrix-heading-heading", t = "matrix-heading-display", n = "matrix-heading-large", r = "matrix-heading-medium", i = "matrix-heading-small", a = {
|
|
3
|
+
heading: e,
|
|
4
|
+
display: t,
|
|
5
|
+
large: n,
|
|
6
|
+
medium: r,
|
|
7
|
+
small: i
|
|
8
|
+
};
|
|
9
|
+
export { a as default, t as display, e as heading, n as large, r as medium, i as small };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const Inline: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
|
|
2
|
+
gap?: import("../../index.js").SpaceToken;
|
|
3
|
+
align?: import("../../index.js").InlineAlign;
|
|
4
|
+
justify?: import("../../index.js").InlineJustify;
|
|
5
|
+
wrap?: boolean;
|
|
6
|
+
as?: import("../../index.js").LayoutElement;
|
|
7
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import e from "./index.module.js";
|
|
2
|
+
import { createElement as t, forwardRef as n } from "react";
|
|
3
|
+
// src/components/Inline/Inline.tsx
|
|
4
|
+
var r = n(({ as: n = "div", gap: r = 2, align: i = "center", justify: a = "start", wrap: o = !0, className: s, ...c }, l) => t(n, {
|
|
5
|
+
...c,
|
|
6
|
+
ref: l,
|
|
7
|
+
className: [
|
|
8
|
+
e.inline,
|
|
9
|
+
e[`gap${r}`],
|
|
10
|
+
e[`align-${i}`],
|
|
11
|
+
e[`justify-${a}`],
|
|
12
|
+
!o && e.noWrap,
|
|
13
|
+
s
|
|
14
|
+
].filter(Boolean).join(" ")
|
|
15
|
+
}));
|
|
16
|
+
r.displayName = "Inline";
|
|
17
|
+
export { r as Inline };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Inline } from "./Inline.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// src/components/Inline/index.module.scss
|
|
2
|
+
var e = "matrix-inline-inline", t = "matrix-inline-noWrap", n = "matrix-inline-gap0", r = "matrix-inline-gap1", i = "matrix-inline-gap2", a = "matrix-inline-gap3", o = "matrix-inline-gap4", s = "matrix-inline-gap5", c = "matrix-inline-gap6", l = "matrix-inline-gap8", u = "matrix-inline-gap10", d = "matrix-inline-gap12", f = "matrix-inline-gap16", p = "matrix-inline-gap20", m = {
|
|
3
|
+
inline: e,
|
|
4
|
+
noWrap: t,
|
|
5
|
+
gap0: n,
|
|
6
|
+
gap1: r,
|
|
7
|
+
gap2: i,
|
|
8
|
+
gap3: a,
|
|
9
|
+
gap4: o,
|
|
10
|
+
gap5: s,
|
|
11
|
+
gap6: c,
|
|
12
|
+
gap8: l,
|
|
13
|
+
gap10: u,
|
|
14
|
+
gap12: d,
|
|
15
|
+
gap16: f,
|
|
16
|
+
gap20: p,
|
|
17
|
+
"align-start": "matrix-inline-align-start",
|
|
18
|
+
"align-center": "matrix-inline-align-center",
|
|
19
|
+
"align-end": "matrix-inline-align-end",
|
|
20
|
+
"align-baseline": "matrix-inline-align-baseline",
|
|
21
|
+
"align-stretch": "matrix-inline-align-stretch",
|
|
22
|
+
"justify-start": "matrix-inline-justify-start",
|
|
23
|
+
"justify-center": "matrix-inline-justify-center",
|
|
24
|
+
"justify-end": "matrix-inline-justify-end",
|
|
25
|
+
"justify-between": "matrix-inline-justify-between"
|
|
26
|
+
};
|
|
27
|
+
export { m as default, n as gap0, r as gap1, u as gap10, d as gap12, f as gap16, i as gap2, p as gap20, a as gap3, o as gap4, s as gap5, c as gap6, l as gap8, e as inline, t as noWrap };
|
|
@@ -0,0 +1,11 @@
|
|
|
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/Input/Input.tsx
|
|
5
|
+
var r = t(({ className: t, ...r }, i) => /* @__PURE__ */ n("input", {
|
|
6
|
+
...r,
|
|
7
|
+
ref: i,
|
|
8
|
+
className: [e.input, t].filter(Boolean).join(" ")
|
|
9
|
+
}));
|
|
10
|
+
r.displayName = "Input";
|
|
11
|
+
export { r as Input };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input } from "./Input.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const Link: import("react").ForwardRefExoticComponent<import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
2
|
+
href: string;
|
|
3
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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/Link/Link.tsx
|
|
5
|
+
var r = t(({ className: t, ...r }, i) => /* @__PURE__ */ n("a", {
|
|
6
|
+
...r,
|
|
7
|
+
ref: i,
|
|
8
|
+
className: [e.link, t].filter(Boolean).join(" ")
|
|
9
|
+
}));
|
|
10
|
+
r.displayName = "Link";
|
|
11
|
+
export { r as Link };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link } from "./Link.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NavigationLinkProps } from "../../types/navigationType.js";
|
|
2
|
+
export declare const Navigation: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "children"> & {
|
|
3
|
+
items: import("../../index.js").NavigationItem[];
|
|
4
|
+
brand?: import("react").ReactNode;
|
|
5
|
+
actions?: import("react").ReactNode;
|
|
6
|
+
mobileActions?: import("react").ReactNode;
|
|
7
|
+
renderLink?: (props: NavigationLinkProps) => import("react").ReactNode;
|
|
8
|
+
navigationKey?: string;
|
|
9
|
+
navigationLabel?: string;
|
|
10
|
+
openMenuLabel?: string;
|
|
11
|
+
closeMenuLabel?: string;
|
|
12
|
+
openMenuIcon?: import("react").ReactNode;
|
|
13
|
+
closeMenuIcon?: import("react").ReactNode;
|
|
14
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useDismiss as e } from "../../hooks/useDismiss.js";
|
|
3
|
+
import t from "./index.module.js";
|
|
4
|
+
import { Menu as n, X as r } from "lucide-react";
|
|
5
|
+
import { forwardRef as i, useCallback as a, useId as o, useRef as s, useState as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
// src/components/Navigation/Navigation.tsx
|
|
8
|
+
var d = (e) => /* @__PURE__ */ l("a", { ...e }), f = i(({ items: i, brand: f, actions: p, mobileActions: m = p, renderLink: h = d, navigationKey: g, navigationLabel: _ = "Main navigation", openMenuLabel: v = "Open navigation menu", closeMenuLabel: y = "Close navigation menu", openMenuIcon: b = /* @__PURE__ */ l(n, {
|
|
9
|
+
size: 21,
|
|
10
|
+
strokeWidth: 1.75,
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}), closeMenuIcon: x = /* @__PURE__ */ l(r, {
|
|
13
|
+
size: 21,
|
|
14
|
+
strokeWidth: 1.75,
|
|
15
|
+
"aria-hidden": "true"
|
|
16
|
+
}), className: S, ...C }, w) => {
|
|
17
|
+
let T = o(), E = s(null), D = s(null), [O, k] = c(!1), [A, j] = c(g);
|
|
18
|
+
g !== A && (j(g), k(!1));
|
|
19
|
+
let M = a((e) => {
|
|
20
|
+
k(!1), e === "escape" && D.current?.focus();
|
|
21
|
+
}, []);
|
|
22
|
+
e(O, E, M);
|
|
23
|
+
let N = (e) => {
|
|
24
|
+
let { target: t } = e;
|
|
25
|
+
t instanceof Element && t.closest("a, button:not([aria-expanded])") && (k(!1), D.current?.focus());
|
|
26
|
+
}, P = (e, t) => /* @__PURE__ */ l("ul", {
|
|
27
|
+
className: e,
|
|
28
|
+
children: i.map((e) => /* @__PURE__ */ l("li", { children: h({
|
|
29
|
+
href: e.href,
|
|
30
|
+
className: t,
|
|
31
|
+
children: e.label,
|
|
32
|
+
...e.current ? { "aria-current": "page" } : {}
|
|
33
|
+
}) }, e.href))
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */ u("header", {
|
|
36
|
+
...C,
|
|
37
|
+
ref: w,
|
|
38
|
+
className: [t.navigation, S].filter(Boolean).join(" "),
|
|
39
|
+
children: [f != null && /* @__PURE__ */ l("div", {
|
|
40
|
+
className: t.brand,
|
|
41
|
+
children: f
|
|
42
|
+
}), /* @__PURE__ */ u("nav", {
|
|
43
|
+
ref: E,
|
|
44
|
+
className: t.nav,
|
|
45
|
+
"aria-label": _,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ u("div", {
|
|
48
|
+
className: t.desktop,
|
|
49
|
+
children: [P(t.list, t.link), p != null && /* @__PURE__ */ l("div", {
|
|
50
|
+
className: t.actions,
|
|
51
|
+
children: p
|
|
52
|
+
})]
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ l("button", {
|
|
55
|
+
ref: D,
|
|
56
|
+
type: "button",
|
|
57
|
+
className: t.menuButton,
|
|
58
|
+
onClick: () => k((e) => !e),
|
|
59
|
+
"aria-label": O ? y : v,
|
|
60
|
+
"aria-expanded": O,
|
|
61
|
+
"aria-controls": O ? T : void 0,
|
|
62
|
+
children: O ? x : b
|
|
63
|
+
}),
|
|
64
|
+
O && /* @__PURE__ */ u("div", {
|
|
65
|
+
id: T,
|
|
66
|
+
className: `${t.panel} ${t.mobilePanel}`,
|
|
67
|
+
onClick: N,
|
|
68
|
+
children: [P(t.panelList, t.panelLink), m]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
f.displayName = "Navigation";
|
|
75
|
+
export { f as Navigation };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const NavigationMenu: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
2
|
+
label: string;
|
|
3
|
+
children: import("react").ReactNode;
|
|
4
|
+
trigger?: import("react").ReactNode;
|
|
5
|
+
navigationKey?: string;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useDismiss as e } from "../../hooks/useDismiss.js";
|
|
3
|
+
import t from "./index.module.js";
|
|
4
|
+
import { ChevronDown as n } from "lucide-react";
|
|
5
|
+
import { forwardRef as r, useCallback as i, useId as a, useImperativeHandle as o, useRef as s, useState as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
// src/components/Navigation/NavigationMenu.tsx
|
|
8
|
+
var d = r(({ label: r, children: d, trigger: f, navigationKey: p, className: m, ...h }, g) => {
|
|
9
|
+
let _ = a(), v = s(null), y = s(null), [b, x] = c(!1), [S, C] = c(p);
|
|
10
|
+
o(g, () => v.current), p !== S && (C(p), x(!1));
|
|
11
|
+
let w = i((e) => {
|
|
12
|
+
x(!1), e === "escape" && y.current?.focus();
|
|
13
|
+
}, []);
|
|
14
|
+
e(b, v, w);
|
|
15
|
+
let T = (e) => {
|
|
16
|
+
let { target: t } = e;
|
|
17
|
+
t instanceof Element && t.closest("a, button") && (x(!1), y.current?.focus());
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ u("div", {
|
|
20
|
+
...h,
|
|
21
|
+
ref: v,
|
|
22
|
+
className: [t.menu, m].filter(Boolean).join(" "),
|
|
23
|
+
children: [/* @__PURE__ */ l("button", {
|
|
24
|
+
ref: y,
|
|
25
|
+
type: "button",
|
|
26
|
+
className: t.menuTrigger,
|
|
27
|
+
onClick: () => x((e) => !e),
|
|
28
|
+
"aria-label": r,
|
|
29
|
+
"aria-expanded": b,
|
|
30
|
+
"aria-controls": b ? _ : void 0,
|
|
31
|
+
children: /* @__PURE__ */ l("span", {
|
|
32
|
+
className: t.menuTriggerContent,
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
children: f ?? /* @__PURE__ */ l(n, {
|
|
35
|
+
size: 17,
|
|
36
|
+
strokeWidth: 1.75
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
}), b && /* @__PURE__ */ l("div", {
|
|
40
|
+
id: _,
|
|
41
|
+
className: `${t.panel} ${t.menuPanel}`,
|
|
42
|
+
onClick: T,
|
|
43
|
+
children: d
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
d.displayName = "NavigationMenu";
|
|
48
|
+
export { d as NavigationMenu };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/components/Navigation/index.module.scss
|
|
2
|
+
var e = "matrix-navigation-navigation", t = "matrix-navigation-brand", n = "matrix-navigation-nav", r = "matrix-navigation-desktop", i = "matrix-navigation-list", a = "matrix-navigation-actions", o = "matrix-navigation-link", s = "matrix-navigation-menuButton", c = "matrix-navigation-menuTrigger", l = "matrix-navigation-menu", u = "matrix-navigation-menuTriggerContent", d = "matrix-navigation-panel", f = "matrix-navigation-menuPanel", p = "matrix-navigation-mobilePanel", m = "matrix-navigation-panelList", h = "matrix-navigation-panelLink", g = {
|
|
3
|
+
navigation: e,
|
|
4
|
+
brand: t,
|
|
5
|
+
nav: n,
|
|
6
|
+
desktop: r,
|
|
7
|
+
list: i,
|
|
8
|
+
actions: a,
|
|
9
|
+
link: o,
|
|
10
|
+
menuButton: s,
|
|
11
|
+
menuTrigger: c,
|
|
12
|
+
menu: l,
|
|
13
|
+
menuTriggerContent: u,
|
|
14
|
+
panel: d,
|
|
15
|
+
menuPanel: f,
|
|
16
|
+
mobilePanel: p,
|
|
17
|
+
panelList: m,
|
|
18
|
+
panelLink: h
|
|
19
|
+
};
|
|
20
|
+
export { a as actions, t as brand, g as default, r as desktop, o as link, i as list, l as menu, s as menuButton, f as menuPanel, c as menuTrigger, u as menuTriggerContent, p as mobilePanel, n as nav, e as navigation, d as panel, h as panelLink, m as panelList };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<import("../../index.js").InputProps, "defaultValue" | "onChange" | "step" | "max" | "min" | "type" | "value"> & {
|
|
2
|
+
value?: number | null;
|
|
3
|
+
defaultValue?: number | null;
|
|
4
|
+
onValueChange?: (value: number | null) => void;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
decrementLabel?: string;
|
|
9
|
+
incrementLabel?: string;
|
|
10
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { Minus as r, Plus as i } from "lucide-react";
|
|
6
|
+
import { forwardRef as a, useId as o, useState as s } from "react";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
// src/components/NumberInput/NumberInput.tsx
|
|
9
|
+
var u = (e) => e == null ? "" : String(e), d = (e) => {
|
|
10
|
+
if (e.trim() === "") return null;
|
|
11
|
+
let t = Number(e);
|
|
12
|
+
return Number.isFinite(t) ? t : null;
|
|
13
|
+
}, f = (e) => (String(e).split(".")[1] ?? "").length, p = a(({ value: a, defaultValue: p = null, onValueChange: m, min: h, max: g, step: _ = 1, decrementLabel: v = "Decrease", incrementLabel: y = "Increase", id: b, disabled: x, readOnly: S, className: C, onBlur: w, ...T }, E) => {
|
|
14
|
+
let D = o(), O = b ?? D, k = a !== void 0, [A, j] = s(u(k ? a : p)), [M, N] = s(a);
|
|
15
|
+
k && a !== M && (N(a), d(A) !== a && j(u(a)));
|
|
16
|
+
let P = d(A), F = (e) => Math.min(g ?? Infinity, Math.max(h ?? -Infinity, e)), I = (e) => {
|
|
17
|
+
j(u(e)), e !== P && m?.(e);
|
|
18
|
+
}, L = (e) => {
|
|
19
|
+
let t = P ?? (e === 1 ? (h ?? 0) - _ : (g ?? 0) + _), n = Number((t + e * _).toFixed(f(_)));
|
|
20
|
+
I(F(n));
|
|
21
|
+
}, R = (e) => {
|
|
22
|
+
j(e.target.value);
|
|
23
|
+
let t = d(e.target.value);
|
|
24
|
+
t !== P && m?.(t);
|
|
25
|
+
}, z = (e) => {
|
|
26
|
+
w?.(e), P !== null && F(P) !== P && I(F(P));
|
|
27
|
+
}, B = x || S;
|
|
28
|
+
return /* @__PURE__ */ l("div", {
|
|
29
|
+
className: n.wrapper,
|
|
30
|
+
children: [/* @__PURE__ */ c(t, {
|
|
31
|
+
...T,
|
|
32
|
+
ref: E,
|
|
33
|
+
id: O,
|
|
34
|
+
type: "number",
|
|
35
|
+
inputMode: "decimal",
|
|
36
|
+
min: h,
|
|
37
|
+
max: g,
|
|
38
|
+
step: _,
|
|
39
|
+
value: A,
|
|
40
|
+
disabled: x,
|
|
41
|
+
readOnly: S,
|
|
42
|
+
className: [n.input, C].filter(Boolean).join(" "),
|
|
43
|
+
onChange: R,
|
|
44
|
+
onBlur: z
|
|
45
|
+
}), /* @__PURE__ */ l("div", {
|
|
46
|
+
className: n.buttons,
|
|
47
|
+
children: [/* @__PURE__ */ c(e, {
|
|
48
|
+
variant: "ghost",
|
|
49
|
+
size: "small",
|
|
50
|
+
iconOnly: !0,
|
|
51
|
+
tabIndex: -1,
|
|
52
|
+
"aria-label": v,
|
|
53
|
+
"aria-controls": O,
|
|
54
|
+
disabled: B || P !== null && h !== void 0 && P <= h,
|
|
55
|
+
onClick: () => L(-1),
|
|
56
|
+
children: /* @__PURE__ */ c(r, {
|
|
57
|
+
size: 14,
|
|
58
|
+
strokeWidth: 2,
|
|
59
|
+
"aria-hidden": "true"
|
|
60
|
+
})
|
|
61
|
+
}), /* @__PURE__ */ c(e, {
|
|
62
|
+
variant: "ghost",
|
|
63
|
+
size: "small",
|
|
64
|
+
iconOnly: !0,
|
|
65
|
+
tabIndex: -1,
|
|
66
|
+
"aria-label": y,
|
|
67
|
+
"aria-controls": O,
|
|
68
|
+
disabled: B || P !== null && g !== void 0 && P >= g,
|
|
69
|
+
onClick: () => L(1),
|
|
70
|
+
children: /* @__PURE__ */ c(i, {
|
|
71
|
+
size: 14,
|
|
72
|
+
strokeWidth: 2,
|
|
73
|
+
"aria-hidden": "true"
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
p.displayName = "NumberInput";
|
|
80
|
+
export { p as NumberInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInput } from "./NumberInput.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// src/components/NumberInput/index.module.scss
|
|
2
|
+
var e = "matrix-numberinput-wrapper", t = "matrix-numberinput-input", n = "matrix-numberinput-buttons", r = {
|
|
3
|
+
wrapper: e,
|
|
4
|
+
input: t,
|
|
5
|
+
buttons: n
|
|
6
|
+
};
|
|
7
|
+
export { n as buttons, r as default, t as input, e as wrapper };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const OtpInput: import("react").ForwardRefExoticComponent<Omit<import("../../index.js").InputProps, "defaultValue" | "inputMode" | "onChange" | "type" | "maxLength" | "value"> & {
|
|
2
|
+
length?: number;
|
|
3
|
+
mode?: import("../../index.js").OtpInputMode;
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
onComplete?: (value: string) => void;
|
|
8
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index.module.js";
|
|
3
|
+
import { forwardRef as t, useState as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
// src/components/OtpInput/OtpInput.tsx
|
|
6
|
+
var a = t(({ length: t = 6, mode: a = "numeric", value: o, defaultValue: s = "", onValueChange: c, onComplete: l, autoComplete: u = "one-time-code", className: d, onFocus: f, onBlur: p, ...m }, h) => {
|
|
7
|
+
let g = Math.max(1, Math.floor(t)), _ = (e) => (a === "numeric" ? e.replace(/\D/g, "") : e.replace(/[^\p{L}\p{N}]/gu, "")).slice(0, g), [v, y] = n(() => _(s)), [b, x] = n(!1), S = o !== void 0, C = S ? _(o) : v, w = (e) => {
|
|
8
|
+
let t = _(e.target.value);
|
|
9
|
+
S || y(t), t !== C && (c?.(t), t.length === g && l?.(t));
|
|
10
|
+
}, T = Array.from(C);
|
|
11
|
+
return /* @__PURE__ */ i("div", {
|
|
12
|
+
className: e.otp,
|
|
13
|
+
style: { "--matrix-otp-length": g },
|
|
14
|
+
children: [/* @__PURE__ */ r("input", {
|
|
15
|
+
...m,
|
|
16
|
+
ref: h,
|
|
17
|
+
type: "text",
|
|
18
|
+
inputMode: a === "numeric" ? "numeric" : "text",
|
|
19
|
+
autoComplete: u,
|
|
20
|
+
autoCapitalize: "none",
|
|
21
|
+
autoCorrect: "off",
|
|
22
|
+
spellCheck: !1,
|
|
23
|
+
value: C,
|
|
24
|
+
className: [e.input, d].filter(Boolean).join(" "),
|
|
25
|
+
onChange: w,
|
|
26
|
+
onFocus: (e) => {
|
|
27
|
+
f?.(e), x(!0);
|
|
28
|
+
},
|
|
29
|
+
onBlur: (e) => {
|
|
30
|
+
p?.(e), x(!1);
|
|
31
|
+
}
|
|
32
|
+
}), /* @__PURE__ */ r("div", {
|
|
33
|
+
className: e.slots,
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
children: Array.from({ length: g }, (t, n) => /* @__PURE__ */ r("span", {
|
|
36
|
+
className: [
|
|
37
|
+
e.slot,
|
|
38
|
+
T[n] !== void 0 && e.filled,
|
|
39
|
+
b && n === Math.min(T.length, g - 1) && e.current
|
|
40
|
+
].filter(Boolean).join(" "),
|
|
41
|
+
children: T[n] ?? ""
|
|
42
|
+
}, n))
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
a.displayName = "OtpInput";
|
|
47
|
+
export { a as OtpInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OtpInput } from "./OtpInput.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/components/OtpInput/index.module.scss
|
|
2
|
+
var e = "matrix-otpinput-otp", t = "matrix-otpinput-input", n = "matrix-otpinput-slots", r = "matrix-otpinput-slot", i = "matrix-otpinput-current", a = {
|
|
3
|
+
otp: e,
|
|
4
|
+
input: t,
|
|
5
|
+
slots: n,
|
|
6
|
+
slot: r,
|
|
7
|
+
current: i
|
|
8
|
+
};
|
|
9
|
+
export { i as current, a as default, t as input, e as otp, r as slot, n as slots };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const PageHeader: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
2
|
+
title: import("react").ReactNode;
|
|
3
|
+
titleLevel?: import("../../index.js").HeadingLevel;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
eyebrow?: import("react").ReactNode;
|
|
6
|
+
lead?: import("react").ReactNode;
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Heading as e } from "../Heading/Heading.js";
|
|
2
|
+
import { Text as t } from "../Text/Text.js";
|
|
3
|
+
import n from "./index.module.js";
|
|
4
|
+
import { forwardRef as r, useId as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
// src/components/PageHeader/PageHeader.tsx
|
|
7
|
+
var s = r(({ title: r, titleLevel: s = 1, titleId: c, eyebrow: l, lead: u, children: d, className: f, ...p }, m) => {
|
|
8
|
+
let h = i();
|
|
9
|
+
return /* @__PURE__ */ a("div", {
|
|
10
|
+
...p,
|
|
11
|
+
ref: m,
|
|
12
|
+
className: [n.pageHeader, f].filter(Boolean).join(" "),
|
|
13
|
+
children: /* @__PURE__ */ a("div", {
|
|
14
|
+
className: n.inner,
|
|
15
|
+
children: /* @__PURE__ */ o("div", {
|
|
16
|
+
className: n.content,
|
|
17
|
+
children: [
|
|
18
|
+
l && /* @__PURE__ */ a("p", {
|
|
19
|
+
className: n.eyebrow,
|
|
20
|
+
children: l
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ a(e, {
|
|
23
|
+
id: c ?? h,
|
|
24
|
+
level: s,
|
|
25
|
+
size: "large",
|
|
26
|
+
children: r
|
|
27
|
+
}),
|
|
28
|
+
u && /* @__PURE__ */ a(t, {
|
|
29
|
+
variant: "lead",
|
|
30
|
+
children: u
|
|
31
|
+
}),
|
|
32
|
+
d
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
s.displayName = "PageHeader";
|
|
39
|
+
export { s as PageHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageHeader } from "./PageHeader.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/components/PageHeader/index.module.scss
|
|
2
|
+
var e = "matrix-pageheader-pageHeader", t = "matrix-pageheader-inner", n = "matrix-pageheader-content", r = "matrix-pageheader-eyebrow", i = {
|
|
3
|
+
pageHeader: e,
|
|
4
|
+
inner: t,
|
|
5
|
+
content: n,
|
|
6
|
+
eyebrow: r
|
|
7
|
+
};
|
|
8
|
+
export { n as content, i as default, r as eyebrow, t as inner, e as pageHeader };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { PaginationLinkProps } from "../../types/paginationType.js";
|
|
3
|
+
export declare const Pagination: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "children"> & {
|
|
4
|
+
page: number;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
onPageChange?: (page: number) => void;
|
|
7
|
+
getHref?: (page: number) => string;
|
|
8
|
+
renderLink?: (props: PaginationLinkProps) => ReactNode;
|
|
9
|
+
siblingCount?: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
previousLabel?: string;
|
|
12
|
+
nextLabel?: string;
|
|
13
|
+
getPageLabel?: (page: number) => string;
|
|
14
|
+
} & import("react").RefAttributes<HTMLElement>>;
|