@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,274 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "@ark-ui/solid/tour";
|
|
4
|
+
import { For, 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 tour';
|
|
9
|
+
function TourRoot(props) {
|
|
10
|
+
const [local, others] = splitProps(props, [
|
|
11
|
+
'children',
|
|
12
|
+
'lazyMount',
|
|
13
|
+
'portalled',
|
|
14
|
+
'portalRef',
|
|
15
|
+
'unmountOnExit'
|
|
16
|
+
]);
|
|
17
|
+
return createComponent(OverlayPortalProvider, {
|
|
18
|
+
get portalled () {
|
|
19
|
+
return local.portalled;
|
|
20
|
+
},
|
|
21
|
+
get portalRef () {
|
|
22
|
+
return local.portalRef;
|
|
23
|
+
},
|
|
24
|
+
get children () {
|
|
25
|
+
return createComponent(Tour.Root, mergeProps({
|
|
26
|
+
get lazyMount () {
|
|
27
|
+
return local.lazyMount ?? true;
|
|
28
|
+
},
|
|
29
|
+
get unmountOnExit () {
|
|
30
|
+
return local.unmountOnExit ?? true;
|
|
31
|
+
}
|
|
32
|
+
}, others, {
|
|
33
|
+
get children () {
|
|
34
|
+
return local.children;
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function TourBackdrop(props) {
|
|
41
|
+
const [local, others] = splitProps(props, [
|
|
42
|
+
'class'
|
|
43
|
+
]);
|
|
44
|
+
return createComponent(OverlayPortal, {
|
|
45
|
+
get children () {
|
|
46
|
+
return createComponent(Tour.Backdrop, mergeProps({
|
|
47
|
+
"data-slot": "tour-backdrop",
|
|
48
|
+
get ["class"] () {
|
|
49
|
+
return cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] bg-overlay backdrop-blur-xs 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);
|
|
50
|
+
}
|
|
51
|
+
}, others));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function TourSpotlight(props) {
|
|
56
|
+
const [local, others] = splitProps(props, [
|
|
57
|
+
'class'
|
|
58
|
+
]);
|
|
59
|
+
return createComponent(OverlayPortal, {
|
|
60
|
+
get children () {
|
|
61
|
+
return createComponent(Tour.Spotlight, mergeProps({
|
|
62
|
+
"data-slot": "tour-spotlight",
|
|
63
|
+
get ["class"] () {
|
|
64
|
+
return cn('z-[calc(50+var(--tour-layer,0))] ring-2 ring-ring', local.class);
|
|
65
|
+
}
|
|
66
|
+
}, others));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function TourPositioner(props) {
|
|
71
|
+
const [local, others] = splitProps(props, [
|
|
72
|
+
'class'
|
|
73
|
+
]);
|
|
74
|
+
return createComponent(OverlayPortal, {
|
|
75
|
+
get children () {
|
|
76
|
+
return createComponent(Tour.Positioner, mergeProps({
|
|
77
|
+
"data-slot": "tour-positioner",
|
|
78
|
+
get ["class"] () {
|
|
79
|
+
return cn('!z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] max-h-[var(--available-height)] max-w-[var(--available-width)] outline-0 data-[type=dialog]:fixed data-[type=dialog]:inset-0 data-[type=dialog]:grid data-[type=dialog]:place-items-center data-[type=dialog]:overflow-y-auto data-[type=dialog]:overscroll-contain data-[type=dialog]:p-4 data-[type=floating]:fixed data-[type=floating]:max-h-[calc(100dvh-3rem)] data-[type=floating]:max-w-[calc(100vw-3rem)] data-[type=floating]:data-[placement=bottom]:start-1/2 data-[type=floating]:data-[placement=bottom]:bottom-6 data-[type=floating]:data-[placement=bottom]:-translate-x-1/2 data-[type=floating]:data-[placement=bottom-end]:end-6 data-[type=floating]:data-[placement=bottom-end]:bottom-6 data-[type=floating]:data-[placement=bottom-start]:start-6 data-[type=floating]:data-[placement=bottom-start]:bottom-6 data-[type=floating]:data-[placement=center]:inset-1/2 data-[type=floating]:data-[placement=center]:-translate-x-1/2 data-[type=floating]:data-[placement=center]:-translate-y-1/2 data-[type=floating]:data-[placement=left]:start-6 data-[type=floating]:data-[placement=left]:top-1/2 data-[type=floating]:data-[placement=left]:-translate-y-1/2 data-[type=floating]:data-[placement=left-end]:start-6 data-[type=floating]:data-[placement=left-end]:bottom-6 data-[type=floating]:data-[placement=left-start]:start-6 data-[type=floating]:data-[placement=left-start]:top-6 data-[type=floating]:data-[placement=right]:end-6 data-[type=floating]:data-[placement=right]:top-1/2 data-[type=floating]:data-[placement=right]:-translate-y-1/2 data-[type=floating]:data-[placement=right-end]:end-6 data-[type=floating]:data-[placement=right-end]:bottom-6 data-[type=floating]:data-[placement=right-start]:end-6 data-[type=floating]:data-[placement=right-start]:top-6 data-[type=floating]:data-[placement=top]:start-1/2 data-[type=floating]:data-[placement=top]:top-6 data-[type=floating]:data-[placement=top]:-translate-x-1/2 data-[type=floating]:data-[placement=top-end]:end-6 data-[type=floating]:data-[placement=top-end]:top-6 data-[type=floating]:data-[placement=top-start]:start-6 data-[type=floating]:data-[placement=top-start]:top-6', local.class);
|
|
80
|
+
}
|
|
81
|
+
}, others));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function TourContent(props) {
|
|
86
|
+
const [local, others] = splitProps(props, [
|
|
87
|
+
'class'
|
|
88
|
+
]);
|
|
89
|
+
return createComponent(Tour.Content, mergeProps({
|
|
90
|
+
"data-slot": "tour-content",
|
|
91
|
+
get ["class"] () {
|
|
92
|
+
return cn('relative z-60 flex max-h-[min(24rem,var(--available-height,100dvh))] w-80 max-w-[min(calc(100vw-2rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col gap-1 overflow-visible rounded-lg border border-border bg-popover p-5 text-popover-foreground shadow-lg outline-0 has-[>[data-slot=tour-body]]:grid has-[>[data-slot=tour-body]]:grid-rows-[minmax(0,1fr)_auto] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open data-[type=dialog]:w-[min(26rem,calc(100vw-2rem))] data-[type=floating]:w-[min(22rem,calc(100vw-2rem))] motion-reduce:animate-none', local.class);
|
|
93
|
+
}
|
|
94
|
+
}, others));
|
|
95
|
+
}
|
|
96
|
+
function TourArrow(props) {
|
|
97
|
+
const [local, others] = splitProps(props, [
|
|
98
|
+
'children',
|
|
99
|
+
'class'
|
|
100
|
+
]);
|
|
101
|
+
const resolvedChildren = children(()=>local.children);
|
|
102
|
+
return createComponent(Tour.Arrow, mergeProps({
|
|
103
|
+
"data-slot": "tour-arrow",
|
|
104
|
+
get ["class"] () {
|
|
105
|
+
return cn('!size-2.5', local.class);
|
|
106
|
+
}
|
|
107
|
+
}, others, {
|
|
108
|
+
get children () {
|
|
109
|
+
return resolvedChildren() ?? createComponent(TourArrowTip, {});
|
|
110
|
+
}
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
function TourArrowTip(props) {
|
|
114
|
+
const [local, others] = splitProps(props, [
|
|
115
|
+
'class'
|
|
116
|
+
]);
|
|
117
|
+
return createComponent(Tour.ArrowTip, mergeProps({
|
|
118
|
+
"data-slot": "tour-arrow-tip",
|
|
119
|
+
get ["class"] () {
|
|
120
|
+
return cn('border-t border-l border-border !bg-popover', local.class);
|
|
121
|
+
}
|
|
122
|
+
}, others));
|
|
123
|
+
}
|
|
124
|
+
function TourTitle(props) {
|
|
125
|
+
const [local, others] = splitProps(props, [
|
|
126
|
+
'class'
|
|
127
|
+
]);
|
|
128
|
+
return createComponent(Tour.Title, mergeProps({
|
|
129
|
+
"data-slot": "tour-title",
|
|
130
|
+
get ["class"] () {
|
|
131
|
+
return cn('pe-6 text-md leading-6 font-semibold text-popover-foreground', local.class);
|
|
132
|
+
}
|
|
133
|
+
}, others));
|
|
134
|
+
}
|
|
135
|
+
function TourDescription(props) {
|
|
136
|
+
const [local, others] = splitProps(props, [
|
|
137
|
+
'class'
|
|
138
|
+
]);
|
|
139
|
+
return createComponent(Tour.Description, mergeProps({
|
|
140
|
+
"data-slot": "tour-description",
|
|
141
|
+
get ["class"] () {
|
|
142
|
+
return cn('text-sm leading-5 text-muted-foreground', local.class);
|
|
143
|
+
}
|
|
144
|
+
}, others));
|
|
145
|
+
}
|
|
146
|
+
function TourProgressText(props) {
|
|
147
|
+
const [local, others] = splitProps(props, [
|
|
148
|
+
'class'
|
|
149
|
+
]);
|
|
150
|
+
return createComponent(Tour.ProgressText, mergeProps({
|
|
151
|
+
"data-slot": "tour-progress-text",
|
|
152
|
+
get ["class"] () {
|
|
153
|
+
return cn('order-1 mt-2 text-xs leading-4 text-muted-foreground', local.class);
|
|
154
|
+
}
|
|
155
|
+
}, others));
|
|
156
|
+
}
|
|
157
|
+
function TourBody(props) {
|
|
158
|
+
const [local, others] = splitProps(props, [
|
|
159
|
+
'class'
|
|
160
|
+
]);
|
|
161
|
+
return createComponent(ark.div, mergeProps({
|
|
162
|
+
"data-slot": "tour-body",
|
|
163
|
+
get ["class"] () {
|
|
164
|
+
return cn('flex min-h-0 flex-col gap-1 overflow-auto', local.class);
|
|
165
|
+
}
|
|
166
|
+
}, others));
|
|
167
|
+
}
|
|
168
|
+
function TourCloseTrigger(props) {
|
|
169
|
+
const [local, others] = splitProps(props, [
|
|
170
|
+
'asChild',
|
|
171
|
+
'class'
|
|
172
|
+
]);
|
|
173
|
+
return createComponent(Tour.CloseTrigger, mergeProps({
|
|
174
|
+
get asChild () {
|
|
175
|
+
return local.asChild;
|
|
176
|
+
},
|
|
177
|
+
"data-slot": "tour-close-trigger",
|
|
178
|
+
get ["class"] () {
|
|
179
|
+
return cn(!local.asChild && 'absolute end-4 top-4 inline-flex size-7 cursor-pointer items-center justify-center rounded-md leading-none text-muted-foreground outline-0 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring [&>svg]:size-3 [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-popover-foreground', local.class);
|
|
180
|
+
}
|
|
181
|
+
}, others));
|
|
182
|
+
}
|
|
183
|
+
function TourCloseIcon(props) {
|
|
184
|
+
const [local, others] = splitProps(props, [
|
|
185
|
+
'aria-label',
|
|
186
|
+
'aria-labelledby',
|
|
187
|
+
'children',
|
|
188
|
+
'class'
|
|
189
|
+
]);
|
|
190
|
+
const resolvedChildren = children(()=>local.children);
|
|
191
|
+
return createComponent(Tour.CloseTrigger, mergeProps({
|
|
192
|
+
asChild: (triggerProps)=>createComponent(CloseButton.Root, mergeProps(triggerProps, {
|
|
193
|
+
"data-slot": "tour-close-icon",
|
|
194
|
+
get ["aria-label"] () {
|
|
195
|
+
return local['aria-label'] ?? DEFAULT_CLOSE_BUTTON_LABEL;
|
|
196
|
+
},
|
|
197
|
+
get ["aria-labelledby"] () {
|
|
198
|
+
return local['aria-labelledby'];
|
|
199
|
+
},
|
|
200
|
+
get ["class"] () {
|
|
201
|
+
return cn('absolute end-4 top-4 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 [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-popover-foreground', local.class);
|
|
202
|
+
},
|
|
203
|
+
get children () {
|
|
204
|
+
return resolvedChildren();
|
|
205
|
+
}
|
|
206
|
+
}))
|
|
207
|
+
}, others));
|
|
208
|
+
}
|
|
209
|
+
function TourControl(props) {
|
|
210
|
+
const [local, others] = splitProps(props, [
|
|
211
|
+
'class'
|
|
212
|
+
]);
|
|
213
|
+
return createComponent(Tour.Control, mergeProps({
|
|
214
|
+
"data-slot": "tour-control",
|
|
215
|
+
get ["class"] () {
|
|
216
|
+
return cn('order-2 mt-3 flex flex-wrap justify-end gap-2', local.class);
|
|
217
|
+
}
|
|
218
|
+
}, others));
|
|
219
|
+
}
|
|
220
|
+
function TourActionTrigger(props) {
|
|
221
|
+
const [local, others] = splitProps(props, [
|
|
222
|
+
'asChild',
|
|
223
|
+
'class'
|
|
224
|
+
]);
|
|
225
|
+
return createComponent(Tour.ActionTrigger, mergeProps({
|
|
226
|
+
get asChild () {
|
|
227
|
+
return local.asChild;
|
|
228
|
+
},
|
|
229
|
+
"data-slot": "tour-action-trigger",
|
|
230
|
+
get ["class"] () {
|
|
231
|
+
return cn(!local.asChild && "inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 font-medium whitespace-nowrap text-foreground no-underline 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 disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[type=close]:border-primary data-[type=close]:bg-primary data-[type=close]:text-primary-foreground data-[type=next]:border-primary data-[type=next]:bg-primary data-[type=next]:text-primary-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:border-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:bg-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent", local.class);
|
|
232
|
+
}
|
|
233
|
+
}, others));
|
|
234
|
+
}
|
|
235
|
+
const TourActions = Tour.Actions;
|
|
236
|
+
function TourActionList(props) {
|
|
237
|
+
const [local] = splitProps(props, [
|
|
238
|
+
'class'
|
|
239
|
+
]);
|
|
240
|
+
return createComponent(Tour.Actions, {
|
|
241
|
+
children: (actions)=>createComponent(For, {
|
|
242
|
+
get each () {
|
|
243
|
+
return actions();
|
|
244
|
+
},
|
|
245
|
+
children: (action)=>createComponent(TourActionTrigger, {
|
|
246
|
+
action: action,
|
|
247
|
+
get ["class"] () {
|
|
248
|
+
return local.class;
|
|
249
|
+
}
|
|
250
|
+
})
|
|
251
|
+
})
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
const Tour_Tour = Object.assign(TourRoot, {
|
|
255
|
+
Root: TourRoot,
|
|
256
|
+
Context: Tour.Context,
|
|
257
|
+
Backdrop: TourBackdrop,
|
|
258
|
+
Spotlight: TourSpotlight,
|
|
259
|
+
Positioner: TourPositioner,
|
|
260
|
+
Content: TourContent,
|
|
261
|
+
Arrow: TourArrow,
|
|
262
|
+
ArrowTip: TourArrowTip,
|
|
263
|
+
Title: TourTitle,
|
|
264
|
+
Description: TourDescription,
|
|
265
|
+
ProgressText: TourProgressText,
|
|
266
|
+
Body: TourBody,
|
|
267
|
+
CloseTrigger: TourCloseTrigger,
|
|
268
|
+
CloseIcon: TourCloseIcon,
|
|
269
|
+
Control: TourControl,
|
|
270
|
+
Actions: TourActions,
|
|
271
|
+
ActionList: TourActionList,
|
|
272
|
+
ActionTrigger: TourActionTrigger
|
|
273
|
+
});
|
|
274
|
+
export { Tour_Tour as Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
2
|
+
import { Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "@ark-ui/solid/tour";
|
|
3
|
+
import { For, 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 tour';
|
|
8
|
+
function TourRoot(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
|
+
<Tour.Root lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others}>
|
|
18
|
+
{local.children}
|
|
19
|
+
</Tour.Root>
|
|
20
|
+
</OverlayPortalProvider>;
|
|
21
|
+
}
|
|
22
|
+
function TourBackdrop(props) {
|
|
23
|
+
const [local, others] = splitProps(props, [
|
|
24
|
+
'class'
|
|
25
|
+
]);
|
|
26
|
+
return <OverlayPortal>
|
|
27
|
+
<Tour.Backdrop data-slot="tour-backdrop" class={cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] bg-overlay backdrop-blur-xs 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}/>
|
|
28
|
+
</OverlayPortal>;
|
|
29
|
+
}
|
|
30
|
+
function TourSpotlight(props) {
|
|
31
|
+
const [local, others] = splitProps(props, [
|
|
32
|
+
'class'
|
|
33
|
+
]);
|
|
34
|
+
return <OverlayPortal>
|
|
35
|
+
<Tour.Spotlight data-slot="tour-spotlight" class={cn('z-[calc(50+var(--tour-layer,0))] ring-2 ring-ring', local.class)} {...others}/>
|
|
36
|
+
</OverlayPortal>;
|
|
37
|
+
}
|
|
38
|
+
function TourPositioner(props) {
|
|
39
|
+
const [local, others] = splitProps(props, [
|
|
40
|
+
'class'
|
|
41
|
+
]);
|
|
42
|
+
return <OverlayPortal>
|
|
43
|
+
<Tour.Positioner data-slot="tour-positioner" class={cn('!z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] max-h-[var(--available-height)] max-w-[var(--available-width)] outline-0 data-[type=dialog]:fixed data-[type=dialog]:inset-0 data-[type=dialog]:grid data-[type=dialog]:place-items-center data-[type=dialog]:overflow-y-auto data-[type=dialog]:overscroll-contain data-[type=dialog]:p-4 data-[type=floating]:fixed data-[type=floating]:max-h-[calc(100dvh-3rem)] data-[type=floating]:max-w-[calc(100vw-3rem)] data-[type=floating]:data-[placement=bottom]:start-1/2 data-[type=floating]:data-[placement=bottom]:bottom-6 data-[type=floating]:data-[placement=bottom]:-translate-x-1/2 data-[type=floating]:data-[placement=bottom-end]:end-6 data-[type=floating]:data-[placement=bottom-end]:bottom-6 data-[type=floating]:data-[placement=bottom-start]:start-6 data-[type=floating]:data-[placement=bottom-start]:bottom-6 data-[type=floating]:data-[placement=center]:inset-1/2 data-[type=floating]:data-[placement=center]:-translate-x-1/2 data-[type=floating]:data-[placement=center]:-translate-y-1/2 data-[type=floating]:data-[placement=left]:start-6 data-[type=floating]:data-[placement=left]:top-1/2 data-[type=floating]:data-[placement=left]:-translate-y-1/2 data-[type=floating]:data-[placement=left-end]:start-6 data-[type=floating]:data-[placement=left-end]:bottom-6 data-[type=floating]:data-[placement=left-start]:start-6 data-[type=floating]:data-[placement=left-start]:top-6 data-[type=floating]:data-[placement=right]:end-6 data-[type=floating]:data-[placement=right]:top-1/2 data-[type=floating]:data-[placement=right]:-translate-y-1/2 data-[type=floating]:data-[placement=right-end]:end-6 data-[type=floating]:data-[placement=right-end]:bottom-6 data-[type=floating]:data-[placement=right-start]:end-6 data-[type=floating]:data-[placement=right-start]:top-6 data-[type=floating]:data-[placement=top]:start-1/2 data-[type=floating]:data-[placement=top]:top-6 data-[type=floating]:data-[placement=top]:-translate-x-1/2 data-[type=floating]:data-[placement=top-end]:end-6 data-[type=floating]:data-[placement=top-end]:top-6 data-[type=floating]:data-[placement=top-start]:start-6 data-[type=floating]:data-[placement=top-start]:top-6', local.class)} {...others}/>
|
|
44
|
+
</OverlayPortal>;
|
|
45
|
+
}
|
|
46
|
+
function TourContent(props) {
|
|
47
|
+
const [local, others] = splitProps(props, [
|
|
48
|
+
'class'
|
|
49
|
+
]);
|
|
50
|
+
return <Tour.Content data-slot="tour-content" class={cn('relative z-60 flex max-h-[min(24rem,var(--available-height,100dvh))] w-80 max-w-[min(calc(100vw-2rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col gap-1 overflow-visible rounded-lg border border-border bg-popover p-5 text-popover-foreground shadow-lg outline-0 has-[>[data-slot=tour-body]]:grid has-[>[data-slot=tour-body]]:grid-rows-[minmax(0,1fr)_auto] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open data-[type=dialog]:w-[min(26rem,calc(100vw-2rem))] data-[type=floating]:w-[min(22rem,calc(100vw-2rem))] motion-reduce:animate-none', local.class)} {...others}/>;
|
|
51
|
+
}
|
|
52
|
+
function TourArrow(props) {
|
|
53
|
+
const [local, others] = splitProps(props, [
|
|
54
|
+
'children',
|
|
55
|
+
'class'
|
|
56
|
+
]);
|
|
57
|
+
const resolvedChildren = children(()=>local.children);
|
|
58
|
+
return <Tour.Arrow data-slot="tour-arrow" class={cn('!size-2.5', local.class)} {...others}>
|
|
59
|
+
{resolvedChildren() ?? <TourArrowTip/>}
|
|
60
|
+
</Tour.Arrow>;
|
|
61
|
+
}
|
|
62
|
+
function TourArrowTip(props) {
|
|
63
|
+
const [local, others] = splitProps(props, [
|
|
64
|
+
'class'
|
|
65
|
+
]);
|
|
66
|
+
return <Tour.ArrowTip data-slot="tour-arrow-tip" class={cn('border-t border-l border-border !bg-popover', local.class)} {...others}/>;
|
|
67
|
+
}
|
|
68
|
+
function TourTitle(props) {
|
|
69
|
+
const [local, others] = splitProps(props, [
|
|
70
|
+
'class'
|
|
71
|
+
]);
|
|
72
|
+
return <Tour.Title data-slot="tour-title" class={cn('pe-6 text-md leading-6 font-semibold text-popover-foreground', local.class)} {...others}/>;
|
|
73
|
+
}
|
|
74
|
+
function TourDescription(props) {
|
|
75
|
+
const [local, others] = splitProps(props, [
|
|
76
|
+
'class'
|
|
77
|
+
]);
|
|
78
|
+
return <Tour.Description data-slot="tour-description" class={cn('text-sm leading-5 text-muted-foreground', local.class)} {...others}/>;
|
|
79
|
+
}
|
|
80
|
+
function TourProgressText(props) {
|
|
81
|
+
const [local, others] = splitProps(props, [
|
|
82
|
+
'class'
|
|
83
|
+
]);
|
|
84
|
+
return <Tour.ProgressText data-slot="tour-progress-text" class={cn('order-1 mt-2 text-xs leading-4 text-muted-foreground', local.class)} {...others}/>;
|
|
85
|
+
}
|
|
86
|
+
function TourBody(props) {
|
|
87
|
+
const [local, others] = splitProps(props, [
|
|
88
|
+
'class'
|
|
89
|
+
]);
|
|
90
|
+
return <ark.div data-slot="tour-body" class={cn('flex min-h-0 flex-col gap-1 overflow-auto', local.class)} {...others}/>;
|
|
91
|
+
}
|
|
92
|
+
function TourCloseTrigger(props) {
|
|
93
|
+
const [local, others] = splitProps(props, [
|
|
94
|
+
'asChild',
|
|
95
|
+
'class'
|
|
96
|
+
]);
|
|
97
|
+
return <Tour.CloseTrigger asChild={local.asChild} data-slot="tour-close-trigger" class={cn(!local.asChild && 'absolute end-4 top-4 inline-flex size-7 cursor-pointer items-center justify-center rounded-md leading-none text-muted-foreground outline-0 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring [&>svg]:size-3 [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-popover-foreground', local.class)} {...others}/>;
|
|
98
|
+
}
|
|
99
|
+
function TourCloseIcon(props) {
|
|
100
|
+
const [local, others] = splitProps(props, [
|
|
101
|
+
'aria-label',
|
|
102
|
+
'aria-labelledby',
|
|
103
|
+
'children',
|
|
104
|
+
'class'
|
|
105
|
+
]);
|
|
106
|
+
const resolvedChildren = children(()=>local.children);
|
|
107
|
+
return <Tour.CloseTrigger asChild={(triggerProps)=><CloseButton.Root {...triggerProps()} data-slot="tour-close-icon" aria-label={local['aria-label'] ?? DEFAULT_CLOSE_BUTTON_LABEL} aria-labelledby={local['aria-labelledby']} class={cn('absolute end-4 top-4 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 [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-popover-foreground', local.class)}>
|
|
108
|
+
{resolvedChildren()}
|
|
109
|
+
</CloseButton.Root>} {...others}/>;
|
|
110
|
+
}
|
|
111
|
+
function TourControl(props) {
|
|
112
|
+
const [local, others] = splitProps(props, [
|
|
113
|
+
'class'
|
|
114
|
+
]);
|
|
115
|
+
return <Tour.Control data-slot="tour-control" class={cn('order-2 mt-3 flex flex-wrap justify-end gap-2', local.class)} {...others}/>;
|
|
116
|
+
}
|
|
117
|
+
function TourActionTrigger(props) {
|
|
118
|
+
const [local, others] = splitProps(props, [
|
|
119
|
+
'asChild',
|
|
120
|
+
'class'
|
|
121
|
+
]);
|
|
122
|
+
return <Tour.ActionTrigger asChild={local.asChild} data-slot="tour-action-trigger" class={cn(!local.asChild && "inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 font-medium whitespace-nowrap text-foreground no-underline 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 disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[type=close]:border-primary data-[type=close]:bg-primary data-[type=close]:text-primary-foreground data-[type=next]:border-primary data-[type=next]:bg-primary data-[type=next]:text-primary-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:border-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:bg-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent", local.class)} {...others}/>;
|
|
123
|
+
}
|
|
124
|
+
const TourActions = Tour.Actions;
|
|
125
|
+
function TourActionList(props) {
|
|
126
|
+
const [local] = splitProps(props, [
|
|
127
|
+
'class'
|
|
128
|
+
]);
|
|
129
|
+
return <Tour.Actions>
|
|
130
|
+
{(actions)=><For each={actions()}>
|
|
131
|
+
{(action)=><TourActionTrigger action={action} class={local.class}/>}
|
|
132
|
+
</For>}
|
|
133
|
+
</Tour.Actions>;
|
|
134
|
+
}
|
|
135
|
+
const Tour_Tour = Object.assign(TourRoot, {
|
|
136
|
+
Root: TourRoot,
|
|
137
|
+
Context: Tour.Context,
|
|
138
|
+
Backdrop: TourBackdrop,
|
|
139
|
+
Spotlight: TourSpotlight,
|
|
140
|
+
Positioner: TourPositioner,
|
|
141
|
+
Content: TourContent,
|
|
142
|
+
Arrow: TourArrow,
|
|
143
|
+
ArrowTip: TourArrowTip,
|
|
144
|
+
Title: TourTitle,
|
|
145
|
+
Description: TourDescription,
|
|
146
|
+
ProgressText: TourProgressText,
|
|
147
|
+
Body: TourBody,
|
|
148
|
+
CloseTrigger: TourCloseTrigger,
|
|
149
|
+
CloseIcon: TourCloseIcon,
|
|
150
|
+
Control: TourControl,
|
|
151
|
+
Actions: TourActions,
|
|
152
|
+
ActionList: TourActionList,
|
|
153
|
+
ActionTrigger: TourActionTrigger
|
|
154
|
+
});
|
|
155
|
+
export { Tour_Tour as Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "./Tour.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "./Tour.jsx";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
import { TreeView as TreeViewPrimitive, createFileTreeCollection, createTreeCollection, type TreeNode, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, type TreeViewNodeState, type TreeViewRootComponent, type TreeViewRootProviderComponent, useTreeView, useTreeViewContext, useTreeViewNodeContext } from '@ark-ui/solid/tree-view';
|
|
3
|
+
import type { Accessor, ComponentProps, JSX } from 'solid-js';
|
|
4
|
+
declare const TreeViewRoot: TreeViewRootComponent;
|
|
5
|
+
declare const TreeViewRootProvider: TreeViewRootProviderComponent;
|
|
6
|
+
declare function TreeViewLabel(props: ComponentProps<typeof TreeViewPrimitive.Label>): JSX.Element;
|
|
7
|
+
declare function TreeViewTree(props: ComponentProps<typeof TreeViewPrimitive.Tree>): JSX.Element;
|
|
8
|
+
declare function TreeViewBranch(props: ComponentProps<typeof TreeViewPrimitive.Branch>): JSX.Element;
|
|
9
|
+
declare function TreeViewBranchControl(props: ComponentProps<typeof TreeViewPrimitive.BranchControl>): JSX.Element;
|
|
10
|
+
declare function TreeViewBranchTrigger(props: ComponentProps<typeof TreeViewPrimitive.BranchTrigger>): JSX.Element;
|
|
11
|
+
declare function TreeViewBranchIndicator(props: ComponentProps<typeof TreeViewPrimitive.BranchIndicator>): JSX.Element;
|
|
12
|
+
declare function TreeViewBranchText(props: ComponentProps<typeof TreeViewPrimitive.BranchText>): JSX.Element;
|
|
13
|
+
declare function TreeViewBranchContent(props: ComponentProps<typeof TreeViewPrimitive.BranchContent>): JSX.Element;
|
|
14
|
+
declare function TreeViewBranchIndentGuide(props: ComponentProps<typeof TreeViewPrimitive.BranchIndentGuide>): JSX.Element;
|
|
15
|
+
declare function TreeViewItem(props: ComponentProps<typeof TreeViewPrimitive.Item>): JSX.Element;
|
|
16
|
+
declare function TreeViewItemText(props: ComponentProps<typeof TreeViewPrimitive.ItemText>): JSX.Element;
|
|
17
|
+
declare function TreeViewItemIndicator(props: ComponentProps<typeof TreeViewPrimitive.ItemIndicator>): JSX.Element;
|
|
18
|
+
declare function TreeViewNodeCheckbox(props: ComponentProps<typeof TreeViewPrimitive.NodeCheckbox>): JSX.Element;
|
|
19
|
+
type TreeViewNodeCheckboxIndicatorProps = ComponentProps<typeof TreeViewPrimitive.NodeCheckboxIndicator> & Omit<HTMLArkProps<'span'>, 'children'>;
|
|
20
|
+
declare function TreeViewNodeCheckboxIndicator(props: TreeViewNodeCheckboxIndicatorProps): JSX.Element;
|
|
21
|
+
declare function TreeViewNodeRenameInput(props: ComponentProps<typeof TreeViewPrimitive.NodeRenameInput>): JSX.Element;
|
|
22
|
+
declare const TreeViewNodeProvider: typeof TreeViewPrimitive.NodeProvider;
|
|
23
|
+
type TreeViewNodeRenderProps<T extends TreeNode> = {
|
|
24
|
+
indexPath: number[];
|
|
25
|
+
node: T;
|
|
26
|
+
state: Accessor<TreeViewNodeState>;
|
|
27
|
+
};
|
|
28
|
+
type TreeViewNodeProps<T extends TreeNode> = {
|
|
29
|
+
children: (props: TreeViewNodeRenderProps<T>) => JSX.Element;
|
|
30
|
+
indexPath: number[];
|
|
31
|
+
node: T;
|
|
32
|
+
};
|
|
33
|
+
declare function TreeViewNode<T extends TreeNode>(props: TreeViewNodeProps<T>): JSX.Element;
|
|
34
|
+
type TreeViewComponent = typeof TreeViewRoot & {
|
|
35
|
+
Root: typeof TreeViewRoot;
|
|
36
|
+
RootProvider: typeof TreeViewRootProvider;
|
|
37
|
+
Context: typeof TreeViewPrimitive.Context;
|
|
38
|
+
NodeContext: typeof TreeViewPrimitive.NodeContext;
|
|
39
|
+
Label: typeof TreeViewLabel;
|
|
40
|
+
Tree: typeof TreeViewTree;
|
|
41
|
+
Node: typeof TreeViewNode;
|
|
42
|
+
NodeProvider: typeof TreeViewNodeProvider;
|
|
43
|
+
Branch: typeof TreeViewBranch;
|
|
44
|
+
BranchControl: typeof TreeViewBranchControl;
|
|
45
|
+
BranchTrigger: typeof TreeViewBranchTrigger;
|
|
46
|
+
BranchIndicator: typeof TreeViewBranchIndicator;
|
|
47
|
+
BranchText: typeof TreeViewBranchText;
|
|
48
|
+
BranchContent: typeof TreeViewBranchContent;
|
|
49
|
+
BranchIndentGuide: typeof TreeViewBranchIndentGuide;
|
|
50
|
+
Item: typeof TreeViewItem;
|
|
51
|
+
ItemText: typeof TreeViewItemText;
|
|
52
|
+
ItemIndicator: typeof TreeViewItemIndicator;
|
|
53
|
+
NodeCheckbox: typeof TreeViewNodeCheckbox;
|
|
54
|
+
NodeCheckboxIndicator: typeof TreeViewNodeCheckboxIndicator;
|
|
55
|
+
NodeRenameInput: typeof TreeViewNodeRenameInput;
|
|
56
|
+
};
|
|
57
|
+
declare const TreeView: TreeViewComponent;
|
|
58
|
+
export { TreeView, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewContext, useTreeViewNodeContext, type TreeViewLoadChildrenDetails, type TreeViewNodeProps, type TreeViewNodeRenderProps, type TreeViewNodeState, type TreeViewNodeProviderProps, };
|