@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
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 moduix contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@moduix/solid-tailwind)
|
|
4
|
+
[](./LICENSE.md)
|
|
5
|
+
[](https://www.typescriptlang.org/)
|
|
6
|
+
|
|
7
|
+
# @moduix/solid-tailwind
|
|
8
|
+
|
|
9
|
+
Solid components built on [Ark UI](https://ark-ui.com/) and styled with Tailwind CSS v4. The package
|
|
10
|
+
ships the same component subpaths and Ark-shaped contracts as `@moduix/solid`, while keeping utility
|
|
11
|
+
classes available for consumer overrides.
|
|
12
|
+
|
|
13
|
+
[Documentation](https://moduix.dev/) ·
|
|
14
|
+
[Quick start](https://moduix.dev/docs/quick-start) ·
|
|
15
|
+
[Components](https://moduix.dev/docs/components) ·
|
|
16
|
+
[Styling](https://moduix.dev/docs/styling)
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
In an existing Solid project configured with Tailwind CSS v4, install the package and its Ark UI
|
|
21
|
+
peer dependency:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm add @moduix/solid-tailwind @ark-ui/solid
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`solid-js`, `tailwindcss`, and `@ark-ui/solid` remain peer dependencies.
|
|
28
|
+
|
|
29
|
+
The optional `Chart` component also requires `@tanstack/charts`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pnpm add @tanstack/charts
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Add styles
|
|
36
|
+
|
|
37
|
+
Import the moduix stylesheet before Tailwind. Register the package as an explicit source because Tailwind ignores dependencies by default:
|
|
38
|
+
|
|
39
|
+
```css
|
|
40
|
+
@import '@moduix/solid-tailwind/style.css';
|
|
41
|
+
@import 'tailwindcss';
|
|
42
|
+
|
|
43
|
+
/* Resolve this path relative to this stylesheet. */
|
|
44
|
+
@source '../node_modules/@moduix/solid-tailwind/dist/components';
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Keep `style.css` before the Tailwind import. It provides the foundation tokens and shared keyframes, and establishes the cascade-layer order so Tailwind utilities, including consumer overrides, are applied after the moduix token and component layers. Tailwind Preflight is the reset for this package; do not add the `@moduix/solid` reset alongside it.
|
|
48
|
+
|
|
49
|
+
In a monorepo, point `@source` at the installed package or at `packages/solid-tailwind/src/components` when consuming workspace source directly.
|
|
50
|
+
|
|
51
|
+
## Use Accordion
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import { Accordion } from '@moduix/solid-tailwind/accordion';
|
|
55
|
+
|
|
56
|
+
export function Example() {
|
|
57
|
+
return (
|
|
58
|
+
<Accordion defaultValue={['first']}>
|
|
59
|
+
<Accordion.Item value="first">
|
|
60
|
+
<Accordion.ItemTrigger>
|
|
61
|
+
First item
|
|
62
|
+
<Accordion.ItemIndicator />
|
|
63
|
+
</Accordion.ItemTrigger>
|
|
64
|
+
<Accordion.ItemContent>
|
|
65
|
+
<Accordion.ItemBody>First content</Accordion.ItemBody>
|
|
66
|
+
</Accordion.ItemContent>
|
|
67
|
+
</Accordion.Item>
|
|
68
|
+
</Accordion>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Consumer `class` values are merged after defaults with `tailwind-merge`, so utilities such as `p-0` override the component's default padding.
|
|
74
|
+
|
|
75
|
+
## Use Button
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import { Button } from '@moduix/solid-tailwind/button';
|
|
79
|
+
|
|
80
|
+
export function Example() {
|
|
81
|
+
return <Button variant="outline">Save changes</Button>;
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## shadcn registry
|
|
86
|
+
|
|
87
|
+
Configure the namespace and add the component with the standard CLI:
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"registries": {
|
|
92
|
+
"@moduix-solid-tailwind": "https://moduix.dev/r/solid-tailwind/{name}.json"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pnpm dlx shadcn@latest add @moduix-solid-tailwind/accordion
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The registry installs the same foundation stylesheet locally as `@/lib/moduix/styles/style.css`. Import it once before Tailwind in your application stylesheet:
|
|
102
|
+
|
|
103
|
+
```css
|
|
104
|
+
@import './lib/moduix/styles/style.css';
|
|
105
|
+
@import 'tailwindcss';
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
No `@source` directive is required for the registry installation because the component source is copied into the application.
|
|
109
|
+
|
|
110
|
+
## Compatibility
|
|
111
|
+
|
|
112
|
+
The package is ESM-only and ships modern JavaScript targeting ES2023. Consume it through a modern
|
|
113
|
+
application bundler configured for the browsers your application supports.
|
|
114
|
+
|
|
115
|
+
## Links
|
|
116
|
+
|
|
117
|
+
- [Documentation](https://moduix.dev/)
|
|
118
|
+
- [npm package](https://www.npmjs.com/package/@moduix/solid-tailwind)
|
|
119
|
+
- [Source repository](https://github.com/Blinks44/moduix)
|
|
120
|
+
- [Issues](https://github.com/Blinks44/moduix/issues)
|
|
121
|
+
|
|
122
|
+
## Acknowledgements
|
|
123
|
+
|
|
124
|
+
moduix builds on [Ark UI](https://ark-ui.com/) for accessible primitives,
|
|
125
|
+
[Tailwind CSS](https://tailwindcss.com/) for utility styling, and ideas from
|
|
126
|
+
[Chakra UI](https://chakra-ui.com/) and [shadcn/ui](https://ui.shadcn.com/).
|
|
127
|
+
|
|
128
|
+
## License
|
|
129
|
+
|
|
130
|
+
[MIT](./LICENSE.md)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
moduix uses and includes portions of Lucide Icons.
|
|
4
|
+
|
|
5
|
+
## Lucide
|
|
6
|
+
|
|
7
|
+
ISC License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
10
|
+
|
|
11
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
13
|
+
copyright notice and this permission notice appear in all copies.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
16
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
18
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
19
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
20
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
21
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
The following Lucide icons are derived from the Feather project:
|
|
26
|
+
|
|
27
|
+
airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
28
|
+
|
|
29
|
+
The MIT License (MIT) (for the icons listed above)
|
|
30
|
+
|
|
31
|
+
Copyright (c) 2013-present Cole Bemis
|
|
32
|
+
|
|
33
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
34
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
35
|
+
in the Software without restriction, including without limitation the rights
|
|
36
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
37
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
38
|
+
furnished to do so, subject to the following conditions:
|
|
39
|
+
|
|
40
|
+
The above copyright notice and this permission notice shall be included in all
|
|
41
|
+
copies or substantial portions of the Software.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
44
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
45
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
46
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
47
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
48
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
49
|
+
SOFTWARE.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive, useAccordion, useAccordionContext, useAccordionItemContext } from '@ark-ui/solid/accordion';
|
|
2
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
3
|
+
import type { ComponentProps } from 'solid-js';
|
|
4
|
+
declare function AccordionRoot(props: ComponentProps<typeof AccordionPrimitive.Root>): import("solid-js").JSX.Element;
|
|
5
|
+
declare function AccordionRootProvider(props: ComponentProps<typeof AccordionPrimitive.RootProvider>): import("solid-js").JSX.Element;
|
|
6
|
+
declare function AccordionItem(props: ComponentProps<typeof AccordionPrimitive.Item>): import("solid-js").JSX.Element;
|
|
7
|
+
declare function AccordionItemTrigger(props: ComponentProps<typeof AccordionPrimitive.ItemTrigger>): import("solid-js").JSX.Element;
|
|
8
|
+
declare function AccordionItemIndicator(props: ComponentProps<typeof AccordionPrimitive.ItemIndicator>): import("solid-js").JSX.Element;
|
|
9
|
+
declare function AccordionItemContent(props: ComponentProps<typeof AccordionPrimitive.ItemContent>): import("solid-js").JSX.Element;
|
|
10
|
+
declare function AccordionItemBody(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
11
|
+
declare const Accordion: typeof AccordionRoot & {
|
|
12
|
+
Root: typeof AccordionRoot;
|
|
13
|
+
RootProvider: typeof AccordionRootProvider;
|
|
14
|
+
Context: (props: AccordionPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
15
|
+
ItemContext: (props: AccordionPrimitive.ItemContextProps) => import("solid-js").JSX.Element;
|
|
16
|
+
Item: typeof AccordionItem;
|
|
17
|
+
ItemTrigger: typeof AccordionItemTrigger;
|
|
18
|
+
ItemIndicator: typeof AccordionItemIndicator;
|
|
19
|
+
ItemContent: typeof AccordionItemContent;
|
|
20
|
+
ItemBody: typeof AccordionItemBody;
|
|
21
|
+
};
|
|
22
|
+
export { Accordion, useAccordion, useAccordionContext, useAccordionItemContext };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { Accordion, useAccordion, useAccordionContext, useAccordionItemContext } from "@ark-ui/solid/accordion";
|
|
3
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
4
|
+
import { children, splitProps } from "solid-js";
|
|
5
|
+
import { cn } from "../../internal/cn.js";
|
|
6
|
+
import { PlusIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
+
function AccordionRoot(props) {
|
|
8
|
+
const [local, others] = splitProps(props, [
|
|
9
|
+
'class'
|
|
10
|
+
]);
|
|
11
|
+
return createComponent(Accordion.Root, mergeProps({
|
|
12
|
+
"data-slot": "accordion-root",
|
|
13
|
+
get ["class"] () {
|
|
14
|
+
return cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class);
|
|
15
|
+
}
|
|
16
|
+
}, others));
|
|
17
|
+
}
|
|
18
|
+
function AccordionRootProvider(props) {
|
|
19
|
+
const [local, others] = splitProps(props, [
|
|
20
|
+
'class'
|
|
21
|
+
]);
|
|
22
|
+
return createComponent(Accordion.RootProvider, mergeProps({
|
|
23
|
+
"data-slot": "accordion-root-provider",
|
|
24
|
+
get ["class"] () {
|
|
25
|
+
return cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class);
|
|
26
|
+
}
|
|
27
|
+
}, others));
|
|
28
|
+
}
|
|
29
|
+
function AccordionItem(props) {
|
|
30
|
+
const [local, others] = splitProps(props, [
|
|
31
|
+
'class'
|
|
32
|
+
]);
|
|
33
|
+
return createComponent(Accordion.Item, mergeProps({
|
|
34
|
+
"data-slot": "accordion-item",
|
|
35
|
+
get ["class"] () {
|
|
36
|
+
return cn("[overflow-anchor:none] data-[orientation=horizontal]:flex [&[data-orientation='horizontal']:not(:last-child)]:border-e [&[data-orientation='horizontal']:not(:last-child)]:border-border [&[data-orientation='vertical']:not(:last-child)]:border-b [&[data-orientation='vertical']:not(:last-child)]:border-border", local.class);
|
|
37
|
+
}
|
|
38
|
+
}, others));
|
|
39
|
+
}
|
|
40
|
+
function AccordionItemTrigger(props) {
|
|
41
|
+
const [local, others] = splitProps(props, [
|
|
42
|
+
'class'
|
|
43
|
+
]);
|
|
44
|
+
return createComponent(Accordion.ItemTrigger, mergeProps({
|
|
45
|
+
"data-slot": "accordion-item-trigger",
|
|
46
|
+
get ["class"] () {
|
|
47
|
+
return cn('flex w-full cursor-pointer items-center justify-between gap-4 bg-muted px-3 py-2 text-start text-md outline-0 transition-colors duration-200 select-none focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-10 data-[orientation=horizontal]:justify-center data-[orientation=horizontal]:[writing-mode:sideways-lr] motion-reduce:transition-none [&:not([data-disabled]):active]:bg-accent [&:not([data-disabled]):hover]:bg-accent', local.class);
|
|
48
|
+
}
|
|
49
|
+
}, others));
|
|
50
|
+
}
|
|
51
|
+
function AccordionItemIndicator(props) {
|
|
52
|
+
const [local, others] = splitProps(props, [
|
|
53
|
+
'class',
|
|
54
|
+
'children'
|
|
55
|
+
]);
|
|
56
|
+
const resolvedChildren = children(()=>local.children);
|
|
57
|
+
return createComponent(Accordion.ItemIndicator, mergeProps({
|
|
58
|
+
"data-slot": "accordion-item-indicator",
|
|
59
|
+
get ["class"] () {
|
|
60
|
+
return cn('inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-200 data-[state=open]:scale-110 data-[state=open]:rotate-45 motion-reduce:transition-none [&_svg]:size-full', local.class);
|
|
61
|
+
}
|
|
62
|
+
}, others, {
|
|
63
|
+
get children () {
|
|
64
|
+
return resolvedChildren() ?? createComponent(PlusIcon, {});
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
function AccordionItemContent(props) {
|
|
69
|
+
const [local, others] = splitProps(props, [
|
|
70
|
+
'class'
|
|
71
|
+
]);
|
|
72
|
+
return createComponent(Accordion.ItemContent, mergeProps({
|
|
73
|
+
"data-slot": "accordion-item-content",
|
|
74
|
+
get ["class"] () {
|
|
75
|
+
return cn("overflow-hidden text-md text-muted-foreground data-[state=closed]:data-[orientation=horizontal]:animate-moduix-accordion-closed-horizontal data-[state=closed]:data-[orientation=vertical]:animate-moduix-accordion-closed data-[state=open]:data-[orientation=horizontal]:animate-moduix-accordion-open-horizontal data-[state=open]:data-[orientation=vertical]:animate-moduix-accordion-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] data-[orientation=horizontal]:[&>*]:w-64 [&[hidden]:not([hidden='until-found'])]:hidden", local.class);
|
|
76
|
+
}
|
|
77
|
+
}, others));
|
|
78
|
+
}
|
|
79
|
+
function AccordionItemBody(props) {
|
|
80
|
+
const [local, others] = splitProps(props, [
|
|
81
|
+
'class'
|
|
82
|
+
]);
|
|
83
|
+
return createComponent(ark.div, mergeProps({
|
|
84
|
+
"data-scope": "accordion",
|
|
85
|
+
"data-part": "item-body",
|
|
86
|
+
"data-slot": "accordion-item-body",
|
|
87
|
+
get ["class"] () {
|
|
88
|
+
return cn('grid min-w-0 gap-3 p-3', local.class);
|
|
89
|
+
}
|
|
90
|
+
}, others));
|
|
91
|
+
}
|
|
92
|
+
const Accordion_Accordion = Object.assign(AccordionRoot, {
|
|
93
|
+
Root: AccordionRoot,
|
|
94
|
+
RootProvider: AccordionRootProvider,
|
|
95
|
+
Context: Accordion.Context,
|
|
96
|
+
ItemContext: Accordion.ItemContext,
|
|
97
|
+
Item: AccordionItem,
|
|
98
|
+
ItemTrigger: AccordionItemTrigger,
|
|
99
|
+
ItemIndicator: AccordionItemIndicator,
|
|
100
|
+
ItemContent: AccordionItemContent,
|
|
101
|
+
ItemBody: AccordionItemBody
|
|
102
|
+
});
|
|
103
|
+
export { Accordion_Accordion as Accordion, useAccordion, useAccordionContext, useAccordionItemContext };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Accordion, useAccordion, useAccordionContext, useAccordionItemContext } from "@ark-ui/solid/accordion";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { children, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.jsx";
|
|
5
|
+
import { PlusIcon } from "../../internal/icons/ui/index.jsx";
|
|
6
|
+
function AccordionRoot(props) {
|
|
7
|
+
const [local, others] = splitProps(props, [
|
|
8
|
+
'class'
|
|
9
|
+
]);
|
|
10
|
+
return <Accordion.Root data-slot="accordion-root" class={cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class)} {...others}/>;
|
|
11
|
+
}
|
|
12
|
+
function AccordionRootProvider(props) {
|
|
13
|
+
const [local, others] = splitProps(props, [
|
|
14
|
+
'class'
|
|
15
|
+
]);
|
|
16
|
+
return <Accordion.RootProvider data-slot="accordion-root-provider" class={cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class)} {...others}/>;
|
|
17
|
+
}
|
|
18
|
+
function AccordionItem(props) {
|
|
19
|
+
const [local, others] = splitProps(props, [
|
|
20
|
+
'class'
|
|
21
|
+
]);
|
|
22
|
+
return <Accordion.Item data-slot="accordion-item" class={cn("[overflow-anchor:none] data-[orientation=horizontal]:flex [&[data-orientation='horizontal']:not(:last-child)]:border-e [&[data-orientation='horizontal']:not(:last-child)]:border-border [&[data-orientation='vertical']:not(:last-child)]:border-b [&[data-orientation='vertical']:not(:last-child)]:border-border", local.class)} {...others}/>;
|
|
23
|
+
}
|
|
24
|
+
function AccordionItemTrigger(props) {
|
|
25
|
+
const [local, others] = splitProps(props, [
|
|
26
|
+
'class'
|
|
27
|
+
]);
|
|
28
|
+
return <Accordion.ItemTrigger data-slot="accordion-item-trigger" class={cn('flex w-full cursor-pointer items-center justify-between gap-4 bg-muted px-3 py-2 text-start text-md outline-0 transition-colors duration-200 select-none focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-10 data-[orientation=horizontal]:justify-center data-[orientation=horizontal]:[writing-mode:sideways-lr] motion-reduce:transition-none [&:not([data-disabled]):active]:bg-accent [&:not([data-disabled]):hover]:bg-accent', local.class)} {...others}/>;
|
|
29
|
+
}
|
|
30
|
+
function AccordionItemIndicator(props) {
|
|
31
|
+
const [local, others] = splitProps(props, [
|
|
32
|
+
'class',
|
|
33
|
+
'children'
|
|
34
|
+
]);
|
|
35
|
+
const resolvedChildren = children(()=>local.children);
|
|
36
|
+
return <Accordion.ItemIndicator data-slot="accordion-item-indicator" class={cn('inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-200 data-[state=open]:scale-110 data-[state=open]:rotate-45 motion-reduce:transition-none [&_svg]:size-full', local.class)} {...others}>
|
|
37
|
+
{resolvedChildren() ?? <PlusIcon/>}
|
|
38
|
+
</Accordion.ItemIndicator>;
|
|
39
|
+
}
|
|
40
|
+
function AccordionItemContent(props) {
|
|
41
|
+
const [local, others] = splitProps(props, [
|
|
42
|
+
'class'
|
|
43
|
+
]);
|
|
44
|
+
return <Accordion.ItemContent data-slot="accordion-item-content" class={cn("overflow-hidden text-md text-muted-foreground data-[state=closed]:data-[orientation=horizontal]:animate-moduix-accordion-closed-horizontal data-[state=closed]:data-[orientation=vertical]:animate-moduix-accordion-closed data-[state=open]:data-[orientation=horizontal]:animate-moduix-accordion-open-horizontal data-[state=open]:data-[orientation=vertical]:animate-moduix-accordion-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] data-[orientation=horizontal]:[&>*]:w-64 [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others}/>;
|
|
45
|
+
}
|
|
46
|
+
function AccordionItemBody(props) {
|
|
47
|
+
const [local, others] = splitProps(props, [
|
|
48
|
+
'class'
|
|
49
|
+
]);
|
|
50
|
+
return <ark.div data-scope="accordion" data-part="item-body" data-slot="accordion-item-body" class={cn('grid min-w-0 gap-3 p-3', local.class)} {...others}/>;
|
|
51
|
+
}
|
|
52
|
+
const Accordion_Accordion = Object.assign(AccordionRoot, {
|
|
53
|
+
Root: AccordionRoot,
|
|
54
|
+
RootProvider: AccordionRootProvider,
|
|
55
|
+
Context: Accordion.Context,
|
|
56
|
+
ItemContext: Accordion.ItemContext,
|
|
57
|
+
Item: AccordionItem,
|
|
58
|
+
ItemTrigger: AccordionItemTrigger,
|
|
59
|
+
ItemIndicator: AccordionItemIndicator,
|
|
60
|
+
ItemContent: AccordionItemContent,
|
|
61
|
+
ItemBody: AccordionItemBody
|
|
62
|
+
});
|
|
63
|
+
export { Accordion_Accordion as Accordion, useAccordion, useAccordionContext, useAccordionItemContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, useAccordion, useAccordionContext, useAccordionItemContext, } from './Accordion.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, useAccordion, useAccordionContext, useAccordionItemContext } from "./Accordion.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, useAccordion, useAccordionContext, useAccordionItemContext } from "./Accordion.jsx";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
type AlertStatus = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
type AlertRootProps = HTMLArkProps<'div'> & {
|
|
4
|
+
status?: AlertStatus;
|
|
5
|
+
};
|
|
6
|
+
declare function AlertRoot(props: AlertRootProps): import("solid-js").JSX.Element;
|
|
7
|
+
declare function AlertIndicator(props: HTMLArkProps<'span'>): import("solid-js").JSX.Element;
|
|
8
|
+
declare function AlertContent(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
9
|
+
declare function AlertTitle(props: HTMLArkProps<'p'>): import("solid-js").JSX.Element;
|
|
10
|
+
declare function AlertDescription(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
11
|
+
declare function AlertActions(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
12
|
+
declare const Alert: typeof AlertRoot & {
|
|
13
|
+
Root: typeof AlertRoot;
|
|
14
|
+
Indicator: typeof AlertIndicator;
|
|
15
|
+
Content: typeof AlertContent;
|
|
16
|
+
Title: typeof AlertTitle;
|
|
17
|
+
Description: typeof AlertDescription;
|
|
18
|
+
Actions: typeof AlertActions;
|
|
19
|
+
};
|
|
20
|
+
export { Alert };
|
|
@@ -0,0 +1,116 @@
|
|
|
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 alertVariants = cva('group/alert box-border flex w-full min-w-0 items-start gap-3 rounded-lg border bg-card p-3 text-card-foreground', {
|
|
7
|
+
variants: {
|
|
8
|
+
status: {
|
|
9
|
+
info: 'border-border',
|
|
10
|
+
success: 'border-success/34 bg-[color-mix(in_oklab,var(--color-success)_10%,var(--color-background))] text-foreground',
|
|
11
|
+
warning: 'border-warning/38 bg-[color-mix(in_oklab,var(--color-warning)_13%,var(--color-background))] text-foreground',
|
|
12
|
+
error: 'border-destructive/35 bg-[color-mix(in_oklab,var(--color-destructive)_9%,var(--color-background))] text-foreground'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
status: 'info'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function AlertRoot(props) {
|
|
20
|
+
const [local, others] = splitProps(props, [
|
|
21
|
+
'class',
|
|
22
|
+
'role',
|
|
23
|
+
'status'
|
|
24
|
+
]);
|
|
25
|
+
return createComponent(ark.div, mergeProps({
|
|
26
|
+
get role () {
|
|
27
|
+
return local.role ?? ('error' === local.status ? 'alert' : 'status');
|
|
28
|
+
},
|
|
29
|
+
"data-scope": "alert",
|
|
30
|
+
"data-part": "root",
|
|
31
|
+
"data-slot": "alert-root",
|
|
32
|
+
get ["data-status"] () {
|
|
33
|
+
return local.status ?? 'info';
|
|
34
|
+
},
|
|
35
|
+
get ["class"] () {
|
|
36
|
+
return cn(alertVariants({
|
|
37
|
+
status: local.status
|
|
38
|
+
}), local.class);
|
|
39
|
+
}
|
|
40
|
+
}, others));
|
|
41
|
+
}
|
|
42
|
+
function AlertIndicator(props) {
|
|
43
|
+
const [local, others] = splitProps(props, [
|
|
44
|
+
'class'
|
|
45
|
+
]);
|
|
46
|
+
return createComponent(ark.span, mergeProps({
|
|
47
|
+
"data-scope": "alert",
|
|
48
|
+
"data-part": "indicator",
|
|
49
|
+
"data-slot": "alert-indicator",
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
get ["class"] () {
|
|
52
|
+
return cn('mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground group-data-[status=error]/alert:text-destructive group-data-[status=success]/alert:text-success group-data-[status=warning]/alert:text-warning [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', local.class);
|
|
53
|
+
}
|
|
54
|
+
}, others));
|
|
55
|
+
}
|
|
56
|
+
function AlertContent(props) {
|
|
57
|
+
const [local, others] = splitProps(props, [
|
|
58
|
+
'class'
|
|
59
|
+
]);
|
|
60
|
+
return createComponent(ark.div, mergeProps({
|
|
61
|
+
"data-scope": "alert",
|
|
62
|
+
"data-part": "content",
|
|
63
|
+
"data-slot": "alert-content",
|
|
64
|
+
get ["class"] () {
|
|
65
|
+
return cn('grid min-w-0 flex-1 gap-1', local.class);
|
|
66
|
+
}
|
|
67
|
+
}, others));
|
|
68
|
+
}
|
|
69
|
+
function AlertTitle(props) {
|
|
70
|
+
const [local, others] = splitProps(props, [
|
|
71
|
+
'class'
|
|
72
|
+
]);
|
|
73
|
+
return createComponent(ark.p, mergeProps({
|
|
74
|
+
"data-scope": "alert",
|
|
75
|
+
"data-part": "title",
|
|
76
|
+
"data-slot": "alert-title",
|
|
77
|
+
get ["class"] () {
|
|
78
|
+
return cn('m-0 min-w-0 text-sm font-semibold [overflow-wrap:anywhere]', local.class);
|
|
79
|
+
}
|
|
80
|
+
}, others));
|
|
81
|
+
}
|
|
82
|
+
function AlertDescription(props) {
|
|
83
|
+
const [local, others] = splitProps(props, [
|
|
84
|
+
'class'
|
|
85
|
+
]);
|
|
86
|
+
return createComponent(ark.div, mergeProps({
|
|
87
|
+
"data-scope": "alert",
|
|
88
|
+
"data-part": "description",
|
|
89
|
+
"data-slot": "alert-description",
|
|
90
|
+
get ["class"] () {
|
|
91
|
+
return cn('min-w-0 text-sm [overflow-wrap:anywhere] text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class);
|
|
92
|
+
}
|
|
93
|
+
}, others));
|
|
94
|
+
}
|
|
95
|
+
function AlertActions(props) {
|
|
96
|
+
const [local, others] = splitProps(props, [
|
|
97
|
+
'class'
|
|
98
|
+
]);
|
|
99
|
+
return createComponent(ark.div, mergeProps({
|
|
100
|
+
"data-scope": "alert",
|
|
101
|
+
"data-part": "actions",
|
|
102
|
+
"data-slot": "alert-actions",
|
|
103
|
+
get ["class"] () {
|
|
104
|
+
return cn('mt-2 flex flex-wrap gap-2', local.class);
|
|
105
|
+
}
|
|
106
|
+
}, others));
|
|
107
|
+
}
|
|
108
|
+
const Alert = Object.assign(AlertRoot, {
|
|
109
|
+
Root: AlertRoot,
|
|
110
|
+
Indicator: AlertIndicator,
|
|
111
|
+
Content: AlertContent,
|
|
112
|
+
Title: AlertTitle,
|
|
113
|
+
Description: AlertDescription,
|
|
114
|
+
Actions: AlertActions
|
|
115
|
+
});
|
|
116
|
+
export { Alert };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.jsx";
|
|
5
|
+
const alertVariants = cva('group/alert box-border flex w-full min-w-0 items-start gap-3 rounded-lg border bg-card p-3 text-card-foreground', {
|
|
6
|
+
variants: {
|
|
7
|
+
status: {
|
|
8
|
+
info: 'border-border',
|
|
9
|
+
success: 'border-success/34 bg-[color-mix(in_oklab,var(--color-success)_10%,var(--color-background))] text-foreground',
|
|
10
|
+
warning: 'border-warning/38 bg-[color-mix(in_oklab,var(--color-warning)_13%,var(--color-background))] text-foreground',
|
|
11
|
+
error: 'border-destructive/35 bg-[color-mix(in_oklab,var(--color-destructive)_9%,var(--color-background))] text-foreground'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
status: 'info'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function AlertRoot(props) {
|
|
19
|
+
const [local, others] = splitProps(props, [
|
|
20
|
+
'class',
|
|
21
|
+
'role',
|
|
22
|
+
'status'
|
|
23
|
+
]);
|
|
24
|
+
return <ark.div role={local.role ?? ('error' === local.status ? 'alert' : 'status')} data-scope="alert" data-part="root" data-slot="alert-root" data-status={local.status ?? 'info'} class={cn(alertVariants({
|
|
25
|
+
status: local.status
|
|
26
|
+
}), local.class)} {...others}/>;
|
|
27
|
+
}
|
|
28
|
+
function AlertIndicator(props) {
|
|
29
|
+
const [local, others] = splitProps(props, [
|
|
30
|
+
'class'
|
|
31
|
+
]);
|
|
32
|
+
return <ark.span data-scope="alert" data-part="indicator" data-slot="alert-indicator" aria-hidden="true" class={cn('mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground group-data-[status=error]/alert:text-destructive group-data-[status=success]/alert:text-success group-data-[status=warning]/alert:text-warning [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', local.class)} {...others}/>;
|
|
33
|
+
}
|
|
34
|
+
function AlertContent(props) {
|
|
35
|
+
const [local, others] = splitProps(props, [
|
|
36
|
+
'class'
|
|
37
|
+
]);
|
|
38
|
+
return <ark.div data-scope="alert" data-part="content" data-slot="alert-content" class={cn('grid min-w-0 flex-1 gap-1', local.class)} {...others}/>;
|
|
39
|
+
}
|
|
40
|
+
function AlertTitle(props) {
|
|
41
|
+
const [local, others] = splitProps(props, [
|
|
42
|
+
'class'
|
|
43
|
+
]);
|
|
44
|
+
return <ark.p data-scope="alert" data-part="title" data-slot="alert-title" class={cn('m-0 min-w-0 text-sm font-semibold [overflow-wrap:anywhere]', local.class)} {...others}/>;
|
|
45
|
+
}
|
|
46
|
+
function AlertDescription(props) {
|
|
47
|
+
const [local, others] = splitProps(props, [
|
|
48
|
+
'class'
|
|
49
|
+
]);
|
|
50
|
+
return <ark.div data-scope="alert" data-part="description" data-slot="alert-description" class={cn('min-w-0 text-sm [overflow-wrap:anywhere] text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class)} {...others}/>;
|
|
51
|
+
}
|
|
52
|
+
function AlertActions(props) {
|
|
53
|
+
const [local, others] = splitProps(props, [
|
|
54
|
+
'class'
|
|
55
|
+
]);
|
|
56
|
+
return <ark.div data-scope="alert" data-part="actions" data-slot="alert-actions" class={cn('mt-2 flex flex-wrap gap-2', local.class)} {...others}/>;
|
|
57
|
+
}
|
|
58
|
+
const Alert = Object.assign(AlertRoot, {
|
|
59
|
+
Root: AlertRoot,
|
|
60
|
+
Indicator: AlertIndicator,
|
|
61
|
+
Content: AlertContent,
|
|
62
|
+
Title: AlertTitle,
|
|
63
|
+
Description: AlertDescription,
|
|
64
|
+
Actions: AlertActions
|
|
65
|
+
});
|
|
66
|
+
export { Alert };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert } from './Alert.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert } from "./Alert.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert } from "./Alert.jsx";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AngleSlider as AngleSliderPrimitive, useAngleSliderContext, type UseAngleSliderProps, type UseAngleSliderReturn } from '@ark-ui/solid/angle-slider';
|
|
2
|
+
import type { ComponentProps, JSX } from 'solid-js';
|
|
3
|
+
declare function AngleSliderRoot(props: ComponentProps<typeof AngleSliderPrimitive.Root>): JSX.Element;
|
|
4
|
+
declare function AngleSliderLabel(props: ComponentProps<typeof AngleSliderPrimitive.Label>): JSX.Element;
|
|
5
|
+
type AngleSliderRootProviderProps = ComponentProps<typeof AngleSliderPrimitive.RootProvider> & {
|
|
6
|
+
form?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function AngleSliderRootProvider(props: AngleSliderRootProviderProps): JSX.Element;
|
|
9
|
+
declare function AngleSliderControl(props: ComponentProps<typeof AngleSliderPrimitive.Control>): JSX.Element;
|
|
10
|
+
declare function AngleSliderThumb(props: ComponentProps<typeof AngleSliderPrimitive.Thumb>): JSX.Element;
|
|
11
|
+
declare function AngleSliderMarkerGroup(props: ComponentProps<typeof AngleSliderPrimitive.MarkerGroup>): JSX.Element;
|
|
12
|
+
declare function AngleSliderMarker(props: ComponentProps<typeof AngleSliderPrimitive.Marker>): JSX.Element;
|
|
13
|
+
type AngleSliderMarksProps = Omit<ComponentProps<typeof AngleSliderPrimitive.MarkerGroup>, 'asChild' | 'children'> & {
|
|
14
|
+
values: readonly number[];
|
|
15
|
+
};
|
|
16
|
+
declare function AngleSliderMarks(props: AngleSliderMarksProps): JSX.Element;
|
|
17
|
+
type AngleSliderDialProps = Omit<ComponentProps<typeof AngleSliderPrimitive.Control>, 'asChild' | 'children'> & {
|
|
18
|
+
children?: JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
declare function AngleSliderDial(props: AngleSliderDialProps): JSX.Element;
|
|
21
|
+
declare function AngleSliderValueText(props: ComponentProps<typeof AngleSliderPrimitive.ValueText>): JSX.Element;
|
|
22
|
+
declare const AngleSlider: typeof AngleSliderRoot & {
|
|
23
|
+
Root: typeof AngleSliderRoot;
|
|
24
|
+
RootProvider: typeof AngleSliderRootProvider;
|
|
25
|
+
Context: (props: AngleSliderPrimitive.ContextProps) => JSX.Element;
|
|
26
|
+
HiddenInput: (props: AngleSliderPrimitive.HiddenInputProps) => JSX.Element;
|
|
27
|
+
Label: typeof AngleSliderLabel;
|
|
28
|
+
Control: typeof AngleSliderControl;
|
|
29
|
+
Dial: typeof AngleSliderDial;
|
|
30
|
+
Thumb: typeof AngleSliderThumb;
|
|
31
|
+
MarkerGroup: typeof AngleSliderMarkerGroup;
|
|
32
|
+
Marker: typeof AngleSliderMarker;
|
|
33
|
+
Marks: typeof AngleSliderMarks;
|
|
34
|
+
ValueText: typeof AngleSliderValueText;
|
|
35
|
+
};
|
|
36
|
+
declare const useAngleSlider: (props?: UseAngleSliderProps | (() => UseAngleSliderProps)) => UseAngleSliderReturn;
|
|
37
|
+
export { AngleSlider, useAngleSlider, useAngleSliderContext };
|