@moduix/react 1.1.0 → 2.0.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/README.md +16 -16
- package/dist/components/accordion/Accordion.css +21 -14
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +10 -9
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +24 -10
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +6 -5
- package/dist/components/angle-slider/AngleSlider.css +8 -8
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/AngleSlider.module.js +7 -7
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +4 -2
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/aspect-ratio/AspectRatio.module.js +1 -1
- package/dist/components/avatar/Avatar.css +3 -3
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/Avatar.module.js +3 -3
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +46 -3
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/Badge.module.js +2 -2
- package/dist/components/bleed/Bleed.css +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/bleed/Bleed.module.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.css +17 -11
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +8 -7
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +22 -2
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/button/Button.module.js +1 -1
- package/dist/components/card/Card.css +29 -13
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +9 -8
- package/dist/components/carousel/Carousel.css +20 -18
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/carousel/Carousel.module.js +12 -12
- package/dist/components/checkbox/Checkbox.css +11 -11
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/Checkbox.module.js +6 -6
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +8 -8
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/clipboard/Clipboard.module.js +8 -8
- package/dist/components/close-button/CloseButton.css +1 -1
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/close-button/CloseButton.module.js +1 -1
- package/dist/components/collapsible/Collapsible.css +17 -10
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +7 -6
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -34
- package/dist/components/color-picker/ColorPicker.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.js +78 -27
- package/dist/components/color-picker/ColorPicker.module.js +28 -27
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +55 -26
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/Combobox.module.js +17 -17
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +80 -114
- package/dist/components/command-palette/CommandPalette.d.ts +13 -3
- package/dist/components/command-palette/CommandPalette.js +54 -43
- package/dist/components/command-palette/CommandPalette.module.js +35 -37
- package/dist/components/container/Container.css +1 -1
- package/dist/components/container/Container.js +1 -1
- package/dist/components/container/Container.module.js +1 -1
- package/dist/components/date-input/DateInput.css +9 -7
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/DateInput.module.js +6 -6
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +68 -40
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/DatePicker.module.js +23 -23
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +31 -27
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/Dialog.module.js +15 -15
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +40 -40
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.module.js +26 -26
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +10 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/Editable.module.js +7 -7
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +6 -6
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.module.js +6 -6
- package/dist/components/field/Field.css +8 -12
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +8 -9
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.css +6 -6
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/Fieldset.module.js +4 -4
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +97 -24
- package/dist/components/file-upload/FileUpload.d.ts +22 -5
- package/dist/components/file-upload/FileUpload.js +79 -21
- package/dist/components/file-upload/FileUpload.module.js +16 -13
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +28 -24
- package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/floating-panel/FloatingPanel.module.js +14 -14
- package/dist/components/heading/Heading.css +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.module.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/Highlight.module.js +1 -1
- package/dist/components/hover-card/HoverCard.css +21 -17
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/HoverCard.module.js +7 -7
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/image/Image.css +7 -0
- package/dist/components/image/Image.d.ts +12 -0
- package/dist/components/image/Image.js +28 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +6 -6
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/ImageCropper.module.js +6 -6
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +1 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.module.js +1 -1
- package/dist/components/input-group/InputGroup.css +6 -6
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/input-group/InputGroup.module.js +5 -5
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/kbd/Kbd.module.js +2 -2
- package/dist/components/lightbox/Lightbox.css +30 -28
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/Lightbox.module.js +16 -16
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.css +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/List.module.js +1 -1
- package/dist/components/listbox/Listbox.css +76 -17
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +17 -14
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.css +10 -10
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/Marquee.module.js +7 -7
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +46 -40
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/Menu.module.js +27 -27
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +5 -5
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/native-select/NativeSelect.module.js +3 -3
- package/dist/components/number-input/NumberInput.css +11 -17
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/NumberInput.module.js +8 -8
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +8 -8
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/pagination/Pagination.module.js +6 -6
- package/dist/components/password-input/PasswordInput.css +7 -7
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/password-input/PasswordInput.module.js +6 -6
- package/dist/components/pin-input/PinInput.css +5 -5
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/pin-input/PinInput.module.js +5 -5
- package/dist/components/popover/Popover.css +33 -24
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/Popover.module.js +14 -14
- package/dist/components/progress-circular/ProgressCircular.css +8 -8
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-circular/ProgressCircular.module.js +8 -8
- package/dist/components/progress-linear/ProgressLinear.css +8 -8
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/progress-linear/ProgressLinear.module.js +8 -8
- package/dist/components/qr-code/QrCode.css +13 -12
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/QrCode.module.js +5 -5
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +6 -6
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/RadioGroup.module.js +6 -6
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +14 -14
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/RatingGroup.module.js +7 -7
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +14 -9
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/scroll-area/ScrollArea.module.js +6 -6
- package/dist/components/segment-group/SegmentGroup.css +6 -6
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/SegmentGroup.module.js +6 -6
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +49 -40
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/select/Select.module.js +21 -21
- package/dist/components/separator/Separator.css +1 -1
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/separator/Separator.module.js +1 -1
- package/dist/components/sidebar/Sidebar.css +169 -32
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +23 -17
- package/dist/components/signature-pad/SignaturePad.css +18 -47
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/SignaturePad.module.js +6 -6
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.css +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.module.js +1 -1
- package/dist/components/slider/Slider.css +16 -14
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/Slider.module.js +10 -10
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +9 -9
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/spinner/Spinner.module.js +3 -3
- package/dist/components/split-button/SplitButton.css +9 -9
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/split-button/SplitButton.module.js +3 -3
- package/dist/components/splitter/Splitter.css +27 -22
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/Splitter.module.js +4 -4
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.css +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/stack/Stack.module.js +1 -1
- package/dist/components/steps/Steps.css +14 -14
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/steps/Steps.module.js +11 -11
- package/dist/components/swap/Swap.css +45 -0
- package/dist/components/swap/Swap.d.ts +11 -0
- package/dist/components/swap/Swap.js +39 -0
- package/dist/components/swap/Swap.module.js +11 -0
- package/dist/components/swap/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +11 -11
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/Switch.module.js +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +18 -18
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +11 -12
- package/dist/components/tabs/Tabs.css +12 -10
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/Tabs.module.js +5 -5
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +16 -46
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tag/Tag.module.js +5 -5
- package/dist/components/tags-input/TagsInput.css +13 -50
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/TagsInput.module.js +10 -10
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.css +1 -1
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.module.js +1 -1
- package/dist/components/textarea/Textarea.css +7 -7
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.module.js +1 -1
- package/dist/components/timer/Timer.css +6 -6
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/Timer.module.js +6 -6
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +8 -8
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toast/Toast.module.js +6 -6
- package/dist/components/toggle/Toggle.css +5 -5
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/Toggle.module.js +2 -2
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.css +3 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/ToggleGroup.module.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +21 -17
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/Tooltip.module.js +7 -7
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +42 -37
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tour/Tour.module.js +17 -17
- package/dist/components/tree-view/TreeView.css +22 -22
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/TreeView.module.js +20 -20
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/index.d.ts +40 -39
- package/dist/index.js +40 -39
- package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
- package/dist/lib/moduix/icons/ui/Icons.js +36 -263
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
- package/dist/lib/moduix/overlayPortal.js +1 -1
- package/package.json +4 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './NumberInput.css';
|
|
2
2
|
//#region src/components/number-input/NumberInput.module.css
|
|
3
3
|
var NumberInput_module_default = {
|
|
4
|
-
"control": "
|
|
5
|
-
"decrementTrigger": "
|
|
6
|
-
"incrementTrigger": "
|
|
7
|
-
"input": "
|
|
8
|
-
"label": "
|
|
9
|
-
"root": "
|
|
10
|
-
"scrubber": "
|
|
11
|
-
"valueText": "
|
|
4
|
+
"control": "ZjEX8G_control",
|
|
5
|
+
"decrementTrigger": "ZjEX8G_decrementTrigger",
|
|
6
|
+
"incrementTrigger": "ZjEX8G_incrementTrigger",
|
|
7
|
+
"input": "ZjEX8G_input",
|
|
8
|
+
"label": "ZjEX8G_label",
|
|
9
|
+
"root": "ZjEX8G_root",
|
|
10
|
+
"scrubber": "ZjEX8G_scrubber",
|
|
11
|
+
"valueText": "ZjEX8G_valueText"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { NumberInput_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NumberInput } from "./NumberInput.js";
|
|
2
|
-
export { NumberInput };
|
|
1
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "./NumberInput.js";
|
|
2
|
+
export { NumberInput, useNumberInput, useNumberInputContext };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.djsvna_root {
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--pagination-gap, var(--spacing-1));
|
|
5
5
|
color: var(--pagination-color, var(--color-foreground));
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
.djsvna_item, .djsvna_trigger, .djsvna_ellipsis {
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
min-width: var(--pagination-item-size, var(--size-lg));
|
|
12
12
|
height: var(--pagination-item-size, var(--size-lg));
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.djsvna_item, .djsvna_trigger {
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
gap: var(--pagination-trigger-gap, var(--spacing-2));
|
|
26
26
|
border: var(--pagination-item-border-width, var(--border-width-sm)) solid
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.
|
|
64
|
+
.djsvna_item[data-selected] {
|
|
65
65
|
border-color: var(--pagination-item-border-color-selected, var(--color-foreground));
|
|
66
66
|
background-color: var(--pagination-item-bg-selected, var(--color-foreground));
|
|
67
67
|
color: var(--pagination-item-color-selected, var(--color-background));
|
|
@@ -73,21 +73,21 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.
|
|
76
|
+
.djsvna_trigger {
|
|
77
77
|
padding-inline: max(var(--pagination-item-padding-inline, .75rem), var(--spacing-3));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
.djsvna_iconTrigger {
|
|
81
81
|
width: var(--pagination-item-size, var(--size-lg));
|
|
82
82
|
padding-inline: 0;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.
|
|
85
|
+
.djsvna_ellipsis {
|
|
86
86
|
color: var(--pagination-ellipsis-color, var(--color-muted-foreground));
|
|
87
87
|
user-select: none;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
.djsvna_edgeIcon {
|
|
91
91
|
justify-content: center;
|
|
92
92
|
align-items: center;
|
|
93
93
|
display: inline-flex;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Pagination } from "@ark-ui/react/pagination";
|
|
2
2
|
|
|
3
3
|
//#region src/components/pagination/Pagination.d.ts
|
|
4
|
+
declare function PaginationItems(): import("react").JSX.Element;
|
|
4
5
|
declare const Pagination$1: import("react").ForwardRefExoticComponent<Omit<Pagination.RootProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>> & {
|
|
5
6
|
Root: import("react").ForwardRefExoticComponent<Omit<Pagination.RootProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
6
7
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<Pagination.RootProviderProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -11,6 +12,9 @@ declare const Pagination$1: import("react").ForwardRefExoticComponent<Omit<Pagin
|
|
|
11
12
|
FirstTrigger: import("react").ForwardRefExoticComponent<Omit<Pagination.FirstTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
13
|
LastTrigger: import("react").ForwardRefExoticComponent<Omit<Pagination.LastTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
14
|
Context: (props: Pagination.ContextProps) => import("react").ReactNode;
|
|
15
|
+
Items: typeof PaginationItems;
|
|
16
|
+
usePagination: (props?: import("@ark-ui/react/pagination").UsePaginationProps) => import("@ark-ui/react/pagination").UsePaginationReturn;
|
|
17
|
+
usePaginationContext: () => import("@ark-ui/react/pagination").UsePaginationContext;
|
|
14
18
|
};
|
|
15
19
|
//#endregion
|
|
16
20
|
export { Pagination$1 as Pagination };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import Pagination_module_default from "./Pagination.module.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Pagination, usePagination, usePaginationContext } from "@ark-ui/react/pagination";
|
|
8
8
|
//#region src/components/pagination/Pagination.tsx
|
|
9
9
|
const PaginationRoot = forwardRef(function PaginationRoot({ "aria-label": ariaLabel = "Pagination", className, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(Pagination.Root, {
|
|
@@ -86,6 +86,12 @@ const PaginationLastTrigger = forwardRef(function PaginationLastTrigger({ classN
|
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
const PaginationContext = Pagination.Context;
|
|
89
|
+
function PaginationItems() {
|
|
90
|
+
return /* @__PURE__ */ jsx(PaginationContext, { children: (pagination) => pagination.pages.map((page, index) => page.type === "page" ? /* @__PURE__ */ jsx(PaginationItem, {
|
|
91
|
+
...page,
|
|
92
|
+
children: page.value
|
|
93
|
+
}, index) : /* @__PURE__ */ jsx(PaginationEllipsis, { index }, index)) });
|
|
94
|
+
}
|
|
89
95
|
const Pagination$1 = Object.assign(PaginationRoot, {
|
|
90
96
|
Root: PaginationRoot,
|
|
91
97
|
RootProvider: PaginationRootProvider,
|
|
@@ -95,7 +101,10 @@ const Pagination$1 = Object.assign(PaginationRoot, {
|
|
|
95
101
|
NextTrigger: PaginationNextTrigger,
|
|
96
102
|
FirstTrigger: PaginationFirstTrigger,
|
|
97
103
|
LastTrigger: PaginationLastTrigger,
|
|
98
|
-
Context: PaginationContext
|
|
104
|
+
Context: PaginationContext,
|
|
105
|
+
Items: PaginationItems,
|
|
106
|
+
usePagination,
|
|
107
|
+
usePaginationContext
|
|
99
108
|
});
|
|
100
109
|
//#endregion
|
|
101
110
|
export { Pagination$1 as Pagination };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './Pagination.css';
|
|
2
2
|
//#region src/components/pagination/Pagination.module.css
|
|
3
3
|
var Pagination_module_default = {
|
|
4
|
-
"edgeIcon": "
|
|
5
|
-
"ellipsis": "
|
|
6
|
-
"iconTrigger": "
|
|
7
|
-
"item": "
|
|
8
|
-
"root": "
|
|
9
|
-
"trigger": "
|
|
4
|
+
"edgeIcon": "djsvna_edgeIcon",
|
|
5
|
+
"ellipsis": "djsvna_ellipsis",
|
|
6
|
+
"iconTrigger": "djsvna_iconTrigger",
|
|
7
|
+
"item": "djsvna_item",
|
|
8
|
+
"root": "djsvna_root",
|
|
9
|
+
"trigger": "djsvna_trigger"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Pagination_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
._8wEG0G_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
gap: var(--password-input-gap, var(--field-gap, var(--spacing-1)));
|
|
5
5
|
width: var(--password-input-width, 100%);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
._8wEG0G_label {
|
|
17
17
|
align-items: center;
|
|
18
18
|
gap: var(--password-input-label-gap, var(--field-label-gap, var(--spacing-1)));
|
|
19
19
|
color: var(--password-input-label-color, var(--field-label-color, var(--color-foreground)));
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
._8wEG0G_control {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
width: 100%;
|
|
33
33
|
min-height: var(--password-input-height, var(--input-height, var(--input-height-md, var(--size-lg))));
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
._8wEG0G_input {
|
|
72
72
|
box-sizing: border-box;
|
|
73
73
|
min-width: 0;
|
|
74
74
|
min-height: 0;
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.
|
|
103
|
+
._8wEG0G_visibilityTrigger {
|
|
104
104
|
width: var(--password-input-trigger-size, var(--button-size-sm, var(--size-sm)));
|
|
105
105
|
min-width: var(--password-input-trigger-size, var(--button-size-sm, var(--size-sm)));
|
|
106
106
|
height: var(--password-input-trigger-size, var(--button-size-sm, var(--size-sm)));
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.
|
|
137
|
+
._8wEG0G_indicator {
|
|
138
138
|
padding: var(--password-input-trigger-visual-padding, var(--spacing-1));
|
|
139
139
|
border-radius: var(--password-input-trigger-radius, var(--radius-sm));
|
|
140
140
|
transition: background-color var(--input-transition, var(--transition-default)),
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
.
|
|
152
|
+
._8wEG0G_visibilityTrigger:hover ._8wEG0G_indicator, ._8wEG0G_visibilityTrigger:focus-visible ._8wEG0G_indicator {
|
|
153
153
|
background: var(--password-input-trigger-hover-bg, var(--color-muted));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { PasswordInput, usePasswordInput } from "@ark-ui/react/password-input";
|
|
2
3
|
|
|
3
4
|
//#region src/components/password-input/PasswordInput.d.ts
|
|
5
|
+
declare const PasswordInputControl: import("react").ForwardRefExoticComponent<Omit<PasswordInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
type PasswordInputFieldProps = Omit<ComponentProps<typeof PasswordInputControl>, 'asChild' | 'children'>;
|
|
4
7
|
declare const PasswordInput$1: import("react").ForwardRefExoticComponent<Omit<PasswordInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
8
|
Root: import("react").ForwardRefExoticComponent<Omit<PasswordInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
9
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<PasswordInput.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
10
|
Label: import("react").ForwardRefExoticComponent<Omit<PasswordInput.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
11
|
Control: import("react").ForwardRefExoticComponent<Omit<PasswordInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Field: import("react").ForwardRefExoticComponent<Omit<PasswordInputFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
Input: import("react").ForwardRefExoticComponent<Omit<PasswordInput.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
14
|
VisibilityTrigger: import("react").ForwardRefExoticComponent<Omit<PasswordInput.VisibilityTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
15
|
Indicator: import("react").ForwardRefExoticComponent<Omit<PasswordInput.IndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EyeClosedIcon, EyeIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { EyeClosedIcon, EyeIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import PasswordInput_module_default from "./PasswordInput.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { PasswordInput, usePasswordInput } from "@ark-ui/react/password-input";
|
|
8
8
|
//#region src/components/password-input/PasswordInput.tsx
|
|
9
9
|
const PasswordInputRoot = forwardRef(function PasswordInputRoot({ className, ...props }, ref) {
|
|
@@ -64,11 +64,19 @@ const PasswordInputIndicator = forwardRef(function PasswordInputIndicator({ clas
|
|
|
64
64
|
children: children ?? /* @__PURE__ */ jsx(EyeIcon, {})
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
+
const PasswordInputField = forwardRef(function PasswordInputField(props, ref) {
|
|
68
|
+
return /* @__PURE__ */ jsxs(PasswordInputControl, {
|
|
69
|
+
ref,
|
|
70
|
+
...props,
|
|
71
|
+
children: [/* @__PURE__ */ jsx(PasswordInputInput, {}), /* @__PURE__ */ jsx(PasswordInputVisibilityTrigger, { children: /* @__PURE__ */ jsx(PasswordInputIndicator, {}) })]
|
|
72
|
+
});
|
|
73
|
+
});
|
|
67
74
|
const PasswordInput$1 = Object.assign(PasswordInputRoot, {
|
|
68
75
|
Root: PasswordInputRoot,
|
|
69
76
|
RootProvider: PasswordInputRootProvider,
|
|
70
77
|
Label: PasswordInputLabel,
|
|
71
78
|
Control: PasswordInputControl,
|
|
79
|
+
Field: PasswordInputField,
|
|
72
80
|
Input: PasswordInputInput,
|
|
73
81
|
VisibilityTrigger: PasswordInputVisibilityTrigger,
|
|
74
82
|
Indicator: PasswordInputIndicator
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './PasswordInput.css';
|
|
2
2
|
//#region src/components/password-input/PasswordInput.module.css
|
|
3
3
|
var PasswordInput_module_default = {
|
|
4
|
-
"control": "
|
|
5
|
-
"indicator": "
|
|
6
|
-
"input": "
|
|
7
|
-
"label": "
|
|
8
|
-
"root": "
|
|
9
|
-
"visibilityTrigger": "
|
|
4
|
+
"control": "_8wEG0G_control",
|
|
5
|
+
"indicator": "_8wEG0G_indicator",
|
|
6
|
+
"input": "_8wEG0G_input",
|
|
7
|
+
"label": "_8wEG0G_label",
|
|
8
|
+
"root": "_8wEG0G_root",
|
|
9
|
+
"visibilityTrigger": "_8wEG0G_visibilityTrigger"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { PasswordInput_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.d_HHPW_root {
|
|
3
3
|
align-items: flex-start;
|
|
4
4
|
gap: var(--pin-input-root-gap, var(--spacing-2));
|
|
5
5
|
width: var(--pin-input-width, auto);
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.d_HHPW_label {
|
|
16
16
|
color: var(--pin-input-label-color, var(--color-foreground));
|
|
17
17
|
font-size: var(--pin-input-label-font-size, var(--text-sm));
|
|
18
18
|
font-weight: var(--pin-input-label-font-weight, var(--weight-medium));
|
|
19
19
|
line-height: var(--pin-input-label-line-height, var(--line-height-text-sm));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.d_HHPW_control {
|
|
23
23
|
align-items: center;
|
|
24
24
|
gap: var(--pin-input-gap, var(--spacing-2));
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.d_HHPW_input {
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
width: var(--pin-input-input-width, var(--pin-input-input-size, 2.5rem));
|
|
31
31
|
height: var(--pin-input-input-height, var(--pin-input-input-size, 2.5rem));
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.
|
|
79
|
+
.d_HHPW_separator {
|
|
80
80
|
width: var(--pin-input-separator-width, var(--pin-input-separator-size, 1rem));
|
|
81
81
|
height: var(--pin-input-separator-height, var(--pin-input-separator-size, 1rem));
|
|
82
82
|
color: var(--pin-input-separator-color, var(--color-muted-foreground));
|
|
@@ -2,6 +2,11 @@ import { ComponentProps } from "react";
|
|
|
2
2
|
import { PinInput, UsePinInputProps } from "@ark-ui/react/pin-input";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pin-input/PinInput.d.ts
|
|
5
|
+
declare function PinInputInputs({
|
|
6
|
+
className
|
|
7
|
+
}: {
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element[];
|
|
5
10
|
declare function PinInputSeparator({
|
|
6
11
|
className,
|
|
7
12
|
'aria-hidden': ariaHidden,
|
|
@@ -16,7 +21,7 @@ declare const PinInput$1: import("react").ForwardRefExoticComponent<Omit<PinInpu
|
|
|
16
21
|
Label: import("react").ForwardRefExoticComponent<Omit<PinInput.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
17
22
|
Control: import("react").ForwardRefExoticComponent<Omit<PinInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
23
|
Input: import("react").ForwardRefExoticComponent<Omit<PinInput.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
|
-
|
|
24
|
+
Inputs: typeof PinInputInputs;
|
|
20
25
|
Separator: typeof PinInputSeparator;
|
|
21
26
|
};
|
|
22
27
|
//#endregion
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { SeparatorMarkIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { SeparatorMarkIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import PinInput_module_default from "./PinInput.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
|
-
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
5
|
+
import { Children, cloneElement, forwardRef } from "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { PinInput, usePinInput, usePinInputContext } from "@ark-ui/react/pin-input";
|
|
8
8
|
//#region src/components/pin-input/PinInput.tsx
|
|
9
|
-
const PinInputRoot = forwardRef(function PinInputRoot({ children, className, count, placeholder = "", ...props }, ref) {
|
|
9
|
+
const PinInputRoot = forwardRef(function PinInputRoot({ asChild, children, className, count, placeholder = "", ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(PinInput.Root, {
|
|
11
11
|
ref,
|
|
12
|
+
asChild,
|
|
12
13
|
"data-slot": "pin-input-root",
|
|
13
14
|
className: clsx(PinInput_module_default.root, normalizeClassName(className)),
|
|
14
15
|
count,
|
|
15
16
|
placeholder,
|
|
16
17
|
...props,
|
|
17
|
-
children
|
|
18
|
+
children: withHiddenInput(children, asChild)
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
|
-
const PinInputRootProvider = forwardRef(function PinInputRootProvider({ className, ...props }, ref) {
|
|
21
|
+
const PinInputRootProvider = forwardRef(function PinInputRootProvider({ asChild, children, className, ...props }, ref) {
|
|
21
22
|
return /* @__PURE__ */ jsx(PinInput.RootProvider, {
|
|
22
23
|
ref,
|
|
24
|
+
asChild,
|
|
23
25
|
"data-slot": "pin-input-root-provider",
|
|
24
26
|
className: clsx(PinInput_module_default.root, normalizeClassName(className)),
|
|
25
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
children: withHiddenInput(children, asChild)
|
|
26
29
|
});
|
|
27
30
|
});
|
|
28
31
|
const PinInputLabel = forwardRef(function PinInputLabel({ className, ...props }, ref) {
|
|
@@ -49,13 +52,19 @@ const PinInputInput = forwardRef(function PinInputInput({ className, ...props },
|
|
|
49
52
|
...props
|
|
50
53
|
});
|
|
51
54
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
58
|
-
}
|
|
55
|
+
function PinInputInputs({ className }) {
|
|
56
|
+
const { items } = usePinInputContext();
|
|
57
|
+
return items.map((index) => /* @__PURE__ */ jsx(PinInputInput, {
|
|
58
|
+
index,
|
|
59
|
+
className
|
|
60
|
+
}, index));
|
|
61
|
+
}
|
|
62
|
+
function withHiddenInput(children, asChild) {
|
|
63
|
+
const hiddenInput = /* @__PURE__ */ jsx(PinInput.HiddenInput, { "data-slot": "pin-input-hidden-input" });
|
|
64
|
+
if (!asChild) return /* @__PURE__ */ jsxs(Fragment$1, { children: [children, hiddenInput] });
|
|
65
|
+
const child = Children.only(children);
|
|
66
|
+
return cloneElement(child, {}, child.props.children, hiddenInput);
|
|
67
|
+
}
|
|
59
68
|
function PinInputSeparator({ className, "aria-hidden": ariaHidden = true, role = "presentation", children, ...props }) {
|
|
60
69
|
return /* @__PURE__ */ jsx("span", {
|
|
61
70
|
"data-slot": "pin-input-separator",
|
|
@@ -78,7 +87,7 @@ const PinInput$1 = Object.assign(PinInputRoot, {
|
|
|
78
87
|
Label: PinInputLabel,
|
|
79
88
|
Control: PinInputControl,
|
|
80
89
|
Input: PinInputInput,
|
|
81
|
-
|
|
90
|
+
Inputs: PinInputInputs,
|
|
82
91
|
Separator: PinInputSeparator
|
|
83
92
|
});
|
|
84
93
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './PinInput.css';
|
|
2
2
|
//#region src/components/pin-input/PinInput.module.css
|
|
3
3
|
var PinInput_module_default = {
|
|
4
|
-
"control": "
|
|
5
|
-
"input": "
|
|
6
|
-
"label": "
|
|
7
|
-
"root": "
|
|
8
|
-
"separator": "
|
|
4
|
+
"control": "d_HHPW_control",
|
|
5
|
+
"input": "d_HHPW_input",
|
|
6
|
+
"label": "d_HHPW_label",
|
|
7
|
+
"root": "d_HHPW_root",
|
|
8
|
+
"separator": "d_HHPW_separator"
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { PinInput_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.Qww_tG_trigger, .Qww_tG_closeTrigger {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
min-height: var(--popover-control-height, var(--size-lg));
|
|
5
5
|
padding: var(--popover-control-padding-y, .5rem) var(--popover-control-padding-x, .875rem);
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
.Qww_tG_positioner {
|
|
49
49
|
z-index: var(--z-index, var(--z-popup));
|
|
50
50
|
max-width: var(--available-width);
|
|
51
51
|
outline: 0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
.Qww_tG_content {
|
|
55
55
|
--popover-close-icon-size-effective: var(--popover-close-icon-size, 1.75rem);
|
|
56
56
|
--popover-close-icon-offset-effective: var(--popover-close-icon-offset, var(--spacing-3));
|
|
57
57
|
--popover-header-padding-inline-end-effective: var(--popover-header-padding-inline-end, calc(var(--popover-close-icon-size-effective) + var(--popover-close-icon-offset-effective)));
|
|
@@ -75,27 +75,37 @@
|
|
|
75
75
|
overflow: visible;
|
|
76
76
|
|
|
77
77
|
&[data-state="open"] {
|
|
78
|
-
animation:
|
|
78
|
+
animation: Qww_tG_popover-enter
|
|
79
|
+
var(--popover-transition, var(--popup-motion-duration, var(--duration-fast)) var(--popup-motion-easing, ease))
|
|
80
|
+
both;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
&[data-state="closed"] {
|
|
82
|
-
animation:
|
|
84
|
+
animation: Qww_tG_popover-exit
|
|
85
|
+
var(--popover-transition, var(--popup-motion-duration, var(--duration-fast)) var(--popup-motion-easing, ease))
|
|
86
|
+
both;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:has(.Qww_tG_closeIcon) {
|
|
90
|
+
& .Qww_tG_header {
|
|
91
|
+
padding-inline-end: var(--popover-header-padding-inline-end-effective);
|
|
92
|
+
}
|
|
83
93
|
}
|
|
84
94
|
}
|
|
85
95
|
|
|
86
|
-
.
|
|
96
|
+
.Qww_tG_arrow {
|
|
87
97
|
--arrow-size: var(--popover-arrow-size, .625rem);
|
|
88
98
|
--arrow-background: var(--popover-bg, var(--color-popover));
|
|
89
99
|
}
|
|
90
100
|
|
|
91
|
-
.
|
|
101
|
+
.Qww_tG_arrowTip {
|
|
92
102
|
border-top: var(--popover-border-width, var(--border-width-sm)) solid
|
|
93
103
|
var(--popover-arrow-stroke-color, var(--popover-border-color, var(--color-border)));
|
|
94
104
|
border-left: var(--popover-border-width, var(--border-width-sm)) solid
|
|
95
105
|
var(--popover-arrow-stroke-color, var(--popover-border-color, var(--color-border)));
|
|
96
106
|
}
|
|
97
107
|
|
|
98
|
-
.
|
|
108
|
+
.Qww_tG_title {
|
|
99
109
|
color: var(--popover-title-color, var(--popover-color, var(--color-popover-foreground)));
|
|
100
110
|
font-size: var(--popover-title-font-size, var(--text-md));
|
|
101
111
|
font-weight: var(--popover-title-font-weight, var(--weight-semibold));
|
|
@@ -103,14 +113,14 @@
|
|
|
103
113
|
margin: 0;
|
|
104
114
|
}
|
|
105
115
|
|
|
106
|
-
.
|
|
116
|
+
.Qww_tG_description {
|
|
107
117
|
margin: var(--popover-description-margin, 0);
|
|
108
118
|
color: var(--popover-description-color, var(--color-muted-foreground));
|
|
109
119
|
font-size: var(--popover-description-font-size, var(--text-sm));
|
|
110
120
|
line-height: var(--popover-description-line-height, var(--line-height-text-sm));
|
|
111
121
|
}
|
|
112
122
|
|
|
113
|
-
.
|
|
123
|
+
.Qww_tG_closeIcon {
|
|
114
124
|
--close-button-size: var(--popover-close-icon-size-effective);
|
|
115
125
|
--close-button-radius: var(--popover-close-icon-radius, var(--radius-sm));
|
|
116
126
|
--close-button-icon-size: var(--popover-close-icon-glyph-size, .875rem);
|
|
@@ -124,17 +134,16 @@
|
|
|
124
134
|
inset-inline-end: var(--popover-close-icon-offset-effective);
|
|
125
135
|
}
|
|
126
136
|
|
|
127
|
-
.
|
|
137
|
+
.Qww_tG_header {
|
|
128
138
|
gap: var(--popover-header-gap, var(--spacing-1));
|
|
129
|
-
padding-inline-end: var(--popover-header-padding-inline-end-effective);
|
|
130
139
|
display: grid;
|
|
131
140
|
}
|
|
132
141
|
|
|
133
|
-
.
|
|
142
|
+
.Qww_tG_body {
|
|
134
143
|
margin: var(--popover-body-margin, 0);
|
|
135
144
|
}
|
|
136
145
|
|
|
137
|
-
.
|
|
146
|
+
.Qww_tG_footer {
|
|
138
147
|
align-items: center;
|
|
139
148
|
justify-content: var(--popover-footer-justify, flex-end);
|
|
140
149
|
gap: var(--popover-footer-gap, var(--spacing-2));
|
|
@@ -142,21 +151,21 @@
|
|
|
142
151
|
display: flex;
|
|
143
152
|
}
|
|
144
153
|
|
|
145
|
-
@keyframes
|
|
154
|
+
@keyframes Qww_tG_popover-enter {
|
|
146
155
|
from {
|
|
147
|
-
opacity: var(--popover-content-starting-opacity, 0);
|
|
148
|
-
translate: var(--popover-content-starting-translate-x, 0)
|
|
149
|
-
var(--popover-content-starting-translate-y, 0);
|
|
150
|
-
scale: var(--popover-content-starting-scale, var(--scale-popup));
|
|
156
|
+
opacity: var(--popover-content-starting-opacity, var(--popup-motion-starting-opacity, 0));
|
|
157
|
+
translate: var(--popover-content-starting-translate-x, var(--popup-motion-starting-translate-x, 0))
|
|
158
|
+
var(--popover-content-starting-translate-y, var(--popup-motion-starting-translate-y, 0));
|
|
159
|
+
scale: var(--popover-content-starting-scale, var(--popup-motion-starting-scale, var(--scale-popup)));
|
|
151
160
|
}
|
|
152
161
|
}
|
|
153
162
|
|
|
154
|
-
@keyframes
|
|
163
|
+
@keyframes Qww_tG_popover-exit {
|
|
155
164
|
to {
|
|
156
|
-
opacity: var(--popover-content-ending-opacity, 0);
|
|
157
|
-
translate: var(--popover-content-ending-translate-x, 0)
|
|
158
|
-
var(--popover-content-ending-translate-y, 0);
|
|
159
|
-
scale: var(--popover-content-ending-scale, var(--scale-popup));
|
|
165
|
+
opacity: var(--popover-content-ending-opacity, var(--popup-motion-ending-opacity, 0));
|
|
166
|
+
translate: var(--popover-content-ending-translate-x, var(--popup-motion-ending-translate-x, 0))
|
|
167
|
+
var(--popover-content-ending-translate-y, var(--popup-motion-ending-translate-y, 0));
|
|
168
|
+
scale: var(--popover-content-ending-scale, var(--popup-motion-ending-scale, var(--scale-popup)));
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
171
|
}
|
|
@@ -2,9 +2,9 @@ import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
|
2
2
|
import { CloseButton } from "../close-button/CloseButton.js";
|
|
3
3
|
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
4
4
|
import Popover_module_default from "./Popover.module.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { forwardRef } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { Popover, usePopover } from "@ark-ui/react/popover";
|
|
9
9
|
//#region src/components/popover/Popover.tsx
|
|
10
10
|
const DEFAULT_CLOSE_BUTTON_LABEL = "Close popover";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import './Popover.css';
|
|
2
2
|
//#region src/components/popover/Popover.module.css
|
|
3
3
|
var Popover_module_default = {
|
|
4
|
-
"arrow": "
|
|
5
|
-
"arrowTip": "
|
|
6
|
-
"body": "
|
|
7
|
-
"closeIcon": "
|
|
8
|
-
"closeTrigger": "
|
|
9
|
-
"content": "
|
|
10
|
-
"description": "
|
|
11
|
-
"footer": "
|
|
12
|
-
"header": "
|
|
13
|
-
"popover-enter": "
|
|
14
|
-
"popover-exit": "
|
|
15
|
-
"positioner": "
|
|
16
|
-
"title": "
|
|
17
|
-
"trigger": "
|
|
4
|
+
"arrow": "Qww_tG_arrow",
|
|
5
|
+
"arrowTip": "Qww_tG_arrowTip",
|
|
6
|
+
"body": "Qww_tG_body",
|
|
7
|
+
"closeIcon": "Qww_tG_closeIcon",
|
|
8
|
+
"closeTrigger": "Qww_tG_closeTrigger",
|
|
9
|
+
"content": "Qww_tG_content",
|
|
10
|
+
"description": "Qww_tG_description",
|
|
11
|
+
"footer": "Qww_tG_footer",
|
|
12
|
+
"header": "Qww_tG_header",
|
|
13
|
+
"popover-enter": "Qww_tG_popover-enter",
|
|
14
|
+
"popover-exit": "Qww_tG_popover-exit",
|
|
15
|
+
"positioner": "Qww_tG_positioner",
|
|
16
|
+
"title": "Qww_tG_title",
|
|
17
|
+
"trigger": "Qww_tG_trigger"
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Popover_module_default as default };
|