@moduix/react 2.2.0 → 2.2.4
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 +15 -2
- package/dist/components/accordion/Accordion.d.ts +12 -13
- package/dist/components/accordion/Accordion.js +69 -68
- package/dist/components/accordion/Accordion.module.js +17 -15
- package/dist/components/accordion/{Accordion.css → Accordion_module.css} +76 -70
- package/dist/components/accordion/index.d.ts +1 -2
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert/Alert.d.ts +10 -12
- package/dist/components/alert/Alert.js +68 -70
- package/dist/components/alert/Alert.module.js +9 -11
- package/dist/components/alert/{Alert.css → Alert_module.css} +58 -57
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +25 -31
- package/dist/components/angle-slider/AngleSlider.js +105 -91
- package/dist/components/angle-slider/AngleSlider.module.js +10 -12
- package/dist/components/angle-slider/AngleSlider_module.css +195 -0
- package/dist/components/angle-slider/index.d.ts +1 -2
- package/dist/components/angle-slider/index.js +1 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +5 -7
- package/dist/components/aspect-ratio/AspectRatio.js +20 -19
- package/dist/components/aspect-ratio/AspectRatio.module.js +5 -5
- package/dist/components/aspect-ratio/{AspectRatio.css → AspectRatio_module.css} +7 -6
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/avatar/Avatar.d.ts +15 -17
- package/dist/components/avatar/Avatar.js +47 -48
- package/dist/components/avatar/Avatar.module.js +6 -8
- package/dist/components/avatar/{Avatar.css → Avatar_module.css} +31 -29
- package/dist/components/avatar/index.d.ts +1 -2
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/badge/Badge.d.ts +6 -8
- package/dist/components/badge/Badge.js +32 -29
- package/dist/components/badge/Badge.module.js +6 -7
- package/dist/components/badge/Badge_module.css +115 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/bleed/Bleed.d.ts +6 -8
- package/dist/components/bleed/Bleed.js +17 -17
- package/dist/components/bleed/Bleed.module.js +5 -5
- package/dist/components/bleed/Bleed_module.css +52 -0
- package/dist/components/bleed/index.d.ts +1 -0
- package/dist/components/bleed/index.js +1 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +17 -24
- package/dist/components/breadcrumbs/Breadcrumbs.js +106 -95
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +11 -13
- package/dist/components/breadcrumbs/{Breadcrumbs.css → Breadcrumbs_module.css} +30 -22
- package/dist/components/breadcrumbs/index.d.ts +1 -2
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/button/Button.d.ts +10 -12
- package/dist/components/button/Button.js +36 -28
- package/dist/components/button/Button.module.js +5 -5
- package/dist/components/button/Button_module.css +230 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/card/Card.d.ts +14 -16
- package/dist/components/card/Card.js +96 -98
- package/dist/components/card/Card.module.js +12 -14
- package/dist/components/card/{Card.css → Card_module.css} +77 -72
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/carousel/Carousel.d.ts +19 -22
- package/dist/components/carousel/Carousel.js +126 -125
- package/dist/components/carousel/Carousel.module.js +15 -17
- package/dist/components/carousel/Carousel_module.css +201 -0
- package/dist/components/carousel/index.d.ts +1 -2
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +15 -17
- package/dist/components/checkbox/Checkbox.js +90 -76
- package/dist/components/checkbox/Checkbox.module.js +9 -11
- package/dist/components/checkbox/{Checkbox.css → Checkbox_module.css} +46 -44
- package/dist/components/checkbox/index.d.ts +1 -2
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/clipboard/Clipboard.d.ts +14 -16
- package/dist/components/clipboard/Clipboard.js +95 -95
- package/dist/components/clipboard/Clipboard.module.js +11 -13
- package/dist/components/clipboard/{Clipboard.css → Clipboard_module.css} +41 -39
- package/dist/components/clipboard/index.d.ts +1 -2
- package/dist/components/clipboard/index.js +1 -0
- package/dist/components/close-button/CloseButton.d.ts +8 -10
- package/dist/components/close-button/CloseButton.js +34 -34
- package/dist/components/close-button/CloseButton.module.js +5 -5
- package/dist/components/close-button/CloseButton_module.css +64 -0
- package/dist/components/close-button/index.d.ts +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/collapsible/Collapsible.d.ts +10 -12
- package/dist/components/collapsible/Collapsible.js +61 -61
- package/dist/components/collapsible/Collapsible.module.js +12 -12
- package/dist/components/collapsible/{Collapsible.css → Collapsible_module.css} +50 -48
- package/dist/components/collapsible/index.d.ts +1 -2
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +36 -38
- package/dist/components/color-picker/ColorPicker.js +325 -293
- package/dist/components/color-picker/ColorPicker.module.js +33 -33
- package/dist/components/color-picker/{ColorPicker.css → ColorPicker_module.css} +176 -142
- package/dist/components/color-picker/index.d.ts +1 -2
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/combobox/Combobox.d.ts +28 -29
- package/dist/components/combobox/Combobox.js +215 -193
- package/dist/components/combobox/Combobox.module.js +23 -22
- package/dist/components/combobox/{Combobox.css → Combobox_module.css} +92 -90
- package/dist/components/combobox/index.d.ts +1 -2
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/command-palette/CommandPalette.d.ts +52 -77
- package/dist/components/command-palette/CommandPalette.js +370 -351
- package/dist/components/command-palette/CommandPalette.module.js +41 -39
- package/dist/components/command-palette/{CommandPalette.css → CommandPalette_module.css} +118 -112
- package/dist/components/command-palette/index.d.ts +1 -2
- package/dist/components/command-palette/index.js +1 -0
- package/dist/components/container/Container.d.ts +6 -8
- package/dist/components/container/Container.js +17 -17
- package/dist/components/container/Container.module.js +5 -5
- package/dist/components/container/Container_module.css +46 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/date-input/DateInput.d.ts +16 -24
- package/dist/components/date-input/DateInput.js +103 -89
- package/dist/components/date-input/DateInput.module.js +9 -11
- package/dist/components/date-input/{DateInput.css → DateInput_module.css} +41 -39
- package/dist/components/date-input/index.d.ts +1 -2
- package/dist/components/date-input/index.js +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +61 -62
- package/dist/components/date-picker/DatePicker.js +429 -367
- package/dist/components/date-picker/DatePicker.module.js +28 -28
- package/dist/components/date-picker/{DatePicker.css → DatePicker_module.css} +119 -127
- package/dist/components/date-picker/index.d.ts +1 -2
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/dialog/Dialog.d.ts +27 -45
- package/dist/components/dialog/Dialog.js +126 -114
- package/dist/components/dialog/Dialog.module.js +22 -20
- package/dist/components/dialog/{Dialog.css → Dialog_module.css} +72 -67
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/drawer/Drawer.d.ts +35 -55
- package/dist/components/drawer/Drawer.js +166 -161
- package/dist/components/drawer/Drawer.module.js +39 -31
- package/dist/components/drawer/Drawer_module.css +546 -0
- package/dist/components/drawer/index.d.ts +1 -2
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/editable/Editable.d.ts +15 -23
- package/dist/components/editable/Editable.js +109 -102
- package/dist/components/editable/Editable.module.js +10 -12
- package/dist/components/editable/{Editable.css → Editable_module.css} +59 -58
- package/dist/components/editable/index.d.ts +1 -2
- package/dist/components/editable/index.js +1 -0
- package/dist/components/empty/Empty.d.ts +7 -9
- package/dist/components/empty/Empty.js +64 -66
- package/dist/components/empty/Empty.module.js +9 -11
- package/dist/components/empty/{Empty.css → Empty_module.css} +31 -18
- package/dist/components/empty/index.d.ts +1 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/field/Field.d.ts +16 -25
- package/dist/components/field/Field.js +93 -93
- package/dist/components/field/Field.module.js +11 -13
- package/dist/components/field/{Field.css → Field_module.css} +28 -41
- package/dist/components/field/index.d.ts +1 -2
- package/dist/components/field/index.js +1 -0
- package/dist/components/fieldset/Fieldset.d.ts +9 -11
- package/dist/components/fieldset/Fieldset.js +48 -48
- package/dist/components/fieldset/Fieldset.module.js +7 -9
- package/dist/components/fieldset/{Fieldset.css → Fieldset_module.css} +13 -12
- package/dist/components/fieldset/index.d.ts +1 -2
- package/dist/components/fieldset/index.js +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +27 -42
- package/dist/components/file-upload/FileUpload.js +196 -176
- package/dist/components/file-upload/FileUpload.module.js +19 -21
- package/dist/components/file-upload/{FileUpload.css → FileUpload_module.css} +113 -101
- package/dist/components/file-upload/index.d.ts +1 -2
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +32 -50
- package/dist/components/floating-panel/FloatingPanel.js +185 -176
- package/dist/components/floating-panel/FloatingPanel.module.js +19 -19
- package/dist/components/floating-panel/{FloatingPanel.css → FloatingPanel_module.css} +124 -129
- package/dist/components/floating-panel/index.d.ts +1 -2
- package/dist/components/floating-panel/index.js +1 -0
- package/dist/components/heading/Heading.d.ts +7 -9
- package/dist/components/heading/Heading.js +26 -26
- package/dist/components/heading/Heading.module.js +5 -5
- package/dist/components/heading/Heading_module.css +59 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/highlight/Highlight.d.ts +6 -12
- package/dist/components/highlight/Highlight.js +14 -14
- package/dist/components/highlight/Highlight.module.js +5 -5
- package/dist/components/highlight/{Highlight.css → Highlight_module.css} +2 -1
- package/dist/components/highlight/index.d.ts +1 -2
- package/dist/components/highlight/index.js +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +17 -28
- package/dist/components/hover-card/HoverCard.js +77 -72
- package/dist/components/hover-card/HoverCard.module.js +12 -12
- package/dist/components/hover-card/{HoverCard.css → HoverCard_module.css} +34 -30
- package/dist/components/hover-card/index.d.ts +1 -2
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/image/Image.d.ts +5 -11
- package/dist/components/image/Image.js +21 -23
- package/dist/components/image/Image.module.js +5 -5
- package/dist/components/image/{Image.css → Image_module.css} +2 -1
- package/dist/components/image/index.d.ts +1 -2
- package/dist/components/image/index.js +1 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +16 -19
- package/dist/components/image-cropper/ImageCropper.js +86 -86
- package/dist/components/image-cropper/ImageCropper.module.js +9 -11
- package/dist/components/image-cropper/{ImageCropper.css → ImageCropper_module.css} +56 -47
- package/dist/components/image-cropper/index.d.ts +1 -2
- package/dist/components/image-cropper/index.js +1 -0
- package/dist/components/input/Input.d.ts +9 -12
- package/dist/components/input/Input.js +19 -18
- package/dist/components/input/Input.module.js +5 -5
- package/dist/components/input/Input_module.css +110 -0
- package/dist/components/input/index.d.ts +1 -2
- package/dist/components/input/index.js +1 -0
- package/dist/components/input-group/InputGroup.d.ts +21 -24
- package/dist/components/input-group/InputGroup.js +64 -66
- package/dist/components/input-group/InputGroup.module.js +8 -10
- package/dist/components/input-group/InputGroup_module.css +162 -0
- package/dist/components/input-group/index.d.ts +1 -2
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/kbd/Kbd.d.ts +3 -5
- package/dist/components/kbd/Kbd.js +24 -26
- package/dist/components/kbd/Kbd.module.js +5 -7
- package/dist/components/kbd/{Kbd.css → Kbd_module.css} +7 -6
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +39 -63
- package/dist/components/lightbox/Lightbox.js +203 -194
- package/dist/components/lightbox/Lightbox.module.js +23 -21
- package/dist/components/lightbox/{Lightbox.css → Lightbox_module.css} +108 -100
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/lightbox/index.js +1 -0
- package/dist/components/list/List.d.ts +10 -13
- package/dist/components/list/List.js +39 -41
- package/dist/components/list/List.module.js +5 -5
- package/dist/components/list/List_module.css +119 -0
- package/dist/components/list/index.d.ts +1 -2
- package/dist/components/list/index.js +1 -0
- package/dist/components/listbox/Listbox.d.ts +30 -46
- package/dist/components/listbox/Listbox.js +158 -156
- package/dist/components/listbox/Listbox.module.js +20 -22
- package/dist/components/listbox/{Listbox.css → Listbox_module.css} +93 -89
- package/dist/components/listbox/index.d.ts +1 -2
- package/dist/components/listbox/index.js +1 -0
- package/dist/components/marquee/Marquee.d.ts +11 -13
- package/dist/components/marquee/Marquee.js +56 -57
- package/dist/components/marquee/Marquee.module.js +12 -12
- package/dist/components/marquee/Marquee_module.css +109 -0
- package/dist/components/marquee/index.d.ts +1 -2
- package/dist/components/marquee/index.js +1 -0
- package/dist/components/menu/Menu.d.ts +48 -78
- package/dist/components/menu/Menu.js +261 -223
- package/dist/components/menu/Menu.module.js +31 -32
- package/dist/components/menu/{Menu.css → Menu_module.css} +121 -116
- package/dist/components/menu/index.d.ts +1 -2
- package/dist/components/menu/index.js +1 -0
- package/dist/components/native-select/NativeSelect.d.ts +6 -9
- package/dist/components/native-select/NativeSelect.js +32 -29
- package/dist/components/native-select/NativeSelect.module.js +6 -8
- package/dist/components/native-select/{NativeSelect.css → NativeSelect_module.css} +38 -32
- package/dist/components/native-select/index.d.ts +1 -2
- package/dist/components/native-select/index.js +1 -0
- package/dist/components/number-input/NumberInput.d.ts +16 -19
- package/dist/components/number-input/NumberInput.js +94 -95
- package/dist/components/number-input/NumberInput.module.js +11 -13
- package/dist/components/number-input/{NumberInput.css → NumberInput_module.css} +52 -49
- package/dist/components/number-input/index.d.ts +1 -2
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/pagination/Pagination.d.ts +15 -18
- package/dist/components/pagination/Pagination.js +103 -94
- package/dist/components/pagination/Pagination.module.js +9 -11
- package/dist/components/pagination/{Pagination.css → Pagination_module.css} +41 -32
- package/dist/components/pagination/index.d.ts +1 -2
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/password-input/PasswordInput.d.ts +14 -16
- package/dist/components/password-input/PasswordInput.js +79 -74
- package/dist/components/password-input/PasswordInput.module.js +9 -11
- package/dist/components/password-input/{PasswordInput.css → PasswordInput_module.css} +49 -55
- package/dist/components/password-input/index.d.ts +1 -2
- package/dist/components/password-input/index.js +1 -0
- package/dist/components/pin-input/PinInput.d.ts +16 -26
- package/dist/components/pin-input/PinInput.js +112 -81
- package/dist/components/pin-input/PinInput.module.js +8 -10
- package/dist/components/pin-input/{PinInput.css → PinInput_module.css} +32 -31
- package/dist/components/pin-input/index.d.ts +1 -2
- package/dist/components/pin-input/index.js +1 -0
- package/dist/components/popover/Popover.d.ts +29 -49
- package/dist/components/popover/Popover.js +151 -145
- package/dist/components/popover/Popover.module.js +19 -19
- package/dist/components/popover/{Popover.css → Popover_module.css} +49 -39
- package/dist/components/popover/index.d.ts +1 -2
- package/dist/components/popover/index.js +1 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +17 -20
- package/dist/components/progress-circular/ProgressCircular.js +82 -81
- package/dist/components/progress-circular/ProgressCircular.module.js +12 -13
- package/dist/components/progress-circular/{ProgressCircular.css → ProgressCircular_module.css} +27 -16
- package/dist/components/progress-circular/index.d.ts +1 -2
- package/dist/components/progress-circular/index.js +1 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +13 -16
- package/dist/components/progress-linear/ProgressLinear.js +64 -66
- package/dist/components/progress-linear/ProgressLinear.module.js +13 -13
- package/dist/components/progress-linear/{ProgressLinear.css → ProgressLinear_module.css} +49 -37
- package/dist/components/progress-linear/index.d.ts +1 -2
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/qr-code/QrCode.d.ts +10 -12
- package/dist/components/qr-code/QrCode.js +56 -56
- package/dist/components/qr-code/QrCode.module.js +8 -10
- package/dist/components/qr-code/{QrCode.css → QrCode_module.css} +25 -10
- package/dist/components/qr-code/index.d.ts +1 -2
- package/dist/components/qr-code/index.js +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +20 -20
- package/dist/components/radio-group/RadioGroup.js +93 -78
- package/dist/components/radio-group/RadioGroup.module.js +9 -11
- package/dist/components/radio-group/RadioGroup_module.css +157 -0
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/rating-group/RatingGroup.d.ts +20 -24
- package/dist/components/rating-group/RatingGroup.js +99 -84
- package/dist/components/rating-group/RatingGroup.module.js +10 -12
- package/dist/components/rating-group/RatingGroup_module.css +139 -0
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +20 -21
- package/dist/components/scroll-area/ScrollArea.js +69 -69
- package/dist/components/scroll-area/ScrollArea.module.js +9 -11
- package/dist/components/scroll-area/ScrollArea_module.css +176 -0
- package/dist/components/scroll-area/index.d.ts +2 -2
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +22 -23
- package/dist/components/segment-group/SegmentGroup.js +120 -77
- package/dist/components/segment-group/SegmentGroup.module.js +9 -11
- package/dist/components/segment-group/{SegmentGroup.css → SegmentGroup_module.css} +44 -41
- package/dist/components/segment-group/index.d.ts +1 -2
- package/dist/components/segment-group/index.js +1 -0
- package/dist/components/select/Select.d.ts +40 -52
- package/dist/components/select/Select.js +273 -234
- package/dist/components/select/Select.module.js +25 -25
- package/dist/components/select/{Select.css → Select_module.css} +98 -92
- package/dist/components/select/index.d.ts +1 -2
- package/dist/components/select/index.js +1 -0
- package/dist/components/separator/Separator.d.ts +7 -9
- package/dist/components/separator/Separator.js +22 -22
- package/dist/components/separator/Separator.module.js +5 -5
- package/dist/components/separator/Separator_module.css +47 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +53 -67
- package/dist/components/sidebar/Sidebar.js +342 -329
- package/dist/components/sidebar/Sidebar.module.js +26 -28
- package/dist/components/sidebar/{Sidebar.css → Sidebar_module.css} +181 -178
- package/dist/components/sidebar/index.d.ts +1 -2
- package/dist/components/sidebar/index.js +1 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +16 -19
- package/dist/components/signature-pad/SignaturePad.js +118 -105
- package/dist/components/signature-pad/SignaturePad.module.js +9 -11
- package/dist/components/signature-pad/{SignaturePad.css → SignaturePad_module.css} +20 -26
- package/dist/components/signature-pad/index.d.ts +1 -2
- package/dist/components/signature-pad/index.js +1 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +9 -11
- package/dist/components/simple-grid/SimpleGrid.js +31 -27
- package/dist/components/simple-grid/index.d.ts +1 -0
- package/dist/components/simple-grid/index.js +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +10 -12
- package/dist/components/skeleton/Skeleton.js +27 -27
- package/dist/components/skeleton/Skeleton.module.js +5 -5
- package/dist/components/skeleton/Skeleton_module.css +35 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/slider/Slider.d.ts +21 -26
- package/dist/components/slider/Slider.js +119 -110
- package/dist/components/slider/Slider.module.js +13 -15
- package/dist/components/slider/{Slider.css → Slider_module.css} +117 -66
- package/dist/components/slider/index.d.ts +1 -2
- package/dist/components/slider/index.js +1 -0
- package/dist/components/spinner/Spinner.d.ts +7 -9
- package/dist/components/spinner/Spinner.js +35 -35
- package/dist/components/spinner/Spinner.module.js +6 -8
- package/dist/components/spinner/{Spinner.css → Spinner_module.css} +13 -14
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/split-button/SplitButton.d.ts +20 -24
- package/dist/components/split-button/SplitButton.js +80 -81
- package/dist/components/split-button/SplitButton.module.js +6 -8
- package/dist/components/split-button/{SplitButton.css → SplitButton_module.css} +10 -9
- package/dist/components/split-button/index.d.ts +1 -2
- package/dist/components/split-button/index.js +1 -0
- package/dist/components/splitter/Splitter.d.ts +10 -11
- package/dist/components/splitter/Splitter.js +58 -59
- package/dist/components/splitter/Splitter.module.js +7 -9
- package/dist/components/splitter/{Splitter.css → Splitter_module.css} +68 -70
- package/dist/components/splitter/index.d.ts +1 -2
- package/dist/components/splitter/index.js +1 -0
- package/dist/components/stack/Stack.d.ts +17 -20
- package/dist/components/stack/Stack.js +29 -29
- package/dist/components/stack/Stack.module.js +5 -5
- package/dist/components/stack/{Stack.css → Stack_module.css} +4 -3
- package/dist/components/stack/index.d.ts +1 -2
- package/dist/components/stack/index.js +1 -0
- package/dist/components/steps/Steps.d.ts +24 -19
- package/dist/components/steps/Steps.js +109 -108
- package/dist/components/steps/Steps.module.js +14 -16
- package/dist/components/steps/{Steps.css → Steps_module.css} +138 -116
- package/dist/components/steps/index.d.ts +1 -2
- package/dist/components/steps/index.js +1 -0
- package/dist/components/swap/Swap.d.ts +15 -10
- package/dist/components/swap/Swap.js +34 -33
- package/dist/components/swap/Swap.module.js +21 -10
- package/dist/components/swap/Swap_module.css +118 -0
- package/dist/components/swap/index.d.ts +1 -2
- package/dist/components/swap/index.js +1 -0
- package/dist/components/switch/Switch.d.ts +15 -17
- package/dist/components/switch/Switch.js +66 -60
- package/dist/components/switch/Switch.module.js +7 -9
- package/dist/components/switch/{Switch.css → Switch_module.css} +52 -40
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/Table.d.ts +31 -33
- package/dist/components/table/Table.js +155 -157
- package/dist/components/table/Table.module.js +14 -16
- package/dist/components/table/{Table.css → Table_module.css} +55 -54
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/tabs/Tabs.d.ts +16 -18
- package/dist/components/tabs/Tabs.js +61 -59
- package/dist/components/tabs/Tabs.module.js +8 -10
- package/dist/components/tabs/{Tabs.css → Tabs_module.css} +85 -84
- package/dist/components/tabs/index.d.ts +1 -2
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tag/Tag.d.ts +10 -12
- package/dist/components/tag/Tag.js +62 -64
- package/dist/components/tag/Tag.module.js +8 -10
- package/dist/components/tag/{Tag.css → Tag_module.css} +41 -39
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tags-input/TagsInput.d.ts +18 -21
- package/dist/components/tags-input/TagsInput.js +183 -133
- package/dist/components/tags-input/TagsInput.module.js +13 -15
- package/dist/components/tags-input/{TagsInput.css → TagsInput_module.css} +69 -64
- package/dist/components/tags-input/index.d.ts +1 -2
- package/dist/components/tags-input/index.js +1 -0
- package/dist/components/text/Text.d.ts +12 -14
- package/dist/components/text/Text.js +38 -37
- package/dist/components/text/Text.module.js +5 -5
- package/dist/components/text/Text_module.css +100 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +1 -0
- package/dist/components/textarea/Textarea.d.ts +3 -6
- package/dist/components/textarea/Textarea.js +16 -18
- package/dist/components/textarea/Textarea.module.js +5 -5
- package/dist/components/textarea/{Textarea.css → Textarea_module.css} +11 -10
- package/dist/components/textarea/index.d.ts +1 -2
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/timer/Timer.d.ts +19 -25
- package/dist/components/timer/Timer.js +84 -71
- package/dist/components/timer/Timer.module.js +9 -11
- package/dist/components/timer/{Timer.css → Timer_module.css} +33 -27
- package/dist/components/timer/index.d.ts +1 -2
- package/dist/components/timer/index.js +1 -0
- package/dist/components/toast/Toast.d.ts +15 -17
- package/dist/components/toast/Toast.js +95 -89
- package/dist/components/toast/Toast.module.js +9 -11
- package/dist/components/toast/{Toast.css → Toast_module.css} +40 -39
- package/dist/components/toast/index.d.ts +1 -2
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toggle/Toggle.d.ts +11 -13
- package/dist/components/toggle/Toggle.js +26 -27
- package/dist/components/toggle/Toggle.module.js +5 -7
- package/dist/components/toggle/Toggle_module.css +169 -0
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +18 -20
- package/dist/components/toggle-group/ToggleGroup.js +57 -57
- package/dist/components/toggle-group/ToggleGroup.module.js +5 -7
- package/dist/components/toggle-group/{ToggleGroup.css → ToggleGroup_module.css} +22 -18
- package/dist/components/toggle-group/index.d.ts +1 -2
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +19 -28
- package/dist/components/tooltip/Tooltip.js +96 -71
- package/dist/components/tooltip/Tooltip.module.js +13 -12
- package/dist/components/tooltip/{Tooltip.css → Tooltip_module.css} +44 -31
- package/dist/components/tooltip/index.d.ts +1 -2
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tour/Tour.d.ts +27 -34
- package/dist/components/tour/Tour.js +157 -136
- package/dist/components/tour/Tour.module.js +25 -22
- package/dist/components/tour/{Tour.css → Tour_module.css} +164 -98
- package/dist/components/tour/index.d.ts +1 -2
- package/dist/components/tour/index.js +1 -0
- package/dist/components/tree-view/TreeView.d.ts +37 -31
- package/dist/components/tree-view/TreeView.js +184 -164
- package/dist/components/tree-view/TreeView.module.js +27 -25
- package/dist/components/tree-view/{TreeView.css → TreeView_module.css} +90 -73
- package/dist/components/tree-view/index.d.ts +1 -2
- package/dist/components/tree-view/index.js +1 -0
- package/dist/components/typeset/Typeset.d.ts +4 -6
- package/dist/components/typeset/Typeset.js +28 -26
- package/dist/components/typeset/Typeset.module.js +5 -7
- package/dist/components/typeset/Typeset_module.css +325 -0
- package/dist/components/typeset/index.d.ts +1 -0
- package/dist/components/typeset/index.js +1 -0
- package/dist/internal/icons/ui/Icons.d.ts +45 -0
- package/dist/internal/icons/ui/Icons.js +969 -0
- package/dist/internal/icons/ui/index.d.ts +1 -0
- package/dist/internal/icons/ui/index.js +1 -0
- package/dist/internal/normalizeClassName.d.ts +1 -0
- package/dist/internal/normalizeClassName.js +2 -0
- package/dist/internal/overlayPortal.d.ts +13 -0
- package/dist/internal/overlayPortal.js +20 -0
- package/dist/locale.d.ts +1 -0
- package/dist/locale.js +1 -0
- package/dist/presets/contrast.css +131 -0
- package/dist/presets/dense.css +144 -0
- package/dist/presets/soft.css +143 -0
- package/dist/styles/animations.css +63 -0
- package/dist/styles/borders.css +10 -0
- package/dist/styles/colors.css +206 -0
- package/dist/styles/opacity.css +6 -0
- package/dist/styles/radius.css +11 -0
- package/dist/{lib/moduix/styles → styles}/reset.css +53 -38
- package/dist/styles/shadows.css +6 -0
- package/dist/styles/sizing.css +8 -0
- package/dist/styles/spacing.css +24 -0
- package/dist/styles/style.css +14 -0
- package/dist/styles/transforms.css +5 -0
- package/dist/styles/transitions.css +28 -0
- package/dist/styles/typography.css +27 -0
- package/dist/styles/z-index.css +13 -0
- package/package.json +385 -25
- package/dist/components/angle-slider/AngleSlider.css +0 -193
- package/dist/components/badge/Badge.css +0 -110
- package/dist/components/bleed/Bleed.css +0 -51
- package/dist/components/button/Button.css +0 -216
- package/dist/components/carousel/Carousel.css +0 -200
- package/dist/components/close-button/CloseButton.css +0 -49
- package/dist/components/container/Container.css +0 -45
- package/dist/components/drawer/Drawer.css +0 -501
- package/dist/components/heading/Heading.css +0 -58
- package/dist/components/input/Input.css +0 -84
- package/dist/components/input-group/InputGroup.css +0 -159
- package/dist/components/list/List.css +0 -118
- package/dist/components/marquee/Marquee.css +0 -114
- package/dist/components/radio-group/RadioGroup.css +0 -147
- package/dist/components/rating-group/RatingGroup.css +0 -133
- package/dist/components/scroll-area/ScrollArea.css +0 -167
- package/dist/components/separator/Separator.css +0 -45
- package/dist/components/skeleton/Skeleton.css +0 -31
- package/dist/components/swap/Swap.css +0 -45
- package/dist/components/text/Text.css +0 -87
- package/dist/components/toggle/Toggle.css +0 -167
- package/dist/components/typeset/Typeset.css +0 -317
- package/dist/index.d.ts +0 -86
- package/dist/index.js +0 -86
- package/dist/lib/moduix/icons/ui/Icons.d.ts +0 -7
- package/dist/lib/moduix/icons/ui/Icons.js +0 -532
- package/dist/lib/moduix/icons/ui/index.d.ts +0 -2
- package/dist/lib/moduix/normalizeClassName.js +0 -4
- package/dist/lib/moduix/overlayPortal.d.ts +0 -9
- package/dist/lib/moduix/overlayPortal.js +0 -21
- package/dist/lib/moduix/presets/contrast.css +0 -64
- package/dist/lib/moduix/presets/dense.css +0 -77
- package/dist/lib/moduix/presets/soft.css +0 -76
- package/dist/lib/moduix/styles/style.css +0 -305
- package/dist/presets/contrast.d.ts +0 -1
- package/dist/presets/contrast.js +0 -1
- package/dist/presets/dense.d.ts +0 -1
- package/dist/presets/dense.js +0 -1
- package/dist/presets/soft.d.ts +0 -1
- package/dist/presets/soft.js +0 -1
- package/dist/reset.d.ts +0 -1
- package/dist/reset.js +0 -1
- package/dist/style.d.ts +0 -1
- package/dist/style.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer moduix.components {
|
|
2
|
-
.
|
|
2
|
+
.trigger-GnJcCa, .contextTrigger-jyrQRV {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
font-size: var(--moduix-menu-trigger-font-size, var(--moduix-text-sm));
|
|
17
17
|
font-weight: var(--moduix-menu-trigger-font-weight, var(--moduix-weight-medium));
|
|
18
18
|
line-height: var(--moduix-menu-trigger-line-height, var(--moduix-line-height-text-sm));
|
|
19
|
+
-webkit-user-select: none;
|
|
19
20
|
user-select: none;
|
|
20
21
|
cursor: pointer;
|
|
21
22
|
transition: background-color var(--moduix-menu-transition, var(--moduix-transition-default)),
|
|
@@ -24,37 +25,31 @@
|
|
|
24
25
|
outline: 0;
|
|
25
26
|
margin: 0;
|
|
26
27
|
display: inline-flex;
|
|
28
|
+
}
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
30
|
+
@media (hover: hover) {
|
|
31
|
+
:is(.trigger-GnJcCa, .contextTrigger-jyrQRV):hover {
|
|
32
|
+
background-color: var(--moduix-menu-trigger-bg-hover);
|
|
32
33
|
}
|
|
34
|
+
}
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
:is(.trigger-GnJcCa, .contextTrigger-jyrQRV):active, :is(.trigger-GnJcCa, .contextTrigger-jyrQRV)[data-current][data-state="open"] {
|
|
37
|
+
background-color: var(--moduix-menu-trigger-bg-active, var(--moduix-menu-trigger-bg-hover));
|
|
38
|
+
}
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
:is(.trigger-GnJcCa, .contextTrigger-jyrQRV):focus-visible {
|
|
41
|
+
outline: var(--moduix-menu-focus-ring-width, var(--moduix-menu-trigger-border-width, var(--moduix-border-width-sm)))
|
|
40
42
|
solid var(--moduix-menu-focus-ring-color, var(--moduix-color-ring));
|
|
41
|
-
|
|
43
|
+
outline-offset: calc(var(--moduix-menu-focus-ring-width, var(--moduix-menu-trigger-border-width, var(--moduix-border-width-sm))) *
|
|
42
44
|
-1);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&[data-disabled], &:disabled {
|
|
46
|
-
pointer-events: none;
|
|
47
|
-
opacity: var(--moduix-menu-disabled-opacity, var(--moduix-opacity-disabled));
|
|
48
|
-
}
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
border-style: var(--moduix-menu-context-trigger-border-style, dashed);
|
|
47
|
+
:is(.trigger-GnJcCa, .contextTrigger-jyrQRV)[data-disabled], :is(.trigger-GnJcCa, .contextTrigger-jyrQRV):disabled {
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
opacity: var(--moduix-menu-disabled-opacity, var(--moduix-opacity-disabled));
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
.
|
|
52
|
+
.triggerIcon-N7XJst, .indicator-E0mVnS {
|
|
58
53
|
box-sizing: border-box;
|
|
59
54
|
width: var(--moduix-menu-trigger-icon-size, var(--moduix-spacing-4));
|
|
60
55
|
height: var(--moduix-menu-trigger-icon-size, var(--moduix-spacing-4));
|
|
@@ -65,26 +60,26 @@
|
|
|
65
60
|
display: inline-flex;
|
|
66
61
|
}
|
|
67
62
|
|
|
68
|
-
.
|
|
63
|
+
.iconSvg-BqAnRB, .indicator-E0mVnS > svg {
|
|
69
64
|
width: 100%;
|
|
70
65
|
height: 100%;
|
|
71
66
|
}
|
|
72
67
|
|
|
73
|
-
.
|
|
68
|
+
.positioner-Dxj8G1 {
|
|
74
69
|
z-index: var(--z-index);
|
|
75
70
|
width: var(--positioner-width, auto);
|
|
76
71
|
max-width: var(--available-width);
|
|
77
72
|
outline: 0;
|
|
78
73
|
}
|
|
79
74
|
|
|
80
|
-
.
|
|
75
|
+
.content-yFF7GN {
|
|
81
76
|
--arrow-size: var(--moduix-menu-arrow-size, var(--moduix-spacing-2-5));
|
|
82
77
|
--arrow-background: var(--moduix-menu-popup-bg, var(--moduix-color-popover));
|
|
83
78
|
box-sizing: border-box;
|
|
84
79
|
min-width: min(max(var(--reference-width, 0px), var(--moduix-menu-popup-min-width, 12rem)),
|
|
85
80
|
var(--available-width, 100vw));
|
|
86
81
|
max-width: min(var(--moduix-menu-popup-max-width, 20rem), var(--available-width, 100vw));
|
|
87
|
-
|
|
82
|
+
overflow: var(--moduix-menu-popup-overflow, visible);
|
|
88
83
|
padding-block: var(--moduix-menu-popup-padding-y, var(--moduix-popup-list-padding-y, var(--moduix-spacing-1)));
|
|
89
84
|
border-radius: var(--moduix-menu-popup-radius, var(--moduix-radius-md));
|
|
90
85
|
background-color: var(--moduix-menu-popup-bg, var(--moduix-color-popover));
|
|
@@ -97,34 +92,39 @@
|
|
|
97
92
|
flex-direction: column;
|
|
98
93
|
display: flex;
|
|
99
94
|
position: relative;
|
|
100
|
-
|
|
95
|
+
}
|
|
101
96
|
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
.content-yFF7GN[data-state="open"] {
|
|
98
|
+
animation: menuContentIn-XDpUnW
|
|
104
99
|
var(--moduix-menu-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
105
100
|
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
106
|
-
|
|
101
|
+
}
|
|
107
102
|
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
.content-yFF7GN .contentViewport-GpY3ZX {
|
|
104
|
+
max-height: min(var(--moduix-menu-popup-max-height, 24rem), var(--available-height, 100dvh));
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
display: flex;
|
|
107
|
+
overflow: auto;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.content-yFF7GN[data-state="closed"] {
|
|
111
|
+
animation: menuContentOut-Q7Drkj
|
|
110
112
|
var(--moduix-menu-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
111
113
|
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
112
|
-
}
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
.
|
|
116
|
+
.arrow-sziCms {
|
|
116
117
|
--arrow-background: var(--moduix-menu-popup-bg, var(--moduix-color-popover));
|
|
117
|
-
z-index: -1;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.
|
|
120
|
+
.arrowTip-h3KKa6 {
|
|
121
121
|
border-block-start: var(--moduix-menu-popup-border-width, var(--moduix-border-width-sm)) solid
|
|
122
122
|
var(--moduix-menu-arrow-stroke-color, var(--moduix-menu-popup-border-color, var(--moduix-color-border)));
|
|
123
123
|
border-inline-start: var(--moduix-menu-popup-border-width, var(--moduix-border-width-sm)) solid
|
|
124
124
|
var(--moduix-menu-arrow-stroke-color, var(--moduix-menu-popup-border-color, var(--moduix-color-border)));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.
|
|
127
|
+
.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO {
|
|
128
128
|
box-sizing: border-box;
|
|
129
129
|
min-height: var(--moduix-menu-item-height, var(--moduix-popup-item-min-height, var(--moduix-size-sm)));
|
|
130
130
|
border-radius: var(--moduix-menu-item-radius, var(--moduix-radius-sm));
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
font: inherit;
|
|
134
134
|
font-size: var(--moduix-menu-item-font-size, var(--moduix-popup-item-font-size, var(--moduix-text-sm)));
|
|
135
135
|
line-height: var(--moduix-menu-item-line-height, var(--moduix-popup-item-line-height, var(--moduix-line-height-text-sm)));
|
|
136
|
+
-webkit-user-select: none;
|
|
136
137
|
user-select: none;
|
|
137
138
|
cursor: default;
|
|
138
139
|
border: 0;
|
|
@@ -140,50 +141,50 @@
|
|
|
140
141
|
margin: 0;
|
|
141
142
|
text-decoration: none;
|
|
142
143
|
position: relative;
|
|
144
|
+
}
|
|
143
145
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
&:before {
|
|
148
|
-
content: "";
|
|
149
|
-
z-index: -1;
|
|
150
|
-
inset-block: 0;
|
|
151
|
-
inset-inline: var(--moduix-menu-highlight-inset-x, var(--moduix-popup-highlight-inset-x, var(--moduix-spacing-1)));
|
|
152
|
-
border-radius: var(--moduix-menu-highlight-radius, var(--moduix-popup-highlight-radius, var(--moduix-radius-sm)));
|
|
153
|
-
background-color: var(--moduix-menu-submenu-open-bg, var(--moduix-color-accent));
|
|
154
|
-
position: absolute;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
146
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO):is([data-highlighted], [data-state="open"]) {
|
|
147
|
+
z-index: 0;
|
|
148
|
+
}
|
|
157
149
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
150
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO):is([data-highlighted], [data-state="open"]):before {
|
|
151
|
+
content: "";
|
|
152
|
+
z-index: -1;
|
|
153
|
+
inset-block: 0;
|
|
154
|
+
inset-inline: var(--moduix-menu-highlight-inset-x, var(--moduix-popup-highlight-inset-x, var(--moduix-spacing-1)));
|
|
155
|
+
border-radius: var(--moduix-menu-highlight-radius, var(--moduix-popup-highlight-radius, var(--moduix-radius-sm)));
|
|
156
|
+
background-color: var(--moduix-menu-submenu-open-bg, var(--moduix-color-accent));
|
|
157
|
+
position: absolute;
|
|
158
|
+
}
|
|
161
159
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-highlighted] {
|
|
161
|
+
color: var(--moduix-menu-highlight-color, var(--moduix-color-accent-foreground));
|
|
162
|
+
}
|
|
165
163
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
color: var(--moduix-menu-item-disabled-color, var(--moduix-color-muted-foreground));
|
|
170
|
-
cursor: default;
|
|
171
|
-
}
|
|
164
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-highlighted]:before {
|
|
165
|
+
background-color: var(--moduix-menu-highlight-bg, var(--moduix-color-accent));
|
|
166
|
+
}
|
|
172
167
|
|
|
173
|
-
|
|
174
|
-
|
|
168
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-disabled] {
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
background-color: var(--moduix-menu-item-bg-disabled, var(--moduix-menu-item-bg, transparent));
|
|
171
|
+
color: var(--moduix-menu-item-disabled-color, var(--moduix-color-muted-foreground));
|
|
172
|
+
cursor: default;
|
|
173
|
+
}
|
|
175
174
|
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-tone="destructive"] {
|
|
176
|
+
color: var(--moduix-menu-item-destructive-color, var(--moduix-color-destructive));
|
|
177
|
+
}
|
|
178
178
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
179
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-tone="destructive"][data-highlighted] {
|
|
180
|
+
color: var(--moduix-menu-item-destructive-highlight-color, var(--moduix-menu-item-destructive-color, var(--moduix-color-destructive)));
|
|
184
181
|
}
|
|
185
182
|
|
|
186
|
-
.
|
|
183
|
+
:is(.item-DZSt0x, .triggerItem-hvuoWI, .radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-tone="destructive"][data-highlighted]:before {
|
|
184
|
+
background-color: var(--moduix-menu-item-destructive-highlight-bg, color-mix(in oklab, var(--moduix-color-destructive) 12%, transparent));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.item-DZSt0x {
|
|
187
188
|
align-items: center;
|
|
188
189
|
gap: var(--moduix-menu-item-gap, var(--moduix-spacing-2));
|
|
189
190
|
padding-block: var(--moduix-menu-item-padding-y, var(--moduix-popup-item-padding-y, var(--moduix-spacing-1)));
|
|
@@ -192,7 +193,7 @@
|
|
|
192
193
|
display: flex;
|
|
193
194
|
}
|
|
194
195
|
|
|
195
|
-
.
|
|
196
|
+
.triggerItem-hvuoWI {
|
|
196
197
|
justify-content: space-between;
|
|
197
198
|
align-items: center;
|
|
198
199
|
gap: var(--moduix-menu-trigger-item-gap, var(--moduix-spacing-3));
|
|
@@ -202,7 +203,7 @@
|
|
|
202
203
|
display: flex;
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
.
|
|
206
|
+
.triggerItemIcon-hMUDIf {
|
|
206
207
|
box-sizing: border-box;
|
|
207
208
|
width: var(--moduix-menu-trigger-item-icon-size, var(--moduix-spacing-3-5));
|
|
208
209
|
height: var(--moduix-menu-trigger-item-icon-size, var(--moduix-spacing-3-5));
|
|
@@ -211,12 +212,16 @@
|
|
|
211
212
|
display: inline-flex;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
|
-
.
|
|
215
|
+
.triggerItemIcon-hMUDIf:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
216
|
+
transform: scaleX(-1);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.itemGroup-XRBydJ {
|
|
215
220
|
padding-block: var(--moduix-menu-group-padding-y, 0);
|
|
216
221
|
display: grid;
|
|
217
222
|
}
|
|
218
223
|
|
|
219
|
-
.
|
|
224
|
+
.itemGroupLabel-xvJRDv {
|
|
220
225
|
padding-block: var(--moduix-menu-group-label-padding-y, var(--moduix-popup-group-label-padding-y, var(--moduix-spacing-1)));
|
|
221
226
|
padding-inline: var(--moduix-menu-group-label-padding-x-start, var(--moduix-popup-group-label-padding-x-start, var(--moduix-spacing-2-5)))
|
|
222
227
|
var(--moduix-menu-group-label-padding-x-end, var(--moduix-popup-group-label-padding-x-end, var(--moduix-spacing-3)));
|
|
@@ -224,16 +229,17 @@
|
|
|
224
229
|
font-size: var(--moduix-menu-group-label-font-size, var(--moduix-popup-group-label-font-size, var(--moduix-text-xs)));
|
|
225
230
|
font-weight: var(--moduix-menu-group-label-font-weight, var(--moduix-popup-group-label-font-weight, var(--moduix-weight-regular)));
|
|
226
231
|
line-height: var(--moduix-menu-group-label-line-height, var(--moduix-popup-group-label-line-height, var(--moduix-line-height-text-xs)));
|
|
232
|
+
-webkit-user-select: none;
|
|
227
233
|
user-select: none;
|
|
228
234
|
cursor: default;
|
|
229
235
|
margin: 0;
|
|
230
236
|
}
|
|
231
237
|
|
|
232
|
-
.
|
|
238
|
+
.radioItemGroup-EzfpoY {
|
|
233
239
|
display: grid;
|
|
234
240
|
}
|
|
235
241
|
|
|
236
|
-
.
|
|
242
|
+
.radioItem-dEpPt0, .checkboxItem-fPj1rO {
|
|
237
243
|
align-items: center;
|
|
238
244
|
gap: var(--moduix-menu-check-gap, var(--moduix-popup-check-gap, var(--moduix-spacing-2)));
|
|
239
245
|
grid-template-columns: var(--moduix-menu-check-indicator-size, var(--moduix-popup-check-indicator-size, var(--moduix-spacing-3)))
|
|
@@ -242,43 +248,41 @@
|
|
|
242
248
|
padding-inline: var(--moduix-menu-check-padding-x-start, var(--moduix-popup-check-padding-x-start, var(--moduix-spacing-2-5)))
|
|
243
249
|
var(--moduix-menu-item-padding-x-end, var(--moduix-popup-item-padding-x-end, var(--moduix-spacing-3)));
|
|
244
250
|
display: grid;
|
|
251
|
+
}
|
|
245
252
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
253
|
+
:is(.radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-indicator-position="none"] {
|
|
254
|
+
grid-template-columns: minmax(0, 1fr);
|
|
255
|
+
padding-inline-start: var(--moduix-menu-item-padding-x-start, var(--moduix-popup-item-padding-x-start, var(--moduix-spacing-3)));
|
|
256
|
+
}
|
|
249
257
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
258
|
+
:is(.radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-indicator-position="none"] > .itemIndicator-hAUfu1 {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
253
261
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
262
|
+
:is(.radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-indicator-position="none"] > .itemText-bAw_c1 {
|
|
263
|
+
grid-column-start: 1;
|
|
264
|
+
}
|
|
258
265
|
|
|
259
|
-
|
|
260
|
-
|
|
266
|
+
:is(.radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-indicator-position="end"] {
|
|
267
|
+
grid-template-columns: minmax(0, 1fr)
|
|
261
268
|
var(--moduix-menu-check-indicator-size, var(--moduix-popup-check-indicator-size, var(--moduix-spacing-3)));
|
|
269
|
+
}
|
|
262
270
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
271
|
+
:is(.radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-indicator-position="end"] > .itemText-bAw_c1 {
|
|
272
|
+
grid-column-start: 1;
|
|
273
|
+
}
|
|
266
274
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
}
|
|
275
|
+
:is(.radioItem-dEpPt0, .checkboxItem-fPj1rO)[data-indicator-position="end"] > .itemIndicator-hAUfu1 {
|
|
276
|
+
grid-column-start: 2;
|
|
277
|
+
justify-self: end;
|
|
272
278
|
}
|
|
273
279
|
|
|
274
|
-
.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
border-color: var(--moduix-menu-checkbox-indicator-border-color-checked, var(--moduix-menu-checkbox-indicator-border-color, currentColor));
|
|
278
|
-
}
|
|
280
|
+
.checkboxItem-fPj1rO[data-state="checked"] > .itemIndicator-hAUfu1 {
|
|
281
|
+
background-color: var(--moduix-menu-checkbox-indicator-bg-checked, var(--moduix-menu-checkbox-indicator-bg, transparent));
|
|
282
|
+
border-color: var(--moduix-menu-checkbox-indicator-border-color-checked, var(--moduix-menu-checkbox-indicator-border-color, currentColor));
|
|
279
283
|
}
|
|
280
284
|
|
|
281
|
-
.
|
|
285
|
+
.itemIndicator-hAUfu1 {
|
|
282
286
|
width: var(--moduix-menu-check-indicator-size, var(--moduix-popup-check-indicator-size, var(--moduix-spacing-3)));
|
|
283
287
|
height: var(--moduix-menu-check-indicator-size, var(--moduix-popup-check-indicator-size, var(--moduix-spacing-3)));
|
|
284
288
|
border: var(--moduix-menu-checkbox-indicator-border-width, 0) solid
|
|
@@ -289,24 +293,24 @@
|
|
|
289
293
|
justify-content: center;
|
|
290
294
|
align-items: center;
|
|
291
295
|
display: inline-flex;
|
|
296
|
+
}
|
|
292
297
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
298
|
+
.itemIndicator-hAUfu1[data-state="checked"] {
|
|
299
|
+
color: var(--moduix-menu-item-indicator-color-checked, currentColor);
|
|
296
300
|
}
|
|
297
301
|
|
|
298
|
-
.
|
|
302
|
+
.itemIndicatorIcon-GDT0ww {
|
|
299
303
|
width: 100%;
|
|
300
304
|
height: 100%;
|
|
301
305
|
}
|
|
302
306
|
|
|
303
|
-
.
|
|
307
|
+
.itemText-bAw_c1 {
|
|
304
308
|
grid-column-start: 2;
|
|
305
309
|
min-width: 0;
|
|
306
310
|
overflow: hidden;
|
|
307
311
|
}
|
|
308
312
|
|
|
309
|
-
.
|
|
313
|
+
.itemTextContent-n45S95 {
|
|
310
314
|
align-items: center;
|
|
311
315
|
gap: var(--moduix-menu-item-text-content-gap, var(--moduix-spacing-2));
|
|
312
316
|
vertical-align: top;
|
|
@@ -315,7 +319,7 @@
|
|
|
315
319
|
display: inline-flex;
|
|
316
320
|
}
|
|
317
321
|
|
|
318
|
-
.
|
|
322
|
+
.itemTextIcon-VvwPBT {
|
|
319
323
|
width: var(--moduix-menu-item-text-icon-size, var(--moduix-spacing-4));
|
|
320
324
|
height: var(--moduix-menu-item-text-icon-size, var(--moduix-spacing-4));
|
|
321
325
|
color: var(--moduix-menu-item-text-icon-color, currentColor);
|
|
@@ -325,14 +329,14 @@
|
|
|
325
329
|
display: inline-flex;
|
|
326
330
|
}
|
|
327
331
|
|
|
328
|
-
.
|
|
332
|
+
.itemTextLabel-o2rZzl {
|
|
329
333
|
text-overflow: ellipsis;
|
|
330
334
|
white-space: nowrap;
|
|
331
335
|
min-width: 0;
|
|
332
336
|
overflow: hidden;
|
|
333
337
|
}
|
|
334
338
|
|
|
335
|
-
.
|
|
339
|
+
.itemShortcut-sUTFok {
|
|
336
340
|
color: var(--moduix-menu-item-shortcut-color, var(--moduix-color-muted-foreground));
|
|
337
341
|
font-size: var(--moduix-menu-item-shortcut-font-size, var(--moduix-text-xs));
|
|
338
342
|
line-height: var(--moduix-menu-item-shortcut-line-height, var(--moduix-line-height-text-xs));
|
|
@@ -341,7 +345,7 @@
|
|
|
341
345
|
padding-inline-start: var(--moduix-menu-item-shortcut-padding-x-start, var(--moduix-spacing-4));
|
|
342
346
|
}
|
|
343
347
|
|
|
344
|
-
.
|
|
348
|
+
.separator-gjooPr {
|
|
345
349
|
box-sizing: border-box;
|
|
346
350
|
height: var(--moduix-menu-separator-height, var(--moduix-border-width-sm));
|
|
347
351
|
margin-block: var(--moduix-menu-separator-margin-y, var(--moduix-popup-separator-margin-y, var(--moduix-spacing-1-5)));
|
|
@@ -351,7 +355,7 @@
|
|
|
351
355
|
border: 0;
|
|
352
356
|
}
|
|
353
357
|
|
|
354
|
-
@keyframes
|
|
358
|
+
@keyframes menuContentIn-XDpUnW {
|
|
355
359
|
from {
|
|
356
360
|
opacity: var(--moduix-menu-popup-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
|
|
357
361
|
translate: var(--moduix-menu-popup-starting-translate-x, var(--moduix-popup-motion-starting-translate-x, 0))
|
|
@@ -365,7 +369,7 @@
|
|
|
365
369
|
}
|
|
366
370
|
}
|
|
367
371
|
|
|
368
|
-
@keyframes
|
|
372
|
+
@keyframes menuContentOut-Q7Drkj {
|
|
369
373
|
from {
|
|
370
374
|
opacity: 1;
|
|
371
375
|
transform: scale(1);
|
|
@@ -379,3 +383,4 @@
|
|
|
379
383
|
}
|
|
380
384
|
}
|
|
381
385
|
}
|
|
386
|
+
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Menu, useMenu };
|
|
1
|
+
export { Menu, useMenu, useMenuContext, useMenuItemContext } from './Menu.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Menu, useMenu, useMenuContext, useMenuItemContext } from "./Menu.js";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type NativeSelectRootProps = ComponentProps<typeof Field.Select> & {
|
|
6
|
-
controlProps?: ComponentProps<'span'>;
|
|
1
|
+
import { Field as FieldPrimitive } from '@ark-ui/react/field';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
type NativeSelectRootProps = ComponentProps<typeof FieldPrimitive.Select> & {
|
|
4
|
+
controlProps?: ComponentProps<'span'>;
|
|
7
5
|
};
|
|
8
6
|
declare const NativeSelect: import("react").ForwardRefExoticComponent<Omit<NativeSelectRootProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>> & {
|
|
9
|
-
|
|
7
|
+
Root: import("react").ForwardRefExoticComponent<Omit<NativeSelectRootProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
|
-
export { NativeSelect };
|
|
9
|
+
export { NativeSelect };
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
-
import { ChevronDownIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
|
-
import NativeSelect_module_default from "./NativeSelect.module.js";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { forwardRef } from "react";
|
|
6
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
2
|
import { Field } from "@ark-ui/react/field";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
6
|
+
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
|
+
import NativeSelect_module from "./NativeSelect.module.js";
|
|
8
|
+
const NativeSelect_NativeSelectRoot = /*#__PURE__*/ forwardRef(function({ className, controlProps, ...props }, ref) {
|
|
9
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
10
|
+
...controlProps,
|
|
11
|
+
"data-scope": "native-select",
|
|
12
|
+
"data-part": "control",
|
|
13
|
+
"data-slot": "native-select-control",
|
|
14
|
+
className: clsx(NativeSelect_module.control, normalizeClassName(controlProps?.className)),
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ jsx(Field.Select, {
|
|
17
|
+
...props,
|
|
18
|
+
ref: ref,
|
|
19
|
+
"data-slot": "native-select-root",
|
|
20
|
+
className: clsx(NativeSelect_module.root, normalizeClassName(className))
|
|
21
|
+
}),
|
|
22
|
+
/*#__PURE__*/ jsx("span", {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
"data-scope": "native-select",
|
|
25
|
+
"data-part": "indicator",
|
|
26
|
+
"data-slot": "native-select-indicator",
|
|
27
|
+
className: NativeSelect_module.indicator,
|
|
28
|
+
children: /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const NativeSelect = Object.assign(NativeSelect_NativeSelectRoot, {
|
|
34
|
+
Root: NativeSelect_NativeSelectRoot
|
|
30
35
|
});
|
|
31
|
-
const NativeSelect = Object.assign(NativeSelectRoot, { Root: NativeSelectRoot });
|
|
32
|
-
//#endregion
|
|
33
36
|
export { NativeSelect };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"root": "mei8Eq_root"
|
|
1
|
+
import "./NativeSelect_module.css";
|
|
2
|
+
const NativeSelect_module = {
|
|
3
|
+
control: "control-D7osAi",
|
|
4
|
+
root: "root-ZCXVuV",
|
|
5
|
+
indicator: "indicator-oW5rXf"
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
export { NativeSelect_module_default as default };
|
|
7
|
+
export default NativeSelect_module;
|