moduix 0.11.0 → 0.11.2
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/LICENSE.md +21 -0
- package/README.md +13 -3
- package/dist/components/Accordion/Accordion.css +99 -0
- package/dist/components/Accordion/Accordion.d.ts +17 -9
- package/dist/components/Accordion/Accordion.js +60 -0
- package/dist/components/Accordion/Accordion.module.js +12 -0
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Alert/Alert.css +114 -0
- package/dist/components/Alert/Alert.d.ts +30 -10
- package/dist/components/Alert/Alert.js +44 -0
- package/dist/components/Alert/Alert.module.js +11 -0
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.css +159 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +66 -19
- package/dist/components/AlertDialog/AlertDialog.js +107 -0
- package/dist/components/AlertDialog/AlertDialog.module.js +18 -0
- package/dist/components/AlertDialog/index.d.ts +1 -1
- package/dist/components/AspectRatio/AspectRatio.css +14 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +12 -5
- package/dist/components/AspectRatio/AspectRatio.js +24 -0
- package/dist/components/AspectRatio/AspectRatio.module.js +5 -0
- package/dist/components/AspectRatio/index.d.ts +1 -2
- package/dist/components/Autocomplete/Autocomplete.css +454 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +40 -37
- package/dist/components/Autocomplete/Autocomplete.js +271 -0
- package/dist/components/Autocomplete/Autocomplete.module.js +37 -0
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Avatar/Avatar.css +74 -0
- package/dist/components/Avatar/Avatar.d.ts +19 -6
- package/dist/components/Avatar/Avatar.js +29 -0
- package/dist/components/Avatar/Avatar.module.js +9 -0
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.css +66 -0
- package/dist/components/Badge/Badge.d.ts +15 -6
- package/dist/components/Badge/Badge.js +22 -0
- package/dist/components/Badge/Badge.module.js +8 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Bleed/Bleed.css +51 -0
- package/dist/components/Bleed/Bleed.d.ts +15 -6
- package/dist/components/Bleed/Bleed.js +15 -0
- package/dist/components/Bleed/Bleed.module.js +5 -0
- package/dist/components/Bleed/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.css +88 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +38 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.js +66 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.module.js +13 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.css +194 -0
- package/dist/components/Button/Button.d.ts +9 -7
- package/dist/components/Button/Button.js +18 -0
- package/dist/components/Button/Button.module.js +5 -0
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Card/Card.css +136 -0
- package/dist/components/Card/Card.d.ts +45 -15
- package/dist/components/Card/Card.js +72 -0
- package/dist/components/Card/Card.module.js +14 -0
- package/dist/components/Card/index.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.css +131 -0
- package/dist/components/Checkbox/Checkbox.d.ts +27 -10
- package/dist/components/Checkbox/Checkbox.js +59 -0
- package/dist/components/Checkbox/Checkbox.module.js +13 -0
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.css +33 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +27 -9
- package/dist/components/CheckboxGroup/CheckboxGroup.js +50 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.module.js +11 -0
- package/dist/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/CloseButton/CloseButton.css +49 -0
- package/dist/components/CloseButton/CloseButton.d.ts +4 -2
- package/dist/components/CloseButton/CloseButton.js +22 -0
- package/dist/components/CloseButton/CloseButton.module.js +5 -0
- package/dist/components/Collapsible/Collapsible.css +92 -0
- package/dist/components/Collapsible/Collapsible.d.ts +14 -6
- package/dist/components/Collapsible/Collapsible.js +44 -0
- package/dist/components/Collapsible/Collapsible.module.js +10 -0
- package/dist/components/Collapsible/index.d.ts +1 -1
- package/dist/components/Combobox/Combobox.css +497 -0
- package/dist/components/Combobox/Combobox.d.ts +58 -43
- package/dist/components/Combobox/Combobox.js +295 -0
- package/dist/components/Combobox/Combobox.module.js +42 -0
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPalette.css +375 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +134 -42
- package/dist/components/CommandPalette/CommandPalette.js +278 -0
- package/dist/components/CommandPalette/CommandPalette.module.js +30 -0
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/Container/Container.css +45 -0
- package/dist/components/Container/Container.d.ts +15 -6
- package/dist/components/Container/Container.js +15 -0
- package/dist/components/Container/Container.module.js +5 -0
- package/dist/components/Container/index.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.css +308 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +131 -38
- package/dist/components/ContextMenu/ContextMenu.js +215 -0
- package/dist/components/ContextMenu/ContextMenu.module.js +33 -0
- package/dist/components/ContextMenu/index.d.ts +1 -2
- package/dist/components/CopyButton/CopyButton.css +14 -0
- package/dist/components/CopyButton/CopyButton.d.ts +14 -13
- package/dist/components/CopyButton/CopyButton.js +66 -0
- package/dist/components/CopyButton/CopyButton.module.js +5 -0
- package/dist/components/CopyButton/index.d.ts +1 -2
- package/dist/components/Dialog/Dialog.css +186 -0
- package/dist/components/Dialog/Dialog.d.ts +68 -18
- package/dist/components/Dialog/Dialog.js +122 -0
- package/dist/components/Dialog/Dialog.module.js +18 -0
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.css +483 -0
- package/dist/components/Drawer/Drawer.d.ts +95 -27
- package/dist/components/Drawer/Drawer.js +182 -0
- package/dist/components/Drawer/Drawer.module.js +24 -0
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Empty/Empty.css +78 -0
- package/dist/components/Empty/Empty.d.ts +31 -9
- package/dist/components/Empty/Empty.js +48 -0
- package/dist/components/Empty/Empty.module.js +12 -0
- package/dist/components/Empty/index.d.ts +1 -1
- package/dist/components/Field/Field.css +86 -0
- package/dist/components/Field/Field.d.ts +30 -9
- package/dist/components/Field/Field.js +50 -0
- package/dist/components/Field/Field.module.js +12 -0
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.css +39 -0
- package/dist/components/Fieldset/Fieldset.d.ts +13 -4
- package/dist/components/Fieldset/Fieldset.js +21 -0
- package/dist/components/Fieldset/Fieldset.module.js +8 -0
- package/dist/components/Fieldset/index.d.ts +1 -1
- package/dist/components/Form/Form.css +9 -0
- package/dist/components/Form/Form.d.ts +6 -3
- package/dist/components/Form/Form.js +16 -0
- package/dist/components/Form/Form.module.js +5 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Heading/Heading.css +50 -0
- package/dist/components/Heading/Heading.d.ts +21 -13
- package/dist/components/Heading/Heading.js +23 -0
- package/dist/components/Heading/Heading.module.js +5 -0
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/Input/Input.css +78 -0
- package/dist/components/Input/Input.d.ts +10 -8
- package/dist/components/Input/Input.js +18 -0
- package/dist/components/Input/Input.module.js +5 -0
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputGroup/InputGroup.css +160 -0
- package/dist/components/InputGroup/InputGroup.d.ts +14 -10
- package/dist/components/InputGroup/InputGroup.js +73 -0
- package/dist/components/InputGroup/InputGroup.module.js +11 -0
- package/dist/components/InputGroup/index.d.ts +1 -1
- package/dist/components/Kbd/Kbd.css +49 -0
- package/dist/components/Kbd/Kbd.d.ts +13 -4
- package/dist/components/Kbd/Kbd.js +20 -0
- package/dist/components/Kbd/Kbd.module.js +8 -0
- package/dist/components/Kbd/index.d.ts +1 -1
- package/dist/components/Lightbox/Lightbox.css +114 -0
- package/dist/components/Lightbox/Lightbox.d.ts +81 -28
- package/dist/components/Lightbox/Lightbox.js +208 -0
- package/dist/components/Lightbox/Lightbox.module.js +14 -0
- package/dist/components/Lightbox/index.d.ts +1 -1
- package/dist/components/List/List.css +114 -0
- package/dist/components/List/List.d.ts +26 -12
- package/dist/components/List/List.js +28 -0
- package/dist/components/List/List.module.js +5 -0
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Menu/Menu.css +377 -0
- package/dist/components/Menu/Menu.d.ts +141 -41
- package/dist/components/Menu/Menu.js +231 -0
- package/dist/components/Menu/Menu.module.js +36 -0
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/Menubar/Menubar.css +387 -0
- package/dist/components/Menubar/Menubar.d.ts +144 -42
- package/dist/components/Menubar/Menubar.js +232 -0
- package/dist/components/Menubar/Menubar.module.js +36 -0
- package/dist/components/Menubar/index.d.ts +1 -2
- package/dist/components/Meter/Meter.css +46 -0
- package/dist/components/Meter/Meter.d.ts +9 -7
- package/dist/components/Meter/Meter.js +55 -0
- package/dist/components/Meter/Meter.module.js +11 -0
- package/dist/components/NavigationMenu/NavigationMenu.css +319 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +81 -22
- package/dist/components/NavigationMenu/NavigationMenu.js +134 -0
- package/dist/components/NavigationMenu/NavigationMenu.module.js +21 -0
- package/dist/components/NavigationMenu/index.d.ts +1 -2
- package/dist/components/NumberField/NumberField.css +158 -0
- package/dist/components/NumberField/NumberField.d.ts +48 -14
- package/dist/components/NumberField/NumberField.js +75 -0
- package/dist/components/NumberField/NumberField.module.js +13 -0
- package/dist/components/NumberField/index.d.ts +1 -2
- package/dist/components/OTPField/OTPField.css +78 -0
- package/dist/components/OTPField/OTPField.d.ts +19 -5
- package/dist/components/OTPField/OTPField.js +39 -0
- package/dist/components/OTPField/OTPField.module.js +9 -0
- package/dist/components/OTPField/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.css +103 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -22
- package/dist/components/Pagination/Pagination.js +116 -0
- package/dist/components/Pagination/Pagination.module.js +16 -0
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.css +19 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +14 -12
- package/dist/components/PasswordInput/PasswordInput.js +47 -0
- package/dist/components/PasswordInput/PasswordInput.module.js +9 -0
- package/dist/components/PasswordInput/index.d.ts +1 -2
- package/dist/components/Popover/Popover.css +200 -0
- package/dist/components/Popover/Popover.d.ts +79 -22
- package/dist/components/Popover/Popover.js +131 -0
- package/dist/components/Popover/Popover.module.js +22 -0
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/PreviewCard/PreviewCard.css +136 -0
- package/dist/components/PreviewCard/PreviewCard.d.ts +51 -15
- package/dist/components/PreviewCard/PreviewCard.js +87 -0
- package/dist/components/PreviewCard/PreviewCard.module.js +16 -0
- package/dist/components/PreviewCard/index.d.ts +1 -1
- package/dist/components/Progress/Progress.css +68 -0
- package/dist/components/Progress/Progress.d.ts +9 -7
- package/dist/components/Progress/Progress.js +55 -0
- package/dist/components/Progress/Progress.module.js +12 -0
- package/dist/components/Radio/Radio.css +141 -0
- package/dist/components/Radio/Radio.d.ts +39 -14
- package/dist/components/Radio/Radio.js +71 -0
- package/dist/components/Radio/Radio.module.js +14 -0
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Rating/Rating.css +79 -0
- package/dist/components/Rating/Rating.d.ts +12 -10
- package/dist/components/Rating/Rating.js +61 -0
- package/dist/components/Rating/Rating.module.js +9 -0
- package/dist/components/Rating/index.d.ts +1 -2
- package/dist/components/ScrollArea/ScrollArea.css +205 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +16 -13
- package/dist/components/ScrollArea/ScrollArea.js +76 -0
- package/dist/components/ScrollArea/ScrollArea.module.js +12 -0
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/Select/Select.css +357 -0
- package/dist/components/Select/Select.d.ts +116 -30
- package/dist/components/Select/Select.js +196 -0
- package/dist/components/Select/Select.module.js +33 -0
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Separator/Separator.css +17 -0
- package/dist/components/Separator/Separator.d.ts +4 -2
- package/dist/components/Separator/Separator.js +16 -0
- package/dist/components/Separator/Separator.module.js +5 -0
- package/dist/components/Skeleton/Skeleton.css +21 -0
- package/dist/components/Skeleton/Skeleton.d.ts +22 -9
- package/dist/components/Skeleton/Skeleton.js +25 -0
- package/dist/components/Skeleton/Skeleton.module.js +5 -0
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.css +115 -0
- package/dist/components/Slider/Slider.d.ts +14 -11
- package/dist/components/Slider/Slider.js +99 -0
- package/dist/components/Slider/Slider.module.js +13 -0
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/SnapCarousel/SnapCarousel.css +131 -0
- package/dist/components/SnapCarousel/SnapCarousel.d.ts +37 -10
- package/dist/components/SnapCarousel/SnapCarousel.js +125 -0
- package/dist/components/SnapCarousel/SnapCarousel.module.js +13 -0
- package/dist/components/SnapCarousel/index.d.ts +1 -2
- package/dist/components/Spinner/Spinner.css +60 -0
- package/dist/components/Spinner/Spinner.d.ts +16 -6
- package/dist/components/Spinner/Spinner.js +28 -0
- package/dist/components/Spinner/Spinner.module.js +9 -0
- package/dist/components/Spinner/index.d.ts +1 -2
- package/dist/components/SplitButton/SplitButton.css +59 -0
- package/dist/components/SplitButton/SplitButton.d.ts +39 -20
- package/dist/components/SplitButton/SplitButton.js +66 -0
- package/dist/components/SplitButton/SplitButton.module.js +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -2
- package/dist/components/Stack/Stack.css +13 -0
- package/dist/components/Stack/Stack.d.ts +27 -13
- package/dist/components/Stack/Stack.js +27 -0
- package/dist/components/Stack/Stack.module.js +5 -0
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.css +174 -0
- package/dist/components/Stepper/Stepper.d.ts +55 -16
- package/dist/components/Stepper/Stepper.js +131 -0
- package/dist/components/Stepper/Stepper.module.js +14 -0
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/Switch/Switch.css +138 -0
- package/dist/components/Switch/Switch.d.ts +21 -9
- package/dist/components/Switch/Switch.js +40 -0
- package/dist/components/Switch/Switch.module.js +10 -0
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Table/Table.css +107 -0
- package/dist/components/Table/Table.d.ts +54 -16
- package/dist/components/Table/Table.js +85 -0
- package/dist/components/Table/Table.module.js +18 -0
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.css +181 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -8
- package/dist/components/Tabs/Tabs.js +66 -0
- package/dist/components/Tabs/Tabs.module.js +11 -0
- package/dist/components/Text/Text.css +73 -0
- package/dist/components/Text/Text.d.ts +20 -9
- package/dist/components/Text/Text.js +42 -0
- package/dist/components/Text/Text.module.js +5 -0
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Textarea/Textarea.css +59 -0
- package/dist/components/Textarea/Textarea.d.ts +7 -5
- package/dist/components/Textarea/Textarea.js +28 -0
- package/dist/components/Textarea/Textarea.module.js +5 -0
- package/dist/components/Textarea/index.d.ts +1 -2
- package/dist/components/Toast/Toast.css +351 -0
- package/dist/components/Toast/Toast.d.ts +79 -38
- package/dist/components/Toast/Toast.js +263 -0
- package/dist/components/Toast/Toast.module.js +26 -0
- package/dist/components/Toast/index.d.ts +1 -2
- package/dist/components/Toggle/Toggle.css +147 -0
- package/dist/components/Toggle/Toggle.d.ts +9 -6
- package/dist/components/Toggle/Toggle.js +18 -0
- package/dist/components/Toggle/Toggle.module.js +5 -0
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.css +42 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +15 -12
- package/dist/components/ToggleGroup/ToggleGroup.js +41 -0
- package/dist/components/ToggleGroup/ToggleGroup.module.js +8 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.css +203 -0
- package/dist/components/Toolbar/Toolbar.d.ts +9 -7
- package/dist/components/Toolbar/Toolbar.js +56 -0
- package/dist/components/Toolbar/Toolbar.module.js +12 -0
- package/dist/components/Tooltip/Tooltip.css +155 -0
- package/dist/components/Tooltip/Tooltip.d.ts +51 -15
- package/dist/components/Tooltip/Tooltip.js +82 -0
- package/dist/components/Tooltip/Tooltip.module.js +15 -0
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/icons/demo/Icons.d.ts +15 -12
- package/dist/icons/demo/Icons.js +225 -0
- package/dist/icons/demo/index.d.ts +1 -1
- package/dist/icons/ui/Icons.d.ts +30 -22
- package/dist/icons/ui/Icons.js +308 -0
- package/dist/icons/ui/index.d.ts +1 -1
- package/dist/index.d.ts +68 -67
- package/dist/index.js +68 -5775
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -0
- package/dist/styles/reset.css +175 -0
- package/dist/styles/style.css +263 -0
- package/dist/utils/mergeClassName.js +8 -0
- package/package.json +11 -10
- package/dist/components/CloseButton/index.d.ts +0 -1
- package/dist/components/Meter/index.d.ts +0 -1
- package/dist/components/Progress/index.d.ts +0 -1
- package/dist/components/Separator/index.d.ts +0 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/data/insideScrollSections.d.ts +0 -4
- package/dist/index.cjs +0 -1
- package/dist/index.css +0 -1
- package/dist/reset.css +0 -334
- package/dist/utils/mergeClassName.d.ts +0 -4
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.YMhIBW_root {
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: var(--number-field-gap, var(--spacing-1));
|
|
5
|
+
width: var(--number-field-width, auto);
|
|
6
|
+
max-width: var(--number-field-max-width, none);
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.YMhIBW_scrubArea {
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--number-field-scrub-area-gap, var(--spacing-2));
|
|
14
|
+
color: var(--number-field-scrub-area-color, var(--color-foreground));
|
|
15
|
+
user-select: none;
|
|
16
|
+
cursor: ew-resize;
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
|
|
19
|
+
&[data-disabled], &[data-readonly] {
|
|
20
|
+
cursor: default;
|
|
21
|
+
opacity: var(--number-field-disabled-opacity, var(--opacity-disabled));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.YMhIBW_scrubAreaCursor {
|
|
26
|
+
width: var(--number-field-scrub-area-cursor-size, 1.5rem);
|
|
27
|
+
height: var(--number-field-scrub-area-cursor-size, 1.5rem);
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
align-items: center;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
|
|
33
|
+
& > svg {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.YMhIBW_group {
|
|
40
|
+
align-items: stretch;
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.YMhIBW_decrement, .YMhIBW_increment {
|
|
45
|
+
--_number-field-focus-ring-width: var(--number-field-focus-ring-width, var(--number-field-border-width, var(--border-width-sm)));
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
width: var(--number-field-control-height, var(--size-lg));
|
|
48
|
+
min-width: var(--number-field-control-height, var(--size-lg));
|
|
49
|
+
height: var(--number-field-control-height, var(--size-lg));
|
|
50
|
+
border: var(--number-field-border-width, var(--border-width-sm))
|
|
51
|
+
var(--number-field-border-style, solid) var(--number-field-border-color, var(--color-border));
|
|
52
|
+
background-color: var(--number-field-button-bg, var(--color-background));
|
|
53
|
+
color: var(--number-field-button-color, var(--color-foreground));
|
|
54
|
+
user-select: none;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
transition: background-color var(--transition-default),
|
|
57
|
+
border-color var(--transition-default),
|
|
58
|
+
color var(--transition-default),
|
|
59
|
+
opacity var(--transition-default);
|
|
60
|
+
outline: 0;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
|
|
67
|
+
@media (hover: hover) {
|
|
68
|
+
&:hover {
|
|
69
|
+
background-color: var(--number-field-button-bg-hover, var(--color-accent));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
background-color: var(--number-field-button-bg-active, var(--number-field-button-bg-hover, var(--color-accent)));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:focus-visible {
|
|
78
|
+
outline: var(--_number-field-focus-ring-width) solid
|
|
79
|
+
var(--number-field-focus-ring-color, var(--color-ring));
|
|
80
|
+
outline-offset: calc(var(--_number-field-focus-ring-width) * -1);
|
|
81
|
+
z-index: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&[data-disabled], &[data-readonly], &:disabled {
|
|
85
|
+
opacity: var(--number-field-disabled-opacity, var(--opacity-disabled));
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&[data-invalid] {
|
|
90
|
+
border-color: var(--number-field-border-color-invalid, var(--color-destructive));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
& > svg {
|
|
94
|
+
width: var(--number-field-icon-size, .875rem);
|
|
95
|
+
height: var(--number-field-icon-size, .875rem);
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.YMhIBW_decrement {
|
|
101
|
+
border-radius: var(--number-field-radius, var(--radius-md)) 0 0
|
|
102
|
+
var(--number-field-radius, var(--radius-md));
|
|
103
|
+
border-right: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.YMhIBW_increment {
|
|
107
|
+
border-radius: 0 var(--number-field-radius, var(--radius-md))
|
|
108
|
+
var(--number-field-radius, var(--radius-md)) 0;
|
|
109
|
+
border-left: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.YMhIBW_input {
|
|
113
|
+
--_number-field-focus-ring-width: var(--number-field-focus-ring-width, var(--number-field-border-width, var(--border-width-sm)));
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
width: var(--number-field-input-width, 6rem);
|
|
116
|
+
height: var(--number-field-control-height, var(--size-lg));
|
|
117
|
+
border-top: var(--number-field-border-width, var(--border-width-sm))
|
|
118
|
+
var(--number-field-border-style, solid) var(--number-field-border-color, var(--color-border));
|
|
119
|
+
border-bottom: var(--number-field-border-width, var(--border-width-sm))
|
|
120
|
+
var(--number-field-border-style, solid) var(--number-field-border-color, var(--color-border));
|
|
121
|
+
padding: var(--number-field-input-padding-y, .5rem)
|
|
122
|
+
var(--number-field-input-padding-x, .75rem);
|
|
123
|
+
background-color: var(--number-field-input-bg, var(--color-background));
|
|
124
|
+
color: var(--number-field-input-color, var(--color-foreground));
|
|
125
|
+
font: inherit;
|
|
126
|
+
font-size: var(--number-field-input-font-size, var(--text-md));
|
|
127
|
+
line-height: var(--number-field-input-line-height, var(--line-height-text-md));
|
|
128
|
+
text-align: center;
|
|
129
|
+
font-variant-numeric: tabular-nums;
|
|
130
|
+
outline: var(--_number-field-focus-ring-width) solid transparent;
|
|
131
|
+
outline-offset: calc(var(--_number-field-focus-ring-width) * -1);
|
|
132
|
+
transition: border-color var(--transition-default),
|
|
133
|
+
outline-color var(--transition-default),
|
|
134
|
+
opacity var(--transition-default);
|
|
135
|
+
border-left: 0;
|
|
136
|
+
border-right: 0;
|
|
137
|
+
border-radius: 0;
|
|
138
|
+
margin: 0;
|
|
139
|
+
|
|
140
|
+
&:focus-visible {
|
|
141
|
+
outline-color: var(--number-field-focus-ring-color, var(--color-ring));
|
|
142
|
+
z-index: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&[data-invalid] {
|
|
146
|
+
border-top-color: var(--number-field-border-color-invalid, var(--color-destructive));
|
|
147
|
+
border-bottom-color: var(--number-field-border-color-invalid, var(--color-destructive));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&[data-invalid]:focus-visible {
|
|
151
|
+
outline-color: var(--number-field-border-color-invalid, var(--color-destructive));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&[data-disabled], &[data-readonly] {
|
|
155
|
+
opacity: var(--number-field-disabled-opacity, var(--opacity-disabled));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -1,15 +1,49 @@
|
|
|
1
|
-
import { NumberField
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NumberField } from "@base-ui/react/number-field";
|
|
2
|
+
|
|
3
|
+
//#region src/components/NumberField/NumberField.d.ts
|
|
4
|
+
type NumberFieldProps = NumberField.Root.Props & {
|
|
5
|
+
decrementLabel?: string;
|
|
6
|
+
incrementLabel?: string;
|
|
5
7
|
};
|
|
6
|
-
declare function NumberFieldRoot({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
declare function NumberFieldRoot({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: NumberField.Root.Props): import("react").JSX.Element;
|
|
12
|
+
declare function NumberField$1({
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
decrementLabel,
|
|
16
|
+
incrementLabel,
|
|
17
|
+
...props
|
|
18
|
+
}: NumberFieldProps): import("react").JSX.Element;
|
|
19
|
+
declare function NumberFieldScrubArea({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: NumberField.ScrubArea.Props): import("react").JSX.Element;
|
|
23
|
+
declare function NumberFieldScrubAreaCursor({
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}: NumberField.ScrubAreaCursor.Props): import("react").JSX.Element;
|
|
28
|
+
declare function NumberFieldGroup({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: NumberField.Group.Props): import("react").JSX.Element;
|
|
32
|
+
declare function NumberFieldDecrement({
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
'aria-label': ariaLabel,
|
|
36
|
+
...props
|
|
37
|
+
}: NumberField.Decrement.Props): import("react").JSX.Element;
|
|
38
|
+
declare function NumberFieldInput({
|
|
39
|
+
className,
|
|
40
|
+
...props
|
|
41
|
+
}: NumberField.Input.Props): import("react").JSX.Element;
|
|
42
|
+
declare function NumberFieldIncrement({
|
|
43
|
+
className,
|
|
44
|
+
children,
|
|
45
|
+
'aria-label': ariaLabel,
|
|
46
|
+
...props
|
|
47
|
+
}: NumberField.Increment.Props): import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { NumberField$1 as NumberField, NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, type NumberFieldProps, NumberFieldRoot, NumberFieldScrubArea, NumberFieldScrubAreaCursor };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { MinusIcon, PlusIcon, ScrubCursorIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
3
|
+
import NumberField_module_default from "./NumberField.module.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { NumberField } from "@base-ui/react/number-field";
|
|
6
|
+
//#region src/components/NumberField/NumberField.tsx
|
|
7
|
+
const DEFAULT_DECREMENT_LABEL = "Decrease value";
|
|
8
|
+
const DEFAULT_INCREMENT_LABEL = "Increase value";
|
|
9
|
+
function NumberFieldRoot({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(NumberField.Root, {
|
|
11
|
+
"data-slot": "number-field-root",
|
|
12
|
+
className: mergeClassName(className, NumberField_module_default.root),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function NumberField$1({ className, children, decrementLabel = DEFAULT_DECREMENT_LABEL, incrementLabel = DEFAULT_INCREMENT_LABEL, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsxs(NumberFieldRoot, {
|
|
18
|
+
className,
|
|
19
|
+
...props,
|
|
20
|
+
children: [children, /* @__PURE__ */ jsxs(NumberFieldGroup, { children: [
|
|
21
|
+
/* @__PURE__ */ jsx(NumberFieldDecrement, { "aria-label": decrementLabel }),
|
|
22
|
+
/* @__PURE__ */ jsx(NumberFieldInput, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(NumberFieldIncrement, { "aria-label": incrementLabel })
|
|
24
|
+
] })]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function NumberFieldScrubArea({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(NumberField.ScrubArea, {
|
|
29
|
+
"data-slot": "number-field-scrub-area",
|
|
30
|
+
className: mergeClassName(className, NumberField_module_default.scrubArea),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function NumberFieldScrubAreaCursor({ className, children, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsx(NumberField.ScrubAreaCursor, {
|
|
36
|
+
"data-slot": "number-field-scrub-area-cursor",
|
|
37
|
+
className: mergeClassName(className, NumberField_module_default.scrubAreaCursor),
|
|
38
|
+
...props,
|
|
39
|
+
children: children ?? /* @__PURE__ */ jsx(ScrubCursorIcon, {})
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function NumberFieldGroup({ className, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ jsx(NumberField.Group, {
|
|
44
|
+
"data-slot": "number-field-group",
|
|
45
|
+
className: mergeClassName(className, NumberField_module_default.group),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function NumberFieldDecrement({ className, children, "aria-label": ariaLabel = DEFAULT_DECREMENT_LABEL, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsx(NumberField.Decrement, {
|
|
51
|
+
"data-slot": "number-field-decrement",
|
|
52
|
+
"aria-label": ariaLabel,
|
|
53
|
+
className: mergeClassName(className, NumberField_module_default.decrement),
|
|
54
|
+
...props,
|
|
55
|
+
children: children ?? /* @__PURE__ */ jsx(MinusIcon, {})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function NumberFieldInput({ className, ...props }) {
|
|
59
|
+
return /* @__PURE__ */ jsx(NumberField.Input, {
|
|
60
|
+
"data-slot": "number-field-input",
|
|
61
|
+
className: mergeClassName(className, NumberField_module_default.input),
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function NumberFieldIncrement({ className, children, "aria-label": ariaLabel = DEFAULT_INCREMENT_LABEL, ...props }) {
|
|
66
|
+
return /* @__PURE__ */ jsx(NumberField.Increment, {
|
|
67
|
+
"data-slot": "number-field-increment",
|
|
68
|
+
"aria-label": ariaLabel,
|
|
69
|
+
className: mergeClassName(className, NumberField_module_default.increment),
|
|
70
|
+
...props,
|
|
71
|
+
children: children ?? /* @__PURE__ */ jsx(PlusIcon, {})
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { NumberField$1 as NumberField, NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldRoot, NumberFieldScrubArea, NumberFieldScrubAreaCursor };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './NumberField.css';
|
|
2
|
+
//#region src/components/NumberField/NumberField.module.css
|
|
3
|
+
var NumberField_module_default = {
|
|
4
|
+
"decrement": "YMhIBW_decrement",
|
|
5
|
+
"group": "YMhIBW_group",
|
|
6
|
+
"increment": "YMhIBW_increment",
|
|
7
|
+
"input": "YMhIBW_input",
|
|
8
|
+
"root": "YMhIBW_root",
|
|
9
|
+
"scrubArea": "YMhIBW_scrubArea",
|
|
10
|
+
"scrubAreaCursor": "YMhIBW_scrubAreaCursor"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { NumberField_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type { NumberFieldProps } from './NumberField';
|
|
1
|
+
import { NumberField, NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldProps, NumberFieldRoot, NumberFieldScrubArea, NumberFieldScrubAreaCursor } from "./NumberField.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.aEYTXG_root {
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--otp-field-gap, var(--spacing-2));
|
|
5
|
+
width: var(--otp-field-width, auto);
|
|
6
|
+
max-width: var(--otp-field-max-width, none);
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
|
|
9
|
+
&[data-disabled], &[data-readonly] {
|
|
10
|
+
opacity: var(--otp-field-disabled-opacity, var(--opacity-disabled));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.aEYTXG_input {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
width: var(--otp-field-input-width, var(--otp-field-input-size, 2.5rem));
|
|
17
|
+
min-width: var(--otp-field-input-width, var(--otp-field-input-size, 2.5rem));
|
|
18
|
+
height: var(--otp-field-input-height, var(--otp-field-input-size, 2.5rem));
|
|
19
|
+
border: var(--otp-field-border-width, var(--border-width-sm)) solid
|
|
20
|
+
var(--otp-field-border-color, var(--color-border));
|
|
21
|
+
border-radius: var(--otp-field-radius, var(--radius-md));
|
|
22
|
+
padding-block: var(--otp-field-input-padding-y, 0);
|
|
23
|
+
padding-inline: var(--otp-field-input-padding-x, 0);
|
|
24
|
+
background-color: var(--otp-field-bg, var(--color-background));
|
|
25
|
+
color: var(--otp-field-color, var(--color-foreground));
|
|
26
|
+
font: inherit;
|
|
27
|
+
font-size: var(--otp-field-font-size, var(--text-lg));
|
|
28
|
+
font-weight: var(--otp-field-font-weight, var(--weight-medium));
|
|
29
|
+
line-height: var(--otp-field-line-height, var(--line-height-text-lg));
|
|
30
|
+
text-align: center;
|
|
31
|
+
font-variant-numeric: tabular-nums;
|
|
32
|
+
outline: var(--otp-field-focus-ring-width, var(--otp-field-border-width, var(--border-width-sm)))
|
|
33
|
+
solid transparent;
|
|
34
|
+
outline-offset: var(--otp-field-focus-ring-offset, -1px);
|
|
35
|
+
transition: border-color var(--otp-field-transition, var(--transition-default)),
|
|
36
|
+
outline-color var(--otp-field-transition, var(--transition-default)),
|
|
37
|
+
background-color var(--otp-field-transition, var(--transition-default));
|
|
38
|
+
margin: 0;
|
|
39
|
+
|
|
40
|
+
&::placeholder {
|
|
41
|
+
color: var(--otp-field-placeholder-color, var(--color-muted-foreground));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:focus-visible {
|
|
45
|
+
outline-color: var(--otp-field-focus-ring-color, var(--color-ring));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-filled] {
|
|
49
|
+
background-color: var(--otp-field-bg-filled, var(--otp-field-bg, var(--color-background)));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-invalid] {
|
|
53
|
+
border-color: var(--otp-field-border-color-invalid, var(--color-destructive));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[data-invalid]:focus-visible {
|
|
57
|
+
outline-color: var(--otp-field-border-color-invalid, var(--color-destructive));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-complete][data-filled] {
|
|
61
|
+
border-color: var(--otp-field-border-color-complete, var(--otp-field-border-color, var(--color-border)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[data-disabled], &[data-readonly] {
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.aEYTXG_separator {
|
|
70
|
+
width: var(--otp-field-separator-width, var(--otp-field-separator-size, 1rem));
|
|
71
|
+
height: var(--otp-field-separator-height, var(--otp-field-separator-size, 1rem));
|
|
72
|
+
color: var(--otp-field-separator-color, var(--color-muted-foreground));
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import { OTPFieldPreview
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function
|
|
5
|
-
|
|
1
|
+
import { OTPFieldPreview } from "@base-ui/react/otp-field";
|
|
2
|
+
|
|
3
|
+
//#region src/components/OTPField/OTPField.d.ts
|
|
4
|
+
declare function OTPField({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
length,
|
|
8
|
+
...props
|
|
9
|
+
}: OTPFieldPreview.Root.Props): import("react").JSX.Element;
|
|
10
|
+
declare function OTPFieldInput({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: OTPFieldPreview.Input.Props): import("react").JSX.Element;
|
|
14
|
+
declare function OTPFieldSeparator({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: OTPFieldPreview.Separator.Props): import("react").JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { OTPField, OTPFieldInput, OTPFieldSeparator };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
2
|
+
import OTPField_module_default from "./OTPField.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { OTPFieldPreview } from "@base-ui/react/otp-field";
|
|
5
|
+
//#region src/components/OTPField/OTPField.tsx
|
|
6
|
+
function OTPField({ children, className, length, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(OTPFieldPreview.Root, {
|
|
8
|
+
"data-slot": "otp-field-root",
|
|
9
|
+
className: mergeClassName(className, OTPField_module_default.root),
|
|
10
|
+
length,
|
|
11
|
+
...props,
|
|
12
|
+
children: children ?? renderDefaultInputs(length)
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function OTPFieldInput({ className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(OTPFieldPreview.Input, {
|
|
17
|
+
"data-slot": "otp-field-input",
|
|
18
|
+
className: mergeClassName(className, OTPField_module_default.input),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function OTPFieldSeparator({ className, ...props }) {
|
|
23
|
+
const { "aria-hidden": ariaHidden = true, role = "presentation", ...separatorProps } = props;
|
|
24
|
+
return /* @__PURE__ */ jsx(OTPFieldPreview.Separator, {
|
|
25
|
+
"data-slot": "otp-field-separator",
|
|
26
|
+
"aria-hidden": ariaHidden,
|
|
27
|
+
role,
|
|
28
|
+
className: mergeClassName(className, OTPField_module_default.separator),
|
|
29
|
+
...separatorProps
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function getCharacterAriaLabel(index, length) {
|
|
33
|
+
return index === 0 ? void 0 : `Character ${index + 1} of ${length}`;
|
|
34
|
+
}
|
|
35
|
+
function renderDefaultInputs(length) {
|
|
36
|
+
return Array.from({ length }, (_, index) => /* @__PURE__ */ jsx(OTPFieldInput, { "aria-label": getCharacterAriaLabel(index, length) }, index));
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { OTPField, OTPFieldInput, OTPFieldSeparator };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './OTPField.css';
|
|
2
|
+
//#region src/components/OTPField/OTPField.module.css
|
|
3
|
+
var OTPField_module_default = {
|
|
4
|
+
"input": "aEYTXG_input",
|
|
5
|
+
"root": "aEYTXG_root",
|
|
6
|
+
"separator": "aEYTXG_separator"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { OTPField_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { OTPField, OTPFieldInput, OTPFieldSeparator } from "./OTPField.js";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.Etg_Eq_root {
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.Etg_Eq_content {
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--pagination-gap, var(--spacing-1));
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.Etg_Eq_item {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.Etg_Eq_link, .Etg_Eq_ellipsis {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-width: var(--pagination-item-size, var(--size-lg));
|
|
19
|
+
min-height: var(--pagination-item-size, var(--size-lg));
|
|
20
|
+
border-radius: var(--pagination-item-radius, var(--radius-md));
|
|
21
|
+
font-size: var(--pagination-font-size, var(--text-sm));
|
|
22
|
+
font-weight: var(--pagination-font-weight, var(--weight-medium));
|
|
23
|
+
line-height: var(--pagination-line-height, var(--line-height-text-sm));
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.Etg_Eq_link {
|
|
30
|
+
gap: var(--spacing-2);
|
|
31
|
+
border: var(--border-width-sm) solid var(--pagination-item-border-color, var(--color-border));
|
|
32
|
+
padding-inline: var(--pagination-item-padding-inline, .75rem);
|
|
33
|
+
background-color: var(--pagination-item-bg, var(--color-background));
|
|
34
|
+
color: var(--pagination-item-color, var(--color-foreground));
|
|
35
|
+
user-select: none;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
transition: background-color var(--transition-default),
|
|
38
|
+
border-color var(--transition-default),
|
|
39
|
+
color var(--transition-default),
|
|
40
|
+
opacity var(--transition-default);
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
|
|
43
|
+
@media (hover: hover) {
|
|
44
|
+
&:hover {
|
|
45
|
+
background-color: var(--pagination-item-bg-hover, var(--color-accent));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:focus-visible {
|
|
50
|
+
outline: var(--border-width-md) solid var(--color-ring);
|
|
51
|
+
outline-offset: -1px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[aria-disabled="true"], &[data-disabled], &[disabled] {
|
|
55
|
+
opacity: var(--pagination-disabled-opacity, var(--opacity-disabled));
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
& :where(svg) {
|
|
60
|
+
width: var(--pagination-icon-size, 1rem);
|
|
61
|
+
height: var(--pagination-icon-size, 1rem);
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.Etg_Eq_linkActive, .Etg_Eq_link[aria-current="page"] {
|
|
67
|
+
border-color: var(--pagination-item-border-color-active, var(--color-foreground));
|
|
68
|
+
background-color: var(--pagination-item-bg-active, var(--color-foreground));
|
|
69
|
+
color: var(--pagination-item-color-active, var(--color-background));
|
|
70
|
+
|
|
71
|
+
@media (hover: hover) {
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: var(--pagination-item-bg-active, var(--color-foreground));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.Etg_Eq_previous, .Etg_Eq_next {
|
|
79
|
+
padding-inline: max(var(--pagination-item-padding-inline, .75rem), var(--spacing-3));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.Etg_Eq_iconOnly {
|
|
83
|
+
width: var(--pagination-item-size, var(--size-lg));
|
|
84
|
+
padding-inline: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.Etg_Eq_ellipsis {
|
|
88
|
+
color: var(--pagination-ellipsis-color, var(--color-muted-foreground));
|
|
89
|
+
user-select: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.Etg_Eq_visuallyHidden {
|
|
93
|
+
clip: rect(0 0 0 0);
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
border: 0;
|
|
96
|
+
width: 1px;
|
|
97
|
+
height: 1px;
|
|
98
|
+
margin: -1px;
|
|
99
|
+
padding: 0;
|
|
100
|
+
position: absolute;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -1,25 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Toolbar } from "@base-ui/react/toolbar";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Pagination/Pagination.d.ts
|
|
5
|
+
declare function usePagination({
|
|
6
|
+
count,
|
|
7
|
+
page,
|
|
8
|
+
siblingCount,
|
|
9
|
+
boundaryCount
|
|
10
|
+
}: {
|
|
11
|
+
count: number;
|
|
12
|
+
page: number;
|
|
13
|
+
siblingCount?: number;
|
|
14
|
+
boundaryCount?: number;
|
|
8
15
|
}): {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
items: (number | "ellipsis-start" | "ellipsis-end")[];
|
|
17
|
+
page: number;
|
|
18
|
+
canNextPage: boolean;
|
|
19
|
+
canPreviousPage: boolean;
|
|
20
|
+
nextPage: number;
|
|
21
|
+
previousPage: number;
|
|
15
22
|
};
|
|
16
|
-
declare function Pagination({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
declare function Pagination({
|
|
24
|
+
'aria-label': ariaLabel,
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: ComponentProps<'nav'>): import("react").JSX.Element;
|
|
28
|
+
declare function PaginationContent({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: Toolbar.Root.Props): import("react").JSX.Element;
|
|
32
|
+
declare function PaginationItem({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
36
|
+
declare function PaginationLink({
|
|
37
|
+
className,
|
|
38
|
+
isActive,
|
|
39
|
+
render,
|
|
40
|
+
...props
|
|
41
|
+
}: Toolbar.Link.Props & {
|
|
42
|
+
isActive?: boolean;
|
|
21
43
|
}): import("react").JSX.Element;
|
|
22
|
-
declare function PaginationPrevious({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
44
|
+
declare function PaginationPrevious({
|
|
45
|
+
children,
|
|
46
|
+
className,
|
|
47
|
+
render,
|
|
48
|
+
'aria-label': ariaLabel,
|
|
49
|
+
...props
|
|
50
|
+
}: Toolbar.Link.Props): import("react").JSX.Element;
|
|
51
|
+
declare function PaginationNext({
|
|
52
|
+
children,
|
|
53
|
+
className,
|
|
54
|
+
render,
|
|
55
|
+
'aria-label': ariaLabel,
|
|
56
|
+
...props
|
|
57
|
+
}: Toolbar.Link.Props): import("react").JSX.Element;
|
|
58
|
+
declare function PaginationEllipsis({
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, usePagination };
|