@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,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.AJ5G3W_trigger, .AJ5G3W_contextTrigger {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
.AJ5G3W_contextTrigger {
|
|
49
49
|
width: var(--menu-context-trigger-width, 15rem);
|
|
50
50
|
min-height: var(--menu-context-trigger-height, 10rem);
|
|
51
51
|
border-style: var(--menu-context-trigger-border-style, dashed);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
.AJ5G3W_triggerIcon, .AJ5G3W_indicator {
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
width: var(--menu-trigger-icon-size, 1rem);
|
|
57
57
|
height: var(--menu-trigger-icon-size, 1rem);
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
display: inline-flex;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.
|
|
65
|
+
.AJ5G3W_iconSvg {
|
|
66
66
|
width: 100%;
|
|
67
67
|
height: 100%;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.
|
|
70
|
+
.AJ5G3W_positioner {
|
|
71
71
|
z-index: var(--z-index);
|
|
72
72
|
width: var(--positioner-width, auto);
|
|
73
73
|
max-width: var(--available-width);
|
|
74
74
|
outline: 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.
|
|
77
|
+
.AJ5G3W_content {
|
|
78
78
|
--arrow-size: var(--menu-arrow-size, .625rem);
|
|
79
79
|
--arrow-background: var(--menu-popup-bg, var(--color-popover));
|
|
80
80
|
box-sizing: border-box;
|
|
@@ -97,27 +97,31 @@
|
|
|
97
97
|
overflow: auto;
|
|
98
98
|
|
|
99
99
|
&[data-state="open"] {
|
|
100
|
-
animation:
|
|
100
|
+
animation: AJ5G3W_menuContentIn
|
|
101
|
+
var(--menu-transition, var(--popup-motion-duration, var(--duration-normal))
|
|
102
|
+
var(--popup-motion-easing, var(--ease-in-out)));
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
&[data-state="closed"] {
|
|
104
|
-
animation:
|
|
106
|
+
animation: AJ5G3W_menuContentOut
|
|
107
|
+
var(--menu-transition, var(--popup-motion-duration, var(--duration-normal))
|
|
108
|
+
var(--popup-motion-easing, var(--ease-in-out)));
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
|
|
108
|
-
.
|
|
112
|
+
.AJ5G3W_arrow {
|
|
109
113
|
--arrow-background: var(--menu-popup-bg, var(--color-popover));
|
|
110
114
|
z-index: -1;
|
|
111
115
|
}
|
|
112
116
|
|
|
113
|
-
.
|
|
117
|
+
.AJ5G3W_arrowTip {
|
|
114
118
|
border-block-start: var(--menu-popup-border-width, var(--border-width-sm)) solid
|
|
115
119
|
var(--menu-arrow-stroke-color, var(--menu-popup-border-color, var(--color-border)));
|
|
116
120
|
border-inline-start: var(--menu-popup-border-width, var(--border-width-sm)) solid
|
|
117
121
|
var(--menu-arrow-stroke-color, var(--menu-popup-border-color, var(--color-border)));
|
|
118
122
|
}
|
|
119
123
|
|
|
120
|
-
.
|
|
124
|
+
.AJ5G3W_item, .AJ5G3W_triggerItem, .AJ5G3W_radioItem, .AJ5G3W_checkboxItem {
|
|
121
125
|
box-sizing: border-box;
|
|
122
126
|
min-height: var(--menu-item-height, var(--popup-item-min-height, 2rem));
|
|
123
127
|
border-radius: var(--menu-item-radius, var(--radius-sm));
|
|
@@ -176,7 +180,7 @@
|
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
182
|
|
|
179
|
-
.
|
|
183
|
+
.AJ5G3W_item {
|
|
180
184
|
align-items: center;
|
|
181
185
|
gap: var(--menu-item-gap, var(--spacing-2));
|
|
182
186
|
padding-block: var(--menu-item-padding-y, var(--popup-item-padding-y, .5rem));
|
|
@@ -185,7 +189,7 @@
|
|
|
185
189
|
display: flex;
|
|
186
190
|
}
|
|
187
191
|
|
|
188
|
-
.
|
|
192
|
+
.AJ5G3W_triggerItem {
|
|
189
193
|
justify-content: space-between;
|
|
190
194
|
align-items: center;
|
|
191
195
|
gap: var(--menu-trigger-item-gap, var(--spacing-3));
|
|
@@ -195,7 +199,7 @@
|
|
|
195
199
|
display: flex;
|
|
196
200
|
}
|
|
197
201
|
|
|
198
|
-
.
|
|
202
|
+
.AJ5G3W_triggerItemIcon {
|
|
199
203
|
box-sizing: border-box;
|
|
200
204
|
width: var(--menu-trigger-item-icon-size, .875rem);
|
|
201
205
|
height: var(--menu-trigger-item-icon-size, .875rem);
|
|
@@ -204,12 +208,12 @@
|
|
|
204
208
|
display: inline-flex;
|
|
205
209
|
}
|
|
206
210
|
|
|
207
|
-
.
|
|
211
|
+
.AJ5G3W_itemGroup {
|
|
208
212
|
padding-block: var(--menu-group-padding-y, 0);
|
|
209
213
|
display: grid;
|
|
210
214
|
}
|
|
211
215
|
|
|
212
|
-
.
|
|
216
|
+
.AJ5G3W_itemGroupLabel {
|
|
213
217
|
padding-block: var(--menu-group-label-padding-y, var(--popup-group-label-padding-y, .35rem));
|
|
214
218
|
padding-inline: var(--menu-group-label-padding-x-start, var(--popup-group-label-padding-x-start, .625rem))
|
|
215
219
|
var(--menu-group-label-padding-x-end, var(--popup-group-label-padding-x-end, .75rem));
|
|
@@ -221,11 +225,11 @@
|
|
|
221
225
|
margin: 0;
|
|
222
226
|
}
|
|
223
227
|
|
|
224
|
-
.
|
|
228
|
+
.AJ5G3W_radioItemGroup {
|
|
225
229
|
display: grid;
|
|
226
230
|
}
|
|
227
231
|
|
|
228
|
-
.
|
|
232
|
+
.AJ5G3W_radioItem, .AJ5G3W_checkboxItem {
|
|
229
233
|
align-items: center;
|
|
230
234
|
gap: var(--menu-check-gap, var(--popup-check-gap, .5rem));
|
|
231
235
|
grid-template-columns: var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem))
|
|
@@ -239,11 +243,11 @@
|
|
|
239
243
|
grid-template-columns: minmax(0, 1fr);
|
|
240
244
|
padding-inline-start: var(--menu-item-padding-x-start, var(--popup-item-padding-x-start, 1rem));
|
|
241
245
|
|
|
242
|
-
& > .
|
|
246
|
+
& > .AJ5G3W_itemIndicator {
|
|
243
247
|
display: none;
|
|
244
248
|
}
|
|
245
249
|
|
|
246
|
-
& > .
|
|
250
|
+
& > .AJ5G3W_itemText {
|
|
247
251
|
grid-column-start: 1;
|
|
248
252
|
}
|
|
249
253
|
}
|
|
@@ -252,25 +256,25 @@
|
|
|
252
256
|
grid-template-columns: minmax(0, 1fr)
|
|
253
257
|
var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem));
|
|
254
258
|
|
|
255
|
-
& > .
|
|
259
|
+
& > .AJ5G3W_itemText {
|
|
256
260
|
grid-column-start: 1;
|
|
257
261
|
}
|
|
258
262
|
|
|
259
|
-
& > .
|
|
263
|
+
& > .AJ5G3W_itemIndicator {
|
|
260
264
|
grid-column-start: 2;
|
|
261
265
|
justify-self: end;
|
|
262
266
|
}
|
|
263
267
|
}
|
|
264
268
|
}
|
|
265
269
|
|
|
266
|
-
.
|
|
267
|
-
& > .
|
|
270
|
+
.AJ5G3W_checkboxItem[data-state="checked"] {
|
|
271
|
+
& > .AJ5G3W_itemIndicator {
|
|
268
272
|
background-color: var(--menu-checkbox-indicator-bg-checked, var(--menu-checkbox-indicator-bg, transparent));
|
|
269
273
|
border-color: var(--menu-checkbox-indicator-border-color-checked, var(--menu-checkbox-indicator-border-color, currentColor));
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
276
|
|
|
273
|
-
.
|
|
277
|
+
.AJ5G3W_itemIndicator {
|
|
274
278
|
width: var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem));
|
|
275
279
|
height: var(--menu-check-indicator-size, var(--popup-check-indicator-size, .75rem));
|
|
276
280
|
border: var(--menu-checkbox-indicator-border-width, 0) solid
|
|
@@ -287,18 +291,18 @@
|
|
|
287
291
|
}
|
|
288
292
|
}
|
|
289
293
|
|
|
290
|
-
.
|
|
294
|
+
.AJ5G3W_itemIndicatorIcon {
|
|
291
295
|
width: 100%;
|
|
292
296
|
height: 100%;
|
|
293
297
|
}
|
|
294
298
|
|
|
295
|
-
.
|
|
299
|
+
.AJ5G3W_itemText {
|
|
296
300
|
grid-column-start: 2;
|
|
297
301
|
min-width: 0;
|
|
298
302
|
overflow: hidden;
|
|
299
303
|
}
|
|
300
304
|
|
|
301
|
-
.
|
|
305
|
+
.AJ5G3W_itemTextContent {
|
|
302
306
|
align-items: center;
|
|
303
307
|
gap: var(--menu-item-text-content-gap, var(--spacing-2));
|
|
304
308
|
vertical-align: top;
|
|
@@ -307,7 +311,7 @@
|
|
|
307
311
|
display: inline-flex;
|
|
308
312
|
}
|
|
309
313
|
|
|
310
|
-
.
|
|
314
|
+
.AJ5G3W_itemTextIcon {
|
|
311
315
|
width: var(--menu-item-text-icon-size, 1rem);
|
|
312
316
|
height: var(--menu-item-text-icon-size, 1rem);
|
|
313
317
|
color: var(--menu-item-text-icon-color, currentColor);
|
|
@@ -317,14 +321,14 @@
|
|
|
317
321
|
display: inline-flex;
|
|
318
322
|
}
|
|
319
323
|
|
|
320
|
-
.
|
|
324
|
+
.AJ5G3W_itemTextLabel {
|
|
321
325
|
text-overflow: ellipsis;
|
|
322
326
|
white-space: nowrap;
|
|
323
327
|
min-width: 0;
|
|
324
328
|
overflow: hidden;
|
|
325
329
|
}
|
|
326
330
|
|
|
327
|
-
.
|
|
331
|
+
.AJ5G3W_itemShortcut {
|
|
328
332
|
color: var(--menu-item-shortcut-color, var(--color-muted-foreground));
|
|
329
333
|
font-size: var(--menu-item-shortcut-font-size, var(--text-xs));
|
|
330
334
|
line-height: var(--menu-item-shortcut-line-height, var(--line-height-text-xs));
|
|
@@ -333,7 +337,7 @@
|
|
|
333
337
|
padding-inline-start: var(--menu-item-shortcut-padding-x-start, var(--spacing-4));
|
|
334
338
|
}
|
|
335
339
|
|
|
336
|
-
.
|
|
340
|
+
.AJ5G3W_separator {
|
|
337
341
|
box-sizing: border-box;
|
|
338
342
|
height: var(--menu-separator-height, var(--border-width-sm));
|
|
339
343
|
margin-block: var(--menu-separator-margin-y, var(--popup-separator-margin-y, .375rem));
|
|
@@ -343,11 +347,12 @@
|
|
|
343
347
|
border: 0;
|
|
344
348
|
}
|
|
345
349
|
|
|
346
|
-
@keyframes
|
|
350
|
+
@keyframes AJ5G3W_menuContentIn {
|
|
347
351
|
from {
|
|
348
|
-
opacity: var(--menu-popup-starting-opacity, 0);
|
|
349
|
-
translate: var(--menu-popup-starting-translate-x,
|
|
350
|
-
|
|
352
|
+
opacity: var(--menu-popup-starting-opacity, var(--popup-motion-starting-opacity, 0));
|
|
353
|
+
translate: var(--menu-popup-starting-translate-x, var(--popup-motion-starting-translate-x, 0))
|
|
354
|
+
var(--menu-popup-starting-translate-y, var(--popup-motion-starting-translate-y, 0));
|
|
355
|
+
transform: scale(var(--menu-popup-starting-scale, var(--popup-motion-starting-scale, var(--scale-popup))));
|
|
351
356
|
}
|
|
352
357
|
|
|
353
358
|
to {
|
|
@@ -356,16 +361,17 @@
|
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
363
|
|
|
359
|
-
@keyframes
|
|
364
|
+
@keyframes AJ5G3W_menuContentOut {
|
|
360
365
|
from {
|
|
361
366
|
opacity: 1;
|
|
362
367
|
transform: scale(1);
|
|
363
368
|
}
|
|
364
369
|
|
|
365
370
|
to {
|
|
366
|
-
opacity: var(--menu-popup-ending-opacity, 0);
|
|
367
|
-
translate: var(--menu-popup-ending-translate-x,
|
|
368
|
-
|
|
371
|
+
opacity: var(--menu-popup-ending-opacity, var(--popup-motion-ending-opacity, 0));
|
|
372
|
+
translate: var(--menu-popup-ending-translate-x, var(--popup-motion-ending-translate-x, 0))
|
|
373
|
+
var(--menu-popup-ending-translate-y, var(--popup-motion-ending-translate-y, 0));
|
|
374
|
+
transform: scale(var(--menu-popup-ending-scale, var(--popup-motion-ending-scale, var(--scale-popup))));
|
|
369
375
|
}
|
|
370
376
|
}
|
|
371
377
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import { Menu } from "@ark-ui/react/menu";
|
|
3
|
+
import { Menu, useMenu } from "@ark-ui/react/menu";
|
|
4
4
|
|
|
5
5
|
//#region src/components/menu/Menu.d.ts
|
|
6
6
|
type MenuIndicatorPosition = 'start' | 'end' | 'none';
|
|
@@ -78,6 +78,7 @@ declare const Menu$1: typeof MenuRoot & {
|
|
|
78
78
|
ItemTextIcon: typeof MenuItemTextIcon;
|
|
79
79
|
ItemTextLabel: typeof MenuItemTextLabel;
|
|
80
80
|
ItemShortcut: typeof MenuItemShortcut;
|
|
81
|
+
ItemContext: (props: Menu.ItemContextProps) => import("react").ReactNode;
|
|
81
82
|
};
|
|
82
83
|
//#endregion
|
|
83
|
-
export { Menu$1 as Menu };
|
|
84
|
+
export { Menu$1 as Menu, useMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CheckIcon, ChevronDownIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { CheckIcon, ChevronDownIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
4
4
|
import Menu_module_default from "./Menu.module.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { forwardRef } from "react";
|
|
8
|
-
import {
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { Menu, useMenu } from "@ark-ui/react/menu";
|
|
9
9
|
//#region src/components/menu/Menu.tsx
|
|
10
10
|
function MenuRoot({ portalled, portalRef, ...props }) {
|
|
11
11
|
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
@@ -234,7 +234,8 @@ const Menu$1 = Object.assign(MenuRoot, {
|
|
|
234
234
|
ItemTextContent: MenuItemTextContent,
|
|
235
235
|
ItemTextIcon: MenuItemTextIcon,
|
|
236
236
|
ItemTextLabel: MenuItemTextLabel,
|
|
237
|
-
ItemShortcut: MenuItemShortcut
|
|
237
|
+
ItemShortcut: MenuItemShortcut,
|
|
238
|
+
ItemContext: Menu.ItemContext
|
|
238
239
|
});
|
|
239
240
|
//#endregion
|
|
240
|
-
export { Menu$1 as Menu };
|
|
241
|
+
export { Menu$1 as Menu, useMenu };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import './Menu.css';
|
|
2
2
|
//#region src/components/menu/Menu.module.css
|
|
3
3
|
var Menu_module_default = {
|
|
4
|
-
"arrow": "
|
|
5
|
-
"arrowTip": "
|
|
6
|
-
"checkboxItem": "
|
|
7
|
-
"content": "
|
|
8
|
-
"contextTrigger": "
|
|
9
|
-
"iconSvg": "
|
|
10
|
-
"indicator": "
|
|
11
|
-
"item": "
|
|
12
|
-
"itemGroup": "
|
|
13
|
-
"itemGroupLabel": "
|
|
14
|
-
"itemIndicator": "
|
|
15
|
-
"itemIndicatorIcon": "
|
|
16
|
-
"itemShortcut": "
|
|
17
|
-
"itemText": "
|
|
18
|
-
"itemTextContent": "
|
|
19
|
-
"itemTextIcon": "
|
|
20
|
-
"itemTextLabel": "
|
|
21
|
-
"menuContentIn": "
|
|
22
|
-
"menuContentOut": "
|
|
23
|
-
"positioner": "
|
|
24
|
-
"radioItem": "
|
|
25
|
-
"radioItemGroup": "
|
|
26
|
-
"separator": "
|
|
27
|
-
"trigger": "
|
|
28
|
-
"triggerIcon": "
|
|
29
|
-
"triggerItem": "
|
|
30
|
-
"triggerItemIcon": "
|
|
4
|
+
"arrow": "AJ5G3W_arrow",
|
|
5
|
+
"arrowTip": "AJ5G3W_arrowTip",
|
|
6
|
+
"checkboxItem": "AJ5G3W_checkboxItem",
|
|
7
|
+
"content": "AJ5G3W_content",
|
|
8
|
+
"contextTrigger": "AJ5G3W_contextTrigger",
|
|
9
|
+
"iconSvg": "AJ5G3W_iconSvg",
|
|
10
|
+
"indicator": "AJ5G3W_indicator",
|
|
11
|
+
"item": "AJ5G3W_item",
|
|
12
|
+
"itemGroup": "AJ5G3W_itemGroup",
|
|
13
|
+
"itemGroupLabel": "AJ5G3W_itemGroupLabel",
|
|
14
|
+
"itemIndicator": "AJ5G3W_itemIndicator",
|
|
15
|
+
"itemIndicatorIcon": "AJ5G3W_itemIndicatorIcon",
|
|
16
|
+
"itemShortcut": "AJ5G3W_itemShortcut",
|
|
17
|
+
"itemText": "AJ5G3W_itemText",
|
|
18
|
+
"itemTextContent": "AJ5G3W_itemTextContent",
|
|
19
|
+
"itemTextIcon": "AJ5G3W_itemTextIcon",
|
|
20
|
+
"itemTextLabel": "AJ5G3W_itemTextLabel",
|
|
21
|
+
"menuContentIn": "AJ5G3W_menuContentIn",
|
|
22
|
+
"menuContentOut": "AJ5G3W_menuContentOut",
|
|
23
|
+
"positioner": "AJ5G3W_positioner",
|
|
24
|
+
"radioItem": "AJ5G3W_radioItem",
|
|
25
|
+
"radioItemGroup": "AJ5G3W_radioItemGroup",
|
|
26
|
+
"separator": "AJ5G3W_separator",
|
|
27
|
+
"trigger": "AJ5G3W_trigger",
|
|
28
|
+
"triggerIcon": "AJ5G3W_triggerIcon",
|
|
29
|
+
"triggerItem": "AJ5G3W_triggerItem",
|
|
30
|
+
"triggerItemIcon": "AJ5G3W_triggerItemIcon"
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Menu_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Menu } from "./Menu.js";
|
|
2
|
-
export { Menu };
|
|
1
|
+
import { Menu, useMenu } from "./Menu.js";
|
|
2
|
+
export { Menu, useMenu };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.mei8Eq_control {
|
|
3
3
|
width: fit-content;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
max-width: 100%;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.mei8Eq_root {
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
width: var(--select-width, 14rem);
|
|
13
13
|
max-width: var(--select-max-width, 100%);
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
.mei8Eq_indicator {
|
|
73
73
|
top: 50%;
|
|
74
74
|
width: var(--select-action-size, var(--spacing-6));
|
|
75
75
|
height: var(--select-action-size, var(--spacing-6));
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.
|
|
97
|
+
.mei8Eq_root:is([data-disabled], :disabled) + .mei8Eq_indicator {
|
|
98
98
|
opacity: var(--select-disabled-opacity, var(--opacity-disabled));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.
|
|
101
|
+
.mei8Eq_root:is([multiple], [size]:not([size="1"])) + .mei8Eq_indicator {
|
|
102
102
|
display: none;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { Field } from "@ark-ui/react/field";
|
|
2
3
|
|
|
3
4
|
//#region src/components/native-select/NativeSelect.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
type NativeSelectRootProps = ComponentProps<typeof Field.Select> & {
|
|
6
|
+
controlProps?: ComponentProps<'span'>;
|
|
7
|
+
};
|
|
8
|
+
declare const NativeSelect: import("react").ForwardRefExoticComponent<Omit<NativeSelectRootProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>> & {
|
|
9
|
+
Root: import("react").ForwardRefExoticComponent<Omit<NativeSelectRootProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
6
10
|
};
|
|
7
11
|
//#endregion
|
|
8
12
|
export { NativeSelect };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { ChevronDownIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import NativeSelect_module_default from "./NativeSelect.module.js";
|
|
4
|
-
import { jsx, jsxs } 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 { Field } from "@ark-ui/react/field";
|
|
8
8
|
//#region src/components/native-select/NativeSelect.tsx
|
|
9
|
-
const NativeSelectRoot = forwardRef(function NativeSelectRoot({ className, ...props }, ref) {
|
|
9
|
+
const NativeSelectRoot = forwardRef(function NativeSelectRoot({ className, controlProps, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsxs("span", {
|
|
11
|
+
...controlProps,
|
|
11
12
|
"data-scope": "native-select",
|
|
12
13
|
"data-part": "control",
|
|
13
14
|
"data-slot": "native-select-control",
|
|
14
|
-
className: NativeSelect_module_default.control,
|
|
15
|
+
className: clsx(NativeSelect_module_default.control, normalizeClassName(controlProps?.className)),
|
|
15
16
|
children: [/* @__PURE__ */ jsx(Field.Select, {
|
|
16
17
|
...props,
|
|
17
18
|
ref,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './NativeSelect.css';
|
|
2
2
|
//#region src/components/native-select/NativeSelect.module.css
|
|
3
3
|
var NativeSelect_module_default = {
|
|
4
|
-
"control": "
|
|
5
|
-
"indicator": "
|
|
6
|
-
"root": "
|
|
4
|
+
"control": "mei8Eq_control",
|
|
5
|
+
"indicator": "mei8Eq_indicator",
|
|
6
|
+
"root": "mei8Eq_root"
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NativeSelect_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.ZjEX8G_root {
|
|
3
3
|
align-items: flex-start;
|
|
4
4
|
gap: var(--number-input-gap, var(--spacing-1));
|
|
5
5
|
width: var(--number-input-width, auto);
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.ZjEX8G_label {
|
|
16
16
|
color: var(--number-input-label-color, var(--color-foreground));
|
|
17
17
|
font-size: var(--number-input-label-font-size, var(--text-sm));
|
|
18
18
|
line-height: var(--number-input-label-line-height, var(--line-height-text-sm));
|
|
19
19
|
font-weight: var(--number-input-label-font-weight, var(--weight-medium));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.ZjEX8G_scrubber {
|
|
23
23
|
align-items: center;
|
|
24
24
|
gap: var(--number-input-scrubber-gap, var(--spacing-2));
|
|
25
25
|
color: var(--number-input-scrubber-color, var(--color-foreground));
|
|
@@ -29,16 +29,15 @@
|
|
|
29
29
|
|
|
30
30
|
&[data-disabled] {
|
|
31
31
|
cursor: default;
|
|
32
|
-
opacity: var(--number-input-disabled-opacity, var(--opacity-disabled));
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
.
|
|
35
|
+
.ZjEX8G_control {
|
|
37
36
|
align-items: stretch;
|
|
38
37
|
display: inline-flex;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
.
|
|
40
|
+
.ZjEX8G_decrementTrigger, .ZjEX8G_incrementTrigger {
|
|
42
41
|
--_number-input-focus-ring-width: var(--number-input-focus-ring-width, var(--number-input-border-width, var(--border-width-sm)));
|
|
43
42
|
box-sizing: border-box;
|
|
44
43
|
width: var(--number-input-control-height, var(--size-lg));
|
|
@@ -79,11 +78,10 @@
|
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
&:is([data-disabled], :disabled) {
|
|
82
|
-
opacity: var(--number-input-disabled-opacity, var(--opacity-disabled));
|
|
83
81
|
pointer-events: none;
|
|
84
82
|
}
|
|
85
83
|
|
|
86
|
-
&[data-invalid], .
|
|
84
|
+
&[data-invalid], .ZjEX8G_root[data-invalid] & {
|
|
87
85
|
border-color: var(--number-input-border-color-invalid, var(--color-destructive));
|
|
88
86
|
}
|
|
89
87
|
|
|
@@ -94,19 +92,19 @@
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
.
|
|
95
|
+
.ZjEX8G_decrementTrigger {
|
|
98
96
|
border-radius: var(--number-input-radius, var(--radius-md)) 0 0
|
|
99
97
|
var(--number-input-radius, var(--radius-md));
|
|
100
98
|
border-right: 0;
|
|
101
99
|
}
|
|
102
100
|
|
|
103
|
-
.
|
|
101
|
+
.ZjEX8G_incrementTrigger {
|
|
104
102
|
border-radius: 0 var(--number-input-radius, var(--radius-md))
|
|
105
103
|
var(--number-input-radius, var(--radius-md)) 0;
|
|
106
104
|
border-left: 0;
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
.
|
|
107
|
+
.ZjEX8G_input {
|
|
110
108
|
--_number-input-focus-ring-width: var(--number-input-focus-ring-width, var(--number-input-border-width, var(--border-width-sm)));
|
|
111
109
|
box-sizing: border-box;
|
|
112
110
|
width: var(--number-input-input-width, 6rem);
|
|
@@ -139,7 +137,7 @@
|
|
|
139
137
|
z-index: 1;
|
|
140
138
|
}
|
|
141
139
|
|
|
142
|
-
&[data-invalid], .
|
|
140
|
+
&[data-invalid], .ZjEX8G_root[data-invalid] & {
|
|
143
141
|
border-top-color: var(--number-input-border-color-invalid, var(--color-destructive));
|
|
144
142
|
border-bottom-color: var(--number-input-border-color-invalid, var(--color-destructive));
|
|
145
143
|
|
|
@@ -147,13 +145,9 @@
|
|
|
147
145
|
outline-color: var(--number-input-border-color-invalid, var(--color-destructive));
|
|
148
146
|
}
|
|
149
147
|
}
|
|
150
|
-
|
|
151
|
-
&:is([data-disabled], :disabled) {
|
|
152
|
-
opacity: var(--number-input-disabled-opacity, var(--opacity-disabled));
|
|
153
|
-
}
|
|
154
148
|
}
|
|
155
149
|
|
|
156
|
-
.
|
|
150
|
+
.ZjEX8G_valueText {
|
|
157
151
|
color: var(--number-input-value-text-color, var(--color-muted-foreground));
|
|
158
152
|
font-size: var(--number-input-value-text-font-size, var(--text-sm));
|
|
159
153
|
line-height: var(--number-input-value-text-line-height, var(--line-height-text-sm));
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "@ark-ui/react/number-input";
|
|
2
3
|
|
|
3
4
|
//#region src/components/number-input/NumberInput.d.ts
|
|
5
|
+
declare const NumberInputControl: import("react").ForwardRefExoticComponent<Omit<NumberInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
type NumberInputFieldProps = Omit<ComponentProps<typeof NumberInputControl>, 'asChild' | 'children'>;
|
|
4
7
|
declare const NumberInput$1: import("react").ForwardRefExoticComponent<Omit<NumberInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
8
|
Root: import("react").ForwardRefExoticComponent<Omit<NumberInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
9
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<NumberInput.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Context: (props: NumberInput.ContextProps) => import("react").ReactNode;
|
|
7
11
|
Label: import("react").ForwardRefExoticComponent<Omit<NumberInput.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
12
|
Scrubber: import("react").ForwardRefExoticComponent<Omit<NumberInput.ScrubberProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
Control: import("react").ForwardRefExoticComponent<Omit<NumberInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Field: import("react").ForwardRefExoticComponent<Omit<NumberInputFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
15
|
DecrementTrigger: import("react").ForwardRefExoticComponent<Omit<NumberInput.DecrementTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
16
|
Input: import("react").ForwardRefExoticComponent<Omit<NumberInput.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
17
|
IncrementTrigger: import("react").ForwardRefExoticComponent<Omit<NumberInput.IncrementTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
18
|
ValueText: import("react").ForwardRefExoticComponent<Omit<NumberInput.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
19
|
};
|
|
15
20
|
//#endregion
|
|
16
|
-
export { NumberInput$1 as NumberInput };
|
|
21
|
+
export { NumberInput$1 as NumberInput, useNumberInput, useNumberInputContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MinusIcon, PlusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { MinusIcon, PlusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import NumberInput_module_default from "./NumberInput.module.js";
|
|
4
|
-
import { jsx } 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 { NumberInput, useNumberInput, useNumberInputContext } from "@ark-ui/react/number-input";
|
|
8
8
|
//#region src/components/number-input/NumberInput.tsx
|
|
9
9
|
const NumberInputRoot = forwardRef(function NumberInputRoot({ className, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(NumberInput.Root, {
|
|
@@ -80,16 +80,29 @@ const NumberInputValueText = forwardRef(function NumberInputValueText({ classNam
|
|
|
80
80
|
...props
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
+
const NumberInputField = forwardRef(function NumberInputField(props, ref) {
|
|
84
|
+
return /* @__PURE__ */ jsxs(NumberInputControl, {
|
|
85
|
+
ref,
|
|
86
|
+
...props,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx(NumberInputDecrementTrigger, {}),
|
|
89
|
+
/* @__PURE__ */ jsx(NumberInputInput, {}),
|
|
90
|
+
/* @__PURE__ */ jsx(NumberInputIncrementTrigger, {})
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
});
|
|
83
94
|
const NumberInput$1 = Object.assign(NumberInputRoot, {
|
|
84
95
|
Root: NumberInputRoot,
|
|
85
96
|
RootProvider: NumberInputRootProvider,
|
|
97
|
+
Context: NumberInput.Context,
|
|
86
98
|
Label: NumberInputLabel,
|
|
87
99
|
Scrubber: NumberInputScrubber,
|
|
88
100
|
Control: NumberInputControl,
|
|
101
|
+
Field: NumberInputField,
|
|
89
102
|
DecrementTrigger: NumberInputDecrementTrigger,
|
|
90
103
|
Input: NumberInputInput,
|
|
91
104
|
IncrementTrigger: NumberInputIncrementTrigger,
|
|
92
105
|
ValueText: NumberInputValueText
|
|
93
106
|
});
|
|
94
107
|
//#endregion
|
|
95
|
-
export { NumberInput$1 as NumberInput };
|
|
108
|
+
export { NumberInput$1 as NumberInput, useNumberInput, useNumberInputContext };
|