@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,144 @@
|
|
|
1
|
+
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
|
+
import { PinInput, usePinInput, usePinInputContext } from "@ark-ui/solid/pin-input";
|
|
3
|
+
import { For, children, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
import { SeparatorMarkIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template("<span data-slot=pin-input-separator>");
|
|
7
|
+
function PinInputRoot(props) {
|
|
8
|
+
const [local, others] = splitProps(props, [
|
|
9
|
+
'asChild',
|
|
10
|
+
'children',
|
|
11
|
+
'class',
|
|
12
|
+
'count',
|
|
13
|
+
'placeholder'
|
|
14
|
+
]);
|
|
15
|
+
return createComponent(PinInput.Root, mergeProps({
|
|
16
|
+
get asChild () {
|
|
17
|
+
return local.asChild;
|
|
18
|
+
},
|
|
19
|
+
get count () {
|
|
20
|
+
return local.count;
|
|
21
|
+
},
|
|
22
|
+
get placeholder () {
|
|
23
|
+
return local.placeholder ?? '';
|
|
24
|
+
},
|
|
25
|
+
"data-slot": "pin-input-root",
|
|
26
|
+
get ["class"] () {
|
|
27
|
+
return cn('inline-flex w-auto max-w-none flex-col items-start gap-2 data-disabled:opacity-50', local.class);
|
|
28
|
+
}
|
|
29
|
+
}, others, {
|
|
30
|
+
get children () {
|
|
31
|
+
return local.children;
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
function PinInputRootProvider(props) {
|
|
36
|
+
const [local, others] = splitProps(props, [
|
|
37
|
+
'asChild',
|
|
38
|
+
'children',
|
|
39
|
+
'class'
|
|
40
|
+
]);
|
|
41
|
+
return createComponent(PinInput.RootProvider, mergeProps({
|
|
42
|
+
get asChild () {
|
|
43
|
+
return local.asChild;
|
|
44
|
+
},
|
|
45
|
+
"data-slot": "pin-input-root-provider",
|
|
46
|
+
get ["class"] () {
|
|
47
|
+
return cn('inline-flex w-auto max-w-none flex-col items-start gap-2 data-disabled:opacity-50', local.class);
|
|
48
|
+
}
|
|
49
|
+
}, others, {
|
|
50
|
+
get children () {
|
|
51
|
+
return local.children;
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
function PinInputLabel(props) {
|
|
56
|
+
const [local, others] = splitProps(props, [
|
|
57
|
+
'class'
|
|
58
|
+
]);
|
|
59
|
+
return createComponent(PinInput.Label, mergeProps({
|
|
60
|
+
"data-slot": "pin-input-label",
|
|
61
|
+
get ["class"] () {
|
|
62
|
+
return cn('text-sm leading-5 font-medium text-foreground', local.class);
|
|
63
|
+
}
|
|
64
|
+
}, others));
|
|
65
|
+
}
|
|
66
|
+
function PinInputControl(props) {
|
|
67
|
+
const [local, others] = splitProps(props, [
|
|
68
|
+
'class'
|
|
69
|
+
]);
|
|
70
|
+
return createComponent(PinInput.Control, mergeProps({
|
|
71
|
+
"data-slot": "pin-input-control",
|
|
72
|
+
get ["class"] () {
|
|
73
|
+
return cn('inline-flex items-center gap-2', local.class);
|
|
74
|
+
}
|
|
75
|
+
}, others));
|
|
76
|
+
}
|
|
77
|
+
function PinInputInput(props) {
|
|
78
|
+
const [local, others] = splitProps(props, [
|
|
79
|
+
'class'
|
|
80
|
+
]);
|
|
81
|
+
return createComponent(PinInput.Input, mergeProps({
|
|
82
|
+
"data-slot": "pin-input-input",
|
|
83
|
+
get ["class"] () {
|
|
84
|
+
return cn('size-control-md flex-none rounded-md border border-border bg-background px-0 py-0 text-center text-lg leading-7 font-medium text-foreground tabular-nums outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class);
|
|
85
|
+
}
|
|
86
|
+
}, others));
|
|
87
|
+
}
|
|
88
|
+
function PinInputInputs(props) {
|
|
89
|
+
const pinInput = usePinInputContext();
|
|
90
|
+
return createComponent(For, {
|
|
91
|
+
get each () {
|
|
92
|
+
return pinInput().items;
|
|
93
|
+
},
|
|
94
|
+
children: (index)=>createComponent(PinInputInput, {
|
|
95
|
+
index: index,
|
|
96
|
+
get ["class"] () {
|
|
97
|
+
return props.class;
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function PinInputSeparator(props) {
|
|
103
|
+
const [local, others] = splitProps(props, [
|
|
104
|
+
'aria-hidden',
|
|
105
|
+
'children',
|
|
106
|
+
'class',
|
|
107
|
+
'role'
|
|
108
|
+
]);
|
|
109
|
+
const resolvedChildren = children(()=>local.children);
|
|
110
|
+
return (()=>{
|
|
111
|
+
var _el$ = _tmpl$();
|
|
112
|
+
spread(_el$, mergeProps({
|
|
113
|
+
get ["aria-hidden"] () {
|
|
114
|
+
return local['aria-hidden'] ?? true;
|
|
115
|
+
},
|
|
116
|
+
get role () {
|
|
117
|
+
return local.role ?? 'presentation';
|
|
118
|
+
},
|
|
119
|
+
get ["class"] () {
|
|
120
|
+
return cn('pointer-events-none inline-flex size-4 flex-none items-center justify-center leading-none text-muted-foreground [&>svg]:size-full [&>svg]:flex-none', local.class);
|
|
121
|
+
}
|
|
122
|
+
}, others), false, true);
|
|
123
|
+
insert(_el$, ()=>resolvedChildren() ?? createComponent(SeparatorMarkIcon, {}));
|
|
124
|
+
return _el$;
|
|
125
|
+
})();
|
|
126
|
+
}
|
|
127
|
+
function PinInput_usePinInput(props = {}) {
|
|
128
|
+
return usePinInput(()=>({
|
|
129
|
+
placeholder: '',
|
|
130
|
+
...'function' == typeof props ? props() : props
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
const PinInput_PinInput = Object.assign(PinInputRoot, {
|
|
134
|
+
Root: PinInputRoot,
|
|
135
|
+
RootProvider: PinInputRootProvider,
|
|
136
|
+
Context: PinInput.Context,
|
|
137
|
+
HiddenInput: PinInput.HiddenInput,
|
|
138
|
+
Label: PinInputLabel,
|
|
139
|
+
Control: PinInputControl,
|
|
140
|
+
Input: PinInputInput,
|
|
141
|
+
Inputs: PinInputInputs,
|
|
142
|
+
Separator: PinInputSeparator
|
|
143
|
+
});
|
|
144
|
+
export { PinInput_PinInput as PinInput, PinInput_usePinInput as usePinInput, usePinInputContext };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { PinInput, usePinInput, usePinInputContext } from "@ark-ui/solid/pin-input";
|
|
2
|
+
import { For, children, splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
import { SeparatorMarkIcon } from "../../internal/icons/ui/Icons.jsx";
|
|
5
|
+
function PinInputRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'asChild',
|
|
8
|
+
'children',
|
|
9
|
+
'class',
|
|
10
|
+
'count',
|
|
11
|
+
'placeholder'
|
|
12
|
+
]);
|
|
13
|
+
return <PinInput.Root asChild={local.asChild} count={local.count} placeholder={local.placeholder ?? ''} data-slot="pin-input-root" class={cn('inline-flex w-auto max-w-none flex-col items-start gap-2 data-disabled:opacity-50', local.class)} {...others}>
|
|
14
|
+
{local.children}
|
|
15
|
+
</PinInput.Root>;
|
|
16
|
+
}
|
|
17
|
+
function PinInputRootProvider(props) {
|
|
18
|
+
const [local, others] = splitProps(props, [
|
|
19
|
+
'asChild',
|
|
20
|
+
'children',
|
|
21
|
+
'class'
|
|
22
|
+
]);
|
|
23
|
+
return <PinInput.RootProvider asChild={local.asChild} data-slot="pin-input-root-provider" class={cn('inline-flex w-auto max-w-none flex-col items-start gap-2 data-disabled:opacity-50', local.class)} {...others}>
|
|
24
|
+
{local.children}
|
|
25
|
+
</PinInput.RootProvider>;
|
|
26
|
+
}
|
|
27
|
+
function PinInputLabel(props) {
|
|
28
|
+
const [local, others] = splitProps(props, [
|
|
29
|
+
'class'
|
|
30
|
+
]);
|
|
31
|
+
return <PinInput.Label data-slot="pin-input-label" class={cn('text-sm leading-5 font-medium text-foreground', local.class)} {...others}/>;
|
|
32
|
+
}
|
|
33
|
+
function PinInputControl(props) {
|
|
34
|
+
const [local, others] = splitProps(props, [
|
|
35
|
+
'class'
|
|
36
|
+
]);
|
|
37
|
+
return <PinInput.Control data-slot="pin-input-control" class={cn('inline-flex items-center gap-2', local.class)} {...others}/>;
|
|
38
|
+
}
|
|
39
|
+
function PinInputInput(props) {
|
|
40
|
+
const [local, others] = splitProps(props, [
|
|
41
|
+
'class'
|
|
42
|
+
]);
|
|
43
|
+
return <PinInput.Input data-slot="pin-input-input" class={cn('size-control-md flex-none rounded-md border border-border bg-background px-0 py-0 text-center text-lg leading-7 font-medium text-foreground tabular-nums outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class)} {...others}/>;
|
|
44
|
+
}
|
|
45
|
+
function PinInputInputs(props) {
|
|
46
|
+
const pinInput = usePinInputContext();
|
|
47
|
+
return <For each={pinInput().items}>
|
|
48
|
+
{(index)=><PinInputInput index={index} class={props.class}/>}
|
|
49
|
+
</For>;
|
|
50
|
+
}
|
|
51
|
+
function PinInputSeparator(props) {
|
|
52
|
+
const [local, others] = splitProps(props, [
|
|
53
|
+
'aria-hidden',
|
|
54
|
+
'children',
|
|
55
|
+
'class',
|
|
56
|
+
'role'
|
|
57
|
+
]);
|
|
58
|
+
const resolvedChildren = children(()=>local.children);
|
|
59
|
+
return <span data-slot="pin-input-separator" aria-hidden={local['aria-hidden'] ?? true} role={local.role ?? 'presentation'} class={cn('pointer-events-none inline-flex size-4 flex-none items-center justify-center leading-none text-muted-foreground [&>svg]:size-full [&>svg]:flex-none', local.class)} {...others}>
|
|
60
|
+
{resolvedChildren() ?? <SeparatorMarkIcon/>}
|
|
61
|
+
</span>;
|
|
62
|
+
}
|
|
63
|
+
function PinInput_usePinInput(props = {}) {
|
|
64
|
+
return usePinInput(()=>({
|
|
65
|
+
placeholder: '',
|
|
66
|
+
...'function' == typeof props ? props() : props
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
const PinInput_PinInput = Object.assign(PinInputRoot, {
|
|
70
|
+
Root: PinInputRoot,
|
|
71
|
+
RootProvider: PinInputRootProvider,
|
|
72
|
+
Context: PinInput.Context,
|
|
73
|
+
HiddenInput: PinInput.HiddenInput,
|
|
74
|
+
Label: PinInputLabel,
|
|
75
|
+
Control: PinInputControl,
|
|
76
|
+
Input: PinInputInput,
|
|
77
|
+
Inputs: PinInputInputs,
|
|
78
|
+
Separator: PinInputSeparator
|
|
79
|
+
});
|
|
80
|
+
export { PinInput_PinInput as PinInput, PinInput_usePinInput as usePinInput, usePinInputContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PinInput, usePinInput, usePinInputContext } from './PinInput.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PinInput, usePinInput, usePinInputContext } from "./PinInput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PinInput, usePinInput, usePinInputContext } from "./PinInput.jsx";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
import { Popover as PopoverPrimitive, usePopover, usePopoverContext } from '@ark-ui/solid/popover';
|
|
3
|
+
import type { ComponentProps } from 'solid-js';
|
|
4
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
5
|
+
type PopoverRootProps = ComponentProps<typeof PopoverPrimitive.Root> & OverlayPortalProps;
|
|
6
|
+
type PopoverRootProviderProps = ComponentProps<typeof PopoverPrimitive.RootProvider> & {
|
|
7
|
+
portalRef?: OverlayPortalProps['portalRef'];
|
|
8
|
+
};
|
|
9
|
+
type PopoverCloseIconProps = Omit<ComponentProps<typeof PopoverPrimitive.CloseTrigger>, 'asChild'>;
|
|
10
|
+
declare function PopoverRoot(props: PopoverRootProps): import("solid-js").JSX.Element;
|
|
11
|
+
declare function PopoverRootProvider(props: PopoverRootProviderProps): import("solid-js").JSX.Element;
|
|
12
|
+
declare function PopoverAnchor(props: ComponentProps<typeof PopoverPrimitive.Anchor>): import("solid-js").JSX.Element;
|
|
13
|
+
declare function PopoverTrigger(props: ComponentProps<typeof PopoverPrimitive.Trigger>): import("solid-js").JSX.Element;
|
|
14
|
+
declare function PopoverIndicator(props: ComponentProps<typeof PopoverPrimitive.Indicator>): import("solid-js").JSX.Element;
|
|
15
|
+
declare function PopoverPositioner(props: ComponentProps<typeof PopoverPrimitive.Positioner>): import("solid-js").JSX.Element;
|
|
16
|
+
declare function PopoverContent(props: ComponentProps<typeof PopoverPrimitive.Content>): import("solid-js").JSX.Element;
|
|
17
|
+
declare function PopoverArrow(props: ComponentProps<typeof PopoverPrimitive.Arrow>): import("solid-js").JSX.Element;
|
|
18
|
+
declare function PopoverArrowTip(props: ComponentProps<typeof PopoverPrimitive.ArrowTip>): import("solid-js").JSX.Element;
|
|
19
|
+
declare function PopoverTitle(props: ComponentProps<typeof PopoverPrimitive.Title>): import("solid-js").JSX.Element;
|
|
20
|
+
declare function PopoverDescription(props: ComponentProps<typeof PopoverPrimitive.Description>): import("solid-js").JSX.Element;
|
|
21
|
+
declare function PopoverCloseTrigger(props: ComponentProps<typeof PopoverPrimitive.CloseTrigger>): import("solid-js").JSX.Element;
|
|
22
|
+
declare function PopoverCloseIcon(props: PopoverCloseIconProps): import("solid-js").JSX.Element;
|
|
23
|
+
declare function PopoverHeader(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
24
|
+
declare function PopoverBody(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
25
|
+
declare function PopoverFooter(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
26
|
+
declare const Popover: typeof PopoverRoot & {
|
|
27
|
+
Root: typeof PopoverRoot;
|
|
28
|
+
RootProvider: typeof PopoverRootProvider;
|
|
29
|
+
Context: (props: PopoverPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
30
|
+
Anchor: typeof PopoverAnchor;
|
|
31
|
+
Trigger: typeof PopoverTrigger;
|
|
32
|
+
Indicator: typeof PopoverIndicator;
|
|
33
|
+
Positioner: typeof PopoverPositioner;
|
|
34
|
+
Content: typeof PopoverContent;
|
|
35
|
+
Arrow: typeof PopoverArrow;
|
|
36
|
+
ArrowTip: typeof PopoverArrowTip;
|
|
37
|
+
Title: typeof PopoverTitle;
|
|
38
|
+
Description: typeof PopoverDescription;
|
|
39
|
+
CloseTrigger: typeof PopoverCloseTrigger;
|
|
40
|
+
CloseIcon: typeof PopoverCloseIcon;
|
|
41
|
+
Header: typeof PopoverHeader;
|
|
42
|
+
Body: typeof PopoverBody;
|
|
43
|
+
Footer: typeof PopoverFooter;
|
|
44
|
+
};
|
|
45
|
+
export { Popover, usePopover, usePopoverContext };
|
|
46
|
+
export type { PopoverRootProps, PopoverRootProviderProps };
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { Popover, usePopover, usePopoverContext } from "@ark-ui/solid/popover";
|
|
4
|
+
import { children, splitProps } 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 popover';
|
|
9
|
+
function PopoverRoot(props) {
|
|
10
|
+
const [local, others] = splitProps(props, [
|
|
11
|
+
'children',
|
|
12
|
+
'lazyMount',
|
|
13
|
+
'modal',
|
|
14
|
+
'portalled',
|
|
15
|
+
'portalRef',
|
|
16
|
+
'unmountOnExit'
|
|
17
|
+
]);
|
|
18
|
+
const resolvedPortalled = ()=>local.modal || local.portalled;
|
|
19
|
+
return createComponent(OverlayPortalProvider, {
|
|
20
|
+
get portalled () {
|
|
21
|
+
return resolvedPortalled();
|
|
22
|
+
},
|
|
23
|
+
get portalRef () {
|
|
24
|
+
return local.portalRef;
|
|
25
|
+
},
|
|
26
|
+
get children () {
|
|
27
|
+
return createComponent(Popover.Root, mergeProps({
|
|
28
|
+
get lazyMount () {
|
|
29
|
+
return local.lazyMount ?? true;
|
|
30
|
+
},
|
|
31
|
+
get modal () {
|
|
32
|
+
return local.modal;
|
|
33
|
+
},
|
|
34
|
+
get portalled () {
|
|
35
|
+
return resolvedPortalled();
|
|
36
|
+
},
|
|
37
|
+
get unmountOnExit () {
|
|
38
|
+
return local.unmountOnExit ?? true;
|
|
39
|
+
}
|
|
40
|
+
}, others, {
|
|
41
|
+
get children () {
|
|
42
|
+
return local.children;
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function PopoverRootProvider(props) {
|
|
49
|
+
const [local, others] = splitProps(props, [
|
|
50
|
+
'children',
|
|
51
|
+
'lazyMount',
|
|
52
|
+
'portalRef',
|
|
53
|
+
'unmountOnExit',
|
|
54
|
+
'value'
|
|
55
|
+
]);
|
|
56
|
+
return createComponent(OverlayPortalProvider, {
|
|
57
|
+
get portalled () {
|
|
58
|
+
return props.value().portalled;
|
|
59
|
+
},
|
|
60
|
+
get portalRef () {
|
|
61
|
+
return local.portalRef;
|
|
62
|
+
},
|
|
63
|
+
get children () {
|
|
64
|
+
return createComponent(Popover.RootProvider, mergeProps({
|
|
65
|
+
get value () {
|
|
66
|
+
return local.value;
|
|
67
|
+
},
|
|
68
|
+
get lazyMount () {
|
|
69
|
+
return local.lazyMount ?? true;
|
|
70
|
+
},
|
|
71
|
+
get unmountOnExit () {
|
|
72
|
+
return local.unmountOnExit ?? true;
|
|
73
|
+
}
|
|
74
|
+
}, others, {
|
|
75
|
+
get children () {
|
|
76
|
+
return local.children;
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function PopoverAnchor(props) {
|
|
83
|
+
const [local, others] = splitProps(props, [
|
|
84
|
+
'class'
|
|
85
|
+
]);
|
|
86
|
+
return createComponent(Popover.Anchor, mergeProps({
|
|
87
|
+
"data-slot": "popover-anchor",
|
|
88
|
+
get ["class"] () {
|
|
89
|
+
return local.class;
|
|
90
|
+
}
|
|
91
|
+
}, others));
|
|
92
|
+
}
|
|
93
|
+
function PopoverTrigger(props) {
|
|
94
|
+
const [local, others] = splitProps(props, [
|
|
95
|
+
'asChild',
|
|
96
|
+
'class'
|
|
97
|
+
]);
|
|
98
|
+
return createComponent(Popover.Trigger, mergeProps({
|
|
99
|
+
get asChild () {
|
|
100
|
+
return local.asChild;
|
|
101
|
+
},
|
|
102
|
+
"data-slot": "popover-trigger",
|
|
103
|
+
get ["class"] () {
|
|
104
|
+
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 outline-0 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 active:bg-accent disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[state=open]:not-data-[value]:bg-accent data-[current]:data-[state=open]:bg-accent motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', local.class);
|
|
105
|
+
}
|
|
106
|
+
}, others));
|
|
107
|
+
}
|
|
108
|
+
function PopoverIndicator(props) {
|
|
109
|
+
const [local, others] = splitProps(props, [
|
|
110
|
+
'class'
|
|
111
|
+
]);
|
|
112
|
+
return createComponent(Popover.Indicator, mergeProps({
|
|
113
|
+
"data-slot": "popover-indicator",
|
|
114
|
+
get ["class"] () {
|
|
115
|
+
return local.class;
|
|
116
|
+
}
|
|
117
|
+
}, others));
|
|
118
|
+
}
|
|
119
|
+
function PopoverPositioner(props) {
|
|
120
|
+
const [local, others] = splitProps(props, [
|
|
121
|
+
'class'
|
|
122
|
+
]);
|
|
123
|
+
return createComponent(OverlayPortal, {
|
|
124
|
+
get children () {
|
|
125
|
+
return createComponent(Popover.Positioner, mergeProps({
|
|
126
|
+
"data-slot": "popover-positioner",
|
|
127
|
+
get ["class"] () {
|
|
128
|
+
return cn('z-[var(--z-index,var(--moduix-z-popup))] max-w-[var(--available-width)] outline-0', local.class);
|
|
129
|
+
}
|
|
130
|
+
}, others));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function PopoverContent(props) {
|
|
135
|
+
const [local, others] = splitProps(props, [
|
|
136
|
+
'class'
|
|
137
|
+
]);
|
|
138
|
+
return createComponent(Popover.Content, mergeProps({
|
|
139
|
+
"data-slot": "popover-content",
|
|
140
|
+
get ["class"] () {
|
|
141
|
+
return cn('group/popover-content relative z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] max-h-[min(24rem,var(--available-height,100dvh))] max-w-[min(28rem,var(--available-width))] min-w-[min(16rem,var(--available-width))] origin-[var(--transform-origin)] overflow-visible rounded-md bg-popover p-4 wrap-anywhere text-popover-foreground shadow-lg outline-1 outline-border has-[>[data-slot=popover-body]]:flex has-[>[data-slot=popover-body]]:flex-col data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none has-[>[data-slot=popover-body]]:[&>[data-slot=popover-body]]:overflow-auto', local.class);
|
|
142
|
+
}
|
|
143
|
+
}, others));
|
|
144
|
+
}
|
|
145
|
+
function PopoverArrow(props) {
|
|
146
|
+
const [local, others] = splitProps(props, [
|
|
147
|
+
'children',
|
|
148
|
+
'class'
|
|
149
|
+
]);
|
|
150
|
+
const resolvedChildren = children(()=>local.children);
|
|
151
|
+
return createComponent(Popover.Arrow, mergeProps({
|
|
152
|
+
"data-slot": "popover-arrow",
|
|
153
|
+
get ["class"] () {
|
|
154
|
+
return cn('[--arrow-background:var(--color-popover)] [--arrow-size:0.625rem]', local.class);
|
|
155
|
+
}
|
|
156
|
+
}, others, {
|
|
157
|
+
get children () {
|
|
158
|
+
return resolvedChildren() ?? createComponent(PopoverArrowTip, {});
|
|
159
|
+
}
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
function PopoverArrowTip(props) {
|
|
163
|
+
const [local, others] = splitProps(props, [
|
|
164
|
+
'class'
|
|
165
|
+
]);
|
|
166
|
+
return createComponent(Popover.ArrowTip, mergeProps({
|
|
167
|
+
"data-slot": "popover-arrow-tip",
|
|
168
|
+
get ["class"] () {
|
|
169
|
+
return cn('border-t border-l border-border', local.class);
|
|
170
|
+
}
|
|
171
|
+
}, others));
|
|
172
|
+
}
|
|
173
|
+
function PopoverTitle(props) {
|
|
174
|
+
const [local, others] = splitProps(props, [
|
|
175
|
+
'class'
|
|
176
|
+
]);
|
|
177
|
+
return createComponent(Popover.Title, mergeProps({
|
|
178
|
+
"data-slot": "popover-title",
|
|
179
|
+
get ["class"] () {
|
|
180
|
+
return cn('text-md leading-6 font-semibold text-popover-foreground', local.class);
|
|
181
|
+
}
|
|
182
|
+
}, others));
|
|
183
|
+
}
|
|
184
|
+
function PopoverDescription(props) {
|
|
185
|
+
const [local, others] = splitProps(props, [
|
|
186
|
+
'class'
|
|
187
|
+
]);
|
|
188
|
+
return createComponent(Popover.Description, mergeProps({
|
|
189
|
+
"data-slot": "popover-description",
|
|
190
|
+
get ["class"] () {
|
|
191
|
+
return cn('text-sm leading-5 text-muted-foreground', local.class);
|
|
192
|
+
}
|
|
193
|
+
}, others));
|
|
194
|
+
}
|
|
195
|
+
function PopoverCloseTrigger(props) {
|
|
196
|
+
const [local, others] = splitProps(props, [
|
|
197
|
+
'asChild',
|
|
198
|
+
'class'
|
|
199
|
+
]);
|
|
200
|
+
return createComponent(Popover.CloseTrigger, mergeProps({
|
|
201
|
+
get asChild () {
|
|
202
|
+
return local.asChild;
|
|
203
|
+
},
|
|
204
|
+
"data-slot": "popover-close-trigger",
|
|
205
|
+
get ["class"] () {
|
|
206
|
+
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 outline-0 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 active:bg-accent 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);
|
|
207
|
+
}
|
|
208
|
+
}, others));
|
|
209
|
+
}
|
|
210
|
+
function PopoverCloseIcon(props) {
|
|
211
|
+
const [local, others] = splitProps(props, [
|
|
212
|
+
'aria-label',
|
|
213
|
+
'aria-labelledby',
|
|
214
|
+
'children',
|
|
215
|
+
'class'
|
|
216
|
+
]);
|
|
217
|
+
const resolvedChildren = children(()=>local.children);
|
|
218
|
+
return createComponent(Popover.CloseTrigger, mergeProps({
|
|
219
|
+
asChild: (triggerProps)=>createComponent(CloseButton.Root, mergeProps(triggerProps, {
|
|
220
|
+
"data-slot": "popover-close-icon",
|
|
221
|
+
get ["aria-label"] () {
|
|
222
|
+
return local['aria-label'] ?? DEFAULT_CLOSE_BUTTON_LABEL;
|
|
223
|
+
},
|
|
224
|
+
get ["aria-labelledby"] () {
|
|
225
|
+
return local['aria-labelledby'];
|
|
226
|
+
},
|
|
227
|
+
get ["class"] () {
|
|
228
|
+
return cn('absolute end-3 top-3 size-7 rounded-sm 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.5 [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-popover-foreground', local.class);
|
|
229
|
+
},
|
|
230
|
+
get children () {
|
|
231
|
+
return resolvedChildren();
|
|
232
|
+
}
|
|
233
|
+
}))
|
|
234
|
+
}, others));
|
|
235
|
+
}
|
|
236
|
+
function PopoverHeader(props) {
|
|
237
|
+
const [local, others] = splitProps(props, [
|
|
238
|
+
'class'
|
|
239
|
+
]);
|
|
240
|
+
return createComponent(ark.div, mergeProps({
|
|
241
|
+
"data-slot": "popover-header",
|
|
242
|
+
get ["class"] () {
|
|
243
|
+
return cn('grid gap-1 group-has-[>[data-slot=popover-close-icon]]/popover-content:pe-10', local.class);
|
|
244
|
+
}
|
|
245
|
+
}, others));
|
|
246
|
+
}
|
|
247
|
+
function PopoverBody(props) {
|
|
248
|
+
const [local, others] = splitProps(props, [
|
|
249
|
+
'class'
|
|
250
|
+
]);
|
|
251
|
+
return createComponent(ark.div, mergeProps({
|
|
252
|
+
"data-slot": "popover-body",
|
|
253
|
+
get ["class"] () {
|
|
254
|
+
return cn('min-h-0', local.class);
|
|
255
|
+
}
|
|
256
|
+
}, others));
|
|
257
|
+
}
|
|
258
|
+
function PopoverFooter(props) {
|
|
259
|
+
const [local, others] = splitProps(props, [
|
|
260
|
+
'class'
|
|
261
|
+
]);
|
|
262
|
+
return createComponent(ark.div, mergeProps({
|
|
263
|
+
"data-slot": "popover-footer",
|
|
264
|
+
get ["class"] () {
|
|
265
|
+
return cn('mt-3 flex items-center justify-end gap-2', local.class);
|
|
266
|
+
}
|
|
267
|
+
}, others));
|
|
268
|
+
}
|
|
269
|
+
const Popover_Popover = Object.assign(PopoverRoot, {
|
|
270
|
+
Root: PopoverRoot,
|
|
271
|
+
RootProvider: PopoverRootProvider,
|
|
272
|
+
Context: Popover.Context,
|
|
273
|
+
Anchor: PopoverAnchor,
|
|
274
|
+
Trigger: PopoverTrigger,
|
|
275
|
+
Indicator: PopoverIndicator,
|
|
276
|
+
Positioner: PopoverPositioner,
|
|
277
|
+
Content: PopoverContent,
|
|
278
|
+
Arrow: PopoverArrow,
|
|
279
|
+
ArrowTip: PopoverArrowTip,
|
|
280
|
+
Title: PopoverTitle,
|
|
281
|
+
Description: PopoverDescription,
|
|
282
|
+
CloseTrigger: PopoverCloseTrigger,
|
|
283
|
+
CloseIcon: PopoverCloseIcon,
|
|
284
|
+
Header: PopoverHeader,
|
|
285
|
+
Body: PopoverBody,
|
|
286
|
+
Footer: PopoverFooter
|
|
287
|
+
});
|
|
288
|
+
export { Popover_Popover as Popover, usePopover, usePopoverContext };
|