@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,121 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
function EmptyRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'asChild',
|
|
8
|
+
'class'
|
|
9
|
+
]);
|
|
10
|
+
return createComponent(ark.div, mergeProps({
|
|
11
|
+
get asChild () {
|
|
12
|
+
return local.asChild;
|
|
13
|
+
}
|
|
14
|
+
}, others, {
|
|
15
|
+
"data-scope": "empty",
|
|
16
|
+
"data-part": "root",
|
|
17
|
+
"data-slot": "empty-root",
|
|
18
|
+
get ["class"] () {
|
|
19
|
+
return cn('grid w-full min-w-0 justify-items-center gap-4 rounded-xl border border-border bg-card p-8 text-center text-card-foreground', local.class);
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
function EmptyIcon(props) {
|
|
24
|
+
const [local, others] = splitProps(props, [
|
|
25
|
+
'asChild',
|
|
26
|
+
'class'
|
|
27
|
+
]);
|
|
28
|
+
return createComponent(ark.div, mergeProps({
|
|
29
|
+
get asChild () {
|
|
30
|
+
return local.asChild;
|
|
31
|
+
}
|
|
32
|
+
}, others, {
|
|
33
|
+
"data-scope": "empty",
|
|
34
|
+
"data-part": "icon",
|
|
35
|
+
"data-slot": "empty-icon",
|
|
36
|
+
get ["class"] () {
|
|
37
|
+
return cn('inline-flex min-w-0 items-center justify-center rounded-full bg-muted p-3 text-muted-foreground [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0', local.class);
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
function EmptyContent(props) {
|
|
42
|
+
const [local, others] = splitProps(props, [
|
|
43
|
+
'asChild',
|
|
44
|
+
'class'
|
|
45
|
+
]);
|
|
46
|
+
return createComponent(ark.div, mergeProps({
|
|
47
|
+
get asChild () {
|
|
48
|
+
return local.asChild;
|
|
49
|
+
}
|
|
50
|
+
}, others, {
|
|
51
|
+
"data-scope": "empty",
|
|
52
|
+
"data-part": "content",
|
|
53
|
+
"data-slot": "empty-content",
|
|
54
|
+
get ["class"] () {
|
|
55
|
+
return cn('grid max-w-md min-w-0 justify-items-center gap-1', local.class);
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
function EmptyTitle(props) {
|
|
60
|
+
const [local, others] = splitProps(props, [
|
|
61
|
+
'asChild',
|
|
62
|
+
'class'
|
|
63
|
+
]);
|
|
64
|
+
return createComponent(ark.h3, mergeProps({
|
|
65
|
+
get asChild () {
|
|
66
|
+
return local.asChild;
|
|
67
|
+
}
|
|
68
|
+
}, others, {
|
|
69
|
+
"data-scope": "empty",
|
|
70
|
+
"data-part": "title",
|
|
71
|
+
"data-slot": "empty-title",
|
|
72
|
+
get ["class"] () {
|
|
73
|
+
return cn('min-w-0 text-xl font-semibold wrap-anywhere', local.class);
|
|
74
|
+
}
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
function EmptyDescription(props) {
|
|
78
|
+
const [local, others] = splitProps(props, [
|
|
79
|
+
'asChild',
|
|
80
|
+
'class'
|
|
81
|
+
]);
|
|
82
|
+
return createComponent(ark.div, mergeProps({
|
|
83
|
+
get asChild () {
|
|
84
|
+
return local.asChild;
|
|
85
|
+
}
|
|
86
|
+
}, others, {
|
|
87
|
+
"data-scope": "empty",
|
|
88
|
+
"data-part": "description",
|
|
89
|
+
"data-slot": "empty-description",
|
|
90
|
+
get ["class"] () {
|
|
91
|
+
return cn('min-w-0 text-sm wrap-anywhere text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class);
|
|
92
|
+
}
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
function EmptyActions(props) {
|
|
96
|
+
const [local, others] = splitProps(props, [
|
|
97
|
+
'asChild',
|
|
98
|
+
'class'
|
|
99
|
+
]);
|
|
100
|
+
return createComponent(ark.div, mergeProps({
|
|
101
|
+
get asChild () {
|
|
102
|
+
return local.asChild;
|
|
103
|
+
}
|
|
104
|
+
}, others, {
|
|
105
|
+
"data-scope": "empty",
|
|
106
|
+
"data-part": "actions",
|
|
107
|
+
"data-slot": "empty-actions",
|
|
108
|
+
get ["class"] () {
|
|
109
|
+
return cn('flex max-w-full min-w-0 flex-wrap items-center justify-center gap-2 [&>*]:max-w-full [&>*]:min-w-0 [&>:is(button,a)]:wrap-anywhere [&>:is(button,a)]:whitespace-normal', local.class);
|
|
110
|
+
}
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
const Empty = Object.assign(EmptyRoot, {
|
|
114
|
+
Root: EmptyRoot,
|
|
115
|
+
Icon: EmptyIcon,
|
|
116
|
+
Content: EmptyContent,
|
|
117
|
+
Title: EmptyTitle,
|
|
118
|
+
Description: EmptyDescription,
|
|
119
|
+
Actions: EmptyActions
|
|
120
|
+
});
|
|
121
|
+
export { Empty };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ark } from "@ark-ui/solid/factory";
|
|
2
|
+
import { splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
function EmptyRoot(props) {
|
|
5
|
+
const [local, others] = splitProps(props, [
|
|
6
|
+
'asChild',
|
|
7
|
+
'class'
|
|
8
|
+
]);
|
|
9
|
+
return <ark.div asChild={local.asChild} {...others} data-scope="empty" data-part="root" data-slot="empty-root" class={cn('grid w-full min-w-0 justify-items-center gap-4 rounded-xl border border-border bg-card p-8 text-center text-card-foreground', local.class)}/>;
|
|
10
|
+
}
|
|
11
|
+
function EmptyIcon(props) {
|
|
12
|
+
const [local, others] = splitProps(props, [
|
|
13
|
+
'asChild',
|
|
14
|
+
'class'
|
|
15
|
+
]);
|
|
16
|
+
return <ark.div asChild={local.asChild} {...others} data-scope="empty" data-part="icon" data-slot="empty-icon" class={cn('inline-flex min-w-0 items-center justify-center rounded-full bg-muted p-3 text-muted-foreground [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0', local.class)}/>;
|
|
17
|
+
}
|
|
18
|
+
function EmptyContent(props) {
|
|
19
|
+
const [local, others] = splitProps(props, [
|
|
20
|
+
'asChild',
|
|
21
|
+
'class'
|
|
22
|
+
]);
|
|
23
|
+
return <ark.div asChild={local.asChild} {...others} data-scope="empty" data-part="content" data-slot="empty-content" class={cn('grid max-w-md min-w-0 justify-items-center gap-1', local.class)}/>;
|
|
24
|
+
}
|
|
25
|
+
function EmptyTitle(props) {
|
|
26
|
+
const [local, others] = splitProps(props, [
|
|
27
|
+
'asChild',
|
|
28
|
+
'class'
|
|
29
|
+
]);
|
|
30
|
+
return <ark.h3 asChild={local.asChild} {...others} data-scope="empty" data-part="title" data-slot="empty-title" class={cn('min-w-0 text-xl font-semibold wrap-anywhere', local.class)}/>;
|
|
31
|
+
}
|
|
32
|
+
function EmptyDescription(props) {
|
|
33
|
+
const [local, others] = splitProps(props, [
|
|
34
|
+
'asChild',
|
|
35
|
+
'class'
|
|
36
|
+
]);
|
|
37
|
+
return <ark.div asChild={local.asChild} {...others} data-scope="empty" data-part="description" data-slot="empty-description" class={cn('min-w-0 text-sm wrap-anywhere text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class)}/>;
|
|
38
|
+
}
|
|
39
|
+
function EmptyActions(props) {
|
|
40
|
+
const [local, others] = splitProps(props, [
|
|
41
|
+
'asChild',
|
|
42
|
+
'class'
|
|
43
|
+
]);
|
|
44
|
+
return <ark.div asChild={local.asChild} {...others} data-scope="empty" data-part="actions" data-slot="empty-actions" class={cn('flex max-w-full min-w-0 flex-wrap items-center justify-center gap-2 [&>*]:max-w-full [&>*]:min-w-0 [&>:is(button,a)]:wrap-anywhere [&>:is(button,a)]:whitespace-normal', local.class)}/>;
|
|
45
|
+
}
|
|
46
|
+
const Empty = Object.assign(EmptyRoot, {
|
|
47
|
+
Root: EmptyRoot,
|
|
48
|
+
Icon: EmptyIcon,
|
|
49
|
+
Content: EmptyContent,
|
|
50
|
+
Title: EmptyTitle,
|
|
51
|
+
Description: EmptyDescription,
|
|
52
|
+
Actions: EmptyActions
|
|
53
|
+
});
|
|
54
|
+
export { Empty };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Empty } from './Empty.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Empty } from "./Empty.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Empty } from "./Empty.jsx";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Field as FieldPrimitive, useField, useFieldContext } from '@ark-ui/solid/field';
|
|
2
|
+
import type { ComponentProps } from 'solid-js';
|
|
3
|
+
import type { JSX } from 'solid-js';
|
|
4
|
+
type FieldItemProps = ComponentProps<typeof FieldPrimitive.Item> & ComponentProps<'div'>;
|
|
5
|
+
type FieldInputProps = ComponentProps<typeof FieldPrimitive.Input> & {
|
|
6
|
+
defaultValue?: string | number | readonly string[];
|
|
7
|
+
};
|
|
8
|
+
type FieldTextareaProps = ComponentProps<typeof FieldPrimitive.Textarea> & {
|
|
9
|
+
defaultValue?: string | number | readonly string[];
|
|
10
|
+
};
|
|
11
|
+
type FieldSelectProps = ComponentProps<typeof FieldPrimitive.Select> & {
|
|
12
|
+
defaultValue?: ComponentProps<typeof FieldPrimitive.Select>['value'];
|
|
13
|
+
};
|
|
14
|
+
declare function FieldRoot(props: ComponentProps<typeof FieldPrimitive.Root>): JSX.Element;
|
|
15
|
+
declare function FieldRootProvider(props: ComponentProps<typeof FieldPrimitive.RootProvider>): JSX.Element;
|
|
16
|
+
declare function FieldItem(props: FieldItemProps): JSX.Element;
|
|
17
|
+
declare function FieldLabel(props: ComponentProps<typeof FieldPrimitive.Label>): JSX.Element;
|
|
18
|
+
declare function FieldInput(props: FieldInputProps): JSX.Element;
|
|
19
|
+
declare function FieldTextarea(props: FieldTextareaProps): JSX.Element;
|
|
20
|
+
declare function FieldSelect(props: FieldSelectProps): JSX.Element;
|
|
21
|
+
declare function FieldHelperText(props: ComponentProps<typeof FieldPrimitive.HelperText>): JSX.Element;
|
|
22
|
+
declare function FieldErrorText(props: ComponentProps<typeof FieldPrimitive.ErrorText>): JSX.Element;
|
|
23
|
+
declare function FieldRequiredIndicator(props: ComponentProps<typeof FieldPrimitive.RequiredIndicator>): JSX.Element;
|
|
24
|
+
declare const Field: typeof FieldRoot & {
|
|
25
|
+
Root: typeof FieldRoot;
|
|
26
|
+
RootProvider: typeof FieldRootProvider;
|
|
27
|
+
Item: typeof FieldItem;
|
|
28
|
+
Label: typeof FieldLabel;
|
|
29
|
+
Input: typeof FieldInput;
|
|
30
|
+
Textarea: typeof FieldTextarea;
|
|
31
|
+
Select: typeof FieldSelect;
|
|
32
|
+
HelperText: typeof FieldHelperText;
|
|
33
|
+
ErrorText: typeof FieldErrorText;
|
|
34
|
+
RequiredIndicator: typeof FieldRequiredIndicator;
|
|
35
|
+
Context: (props: FieldPrimitive.ContextProps) => JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
export { Field, useField, useFieldContext };
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { createComponent, insert, mergeProps, spread, template, use } from "solid-js/web";
|
|
2
|
+
import { Field, useField, useFieldContext } from "@ark-ui/solid/field";
|
|
3
|
+
import { createEffect, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
6
|
+
const FieldSelectPrimitive = Field.Select;
|
|
7
|
+
function FieldRoot(props) {
|
|
8
|
+
const [local, others] = splitProps(props, [
|
|
9
|
+
'asChild',
|
|
10
|
+
'class'
|
|
11
|
+
]);
|
|
12
|
+
return createComponent(Field.Root, mergeProps({
|
|
13
|
+
get asChild () {
|
|
14
|
+
return local.asChild;
|
|
15
|
+
}
|
|
16
|
+
}, others, {
|
|
17
|
+
"data-slot": "field-root",
|
|
18
|
+
get ["class"] () {
|
|
19
|
+
return cn('flex w-full max-w-none flex-col items-start gap-1 text-foreground data-disabled:opacity-50', local.class);
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
function FieldRootProvider(props) {
|
|
24
|
+
const [local, others] = splitProps(props, [
|
|
25
|
+
'asChild',
|
|
26
|
+
'class'
|
|
27
|
+
]);
|
|
28
|
+
return createComponent(Field.RootProvider, mergeProps({
|
|
29
|
+
get asChild () {
|
|
30
|
+
return local.asChild;
|
|
31
|
+
}
|
|
32
|
+
}, others, {
|
|
33
|
+
"data-slot": "field-root-provider",
|
|
34
|
+
get ["class"] () {
|
|
35
|
+
return cn('flex w-full max-w-none flex-col items-start gap-1 text-foreground data-disabled:opacity-50', local.class);
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
function FieldItem(props) {
|
|
40
|
+
const [local, others] = splitProps(props, [
|
|
41
|
+
'children',
|
|
42
|
+
'class',
|
|
43
|
+
'ref',
|
|
44
|
+
'value'
|
|
45
|
+
]);
|
|
46
|
+
return createComponent(Field.Item, {
|
|
47
|
+
get value () {
|
|
48
|
+
return local.value;
|
|
49
|
+
},
|
|
50
|
+
get children () {
|
|
51
|
+
var _el$ = _tmpl$();
|
|
52
|
+
var _ref$ = local.ref;
|
|
53
|
+
"function" == typeof _ref$ ? use(_ref$, _el$) : local.ref = _el$;
|
|
54
|
+
spread(_el$, mergeProps(others, {
|
|
55
|
+
"data-slot": "field-item",
|
|
56
|
+
get ["class"] () {
|
|
57
|
+
return cn('grid gap-1', local.class);
|
|
58
|
+
}
|
|
59
|
+
}), false, true);
|
|
60
|
+
insert(_el$, ()=>local.children);
|
|
61
|
+
return _el$;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function FieldLabel(props) {
|
|
66
|
+
const [local, others] = splitProps(props, [
|
|
67
|
+
'asChild',
|
|
68
|
+
'class'
|
|
69
|
+
]);
|
|
70
|
+
return createComponent(Field.Label, mergeProps({
|
|
71
|
+
get asChild () {
|
|
72
|
+
return local.asChild;
|
|
73
|
+
}
|
|
74
|
+
}, others, {
|
|
75
|
+
"data-slot": "field-label",
|
|
76
|
+
get ["class"] () {
|
|
77
|
+
return cn('inline-flex items-center gap-2 text-sm leading-5 font-medium wrap-anywhere text-foreground', local.class);
|
|
78
|
+
}
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
function FieldInput(props) {
|
|
82
|
+
const [local, others] = splitProps(props, [
|
|
83
|
+
'asChild',
|
|
84
|
+
'class',
|
|
85
|
+
'defaultValue',
|
|
86
|
+
'ref'
|
|
87
|
+
]);
|
|
88
|
+
let inputRef;
|
|
89
|
+
createEffect(()=>{
|
|
90
|
+
if (inputRef) inputRef.defaultValue = String(local.defaultValue ?? '');
|
|
91
|
+
});
|
|
92
|
+
return createComponent(Field.Input, mergeProps({
|
|
93
|
+
get asChild () {
|
|
94
|
+
return local.asChild;
|
|
95
|
+
}
|
|
96
|
+
}, others, ()=>local.asChild ? {
|
|
97
|
+
'prop:defaultValue': local.defaultValue
|
|
98
|
+
} : {}, {
|
|
99
|
+
"data-slot": "field-input",
|
|
100
|
+
get ["class"] () {
|
|
101
|
+
return cn('min-h-control-md w-full rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class);
|
|
102
|
+
},
|
|
103
|
+
ref: (element)=>{
|
|
104
|
+
inputRef = element;
|
|
105
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
function FieldTextarea(props) {
|
|
110
|
+
const [local, others] = splitProps(props, [
|
|
111
|
+
'asChild',
|
|
112
|
+
'class',
|
|
113
|
+
'defaultValue',
|
|
114
|
+
'ref'
|
|
115
|
+
]);
|
|
116
|
+
let textareaRef;
|
|
117
|
+
createEffect(()=>{
|
|
118
|
+
if (textareaRef) textareaRef.defaultValue = String(local.defaultValue ?? '');
|
|
119
|
+
});
|
|
120
|
+
return createComponent(Field.Textarea, mergeProps({
|
|
121
|
+
get asChild () {
|
|
122
|
+
return local.asChild;
|
|
123
|
+
}
|
|
124
|
+
}, others, ()=>local.asChild ? {
|
|
125
|
+
'prop:defaultValue': local.defaultValue
|
|
126
|
+
} : {}, {
|
|
127
|
+
"data-slot": "field-textarea",
|
|
128
|
+
get ["class"] () {
|
|
129
|
+
return cn('min-h-20 w-full resize-y rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class);
|
|
130
|
+
},
|
|
131
|
+
ref: (element)=>{
|
|
132
|
+
textareaRef = element;
|
|
133
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
134
|
+
}
|
|
135
|
+
}));
|
|
136
|
+
}
|
|
137
|
+
function FieldSelect(props) {
|
|
138
|
+
const [local, others] = splitProps(props, [
|
|
139
|
+
'asChild',
|
|
140
|
+
'class',
|
|
141
|
+
'defaultValue',
|
|
142
|
+
'ref'
|
|
143
|
+
]);
|
|
144
|
+
let selectRef;
|
|
145
|
+
createEffect(()=>{
|
|
146
|
+
const defaultValue = local.defaultValue;
|
|
147
|
+
if (!selectRef || void 0 === defaultValue) return;
|
|
148
|
+
const values = new Set((Array.isArray(defaultValue) ? defaultValue : [
|
|
149
|
+
defaultValue
|
|
150
|
+
]).map((value)=>String(value)));
|
|
151
|
+
for (const option of Array.from(selectRef.options)){
|
|
152
|
+
const selected = values.has(option.value);
|
|
153
|
+
option.selected = selected;
|
|
154
|
+
option.defaultSelected = selected;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
return createComponent(FieldSelectPrimitive, mergeProps({
|
|
158
|
+
get asChild () {
|
|
159
|
+
return local.asChild;
|
|
160
|
+
}
|
|
161
|
+
}, others, {
|
|
162
|
+
get ["prop:defaultValue"] () {
|
|
163
|
+
return local.defaultValue;
|
|
164
|
+
},
|
|
165
|
+
"data-slot": "field-select",
|
|
166
|
+
get ["class"] () {
|
|
167
|
+
return cn('min-h-control-md w-full rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class);
|
|
168
|
+
},
|
|
169
|
+
ref: (element)=>{
|
|
170
|
+
selectRef = element;
|
|
171
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
172
|
+
}
|
|
173
|
+
}));
|
|
174
|
+
}
|
|
175
|
+
function FieldHelperText(props) {
|
|
176
|
+
const [local, others] = splitProps(props, [
|
|
177
|
+
'asChild',
|
|
178
|
+
'class'
|
|
179
|
+
]);
|
|
180
|
+
return createComponent(Field.HelperText, mergeProps({
|
|
181
|
+
get asChild () {
|
|
182
|
+
return local.asChild;
|
|
183
|
+
}
|
|
184
|
+
}, others, {
|
|
185
|
+
"data-slot": "field-helper-text",
|
|
186
|
+
get ["class"] () {
|
|
187
|
+
return cn('text-sm leading-5 wrap-anywhere text-muted-foreground', local.class);
|
|
188
|
+
}
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
function FieldErrorText(props) {
|
|
192
|
+
const [local, others] = splitProps(props, [
|
|
193
|
+
'asChild',
|
|
194
|
+
'class'
|
|
195
|
+
]);
|
|
196
|
+
return createComponent(Field.ErrorText, mergeProps({
|
|
197
|
+
get asChild () {
|
|
198
|
+
return local.asChild;
|
|
199
|
+
}
|
|
200
|
+
}, others, {
|
|
201
|
+
"data-slot": "field-error-text",
|
|
202
|
+
get ["class"] () {
|
|
203
|
+
return cn('text-sm leading-5 font-medium wrap-anywhere text-destructive', local.class);
|
|
204
|
+
}
|
|
205
|
+
}));
|
|
206
|
+
}
|
|
207
|
+
function FieldRequiredIndicator(props) {
|
|
208
|
+
const [local, others] = splitProps(props, [
|
|
209
|
+
'asChild',
|
|
210
|
+
'class'
|
|
211
|
+
]);
|
|
212
|
+
return createComponent(Field.RequiredIndicator, mergeProps({
|
|
213
|
+
get asChild () {
|
|
214
|
+
return local.asChild;
|
|
215
|
+
}
|
|
216
|
+
}, others, {
|
|
217
|
+
"data-slot": "field-required-indicator",
|
|
218
|
+
get ["class"] () {
|
|
219
|
+
return cn('text-destructive', local.class);
|
|
220
|
+
}
|
|
221
|
+
}));
|
|
222
|
+
}
|
|
223
|
+
const Field_Field = Object.assign(FieldRoot, {
|
|
224
|
+
Root: FieldRoot,
|
|
225
|
+
RootProvider: FieldRootProvider,
|
|
226
|
+
Item: FieldItem,
|
|
227
|
+
Label: FieldLabel,
|
|
228
|
+
Input: FieldInput,
|
|
229
|
+
Textarea: FieldTextarea,
|
|
230
|
+
Select: FieldSelect,
|
|
231
|
+
HelperText: FieldHelperText,
|
|
232
|
+
ErrorText: FieldErrorText,
|
|
233
|
+
RequiredIndicator: FieldRequiredIndicator,
|
|
234
|
+
Context: Field.Context
|
|
235
|
+
});
|
|
236
|
+
export { Field_Field as Field, useField, useFieldContext };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Field, useField, useFieldContext } from "@ark-ui/solid/field";
|
|
2
|
+
import { createEffect, splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
const FieldSelectPrimitive = Field.Select;
|
|
5
|
+
function FieldRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'asChild',
|
|
8
|
+
'class'
|
|
9
|
+
]);
|
|
10
|
+
return <Field.Root asChild={local.asChild} {...others} data-slot="field-root" class={cn('flex w-full max-w-none flex-col items-start gap-1 text-foreground data-disabled:opacity-50', local.class)}/>;
|
|
11
|
+
}
|
|
12
|
+
function FieldRootProvider(props) {
|
|
13
|
+
const [local, others] = splitProps(props, [
|
|
14
|
+
'asChild',
|
|
15
|
+
'class'
|
|
16
|
+
]);
|
|
17
|
+
return <Field.RootProvider asChild={local.asChild} {...others} data-slot="field-root-provider" class={cn('flex w-full max-w-none flex-col items-start gap-1 text-foreground data-disabled:opacity-50', local.class)}/>;
|
|
18
|
+
}
|
|
19
|
+
function FieldItem(props) {
|
|
20
|
+
const [local, others] = splitProps(props, [
|
|
21
|
+
'children',
|
|
22
|
+
'class',
|
|
23
|
+
'ref',
|
|
24
|
+
'value'
|
|
25
|
+
]);
|
|
26
|
+
return <Field.Item value={local.value}>
|
|
27
|
+
<div {...others} data-slot="field-item" class={cn('grid gap-1', local.class)} ref={local.ref}>
|
|
28
|
+
{local.children}
|
|
29
|
+
</div>
|
|
30
|
+
</Field.Item>;
|
|
31
|
+
}
|
|
32
|
+
function FieldLabel(props) {
|
|
33
|
+
const [local, others] = splitProps(props, [
|
|
34
|
+
'asChild',
|
|
35
|
+
'class'
|
|
36
|
+
]);
|
|
37
|
+
return <Field.Label asChild={local.asChild} {...others} data-slot="field-label" class={cn('inline-flex items-center gap-2 text-sm leading-5 font-medium wrap-anywhere text-foreground', local.class)}/>;
|
|
38
|
+
}
|
|
39
|
+
function FieldInput(props) {
|
|
40
|
+
const [local, others] = splitProps(props, [
|
|
41
|
+
'asChild',
|
|
42
|
+
'class',
|
|
43
|
+
'defaultValue',
|
|
44
|
+
'ref'
|
|
45
|
+
]);
|
|
46
|
+
let inputRef;
|
|
47
|
+
createEffect(()=>{
|
|
48
|
+
if (inputRef) inputRef.defaultValue = String(local.defaultValue ?? '');
|
|
49
|
+
});
|
|
50
|
+
return <Field.Input asChild={local.asChild} {...others} {...local.asChild ? {
|
|
51
|
+
'prop:defaultValue': local.defaultValue
|
|
52
|
+
} : {}} data-slot="field-input" class={cn('min-h-control-md w-full rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class)} ref={(element)=>{
|
|
53
|
+
inputRef = element;
|
|
54
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
55
|
+
}}/>;
|
|
56
|
+
}
|
|
57
|
+
function FieldTextarea(props) {
|
|
58
|
+
const [local, others] = splitProps(props, [
|
|
59
|
+
'asChild',
|
|
60
|
+
'class',
|
|
61
|
+
'defaultValue',
|
|
62
|
+
'ref'
|
|
63
|
+
]);
|
|
64
|
+
let textareaRef;
|
|
65
|
+
createEffect(()=>{
|
|
66
|
+
if (textareaRef) textareaRef.defaultValue = String(local.defaultValue ?? '');
|
|
67
|
+
});
|
|
68
|
+
return <Field.Textarea asChild={local.asChild} {...others} {...local.asChild ? {
|
|
69
|
+
'prop:defaultValue': local.defaultValue
|
|
70
|
+
} : {}} data-slot="field-textarea" class={cn('min-h-20 w-full resize-y rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class)} ref={(element)=>{
|
|
71
|
+
textareaRef = element;
|
|
72
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
73
|
+
}}/>;
|
|
74
|
+
}
|
|
75
|
+
function FieldSelect(props) {
|
|
76
|
+
const [local, others] = splitProps(props, [
|
|
77
|
+
'asChild',
|
|
78
|
+
'class',
|
|
79
|
+
'defaultValue',
|
|
80
|
+
'ref'
|
|
81
|
+
]);
|
|
82
|
+
let selectRef;
|
|
83
|
+
createEffect(()=>{
|
|
84
|
+
const defaultValue = local.defaultValue;
|
|
85
|
+
if (!selectRef || void 0 === defaultValue) return;
|
|
86
|
+
const values = new Set((Array.isArray(defaultValue) ? defaultValue : [
|
|
87
|
+
defaultValue
|
|
88
|
+
]).map((value)=>String(value)));
|
|
89
|
+
for (const option of Array.from(selectRef.options)){
|
|
90
|
+
const selected = values.has(option.value);
|
|
91
|
+
option.selected = selected;
|
|
92
|
+
option.defaultSelected = selected;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
return <FieldSelectPrimitive asChild={local.asChild} {...others} prop:defaultValue={local.defaultValue} data-slot="field-select" class={cn('min-h-control-md w-full rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', local.class)} ref={(element)=>{
|
|
96
|
+
selectRef = element;
|
|
97
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
98
|
+
}}/>;
|
|
99
|
+
}
|
|
100
|
+
function FieldHelperText(props) {
|
|
101
|
+
const [local, others] = splitProps(props, [
|
|
102
|
+
'asChild',
|
|
103
|
+
'class'
|
|
104
|
+
]);
|
|
105
|
+
return <Field.HelperText asChild={local.asChild} {...others} data-slot="field-helper-text" class={cn('text-sm leading-5 wrap-anywhere text-muted-foreground', local.class)}/>;
|
|
106
|
+
}
|
|
107
|
+
function FieldErrorText(props) {
|
|
108
|
+
const [local, others] = splitProps(props, [
|
|
109
|
+
'asChild',
|
|
110
|
+
'class'
|
|
111
|
+
]);
|
|
112
|
+
return <Field.ErrorText asChild={local.asChild} {...others} data-slot="field-error-text" class={cn('text-sm leading-5 font-medium wrap-anywhere text-destructive', local.class)}/>;
|
|
113
|
+
}
|
|
114
|
+
function FieldRequiredIndicator(props) {
|
|
115
|
+
const [local, others] = splitProps(props, [
|
|
116
|
+
'asChild',
|
|
117
|
+
'class'
|
|
118
|
+
]);
|
|
119
|
+
return <Field.RequiredIndicator asChild={local.asChild} {...others} data-slot="field-required-indicator" class={cn('text-destructive', local.class)}/>;
|
|
120
|
+
}
|
|
121
|
+
const Field_Field = Object.assign(FieldRoot, {
|
|
122
|
+
Root: FieldRoot,
|
|
123
|
+
RootProvider: FieldRootProvider,
|
|
124
|
+
Item: FieldItem,
|
|
125
|
+
Label: FieldLabel,
|
|
126
|
+
Input: FieldInput,
|
|
127
|
+
Textarea: FieldTextarea,
|
|
128
|
+
Select: FieldSelect,
|
|
129
|
+
HelperText: FieldHelperText,
|
|
130
|
+
ErrorText: FieldErrorText,
|
|
131
|
+
RequiredIndicator: FieldRequiredIndicator,
|
|
132
|
+
Context: Field.Context
|
|
133
|
+
});
|
|
134
|
+
export { Field_Field as Field, useField, useFieldContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Field.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Field.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Field.jsx";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Fieldset as FieldsetPrimitive, useFieldset, useFieldsetContext } from '@ark-ui/solid/fieldset';
|
|
2
|
+
import type { ComponentProps } from 'solid-js';
|
|
3
|
+
declare function FieldsetRoot(props: ComponentProps<typeof FieldsetPrimitive.Root>): import("solid-js").JSX.Element;
|
|
4
|
+
declare function FieldsetRootProvider(props: ComponentProps<typeof FieldsetPrimitive.RootProvider>): import("solid-js").JSX.Element;
|
|
5
|
+
declare function FieldsetLegend(props: ComponentProps<typeof FieldsetPrimitive.Legend>): import("solid-js").JSX.Element;
|
|
6
|
+
declare function FieldsetHelperText(props: ComponentProps<typeof FieldsetPrimitive.HelperText>): import("solid-js").JSX.Element;
|
|
7
|
+
declare function FieldsetErrorText(props: ComponentProps<typeof FieldsetPrimitive.ErrorText>): import("solid-js").JSX.Element;
|
|
8
|
+
declare const Fieldset: typeof FieldsetRoot & {
|
|
9
|
+
Root: typeof FieldsetRoot;
|
|
10
|
+
RootProvider: typeof FieldsetRootProvider;
|
|
11
|
+
Context: (props: FieldsetPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
12
|
+
Legend: typeof FieldsetLegend;
|
|
13
|
+
HelperText: typeof FieldsetHelperText;
|
|
14
|
+
ErrorText: typeof FieldsetErrorText;
|
|
15
|
+
};
|
|
16
|
+
export { Fieldset, useFieldset, useFieldsetContext };
|