@moduix/react 2.1.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 +28 -16
- 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_module.css +203 -0
- 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_module.css +139 -0
- 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_module.css +17 -0
- 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_module.css +77 -0
- 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_module.css +105 -0
- 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_module.css +169 -0
- 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_module.css +137 -0
- 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_module.css +156 -0
- 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_module.css +149 -0
- 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_module.css +507 -0
- 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_module.css +336 -0
- 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 -40
- package/dist/components/command-palette/CommandPalette_module.css +460 -0
- 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_module.css +110 -0
- 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_module.css +435 -0
- 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_module.css +236 -0
- 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_module.css +176 -0
- 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_module.css +91 -0
- 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_module.css +98 -0
- 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_module.css +53 -0
- 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_module.css +378 -0
- 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_module.css +322 -0
- 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_module.css +16 -0
- 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_module.css +117 -0
- 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_module.css +8 -0
- 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_module.css +163 -0
- 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_module.css +46 -0
- 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_module.css +255 -0
- 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_module.css +323 -0
- 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_module.css +386 -0
- 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_module.css +116 -0
- 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_module.css +161 -0
- 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_module.css +109 -0
- 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_module.css +150 -0
- 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_module.css +97 -0
- 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_module.css +186 -0
- 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_module.css +79 -0
- 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_module.css +119 -0
- 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_module.css +120 -0
- 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_module.css +123 -0
- 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 -57
- package/dist/components/select/Select.js +273 -242
- package/dist/components/select/Select.module.js +25 -26
- package/dist/components/select/Select_module.css +375 -0
- 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_module.css +482 -0
- 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_module.css +89 -0
- 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_module.css +222 -0
- 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_module.css +59 -0
- 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_module.css +52 -0
- 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_module.css +174 -0
- 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_module.css +14 -0
- 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_module.css +306 -0
- 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_module.css +144 -0
- 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_module.css +165 -0
- 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_module.css +191 -0
- 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_module.css +100 -0
- 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_module.css +223 -0
- 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_module.css +58 -0
- 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_module.css +102 -0
- 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_module.css +171 -0
- 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_module.css +46 -0
- 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_module.css +146 -0
- 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_module.css +361 -0
- 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_module.css +283 -0
- 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 +54 -39
- 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/accordion/Accordion.css +0 -197
- package/dist/components/alert/Alert.css +0 -122
- package/dist/components/angle-slider/AngleSlider.css +0 -192
- package/dist/components/aspect-ratio/AspectRatio.css +0 -16
- package/dist/components/avatar/Avatar.css +0 -75
- package/dist/components/badge/Badge.css +0 -110
- package/dist/components/bleed/Bleed.css +0 -51
- package/dist/components/breadcrumbs/Breadcrumbs.css +0 -97
- package/dist/components/button/Button.css +0 -213
- package/dist/components/card/Card.css +0 -164
- package/dist/components/carousel/Carousel.css +0 -200
- package/dist/components/checkbox/Checkbox.css +0 -135
- package/dist/components/clipboard/Clipboard.css +0 -145
- package/dist/components/close-button/CloseButton.css +0 -49
- package/dist/components/collapsible/Collapsible.css +0 -145
- package/dist/components/color-picker/ColorPicker.css +0 -469
- package/dist/components/combobox/Combobox.css +0 -331
- package/dist/components/command-palette/CommandPalette.css +0 -459
- package/dist/components/container/Container.css +0 -45
- package/dist/components/date-input/DateInput.css +0 -107
- package/dist/components/date-picker/DatePicker.css +0 -441
- package/dist/components/dialog/Dialog.css +0 -226
- package/dist/components/drawer/Drawer.css +0 -483
- package/dist/components/editable/Editable.css +0 -173
- package/dist/components/empty/Empty.css +0 -78
- package/dist/components/field/Field.css +0 -111
- package/dist/components/fieldset/Fieldset.css +0 -52
- package/dist/components/file-upload/FileUpload.css +0 -363
- package/dist/components/floating-panel/FloatingPanel.css +0 -323
- package/dist/components/heading/Heading.css +0 -58
- package/dist/components/highlight/Highlight.css +0 -15
- package/dist/components/hover-card/HoverCard.css +0 -111
- package/dist/components/image/Image.css +0 -7
- package/dist/components/image-cropper/ImageCropper.css +0 -151
- package/dist/components/input/Input.css +0 -83
- package/dist/components/input-group/InputGroup.css +0 -158
- package/dist/components/kbd/Kbd.css +0 -45
- package/dist/components/lightbox/Lightbox.css +0 -244
- package/dist/components/list/List.css +0 -118
- package/dist/components/listbox/Listbox.css +0 -316
- package/dist/components/marquee/Marquee.css +0 -114
- package/dist/components/menu/Menu.css +0 -380
- package/dist/components/native-select/NativeSelect.css +0 -109
- package/dist/components/number-input/NumberInput.css +0 -155
- package/dist/components/pagination/Pagination.css +0 -99
- package/dist/components/password-input/PasswordInput.css +0 -155
- package/dist/components/pin-input/PinInput.css +0 -96
- package/dist/components/popover/Popover.css +0 -172
- package/dist/components/progress-circular/ProgressCircular.css +0 -68
- package/dist/components/progress-linear/ProgressLinear.css +0 -106
- package/dist/components/qr-code/QrCode.css +0 -101
- 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/segment-group/SegmentGroup.css +0 -120
- package/dist/components/select/Select.css +0 -377
- package/dist/components/separator/Separator.css +0 -45
- package/dist/components/sidebar/Sidebar.css +0 -479
- package/dist/components/signature-pad/SignaturePad.css +0 -95
- package/dist/components/skeleton/Skeleton.css +0 -29
- package/dist/components/slider/Slider.css +0 -171
- package/dist/components/spinner/Spinner.css +0 -60
- package/dist/components/split-button/SplitButton.css +0 -51
- package/dist/components/splitter/Splitter.css +0 -175
- package/dist/components/stack/Stack.css +0 -13
- package/dist/components/steps/Steps.css +0 -284
- package/dist/components/swap/Swap.css +0 -45
- package/dist/components/switch/Switch.css +0 -130
- package/dist/components/table/Table.css +0 -162
- package/dist/components/tabs/Tabs.css +0 -188
- package/dist/components/tag/Tag.css +0 -98
- package/dist/components/tags-input/TagsInput.css +0 -212
- package/dist/components/text/Text.css +0 -87
- package/dist/components/textarea/Textarea.css +0 -56
- package/dist/components/timer/Timer.css +0 -95
- package/dist/components/toast/Toast.css +0 -155
- package/dist/components/toggle/Toggle.css +0 -167
- package/dist/components/toggle-group/ToggleGroup.css +0 -42
- package/dist/components/tooltip/Tooltip.css +0 -130
- package/dist/components/tour/Tour.css +0 -291
- package/dist/components/tree-view/TreeView.css +0 -264
- 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 -65
- package/dist/lib/moduix/presets/dense.css +0 -78
- package/dist/lib/moduix/presets/soft.css +0 -77
- package/dist/lib/moduix/styles/style.css +0 -301
- 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,133 +1,145 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import Dialog_module_default from "./Dialog.module.js";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Dialog, useDialog, useDialogContext } from "@ark-ui/react/dialog";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
|
+
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
8
|
+
import { CloseButton } from "../close-button/index.js";
|
|
9
|
+
import Dialog_module from "./Dialog.module.js";
|
|
10
|
+
const DEFAULT_CLOSE_BUTTON_LABEL = 'Close dialog';
|
|
11
|
+
function DialogRoot({ lazyMount = true, portalled, portalRef, unmountOnExit = true, ...props }) {
|
|
12
|
+
return /*#__PURE__*/ jsx(OverlayPortalProvider, {
|
|
13
|
+
portalled: portalled,
|
|
14
|
+
portalRef: portalRef,
|
|
15
|
+
children: /*#__PURE__*/ jsx(Dialog.Root, {
|
|
16
|
+
lazyMount: lazyMount,
|
|
17
|
+
unmountOnExit: unmountOnExit,
|
|
18
|
+
...props
|
|
19
|
+
})
|
|
20
|
+
});
|
|
17
21
|
}
|
|
18
|
-
function DialogRootProvider({ portalled, portalRef, ...props }) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
function DialogRootProvider({ lazyMount = true, portalled, portalRef, unmountOnExit = true, ...props }) {
|
|
23
|
+
return /*#__PURE__*/ jsx(OverlayPortalProvider, {
|
|
24
|
+
portalled: portalled,
|
|
25
|
+
portalRef: portalRef,
|
|
26
|
+
children: /*#__PURE__*/ jsx(Dialog.RootProvider, {
|
|
27
|
+
lazyMount: lazyMount,
|
|
28
|
+
unmountOnExit: unmountOnExit,
|
|
29
|
+
...props
|
|
30
|
+
})
|
|
31
|
+
});
|
|
24
32
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
const Dialog_DialogTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
34
|
+
return /*#__PURE__*/ jsx(Dialog.Trigger, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
asChild: asChild,
|
|
37
|
+
"data-slot": "dialog-trigger",
|
|
38
|
+
className: clsx(!asChild && Dialog_module.trigger, normalizeClassName(className)),
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
33
41
|
});
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
const Dialog_DialogBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
|
+
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
44
|
+
children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
"data-slot": "dialog-backdrop",
|
|
47
|
+
className: clsx(Dialog_module.backdrop, normalizeClassName(className)),
|
|
48
|
+
...props
|
|
49
|
+
})
|
|
50
|
+
});
|
|
41
51
|
});
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
const Dialog_DialogPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
53
|
+
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
54
|
+
children: /*#__PURE__*/ jsx(Dialog.Positioner, {
|
|
55
|
+
ref: ref,
|
|
56
|
+
"data-slot": "dialog-positioner",
|
|
57
|
+
className: clsx(Dialog_module.positioner, normalizeClassName(className)),
|
|
58
|
+
...props
|
|
59
|
+
})
|
|
60
|
+
});
|
|
49
61
|
});
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
62
|
+
const Dialog_DialogContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
63
|
+
return /*#__PURE__*/ jsx(Dialog.Content, {
|
|
64
|
+
ref: ref,
|
|
65
|
+
"data-slot": "dialog-content",
|
|
66
|
+
className: clsx(Dialog_module.content, normalizeClassName(className)),
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
57
69
|
});
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
const Dialog_DialogTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
71
|
+
return /*#__PURE__*/ jsx(Dialog.Title, {
|
|
72
|
+
ref: ref,
|
|
73
|
+
"data-slot": "dialog-title",
|
|
74
|
+
className: clsx(Dialog_module.title, normalizeClassName(className)),
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
65
77
|
});
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
const Dialog_DialogDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
79
|
+
return /*#__PURE__*/ jsx(Dialog.Description, {
|
|
80
|
+
ref: ref,
|
|
81
|
+
"data-slot": "dialog-description",
|
|
82
|
+
className: clsx(Dialog_module.description, normalizeClassName(className)),
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
73
85
|
});
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
86
|
+
const Dialog_DialogCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
87
|
+
return /*#__PURE__*/ jsx(Dialog.CloseTrigger, {
|
|
88
|
+
ref: ref,
|
|
89
|
+
asChild: asChild,
|
|
90
|
+
"data-slot": "dialog-close-trigger",
|
|
91
|
+
className: clsx(!asChild && Dialog_module.closeTrigger, normalizeClassName(className)),
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
82
94
|
});
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
const Dialog_DialogCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
|
|
96
|
+
return /*#__PURE__*/ jsx(Dialog.CloseTrigger, {
|
|
97
|
+
asChild: true,
|
|
98
|
+
...props,
|
|
99
|
+
children: /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
100
|
+
ref: ref,
|
|
101
|
+
"data-slot": "dialog-close-icon",
|
|
102
|
+
"aria-label": ariaLabel,
|
|
103
|
+
className: clsx(Dialog_module.closeIcon, normalizeClassName(className)),
|
|
104
|
+
children: children
|
|
105
|
+
})
|
|
106
|
+
});
|
|
95
107
|
});
|
|
96
108
|
function DialogHeader({ className, ...props }) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
return /*#__PURE__*/ jsx("div", {
|
|
110
|
+
"data-slot": "dialog-header",
|
|
111
|
+
className: clsx(Dialog_module.header, className),
|
|
112
|
+
...props
|
|
113
|
+
});
|
|
102
114
|
}
|
|
103
115
|
function DialogBody({ className, ...props }) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
return /*#__PURE__*/ jsx("div", {
|
|
117
|
+
"data-slot": "dialog-body",
|
|
118
|
+
className: clsx(Dialog_module.body, className),
|
|
119
|
+
...props
|
|
120
|
+
});
|
|
109
121
|
}
|
|
110
122
|
function DialogFooter({ className, ...props }) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
123
|
+
return /*#__PURE__*/ jsx("div", {
|
|
124
|
+
"data-slot": "dialog-footer",
|
|
125
|
+
className: clsx(Dialog_module.footer, className),
|
|
126
|
+
...props
|
|
127
|
+
});
|
|
116
128
|
}
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
const Dialog_Dialog = Object.assign(DialogRoot, {
|
|
130
|
+
Root: DialogRoot,
|
|
131
|
+
RootProvider: DialogRootProvider,
|
|
132
|
+
Context: Dialog.Context,
|
|
133
|
+
Trigger: Dialog_DialogTrigger,
|
|
134
|
+
Backdrop: Dialog_DialogBackdrop,
|
|
135
|
+
Positioner: Dialog_DialogPositioner,
|
|
136
|
+
Content: Dialog_DialogContent,
|
|
137
|
+
Title: Dialog_DialogTitle,
|
|
138
|
+
Description: Dialog_DialogDescription,
|
|
139
|
+
CloseTrigger: Dialog_DialogCloseTrigger,
|
|
140
|
+
CloseIcon: Dialog_DialogCloseIcon,
|
|
141
|
+
Header: DialogHeader,
|
|
142
|
+
Body: DialogBody,
|
|
143
|
+
Footer: DialogFooter
|
|
131
144
|
});
|
|
132
|
-
|
|
133
|
-
export { Dialog$1 as Dialog, useDialog$1 as useDialog, useDialogContext$1 as useDialogContext };
|
|
145
|
+
export { Dialog_Dialog as Dialog, useDialog, useDialogContext };
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import "./Dialog_module.css";
|
|
2
|
+
const Dialog_module = {
|
|
3
|
+
trigger: "trigger-qA1CFR",
|
|
4
|
+
closeTrigger: "closeTrigger-VUiUJj",
|
|
5
|
+
backdrop: "backdrop-If26oI",
|
|
6
|
+
"dialog-backdrop-in": "dialog-backdrop-in-_C0wKm",
|
|
7
|
+
dialogBackdropIn: "dialog-backdrop-in-_C0wKm",
|
|
8
|
+
"dialog-backdrop-out": "dialog-backdrop-out-XaKZmG",
|
|
9
|
+
dialogBackdropOut: "dialog-backdrop-out-XaKZmG",
|
|
10
|
+
positioner: "positioner-dTHR1c",
|
|
11
|
+
content: "content-efn3VB",
|
|
12
|
+
"dialog-content-in": "dialog-content-in-aG5RQ2",
|
|
13
|
+
dialogContentIn: "dialog-content-in-aG5RQ2",
|
|
14
|
+
"dialog-content-out": "dialog-content-out-AlkJKg",
|
|
15
|
+
dialogContentOut: "dialog-content-out-AlkJKg",
|
|
16
|
+
header: "header-J6cvXY",
|
|
17
|
+
title: "title-rhfFjR",
|
|
18
|
+
description: "description-Ke7u65",
|
|
19
|
+
body: "body-LLBXY5",
|
|
20
|
+
footer: "footer-E1Avqe",
|
|
21
|
+
closeIcon: "closeIcon-gvFPTx"
|
|
19
22
|
};
|
|
20
|
-
|
|
21
|
-
export { Dialog_module_default as default };
|
|
23
|
+
export default Dialog_module;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
@layer moduix.components {
|
|
2
|
+
.trigger-qA1CFR, .closeTrigger-VUiUJj {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
min-height: var(--moduix-dialog-control-height, var(--moduix-size-md));
|
|
5
|
+
padding: var(--moduix-dialog-control-padding-y, var(--moduix-spacing-1))
|
|
6
|
+
var(--moduix-dialog-control-padding-x, var(--moduix-spacing-3-5));
|
|
7
|
+
border: var(--moduix-dialog-control-border-width, var(--moduix-border-width-sm)) solid
|
|
8
|
+
var(--moduix-dialog-control-border-color, var(--moduix-color-border));
|
|
9
|
+
border-radius: var(--moduix-dialog-control-radius, var(--moduix-radius-md));
|
|
10
|
+
background-color: var(--moduix-dialog-control-bg, var(--moduix-color-background));
|
|
11
|
+
color: var(--moduix-dialog-control-color, var(--moduix-color-foreground));
|
|
12
|
+
font: inherit;
|
|
13
|
+
font-size: var(--moduix-dialog-control-font-size, var(--moduix-text-md));
|
|
14
|
+
line-height: var(--moduix-dialog-control-line-height, var(--moduix-line-height-text-md));
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
-webkit-user-select: none;
|
|
17
|
+
user-select: none;
|
|
18
|
+
transition: background-color var(--moduix-transition-default),
|
|
19
|
+
border-color var(--moduix-transition-default),
|
|
20
|
+
color var(--moduix-transition-default);
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
margin: 0;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (hover: hover) {
|
|
28
|
+
:is(.trigger-qA1CFR, .closeTrigger-VUiUJj):hover {
|
|
29
|
+
background-color: var(--moduix-dialog-control-bg-hover, var(--moduix-color-accent));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:is(.trigger-qA1CFR, .closeTrigger-VUiUJj):focus-visible {
|
|
34
|
+
outline: var(--moduix-dialog-focus-ring-width, var(--moduix-dialog-control-border-width, var(--moduix-border-width-sm)))
|
|
35
|
+
solid var(--moduix-dialog-focus-ring-color, var(--moduix-color-ring));
|
|
36
|
+
outline-offset: calc(var(--moduix-dialog-focus-ring-width, var(--moduix-dialog-control-border-width, var(--moduix-border-width-sm))) *
|
|
37
|
+
-1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:is(.trigger-qA1CFR, .closeTrigger-VUiUJj)[data-disabled], :is(.trigger-qA1CFR, .closeTrigger-VUiUJj)[disabled] {
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
opacity: var(--moduix-opacity-disabled);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.backdrop-If26oI {
|
|
46
|
+
z-index: calc(var(--moduix-z-backdrop) + var(--layer-index, 0));
|
|
47
|
+
background-color: var(--moduix-dialog-backdrop-bg, var(--moduix-backdrop-bg, var(--moduix-color-overlay)));
|
|
48
|
+
min-height: 100dvh;
|
|
49
|
+
-webkit-backdrop-filter: var(--moduix-backdrop-filter, blur(var(--moduix-dialog-backdrop-blur, 4px)));
|
|
50
|
+
backdrop-filter: var(--moduix-backdrop-filter, blur(var(--moduix-dialog-backdrop-blur, 4px)));
|
|
51
|
+
position: fixed;
|
|
52
|
+
inset: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.backdrop-If26oI[data-state="open"] {
|
|
56
|
+
animation: dialog-backdrop-in-_C0wKm
|
|
57
|
+
var(--moduix-dialog-backdrop-transition, var(--moduix-transition-default));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.backdrop-If26oI[data-state="closed"] {
|
|
61
|
+
animation: dialog-backdrop-out-XaKZmG
|
|
62
|
+
var(--moduix-dialog-backdrop-transition, var(--moduix-transition-default));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.positioner-dTHR1c {
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
z-index: calc(var(--moduix-z-modal) + var(--layer-index, 0));
|
|
68
|
+
overscroll-behavior: contain;
|
|
69
|
+
scrollbar-gutter: stable both-edges;
|
|
70
|
+
padding: var(--moduix-dialog-positioner-padding, var(--moduix-spacing-4));
|
|
71
|
+
place-items: center;
|
|
72
|
+
display: grid;
|
|
73
|
+
position: fixed;
|
|
74
|
+
inset: 0;
|
|
75
|
+
overflow-y: auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.content-efn3VB {
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
width: min(var(--moduix-dialog-width, 28rem),
|
|
81
|
+
var(--moduix-dialog-max-width, calc(100vw - var(--moduix-spacing-8, 2rem))));
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
max-height: calc(100dvh - var(--moduix-spacing-8, 2rem));
|
|
84
|
+
padding: var(--moduix-dialog-padding, var(--moduix-spacing-6));
|
|
85
|
+
border: var(--moduix-dialog-border-width, var(--moduix-border-width-sm)) solid
|
|
86
|
+
var(--moduix-dialog-border-color, var(--moduix-color-border));
|
|
87
|
+
border-radius: var(--moduix-dialog-radius, var(--moduix-radius-lg));
|
|
88
|
+
background-color: var(--moduix-dialog-bg, var(--moduix-color-popover));
|
|
89
|
+
color: var(--moduix-dialog-color, var(--moduix-color-popover-foreground));
|
|
90
|
+
box-shadow: var(--moduix-dialog-shadow, var(--moduix-shadow-lg));
|
|
91
|
+
transform-origin: top;
|
|
92
|
+
transition: scale
|
|
93
|
+
var(--moduix-dialog-nested-transition, var(--moduix-dialog-transition, var(--moduix-transition-default))),
|
|
94
|
+
translate
|
|
95
|
+
var(--moduix-dialog-nested-transition, var(--moduix-dialog-transition, var(--moduix-transition-default)));
|
|
96
|
+
outline: 0;
|
|
97
|
+
position: relative;
|
|
98
|
+
translate: 0;
|
|
99
|
+
scale: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.content-efn3VB:after {
|
|
103
|
+
content: "";
|
|
104
|
+
z-index: 1;
|
|
105
|
+
border-radius: inherit;
|
|
106
|
+
background-color: var(--moduix-dialog-nested-overlay-bg, #0000000d);
|
|
107
|
+
opacity: 0;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
transition: opacity
|
|
110
|
+
var(--moduix-dialog-nested-transition, var(--moduix-dialog-transition, var(--moduix-transition-default)));
|
|
111
|
+
position: absolute;
|
|
112
|
+
inset: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.content-efn3VB[data-has-nested] {
|
|
116
|
+
scale: calc(1 - var(--moduix-dialog-nested-scale-step, .05) * var(--nested-layer-count, 0));
|
|
117
|
+
translate: 0
|
|
118
|
+
calc(var(--moduix-dialog-nested-translate-step, var(--moduix-spacing-10)) *
|
|
119
|
+
var(--nested-layer-count, 0));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.content-efn3VB[data-has-nested]:after {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.content-efn3VB[data-state="open"] {
|
|
127
|
+
animation: dialog-content-in-aG5RQ2
|
|
128
|
+
var(--moduix-dialog-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
129
|
+
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.content-efn3VB[data-state="closed"] {
|
|
133
|
+
animation: dialog-content-out-AlkJKg
|
|
134
|
+
var(--moduix-dialog-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
135
|
+
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.header-J6cvXY {
|
|
139
|
+
align-items: start;
|
|
140
|
+
gap: var(--moduix-dialog-header-gap, var(--moduix-spacing-1));
|
|
141
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
142
|
+
display: grid;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.header-J6cvXY > [data-slot="dialog-title"] {
|
|
146
|
+
grid-column: 1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.header-J6cvXY > [data-slot="dialog-close-trigger"] {
|
|
150
|
+
grid-column: 2;
|
|
151
|
+
justify-self: end;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.header-J6cvXY > [data-slot="dialog-description"] {
|
|
155
|
+
grid-column: 1 / -1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.title-rhfFjR {
|
|
159
|
+
color: var(--moduix-dialog-title-color, var(--moduix-dialog-color, var(--moduix-color-popover-foreground)));
|
|
160
|
+
font-size: var(--moduix-dialog-title-font-size, var(--moduix-text-lg));
|
|
161
|
+
font-weight: var(--moduix-dialog-title-font-weight, var(--moduix-weight-semibold));
|
|
162
|
+
line-height: var(--moduix-dialog-title-line-height, var(--moduix-line-height-text-lg));
|
|
163
|
+
margin: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.description-Ke7u65, .body-LLBXY5 {
|
|
167
|
+
color: var(--moduix-dialog-description-color, var(--moduix-dialog-muted-color, var(--moduix-color-muted-foreground)));
|
|
168
|
+
font-size: var(--moduix-dialog-description-font-size, var(--moduix-text-md));
|
|
169
|
+
line-height: var(--moduix-dialog-description-line-height, var(--moduix-line-height-text-md));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.description-Ke7u65 {
|
|
173
|
+
margin: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.body-LLBXY5 {
|
|
177
|
+
margin: var(--moduix-dialog-content-margin, var(--moduix-spacing-4) 0 0);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.footer-E1Avqe {
|
|
181
|
+
justify-content: flex-end;
|
|
182
|
+
gap: var(--moduix-dialog-footer-gap, var(--moduix-spacing-2));
|
|
183
|
+
margin-top: var(--moduix-dialog-footer-margin-top, var(--moduix-spacing-6));
|
|
184
|
+
display: flex;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.closeIcon-gvFPTx {
|
|
188
|
+
--moduix-close-button-size: var(--moduix-dialog-close-icon-size, var(--moduix-spacing-7));
|
|
189
|
+
--moduix-close-button-radius: var(--moduix-dialog-close-icon-radius, var(--moduix-radius-md));
|
|
190
|
+
--moduix-close-button-color: var(--moduix-dialog-close-icon-color, var(--moduix-dialog-muted-color, var(--moduix-color-muted-foreground)));
|
|
191
|
+
--moduix-close-button-color-hover: var(--moduix-dialog-close-icon-color-hover, var(--moduix-dialog-close-icon-color, var(--moduix-dialog-color, var(--moduix-color-popover-foreground))));
|
|
192
|
+
--moduix-close-button-bg: var(--moduix-dialog-close-icon-bg, transparent);
|
|
193
|
+
--moduix-close-button-bg-hover: var(--moduix-dialog-close-icon-bg-hover, var(--moduix-color-accent));
|
|
194
|
+
--moduix-close-button-focus-ring-color: var(--moduix-dialog-close-icon-focus-ring-color, var(--moduix-dialog-focus-ring-color, var(--moduix-color-ring)));
|
|
195
|
+
--moduix-close-button-icon-size: var(--moduix-dialog-close-icon-glyph-size, var(--moduix-spacing-3));
|
|
196
|
+
z-index: 2;
|
|
197
|
+
position: absolute;
|
|
198
|
+
inset-block-start: var(--moduix-dialog-close-icon-inset-block-start, var(--moduix-spacing-4));
|
|
199
|
+
inset-inline-end: var(--moduix-dialog-close-icon-inset-inline-end, var(--moduix-spacing-4));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@keyframes dialog-backdrop-in-_C0wKm {
|
|
203
|
+
from {
|
|
204
|
+
opacity: var(--moduix-dialog-backdrop-starting-opacity, 0);
|
|
205
|
+
-webkit-backdrop-filter: var(--moduix-dialog-backdrop-starting-blur, none);
|
|
206
|
+
backdrop-filter: var(--moduix-dialog-backdrop-starting-blur, none);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@keyframes dialog-backdrop-out-XaKZmG {
|
|
211
|
+
to {
|
|
212
|
+
opacity: var(--moduix-dialog-backdrop-ending-opacity, 0);
|
|
213
|
+
-webkit-backdrop-filter: var(--moduix-dialog-backdrop-ending-blur, none);
|
|
214
|
+
backdrop-filter: var(--moduix-dialog-backdrop-ending-blur, none);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@keyframes dialog-content-in-aG5RQ2 {
|
|
219
|
+
from {
|
|
220
|
+
opacity: var(--moduix-dialog-content-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
|
|
221
|
+
translate: var(--moduix-dialog-content-starting-translate-x, var(--moduix-popup-motion-starting-translate-x, 0))
|
|
222
|
+
var(--moduix-dialog-content-starting-translate-y, var(--moduix-popup-motion-starting-translate-y, 0));
|
|
223
|
+
scale: var(--moduix-dialog-content-starting-scale, var(--moduix-popup-motion-starting-scale, var(--moduix-scale-popup)));
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes dialog-content-out-AlkJKg {
|
|
228
|
+
to {
|
|
229
|
+
opacity: var(--moduix-dialog-content-ending-opacity, var(--moduix-popup-motion-ending-opacity, 0));
|
|
230
|
+
translate: var(--moduix-dialog-content-ending-translate-x, var(--moduix-popup-motion-ending-translate-x, 0))
|
|
231
|
+
var(--moduix-dialog-content-ending-translate-y, var(--moduix-popup-motion-ending-translate-y, 0));
|
|
232
|
+
scale: var(--moduix-dialog-content-ending-scale, var(--moduix-popup-motion-ending-scale, var(--moduix-scale-popup)));
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
export { Dialog, useDialog, useDialogContext } from './Dialog.js';
|
|
2
|
+
export type { DialogRootProps, DialogRootProviderProps } from './Dialog.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog, useDialog, useDialogContext } from "./Dialog.js";
|
|
@@ -1,56 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentProps } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
declare function DrawerRoot({
|
|
9
|
-
lazyMount,
|
|
10
|
-
portalled,
|
|
11
|
-
portalRef,
|
|
12
|
-
unmountOnExit,
|
|
13
|
-
...props
|
|
14
|
-
}: DrawerRootProps): import("react").JSX.Element;
|
|
15
|
-
declare function DrawerRootProvider({
|
|
16
|
-
lazyMount,
|
|
17
|
-
portalled,
|
|
18
|
-
portalRef,
|
|
19
|
-
unmountOnExit,
|
|
20
|
-
...props
|
|
21
|
-
}: DrawerRootProviderProps): import("react").JSX.Element;
|
|
22
|
-
declare function DrawerHeader({
|
|
23
|
-
className,
|
|
24
|
-
...props
|
|
25
|
-
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
26
|
-
declare function DrawerBody({
|
|
27
|
-
className,
|
|
28
|
-
...props
|
|
29
|
-
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
30
|
-
declare function DrawerFooter({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
34
|
-
declare const Drawer$1: typeof DrawerRoot & {
|
|
35
|
-
Root: typeof DrawerRoot;
|
|
36
|
-
RootProvider: typeof DrawerRootProvider;
|
|
37
|
-
Stack: (props: Drawer.StackProps) => import("react").JSX.Element;
|
|
38
|
-
Trigger: import("react").ForwardRefExoticComponent<Omit<Drawer.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
39
|
-
Backdrop: import("react").ForwardRefExoticComponent<Omit<Drawer.BackdropProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
|
-
Positioner: import("react").ForwardRefExoticComponent<Omit<Drawer.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
-
Content: import("react").ForwardRefExoticComponent<Omit<Drawer.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
42
|
-
Grabber: import("react").ForwardRefExoticComponent<Omit<Drawer.GrabberProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
43
|
-
GrabberIndicator: import("react").ForwardRefExoticComponent<Omit<Drawer.GrabberIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
-
Title: import("react").ForwardRefExoticComponent<Omit<Drawer.TitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
45
|
-
Description: import("react").ForwardRefExoticComponent<Omit<Drawer.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
-
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<Drawer.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
47
|
-
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<Drawer.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
48
|
-
SwipeArea: import("react").ForwardRefExoticComponent<Omit<Drawer.SwipeAreaProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
49
|
-
Indent: import("react").ForwardRefExoticComponent<Omit<Drawer.IndentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
50
|
-
IndentBackground: import("react").ForwardRefExoticComponent<Omit<Drawer.IndentBackgroundProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
|
-
Header: typeof DrawerHeader;
|
|
52
|
-
Body: typeof DrawerBody;
|
|
53
|
-
Footer: typeof DrawerFooter;
|
|
1
|
+
import { Drawer as DrawerPrimitive, useDrawer, useDrawerContext, useDrawerStackContext } from '@ark-ui/react/drawer';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
4
|
+
type DrawerRootProps = ComponentProps<typeof DrawerPrimitive.Root> & OverlayPortalProps;
|
|
5
|
+
type DrawerRootProviderProps = ComponentProps<typeof DrawerPrimitive.RootProvider> & OverlayPortalProps;
|
|
6
|
+
type DrawerContentProps = ComponentProps<typeof DrawerPrimitive.Content> & {
|
|
7
|
+
variant?: 'island';
|
|
54
8
|
};
|
|
55
|
-
|
|
56
|
-
|
|
9
|
+
declare function DrawerRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: DrawerRootProps): import("react").JSX.Element;
|
|
10
|
+
declare function DrawerRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: DrawerRootProviderProps): import("react").JSX.Element;
|
|
11
|
+
declare function DrawerHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
12
|
+
declare function DrawerBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
13
|
+
declare function DrawerFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
14
|
+
declare const Drawer: typeof DrawerRoot & {
|
|
15
|
+
Root: typeof DrawerRoot;
|
|
16
|
+
RootProvider: typeof DrawerRootProvider;
|
|
17
|
+
Context: (props: DrawerPrimitive.ContextProps) => import("react").ReactNode;
|
|
18
|
+
Stack: (props: DrawerPrimitive.StackProps) => import("react").JSX.Element;
|
|
19
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Backdrop: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.BackdropProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Content: import("react").ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
Grabber: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.GrabberProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
GrabberIndicator: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.GrabberIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Title: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.TitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
26
|
+
Description: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<DrawerPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
SwipeArea: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.SwipeAreaProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Indent: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.IndentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
IndentBackground: import("react").ForwardRefExoticComponent<Omit<DrawerPrimitive.IndentBackgroundProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Header: typeof DrawerHeader;
|
|
33
|
+
Body: typeof DrawerBody;
|
|
34
|
+
Footer: typeof DrawerFooter;
|
|
35
|
+
};
|
|
36
|
+
export { Drawer, useDrawer, useDrawerContext, useDrawerStackContext };
|