@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,57 @@
|
|
|
1
|
+
import { Switch, SwitchContext, useSwitch, useSwitchContext } from "@ark-ui/solid/switch";
|
|
2
|
+
import { children, splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
function SwitchRoot(props) {
|
|
5
|
+
const [local, others] = splitProps(props, [
|
|
6
|
+
'asChild',
|
|
7
|
+
'children',
|
|
8
|
+
'class',
|
|
9
|
+
'size'
|
|
10
|
+
]);
|
|
11
|
+
return <Switch.Root asChild={local.asChild} data-slot="switch-root" data-size={local.size ?? 'md'} class={cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class)} {...others}>
|
|
12
|
+
{local.children}
|
|
13
|
+
</Switch.Root>;
|
|
14
|
+
}
|
|
15
|
+
function SwitchRootProvider(props) {
|
|
16
|
+
const [local, others] = splitProps(props, [
|
|
17
|
+
'asChild',
|
|
18
|
+
'children',
|
|
19
|
+
'class',
|
|
20
|
+
'size'
|
|
21
|
+
]);
|
|
22
|
+
return <Switch.RootProvider asChild={local.asChild} data-slot="switch-root-provider" data-size={local.size ?? 'md'} class={cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class)} {...others}>
|
|
23
|
+
{local.children}
|
|
24
|
+
</Switch.RootProvider>;
|
|
25
|
+
}
|
|
26
|
+
function SwitchControl(props) {
|
|
27
|
+
const [local, others] = splitProps(props, [
|
|
28
|
+
'children',
|
|
29
|
+
'class'
|
|
30
|
+
]);
|
|
31
|
+
const resolvedChildren = children(()=>local.children);
|
|
32
|
+
return <Switch.Control data-slot="switch-control" class={cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary motion-reduce:transition-none", local.class)} {...others}>
|
|
33
|
+
{resolvedChildren() ?? <SwitchThumb/>}
|
|
34
|
+
</Switch.Control>;
|
|
35
|
+
}
|
|
36
|
+
function SwitchThumb(props) {
|
|
37
|
+
const [local, others] = splitProps(props, [
|
|
38
|
+
'class'
|
|
39
|
+
]);
|
|
40
|
+
return <Switch.Thumb data-slot="switch-thumb" class={cn('inline-flex size-5 translate-x-0 items-center justify-center rounded-full border-transparent bg-background text-muted shadow-sm transition-[translate,background-color,color] duration-200 ease-in-out group-data-[size=lg]/switch:size-control-xs group-data-[size=sm]/switch:size-4 group-data-[size=xl]/switch:size-7 group-data-[size=xs]/switch:size-3 data-[state=checked]:translate-x-[18px] data-[state=checked]:bg-primary-foreground data-[state=checked]:text-primary group-data-[size=lg]/switch:data-[state=checked]:translate-x-[22px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=xl]/switch:data-[state=checked]:translate-x-[26px] group-data-[size=xs]/switch:data-[state=checked]:translate-x-[10px] motion-reduce:transition-none rtl:data-[state=checked]:-translate-x-[18px] group-data-[size=lg]/switch:rtl:data-[state=checked]:-translate-x-[22px] group-data-[size=sm]/switch:rtl:data-[state=checked]:-translate-x-[14px] group-data-[size=xl]/switch:rtl:data-[state=checked]:-translate-x-[26px] group-data-[size=xs]/switch:rtl:data-[state=checked]:-translate-x-[10px] [&>svg]:block [&>svg]:size-[65%] [&>svg]:shrink-0', local.class)} {...others}/>;
|
|
41
|
+
}
|
|
42
|
+
function SwitchLabel(props) {
|
|
43
|
+
const [local, others] = splitProps(props, [
|
|
44
|
+
'class'
|
|
45
|
+
]);
|
|
46
|
+
return <Switch.Label data-slot="switch-label" class={cn('text-sm leading-5 font-medium text-foreground select-none', local.class)} {...others}/>;
|
|
47
|
+
}
|
|
48
|
+
const Switch_Switch = Object.assign(SwitchRoot, {
|
|
49
|
+
Root: SwitchRoot,
|
|
50
|
+
RootProvider: SwitchRootProvider,
|
|
51
|
+
HiddenInput: Switch.HiddenInput,
|
|
52
|
+
Control: SwitchControl,
|
|
53
|
+
Thumb: SwitchThumb,
|
|
54
|
+
Label: SwitchLabel,
|
|
55
|
+
Context: SwitchContext
|
|
56
|
+
});
|
|
57
|
+
export { Switch_Switch as Switch, useSwitch, useSwitchContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Switch.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Switch.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Switch.jsx";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
type TableDataProps = {
|
|
3
|
+
'data-scope'?: string;
|
|
4
|
+
'data-part'?: string;
|
|
5
|
+
'data-slot'?: string;
|
|
6
|
+
};
|
|
7
|
+
type TableRootProps = HTMLArkProps<'table'> & TableDataProps & {
|
|
8
|
+
interactive?: boolean;
|
|
9
|
+
showColumnBorder?: boolean;
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
stickyHeader?: boolean;
|
|
12
|
+
striped?: boolean;
|
|
13
|
+
variant?: 'line' | 'outline';
|
|
14
|
+
'data-interactive'?: string | boolean;
|
|
15
|
+
'data-show-column-border'?: string | boolean;
|
|
16
|
+
'data-size'?: string;
|
|
17
|
+
'data-sticky-header'?: string | boolean;
|
|
18
|
+
'data-striped'?: string | boolean;
|
|
19
|
+
'data-variant'?: string;
|
|
20
|
+
};
|
|
21
|
+
type TableScrollAreaProps = HTMLArkProps<'div'> & TableDataProps;
|
|
22
|
+
type TableCaptionProps = HTMLArkProps<'caption'> & TableDataProps & {
|
|
23
|
+
side?: 'top' | 'bottom';
|
|
24
|
+
'data-side'?: string;
|
|
25
|
+
};
|
|
26
|
+
type TableColumnGroupProps = HTMLArkProps<'colgroup'> & TableDataProps;
|
|
27
|
+
type TableColumnProps = HTMLArkProps<'col'> & TableDataProps & {
|
|
28
|
+
htmlWidth?: string | number;
|
|
29
|
+
};
|
|
30
|
+
type TableHeaderProps = HTMLArkProps<'thead'> & TableDataProps;
|
|
31
|
+
type TableBodyProps = HTMLArkProps<'tbody'> & TableDataProps;
|
|
32
|
+
type TableFooterProps = HTMLArkProps<'tfoot'> & TableDataProps;
|
|
33
|
+
type TableRowProps = HTMLArkProps<'tr'> & TableDataProps;
|
|
34
|
+
type TableColumnHeaderProps = HTMLArkProps<'th'> & TableDataProps & {
|
|
35
|
+
numeric?: boolean;
|
|
36
|
+
'data-numeric'?: string | boolean;
|
|
37
|
+
};
|
|
38
|
+
type TableCellProps = HTMLArkProps<'td'> & TableDataProps & {
|
|
39
|
+
numeric?: boolean;
|
|
40
|
+
'data-numeric'?: string | boolean;
|
|
41
|
+
};
|
|
42
|
+
type TableEmptyProps = HTMLArkProps<'td'> & TableDataProps & {
|
|
43
|
+
colSpan: number;
|
|
44
|
+
};
|
|
45
|
+
declare function TableRoot(props: TableRootProps): import("solid-js").JSX.Element;
|
|
46
|
+
declare function TableScrollArea(props: TableScrollAreaProps): import("solid-js").JSX.Element;
|
|
47
|
+
declare function TableCaption(props: TableCaptionProps): import("solid-js").JSX.Element;
|
|
48
|
+
declare function TableColumnGroup(props: TableColumnGroupProps): import("solid-js").JSX.Element;
|
|
49
|
+
declare function TableColumn(props: TableColumnProps): import("solid-js").JSX.Element;
|
|
50
|
+
declare function TableHeader(props: TableHeaderProps): import("solid-js").JSX.Element;
|
|
51
|
+
declare function TableBody(props: TableBodyProps): import("solid-js").JSX.Element;
|
|
52
|
+
declare function TableFooter(props: TableFooterProps): import("solid-js").JSX.Element;
|
|
53
|
+
declare function TableRow(props: TableRowProps): import("solid-js").JSX.Element;
|
|
54
|
+
declare function TableColumnHeader(props: TableColumnHeaderProps): import("solid-js").JSX.Element;
|
|
55
|
+
declare function TableCell(props: TableCellProps): import("solid-js").JSX.Element;
|
|
56
|
+
declare function TableEmpty(props: TableEmptyProps): import("solid-js").JSX.Element;
|
|
57
|
+
declare const Table: typeof TableRoot & {
|
|
58
|
+
Root: typeof TableRoot;
|
|
59
|
+
ScrollArea: typeof TableScrollArea;
|
|
60
|
+
Caption: typeof TableCaption;
|
|
61
|
+
ColumnGroup: typeof TableColumnGroup;
|
|
62
|
+
Column: typeof TableColumn;
|
|
63
|
+
Header: typeof TableHeader;
|
|
64
|
+
Body: typeof TableBody;
|
|
65
|
+
Footer: typeof TableFooter;
|
|
66
|
+
Row: typeof TableRow;
|
|
67
|
+
ColumnHeader: typeof TableColumnHeader;
|
|
68
|
+
Cell: typeof TableCell;
|
|
69
|
+
Empty: typeof TableEmpty;
|
|
70
|
+
};
|
|
71
|
+
export { Table };
|
|
@@ -0,0 +1,363 @@
|
|
|
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 { children, splitProps } from "solid-js";
|
|
5
|
+
import { cn } from "../../internal/cn.js";
|
|
6
|
+
const tableVariants = cva('group/table isolate w-full border-collapse border-spacing-0 text-left text-foreground', {
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
sm: 'text-xs leading-4',
|
|
10
|
+
md: 'text-sm leading-5',
|
|
11
|
+
lg: 'text-md leading-6'
|
|
12
|
+
},
|
|
13
|
+
variant: {
|
|
14
|
+
line: '',
|
|
15
|
+
outline: 'border border-border'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: 'md',
|
|
20
|
+
variant: 'line'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function TableRoot(props) {
|
|
24
|
+
const [local, others] = splitProps(props, [
|
|
25
|
+
'asChild',
|
|
26
|
+
'class',
|
|
27
|
+
'data-interactive',
|
|
28
|
+
'data-part',
|
|
29
|
+
'data-scope',
|
|
30
|
+
'data-show-column-border',
|
|
31
|
+
'data-size',
|
|
32
|
+
'data-slot',
|
|
33
|
+
'data-sticky-header',
|
|
34
|
+
'data-striped',
|
|
35
|
+
'data-variant',
|
|
36
|
+
'interactive',
|
|
37
|
+
'showColumnBorder',
|
|
38
|
+
'size',
|
|
39
|
+
'stickyHeader',
|
|
40
|
+
'striped',
|
|
41
|
+
'variant'
|
|
42
|
+
]);
|
|
43
|
+
const size = ()=>local.size ?? 'md';
|
|
44
|
+
const variant = ()=>local.variant ?? 'line';
|
|
45
|
+
return createComponent(ark.table, mergeProps({
|
|
46
|
+
get asChild () {
|
|
47
|
+
return local.asChild;
|
|
48
|
+
}
|
|
49
|
+
}, others, {
|
|
50
|
+
"data-scope": "table",
|
|
51
|
+
"data-part": "root",
|
|
52
|
+
"data-slot": "table-root",
|
|
53
|
+
get ["data-interactive"] () {
|
|
54
|
+
return local.interactive || void 0;
|
|
55
|
+
},
|
|
56
|
+
get ["data-show-column-border"] () {
|
|
57
|
+
return local.showColumnBorder || void 0;
|
|
58
|
+
},
|
|
59
|
+
get ["data-size"] () {
|
|
60
|
+
return size();
|
|
61
|
+
},
|
|
62
|
+
get ["data-sticky-header"] () {
|
|
63
|
+
return local.stickyHeader || void 0;
|
|
64
|
+
},
|
|
65
|
+
get ["data-striped"] () {
|
|
66
|
+
return local.striped || void 0;
|
|
67
|
+
},
|
|
68
|
+
get ["data-variant"] () {
|
|
69
|
+
return variant();
|
|
70
|
+
},
|
|
71
|
+
get ["class"] () {
|
|
72
|
+
return cn(tableVariants({
|
|
73
|
+
size: size(),
|
|
74
|
+
variant: variant()
|
|
75
|
+
}), local.class);
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
function TableScrollArea(props) {
|
|
80
|
+
const [local, others] = splitProps(props, [
|
|
81
|
+
'asChild',
|
|
82
|
+
'class',
|
|
83
|
+
'data-part',
|
|
84
|
+
'data-scope',
|
|
85
|
+
'data-slot'
|
|
86
|
+
]);
|
|
87
|
+
return createComponent(ark.div, mergeProps({
|
|
88
|
+
get asChild () {
|
|
89
|
+
return local.asChild;
|
|
90
|
+
}
|
|
91
|
+
}, others, {
|
|
92
|
+
"data-scope": "table",
|
|
93
|
+
"data-part": "scroll-area",
|
|
94
|
+
"data-slot": "table-scroll-area",
|
|
95
|
+
get ["class"] () {
|
|
96
|
+
return cn('relative isolate w-full min-w-0 overflow-x-auto rounded-lg border border-border bg-card', local.class);
|
|
97
|
+
}
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
function TableCaption(props) {
|
|
101
|
+
const [local, others] = splitProps(props, [
|
|
102
|
+
'asChild',
|
|
103
|
+
'class',
|
|
104
|
+
'data-part',
|
|
105
|
+
'data-scope',
|
|
106
|
+
'data-side',
|
|
107
|
+
'data-slot',
|
|
108
|
+
'side'
|
|
109
|
+
]);
|
|
110
|
+
const side = ()=>local.side ?? 'bottom';
|
|
111
|
+
return createComponent(ark.caption, mergeProps({
|
|
112
|
+
get asChild () {
|
|
113
|
+
return local.asChild;
|
|
114
|
+
}
|
|
115
|
+
}, others, {
|
|
116
|
+
"data-scope": "table",
|
|
117
|
+
"data-part": "caption",
|
|
118
|
+
get ["data-side"] () {
|
|
119
|
+
return side();
|
|
120
|
+
},
|
|
121
|
+
"data-slot": "table-caption",
|
|
122
|
+
get ["class"] () {
|
|
123
|
+
return cn('px-4 text-left text-sm leading-5 text-pretty text-muted-foreground group-data-[size=lg]/table:px-5 group-data-[size=sm]/table:px-3 data-[side=bottom]:caption-bottom data-[side=bottom]:pt-3 data-[side=bottom]:pb-2 data-[side=top]:caption-top data-[side=top]:pt-2 data-[side=top]:pb-3', local.class);
|
|
124
|
+
}
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
function TableColumnGroup(props) {
|
|
128
|
+
const [local, others] = splitProps(props, [
|
|
129
|
+
'asChild',
|
|
130
|
+
'class',
|
|
131
|
+
'data-part',
|
|
132
|
+
'data-scope',
|
|
133
|
+
'data-slot'
|
|
134
|
+
]);
|
|
135
|
+
return createComponent(ark.colgroup, mergeProps({
|
|
136
|
+
get asChild () {
|
|
137
|
+
return local.asChild;
|
|
138
|
+
}
|
|
139
|
+
}, others, {
|
|
140
|
+
"data-scope": "table",
|
|
141
|
+
"data-part": "column-group",
|
|
142
|
+
"data-slot": "table-column-group",
|
|
143
|
+
get ["class"] () {
|
|
144
|
+
return local.class;
|
|
145
|
+
}
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
function TableColumn(props) {
|
|
149
|
+
const [local, others] = splitProps(props, [
|
|
150
|
+
'asChild',
|
|
151
|
+
'class',
|
|
152
|
+
'data-part',
|
|
153
|
+
'data-scope',
|
|
154
|
+
'data-slot',
|
|
155
|
+
'htmlWidth',
|
|
156
|
+
'width'
|
|
157
|
+
]);
|
|
158
|
+
return createComponent(ark.col, mergeProps({
|
|
159
|
+
get asChild () {
|
|
160
|
+
return local.asChild;
|
|
161
|
+
}
|
|
162
|
+
}, others, {
|
|
163
|
+
"data-scope": "table",
|
|
164
|
+
"data-part": "column",
|
|
165
|
+
"data-slot": "table-column",
|
|
166
|
+
get width () {
|
|
167
|
+
return local.htmlWidth ?? local.width;
|
|
168
|
+
},
|
|
169
|
+
get ["class"] () {
|
|
170
|
+
return local.class;
|
|
171
|
+
}
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
function TableHeader(props) {
|
|
175
|
+
const [local, others] = splitProps(props, [
|
|
176
|
+
'asChild',
|
|
177
|
+
'class',
|
|
178
|
+
'data-part',
|
|
179
|
+
'data-scope',
|
|
180
|
+
'data-slot'
|
|
181
|
+
]);
|
|
182
|
+
return createComponent(ark.thead, mergeProps({
|
|
183
|
+
get asChild () {
|
|
184
|
+
return local.asChild;
|
|
185
|
+
}
|
|
186
|
+
}, others, {
|
|
187
|
+
"data-scope": "table",
|
|
188
|
+
"data-part": "header",
|
|
189
|
+
"data-slot": "table-header",
|
|
190
|
+
get ["class"] () {
|
|
191
|
+
return cn('group/table-header group-data-[sticky-header]/table:sticky group-data-[sticky-header]/table:top-0 group-data-[sticky-header]/table:z-3 group-data-[sticky-header]/table:bg-card', local.class);
|
|
192
|
+
}
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
function TableBody(props) {
|
|
196
|
+
const [local, others] = splitProps(props, [
|
|
197
|
+
'asChild',
|
|
198
|
+
'class',
|
|
199
|
+
'data-part',
|
|
200
|
+
'data-scope',
|
|
201
|
+
'data-slot'
|
|
202
|
+
]);
|
|
203
|
+
return createComponent(ark.tbody, mergeProps({
|
|
204
|
+
get asChild () {
|
|
205
|
+
return local.asChild;
|
|
206
|
+
}
|
|
207
|
+
}, others, {
|
|
208
|
+
"data-scope": "table",
|
|
209
|
+
"data-part": "body",
|
|
210
|
+
"data-slot": "table-body",
|
|
211
|
+
get ["class"] () {
|
|
212
|
+
return cn('group/table-body', local.class);
|
|
213
|
+
}
|
|
214
|
+
}));
|
|
215
|
+
}
|
|
216
|
+
function TableFooter(props) {
|
|
217
|
+
const [local, others] = splitProps(props, [
|
|
218
|
+
'asChild',
|
|
219
|
+
'class',
|
|
220
|
+
'data-part',
|
|
221
|
+
'data-scope',
|
|
222
|
+
'data-slot'
|
|
223
|
+
]);
|
|
224
|
+
return createComponent(ark.tfoot, mergeProps({
|
|
225
|
+
get asChild () {
|
|
226
|
+
return local.asChild;
|
|
227
|
+
}
|
|
228
|
+
}, others, {
|
|
229
|
+
"data-scope": "table",
|
|
230
|
+
"data-part": "footer",
|
|
231
|
+
"data-slot": "table-footer",
|
|
232
|
+
get ["class"] () {
|
|
233
|
+
return cn('border-t border-border bg-muted font-medium', local.class);
|
|
234
|
+
}
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
function TableRow(props) {
|
|
238
|
+
const [local, others] = splitProps(props, [
|
|
239
|
+
'asChild',
|
|
240
|
+
'class',
|
|
241
|
+
'data-part',
|
|
242
|
+
'data-scope',
|
|
243
|
+
'data-slot'
|
|
244
|
+
]);
|
|
245
|
+
return createComponent(ark.tr, mergeProps({
|
|
246
|
+
get asChild () {
|
|
247
|
+
return local.asChild;
|
|
248
|
+
}
|
|
249
|
+
}, others, {
|
|
250
|
+
"data-scope": "table",
|
|
251
|
+
"data-part": "row",
|
|
252
|
+
"data-slot": "table-row",
|
|
253
|
+
get ["class"] () {
|
|
254
|
+
return cn('transition-colors duration-200 ease-in-out group-data-[slot=table-body]/table-body:border-b group-data-[slot=table-body]/table-body:border-border group-data-[slot=table-header]/table-header:border-b group-data-[slot=table-header]/table-header:border-border group-data-[slot=table-body]/table-body:last:border-b-0 group-data-[interactive]/table:group-data-[slot=table-body]/table-body:[&:not([data-empty])]:focus-within:bg-muted group-data-[interactive]/table:group-data-[slot=table-body]/table-body:[&:not([data-empty])]:hover:bg-muted group-data-[striped]/table:[&:nth-child(even):not([data-empty])]:bg-muted/35', local.class);
|
|
255
|
+
}
|
|
256
|
+
}));
|
|
257
|
+
}
|
|
258
|
+
function TableColumnHeader(props) {
|
|
259
|
+
const [local, others] = splitProps(props, [
|
|
260
|
+
'asChild',
|
|
261
|
+
'class',
|
|
262
|
+
'data-numeric',
|
|
263
|
+
'data-part',
|
|
264
|
+
'data-scope',
|
|
265
|
+
'data-slot',
|
|
266
|
+
'numeric'
|
|
267
|
+
]);
|
|
268
|
+
return createComponent(ark.th, mergeProps({
|
|
269
|
+
get asChild () {
|
|
270
|
+
return local.asChild;
|
|
271
|
+
}
|
|
272
|
+
}, others, {
|
|
273
|
+
"data-scope": "table",
|
|
274
|
+
"data-part": "column-header",
|
|
275
|
+
get ["data-numeric"] () {
|
|
276
|
+
return local.numeric || void 0;
|
|
277
|
+
},
|
|
278
|
+
"data-slot": "table-column-header",
|
|
279
|
+
get ["class"] () {
|
|
280
|
+
return cn('relative z-0 px-4 py-3 align-middle font-medium whitespace-nowrap text-muted-foreground group-data-[size=lg]/table:px-5 group-data-[size=lg]/table:py-4 group-data-[size=sm]/table:px-3 group-data-[size=sm]/table:py-2 group-data-[sticky-header]/table:data-[sticky]:z-4 data-[sticky=end]:sticky data-[sticky=end]:end-0 data-[sticky=end]:z-2 data-[sticky=end]:bg-card data-[sticky=start]:sticky data-[sticky=start]:start-0 data-[sticky=start]:z-2 data-[sticky=start]:bg-card group-data-[show-column-border]/table:[&:not(:last-child)]:border-e group-data-[show-column-border]/table:[&:not(:last-child)]:border-border', local.numeric && 'text-end tabular-nums', local.class);
|
|
281
|
+
}
|
|
282
|
+
}));
|
|
283
|
+
}
|
|
284
|
+
function TableCell(props) {
|
|
285
|
+
const [local, others] = splitProps(props, [
|
|
286
|
+
'asChild',
|
|
287
|
+
'class',
|
|
288
|
+
'data-numeric',
|
|
289
|
+
'data-part',
|
|
290
|
+
'data-scope',
|
|
291
|
+
'data-slot',
|
|
292
|
+
'numeric'
|
|
293
|
+
]);
|
|
294
|
+
return createComponent(ark.td, mergeProps({
|
|
295
|
+
get asChild () {
|
|
296
|
+
return local.asChild;
|
|
297
|
+
}
|
|
298
|
+
}, others, {
|
|
299
|
+
"data-scope": "table",
|
|
300
|
+
"data-part": "cell",
|
|
301
|
+
get ["data-numeric"] () {
|
|
302
|
+
return local.numeric || void 0;
|
|
303
|
+
},
|
|
304
|
+
"data-slot": "table-cell",
|
|
305
|
+
get ["class"] () {
|
|
306
|
+
return cn('relative z-0 px-4 py-3 align-middle group-data-[size=lg]/table:px-5 group-data-[size=lg]/table:py-4 group-data-[size=sm]/table:px-3 group-data-[size=sm]/table:py-2 data-[sticky=end]:sticky data-[sticky=end]:end-0 data-[sticky=end]:z-2 data-[sticky=end]:bg-card data-[sticky=start]:sticky data-[sticky=start]:start-0 data-[sticky=start]:z-2 data-[sticky=start]:bg-card group-data-[show-column-border]/table:[&:not(:last-child)]:border-e group-data-[show-column-border]/table:[&:not(:last-child)]:border-border', local.numeric && 'text-end tabular-nums', local.class);
|
|
307
|
+
}
|
|
308
|
+
}));
|
|
309
|
+
}
|
|
310
|
+
function TableEmpty(props) {
|
|
311
|
+
const [local, others] = splitProps(props, [
|
|
312
|
+
'asChild',
|
|
313
|
+
'children',
|
|
314
|
+
'class',
|
|
315
|
+
'colSpan',
|
|
316
|
+
'data-part',
|
|
317
|
+
'data-scope',
|
|
318
|
+
'data-slot'
|
|
319
|
+
]);
|
|
320
|
+
const resolvedChildren = children(()=>local.children);
|
|
321
|
+
return createComponent(ark.tr, {
|
|
322
|
+
"data-scope": "table",
|
|
323
|
+
"data-part": "row",
|
|
324
|
+
"data-empty": true,
|
|
325
|
+
"data-slot": "table-row",
|
|
326
|
+
class: "transition-colors duration-200 ease-in-out group-data-[slot=table-body]/table-body:border-b group-data-[slot=table-body]/table-body:border-border group-data-[slot=table-body]/table-body:last:border-b-0",
|
|
327
|
+
get children () {
|
|
328
|
+
return createComponent(ark.td, mergeProps({
|
|
329
|
+
get asChild () {
|
|
330
|
+
return local.asChild;
|
|
331
|
+
}
|
|
332
|
+
}, others, {
|
|
333
|
+
"data-scope": "table",
|
|
334
|
+
"data-part": "empty",
|
|
335
|
+
"data-slot": "table-empty",
|
|
336
|
+
get colSpan () {
|
|
337
|
+
return local.colSpan;
|
|
338
|
+
},
|
|
339
|
+
get ["class"] () {
|
|
340
|
+
return cn('relative z-0 px-4 py-3 align-middle group-data-[size=lg]/table:px-5 group-data-[size=lg]/table:py-4 group-data-[size=sm]/table:px-3 group-data-[size=sm]/table:py-2 data-[sticky=end]:sticky data-[sticky=end]:end-0 data-[sticky=end]:z-2 data-[sticky=end]:bg-card data-[sticky=start]:sticky data-[sticky=start]:start-0 data-[sticky=start]:z-2 data-[sticky=start]:bg-card group-data-[show-column-border]/table:[&:not(:last-child)]:border-e group-data-[show-column-border]/table:[&:not(:last-child)]:border-border', 'py-6 text-center text-muted-foreground group-data-[size=lg]/table:py-8 group-data-[size=sm]/table:py-4', local.class);
|
|
341
|
+
},
|
|
342
|
+
get children () {
|
|
343
|
+
return resolvedChildren() ?? 'No results.';
|
|
344
|
+
}
|
|
345
|
+
}));
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
const Table = Object.assign(TableRoot, {
|
|
350
|
+
Root: TableRoot,
|
|
351
|
+
ScrollArea: TableScrollArea,
|
|
352
|
+
Caption: TableCaption,
|
|
353
|
+
ColumnGroup: TableColumnGroup,
|
|
354
|
+
Column: TableColumn,
|
|
355
|
+
Header: TableHeader,
|
|
356
|
+
Body: TableBody,
|
|
357
|
+
Footer: TableFooter,
|
|
358
|
+
Row: TableRow,
|
|
359
|
+
ColumnHeader: TableColumnHeader,
|
|
360
|
+
Cell: TableCell,
|
|
361
|
+
Empty: TableEmpty
|
|
362
|
+
});
|
|
363
|
+
export { Table };
|