@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,197 @@
|
|
|
1
|
+
import { className, createComponent, effect, insert, memo, mergeProps, setAttribute, template, use } from "solid-js/web";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { children, createContext, splitProps, useContext } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
6
|
+
import { Button } from "../button/index.js";
|
|
7
|
+
import { Menu } from "../menu/index.js";
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/ template("<div role=group data-scope=split-button data-part=root data-slot=split-button-root>");
|
|
9
|
+
const splitButtonTriggerVariants = cva("relative min-w-0 -ms-px rounded-s-none before:pointer-events-none before:absolute before:inset-y-1.5 before:start-0 before:w-px before:bg-current before:opacity-[0.16] before:content-['']", {
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
xs: 'px-2',
|
|
13
|
+
sm: 'px-2.5',
|
|
14
|
+
md: 'px-4',
|
|
15
|
+
lg: 'px-3.5',
|
|
16
|
+
xl: 'px-4'
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
default: '',
|
|
20
|
+
outline: 'before:opacity-0',
|
|
21
|
+
secondary: '',
|
|
22
|
+
destructive: '',
|
|
23
|
+
'destructive-outline': 'before:opacity-0',
|
|
24
|
+
ghost: ''
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
size: 'md',
|
|
29
|
+
variant: 'default'
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const SplitButtonContext = createContext();
|
|
33
|
+
function useSplitButtonContext(componentName) {
|
|
34
|
+
const context = useContext(SplitButtonContext);
|
|
35
|
+
if (!context) throw new Error(`${componentName} must be used within SplitButton.Root.`);
|
|
36
|
+
return context;
|
|
37
|
+
}
|
|
38
|
+
function SplitButtonRoot(props) {
|
|
39
|
+
const [local, others] = splitProps(props, [
|
|
40
|
+
'aria-label',
|
|
41
|
+
'aria-labelledby',
|
|
42
|
+
'children',
|
|
43
|
+
'class',
|
|
44
|
+
'onSelect',
|
|
45
|
+
'positioning',
|
|
46
|
+
'ref',
|
|
47
|
+
'size',
|
|
48
|
+
'variant'
|
|
49
|
+
]);
|
|
50
|
+
return createComponent(SplitButtonContext.Provider, {
|
|
51
|
+
value: {
|
|
52
|
+
size: ()=>local.size ?? 'md',
|
|
53
|
+
variant: ()=>local.variant ?? 'default'
|
|
54
|
+
},
|
|
55
|
+
get children () {
|
|
56
|
+
return createComponent(Menu.Root, mergeProps({
|
|
57
|
+
get onSelect () {
|
|
58
|
+
return local.onSelect;
|
|
59
|
+
},
|
|
60
|
+
get positioning () {
|
|
61
|
+
return {
|
|
62
|
+
placement: 'bottom-end',
|
|
63
|
+
gutter: 4,
|
|
64
|
+
...local.positioning
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}, others, {
|
|
68
|
+
get children () {
|
|
69
|
+
var _el$ = _tmpl$();
|
|
70
|
+
var _ref$ = local.ref;
|
|
71
|
+
"function" == typeof _ref$ ? use(_ref$, _el$) : local.ref = _el$;
|
|
72
|
+
insert(_el$, ()=>local.children);
|
|
73
|
+
effect((_p$)=>{
|
|
74
|
+
var _v$ = local['aria-label'], _v$2 = local['aria-labelledby'], _v$3 = cn('inline-flex items-stretch', local.class);
|
|
75
|
+
_v$ !== _p$.e && setAttribute(_el$, "aria-label", _p$.e = _v$);
|
|
76
|
+
_v$2 !== _p$.t && setAttribute(_el$, "aria-labelledby", _p$.t = _v$2);
|
|
77
|
+
_v$3 !== _p$.a && className(_el$, _p$.a = _v$3);
|
|
78
|
+
return _p$;
|
|
79
|
+
}, {
|
|
80
|
+
e: void 0,
|
|
81
|
+
t: void 0,
|
|
82
|
+
a: void 0
|
|
83
|
+
});
|
|
84
|
+
return _el$;
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function SplitButtonAction(props) {
|
|
91
|
+
const [local, others] = splitProps(props, [
|
|
92
|
+
'class',
|
|
93
|
+
'size',
|
|
94
|
+
'variant'
|
|
95
|
+
]);
|
|
96
|
+
const context = useSplitButtonContext('SplitButton.Action');
|
|
97
|
+
return createComponent(Button, mergeProps(others, {
|
|
98
|
+
"data-slot": "split-button-action",
|
|
99
|
+
get size () {
|
|
100
|
+
return local.size ?? context.size();
|
|
101
|
+
},
|
|
102
|
+
get variant () {
|
|
103
|
+
return local.variant ?? context.variant();
|
|
104
|
+
},
|
|
105
|
+
get ["class"] () {
|
|
106
|
+
return cn('rounded-e-none', local.class);
|
|
107
|
+
}
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
function SplitButtonTrigger(props) {
|
|
111
|
+
const [local, others] = splitProps(props, [
|
|
112
|
+
'children',
|
|
113
|
+
'class',
|
|
114
|
+
'size',
|
|
115
|
+
'variant',
|
|
116
|
+
'aria-label'
|
|
117
|
+
]);
|
|
118
|
+
const context = useSplitButtonContext('SplitButton.Trigger');
|
|
119
|
+
const resolvedChildren = children(()=>local.children);
|
|
120
|
+
const resolvedSize = ()=>local.size ?? context.size();
|
|
121
|
+
const resolvedVariant = ()=>local.variant ?? context.variant();
|
|
122
|
+
const isIconOnly = ()=>null == resolvedChildren();
|
|
123
|
+
const ariaLabel = ()=>isIconOnly() ? local['aria-label'] ?? 'More actions' : local['aria-label'];
|
|
124
|
+
const triggerClass = ()=>cn(splitButtonTriggerVariants({
|
|
125
|
+
size: resolvedSize(),
|
|
126
|
+
variant: resolvedVariant()
|
|
127
|
+
}), local.class);
|
|
128
|
+
return createComponent(Menu.Trigger, mergeProps(others, {
|
|
129
|
+
asChild: (triggerProps)=>createComponent(Button, mergeProps(triggerProps, {
|
|
130
|
+
"data-slot": "split-button-trigger",
|
|
131
|
+
get size () {
|
|
132
|
+
return resolvedSize();
|
|
133
|
+
},
|
|
134
|
+
get variant () {
|
|
135
|
+
return resolvedVariant();
|
|
136
|
+
},
|
|
137
|
+
get ["class"] () {
|
|
138
|
+
return triggerClass();
|
|
139
|
+
},
|
|
140
|
+
get ["aria-label"] () {
|
|
141
|
+
return ariaLabel();
|
|
142
|
+
},
|
|
143
|
+
get children () {
|
|
144
|
+
return resolvedChildren() ?? createComponent(ChevronDownIcon, {});
|
|
145
|
+
}
|
|
146
|
+
})),
|
|
147
|
+
"data-slot": "split-button-trigger",
|
|
148
|
+
get ["aria-label"] () {
|
|
149
|
+
return ariaLabel();
|
|
150
|
+
},
|
|
151
|
+
get ["class"] () {
|
|
152
|
+
return triggerClass();
|
|
153
|
+
}
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
function SplitButtonPositioner(props) {
|
|
157
|
+
const [local, others] = splitProps(props, [
|
|
158
|
+
'class'
|
|
159
|
+
]);
|
|
160
|
+
return createComponent(Menu.Positioner, mergeProps(others, {
|
|
161
|
+
"data-slot": "split-button-positioner",
|
|
162
|
+
get ["class"] () {
|
|
163
|
+
return local.class;
|
|
164
|
+
}
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
function SplitButtonContent(props) {
|
|
168
|
+
const [local, others] = splitProps(props, [
|
|
169
|
+
'asChild',
|
|
170
|
+
'children',
|
|
171
|
+
'class'
|
|
172
|
+
]);
|
|
173
|
+
return createComponent(Menu.Content, mergeProps(others, {
|
|
174
|
+
get asChild () {
|
|
175
|
+
return local.asChild;
|
|
176
|
+
},
|
|
177
|
+
"data-slot": "split-button-content",
|
|
178
|
+
get ["class"] () {
|
|
179
|
+
return local.class;
|
|
180
|
+
},
|
|
181
|
+
get children () {
|
|
182
|
+
return memo(()=>!!local.asChild)() ? local.children : createComponent(Menu.Viewport, {
|
|
183
|
+
get children () {
|
|
184
|
+
return local.children;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
const SplitButton = Object.assign(SplitButtonRoot, {
|
|
191
|
+
Root: SplitButtonRoot,
|
|
192
|
+
Action: SplitButtonAction,
|
|
193
|
+
Trigger: SplitButtonTrigger,
|
|
194
|
+
Positioner: SplitButtonPositioner,
|
|
195
|
+
Content: SplitButtonContent
|
|
196
|
+
});
|
|
197
|
+
export { SplitButton };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { children, createContext, splitProps, useContext } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
import { ChevronDownIcon } from "../../internal/icons/ui/index.jsx";
|
|
5
|
+
import { Button } from "../button/index.jsx";
|
|
6
|
+
import { Menu } from "../menu/index.jsx";
|
|
7
|
+
const splitButtonTriggerVariants = cva("relative min-w-0 -ms-px rounded-s-none before:pointer-events-none before:absolute before:inset-y-1.5 before:start-0 before:w-px before:bg-current before:opacity-[0.16] before:content-['']", {
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
xs: 'px-2',
|
|
11
|
+
sm: 'px-2.5',
|
|
12
|
+
md: 'px-4',
|
|
13
|
+
lg: 'px-3.5',
|
|
14
|
+
xl: 'px-4'
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
default: '',
|
|
18
|
+
outline: 'before:opacity-0',
|
|
19
|
+
secondary: '',
|
|
20
|
+
destructive: '',
|
|
21
|
+
'destructive-outline': 'before:opacity-0',
|
|
22
|
+
ghost: ''
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
size: 'md',
|
|
27
|
+
variant: 'default'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const SplitButtonContext = createContext();
|
|
31
|
+
function useSplitButtonContext(componentName) {
|
|
32
|
+
const context = useContext(SplitButtonContext);
|
|
33
|
+
if (!context) throw new Error(`${componentName} must be used within SplitButton.Root.`);
|
|
34
|
+
return context;
|
|
35
|
+
}
|
|
36
|
+
function SplitButtonRoot(props) {
|
|
37
|
+
const [local, others] = splitProps(props, [
|
|
38
|
+
'aria-label',
|
|
39
|
+
'aria-labelledby',
|
|
40
|
+
'children',
|
|
41
|
+
'class',
|
|
42
|
+
'onSelect',
|
|
43
|
+
'positioning',
|
|
44
|
+
'ref',
|
|
45
|
+
'size',
|
|
46
|
+
'variant'
|
|
47
|
+
]);
|
|
48
|
+
return <SplitButtonContext.Provider value={{
|
|
49
|
+
size: ()=>local.size ?? 'md',
|
|
50
|
+
variant: ()=>local.variant ?? 'default'
|
|
51
|
+
}}>
|
|
52
|
+
<Menu.Root onSelect={local.onSelect} positioning={{
|
|
53
|
+
placement: 'bottom-end',
|
|
54
|
+
gutter: 4,
|
|
55
|
+
...local.positioning
|
|
56
|
+
}} {...others}>
|
|
57
|
+
<div role="group" aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} data-scope="split-button" data-part="root" data-slot="split-button-root" class={cn('inline-flex items-stretch', local.class)} ref={local.ref}>
|
|
58
|
+
{local.children}
|
|
59
|
+
</div>
|
|
60
|
+
</Menu.Root>
|
|
61
|
+
</SplitButtonContext.Provider>;
|
|
62
|
+
}
|
|
63
|
+
function SplitButtonAction(props) {
|
|
64
|
+
const [local, others] = splitProps(props, [
|
|
65
|
+
'class',
|
|
66
|
+
'size',
|
|
67
|
+
'variant'
|
|
68
|
+
]);
|
|
69
|
+
const context = useSplitButtonContext('SplitButton.Action');
|
|
70
|
+
return <Button {...others} data-slot="split-button-action" size={local.size ?? context.size()} variant={local.variant ?? context.variant()} class={cn('rounded-e-none', local.class)}/>;
|
|
71
|
+
}
|
|
72
|
+
function SplitButtonTrigger(props) {
|
|
73
|
+
const [local, others] = splitProps(props, [
|
|
74
|
+
'children',
|
|
75
|
+
'class',
|
|
76
|
+
'size',
|
|
77
|
+
'variant',
|
|
78
|
+
'aria-label'
|
|
79
|
+
]);
|
|
80
|
+
const context = useSplitButtonContext('SplitButton.Trigger');
|
|
81
|
+
const resolvedChildren = children(()=>local.children);
|
|
82
|
+
const resolvedSize = ()=>local.size ?? context.size();
|
|
83
|
+
const resolvedVariant = ()=>local.variant ?? context.variant();
|
|
84
|
+
const isIconOnly = ()=>null == resolvedChildren();
|
|
85
|
+
const ariaLabel = ()=>isIconOnly() ? local['aria-label'] ?? 'More actions' : local['aria-label'];
|
|
86
|
+
const triggerClass = ()=>cn(splitButtonTriggerVariants({
|
|
87
|
+
size: resolvedSize(),
|
|
88
|
+
variant: resolvedVariant()
|
|
89
|
+
}), local.class);
|
|
90
|
+
return <Menu.Trigger {...others} asChild={(triggerProps)=><Button {...triggerProps()} data-slot="split-button-trigger" size={resolvedSize()} variant={resolvedVariant()} class={triggerClass()} aria-label={ariaLabel()}>
|
|
91
|
+
{resolvedChildren() ?? <ChevronDownIcon/>}
|
|
92
|
+
</Button>} data-slot="split-button-trigger" aria-label={ariaLabel()} class={triggerClass()}/>;
|
|
93
|
+
}
|
|
94
|
+
function SplitButtonPositioner(props) {
|
|
95
|
+
const [local, others] = splitProps(props, [
|
|
96
|
+
'class'
|
|
97
|
+
]);
|
|
98
|
+
return <Menu.Positioner {...others} data-slot="split-button-positioner" class={local.class}/>;
|
|
99
|
+
}
|
|
100
|
+
function SplitButtonContent(props) {
|
|
101
|
+
const [local, others] = splitProps(props, [
|
|
102
|
+
'asChild',
|
|
103
|
+
'children',
|
|
104
|
+
'class'
|
|
105
|
+
]);
|
|
106
|
+
return <Menu.Content {...others} asChild={local.asChild} data-slot="split-button-content" class={local.class}>
|
|
107
|
+
{local.asChild ? local.children : <Menu.Viewport>{local.children}</Menu.Viewport>}
|
|
108
|
+
</Menu.Content>;
|
|
109
|
+
}
|
|
110
|
+
const SplitButton = Object.assign(SplitButtonRoot, {
|
|
111
|
+
Root: SplitButtonRoot,
|
|
112
|
+
Action: SplitButtonAction,
|
|
113
|
+
Trigger: SplitButtonTrigger,
|
|
114
|
+
Positioner: SplitButtonPositioner,
|
|
115
|
+
Content: SplitButtonContent
|
|
116
|
+
});
|
|
117
|
+
export { SplitButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SplitButton } from './SplitButton.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SplitButton } from "./SplitButton.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SplitButton } from "./SplitButton.jsx";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SplitterPanelData } from '@ark-ui/solid/splitter';
|
|
2
|
+
import { createSplitterRegistry, Splitter as SplitterPrimitive, useSplitter, useSplitterContext } from '@ark-ui/solid/splitter';
|
|
3
|
+
import type { ComponentProps, JSX } from 'solid-js';
|
|
4
|
+
declare function SplitterRoot(props: ComponentProps<typeof SplitterPrimitive.Root>): JSX.Element;
|
|
5
|
+
declare function SplitterRootProvider(props: ComponentProps<typeof SplitterPrimitive.RootProvider>): JSX.Element;
|
|
6
|
+
declare function SplitterPanel(props: ComponentProps<typeof SplitterPrimitive.Panel>): JSX.Element;
|
|
7
|
+
declare function SplitterResizeTriggerIndicator(props: ComponentProps<typeof SplitterPrimitive.ResizeTriggerIndicator>): JSX.Element;
|
|
8
|
+
declare function SplitterResizeTrigger(props: ComponentProps<typeof SplitterPrimitive.ResizeTrigger>): JSX.Element;
|
|
9
|
+
type SplitterComponent = typeof SplitterRoot & {
|
|
10
|
+
Root: typeof SplitterRoot;
|
|
11
|
+
RootProvider: typeof SplitterRootProvider;
|
|
12
|
+
Context: typeof SplitterPrimitive.Context;
|
|
13
|
+
Panel: typeof SplitterPanel;
|
|
14
|
+
ResizeTrigger: typeof SplitterResizeTrigger;
|
|
15
|
+
ResizeTriggerIndicator: typeof SplitterResizeTriggerIndicator;
|
|
16
|
+
};
|
|
17
|
+
declare const Splitter: SplitterComponent;
|
|
18
|
+
export { createSplitterRegistry, Splitter, type SplitterPanelData, useSplitter, useSplitterContext, };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
2
|
+
import { Splitter, createSplitterRegistry, useSplitter, useSplitterContext } from "@ark-ui/solid/splitter";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
function getRootStyle(style) {
|
|
6
|
+
if ('string' == typeof style) return `width:;height:;${style}`;
|
|
7
|
+
return {
|
|
8
|
+
width: void 0,
|
|
9
|
+
height: void 0,
|
|
10
|
+
...style
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function SplitterRoot(props) {
|
|
14
|
+
const [local, others] = splitProps(props, [
|
|
15
|
+
'asChild',
|
|
16
|
+
'class',
|
|
17
|
+
'style'
|
|
18
|
+
]);
|
|
19
|
+
return createComponent(Splitter.Root, mergeProps({
|
|
20
|
+
get asChild () {
|
|
21
|
+
return local.asChild;
|
|
22
|
+
},
|
|
23
|
+
"data-slot": "splitter-root",
|
|
24
|
+
get ["class"] () {
|
|
25
|
+
return cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class);
|
|
26
|
+
},
|
|
27
|
+
get style () {
|
|
28
|
+
return getRootStyle(local.style);
|
|
29
|
+
}
|
|
30
|
+
}, others));
|
|
31
|
+
}
|
|
32
|
+
function SplitterRootProvider(props) {
|
|
33
|
+
const [local, others] = splitProps(props, [
|
|
34
|
+
'asChild',
|
|
35
|
+
'class',
|
|
36
|
+
'style'
|
|
37
|
+
]);
|
|
38
|
+
return createComponent(Splitter.RootProvider, mergeProps({
|
|
39
|
+
get asChild () {
|
|
40
|
+
return local.asChild;
|
|
41
|
+
},
|
|
42
|
+
"data-slot": "splitter-root-provider",
|
|
43
|
+
get ["class"] () {
|
|
44
|
+
return cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class);
|
|
45
|
+
},
|
|
46
|
+
get style () {
|
|
47
|
+
return getRootStyle(local.style);
|
|
48
|
+
}
|
|
49
|
+
}, others));
|
|
50
|
+
}
|
|
51
|
+
function SplitterPanel(props) {
|
|
52
|
+
const [local, others] = splitProps(props, [
|
|
53
|
+
'class'
|
|
54
|
+
]);
|
|
55
|
+
return createComponent(Splitter.Panel, mergeProps({
|
|
56
|
+
"data-slot": "splitter-panel",
|
|
57
|
+
get ["class"] () {
|
|
58
|
+
return cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none group-data-[orientation=vertical]/splitter:min-h-0 data-dragging:select-none', local.class);
|
|
59
|
+
}
|
|
60
|
+
}, others));
|
|
61
|
+
}
|
|
62
|
+
function SplitterResizeTriggerIndicator(props) {
|
|
63
|
+
const [local, others] = splitProps(props, [
|
|
64
|
+
'class'
|
|
65
|
+
]);
|
|
66
|
+
return createComponent(Splitter.ResizeTriggerIndicator, mergeProps({
|
|
67
|
+
"data-slot": "splitter-resize-trigger-indicator",
|
|
68
|
+
get ["class"] () {
|
|
69
|
+
return cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', local.class);
|
|
70
|
+
}
|
|
71
|
+
}, others));
|
|
72
|
+
}
|
|
73
|
+
function SplitterResizeTrigger(props) {
|
|
74
|
+
const [local, others] = splitProps(props, [
|
|
75
|
+
'asChild',
|
|
76
|
+
'children',
|
|
77
|
+
'class'
|
|
78
|
+
]);
|
|
79
|
+
return createComponent(Splitter.ResizeTrigger, mergeProps({
|
|
80
|
+
get asChild () {
|
|
81
|
+
return local.asChild;
|
|
82
|
+
},
|
|
83
|
+
"data-slot": "splitter-resize-trigger",
|
|
84
|
+
get ["class"] () {
|
|
85
|
+
return cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", local.class);
|
|
86
|
+
}
|
|
87
|
+
}, others, {
|
|
88
|
+
get children () {
|
|
89
|
+
return memo(()=>!!(void 0 === local.children && !local.asChild))() ? createComponent(SplitterResizeTriggerIndicator, {}) : local.children;
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
const Splitter_Splitter = Object.assign(SplitterRoot, {
|
|
94
|
+
Root: SplitterRoot,
|
|
95
|
+
RootProvider: SplitterRootProvider,
|
|
96
|
+
Context: Splitter.Context,
|
|
97
|
+
Panel: SplitterPanel,
|
|
98
|
+
ResizeTrigger: SplitterResizeTrigger,
|
|
99
|
+
ResizeTriggerIndicator: SplitterResizeTriggerIndicator
|
|
100
|
+
});
|
|
101
|
+
export { Splitter_Splitter as Splitter, createSplitterRegistry, useSplitter, useSplitterContext };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Splitter, createSplitterRegistry, useSplitter, useSplitterContext } from "@ark-ui/solid/splitter";
|
|
2
|
+
import { splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
function getRootStyle(style) {
|
|
5
|
+
if ('string' == typeof style) return `width:;height:;${style}`;
|
|
6
|
+
return {
|
|
7
|
+
width: void 0,
|
|
8
|
+
height: void 0,
|
|
9
|
+
...style
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function SplitterRoot(props) {
|
|
13
|
+
const [local, others] = splitProps(props, [
|
|
14
|
+
'asChild',
|
|
15
|
+
'class',
|
|
16
|
+
'style'
|
|
17
|
+
]);
|
|
18
|
+
return <Splitter.Root asChild={local.asChild} data-slot="splitter-root" class={cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class)} style={getRootStyle(local.style)} {...others}/>;
|
|
19
|
+
}
|
|
20
|
+
function SplitterRootProvider(props) {
|
|
21
|
+
const [local, others] = splitProps(props, [
|
|
22
|
+
'asChild',
|
|
23
|
+
'class',
|
|
24
|
+
'style'
|
|
25
|
+
]);
|
|
26
|
+
return <Splitter.RootProvider asChild={local.asChild} data-slot="splitter-root-provider" class={cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class)} style={getRootStyle(local.style)} {...others}/>;
|
|
27
|
+
}
|
|
28
|
+
function SplitterPanel(props) {
|
|
29
|
+
const [local, others] = splitProps(props, [
|
|
30
|
+
'class'
|
|
31
|
+
]);
|
|
32
|
+
return <Splitter.Panel data-slot="splitter-panel" class={cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none group-data-[orientation=vertical]/splitter:min-h-0 data-dragging:select-none', local.class)} {...others}/>;
|
|
33
|
+
}
|
|
34
|
+
function SplitterResizeTriggerIndicator(props) {
|
|
35
|
+
const [local, others] = splitProps(props, [
|
|
36
|
+
'class'
|
|
37
|
+
]);
|
|
38
|
+
return <Splitter.ResizeTriggerIndicator data-slot="splitter-resize-trigger-indicator" class={cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', local.class)} {...others}/>;
|
|
39
|
+
}
|
|
40
|
+
function SplitterResizeTrigger(props) {
|
|
41
|
+
const [local, others] = splitProps(props, [
|
|
42
|
+
'asChild',
|
|
43
|
+
'children',
|
|
44
|
+
'class'
|
|
45
|
+
]);
|
|
46
|
+
return <Splitter.ResizeTrigger asChild={local.asChild} data-slot="splitter-resize-trigger" class={cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", local.class)} {...others}>
|
|
47
|
+
{void 0 === local.children && !local.asChild ? <SplitterResizeTriggerIndicator/> : local.children}
|
|
48
|
+
</Splitter.ResizeTrigger>;
|
|
49
|
+
}
|
|
50
|
+
const Splitter_Splitter = Object.assign(SplitterRoot, {
|
|
51
|
+
Root: SplitterRoot,
|
|
52
|
+
RootProvider: SplitterRootProvider,
|
|
53
|
+
Context: Splitter.Context,
|
|
54
|
+
Panel: SplitterPanel,
|
|
55
|
+
ResizeTrigger: SplitterResizeTrigger,
|
|
56
|
+
ResizeTriggerIndicator: SplitterResizeTriggerIndicator
|
|
57
|
+
});
|
|
58
|
+
export { Splitter_Splitter as Splitter, createSplitterRegistry, useSplitter, useSplitterContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createSplitterRegistry, Splitter, type SplitterPanelData, useSplitter, useSplitterContext, } from './Splitter.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Splitter, createSplitterRegistry, useSplitter, useSplitterContext } from "./Splitter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Splitter, createSplitterRegistry, useSplitter, useSplitterContext } from "./Splitter.jsx";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
import type { JSX } from 'solid-js';
|
|
3
|
+
type StackDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
4
|
+
type StackRootProps = HTMLArkProps<'div'> & {
|
|
5
|
+
direction?: StackDirection | {
|
|
6
|
+
mobile?: StackDirection;
|
|
7
|
+
desktop?: StackDirection;
|
|
8
|
+
};
|
|
9
|
+
gap?: number | string;
|
|
10
|
+
align?: JSX.CSSProperties['align-items'];
|
|
11
|
+
justify?: JSX.CSSProperties['justify-content'];
|
|
12
|
+
wrap?: JSX.CSSProperties['flex-wrap'];
|
|
13
|
+
fill?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare function StackRoot(props: StackRootProps): JSX.Element;
|
|
16
|
+
declare const Stack: typeof StackRoot & {
|
|
17
|
+
Root: typeof StackRoot;
|
|
18
|
+
};
|
|
19
|
+
export { Stack };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { splitProps } from "solid-js";
|
|
5
|
+
import { cn } from "../../internal/cn.js";
|
|
6
|
+
const stackVariants = cva('flex', {
|
|
7
|
+
variants: {
|
|
8
|
+
mobileDirection: {
|
|
9
|
+
row: 'flex-row',
|
|
10
|
+
'row-reverse': 'flex-row-reverse',
|
|
11
|
+
column: 'flex-col',
|
|
12
|
+
'column-reverse': 'flex-col-reverse'
|
|
13
|
+
},
|
|
14
|
+
desktopDirection: {
|
|
15
|
+
row: 'sm:flex-row',
|
|
16
|
+
'row-reverse': 'sm:flex-row-reverse',
|
|
17
|
+
column: 'sm:flex-col',
|
|
18
|
+
'column-reverse': 'sm:flex-col-reverse'
|
|
19
|
+
},
|
|
20
|
+
fill: {
|
|
21
|
+
true: 'flex-1',
|
|
22
|
+
false: ''
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
mobileDirection: 'column'
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
const toCssLength = (value)=>'number' == typeof value ? `${value}px` : value;
|
|
30
|
+
function StackRoot(props) {
|
|
31
|
+
const [local, others] = splitProps(props, [
|
|
32
|
+
'asChild',
|
|
33
|
+
'class',
|
|
34
|
+
'direction',
|
|
35
|
+
'gap',
|
|
36
|
+
'align',
|
|
37
|
+
'justify',
|
|
38
|
+
'wrap',
|
|
39
|
+
'fill',
|
|
40
|
+
'style'
|
|
41
|
+
]);
|
|
42
|
+
const mobileDirection = ()=>'string' == typeof local.direction ? local.direction : local.direction?.mobile ?? local.direction?.desktop;
|
|
43
|
+
const desktopDirection = ()=>'string' == typeof local.direction ? local.direction : local.direction?.desktop ?? local.direction?.mobile;
|
|
44
|
+
const stackStyle = ()=>{
|
|
45
|
+
const generatedStyle = {
|
|
46
|
+
gap: toCssLength(local.gap),
|
|
47
|
+
'align-items': local.align,
|
|
48
|
+
'justify-content': local.justify,
|
|
49
|
+
'flex-wrap': local.wrap
|
|
50
|
+
};
|
|
51
|
+
if ('string' == typeof local.style) {
|
|
52
|
+
const generatedStyleText = Object.entries(generatedStyle).filter(([, value])=>void 0 !== value).map(([property, value])=>`${property}:${value}`).join(';');
|
|
53
|
+
return `${generatedStyleText}${generatedStyleText && local.style ? ';' : ''}${local.style}`;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
...generatedStyle,
|
|
57
|
+
...local.style
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
return createComponent(ark.div, mergeProps({
|
|
61
|
+
get asChild () {
|
|
62
|
+
return local.asChild;
|
|
63
|
+
}
|
|
64
|
+
}, others, {
|
|
65
|
+
"data-scope": "stack",
|
|
66
|
+
"data-part": "root",
|
|
67
|
+
"data-slot": "stack-root",
|
|
68
|
+
get ["class"] () {
|
|
69
|
+
return cn(stackVariants({
|
|
70
|
+
mobileDirection: mobileDirection(),
|
|
71
|
+
desktopDirection: desktopDirection(),
|
|
72
|
+
fill: local.fill
|
|
73
|
+
}), local.class);
|
|
74
|
+
},
|
|
75
|
+
get style () {
|
|
76
|
+
return stackStyle();
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
const Stack = Object.assign(StackRoot, {
|
|
81
|
+
Root: StackRoot
|
|
82
|
+
});
|
|
83
|
+
export { Stack };
|