@moduix/solid-tailwind 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/README.md +130 -0
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.d.ts +22 -0
- package/dist/components/accordion/Accordion.js +103 -0
- package/dist/components/accordion/Accordion.jsx +63 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/index.jsx +1 -0
- package/dist/components/alert/Alert.d.ts +20 -0
- package/dist/components/alert/Alert.js +116 -0
- package/dist/components/alert/Alert.jsx +66 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert/index.jsx +1 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +37 -0
- package/dist/components/angle-slider/AngleSlider.js +165 -0
- package/dist/components/angle-slider/AngleSlider.jsx +97 -0
- package/dist/components/angle-slider/index.d.ts +1 -0
- package/dist/components/angle-slider/index.js +1 -0
- package/dist/components/angle-slider/index.jsx +1 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +13 -0
- package/dist/components/aspect-ratio/AspectRatio.js +43 -0
- package/dist/components/aspect-ratio/AspectRatio.jsx +28 -0
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/aspect-ratio/index.jsx +1 -0
- package/dist/components/avatar/Avatar.d.ts +21 -0
- package/dist/components/avatar/Avatar.js +88 -0
- package/dist/components/avatar/Avatar.jsx +59 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/index.jsx +1 -0
- package/dist/components/badge/Badge.d.ts +14 -0
- package/dist/components/badge/Badge.js +72 -0
- package/dist/components/badge/Badge.jsx +46 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/index.jsx +1 -0
- package/dist/components/bleed/Bleed.d.ts +17 -0
- package/dist/components/bleed/Bleed.js +68 -0
- package/dist/components/bleed/Bleed.jsx +50 -0
- package/dist/components/bleed/index.d.ts +1 -0
- package/dist/components/bleed/index.js +1 -0
- package/dist/components/bleed/index.jsx +1 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +30 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +158 -0
- package/dist/components/breadcrumbs/Breadcrumbs.jsx +88 -0
- package/dist/components/breadcrumbs/index.d.ts +1 -0
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/breadcrumbs/index.jsx +1 -0
- package/dist/components/button/Button.d.ts +16 -0
- package/dist/components/button/Button.js +124 -0
- package/dist/components/button/Button.jsx +75 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/index.jsx +1 -0
- package/dist/components/card/Card.d.ts +28 -0
- package/dist/components/card/Card.js +210 -0
- package/dist/components/card/Card.jsx +103 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/index.jsx +1 -0
- package/dist/components/carousel/Carousel.d.ts +35 -0
- package/dist/components/carousel/Carousel.js +218 -0
- package/dist/components/carousel/Carousel.jsx +121 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/carousel/index.jsx +1 -0
- package/dist/components/chart/Chart.d.ts +34 -0
- package/dist/components/chart/Chart.js +450 -0
- package/dist/components/chart/Chart.jsx +265 -0
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components/chart/index.js +1 -0
- package/dist/components/chart/index.jsx +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +26 -0
- package/dist/components/checkbox/Checkbox.js +139 -0
- package/dist/components/checkbox/Checkbox.jsx +76 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/index.jsx +1 -0
- package/dist/components/clipboard/Clipboard.d.ts +26 -0
- package/dist/components/clipboard/Clipboard.js +143 -0
- package/dist/components/clipboard/Clipboard.jsx +85 -0
- package/dist/components/clipboard/index.d.ts +1 -0
- package/dist/components/clipboard/index.js +1 -0
- package/dist/components/clipboard/index.jsx +1 -0
- package/dist/components/close-button/CloseButton.d.ts +14 -0
- package/dist/components/close-button/CloseButton.js +89 -0
- package/dist/components/close-button/CloseButton.jsx +48 -0
- package/dist/components/close-button/index.d.ts +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/close-button/index.jsx +1 -0
- package/dist/components/collapsible/Collapsible.d.ts +19 -0
- package/dist/components/collapsible/Collapsible.js +92 -0
- package/dist/components/collapsible/Collapsible.jsx +56 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/collapsible/index.jsx +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +66 -0
- package/dist/components/color-picker/ColorPicker.js +514 -0
- package/dist/components/color-picker/ColorPicker.jsx +276 -0
- package/dist/components/color-picker/index.d.ts +1 -0
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/color-picker/index.jsx +1 -0
- package/dist/components/combobox/Combobox.d.ts +50 -0
- package/dist/components/combobox/Combobox.js +353 -0
- package/dist/components/combobox/Combobox.jsx +187 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox/index.jsx +1 -0
- package/dist/components/command-palette/CommandPalette.d.ts +72 -0
- package/dist/components/command-palette/CommandPalette.js +575 -0
- package/dist/components/command-palette/CommandPalette.jsx +324 -0
- package/dist/components/command-palette/index.d.ts +1 -0
- package/dist/components/command-palette/index.js +1 -0
- package/dist/components/command-palette/index.jsx +1 -0
- package/dist/components/container/Container.d.ts +17 -0
- package/dist/components/container/Container.js +140 -0
- package/dist/components/container/Container.jsx +126 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/container/index.jsx +1 -0
- package/dist/components/date-input/DateInput.d.ts +25 -0
- package/dist/components/date-input/DateInput.js +136 -0
- package/dist/components/date-input/DateInput.jsx +76 -0
- package/dist/components/date-input/index.d.ts +1 -0
- package/dist/components/date-input/index.js +1 -0
- package/dist/components/date-input/index.jsx +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +98 -0
- package/dist/components/date-picker/DatePicker.js +701 -0
- package/dist/components/date-picker/DatePicker.jsx +359 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/index.jsx +1 -0
- package/dist/components/dialog/Dialog.d.ts +38 -0
- package/dist/components/dialog/Dialog.js +239 -0
- package/dist/components/dialog/Dialog.jsx +130 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/dialog/index.jsx +1 -0
- package/dist/components/drawer/Drawer.d.ts +54 -0
- package/dist/components/drawer/Drawer.js +333 -0
- package/dist/components/drawer/Drawer.jsx +179 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/drawer/index.jsx +1 -0
- package/dist/components/editable/Editable.d.ts +29 -0
- package/dist/components/editable/Editable.js +181 -0
- package/dist/components/editable/Editable.jsx +105 -0
- package/dist/components/editable/index.d.ts +1 -0
- package/dist/components/editable/index.js +1 -0
- package/dist/components/editable/index.jsx +1 -0
- package/dist/components/empty/Empty.d.ts +16 -0
- package/dist/components/empty/Empty.js +121 -0
- package/dist/components/empty/Empty.jsx +54 -0
- package/dist/components/empty/index.d.ts +1 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/empty/index.jsx +1 -0
- package/dist/components/field/Field.d.ts +37 -0
- package/dist/components/field/Field.js +236 -0
- package/dist/components/field/Field.jsx +134 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/field/index.jsx +1 -0
- package/dist/components/fieldset/Fieldset.d.ts +16 -0
- package/dist/components/fieldset/Fieldset.js +93 -0
- package/dist/components/fieldset/Fieldset.jsx +47 -0
- package/dist/components/fieldset/index.d.ts +1 -0
- package/dist/components/fieldset/index.js +1 -0
- package/dist/components/fieldset/index.jsx +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +44 -0
- package/dist/components/file-upload/FileUpload.js +325 -0
- package/dist/components/file-upload/FileUpload.jsx +178 -0
- package/dist/components/file-upload/index.d.ts +1 -0
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/file-upload/index.jsx +1 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +53 -0
- package/dist/components/floating-panel/FloatingPanel.js +338 -0
- package/dist/components/floating-panel/FloatingPanel.jsx +186 -0
- package/dist/components/floating-panel/index.d.ts +2 -0
- package/dist/components/floating-panel/index.js +1 -0
- package/dist/components/floating-panel/index.jsx +1 -0
- package/dist/components/heading/Heading.d.ts +20 -0
- package/dist/components/heading/Heading.js +82 -0
- package/dist/components/heading/Heading.jsx +62 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/heading/index.jsx +1 -0
- package/dist/components/highlight/Highlight.d.ts +12 -0
- package/dist/components/highlight/Highlight.js +24 -0
- package/dist/components/highlight/Highlight.jsx +16 -0
- package/dist/components/highlight/index.d.ts +1 -0
- package/dist/components/highlight/index.js +1 -0
- package/dist/components/highlight/index.jsx +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +27 -0
- package/dist/components/hover-card/HoverCard.js +164 -0
- package/dist/components/hover-card/HoverCard.jsx +89 -0
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/hover-card/index.jsx +1 -0
- package/dist/components/image/Image.d.ts +14 -0
- package/dist/components/image/Image.js +53 -0
- package/dist/components/image/Image.jsx +33 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/image/index.jsx +1 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +27 -0
- package/dist/components/image-cropper/ImageCropper.js +131 -0
- package/dist/components/image-cropper/ImageCropper.jsx +72 -0
- package/dist/components/image-cropper/index.d.ts +1 -0
- package/dist/components/image-cropper/index.js +1 -0
- package/dist/components/image-cropper/index.jsx +1 -0
- package/dist/components/input/Input.d.ts +13 -0
- package/dist/components/input/Input.js +57 -0
- package/dist/components/input/Input.jsx +36 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/index.jsx +1 -0
- package/dist/components/input-group/InputGroup.d.ts +27 -0
- package/dist/components/input-group/InputGroup.js +191 -0
- package/dist/components/input-group/InputGroup.jsx +129 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/input-group/index.jsx +1 -0
- package/dist/components/json-tree-view/JsonTreeView.d.ts +11 -0
- package/dist/components/json-tree-view/JsonTreeView.js +69 -0
- package/dist/components/json-tree-view/JsonTreeView.jsx +37 -0
- package/dist/components/json-tree-view/index.d.ts +1 -0
- package/dist/components/json-tree-view/index.js +1 -0
- package/dist/components/json-tree-view/index.jsx +1 -0
- package/dist/components/kbd/Kbd.d.ts +8 -0
- package/dist/components/kbd/Kbd.js +36 -0
- package/dist/components/kbd/Kbd.jsx +20 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/kbd/index.jsx +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +60 -0
- package/dist/components/lightbox/Lightbox.js +351 -0
- package/dist/components/lightbox/Lightbox.jsx +218 -0
- package/dist/components/lightbox/index.d.ts +2 -0
- package/dist/components/lightbox/index.js +1 -0
- package/dist/components/lightbox/index.jsx +1 -0
- package/dist/components/list/List.d.ts +36 -0
- package/dist/components/list/List.js +201 -0
- package/dist/components/list/List.jsx +133 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/list/index.jsx +1 -0
- package/dist/components/listbox/Listbox.d.ts +46 -0
- package/dist/components/listbox/Listbox.js +249 -0
- package/dist/components/listbox/Listbox.jsx +147 -0
- package/dist/components/listbox/index.d.ts +1 -0
- package/dist/components/listbox/index.js +1 -0
- package/dist/components/listbox/index.jsx +1 -0
- package/dist/components/marquee/Marquee.d.ts +18 -0
- package/dist/components/marquee/Marquee.js +120 -0
- package/dist/components/marquee/Marquee.jsx +80 -0
- package/dist/components/marquee/index.d.ts +1 -0
- package/dist/components/marquee/index.js +1 -0
- package/dist/components/marquee/index.jsx +1 -0
- package/dist/components/menu/Menu.d.ts +74 -0
- package/dist/components/menu/Menu.js +476 -0
- package/dist/components/menu/Menu.jsx +277 -0
- package/dist/components/menu/index.d.ts +1 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/index.jsx +1 -0
- package/dist/components/native-select/NativeSelect.d.ts +11 -0
- package/dist/components/native-select/NativeSelect.js +49 -0
- package/dist/components/native-select/NativeSelect.jsx +24 -0
- package/dist/components/native-select/index.d.ts +1 -0
- package/dist/components/native-select/index.js +1 -0
- package/dist/components/native-select/index.jsx +1 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts +31 -0
- package/dist/components/navigation-menu/NavigationMenu.js +156 -0
- package/dist/components/navigation-menu/NavigationMenu.jsx +92 -0
- package/dist/components/navigation-menu/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +1 -0
- package/dist/components/navigation-menu/index.jsx +1 -0
- package/dist/components/number-input/NumberInput.d.ts +27 -0
- package/dist/components/number-input/NumberInput.js +167 -0
- package/dist/components/number-input/NumberInput.jsx +97 -0
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/index.jsx +1 -0
- package/dist/components/pagination/Pagination.d.ts +28 -0
- package/dist/components/pagination/Pagination.js +218 -0
- package/dist/components/pagination/Pagination.jsx +115 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/index.jsx +1 -0
- package/dist/components/password-input/PasswordInput.d.ts +26 -0
- package/dist/components/password-input/PasswordInput.js +135 -0
- package/dist/components/password-input/PasswordInput.jsx +83 -0
- package/dist/components/password-input/index.d.ts +1 -0
- package/dist/components/password-input/index.js +1 -0
- package/dist/components/password-input/index.jsx +1 -0
- package/dist/components/pin-input/PinInput.d.ts +24 -0
- package/dist/components/pin-input/PinInput.js +144 -0
- package/dist/components/pin-input/PinInput.jsx +80 -0
- package/dist/components/pin-input/index.d.ts +1 -0
- package/dist/components/pin-input/index.js +1 -0
- package/dist/components/pin-input/index.jsx +1 -0
- package/dist/components/popover/Popover.d.ts +46 -0
- package/dist/components/popover/Popover.js +288 -0
- package/dist/components/popover/Popover.jsx +155 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/index.jsx +1 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +28 -0
- package/dist/components/progress-circular/ProgressCircular.js +164 -0
- package/dist/components/progress-circular/ProgressCircular.jsx +89 -0
- package/dist/components/progress-circular/index.d.ts +1 -0
- package/dist/components/progress-circular/index.js +1 -0
- package/dist/components/progress-circular/index.jsx +1 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +23 -0
- package/dist/components/progress-linear/ProgressLinear.js +132 -0
- package/dist/components/progress-linear/ProgressLinear.jsx +71 -0
- package/dist/components/progress-linear/index.d.ts +1 -0
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/progress-linear/index.jsx +1 -0
- package/dist/components/qr-code/QrCode.d.ts +19 -0
- package/dist/components/qr-code/QrCode.js +129 -0
- package/dist/components/qr-code/QrCode.jsx +70 -0
- package/dist/components/qr-code/index.d.ts +1 -0
- package/dist/components/qr-code/index.js +1 -0
- package/dist/components/qr-code/index.jsx +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +33 -0
- package/dist/components/radio-group/RadioGroup.js +158 -0
- package/dist/components/radio-group/RadioGroup.jsx +94 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/radio-group/index.jsx +1 -0
- package/dist/components/rating-group/RatingGroup.d.ts +33 -0
- package/dist/components/rating-group/RatingGroup.js +150 -0
- package/dist/components/rating-group/RatingGroup.jsx +80 -0
- package/dist/components/rating-group/index.d.ts +2 -0
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/rating-group/index.jsx +1 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +30 -0
- package/dist/components/scroll-area/ScrollArea.js +109 -0
- package/dist/components/scroll-area/ScrollArea.jsx +61 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/scroll-area/index.jsx +1 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +33 -0
- package/dist/components/segment-group/SegmentGroup.js +205 -0
- package/dist/components/segment-group/SegmentGroup.jsx +126 -0
- package/dist/components/segment-group/index.d.ts +1 -0
- package/dist/components/segment-group/index.js +1 -0
- package/dist/components/segment-group/index.jsx +1 -0
- package/dist/components/select/Select.d.ts +57 -0
- package/dist/components/select/Select.js +395 -0
- package/dist/components/select/Select.jsx +210 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/index.jsx +1 -0
- package/dist/components/separator/Separator.d.ts +17 -0
- package/dist/components/separator/Separator.js +127 -0
- package/dist/components/separator/Separator.jsx +100 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/index.jsx +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +82 -0
- package/dist/components/sidebar/Sidebar.js +590 -0
- package/dist/components/sidebar/Sidebar.jsx +308 -0
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/sidebar/index.js +1 -0
- package/dist/components/sidebar/index.jsx +1 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +30 -0
- package/dist/components/signature-pad/SignaturePad.js +211 -0
- package/dist/components/signature-pad/SignaturePad.jsx +116 -0
- package/dist/components/signature-pad/index.d.ts +1 -0
- package/dist/components/signature-pad/index.js +1 -0
- package/dist/components/signature-pad/index.jsx +1 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +17 -0
- package/dist/components/simple-grid/SimpleGrid.js +74 -0
- package/dist/components/simple-grid/SimpleGrid.jsx +59 -0
- package/dist/components/simple-grid/index.d.ts +1 -0
- package/dist/components/simple-grid/index.js +1 -0
- package/dist/components/simple-grid/index.jsx +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +15 -0
- package/dist/components/skeleton/Skeleton.js +74 -0
- package/dist/components/skeleton/Skeleton.jsx +47 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/skeleton/index.jsx +1 -0
- package/dist/components/slider/Slider.d.ts +36 -0
- package/dist/components/slider/Slider.js +202 -0
- package/dist/components/slider/Slider.jsx +109 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/index.jsx +1 -0
- package/dist/components/spinner/Spinner.d.ts +11 -0
- package/dist/components/spinner/Spinner.js +73 -0
- package/dist/components/spinner/Spinner.jsx +44 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/spinner/index.jsx +1 -0
- package/dist/components/split-button/SplitButton.d.ts +41 -0
- package/dist/components/split-button/SplitButton.js +197 -0
- package/dist/components/split-button/SplitButton.jsx +117 -0
- package/dist/components/split-button/index.d.ts +1 -0
- package/dist/components/split-button/index.js +1 -0
- package/dist/components/split-button/index.jsx +1 -0
- package/dist/components/splitter/Splitter.d.ts +18 -0
- package/dist/components/splitter/Splitter.js +101 -0
- package/dist/components/splitter/Splitter.jsx +58 -0
- package/dist/components/splitter/index.d.ts +1 -0
- package/dist/components/splitter/index.js +1 -0
- package/dist/components/splitter/index.jsx +1 -0
- package/dist/components/stack/Stack.d.ts +19 -0
- package/dist/components/stack/Stack.js +83 -0
- package/dist/components/stack/Stack.jsx +68 -0
- package/dist/components/stack/index.d.ts +1 -0
- package/dist/components/stack/index.js +1 -0
- package/dist/components/stack/index.jsx +1 -0
- package/dist/components/steps/Steps.d.ts +35 -0
- package/dist/components/steps/Steps.js +162 -0
- package/dist/components/steps/Steps.jsx +99 -0
- package/dist/components/steps/index.d.ts +1 -0
- package/dist/components/steps/index.js +1 -0
- package/dist/components/steps/index.jsx +1 -0
- package/dist/components/swap/Swap.d.ts +20 -0
- package/dist/components/swap/Swap.js +52 -0
- package/dist/components/swap/Swap.jsx +30 -0
- package/dist/components/swap/index.d.ts +1 -0
- package/dist/components/swap/index.js +1 -0
- package/dist/components/swap/index.jsx +1 -0
- package/dist/components/switch/Switch.d.ts +25 -0
- package/dist/components/switch/Switch.js +101 -0
- package/dist/components/switch/Switch.jsx +57 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/index.jsx +1 -0
- package/dist/components/table/Table.d.ts +71 -0
- package/dist/components/table/Table.js +363 -0
- package/dist/components/table/Table.jsx +189 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/index.jsx +1 -0
- package/dist/components/tabs/Tabs.d.ts +25 -0
- package/dist/components/tabs/Tabs.js +98 -0
- package/dist/components/tabs/Tabs.jsx +55 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/index.jsx +1 -0
- package/dist/components/tag/Tag.d.ts +24 -0
- package/dist/components/tag/Tag.js +147 -0
- package/dist/components/tag/Tag.jsx +78 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/index.jsx +1 -0
- package/dist/components/tags-input/TagsInput.d.ts +32 -0
- package/dist/components/tags-input/TagsInput.js +240 -0
- package/dist/components/tags-input/TagsInput.jsx +127 -0
- package/dist/components/tags-input/index.d.ts +1 -0
- package/dist/components/tags-input/index.js +1 -0
- package/dist/components/tags-input/index.jsx +1 -0
- package/dist/components/text/Text.d.ts +30 -0
- package/dist/components/text/Text.js +126 -0
- package/dist/components/text/Text.jsx +91 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +1 -0
- package/dist/components/text/index.jsx +1 -0
- package/dist/components/textarea/Textarea.d.ts +9 -0
- package/dist/components/textarea/Textarea.js +45 -0
- package/dist/components/textarea/Textarea.jsx +26 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/index.jsx +1 -0
- package/dist/components/timer/Timer.d.ts +26 -0
- package/dist/components/timer/Timer.js +126 -0
- package/dist/components/timer/Timer.jsx +77 -0
- package/dist/components/timer/index.d.ts +1 -0
- package/dist/components/timer/index.js +1 -0
- package/dist/components/timer/index.jsx +1 -0
- package/dist/components/toast/Toast.d.ts +22 -0
- package/dist/components/toast/Toast.js +184 -0
- package/dist/components/toast/Toast.jsx +94 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/index.jsx +1 -0
- package/dist/components/toc/Toc.d.ts +34 -0
- package/dist/components/toc/Toc.js +222 -0
- package/dist/components/toc/Toc.jsx +129 -0
- package/dist/components/toc/index.d.ts +1 -0
- package/dist/components/toc/index.js +1 -0
- package/dist/components/toc/index.jsx +1 -0
- package/dist/components/toggle/Toggle.d.ts +17 -0
- package/dist/components/toggle/Toggle.js +76 -0
- package/dist/components/toggle/Toggle.jsx +51 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/index.jsx +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +27 -0
- package/dist/components/toggle-group/ToggleGroup.js +165 -0
- package/dist/components/toggle-group/ToggleGroup.jsx +110 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/index.jsx +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +29 -0
- package/dist/components/tooltip/Tooltip.js +192 -0
- package/dist/components/tooltip/Tooltip.jsx +108 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/index.jsx +1 -0
- package/dist/components/tour/Tour.d.ts +46 -0
- package/dist/components/tour/Tour.js +274 -0
- package/dist/components/tour/Tour.jsx +155 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tour/index.js +1 -0
- package/dist/components/tour/index.jsx +1 -0
- package/dist/components/tree-view/TreeView.d.ts +58 -0
- package/dist/components/tree-view/TreeView.js +296 -0
- package/dist/components/tree-view/TreeView.jsx +173 -0
- package/dist/components/tree-view/index.d.ts +1 -0
- package/dist/components/tree-view/index.js +1 -0
- package/dist/components/tree-view/index.jsx +1 -0
- package/dist/components/typeset/Typeset.d.ts +15 -0
- package/dist/components/typeset/Typeset.js +68 -0
- package/dist/components/typeset/Typeset.jsx +33 -0
- package/dist/components/typeset/Typeset.module.js +6 -0
- package/dist/components/typeset/Typeset.module.jsx +6 -0
- package/dist/components/typeset/Typeset_module.css +466 -0
- package/dist/components/typeset/index.d.ts +1 -0
- package/dist/components/typeset/index.js +1 -0
- package/dist/components/typeset/index.jsx +1 -0
- package/dist/internal/cn.d.ts +2 -0
- package/dist/internal/cn.js +40 -0
- package/dist/internal/cn.jsx +40 -0
- package/dist/internal/icons/ui/Icons.d.ts +37 -0
- package/dist/internal/icons/ui/Icons.js +115 -0
- package/dist/internal/icons/ui/Icons.jsx +93 -0
- package/dist/internal/icons/ui/index.d.ts +1 -0
- package/dist/internal/icons/ui/index.js +1 -0
- package/dist/internal/icons/ui/index.jsx +1 -0
- package/dist/internal/overlayPortal.d.ts +13 -0
- package/dist/internal/overlayPortal.js +39 -0
- package/dist/internal/overlayPortal.jsx +19 -0
- package/dist/locale.d.ts +1 -0
- package/dist/locale.js +1 -0
- package/dist/locale.jsx +1 -0
- package/dist/presets/contrast.css +65 -0
- package/dist/presets/dense.css +78 -0
- package/dist/presets/soft.css +77 -0
- package/dist/styles/animations.css +371 -0
- package/dist/styles/borders.css +10 -0
- package/dist/styles/colors.css +122 -0
- package/dist/styles/opacity.css +5 -0
- package/dist/styles/radius.css +11 -0
- package/dist/styles/shadows.css +5 -0
- package/dist/styles/sizing.css +11 -0
- package/dist/styles/spacing.css +26 -0
- package/dist/styles/style.css +180 -0
- package/dist/styles/transforms.css +4 -0
- package/dist/styles/transitions.css +32 -0
- package/dist/styles/typography.css +37 -0
- package/dist/styles/z-index.css +13 -0
- package/package.json +633 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Dialog, useDialog, useDialogContext } from "@ark-ui/solid/dialog";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { children, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.jsx";
|
|
5
|
+
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.jsx";
|
|
6
|
+
import { CloseButton } from "../close-button/index.jsx";
|
|
7
|
+
const DEFAULT_CLOSE_BUTTON_LABEL = 'Close dialog';
|
|
8
|
+
function DialogRoot(props) {
|
|
9
|
+
const [local, others] = splitProps(props, [
|
|
10
|
+
'children',
|
|
11
|
+
'lazyMount',
|
|
12
|
+
'portalled',
|
|
13
|
+
'portalRef',
|
|
14
|
+
'unmountOnExit'
|
|
15
|
+
]);
|
|
16
|
+
return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
|
|
17
|
+
<Dialog.Root lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</Dialog.Root>
|
|
20
|
+
</OverlayPortalProvider>;
|
|
21
|
+
}
|
|
22
|
+
function DialogRootProvider(props) {
|
|
23
|
+
const [local, others] = splitProps(props, [
|
|
24
|
+
'children',
|
|
25
|
+
'lazyMount',
|
|
26
|
+
'portalled',
|
|
27
|
+
'portalRef',
|
|
28
|
+
'unmountOnExit'
|
|
29
|
+
]);
|
|
30
|
+
return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
|
|
31
|
+
<Dialog.RootProvider lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others}>
|
|
32
|
+
{local.children}
|
|
33
|
+
</Dialog.RootProvider>
|
|
34
|
+
</OverlayPortalProvider>;
|
|
35
|
+
}
|
|
36
|
+
function DialogTrigger(props) {
|
|
37
|
+
const [local, others] = splitProps(props, [
|
|
38
|
+
'asChild',
|
|
39
|
+
'class'
|
|
40
|
+
]);
|
|
41
|
+
return <Dialog.Trigger asChild={local.asChild} data-slot="dialog-trigger" class={cn(!local.asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', local.class)} {...others}/>;
|
|
42
|
+
}
|
|
43
|
+
function DialogBackdrop(props) {
|
|
44
|
+
const [local, others] = splitProps(props, [
|
|
45
|
+
'class'
|
|
46
|
+
]);
|
|
47
|
+
return <OverlayPortal>
|
|
48
|
+
<Dialog.Backdrop data-slot="dialog-backdrop" class={cn('fixed inset-0 z-[calc(40+var(--layer-index,0))] bg-overlay backdrop-blur-[4px] data-[state=closed]:animate-[moduix-fade-out_200ms_ease-in-out_forwards] data-[state=open]:animate-[moduix-fade-in_200ms_ease-in-out] motion-reduce:animate-none', local.class)} {...others}/>
|
|
49
|
+
</OverlayPortal>;
|
|
50
|
+
}
|
|
51
|
+
function DialogPositioner(props) {
|
|
52
|
+
const [local, others] = splitProps(props, [
|
|
53
|
+
'class'
|
|
54
|
+
]);
|
|
55
|
+
return <OverlayPortal>
|
|
56
|
+
<Dialog.Positioner data-slot="dialog-positioner" class={cn('fixed inset-0 z-[calc(50+var(--layer-index,0))] grid [scrollbar-gutter:stable_both-edges] place-items-center overflow-y-auto overscroll-contain p-4', local.class)} {...others}/>
|
|
57
|
+
</OverlayPortal>;
|
|
58
|
+
}
|
|
59
|
+
function DialogContent(props) {
|
|
60
|
+
const [local, others] = splitProps(props, [
|
|
61
|
+
'class'
|
|
62
|
+
]);
|
|
63
|
+
return <Dialog.Content data-slot="dialog-content" class={cn("relative max-h-[calc(100dvh-2rem)] w-[min(28rem,calc(100vw-2rem))] max-w-full origin-top rounded-lg border border-border bg-popover p-6 text-popover-foreground shadow-lg outline-0 transition-[scale,translate] duration-200 ease-in-out after:pointer-events-none after:absolute after:inset-0 after:z-1 after:rounded-[inherit] after:bg-black/5 after:opacity-0 after:transition-opacity after:duration-200 after:ease-in-out after:content-[''] data-[has-nested]:[translate:0_calc(2.5rem*var(--nested-layer-count,0))] data-[has-nested]:[scale:calc(1-0.05*var(--nested-layer-count,0))] data-[has-nested]:after:opacity-100 data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none motion-reduce:transition-none", local.class)} {...others}/>;
|
|
64
|
+
}
|
|
65
|
+
function DialogTitle(props) {
|
|
66
|
+
const [local, others] = splitProps(props, [
|
|
67
|
+
'class'
|
|
68
|
+
]);
|
|
69
|
+
return <Dialog.Title data-slot="dialog-title" class={cn('text-lg font-semibold text-popover-foreground', local.class)} {...others}/>;
|
|
70
|
+
}
|
|
71
|
+
function DialogDescription(props) {
|
|
72
|
+
const [local, others] = splitProps(props, [
|
|
73
|
+
'class'
|
|
74
|
+
]);
|
|
75
|
+
return <Dialog.Description data-slot="dialog-description" class={cn('text-md text-muted-foreground', local.class)} {...others}/>;
|
|
76
|
+
}
|
|
77
|
+
function DialogCloseTrigger(props) {
|
|
78
|
+
const [local, others] = splitProps(props, [
|
|
79
|
+
'asChild',
|
|
80
|
+
'class'
|
|
81
|
+
]);
|
|
82
|
+
return <Dialog.CloseTrigger asChild={local.asChild} data-slot="dialog-close-trigger" class={cn(!local.asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', local.class)} {...others}/>;
|
|
83
|
+
}
|
|
84
|
+
function DialogCloseIcon(props) {
|
|
85
|
+
const [local, others] = splitProps(props, [
|
|
86
|
+
'aria-label',
|
|
87
|
+
'aria-labelledby',
|
|
88
|
+
'children',
|
|
89
|
+
'class'
|
|
90
|
+
]);
|
|
91
|
+
const resolvedChildren = children(()=>local.children);
|
|
92
|
+
return <Dialog.CloseTrigger asChild={(triggerProps)=><CloseButton.Root {...triggerProps()} data-slot="dialog-close-icon" aria-label={local['aria-label'] ?? DEFAULT_CLOSE_BUTTON_LABEL} aria-labelledby={local['aria-labelledby']} class={cn('absolute end-4 top-4 z-2 size-7 rounded-md bg-transparent text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring motion-reduce:transition-none [&>svg]:size-3 [&>svg]:shrink-0 [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-popover-foreground', local.class)}>
|
|
93
|
+
{resolvedChildren()}
|
|
94
|
+
</CloseButton.Root>} {...others}/>;
|
|
95
|
+
}
|
|
96
|
+
function DialogHeader(props) {
|
|
97
|
+
const [local, others] = splitProps(props, [
|
|
98
|
+
'class'
|
|
99
|
+
]);
|
|
100
|
+
return <ark.div data-slot="dialog-header" class={cn("grid grid-cols-[minmax(0,1fr)_auto] items-start gap-1 [&>[data-slot='dialog-close-trigger']]:col-start-2 [&>[data-slot='dialog-close-trigger']]:justify-self-end [&>[data-slot='dialog-description']]:col-span-2 [&>[data-slot='dialog-title']]:col-start-1", local.class)} {...others}/>;
|
|
101
|
+
}
|
|
102
|
+
function DialogBody(props) {
|
|
103
|
+
const [local, others] = splitProps(props, [
|
|
104
|
+
'class'
|
|
105
|
+
]);
|
|
106
|
+
return <ark.div data-slot="dialog-body" class={cn('mt-4 text-md text-muted-foreground', local.class)} {...others}/>;
|
|
107
|
+
}
|
|
108
|
+
function DialogFooter(props) {
|
|
109
|
+
const [local, others] = splitProps(props, [
|
|
110
|
+
'class'
|
|
111
|
+
]);
|
|
112
|
+
return <ark.div data-slot="dialog-footer" class={cn('mt-6 flex justify-end gap-2', local.class)} {...others}/>;
|
|
113
|
+
}
|
|
114
|
+
const Dialog_Dialog = Object.assign(DialogRoot, {
|
|
115
|
+
Root: DialogRoot,
|
|
116
|
+
RootProvider: DialogRootProvider,
|
|
117
|
+
Context: Dialog.Context,
|
|
118
|
+
Trigger: DialogTrigger,
|
|
119
|
+
Backdrop: DialogBackdrop,
|
|
120
|
+
Positioner: DialogPositioner,
|
|
121
|
+
Content: DialogContent,
|
|
122
|
+
Title: DialogTitle,
|
|
123
|
+
Description: DialogDescription,
|
|
124
|
+
CloseTrigger: DialogCloseTrigger,
|
|
125
|
+
CloseIcon: DialogCloseIcon,
|
|
126
|
+
Header: DialogHeader,
|
|
127
|
+
Body: DialogBody,
|
|
128
|
+
Footer: DialogFooter
|
|
129
|
+
});
|
|
130
|
+
export { Dialog_Dialog as Dialog, useDialog, useDialogContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog, useDialog, useDialogContext } from "./Dialog.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog, useDialog, useDialogContext } from "./Dialog.jsx";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Drawer as DrawerPrimitive, useDrawer, useDrawerContext, useDrawerStackContext } from '@ark-ui/solid/drawer';
|
|
2
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
3
|
+
import type { ComponentProps } from 'solid-js';
|
|
4
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
5
|
+
type DrawerVariant = 'island';
|
|
6
|
+
type DrawerRootProps = ComponentProps<typeof DrawerPrimitive.Root> & OverlayPortalProps & {
|
|
7
|
+
variant?: DrawerVariant;
|
|
8
|
+
};
|
|
9
|
+
type DrawerRootProviderProps = ComponentProps<typeof DrawerPrimitive.RootProvider> & OverlayPortalProps;
|
|
10
|
+
type DrawerContentProps = ComponentProps<typeof DrawerPrimitive.Content> & {
|
|
11
|
+
variant?: 'island';
|
|
12
|
+
};
|
|
13
|
+
type DrawerCloseIconProps = Omit<ComponentProps<typeof DrawerPrimitive.CloseTrigger>, 'asChild'>;
|
|
14
|
+
declare function DrawerRoot(props: DrawerRootProps): import("solid-js").JSX.Element;
|
|
15
|
+
declare function DrawerRootProvider(props: DrawerRootProviderProps): import("solid-js").JSX.Element;
|
|
16
|
+
declare function DrawerTrigger(props: ComponentProps<typeof DrawerPrimitive.Trigger>): import("solid-js").JSX.Element;
|
|
17
|
+
declare function DrawerBackdrop(props: ComponentProps<typeof DrawerPrimitive.Backdrop>): import("solid-js").JSX.Element;
|
|
18
|
+
declare function DrawerPositioner(props: ComponentProps<typeof DrawerPrimitive.Positioner>): import("solid-js").JSX.Element;
|
|
19
|
+
declare function DrawerContent(props: DrawerContentProps): import("solid-js").JSX.Element;
|
|
20
|
+
declare function DrawerGrabber(props: ComponentProps<typeof DrawerPrimitive.Grabber>): import("solid-js").JSX.Element;
|
|
21
|
+
declare function DrawerGrabberIndicator(props: ComponentProps<typeof DrawerPrimitive.GrabberIndicator>): import("solid-js").JSX.Element;
|
|
22
|
+
declare function DrawerTitle(props: ComponentProps<typeof DrawerPrimitive.Title>): import("solid-js").JSX.Element;
|
|
23
|
+
declare function DrawerDescription(props: ComponentProps<typeof DrawerPrimitive.Description>): import("solid-js").JSX.Element;
|
|
24
|
+
declare function DrawerCloseTrigger(props: ComponentProps<typeof DrawerPrimitive.CloseTrigger>): import("solid-js").JSX.Element;
|
|
25
|
+
declare function DrawerCloseIcon(props: DrawerCloseIconProps): import("solid-js").JSX.Element;
|
|
26
|
+
declare function DrawerSwipeArea(props: ComponentProps<typeof DrawerPrimitive.SwipeArea>): import("solid-js").JSX.Element;
|
|
27
|
+
declare function DrawerIndent(props: ComponentProps<typeof DrawerPrimitive.Indent>): import("solid-js").JSX.Element;
|
|
28
|
+
declare function DrawerIndentBackground(props: ComponentProps<typeof DrawerPrimitive.IndentBackground>): import("solid-js").JSX.Element;
|
|
29
|
+
declare function DrawerHeader(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
30
|
+
declare function DrawerBody(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
31
|
+
declare function DrawerFooter(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
32
|
+
declare const Drawer: typeof DrawerRoot & {
|
|
33
|
+
Root: typeof DrawerRoot;
|
|
34
|
+
RootProvider: typeof DrawerRootProvider;
|
|
35
|
+
Context: (props: DrawerPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
36
|
+
Stack: (props: DrawerPrimitive.StackProps) => import("solid-js").JSX.Element;
|
|
37
|
+
Trigger: typeof DrawerTrigger;
|
|
38
|
+
Backdrop: typeof DrawerBackdrop;
|
|
39
|
+
Positioner: typeof DrawerPositioner;
|
|
40
|
+
Content: typeof DrawerContent;
|
|
41
|
+
Grabber: typeof DrawerGrabber;
|
|
42
|
+
GrabberIndicator: typeof DrawerGrabberIndicator;
|
|
43
|
+
Title: typeof DrawerTitle;
|
|
44
|
+
Description: typeof DrawerDescription;
|
|
45
|
+
CloseTrigger: typeof DrawerCloseTrigger;
|
|
46
|
+
CloseIcon: typeof DrawerCloseIcon;
|
|
47
|
+
SwipeArea: typeof DrawerSwipeArea;
|
|
48
|
+
Indent: typeof DrawerIndent;
|
|
49
|
+
IndentBackground: typeof DrawerIndentBackground;
|
|
50
|
+
Header: typeof DrawerHeader;
|
|
51
|
+
Body: typeof DrawerBody;
|
|
52
|
+
Footer: typeof DrawerFooter;
|
|
53
|
+
};
|
|
54
|
+
export { Drawer, useDrawer, useDrawerContext, useDrawerStackContext };
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
2
|
+
import { Drawer, useDrawer, useDrawerContext, useDrawerStackContext } from "@ark-ui/solid/drawer";
|
|
3
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
4
|
+
import { children, createContext, splitProps, useContext } from "solid-js";
|
|
5
|
+
import { cn } from "../../internal/cn.js";
|
|
6
|
+
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
7
|
+
import { CloseButton } from "../close-button/index.js";
|
|
8
|
+
const DEFAULT_CLOSE_BUTTON_LABEL = 'Close drawer';
|
|
9
|
+
const DrawerVariantContext = createContext();
|
|
10
|
+
function DrawerRoot(props) {
|
|
11
|
+
const [local, others] = splitProps(props, [
|
|
12
|
+
'children',
|
|
13
|
+
'lazyMount',
|
|
14
|
+
'portalled',
|
|
15
|
+
'portalRef',
|
|
16
|
+
'unmountOnExit',
|
|
17
|
+
'variant',
|
|
18
|
+
'swipeDirection',
|
|
19
|
+
'snapPoints',
|
|
20
|
+
'defaultSnapPoint'
|
|
21
|
+
]);
|
|
22
|
+
return createComponent(OverlayPortalProvider, {
|
|
23
|
+
get portalled () {
|
|
24
|
+
return local.portalled;
|
|
25
|
+
},
|
|
26
|
+
get portalRef () {
|
|
27
|
+
return local.portalRef;
|
|
28
|
+
},
|
|
29
|
+
get children () {
|
|
30
|
+
return createComponent(DrawerVariantContext.Provider, {
|
|
31
|
+
get value () {
|
|
32
|
+
return local.variant;
|
|
33
|
+
},
|
|
34
|
+
get children () {
|
|
35
|
+
return createComponent(Drawer.Root, mergeProps({
|
|
36
|
+
get lazyMount () {
|
|
37
|
+
return local.lazyMount ?? true;
|
|
38
|
+
},
|
|
39
|
+
get unmountOnExit () {
|
|
40
|
+
return local.unmountOnExit ?? true;
|
|
41
|
+
},
|
|
42
|
+
get swipeDirection () {
|
|
43
|
+
return local.swipeDirection;
|
|
44
|
+
},
|
|
45
|
+
get snapPoints () {
|
|
46
|
+
return local.snapPoints ?? ('island' === local.variant ? [
|
|
47
|
+
1
|
|
48
|
+
] : void 0);
|
|
49
|
+
},
|
|
50
|
+
get defaultSnapPoint () {
|
|
51
|
+
return memo(()=>void 0 !== local.defaultSnapPoint)() ? local.defaultSnapPoint : 'island' === local.variant ? 1 : void 0;
|
|
52
|
+
}
|
|
53
|
+
}, others, {
|
|
54
|
+
get children () {
|
|
55
|
+
return local.children;
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function DrawerRootProvider(props) {
|
|
64
|
+
const [local, others] = splitProps(props, [
|
|
65
|
+
'children',
|
|
66
|
+
'lazyMount',
|
|
67
|
+
'portalled',
|
|
68
|
+
'portalRef',
|
|
69
|
+
'unmountOnExit'
|
|
70
|
+
]);
|
|
71
|
+
return createComponent(OverlayPortalProvider, {
|
|
72
|
+
get portalled () {
|
|
73
|
+
return local.portalled;
|
|
74
|
+
},
|
|
75
|
+
get portalRef () {
|
|
76
|
+
return local.portalRef;
|
|
77
|
+
},
|
|
78
|
+
get children () {
|
|
79
|
+
return createComponent(Drawer.RootProvider, mergeProps({
|
|
80
|
+
get lazyMount () {
|
|
81
|
+
return local.lazyMount ?? true;
|
|
82
|
+
},
|
|
83
|
+
get unmountOnExit () {
|
|
84
|
+
return local.unmountOnExit ?? true;
|
|
85
|
+
}
|
|
86
|
+
}, others, {
|
|
87
|
+
get children () {
|
|
88
|
+
return local.children;
|
|
89
|
+
}
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const DrawerStack = Drawer.Stack;
|
|
95
|
+
function DrawerTrigger(props) {
|
|
96
|
+
const [local, others] = splitProps(props, [
|
|
97
|
+
'asChild',
|
|
98
|
+
'class'
|
|
99
|
+
]);
|
|
100
|
+
return createComponent(Drawer.Trigger, mergeProps({
|
|
101
|
+
get asChild () {
|
|
102
|
+
return local.asChild;
|
|
103
|
+
},
|
|
104
|
+
"data-slot": "drawer-trigger",
|
|
105
|
+
get ["class"] () {
|
|
106
|
+
return cn(!local.asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', local.class);
|
|
107
|
+
}
|
|
108
|
+
}, others));
|
|
109
|
+
}
|
|
110
|
+
function DrawerBackdrop(props) {
|
|
111
|
+
const [local, others] = splitProps(props, [
|
|
112
|
+
'class'
|
|
113
|
+
]);
|
|
114
|
+
return createComponent(OverlayPortal, {
|
|
115
|
+
get children () {
|
|
116
|
+
return createComponent(Drawer.Backdrop, mergeProps({
|
|
117
|
+
"data-slot": "drawer-backdrop",
|
|
118
|
+
get ["class"] () {
|
|
119
|
+
return cn('fixed inset-0 z-[calc(40+var(--layer-index,0))] min-h-dvh bg-overlay backdrop-blur-xs [transition:opacity_calc(var(--drawer-swipe-strength,1)*450ms)_ease-out,backdrop-filter_calc(var(--drawer-swipe-strength,1)*450ms)_ease-out] data-[state=closed]:animate-moduix-drawer-backdrop-out data-[state=open]:animate-moduix-drawer-backdrop-in data-[state=open]:data-swiping:[transition-duration:0s] motion-reduce:[transition-duration:1ms] motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] [&[hidden]:has(~[data-slot=drawer-positioner]:not([hidden]))]:block', local.class);
|
|
120
|
+
}
|
|
121
|
+
}, others));
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function DrawerPositioner(props) {
|
|
126
|
+
const [local, others] = splitProps(props, [
|
|
127
|
+
'class'
|
|
128
|
+
]);
|
|
129
|
+
return createComponent(OverlayPortal, {
|
|
130
|
+
get children () {
|
|
131
|
+
return createComponent(Drawer.Positioner, mergeProps({
|
|
132
|
+
"data-slot": "drawer-positioner",
|
|
133
|
+
get ["class"] () {
|
|
134
|
+
return cn('fixed inset-0 z-[calc(50+var(--layer-index,0))] box-border flex items-end justify-center overflow-hidden overscroll-contain p-0 has-[>[data-slot=drawer-content][data-variant=island]]:pt-[max(1rem,env(safe-area-inset-top,0px))] has-[>[data-slot=drawer-content][data-variant=island]]:pr-[max(1rem,env(safe-area-inset-right,0px))] has-[>[data-slot=drawer-content][data-variant=island]]:pb-[max(1rem,env(safe-area-inset-bottom,0px))] has-[>[data-slot=drawer-content][data-variant=island]]:pl-[max(1rem,env(safe-area-inset-left,0px))] data-[swipe-direction=left]:items-stretch data-[swipe-direction=left]:justify-start data-[swipe-direction=right]:items-stretch data-[swipe-direction=right]:justify-end data-[swipe-direction=up]:items-start [&:not([hidden])_[data-slot=drawer-content][hidden]]:flex', local.class);
|
|
135
|
+
}
|
|
136
|
+
}, others));
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function DrawerContent(props) {
|
|
141
|
+
const [local, others] = splitProps(props, [
|
|
142
|
+
'class',
|
|
143
|
+
'draggable',
|
|
144
|
+
'variant'
|
|
145
|
+
]);
|
|
146
|
+
const rootVariant = useContext(DrawerVariantContext);
|
|
147
|
+
return createComponent(Drawer.Content, mergeProps({
|
|
148
|
+
"data-slot": "drawer-content",
|
|
149
|
+
get ["data-variant"] () {
|
|
150
|
+
return local.variant ?? rootVariant;
|
|
151
|
+
},
|
|
152
|
+
get ["class"] () {
|
|
153
|
+
return cn("group/drawer relative box-border flex h-full max-h-[80dvh] w-full max-w-[100vw] origin-bottom [translate:0_0] [scale:1] flex-col overscroll-contain rounded-t-xl rounded-b-none border border-border bg-popover px-6 pt-3 pb-[calc(1rem+env(safe-area-inset-bottom,0px))] text-popover-foreground shadow-lg outline-0 [transition:transform_calc(var(--drawer-swipe-strength,1)*450ms)_cubic-bezier(0,0,0.2,1),scale_450ms_cubic-bezier(0.32,0.72,0,1),translate_450ms_cubic-bezier(0.32,0.72,0,1)] after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-control-xl after:bg-inherit after:content-[''] data-dragging:select-none data-nested-drawer-swiping:[transition-duration:0s] data-[nested-drawer-open]:[scale:calc(1-0.05*var(--nested-drawers,0))] data-[state=closed]:animate-moduix-drawer-content-out-down data-[state=open]:animate-moduix-drawer-content-in-down data-[state=open]:data-swiping:[transition-duration:0s] data-[swipe-direction=down]:data-[nested-drawer-open]:[translate:0_calc(-1*40px*var(--nested-drawers,0))] data-[swipe-direction=left]:h-full data-[swipe-direction=left]:max-h-none data-[swipe-direction=left]:w-[min(22rem,calc(100vw-2rem))] data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:rounded-s-none data-[swipe-direction=left]:rounded-e-xl data-[swipe-direction=left]:p-6 data-[swipe-direction=left]:after:inset-x-auto data-[swipe-direction=left]:after:inset-y-0 data-[swipe-direction=left]:after:top-0 data-[swipe-direction=left]:after:right-full data-[swipe-direction=left]:after:h-auto data-[swipe-direction=left]:after:w-control-xl data-[swipe-direction=left]:data-[nested-drawer-open]:[translate:calc(40px*var(--nested-drawers,0))_0] data-[swipe-direction=left]:data-[state=closed]:animate-moduix-drawer-content-out-left data-[swipe-direction=left]:data-[state=open]:animate-moduix-drawer-content-in-left data-[swipe-direction=right]:h-full data-[swipe-direction=right]:max-h-none data-[swipe-direction=right]:w-[min(22rem,calc(100vw-2rem))] data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:rounded-s-xl data-[swipe-direction=right]:rounded-e-none data-[swipe-direction=right]:p-6 data-[swipe-direction=right]:after:inset-x-auto data-[swipe-direction=right]:after:inset-y-0 data-[swipe-direction=right]:after:top-0 data-[swipe-direction=right]:after:left-full data-[swipe-direction=right]:after:h-auto data-[swipe-direction=right]:after:w-control-xl data-[swipe-direction=right]:data-[nested-drawer-open]:[translate:calc(-1*40px*var(--nested-drawers,0))_0] data-[swipe-direction=right]:data-[state=closed]:animate-moduix-drawer-content-out-right data-[swipe-direction=right]:data-[state=open]:animate-moduix-drawer-content-in-right data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:rounded-t-none data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:pt-[calc(1rem+env(safe-area-inset-top,0px))] data-[swipe-direction=up]:pb-4 data-[swipe-direction=up]:after:top-auto data-[swipe-direction=up]:after:bottom-full data-[swipe-direction=up]:data-[nested-drawer-open]:[translate:0_calc(40px*var(--nested-drawers,0))] data-[swipe-direction=up]:data-[state=closed]:animate-moduix-drawer-content-out-up data-[swipe-direction=up]:data-[state=open]:animate-moduix-drawer-content-in-up data-[variant=island]:rounded-xl data-[variant=island]:after:hidden motion-reduce:[transition-duration:1ms] motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]", local.class);
|
|
154
|
+
},
|
|
155
|
+
get draggable () {
|
|
156
|
+
return local.draggable ?? true;
|
|
157
|
+
}
|
|
158
|
+
}, others));
|
|
159
|
+
}
|
|
160
|
+
function DrawerGrabber(props) {
|
|
161
|
+
const [local, others] = splitProps(props, [
|
|
162
|
+
'class'
|
|
163
|
+
]);
|
|
164
|
+
return createComponent(Drawer.Grabber, mergeProps({
|
|
165
|
+
"data-slot": "drawer-grabber",
|
|
166
|
+
get ["class"] () {
|
|
167
|
+
return cn('group/grabber flex w-full shrink-0 cursor-grab items-center justify-center pb-1 select-none group-data-[swipe-direction=left]/drawer:hidden group-data-[swipe-direction=right]/drawer:hidden active:cursor-grabbing', local.class);
|
|
168
|
+
}
|
|
169
|
+
}, others));
|
|
170
|
+
}
|
|
171
|
+
function DrawerGrabberIndicator(props) {
|
|
172
|
+
const [local, others] = splitProps(props, [
|
|
173
|
+
'class'
|
|
174
|
+
]);
|
|
175
|
+
return createComponent(Drawer.GrabberIndicator, mergeProps({
|
|
176
|
+
"data-slot": "drawer-grabber-indicator",
|
|
177
|
+
get ["class"] () {
|
|
178
|
+
return cn('h-1 w-12 rounded-full bg-muted-foreground opacity-[0.45] transition-[background-color,opacity] duration-200 ease-in-out motion-reduce:transition-none [@media(hover:hover)]:group-hover/grabber:opacity-70', local.class);
|
|
179
|
+
}
|
|
180
|
+
}, others));
|
|
181
|
+
}
|
|
182
|
+
function DrawerTitle(props) {
|
|
183
|
+
const [local, others] = splitProps(props, [
|
|
184
|
+
'class'
|
|
185
|
+
]);
|
|
186
|
+
return createComponent(Drawer.Title, mergeProps({
|
|
187
|
+
"data-slot": "drawer-title",
|
|
188
|
+
get ["class"] () {
|
|
189
|
+
return cn('text-lg font-semibold text-popover-foreground', local.class);
|
|
190
|
+
}
|
|
191
|
+
}, others));
|
|
192
|
+
}
|
|
193
|
+
function DrawerDescription(props) {
|
|
194
|
+
const [local, others] = splitProps(props, [
|
|
195
|
+
'class'
|
|
196
|
+
]);
|
|
197
|
+
return createComponent(Drawer.Description, mergeProps({
|
|
198
|
+
"data-slot": "drawer-description",
|
|
199
|
+
get ["class"] () {
|
|
200
|
+
return cn('text-md leading-6 text-muted-foreground', local.class);
|
|
201
|
+
}
|
|
202
|
+
}, others));
|
|
203
|
+
}
|
|
204
|
+
function DrawerCloseTrigger(props) {
|
|
205
|
+
const [local, others] = splitProps(props, [
|
|
206
|
+
'asChild',
|
|
207
|
+
'class'
|
|
208
|
+
]);
|
|
209
|
+
return createComponent(Drawer.CloseTrigger, mergeProps({
|
|
210
|
+
get asChild () {
|
|
211
|
+
return local.asChild;
|
|
212
|
+
},
|
|
213
|
+
"data-slot": "drawer-close-trigger",
|
|
214
|
+
get ["class"] () {
|
|
215
|
+
return cn(!local.asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', local.class);
|
|
216
|
+
}
|
|
217
|
+
}, others));
|
|
218
|
+
}
|
|
219
|
+
function DrawerCloseIcon(props) {
|
|
220
|
+
const [local, others] = splitProps(props, [
|
|
221
|
+
'aria-label',
|
|
222
|
+
'aria-labelledby',
|
|
223
|
+
'children',
|
|
224
|
+
'class'
|
|
225
|
+
]);
|
|
226
|
+
const resolvedChildren = children(()=>local.children);
|
|
227
|
+
return createComponent(Drawer.CloseTrigger, mergeProps({
|
|
228
|
+
asChild: (triggerProps)=>createComponent(CloseButton.Root, mergeProps(triggerProps, {
|
|
229
|
+
"data-slot": "drawer-close-icon",
|
|
230
|
+
get ["aria-label"] () {
|
|
231
|
+
return local['aria-label'] ?? (null == local['aria-labelledby'] ? DEFAULT_CLOSE_BUTTON_LABEL : void 0);
|
|
232
|
+
},
|
|
233
|
+
get ["aria-labelledby"] () {
|
|
234
|
+
return local['aria-labelledby'];
|
|
235
|
+
},
|
|
236
|
+
get ["class"] () {
|
|
237
|
+
return cn('absolute end-4 top-4 z-2 size-7 rounded-md bg-transparent text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring motion-reduce:transition-none [&>svg]:size-3 [&>svg]:shrink-0 [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-popover-foreground', local.class);
|
|
238
|
+
},
|
|
239
|
+
get children () {
|
|
240
|
+
return resolvedChildren();
|
|
241
|
+
}
|
|
242
|
+
}))
|
|
243
|
+
}, others));
|
|
244
|
+
}
|
|
245
|
+
function DrawerSwipeArea(props) {
|
|
246
|
+
const [local, others] = splitProps(props, [
|
|
247
|
+
'class'
|
|
248
|
+
]);
|
|
249
|
+
return createComponent(Drawer.SwipeArea, mergeProps({
|
|
250
|
+
"data-slot": "drawer-swipe-area",
|
|
251
|
+
get ["class"] () {
|
|
252
|
+
return cn('fixed z-50 touch-none data-disabled:pointer-events-none data-[swipe-direction=down]:start-0 data-[swipe-direction=down]:end-0 data-[swipe-direction=down]:top-0 data-[swipe-direction=down]:h-10 data-[swipe-direction=left]:end-0 data-[swipe-direction=left]:top-0 data-[swipe-direction=left]:bottom-0 data-[swipe-direction=left]:w-10 data-[swipe-direction=right]:start-0 data-[swipe-direction=right]:top-0 data-[swipe-direction=right]:bottom-0 data-[swipe-direction=right]:w-10 data-[swipe-direction=up]:start-0 data-[swipe-direction=up]:end-0 data-[swipe-direction=up]:bottom-0 data-[swipe-direction=up]:h-10', local.class);
|
|
253
|
+
}
|
|
254
|
+
}, others));
|
|
255
|
+
}
|
|
256
|
+
function DrawerIndent(props) {
|
|
257
|
+
const [local, others] = splitProps(props, [
|
|
258
|
+
'class'
|
|
259
|
+
]);
|
|
260
|
+
return createComponent(Drawer.Indent, mergeProps({
|
|
261
|
+
"data-slot": "drawer-indent",
|
|
262
|
+
get ["class"] () {
|
|
263
|
+
return cn('relative origin-top [translate:0_0] [scale:1] transition-[transform,border-radius] duration-[450ms] ease-spring data-active:[translate:0_calc(8px*(1-var(--drawer-swipe-progress,0)))] data-active:[scale:calc(0.97+(1-0.97)*var(--drawer-swipe-progress,0))] data-active:rounded-t-lg data-active:rounded-b-none motion-reduce:[transition-duration:1ms]', local.class);
|
|
264
|
+
}
|
|
265
|
+
}, others));
|
|
266
|
+
}
|
|
267
|
+
function DrawerIndentBackground(props) {
|
|
268
|
+
const [local, others] = splitProps(props, [
|
|
269
|
+
'class'
|
|
270
|
+
]);
|
|
271
|
+
return createComponent(Drawer.IndentBackground, mergeProps({
|
|
272
|
+
"data-slot": "drawer-indent-background",
|
|
273
|
+
get ["class"] () {
|
|
274
|
+
return cn('pointer-events-none absolute inset-0 bg-foreground opacity-0 transition-opacity duration-[450ms] ease-spring data-active:opacity-[calc(1-var(--drawer-swipe-progress,0))] motion-reduce:[transition-duration:1ms]', local.class);
|
|
275
|
+
}
|
|
276
|
+
}, others));
|
|
277
|
+
}
|
|
278
|
+
function DrawerHeader(props) {
|
|
279
|
+
const [local, others] = splitProps(props, [
|
|
280
|
+
'class'
|
|
281
|
+
]);
|
|
282
|
+
return createComponent(ark.div, mergeProps({
|
|
283
|
+
"data-slot": "drawer-header",
|
|
284
|
+
get ["class"] () {
|
|
285
|
+
return cn("grid grid-cols-[minmax(0,1fr)_auto] items-start gap-1 [&>[data-slot='drawer-close-icon']]:col-start-2 [&>[data-slot='drawer-close-icon']]:justify-self-end [&>[data-slot='drawer-close-trigger']]:col-start-2 [&>[data-slot='drawer-close-trigger']]:justify-self-end [&>[data-slot='drawer-description']]:col-span-2 [&>[data-slot='drawer-title']]:col-start-1", local.class);
|
|
286
|
+
}
|
|
287
|
+
}, others));
|
|
288
|
+
}
|
|
289
|
+
function DrawerBody(props) {
|
|
290
|
+
const [local, others] = splitProps(props, [
|
|
291
|
+
'class'
|
|
292
|
+
]);
|
|
293
|
+
return createComponent(ark.div, mergeProps({
|
|
294
|
+
"data-slot": "drawer-body",
|
|
295
|
+
get ["class"] () {
|
|
296
|
+
return cn('mt-4 min-h-0 overflow-y-auto text-md leading-6 text-muted-foreground', local.class);
|
|
297
|
+
}
|
|
298
|
+
}, others));
|
|
299
|
+
}
|
|
300
|
+
function DrawerFooter(props) {
|
|
301
|
+
const [local, others] = splitProps(props, [
|
|
302
|
+
'class'
|
|
303
|
+
]);
|
|
304
|
+
return createComponent(ark.div, mergeProps({
|
|
305
|
+
"data-slot": "drawer-footer",
|
|
306
|
+
get ["class"] () {
|
|
307
|
+
return cn('mt-6 flex justify-end gap-2', local.class);
|
|
308
|
+
}
|
|
309
|
+
}, others));
|
|
310
|
+
}
|
|
311
|
+
const Drawer_Drawer = Object.assign(DrawerRoot, {
|
|
312
|
+
Root: DrawerRoot,
|
|
313
|
+
RootProvider: DrawerRootProvider,
|
|
314
|
+
Context: Drawer.Context,
|
|
315
|
+
Stack: DrawerStack,
|
|
316
|
+
Trigger: DrawerTrigger,
|
|
317
|
+
Backdrop: DrawerBackdrop,
|
|
318
|
+
Positioner: DrawerPositioner,
|
|
319
|
+
Content: DrawerContent,
|
|
320
|
+
Grabber: DrawerGrabber,
|
|
321
|
+
GrabberIndicator: DrawerGrabberIndicator,
|
|
322
|
+
Title: DrawerTitle,
|
|
323
|
+
Description: DrawerDescription,
|
|
324
|
+
CloseTrigger: DrawerCloseTrigger,
|
|
325
|
+
CloseIcon: DrawerCloseIcon,
|
|
326
|
+
SwipeArea: DrawerSwipeArea,
|
|
327
|
+
Indent: DrawerIndent,
|
|
328
|
+
IndentBackground: DrawerIndentBackground,
|
|
329
|
+
Header: DrawerHeader,
|
|
330
|
+
Body: DrawerBody,
|
|
331
|
+
Footer: DrawerFooter
|
|
332
|
+
});
|
|
333
|
+
export { Drawer_Drawer as Drawer, useDrawer, useDrawerContext, useDrawerStackContext };
|