@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,75 @@
|
|
|
1
|
+
import { useFocusVisible } from "@ark-ui/solid";
|
|
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.jsx";
|
|
6
|
+
const buttonVariants = cva("inline-flex cursor-pointer items-center justify-center gap-2 rounded-md border text-sm font-medium no-underline outline-0 appearance-none transition-[background-color,border-color,color,opacity,transform] duration-200 ease-in-out select-none whitespace-nowrap data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-loading:cursor-progress motion-reduce:transition-none motion-safe:[&:not([data-variant='link']):active]:translate-y-px [&:focus[data-focus-visible]]:-outline-offset-1 [&:focus[data-focus-visible]]:outline-2 [&:focus[data-focus-visible]]:outline-ring [&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: 'border-primary bg-primary text-primary-foreground hover:bg-[color-mix(in_srgb,var(--color-primary)_88%,black)]',
|
|
10
|
+
outline: 'border-border bg-background text-foreground hover:bg-accent',
|
|
11
|
+
secondary: 'border-secondary bg-secondary text-secondary-foreground hover:bg-accent',
|
|
12
|
+
destructive: 'border-destructive bg-destructive text-destructive-foreground hover:brightness-[0.96]',
|
|
13
|
+
'destructive-outline': 'border-destructive bg-background text-destructive hover:bg-destructive hover:text-destructive-foreground',
|
|
14
|
+
ghost: 'border-transparent bg-transparent text-foreground hover:bg-accent',
|
|
15
|
+
link: 'border-transparent bg-transparent text-primary underline underline-offset-[0.25em] hover:text-foreground'
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
xs: 'min-h-control-xs px-2.5 py-0.5 text-xs',
|
|
19
|
+
sm: 'min-h-control-sm px-3 py-1 text-sm',
|
|
20
|
+
md: 'min-h-control-md px-4 py-1 text-sm',
|
|
21
|
+
lg: 'min-h-control-lg px-5 py-1.5 text-md',
|
|
22
|
+
xl: 'min-h-control-xl px-6 py-2 text-lg',
|
|
23
|
+
'icon-sm': 'size-control-sm min-w-control-sm gap-0 p-0',
|
|
24
|
+
'icon-md': 'size-control-md min-w-control-md gap-0 p-0',
|
|
25
|
+
'icon-lg': 'size-control-lg min-w-control-lg gap-0 p-0'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
compoundVariants: [
|
|
29
|
+
{
|
|
30
|
+
variant: 'link',
|
|
31
|
+
class: 'min-h-0 py-0'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: 'default',
|
|
36
|
+
size: 'md'
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const ArkButton = ark.button;
|
|
40
|
+
function ButtonRoot(props) {
|
|
41
|
+
const focusVisible = useFocusVisible();
|
|
42
|
+
const [local, others] = splitProps(props, [
|
|
43
|
+
'asChild',
|
|
44
|
+
'class',
|
|
45
|
+
'disabled',
|
|
46
|
+
'loading',
|
|
47
|
+
'onClick',
|
|
48
|
+
'onClickCapture',
|
|
49
|
+
'size',
|
|
50
|
+
'type',
|
|
51
|
+
'data-scope',
|
|
52
|
+
'data-part',
|
|
53
|
+
'data-slot',
|
|
54
|
+
'variant',
|
|
55
|
+
'aria-busy',
|
|
56
|
+
'aria-disabled'
|
|
57
|
+
]);
|
|
58
|
+
const isDisabled = ()=>local.disabled || local.loading || true === local['aria-disabled'] || 'true' === local['aria-disabled'];
|
|
59
|
+
const handleClickCapture = (event)=>{
|
|
60
|
+
if (isDisabled()) {
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
event.stopPropagation();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
local.onClickCapture?.(event);
|
|
66
|
+
};
|
|
67
|
+
return <ArkButton asChild={local.asChild} {...others} type={local.asChild ? local.type : local.type ?? 'button'} disabled={local.asChild ? void 0 : isDisabled()} aria-busy={local.loading ? true : local['aria-busy']} aria-disabled={isDisabled() ? true : local['aria-disabled']} oncapture:click={handleClickCapture} onClick={local.onClick} data-scope={local['data-scope'] ?? 'button'} data-part={local['data-part'] ?? 'root'} data-slot={local['data-slot'] ?? 'button-root'} data-variant={local.variant ?? 'default'} data-size={local.size ?? 'md'} data-disabled={isDisabled() ? '' : void 0} data-focus-visible={focusVisible() ? '' : void 0} data-loading={local.loading ? '' : void 0} class={cn(buttonVariants({
|
|
68
|
+
variant: local.variant,
|
|
69
|
+
size: local.size
|
|
70
|
+
}), local.class)}/>;
|
|
71
|
+
}
|
|
72
|
+
const Button = Object.assign(ButtonRoot, {
|
|
73
|
+
Root: ButtonRoot
|
|
74
|
+
});
|
|
75
|
+
export { Button };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from './Button.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from "./Button.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from "./Button.jsx";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
type CardRootProps = HTMLArkProps<'div'> & {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
variant?: 'elevated' | 'outline' | 'subtle';
|
|
5
|
+
};
|
|
6
|
+
declare function CardRoot(props: CardRootProps): import("solid-js").JSX.Element;
|
|
7
|
+
declare function CardHeader(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
8
|
+
declare function CardBody(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
9
|
+
declare function CardMedia(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
10
|
+
declare function CardBackground(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
11
|
+
declare function CardFooter(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
12
|
+
declare function CardTitle(props: HTMLArkProps<'h3'>): import("solid-js").JSX.Element;
|
|
13
|
+
declare function CardDescription(props: HTMLArkProps<'p'>): import("solid-js").JSX.Element;
|
|
14
|
+
declare function CardAction(props: HTMLArkProps<'div'>): import("solid-js").JSX.Element;
|
|
15
|
+
declare function CardLink(props: HTMLArkProps<'a'>): import("solid-js").JSX.Element;
|
|
16
|
+
declare const Card: typeof CardRoot & {
|
|
17
|
+
Root: typeof CardRoot;
|
|
18
|
+
Header: typeof CardHeader;
|
|
19
|
+
Body: typeof CardBody;
|
|
20
|
+
Media: typeof CardMedia;
|
|
21
|
+
Background: typeof CardBackground;
|
|
22
|
+
Footer: typeof CardFooter;
|
|
23
|
+
Title: typeof CardTitle;
|
|
24
|
+
Description: typeof CardDescription;
|
|
25
|
+
Action: typeof CardAction;
|
|
26
|
+
Link: typeof CardLink;
|
|
27
|
+
};
|
|
28
|
+
export { Card };
|
|
@@ -0,0 +1,210 @@
|
|
|
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 cardRootVariants = cva('group/card relative flex w-full min-w-0 flex-col rounded-lg text-card-foreground focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring has-[>[data-slot=card-background]]:isolate [&:has(>[data-slot=card-background])>*:not([data-slot=card-background])]:z-1 [&:has([data-slot=card-link])_:is(a,button,input,select,textarea,[role=button],[role=checkbox],[role=menuitem],[role=switch],[tabindex]:not([tabindex=-1])):not([data-slot=card-link])]:relative [&:has([data-slot=card-link])_:is(a,button,input,select,textarea,[role=button],[role=checkbox],[role=menuitem],[role=switch],[tabindex]:not([tabindex=-1])):not([data-slot=card-link])]:z-1', {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
elevated: 'border-0 bg-card shadow-md',
|
|
10
|
+
outline: 'border border-border bg-card',
|
|
11
|
+
subtle: 'border-0 bg-muted'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: 'outline'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function CardRoot(props) {
|
|
19
|
+
const [local, others] = splitProps(props, [
|
|
20
|
+
'asChild',
|
|
21
|
+
'class',
|
|
22
|
+
'size',
|
|
23
|
+
'variant'
|
|
24
|
+
]);
|
|
25
|
+
return createComponent(ark.div, mergeProps({
|
|
26
|
+
get asChild () {
|
|
27
|
+
return local.asChild;
|
|
28
|
+
},
|
|
29
|
+
"data-scope": "card",
|
|
30
|
+
"data-part": "root",
|
|
31
|
+
"data-slot": "card-root",
|
|
32
|
+
get ["data-size"] () {
|
|
33
|
+
return local.size ?? 'md';
|
|
34
|
+
},
|
|
35
|
+
get ["data-variant"] () {
|
|
36
|
+
return local.variant ?? 'outline';
|
|
37
|
+
},
|
|
38
|
+
get ["class"] () {
|
|
39
|
+
return cn(cardRootVariants({
|
|
40
|
+
variant: local.variant
|
|
41
|
+
}), local.class);
|
|
42
|
+
}
|
|
43
|
+
}, others));
|
|
44
|
+
}
|
|
45
|
+
function CardHeader(props) {
|
|
46
|
+
const [local, others] = splitProps(props, [
|
|
47
|
+
'asChild',
|
|
48
|
+
'class'
|
|
49
|
+
]);
|
|
50
|
+
return createComponent(ark.div, mergeProps({
|
|
51
|
+
get asChild () {
|
|
52
|
+
return local.asChild;
|
|
53
|
+
},
|
|
54
|
+
"data-scope": "card",
|
|
55
|
+
"data-part": "header",
|
|
56
|
+
"data-slot": "card-header",
|
|
57
|
+
get ["class"] () {
|
|
58
|
+
return cn('grid min-w-0 grid-cols-[minmax(0,1fr)_auto] gap-x-2 gap-y-1 px-6 pt-6 group-data-[size=lg]/card:px-8 group-data-[size=lg]/card:pt-8 group-data-[size=sm]/card:px-4 group-data-[size=sm]/card:pt-4', local.class);
|
|
59
|
+
}
|
|
60
|
+
}, others));
|
|
61
|
+
}
|
|
62
|
+
function CardBody(props) {
|
|
63
|
+
const [local, others] = splitProps(props, [
|
|
64
|
+
'asChild',
|
|
65
|
+
'class'
|
|
66
|
+
]);
|
|
67
|
+
return createComponent(ark.div, mergeProps({
|
|
68
|
+
get asChild () {
|
|
69
|
+
return local.asChild;
|
|
70
|
+
},
|
|
71
|
+
"data-scope": "card",
|
|
72
|
+
"data-part": "body",
|
|
73
|
+
"data-slot": "card-body",
|
|
74
|
+
get ["class"] () {
|
|
75
|
+
return cn('min-w-0 px-6 pt-4 pb-6 text-sm wrap-anywhere text-muted-foreground group-data-[size=lg]/card:px-8 group-data-[size=lg]/card:pb-8 group-data-[size=sm]/card:px-4 group-data-[size=sm]/card:pb-4 first:pt-6 group-data-[size=lg]/card:first:pt-8 group-data-[size=sm]/card:first:pt-4', local.class);
|
|
76
|
+
}
|
|
77
|
+
}, others));
|
|
78
|
+
}
|
|
79
|
+
function CardMedia(props) {
|
|
80
|
+
const [local, others] = splitProps(props, [
|
|
81
|
+
'asChild',
|
|
82
|
+
'class'
|
|
83
|
+
]);
|
|
84
|
+
return createComponent(ark.div, mergeProps({
|
|
85
|
+
get asChild () {
|
|
86
|
+
return local.asChild;
|
|
87
|
+
},
|
|
88
|
+
"data-scope": "card",
|
|
89
|
+
"data-part": "media",
|
|
90
|
+
"data-slot": "card-media",
|
|
91
|
+
get ["class"] () {
|
|
92
|
+
return cn('min-w-0 overflow-hidden rounded-ss-[inherit] rounded-se-[inherit] [&>:is(img,picture,video,canvas,svg,iframe)]:w-full [&>picture]:block [&>picture>img]:w-full', local.class);
|
|
93
|
+
}
|
|
94
|
+
}, others));
|
|
95
|
+
}
|
|
96
|
+
function CardBackground(props) {
|
|
97
|
+
const [local, others] = splitProps(props, [
|
|
98
|
+
'asChild',
|
|
99
|
+
'class'
|
|
100
|
+
]);
|
|
101
|
+
return createComponent(ark.div, mergeProps({
|
|
102
|
+
get asChild () {
|
|
103
|
+
return local.asChild;
|
|
104
|
+
},
|
|
105
|
+
"data-scope": "card",
|
|
106
|
+
"data-part": "background",
|
|
107
|
+
"data-slot": "card-background",
|
|
108
|
+
get ["class"] () {
|
|
109
|
+
return cn('absolute inset-0 z-0 overflow-hidden rounded-[inherit] [&>:is(img,picture,video,canvas,svg,iframe)]:size-full [&>:is(img,picture,video,canvas,svg,iframe)]:object-cover [&>picture]:block [&>picture>img]:size-full [&>picture>img]:object-cover', local.class);
|
|
110
|
+
}
|
|
111
|
+
}, others));
|
|
112
|
+
}
|
|
113
|
+
function CardFooter(props) {
|
|
114
|
+
const [local, others] = splitProps(props, [
|
|
115
|
+
'asChild',
|
|
116
|
+
'class'
|
|
117
|
+
]);
|
|
118
|
+
return createComponent(ark.div, mergeProps({
|
|
119
|
+
get asChild () {
|
|
120
|
+
return local.asChild;
|
|
121
|
+
},
|
|
122
|
+
"data-scope": "card",
|
|
123
|
+
"data-part": "footer",
|
|
124
|
+
"data-slot": "card-footer",
|
|
125
|
+
get ["class"] () {
|
|
126
|
+
return cn('flex min-w-0 flex-wrap items-center gap-2 px-6 pb-6 group-data-[size=lg]/card:px-8 group-data-[size=lg]/card:pb-8 group-data-[size=sm]/card:px-4 group-data-[size=sm]/card:pb-4', local.class);
|
|
127
|
+
}
|
|
128
|
+
}, others));
|
|
129
|
+
}
|
|
130
|
+
function CardTitle(props) {
|
|
131
|
+
const [local, others] = splitProps(props, [
|
|
132
|
+
'asChild',
|
|
133
|
+
'class'
|
|
134
|
+
]);
|
|
135
|
+
return createComponent(ark.h3, mergeProps({
|
|
136
|
+
get asChild () {
|
|
137
|
+
return local.asChild;
|
|
138
|
+
},
|
|
139
|
+
"data-scope": "card",
|
|
140
|
+
"data-part": "title",
|
|
141
|
+
"data-slot": "card-title",
|
|
142
|
+
get ["class"] () {
|
|
143
|
+
return cn('col-start-1 min-w-0 text-lg font-semibold wrap-anywhere group-data-[size=lg]/card:text-xl group-data-[size=sm]/card:text-md', local.class);
|
|
144
|
+
}
|
|
145
|
+
}, others));
|
|
146
|
+
}
|
|
147
|
+
function CardDescription(props) {
|
|
148
|
+
const [local, others] = splitProps(props, [
|
|
149
|
+
'asChild',
|
|
150
|
+
'class'
|
|
151
|
+
]);
|
|
152
|
+
return createComponent(ark.p, mergeProps({
|
|
153
|
+
get asChild () {
|
|
154
|
+
return local.asChild;
|
|
155
|
+
},
|
|
156
|
+
"data-scope": "card",
|
|
157
|
+
"data-part": "description",
|
|
158
|
+
"data-slot": "card-description",
|
|
159
|
+
get ["class"] () {
|
|
160
|
+
return cn('col-start-1 min-w-0 text-sm wrap-anywhere text-muted-foreground', local.class);
|
|
161
|
+
}
|
|
162
|
+
}, others));
|
|
163
|
+
}
|
|
164
|
+
function CardAction(props) {
|
|
165
|
+
const [local, others] = splitProps(props, [
|
|
166
|
+
'asChild',
|
|
167
|
+
'class'
|
|
168
|
+
]);
|
|
169
|
+
return createComponent(ark.div, mergeProps({
|
|
170
|
+
get asChild () {
|
|
171
|
+
return local.asChild;
|
|
172
|
+
},
|
|
173
|
+
"data-scope": "card",
|
|
174
|
+
"data-part": "action",
|
|
175
|
+
"data-slot": "card-action",
|
|
176
|
+
get ["class"] () {
|
|
177
|
+
return cn('relative z-1 col-start-2 row-span-2 row-start-1 inline-flex items-start justify-end gap-2 justify-self-end', local.class);
|
|
178
|
+
}
|
|
179
|
+
}, others));
|
|
180
|
+
}
|
|
181
|
+
function CardLink(props) {
|
|
182
|
+
const [local, others] = splitProps(props, [
|
|
183
|
+
'asChild',
|
|
184
|
+
'class'
|
|
185
|
+
]);
|
|
186
|
+
return createComponent(ark.a, mergeProps({
|
|
187
|
+
get asChild () {
|
|
188
|
+
return local.asChild;
|
|
189
|
+
},
|
|
190
|
+
"data-scope": "card",
|
|
191
|
+
"data-part": "link",
|
|
192
|
+
"data-slot": "card-link",
|
|
193
|
+
get ["class"] () {
|
|
194
|
+
return cn('static text-inherit no-underline after:absolute after:inset-0 after:z-0 after:rounded-lg focus-visible:outline-0 focus-visible:after:outline-2 focus-visible:after:outline-offset-1 focus-visible:after:outline-ring', local.class);
|
|
195
|
+
}
|
|
196
|
+
}, others));
|
|
197
|
+
}
|
|
198
|
+
const Card = Object.assign(CardRoot, {
|
|
199
|
+
Root: CardRoot,
|
|
200
|
+
Header: CardHeader,
|
|
201
|
+
Body: CardBody,
|
|
202
|
+
Media: CardMedia,
|
|
203
|
+
Background: CardBackground,
|
|
204
|
+
Footer: CardFooter,
|
|
205
|
+
Title: CardTitle,
|
|
206
|
+
Description: CardDescription,
|
|
207
|
+
Action: CardAction,
|
|
208
|
+
Link: CardLink
|
|
209
|
+
});
|
|
210
|
+
export { Card };
|
|
@@ -0,0 +1,103 @@
|
|
|
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 cardRootVariants = cva('group/card relative flex w-full min-w-0 flex-col rounded-lg text-card-foreground focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring has-[>[data-slot=card-background]]:isolate [&:has(>[data-slot=card-background])>*:not([data-slot=card-background])]:z-1 [&:has([data-slot=card-link])_:is(a,button,input,select,textarea,[role=button],[role=checkbox],[role=menuitem],[role=switch],[tabindex]:not([tabindex=-1])):not([data-slot=card-link])]:relative [&:has([data-slot=card-link])_:is(a,button,input,select,textarea,[role=button],[role=checkbox],[role=menuitem],[role=switch],[tabindex]:not([tabindex=-1])):not([data-slot=card-link])]:z-1', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
elevated: 'border-0 bg-card shadow-md',
|
|
9
|
+
outline: 'border border-border bg-card',
|
|
10
|
+
subtle: 'border-0 bg-muted'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: 'outline'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
function CardRoot(props) {
|
|
18
|
+
const [local, others] = splitProps(props, [
|
|
19
|
+
'asChild',
|
|
20
|
+
'class',
|
|
21
|
+
'size',
|
|
22
|
+
'variant'
|
|
23
|
+
]);
|
|
24
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="root" data-slot="card-root" data-size={local.size ?? 'md'} data-variant={local.variant ?? 'outline'} class={cn(cardRootVariants({
|
|
25
|
+
variant: local.variant
|
|
26
|
+
}), local.class)} {...others}/>;
|
|
27
|
+
}
|
|
28
|
+
function CardHeader(props) {
|
|
29
|
+
const [local, others] = splitProps(props, [
|
|
30
|
+
'asChild',
|
|
31
|
+
'class'
|
|
32
|
+
]);
|
|
33
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="header" data-slot="card-header" class={cn('grid min-w-0 grid-cols-[minmax(0,1fr)_auto] gap-x-2 gap-y-1 px-6 pt-6 group-data-[size=lg]/card:px-8 group-data-[size=lg]/card:pt-8 group-data-[size=sm]/card:px-4 group-data-[size=sm]/card:pt-4', local.class)} {...others}/>;
|
|
34
|
+
}
|
|
35
|
+
function CardBody(props) {
|
|
36
|
+
const [local, others] = splitProps(props, [
|
|
37
|
+
'asChild',
|
|
38
|
+
'class'
|
|
39
|
+
]);
|
|
40
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="body" data-slot="card-body" class={cn('min-w-0 px-6 pt-4 pb-6 text-sm wrap-anywhere text-muted-foreground group-data-[size=lg]/card:px-8 group-data-[size=lg]/card:pb-8 group-data-[size=sm]/card:px-4 group-data-[size=sm]/card:pb-4 first:pt-6 group-data-[size=lg]/card:first:pt-8 group-data-[size=sm]/card:first:pt-4', local.class)} {...others}/>;
|
|
41
|
+
}
|
|
42
|
+
function CardMedia(props) {
|
|
43
|
+
const [local, others] = splitProps(props, [
|
|
44
|
+
'asChild',
|
|
45
|
+
'class'
|
|
46
|
+
]);
|
|
47
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="media" data-slot="card-media" class={cn('min-w-0 overflow-hidden rounded-ss-[inherit] rounded-se-[inherit] [&>:is(img,picture,video,canvas,svg,iframe)]:w-full [&>picture]:block [&>picture>img]:w-full', local.class)} {...others}/>;
|
|
48
|
+
}
|
|
49
|
+
function CardBackground(props) {
|
|
50
|
+
const [local, others] = splitProps(props, [
|
|
51
|
+
'asChild',
|
|
52
|
+
'class'
|
|
53
|
+
]);
|
|
54
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="background" data-slot="card-background" class={cn('absolute inset-0 z-0 overflow-hidden rounded-[inherit] [&>:is(img,picture,video,canvas,svg,iframe)]:size-full [&>:is(img,picture,video,canvas,svg,iframe)]:object-cover [&>picture]:block [&>picture>img]:size-full [&>picture>img]:object-cover', local.class)} {...others}/>;
|
|
55
|
+
}
|
|
56
|
+
function CardFooter(props) {
|
|
57
|
+
const [local, others] = splitProps(props, [
|
|
58
|
+
'asChild',
|
|
59
|
+
'class'
|
|
60
|
+
]);
|
|
61
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="footer" data-slot="card-footer" class={cn('flex min-w-0 flex-wrap items-center gap-2 px-6 pb-6 group-data-[size=lg]/card:px-8 group-data-[size=lg]/card:pb-8 group-data-[size=sm]/card:px-4 group-data-[size=sm]/card:pb-4', local.class)} {...others}/>;
|
|
62
|
+
}
|
|
63
|
+
function CardTitle(props) {
|
|
64
|
+
const [local, others] = splitProps(props, [
|
|
65
|
+
'asChild',
|
|
66
|
+
'class'
|
|
67
|
+
]);
|
|
68
|
+
return <ark.h3 asChild={local.asChild} data-scope="card" data-part="title" data-slot="card-title" class={cn('col-start-1 min-w-0 text-lg font-semibold wrap-anywhere group-data-[size=lg]/card:text-xl group-data-[size=sm]/card:text-md', local.class)} {...others}/>;
|
|
69
|
+
}
|
|
70
|
+
function CardDescription(props) {
|
|
71
|
+
const [local, others] = splitProps(props, [
|
|
72
|
+
'asChild',
|
|
73
|
+
'class'
|
|
74
|
+
]);
|
|
75
|
+
return <ark.p asChild={local.asChild} data-scope="card" data-part="description" data-slot="card-description" class={cn('col-start-1 min-w-0 text-sm wrap-anywhere text-muted-foreground', local.class)} {...others}/>;
|
|
76
|
+
}
|
|
77
|
+
function CardAction(props) {
|
|
78
|
+
const [local, others] = splitProps(props, [
|
|
79
|
+
'asChild',
|
|
80
|
+
'class'
|
|
81
|
+
]);
|
|
82
|
+
return <ark.div asChild={local.asChild} data-scope="card" data-part="action" data-slot="card-action" class={cn('relative z-1 col-start-2 row-span-2 row-start-1 inline-flex items-start justify-end gap-2 justify-self-end', local.class)} {...others}/>;
|
|
83
|
+
}
|
|
84
|
+
function CardLink(props) {
|
|
85
|
+
const [local, others] = splitProps(props, [
|
|
86
|
+
'asChild',
|
|
87
|
+
'class'
|
|
88
|
+
]);
|
|
89
|
+
return <ark.a asChild={local.asChild} data-scope="card" data-part="link" data-slot="card-link" class={cn('static text-inherit no-underline after:absolute after:inset-0 after:z-0 after:rounded-lg focus-visible:outline-0 focus-visible:after:outline-2 focus-visible:after:outline-offset-1 focus-visible:after:outline-ring', local.class)} {...others}/>;
|
|
90
|
+
}
|
|
91
|
+
const Card = Object.assign(CardRoot, {
|
|
92
|
+
Root: CardRoot,
|
|
93
|
+
Header: CardHeader,
|
|
94
|
+
Body: CardBody,
|
|
95
|
+
Media: CardMedia,
|
|
96
|
+
Background: CardBackground,
|
|
97
|
+
Footer: CardFooter,
|
|
98
|
+
Title: CardTitle,
|
|
99
|
+
Description: CardDescription,
|
|
100
|
+
Action: CardAction,
|
|
101
|
+
Link: CardLink
|
|
102
|
+
});
|
|
103
|
+
export { Card };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from './Card.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from "./Card.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from "./Card.jsx";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Carousel as CarouselPrimitive, useCarousel, useCarouselContext } from '@ark-ui/solid/carousel';
|
|
2
|
+
import type { ComponentProps } from 'solid-js';
|
|
3
|
+
declare function CarouselRoot(props: ComponentProps<typeof CarouselPrimitive.Root>): import("solid-js").JSX.Element;
|
|
4
|
+
declare function CarouselRootProvider(props: ComponentProps<typeof CarouselPrimitive.RootProvider>): import("solid-js").JSX.Element;
|
|
5
|
+
declare function CarouselControl(props: ComponentProps<typeof CarouselPrimitive.Control>): import("solid-js").JSX.Element;
|
|
6
|
+
declare function CarouselItemGroup(props: ComponentProps<typeof CarouselPrimitive.ItemGroup>): import("solid-js").JSX.Element;
|
|
7
|
+
declare function CarouselItem(props: ComponentProps<typeof CarouselPrimitive.Item>): import("solid-js").JSX.Element;
|
|
8
|
+
declare function CarouselPrevTrigger(props: ComponentProps<typeof CarouselPrimitive.PrevTrigger>): import("solid-js").JSX.Element;
|
|
9
|
+
declare function CarouselNextTrigger(props: ComponentProps<typeof CarouselPrimitive.NextTrigger>): import("solid-js").JSX.Element;
|
|
10
|
+
declare function CarouselIndicatorGroup(props: ComponentProps<typeof CarouselPrimitive.IndicatorGroup>): import("solid-js").JSX.Element;
|
|
11
|
+
declare function CarouselIndicator(props: ComponentProps<typeof CarouselPrimitive.Indicator>): import("solid-js").JSX.Element;
|
|
12
|
+
type CarouselIndicatorsProps = ComponentProps<typeof CarouselPrimitive.IndicatorGroup> & {
|
|
13
|
+
indicatorClassName?: string;
|
|
14
|
+
};
|
|
15
|
+
declare function CarouselIndicators(props: CarouselIndicatorsProps): import("solid-js").JSX.Element;
|
|
16
|
+
declare function CarouselAutoplayTrigger(props: ComponentProps<typeof CarouselPrimitive.AutoplayTrigger>): import("solid-js").JSX.Element;
|
|
17
|
+
declare function CarouselAutoplayIndicator(props: ComponentProps<typeof CarouselPrimitive.AutoplayIndicator>): import("solid-js").JSX.Element;
|
|
18
|
+
declare function CarouselProgressText(props: ComponentProps<typeof CarouselPrimitive.ProgressText>): import("solid-js").JSX.Element;
|
|
19
|
+
declare const Carousel: typeof CarouselRoot & {
|
|
20
|
+
Root: typeof CarouselRoot;
|
|
21
|
+
RootProvider: typeof CarouselRootProvider;
|
|
22
|
+
Context: (props: CarouselPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
23
|
+
Control: typeof CarouselControl;
|
|
24
|
+
ItemGroup: typeof CarouselItemGroup;
|
|
25
|
+
Item: typeof CarouselItem;
|
|
26
|
+
PrevTrigger: typeof CarouselPrevTrigger;
|
|
27
|
+
NextTrigger: typeof CarouselNextTrigger;
|
|
28
|
+
IndicatorGroup: typeof CarouselIndicatorGroup;
|
|
29
|
+
Indicator: typeof CarouselIndicator;
|
|
30
|
+
Indicators: typeof CarouselIndicators;
|
|
31
|
+
AutoplayTrigger: typeof CarouselAutoplayTrigger;
|
|
32
|
+
AutoplayIndicator: typeof CarouselAutoplayIndicator;
|
|
33
|
+
ProgressText: typeof CarouselProgressText;
|
|
34
|
+
};
|
|
35
|
+
export { Carousel, useCarousel, useCarouselContext };
|