@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,46 @@
|
|
|
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 badgeVariants = cva('inline-flex min-h-5 w-fit max-w-full min-w-0 items-center justify-center gap-1.5 overflow-hidden rounded-full border px-2.5 align-middle font-medium text-xs tabular-nums whitespace-nowrap no-underline select-none transition-[color,background-color,border-color,opacity] duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-0.5 focus-visible:outline-ring motion-reduce:transition-none [&>svg]:pointer-events-none [&>svg]:size-3 [&>svg]:shrink-0 [a&]:cursor-pointer', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'border-transparent bg-primary text-primary-foreground [a&]:hover:opacity-90',
|
|
9
|
+
secondary: 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:opacity-90',
|
|
10
|
+
destructive: 'border-transparent bg-destructive text-destructive-foreground [a&]:hover:opacity-90',
|
|
11
|
+
outline: 'border-border bg-transparent text-foreground [a&]:hover:border-primary [a&]:hover:text-primary',
|
|
12
|
+
ghost: 'border-transparent bg-transparent text-foreground [a&]:hover:border-primary [a&]:hover:text-primary',
|
|
13
|
+
link: 'min-h-auto rounded-none border-transparent bg-transparent px-0 py-[0.125em] text-primary underline decoration-[color-mix(in_oklab,currentColor_55%,transparent)] underline-offset-[0.15em] [text-decoration-thickness:from-font] [a&]:hover:decoration-current'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
variant: 'default'
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
function BadgeLabel(props) {
|
|
21
|
+
const [local, others] = splitProps(props, [
|
|
22
|
+
'class'
|
|
23
|
+
]);
|
|
24
|
+
return <ark.span {...others} data-scope="badge" data-part="label" data-slot="badge-label" class={cn('min-w-0 overflow-hidden text-ellipsis', local.class)}/>;
|
|
25
|
+
}
|
|
26
|
+
function BadgeRoot(props) {
|
|
27
|
+
const [local, others] = splitProps(props, [
|
|
28
|
+
'class',
|
|
29
|
+
'variant'
|
|
30
|
+
]);
|
|
31
|
+
return <ark.span {...others} data-scope="badge" data-part="root" data-slot="badge-root" data-variant={local.variant ?? 'default'} class={cn(badgeVariants({
|
|
32
|
+
variant: local.variant
|
|
33
|
+
}), local.class)}/>;
|
|
34
|
+
}
|
|
35
|
+
function BadgeDot(props) {
|
|
36
|
+
const [local, others] = splitProps(props, [
|
|
37
|
+
'class'
|
|
38
|
+
]);
|
|
39
|
+
return <ark.span {...others} data-scope="badge" data-part="dot" data-slot="badge-dot" aria-hidden="true" class={cn('size-1.5 shrink-0 rounded-full bg-current', local.class)}/>;
|
|
40
|
+
}
|
|
41
|
+
const Badge = Object.assign(BadgeRoot, {
|
|
42
|
+
Root: BadgeRoot,
|
|
43
|
+
Label: BadgeLabel,
|
|
44
|
+
Dot: BadgeDot
|
|
45
|
+
});
|
|
46
|
+
export { Badge };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from './Badge.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from "./Badge.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from "./Badge.jsx";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
type BleedAmount = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
type BleedInline = BleedAmount | 'full';
|
|
4
|
+
type BleedRootProps = HTMLArkProps<'div'> & {
|
|
5
|
+
inline?: BleedInline;
|
|
6
|
+
block?: BleedAmount;
|
|
7
|
+
'data-scope'?: string;
|
|
8
|
+
'data-part'?: string;
|
|
9
|
+
'data-slot'?: string;
|
|
10
|
+
'data-inline'?: string;
|
|
11
|
+
'data-block'?: string;
|
|
12
|
+
};
|
|
13
|
+
declare function BleedRoot(props: BleedRootProps): import("solid-js").JSX.Element;
|
|
14
|
+
declare const Bleed: typeof BleedRoot & {
|
|
15
|
+
Root: typeof BleedRoot;
|
|
16
|
+
};
|
|
17
|
+
export { Bleed };
|
|
@@ -0,0 +1,68 @@
|
|
|
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 bleedVariants = cva('m-0 box-border', {
|
|
7
|
+
variants: {
|
|
8
|
+
inline: {
|
|
9
|
+
none: null,
|
|
10
|
+
xs: '-mx-1',
|
|
11
|
+
sm: '-mx-2',
|
|
12
|
+
md: '-mx-3',
|
|
13
|
+
lg: '-mx-4',
|
|
14
|
+
xl: '-mx-6',
|
|
15
|
+
full: 'mx-[calc(50%_-_50vi)] [inline-size:100vi]'
|
|
16
|
+
},
|
|
17
|
+
block: {
|
|
18
|
+
none: null,
|
|
19
|
+
xs: '-my-1',
|
|
20
|
+
sm: '-my-2',
|
|
21
|
+
md: '-my-3',
|
|
22
|
+
lg: '-my-4',
|
|
23
|
+
xl: '-my-6'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
inline: 'full',
|
|
28
|
+
block: 'none'
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
function BleedRoot(props) {
|
|
32
|
+
const [local, others] = splitProps(props, [
|
|
33
|
+
'asChild',
|
|
34
|
+
'block',
|
|
35
|
+
'class',
|
|
36
|
+
'inline',
|
|
37
|
+
'data-scope',
|
|
38
|
+
'data-part',
|
|
39
|
+
'data-slot',
|
|
40
|
+
'data-inline',
|
|
41
|
+
'data-block'
|
|
42
|
+
]);
|
|
43
|
+
return createComponent(ark.div, mergeProps({
|
|
44
|
+
get asChild () {
|
|
45
|
+
return local.asChild;
|
|
46
|
+
}
|
|
47
|
+
}, others, {
|
|
48
|
+
"data-scope": "bleed",
|
|
49
|
+
"data-part": "root",
|
|
50
|
+
"data-slot": "bleed-root",
|
|
51
|
+
get ["data-inline"] () {
|
|
52
|
+
return local.inline ?? 'full';
|
|
53
|
+
},
|
|
54
|
+
get ["data-block"] () {
|
|
55
|
+
return local.block ?? 'none';
|
|
56
|
+
},
|
|
57
|
+
get ["class"] () {
|
|
58
|
+
return cn(bleedVariants({
|
|
59
|
+
inline: local.inline,
|
|
60
|
+
block: local.block
|
|
61
|
+
}), local.class);
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
const Bleed = Object.assign(BleedRoot, {
|
|
66
|
+
Root: BleedRoot
|
|
67
|
+
});
|
|
68
|
+
export { Bleed };
|
|
@@ -0,0 +1,50 @@
|
|
|
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 bleedVariants = cva('m-0 box-border', {
|
|
6
|
+
variants: {
|
|
7
|
+
inline: {
|
|
8
|
+
none: null,
|
|
9
|
+
xs: '-mx-1',
|
|
10
|
+
sm: '-mx-2',
|
|
11
|
+
md: '-mx-3',
|
|
12
|
+
lg: '-mx-4',
|
|
13
|
+
xl: '-mx-6',
|
|
14
|
+
full: 'mx-[calc(50%_-_50vi)] [inline-size:100vi]'
|
|
15
|
+
},
|
|
16
|
+
block: {
|
|
17
|
+
none: null,
|
|
18
|
+
xs: '-my-1',
|
|
19
|
+
sm: '-my-2',
|
|
20
|
+
md: '-my-3',
|
|
21
|
+
lg: '-my-4',
|
|
22
|
+
xl: '-my-6'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
inline: 'full',
|
|
27
|
+
block: 'none'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
function BleedRoot(props) {
|
|
31
|
+
const [local, others] = splitProps(props, [
|
|
32
|
+
'asChild',
|
|
33
|
+
'block',
|
|
34
|
+
'class',
|
|
35
|
+
'inline',
|
|
36
|
+
'data-scope',
|
|
37
|
+
'data-part',
|
|
38
|
+
'data-slot',
|
|
39
|
+
'data-inline',
|
|
40
|
+
'data-block'
|
|
41
|
+
]);
|
|
42
|
+
return <ark.div asChild={local.asChild} {...others} data-scope="bleed" data-part="root" data-slot="bleed-root" data-inline={local.inline ?? 'full'} data-block={local.block ?? 'none'} class={cn(bleedVariants({
|
|
43
|
+
inline: local.inline,
|
|
44
|
+
block: local.block
|
|
45
|
+
}), local.class)}/>;
|
|
46
|
+
}
|
|
47
|
+
const Bleed = Object.assign(BleedRoot, {
|
|
48
|
+
Root: BleedRoot
|
|
49
|
+
});
|
|
50
|
+
export { Bleed };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Bleed.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Bleed.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Bleed.jsx";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
import type { JSX } from 'solid-js';
|
|
3
|
+
type BreadcrumbsPathItem = {
|
|
4
|
+
href?: string;
|
|
5
|
+
key?: string | number;
|
|
6
|
+
label: JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
type BreadcrumbsPathProps = Omit<HTMLArkProps<'ol'>, 'asChild' | 'children'> & {
|
|
9
|
+
items: readonly BreadcrumbsPathItem[];
|
|
10
|
+
separator?: JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
declare function BreadcrumbsRoot(props: HTMLArkProps<'nav'>): JSX.Element;
|
|
13
|
+
declare function BreadcrumbsList(props: HTMLArkProps<'ol'>): JSX.Element;
|
|
14
|
+
declare function BreadcrumbsItem(props: HTMLArkProps<'li'>): JSX.Element;
|
|
15
|
+
declare function BreadcrumbsLink(props: HTMLArkProps<'a'>): JSX.Element;
|
|
16
|
+
declare function BreadcrumbsPage(props: HTMLArkProps<'span'>): JSX.Element;
|
|
17
|
+
declare function BreadcrumbsPath(props: BreadcrumbsPathProps): JSX.Element;
|
|
18
|
+
declare function BreadcrumbsSeparator(props: HTMLArkProps<'li'>): JSX.Element;
|
|
19
|
+
declare function BreadcrumbsEllipsis(props: HTMLArkProps<'span'>): JSX.Element;
|
|
20
|
+
declare const Breadcrumbs: typeof BreadcrumbsRoot & {
|
|
21
|
+
Root: typeof BreadcrumbsRoot;
|
|
22
|
+
List: typeof BreadcrumbsList;
|
|
23
|
+
Item: typeof BreadcrumbsItem;
|
|
24
|
+
Link: typeof BreadcrumbsLink;
|
|
25
|
+
Path: typeof BreadcrumbsPath;
|
|
26
|
+
Page: typeof BreadcrumbsPage;
|
|
27
|
+
Separator: typeof BreadcrumbsSeparator;
|
|
28
|
+
Ellipsis: typeof BreadcrumbsEllipsis;
|
|
29
|
+
};
|
|
30
|
+
export { Breadcrumbs };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { For, children, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
import { ChevronRightIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
|
+
function BreadcrumbsRoot(props) {
|
|
7
|
+
const [local, others] = splitProps(props, [
|
|
8
|
+
'aria-label',
|
|
9
|
+
'class'
|
|
10
|
+
]);
|
|
11
|
+
return createComponent(ark.nav, mergeProps({
|
|
12
|
+
get ["aria-label"] () {
|
|
13
|
+
return memo(()=>void 0 === local['aria-label'])() ? 'Breadcrumb' : local['aria-label'];
|
|
14
|
+
}
|
|
15
|
+
}, others, {
|
|
16
|
+
"data-slot": "breadcrumbs-root",
|
|
17
|
+
get ["class"] () {
|
|
18
|
+
return cn('max-w-full text-sm text-muted-foreground', local.class);
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
function BreadcrumbsList(props) {
|
|
23
|
+
const [local, others] = splitProps(props, [
|
|
24
|
+
'class'
|
|
25
|
+
]);
|
|
26
|
+
return createComponent(ark.ol, mergeProps(others, {
|
|
27
|
+
"data-slot": "breadcrumbs-list",
|
|
28
|
+
get ["class"] () {
|
|
29
|
+
return cn("flex min-w-0 items-center gap-1 whitespace-nowrap [&>[data-slot='breadcrumbs-item']:last-child]:max-w-64 [&>[data-slot='breadcrumbs-item']:last-child]:flex-auto", local.class);
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
function BreadcrumbsItem(props) {
|
|
34
|
+
const [local, others] = splitProps(props, [
|
|
35
|
+
'class'
|
|
36
|
+
]);
|
|
37
|
+
return createComponent(ark.li, mergeProps(others, {
|
|
38
|
+
"data-slot": "breadcrumbs-item",
|
|
39
|
+
get ["class"] () {
|
|
40
|
+
return cn('inline-flex min-w-0 items-center', local.class);
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
function BreadcrumbsLink(props) {
|
|
45
|
+
const [local, others] = splitProps(props, [
|
|
46
|
+
'class'
|
|
47
|
+
]);
|
|
48
|
+
return createComponent(ark.a, mergeProps(others, {
|
|
49
|
+
"data-slot": "breadcrumbs-link",
|
|
50
|
+
get ["class"] () {
|
|
51
|
+
return cn('block max-w-full min-w-0 truncate rounded-sm px-1 text-muted-foreground no-underline underline-offset-[0.2em] transition-[color] duration-200 ease-in-out outline-none focus-visible:ring-1 focus-visible:ring-ring motion-reduce:transition-none [@media(hover:hover)]:hover:text-foreground', local.class);
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
function BreadcrumbsPage(props) {
|
|
56
|
+
const [local, others] = splitProps(props, [
|
|
57
|
+
'children',
|
|
58
|
+
'class'
|
|
59
|
+
]);
|
|
60
|
+
return createComponent(ark.span, mergeProps(others, {
|
|
61
|
+
"data-slot": "breadcrumbs-page",
|
|
62
|
+
"aria-current": "page",
|
|
63
|
+
get ["class"] () {
|
|
64
|
+
return cn('block max-w-full min-w-0 truncate px-1 font-medium text-foreground', local.class);
|
|
65
|
+
},
|
|
66
|
+
get children () {
|
|
67
|
+
return local.children;
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
function BreadcrumbsPath(props) {
|
|
72
|
+
const [local, others] = splitProps(props, [
|
|
73
|
+
'items',
|
|
74
|
+
'separator'
|
|
75
|
+
]);
|
|
76
|
+
return createComponent(BreadcrumbsList, mergeProps(others, {
|
|
77
|
+
get children () {
|
|
78
|
+
return createComponent(For, {
|
|
79
|
+
get each () {
|
|
80
|
+
return local.items;
|
|
81
|
+
},
|
|
82
|
+
children: (item, index)=>{
|
|
83
|
+
const isLastItem = ()=>index() === local.items.length - 1;
|
|
84
|
+
return [
|
|
85
|
+
createComponent(BreadcrumbsItem, {
|
|
86
|
+
get children () {
|
|
87
|
+
return memo(()=>!!isLastItem())() ? createComponent(BreadcrumbsPage, {
|
|
88
|
+
get children () {
|
|
89
|
+
return item.label;
|
|
90
|
+
}
|
|
91
|
+
}) : createComponent(BreadcrumbsLink, {
|
|
92
|
+
get href () {
|
|
93
|
+
return item.href;
|
|
94
|
+
},
|
|
95
|
+
get children () {
|
|
96
|
+
return item.label;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}),
|
|
101
|
+
memo(()=>memo(()=>!isLastItem())() ? createComponent(BreadcrumbsSeparator, {
|
|
102
|
+
get children () {
|
|
103
|
+
return local.separator;
|
|
104
|
+
}
|
|
105
|
+
}) : null)
|
|
106
|
+
];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
function BreadcrumbsSeparator(props) {
|
|
113
|
+
const [local, others] = splitProps(props, [
|
|
114
|
+
'children',
|
|
115
|
+
'class'
|
|
116
|
+
]);
|
|
117
|
+
const resolvedChildren = children(()=>local.children);
|
|
118
|
+
return createComponent(ark.li, mergeProps(others, {
|
|
119
|
+
"data-slot": "breadcrumbs-separator",
|
|
120
|
+
"aria-hidden": "true",
|
|
121
|
+
get ["class"] () {
|
|
122
|
+
return cn('inline-flex items-center text-[length:0.875em] leading-none text-muted-foreground select-none', local.class);
|
|
123
|
+
},
|
|
124
|
+
get children () {
|
|
125
|
+
return resolvedChildren() ?? createComponent(ChevronRightIcon, {
|
|
126
|
+
class: "size-[1em] flex-none rtl:rotate-180"
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
function BreadcrumbsEllipsis(props) {
|
|
132
|
+
const [local, others] = splitProps(props, [
|
|
133
|
+
'children',
|
|
134
|
+
'class'
|
|
135
|
+
]);
|
|
136
|
+
const resolvedChildren = children(()=>local.children);
|
|
137
|
+
return createComponent(ark.span, mergeProps(others, {
|
|
138
|
+
"data-slot": "breadcrumbs-ellipsis",
|
|
139
|
+
"aria-hidden": "true",
|
|
140
|
+
get ["class"] () {
|
|
141
|
+
return cn('inline-flex min-h-4 min-w-4 items-center justify-center overflow-hidden px-1 text-ellipsis text-muted-foreground', local.class);
|
|
142
|
+
},
|
|
143
|
+
get children () {
|
|
144
|
+
return memo(()=>void 0 === resolvedChildren())() ? '...' : resolvedChildren();
|
|
145
|
+
}
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
const Breadcrumbs = Object.assign(BreadcrumbsRoot, {
|
|
149
|
+
Root: BreadcrumbsRoot,
|
|
150
|
+
List: BreadcrumbsList,
|
|
151
|
+
Item: BreadcrumbsItem,
|
|
152
|
+
Link: BreadcrumbsLink,
|
|
153
|
+
Path: BreadcrumbsPath,
|
|
154
|
+
Page: BreadcrumbsPage,
|
|
155
|
+
Separator: BreadcrumbsSeparator,
|
|
156
|
+
Ellipsis: BreadcrumbsEllipsis
|
|
157
|
+
});
|
|
158
|
+
export { Breadcrumbs };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
2
|
+
import { For, children, splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
import { ChevronRightIcon } from "../../internal/icons/ui/Icons.jsx";
|
|
5
|
+
function BreadcrumbsRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'aria-label',
|
|
8
|
+
'class'
|
|
9
|
+
]);
|
|
10
|
+
return <ark.nav aria-label={void 0 === local['aria-label'] ? 'Breadcrumb' : local['aria-label']} {...others} data-slot="breadcrumbs-root" class={cn('max-w-full text-sm text-muted-foreground', local.class)}/>;
|
|
11
|
+
}
|
|
12
|
+
function BreadcrumbsList(props) {
|
|
13
|
+
const [local, others] = splitProps(props, [
|
|
14
|
+
'class'
|
|
15
|
+
]);
|
|
16
|
+
return <ark.ol {...others} data-slot="breadcrumbs-list" class={cn("flex min-w-0 items-center gap-1 whitespace-nowrap [&>[data-slot='breadcrumbs-item']:last-child]:max-w-64 [&>[data-slot='breadcrumbs-item']:last-child]:flex-auto", local.class)}/>;
|
|
17
|
+
}
|
|
18
|
+
function BreadcrumbsItem(props) {
|
|
19
|
+
const [local, others] = splitProps(props, [
|
|
20
|
+
'class'
|
|
21
|
+
]);
|
|
22
|
+
return <ark.li {...others} data-slot="breadcrumbs-item" class={cn('inline-flex min-w-0 items-center', local.class)}/>;
|
|
23
|
+
}
|
|
24
|
+
function BreadcrumbsLink(props) {
|
|
25
|
+
const [local, others] = splitProps(props, [
|
|
26
|
+
'class'
|
|
27
|
+
]);
|
|
28
|
+
return <ark.a {...others} data-slot="breadcrumbs-link" class={cn('block max-w-full min-w-0 truncate rounded-sm px-1 text-muted-foreground no-underline underline-offset-[0.2em] transition-[color] duration-200 ease-in-out outline-none focus-visible:ring-1 focus-visible:ring-ring motion-reduce:transition-none [@media(hover:hover)]:hover:text-foreground', local.class)}/>;
|
|
29
|
+
}
|
|
30
|
+
function BreadcrumbsPage(props) {
|
|
31
|
+
const [local, others] = splitProps(props, [
|
|
32
|
+
'children',
|
|
33
|
+
'class'
|
|
34
|
+
]);
|
|
35
|
+
return <ark.span {...others} data-slot="breadcrumbs-page" aria-current="page" class={cn('block max-w-full min-w-0 truncate px-1 font-medium text-foreground', local.class)}>
|
|
36
|
+
{local.children}
|
|
37
|
+
</ark.span>;
|
|
38
|
+
}
|
|
39
|
+
function BreadcrumbsPath(props) {
|
|
40
|
+
const [local, others] = splitProps(props, [
|
|
41
|
+
'items',
|
|
42
|
+
'separator'
|
|
43
|
+
]);
|
|
44
|
+
return <BreadcrumbsList {...others}>
|
|
45
|
+
<For each={local.items}>
|
|
46
|
+
{(item, index)=>{
|
|
47
|
+
const isLastItem = ()=>index() === local.items.length - 1;
|
|
48
|
+
return <>
|
|
49
|
+
<BreadcrumbsItem>
|
|
50
|
+
{isLastItem() ? <BreadcrumbsPage>{item.label}</BreadcrumbsPage> : <BreadcrumbsLink href={item.href}>{item.label}</BreadcrumbsLink>}
|
|
51
|
+
</BreadcrumbsItem>
|
|
52
|
+
{!isLastItem() ? <BreadcrumbsSeparator>{local.separator}</BreadcrumbsSeparator> : null}
|
|
53
|
+
</>;
|
|
54
|
+
}}
|
|
55
|
+
</For>
|
|
56
|
+
</BreadcrumbsList>;
|
|
57
|
+
}
|
|
58
|
+
function BreadcrumbsSeparator(props) {
|
|
59
|
+
const [local, others] = splitProps(props, [
|
|
60
|
+
'children',
|
|
61
|
+
'class'
|
|
62
|
+
]);
|
|
63
|
+
const resolvedChildren = children(()=>local.children);
|
|
64
|
+
return <ark.li {...others} data-slot="breadcrumbs-separator" aria-hidden="true" class={cn('inline-flex items-center text-[length:0.875em] leading-none text-muted-foreground select-none', local.class)}>
|
|
65
|
+
{resolvedChildren() ?? <ChevronRightIcon class="size-[1em] flex-none rtl:rotate-180"/>}
|
|
66
|
+
</ark.li>;
|
|
67
|
+
}
|
|
68
|
+
function BreadcrumbsEllipsis(props) {
|
|
69
|
+
const [local, others] = splitProps(props, [
|
|
70
|
+
'children',
|
|
71
|
+
'class'
|
|
72
|
+
]);
|
|
73
|
+
const resolvedChildren = children(()=>local.children);
|
|
74
|
+
return <ark.span {...others} data-slot="breadcrumbs-ellipsis" aria-hidden="true" class={cn('inline-flex min-h-4 min-w-4 items-center justify-center overflow-hidden px-1 text-ellipsis text-muted-foreground', local.class)}>
|
|
75
|
+
{void 0 === resolvedChildren() ? '...' : resolvedChildren()}
|
|
76
|
+
</ark.span>;
|
|
77
|
+
}
|
|
78
|
+
const Breadcrumbs = Object.assign(BreadcrumbsRoot, {
|
|
79
|
+
Root: BreadcrumbsRoot,
|
|
80
|
+
List: BreadcrumbsList,
|
|
81
|
+
Item: BreadcrumbsItem,
|
|
82
|
+
Link: BreadcrumbsLink,
|
|
83
|
+
Path: BreadcrumbsPath,
|
|
84
|
+
Page: BreadcrumbsPage,
|
|
85
|
+
Separator: BreadcrumbsSeparator,
|
|
86
|
+
Ellipsis: BreadcrumbsEllipsis
|
|
87
|
+
});
|
|
88
|
+
export { Breadcrumbs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Breadcrumbs } from './Breadcrumbs.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Breadcrumbs } from "./Breadcrumbs.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Breadcrumbs } from "./Breadcrumbs.jsx";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HTMLArkProps } from '@ark-ui/solid/factory';
|
|
2
|
+
import type { JSX } from 'solid-js';
|
|
3
|
+
type ButtonRootProps = HTMLArkProps<'button'> & {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
variant?: 'default' | 'outline' | 'secondary' | 'destructive' | 'destructive-outline' | 'ghost' | 'link';
|
|
6
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'icon-sm' | 'icon-md' | 'icon-lg';
|
|
7
|
+
'data-scope'?: string;
|
|
8
|
+
'data-part'?: string;
|
|
9
|
+
'data-slot'?: string;
|
|
10
|
+
onClickCapture?: (event: MouseEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
declare function ButtonRoot(props: ButtonRootProps): JSX.Element;
|
|
13
|
+
declare const Button: typeof ButtonRoot & {
|
|
14
|
+
Root: typeof ButtonRoot;
|
|
15
|
+
};
|
|
16
|
+
export { Button };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
2
|
+
import { useFocusVisible } from "@ark-ui/solid";
|
|
3
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { splitProps } from "solid-js";
|
|
6
|
+
import { cn } from "../../internal/cn.js";
|
|
7
|
+
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", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: 'border-primary bg-primary text-primary-foreground hover:bg-[color-mix(in_srgb,var(--color-primary)_88%,black)]',
|
|
11
|
+
outline: 'border-border bg-background text-foreground hover:bg-accent',
|
|
12
|
+
secondary: 'border-secondary bg-secondary text-secondary-foreground hover:bg-accent',
|
|
13
|
+
destructive: 'border-destructive bg-destructive text-destructive-foreground hover:brightness-[0.96]',
|
|
14
|
+
'destructive-outline': 'border-destructive bg-background text-destructive hover:bg-destructive hover:text-destructive-foreground',
|
|
15
|
+
ghost: 'border-transparent bg-transparent text-foreground hover:bg-accent',
|
|
16
|
+
link: 'border-transparent bg-transparent text-primary underline underline-offset-[0.25em] hover:text-foreground'
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
xs: 'min-h-control-xs px-2.5 py-0.5 text-xs',
|
|
20
|
+
sm: 'min-h-control-sm px-3 py-1 text-sm',
|
|
21
|
+
md: 'min-h-control-md px-4 py-1 text-sm',
|
|
22
|
+
lg: 'min-h-control-lg px-5 py-1.5 text-md',
|
|
23
|
+
xl: 'min-h-control-xl px-6 py-2 text-lg',
|
|
24
|
+
'icon-sm': 'size-control-sm min-w-control-sm gap-0 p-0',
|
|
25
|
+
'icon-md': 'size-control-md min-w-control-md gap-0 p-0',
|
|
26
|
+
'icon-lg': 'size-control-lg min-w-control-lg gap-0 p-0'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
compoundVariants: [
|
|
30
|
+
{
|
|
31
|
+
variant: 'link',
|
|
32
|
+
class: 'min-h-0 py-0'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
variant: 'default',
|
|
37
|
+
size: 'md'
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const ArkButton = ark.button;
|
|
41
|
+
function ButtonRoot(props) {
|
|
42
|
+
const focusVisible = useFocusVisible();
|
|
43
|
+
const [local, others] = splitProps(props, [
|
|
44
|
+
'asChild',
|
|
45
|
+
'class',
|
|
46
|
+
'disabled',
|
|
47
|
+
'loading',
|
|
48
|
+
'onClick',
|
|
49
|
+
'onClickCapture',
|
|
50
|
+
'size',
|
|
51
|
+
'type',
|
|
52
|
+
'data-scope',
|
|
53
|
+
'data-part',
|
|
54
|
+
'data-slot',
|
|
55
|
+
'variant',
|
|
56
|
+
'aria-busy',
|
|
57
|
+
'aria-disabled'
|
|
58
|
+
]);
|
|
59
|
+
const isDisabled = ()=>local.disabled || local.loading || true === local['aria-disabled'] || 'true' === local['aria-disabled'];
|
|
60
|
+
const handleClickCapture = (event)=>{
|
|
61
|
+
if (isDisabled()) {
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
event.stopPropagation();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
local.onClickCapture?.(event);
|
|
67
|
+
};
|
|
68
|
+
return createComponent(ArkButton, mergeProps({
|
|
69
|
+
get asChild () {
|
|
70
|
+
return local.asChild;
|
|
71
|
+
}
|
|
72
|
+
}, others, {
|
|
73
|
+
get type () {
|
|
74
|
+
return memo(()=>!!local.asChild)() ? local.type : local.type ?? 'button';
|
|
75
|
+
},
|
|
76
|
+
get disabled () {
|
|
77
|
+
return memo(()=>!!local.asChild)() ? void 0 : isDisabled();
|
|
78
|
+
},
|
|
79
|
+
get ["aria-busy"] () {
|
|
80
|
+
return memo(()=>!!local.loading)() ? true : local['aria-busy'];
|
|
81
|
+
},
|
|
82
|
+
get ["aria-disabled"] () {
|
|
83
|
+
return memo(()=>!!isDisabled())() ? true : local['aria-disabled'];
|
|
84
|
+
},
|
|
85
|
+
"oncapture:click": handleClickCapture,
|
|
86
|
+
get onClick () {
|
|
87
|
+
return local.onClick;
|
|
88
|
+
},
|
|
89
|
+
get ["data-scope"] () {
|
|
90
|
+
return local['data-scope'] ?? 'button';
|
|
91
|
+
},
|
|
92
|
+
get ["data-part"] () {
|
|
93
|
+
return local['data-part'] ?? 'root';
|
|
94
|
+
},
|
|
95
|
+
get ["data-slot"] () {
|
|
96
|
+
return local['data-slot'] ?? 'button-root';
|
|
97
|
+
},
|
|
98
|
+
get ["data-variant"] () {
|
|
99
|
+
return local.variant ?? 'default';
|
|
100
|
+
},
|
|
101
|
+
get ["data-size"] () {
|
|
102
|
+
return local.size ?? 'md';
|
|
103
|
+
},
|
|
104
|
+
get ["data-disabled"] () {
|
|
105
|
+
return isDisabled() ? '' : void 0;
|
|
106
|
+
},
|
|
107
|
+
get ["data-focus-visible"] () {
|
|
108
|
+
return focusVisible() ? '' : void 0;
|
|
109
|
+
},
|
|
110
|
+
get ["data-loading"] () {
|
|
111
|
+
return local.loading ? '' : void 0;
|
|
112
|
+
},
|
|
113
|
+
get ["class"] () {
|
|
114
|
+
return cn(buttonVariants({
|
|
115
|
+
variant: local.variant,
|
|
116
|
+
size: local.size
|
|
117
|
+
}), local.class);
|
|
118
|
+
}
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
const Button = Object.assign(ButtonRoot, {
|
|
122
|
+
Root: ButtonRoot
|
|
123
|
+
});
|
|
124
|
+
export { Button };
|