@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,218 @@
|
|
|
1
|
+
import { createComponent, insert, memo, mergeProps, template } from "solid-js/web";
|
|
2
|
+
import { Pagination, usePagination, usePaginationContext } from "@ark-ui/solid/pagination";
|
|
3
|
+
import { For, children, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template('<span class="inline-flex items-center justify-center [&_svg+svg]:-ms-2"aria-hidden>');
|
|
7
|
+
function PaginationRoot(props) {
|
|
8
|
+
const [local, others] = splitProps(props, [
|
|
9
|
+
'asChild',
|
|
10
|
+
'children',
|
|
11
|
+
'class'
|
|
12
|
+
]);
|
|
13
|
+
return createComponent(Pagination.Root, mergeProps({
|
|
14
|
+
get asChild () {
|
|
15
|
+
return local.asChild;
|
|
16
|
+
},
|
|
17
|
+
"data-slot": "pagination-root",
|
|
18
|
+
get ["class"] () {
|
|
19
|
+
return cn('inline-flex max-w-full items-center gap-1 overflow-x-auto text-foreground', local.class);
|
|
20
|
+
}
|
|
21
|
+
}, others, {
|
|
22
|
+
get children () {
|
|
23
|
+
return local.children;
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
function PaginationRootProvider(props) {
|
|
28
|
+
const [local, others] = splitProps(props, [
|
|
29
|
+
'asChild',
|
|
30
|
+
'children',
|
|
31
|
+
'class'
|
|
32
|
+
]);
|
|
33
|
+
return createComponent(Pagination.RootProvider, mergeProps({
|
|
34
|
+
get asChild () {
|
|
35
|
+
return local.asChild;
|
|
36
|
+
},
|
|
37
|
+
"data-slot": "pagination-root-provider",
|
|
38
|
+
get ["class"] () {
|
|
39
|
+
return cn('inline-flex max-w-full items-center gap-1 overflow-x-auto text-foreground', local.class);
|
|
40
|
+
}
|
|
41
|
+
}, others, {
|
|
42
|
+
get children () {
|
|
43
|
+
return local.children;
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
function PaginationItem(props) {
|
|
48
|
+
const [local, others] = splitProps(props, [
|
|
49
|
+
'asChild',
|
|
50
|
+
'class'
|
|
51
|
+
]);
|
|
52
|
+
return createComponent(Pagination.Item, mergeProps({
|
|
53
|
+
get asChild () {
|
|
54
|
+
return local.asChild;
|
|
55
|
+
},
|
|
56
|
+
"data-slot": "pagination-item",
|
|
57
|
+
get ["class"] () {
|
|
58
|
+
return cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-2 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', 'data-selected:border-foreground data-selected:bg-foreground data-selected:text-background [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:data-selected:hover:bg-foreground', '[&_svg]:size-4 [&_svg]:shrink-0', local.class);
|
|
59
|
+
}
|
|
60
|
+
}, others));
|
|
61
|
+
}
|
|
62
|
+
function PaginationEllipsis(props) {
|
|
63
|
+
const [local, others] = splitProps(props, [
|
|
64
|
+
'asChild',
|
|
65
|
+
'children',
|
|
66
|
+
'class'
|
|
67
|
+
]);
|
|
68
|
+
const resolvedChildren = children(()=>local.children);
|
|
69
|
+
return createComponent(Pagination.Ellipsis, mergeProps({
|
|
70
|
+
get asChild () {
|
|
71
|
+
return local.asChild;
|
|
72
|
+
},
|
|
73
|
+
"data-slot": "pagination-ellipsis",
|
|
74
|
+
get ["class"] () {
|
|
75
|
+
return cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium text-muted-foreground tabular-nums select-none', local.class);
|
|
76
|
+
}
|
|
77
|
+
}, others, {
|
|
78
|
+
get children () {
|
|
79
|
+
return resolvedChildren() ?? (!local.asChild && '...');
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
function EdgeIcon(props) {
|
|
84
|
+
return (()=>{
|
|
85
|
+
var _el$ = _tmpl$();
|
|
86
|
+
insert(_el$, (()=>{
|
|
87
|
+
var _c$ = memo(()=>'left' === props.side);
|
|
88
|
+
return ()=>_c$() ? createComponent(ChevronLeftIcon, {}) : createComponent(ChevronRightIcon, {});
|
|
89
|
+
})(), null);
|
|
90
|
+
insert(_el$, (()=>{
|
|
91
|
+
var _c$2 = memo(()=>'left' === props.side);
|
|
92
|
+
return ()=>_c$2() ? createComponent(ChevronLeftIcon, {}) : createComponent(ChevronRightIcon, {});
|
|
93
|
+
})(), null);
|
|
94
|
+
return _el$;
|
|
95
|
+
})();
|
|
96
|
+
}
|
|
97
|
+
function PaginationPrevTrigger(props) {
|
|
98
|
+
const [local, others] = splitProps(props, [
|
|
99
|
+
'asChild',
|
|
100
|
+
'children',
|
|
101
|
+
'class'
|
|
102
|
+
]);
|
|
103
|
+
const resolvedChildren = children(()=>local.children);
|
|
104
|
+
return createComponent(Pagination.PrevTrigger, mergeProps({
|
|
105
|
+
get asChild () {
|
|
106
|
+
return local.asChild;
|
|
107
|
+
},
|
|
108
|
+
"data-slot": "pagination-prev-trigger",
|
|
109
|
+
get ["class"] () {
|
|
110
|
+
return cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class);
|
|
111
|
+
}
|
|
112
|
+
}, others, {
|
|
113
|
+
get children () {
|
|
114
|
+
return resolvedChildren() ?? (!local.asChild && createComponent(ChevronLeftIcon, {}));
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
function PaginationNextTrigger(props) {
|
|
119
|
+
const [local, others] = splitProps(props, [
|
|
120
|
+
'asChild',
|
|
121
|
+
'children',
|
|
122
|
+
'class'
|
|
123
|
+
]);
|
|
124
|
+
const resolvedChildren = children(()=>local.children);
|
|
125
|
+
return createComponent(Pagination.NextTrigger, mergeProps({
|
|
126
|
+
get asChild () {
|
|
127
|
+
return local.asChild;
|
|
128
|
+
},
|
|
129
|
+
"data-slot": "pagination-next-trigger",
|
|
130
|
+
get ["class"] () {
|
|
131
|
+
return cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class);
|
|
132
|
+
}
|
|
133
|
+
}, others, {
|
|
134
|
+
get children () {
|
|
135
|
+
return resolvedChildren() ?? (!local.asChild && createComponent(ChevronRightIcon, {}));
|
|
136
|
+
}
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
function PaginationFirstTrigger(props) {
|
|
140
|
+
const [local, others] = splitProps(props, [
|
|
141
|
+
'asChild',
|
|
142
|
+
'children',
|
|
143
|
+
'class'
|
|
144
|
+
]);
|
|
145
|
+
const resolvedChildren = children(()=>local.children);
|
|
146
|
+
return createComponent(Pagination.FirstTrigger, mergeProps({
|
|
147
|
+
get asChild () {
|
|
148
|
+
return local.asChild;
|
|
149
|
+
},
|
|
150
|
+
"data-slot": "pagination-first-trigger",
|
|
151
|
+
get ["class"] () {
|
|
152
|
+
return cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class);
|
|
153
|
+
}
|
|
154
|
+
}, others, {
|
|
155
|
+
get children () {
|
|
156
|
+
return resolvedChildren() ?? (!local.asChild && createComponent(EdgeIcon, {
|
|
157
|
+
side: "left"
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
function PaginationLastTrigger(props) {
|
|
163
|
+
const [local, others] = splitProps(props, [
|
|
164
|
+
'asChild',
|
|
165
|
+
'children',
|
|
166
|
+
'class'
|
|
167
|
+
]);
|
|
168
|
+
const resolvedChildren = children(()=>local.children);
|
|
169
|
+
return createComponent(Pagination.LastTrigger, mergeProps({
|
|
170
|
+
get asChild () {
|
|
171
|
+
return local.asChild;
|
|
172
|
+
},
|
|
173
|
+
"data-slot": "pagination-last-trigger",
|
|
174
|
+
get ["class"] () {
|
|
175
|
+
return cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class);
|
|
176
|
+
}
|
|
177
|
+
}, others, {
|
|
178
|
+
get children () {
|
|
179
|
+
return resolvedChildren() ?? (!local.asChild && createComponent(EdgeIcon, {
|
|
180
|
+
side: "right"
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
const PaginationContext = Pagination.Context;
|
|
186
|
+
function PaginationItems() {
|
|
187
|
+
return createComponent(PaginationContext, {
|
|
188
|
+
children: (pagination)=>createComponent(For, {
|
|
189
|
+
get each () {
|
|
190
|
+
return pagination().pages;
|
|
191
|
+
},
|
|
192
|
+
children: (page, index)=>'page' === page.type ? createComponent(PaginationItem, mergeProps(page, {
|
|
193
|
+
get children () {
|
|
194
|
+
return page.value;
|
|
195
|
+
}
|
|
196
|
+
})) : createComponent(PaginationEllipsis, {
|
|
197
|
+
get index () {
|
|
198
|
+
return index();
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
const Pagination_Pagination = Object.assign(PaginationRoot, {
|
|
205
|
+
Root: PaginationRoot,
|
|
206
|
+
RootProvider: PaginationRootProvider,
|
|
207
|
+
Item: PaginationItem,
|
|
208
|
+
Ellipsis: PaginationEllipsis,
|
|
209
|
+
PrevTrigger: PaginationPrevTrigger,
|
|
210
|
+
NextTrigger: PaginationNextTrigger,
|
|
211
|
+
FirstTrigger: PaginationFirstTrigger,
|
|
212
|
+
LastTrigger: PaginationLastTrigger,
|
|
213
|
+
Context: PaginationContext,
|
|
214
|
+
Items: PaginationItems,
|
|
215
|
+
usePagination: usePagination,
|
|
216
|
+
usePaginationContext: usePaginationContext
|
|
217
|
+
});
|
|
218
|
+
export { Pagination_Pagination as Pagination, usePagination, usePaginationContext };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Pagination, usePagination, usePaginationContext } from "@ark-ui/solid/pagination";
|
|
2
|
+
import { For, children, splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../internal/icons/ui/Icons.jsx";
|
|
5
|
+
function PaginationRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'asChild',
|
|
8
|
+
'children',
|
|
9
|
+
'class'
|
|
10
|
+
]);
|
|
11
|
+
return <Pagination.Root asChild={local.asChild} data-slot="pagination-root" class={cn('inline-flex max-w-full items-center gap-1 overflow-x-auto text-foreground', local.class)} {...others}>
|
|
12
|
+
{local.children}
|
|
13
|
+
</Pagination.Root>;
|
|
14
|
+
}
|
|
15
|
+
function PaginationRootProvider(props) {
|
|
16
|
+
const [local, others] = splitProps(props, [
|
|
17
|
+
'asChild',
|
|
18
|
+
'children',
|
|
19
|
+
'class'
|
|
20
|
+
]);
|
|
21
|
+
return <Pagination.RootProvider asChild={local.asChild} data-slot="pagination-root-provider" class={cn('inline-flex max-w-full items-center gap-1 overflow-x-auto text-foreground', local.class)} {...others}>
|
|
22
|
+
{local.children}
|
|
23
|
+
</Pagination.RootProvider>;
|
|
24
|
+
}
|
|
25
|
+
function PaginationItem(props) {
|
|
26
|
+
const [local, others] = splitProps(props, [
|
|
27
|
+
'asChild',
|
|
28
|
+
'class'
|
|
29
|
+
]);
|
|
30
|
+
return <Pagination.Item asChild={local.asChild} data-slot="pagination-item" class={cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-2 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', 'data-selected:border-foreground data-selected:bg-foreground data-selected:text-background [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:data-selected:hover:bg-foreground', '[&_svg]:size-4 [&_svg]:shrink-0', local.class)} {...others}/>;
|
|
31
|
+
}
|
|
32
|
+
function PaginationEllipsis(props) {
|
|
33
|
+
const [local, others] = splitProps(props, [
|
|
34
|
+
'asChild',
|
|
35
|
+
'children',
|
|
36
|
+
'class'
|
|
37
|
+
]);
|
|
38
|
+
const resolvedChildren = children(()=>local.children);
|
|
39
|
+
return <Pagination.Ellipsis asChild={local.asChild} data-slot="pagination-ellipsis" class={cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium text-muted-foreground tabular-nums select-none', local.class)} {...others}>
|
|
40
|
+
{resolvedChildren() ?? (!local.asChild && '...')}
|
|
41
|
+
</Pagination.Ellipsis>;
|
|
42
|
+
}
|
|
43
|
+
function EdgeIcon(props) {
|
|
44
|
+
return <span class="inline-flex items-center justify-center [&_svg+svg]:-ms-2" aria-hidden>
|
|
45
|
+
{'left' === props.side ? <ChevronLeftIcon/> : <ChevronRightIcon/>}
|
|
46
|
+
{'left' === props.side ? <ChevronLeftIcon/> : <ChevronRightIcon/>}
|
|
47
|
+
</span>;
|
|
48
|
+
}
|
|
49
|
+
function PaginationPrevTrigger(props) {
|
|
50
|
+
const [local, others] = splitProps(props, [
|
|
51
|
+
'asChild',
|
|
52
|
+
'children',
|
|
53
|
+
'class'
|
|
54
|
+
]);
|
|
55
|
+
const resolvedChildren = children(()=>local.children);
|
|
56
|
+
return <Pagination.PrevTrigger asChild={local.asChild} data-slot="pagination-prev-trigger" class={cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class)} {...others}>
|
|
57
|
+
{resolvedChildren() ?? (!local.asChild && <ChevronLeftIcon/>)}
|
|
58
|
+
</Pagination.PrevTrigger>;
|
|
59
|
+
}
|
|
60
|
+
function PaginationNextTrigger(props) {
|
|
61
|
+
const [local, others] = splitProps(props, [
|
|
62
|
+
'asChild',
|
|
63
|
+
'children',
|
|
64
|
+
'class'
|
|
65
|
+
]);
|
|
66
|
+
const resolvedChildren = children(()=>local.children);
|
|
67
|
+
return <Pagination.NextTrigger asChild={local.asChild} data-slot="pagination-next-trigger" class={cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class)} {...others}>
|
|
68
|
+
{resolvedChildren() ?? (!local.asChild && <ChevronRightIcon/>)}
|
|
69
|
+
</Pagination.NextTrigger>;
|
|
70
|
+
}
|
|
71
|
+
function PaginationFirstTrigger(props) {
|
|
72
|
+
const [local, others] = splitProps(props, [
|
|
73
|
+
'asChild',
|
|
74
|
+
'children',
|
|
75
|
+
'class'
|
|
76
|
+
]);
|
|
77
|
+
const resolvedChildren = children(()=>local.children);
|
|
78
|
+
return <Pagination.FirstTrigger asChild={local.asChild} data-slot="pagination-first-trigger" class={cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class)} {...others}>
|
|
79
|
+
{resolvedChildren() ?? (!local.asChild && <EdgeIcon side="left"/>)}
|
|
80
|
+
</Pagination.FirstTrigger>;
|
|
81
|
+
}
|
|
82
|
+
function PaginationLastTrigger(props) {
|
|
83
|
+
const [local, others] = splitProps(props, [
|
|
84
|
+
'asChild',
|
|
85
|
+
'children',
|
|
86
|
+
'class'
|
|
87
|
+
]);
|
|
88
|
+
const resolvedChildren = children(()=>local.children);
|
|
89
|
+
return <Pagination.LastTrigger asChild={local.asChild} data-slot="pagination-last-trigger" class={cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == local.children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', local.class)} {...others}>
|
|
90
|
+
{resolvedChildren() ?? (!local.asChild && <EdgeIcon side="right"/>)}
|
|
91
|
+
</Pagination.LastTrigger>;
|
|
92
|
+
}
|
|
93
|
+
const PaginationContext = Pagination.Context;
|
|
94
|
+
function PaginationItems() {
|
|
95
|
+
return <PaginationContext>
|
|
96
|
+
{(pagination)=><For each={pagination().pages}>
|
|
97
|
+
{(page, index)=>'page' === page.type ? <PaginationItem {...page}>{page.value}</PaginationItem> : <PaginationEllipsis index={index()}/>}
|
|
98
|
+
</For>}
|
|
99
|
+
</PaginationContext>;
|
|
100
|
+
}
|
|
101
|
+
const Pagination_Pagination = Object.assign(PaginationRoot, {
|
|
102
|
+
Root: PaginationRoot,
|
|
103
|
+
RootProvider: PaginationRootProvider,
|
|
104
|
+
Item: PaginationItem,
|
|
105
|
+
Ellipsis: PaginationEllipsis,
|
|
106
|
+
PrevTrigger: PaginationPrevTrigger,
|
|
107
|
+
NextTrigger: PaginationNextTrigger,
|
|
108
|
+
FirstTrigger: PaginationFirstTrigger,
|
|
109
|
+
LastTrigger: PaginationLastTrigger,
|
|
110
|
+
Context: PaginationContext,
|
|
111
|
+
Items: PaginationItems,
|
|
112
|
+
usePagination: usePagination,
|
|
113
|
+
usePaginationContext: usePaginationContext
|
|
114
|
+
});
|
|
115
|
+
export { Pagination_Pagination as Pagination, usePagination, usePaginationContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination, usePagination, usePaginationContext } from './Pagination.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination, usePagination, usePaginationContext } from "./Pagination.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination, usePagination, usePaginationContext } from "./Pagination.jsx";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PasswordInput as PasswordInputPrimitive, usePasswordInput, usePasswordInputContext } from '@ark-ui/solid/password-input';
|
|
2
|
+
import type { ComponentProps } from 'solid-js';
|
|
3
|
+
declare function PasswordInputRoot(props: ComponentProps<typeof PasswordInputPrimitive.Root>): import("solid-js").JSX.Element;
|
|
4
|
+
declare function PasswordInputRootProvider(props: ComponentProps<typeof PasswordInputPrimitive.RootProvider>): import("solid-js").JSX.Element;
|
|
5
|
+
declare function PasswordInputLabel(props: ComponentProps<typeof PasswordInputPrimitive.Label>): import("solid-js").JSX.Element;
|
|
6
|
+
declare function PasswordInputControl(props: ComponentProps<typeof PasswordInputPrimitive.Control>): import("solid-js").JSX.Element;
|
|
7
|
+
type PasswordInputInputProps = ComponentProps<typeof PasswordInputPrimitive.Input> & {
|
|
8
|
+
defaultValue?: string | number | readonly string[];
|
|
9
|
+
};
|
|
10
|
+
declare function PasswordInputInput(props: PasswordInputInputProps): import("solid-js").JSX.Element;
|
|
11
|
+
declare function PasswordInputVisibilityTrigger(props: ComponentProps<typeof PasswordInputPrimitive.VisibilityTrigger>): import("solid-js").JSX.Element;
|
|
12
|
+
declare function PasswordInputIndicator(props: ComponentProps<typeof PasswordInputPrimitive.Indicator>): import("solid-js").JSX.Element;
|
|
13
|
+
type PasswordInputFieldProps = Omit<ComponentProps<typeof PasswordInputControl>, 'asChild' | 'children'>;
|
|
14
|
+
declare function PasswordInputField(props: PasswordInputFieldProps): import("solid-js").JSX.Element;
|
|
15
|
+
declare const PasswordInput: typeof PasswordInputRoot & {
|
|
16
|
+
Root: typeof PasswordInputRoot;
|
|
17
|
+
RootProvider: typeof PasswordInputRootProvider;
|
|
18
|
+
Context: (props: PasswordInputPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
19
|
+
Label: typeof PasswordInputLabel;
|
|
20
|
+
Control: typeof PasswordInputControl;
|
|
21
|
+
Field: typeof PasswordInputField;
|
|
22
|
+
Input: typeof PasswordInputInput;
|
|
23
|
+
VisibilityTrigger: typeof PasswordInputVisibilityTrigger;
|
|
24
|
+
Indicator: typeof PasswordInputIndicator;
|
|
25
|
+
};
|
|
26
|
+
export { PasswordInput, usePasswordInput, usePasswordInputContext };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { PasswordInput, usePasswordInput, usePasswordInputContext } from "@ark-ui/solid/password-input";
|
|
3
|
+
import { children, createEffect, splitProps } from "solid-js";
|
|
4
|
+
import { cn } from "../../internal/cn.js";
|
|
5
|
+
import { EyeClosedIcon, EyeIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
|
+
function PasswordInputRoot(props) {
|
|
7
|
+
const [local, others] = splitProps(props, [
|
|
8
|
+
'class'
|
|
9
|
+
]);
|
|
10
|
+
return createComponent(PasswordInput.Root, mergeProps({
|
|
11
|
+
"data-slot": "password-input-root",
|
|
12
|
+
get ["class"] () {
|
|
13
|
+
return cn('flex w-full max-w-none flex-col gap-1 text-foreground data-disabled:opacity-50', local.class);
|
|
14
|
+
}
|
|
15
|
+
}, others));
|
|
16
|
+
}
|
|
17
|
+
function PasswordInputRootProvider(props) {
|
|
18
|
+
const [local, others] = splitProps(props, [
|
|
19
|
+
'class'
|
|
20
|
+
]);
|
|
21
|
+
return createComponent(PasswordInput.RootProvider, mergeProps({
|
|
22
|
+
"data-slot": "password-input-root-provider",
|
|
23
|
+
get ["class"] () {
|
|
24
|
+
return cn('flex w-full max-w-none flex-col gap-1 text-foreground data-disabled:opacity-50', local.class);
|
|
25
|
+
}
|
|
26
|
+
}, others));
|
|
27
|
+
}
|
|
28
|
+
function PasswordInputLabel(props) {
|
|
29
|
+
const [local, others] = splitProps(props, [
|
|
30
|
+
'class'
|
|
31
|
+
]);
|
|
32
|
+
return createComponent(PasswordInput.Label, mergeProps({
|
|
33
|
+
"data-slot": "password-input-label",
|
|
34
|
+
get ["class"] () {
|
|
35
|
+
return cn('inline-flex items-center gap-1 text-sm leading-5 font-medium text-foreground', local.class);
|
|
36
|
+
}
|
|
37
|
+
}, others));
|
|
38
|
+
}
|
|
39
|
+
function PasswordInputControl(props) {
|
|
40
|
+
const [local, others] = splitProps(props, [
|
|
41
|
+
'class'
|
|
42
|
+
]);
|
|
43
|
+
return createComponent(PasswordInput.Control, mergeProps({
|
|
44
|
+
"data-slot": "password-input-control",
|
|
45
|
+
get ["class"] () {
|
|
46
|
+
return cn('flex min-h-control-md w-full items-center rounded-md border border-border bg-background pr-2 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,opacity] duration-200 ease-in-out focus-within:outline-ring data-invalid:border-destructive data-invalid:focus-within:outline-destructive data-readonly:bg-background data-readonly:text-foreground motion-reduce:transition-none', local.class);
|
|
47
|
+
}
|
|
48
|
+
}, others));
|
|
49
|
+
}
|
|
50
|
+
function PasswordInputInput(props) {
|
|
51
|
+
const [local, others] = splitProps(props, [
|
|
52
|
+
'asChild',
|
|
53
|
+
'class',
|
|
54
|
+
'defaultValue',
|
|
55
|
+
'ref'
|
|
56
|
+
]);
|
|
57
|
+
let inputRef;
|
|
58
|
+
createEffect(()=>{
|
|
59
|
+
if (inputRef) inputRef.defaultValue = String(local.defaultValue ?? '');
|
|
60
|
+
});
|
|
61
|
+
return createComponent(PasswordInput.Input, mergeProps({
|
|
62
|
+
get asChild () {
|
|
63
|
+
return local.asChild;
|
|
64
|
+
}
|
|
65
|
+
}, others, ()=>local.asChild ? {
|
|
66
|
+
'prop:defaultValue': local.defaultValue
|
|
67
|
+
} : {}, {
|
|
68
|
+
"data-slot": "password-input-input",
|
|
69
|
+
get ["class"] () {
|
|
70
|
+
return cn('min-h-0 min-w-0 flex-auto bg-transparent px-3 py-1 text-md leading-6 text-foreground outline-0 transition-opacity duration-200 ease-in-out placeholder:text-muted-foreground disabled:pointer-events-none data-disabled:pointer-events-none motion-reduce:transition-none', local.class);
|
|
71
|
+
},
|
|
72
|
+
ref: (element)=>{
|
|
73
|
+
inputRef = element;
|
|
74
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
function PasswordInputVisibilityTrigger(props) {
|
|
79
|
+
const [local, others] = splitProps(props, [
|
|
80
|
+
'class'
|
|
81
|
+
]);
|
|
82
|
+
return createComponent(PasswordInput.VisibilityTrigger, mergeProps({
|
|
83
|
+
"data-slot": "password-input-visibility-trigger",
|
|
84
|
+
get ["class"] () {
|
|
85
|
+
return cn('group/password-input-trigger inline-flex size-control-sm min-w-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-readonly:cursor-default motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:text-foreground', local.class);
|
|
86
|
+
}
|
|
87
|
+
}, others));
|
|
88
|
+
}
|
|
89
|
+
function PasswordInputIndicator(props) {
|
|
90
|
+
const [local, others] = splitProps(props, [
|
|
91
|
+
'children',
|
|
92
|
+
'class',
|
|
93
|
+
'fallback'
|
|
94
|
+
]);
|
|
95
|
+
const resolvedChildren = children(()=>local.children);
|
|
96
|
+
return createComponent(PasswordInput.Indicator, mergeProps({
|
|
97
|
+
"data-slot": "password-input-indicator",
|
|
98
|
+
get ["class"] () {
|
|
99
|
+
return cn("inline-flex items-center justify-center rounded-sm p-1 transition-[background-color,color] duration-200 ease-in-out group-hover/password-input-trigger:bg-muted group-focus-visible/password-input-trigger:bg-muted group-data-[disabled]/password-input-trigger:bg-transparent group-data-[readonly]/password-input-trigger:bg-transparent motion-reduce:transition-none [&>svg:not([class*='size-'])]:size-4", local.class);
|
|
100
|
+
},
|
|
101
|
+
get fallback () {
|
|
102
|
+
return local.fallback ?? createComponent(EyeClosedIcon, {});
|
|
103
|
+
}
|
|
104
|
+
}, others, {
|
|
105
|
+
get children () {
|
|
106
|
+
return resolvedChildren() ?? createComponent(EyeIcon, {});
|
|
107
|
+
}
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
function PasswordInputField(props) {
|
|
111
|
+
return createComponent(PasswordInputControl, mergeProps(props, {
|
|
112
|
+
get children () {
|
|
113
|
+
return [
|
|
114
|
+
createComponent(PasswordInputInput, {}),
|
|
115
|
+
createComponent(PasswordInputVisibilityTrigger, {
|
|
116
|
+
get children () {
|
|
117
|
+
return createComponent(PasswordInputIndicator, {});
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
const PasswordInput_PasswordInput = Object.assign(PasswordInputRoot, {
|
|
125
|
+
Root: PasswordInputRoot,
|
|
126
|
+
RootProvider: PasswordInputRootProvider,
|
|
127
|
+
Context: PasswordInput.Context,
|
|
128
|
+
Label: PasswordInputLabel,
|
|
129
|
+
Control: PasswordInputControl,
|
|
130
|
+
Field: PasswordInputField,
|
|
131
|
+
Input: PasswordInputInput,
|
|
132
|
+
VisibilityTrigger: PasswordInputVisibilityTrigger,
|
|
133
|
+
Indicator: PasswordInputIndicator
|
|
134
|
+
});
|
|
135
|
+
export { PasswordInput_PasswordInput as PasswordInput, usePasswordInput, usePasswordInputContext };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { PasswordInput, usePasswordInput, usePasswordInputContext } from "@ark-ui/solid/password-input";
|
|
2
|
+
import { children, createEffect, splitProps } from "solid-js";
|
|
3
|
+
import { cn } from "../../internal/cn.jsx";
|
|
4
|
+
import { EyeClosedIcon, EyeIcon } from "../../internal/icons/ui/Icons.jsx";
|
|
5
|
+
function PasswordInputRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'class'
|
|
8
|
+
]);
|
|
9
|
+
return <PasswordInput.Root data-slot="password-input-root" class={cn('flex w-full max-w-none flex-col gap-1 text-foreground data-disabled:opacity-50', local.class)} {...others}/>;
|
|
10
|
+
}
|
|
11
|
+
function PasswordInputRootProvider(props) {
|
|
12
|
+
const [local, others] = splitProps(props, [
|
|
13
|
+
'class'
|
|
14
|
+
]);
|
|
15
|
+
return <PasswordInput.RootProvider data-slot="password-input-root-provider" class={cn('flex w-full max-w-none flex-col gap-1 text-foreground data-disabled:opacity-50', local.class)} {...others}/>;
|
|
16
|
+
}
|
|
17
|
+
function PasswordInputLabel(props) {
|
|
18
|
+
const [local, others] = splitProps(props, [
|
|
19
|
+
'class'
|
|
20
|
+
]);
|
|
21
|
+
return <PasswordInput.Label data-slot="password-input-label" class={cn('inline-flex items-center gap-1 text-sm leading-5 font-medium text-foreground', local.class)} {...others}/>;
|
|
22
|
+
}
|
|
23
|
+
function PasswordInputControl(props) {
|
|
24
|
+
const [local, others] = splitProps(props, [
|
|
25
|
+
'class'
|
|
26
|
+
]);
|
|
27
|
+
return <PasswordInput.Control data-slot="password-input-control" class={cn('flex min-h-control-md w-full items-center rounded-md border border-border bg-background pr-2 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,opacity] duration-200 ease-in-out focus-within:outline-ring data-invalid:border-destructive data-invalid:focus-within:outline-destructive data-readonly:bg-background data-readonly:text-foreground motion-reduce:transition-none', local.class)} {...others}/>;
|
|
28
|
+
}
|
|
29
|
+
function PasswordInputInput(props) {
|
|
30
|
+
const [local, others] = splitProps(props, [
|
|
31
|
+
'asChild',
|
|
32
|
+
'class',
|
|
33
|
+
'defaultValue',
|
|
34
|
+
'ref'
|
|
35
|
+
]);
|
|
36
|
+
let inputRef;
|
|
37
|
+
createEffect(()=>{
|
|
38
|
+
if (inputRef) inputRef.defaultValue = String(local.defaultValue ?? '');
|
|
39
|
+
});
|
|
40
|
+
return <PasswordInput.Input asChild={local.asChild} {...others} {...local.asChild ? {
|
|
41
|
+
'prop:defaultValue': local.defaultValue
|
|
42
|
+
} : {}} data-slot="password-input-input" class={cn('min-h-0 min-w-0 flex-auto bg-transparent px-3 py-1 text-md leading-6 text-foreground outline-0 transition-opacity duration-200 ease-in-out placeholder:text-muted-foreground disabled:pointer-events-none data-disabled:pointer-events-none motion-reduce:transition-none', local.class)} ref={(element)=>{
|
|
43
|
+
inputRef = element;
|
|
44
|
+
if ('function' == typeof local.ref) local.ref(element);
|
|
45
|
+
}}/>;
|
|
46
|
+
}
|
|
47
|
+
function PasswordInputVisibilityTrigger(props) {
|
|
48
|
+
const [local, others] = splitProps(props, [
|
|
49
|
+
'class'
|
|
50
|
+
]);
|
|
51
|
+
return <PasswordInput.VisibilityTrigger data-slot="password-input-visibility-trigger" class={cn('group/password-input-trigger inline-flex size-control-sm min-w-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-readonly:cursor-default motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:text-foreground', local.class)} {...others}/>;
|
|
52
|
+
}
|
|
53
|
+
function PasswordInputIndicator(props) {
|
|
54
|
+
const [local, others] = splitProps(props, [
|
|
55
|
+
'children',
|
|
56
|
+
'class',
|
|
57
|
+
'fallback'
|
|
58
|
+
]);
|
|
59
|
+
const resolvedChildren = children(()=>local.children);
|
|
60
|
+
return <PasswordInput.Indicator data-slot="password-input-indicator" class={cn("inline-flex items-center justify-center rounded-sm p-1 transition-[background-color,color] duration-200 ease-in-out group-hover/password-input-trigger:bg-muted group-focus-visible/password-input-trigger:bg-muted group-data-[disabled]/password-input-trigger:bg-transparent group-data-[readonly]/password-input-trigger:bg-transparent motion-reduce:transition-none [&>svg:not([class*='size-'])]:size-4", local.class)} fallback={local.fallback ?? <EyeClosedIcon/>} {...others}>
|
|
61
|
+
{resolvedChildren() ?? <EyeIcon/>}
|
|
62
|
+
</PasswordInput.Indicator>;
|
|
63
|
+
}
|
|
64
|
+
function PasswordInputField(props) {
|
|
65
|
+
return <PasswordInputControl {...props}>
|
|
66
|
+
<PasswordInputInput/>
|
|
67
|
+
<PasswordInputVisibilityTrigger>
|
|
68
|
+
<PasswordInputIndicator/>
|
|
69
|
+
</PasswordInputVisibilityTrigger>
|
|
70
|
+
</PasswordInputControl>;
|
|
71
|
+
}
|
|
72
|
+
const PasswordInput_PasswordInput = Object.assign(PasswordInputRoot, {
|
|
73
|
+
Root: PasswordInputRoot,
|
|
74
|
+
RootProvider: PasswordInputRootProvider,
|
|
75
|
+
Context: PasswordInput.Context,
|
|
76
|
+
Label: PasswordInputLabel,
|
|
77
|
+
Control: PasswordInputControl,
|
|
78
|
+
Field: PasswordInputField,
|
|
79
|
+
Input: PasswordInputInput,
|
|
80
|
+
VisibilityTrigger: PasswordInputVisibilityTrigger,
|
|
81
|
+
Indicator: PasswordInputIndicator
|
|
82
|
+
});
|
|
83
|
+
export { PasswordInput_PasswordInput as PasswordInput, usePasswordInput, usePasswordInputContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordInput, usePasswordInput, usePasswordInputContext } from './PasswordInput.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordInput, usePasswordInput, usePasswordInputContext } from "./PasswordInput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordInput, usePasswordInput, usePasswordInputContext } from "./PasswordInput.jsx";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PinInput as PinInputPrimitive, usePinInputContext, type UsePinInputProps, type UsePinInputReturn } from '@ark-ui/solid/pin-input';
|
|
2
|
+
import type { ComponentProps } from 'solid-js';
|
|
3
|
+
declare function PinInputRoot(props: ComponentProps<typeof PinInputPrimitive.Root>): import("solid-js").JSX.Element;
|
|
4
|
+
declare function PinInputRootProvider(props: ComponentProps<typeof PinInputPrimitive.RootProvider>): import("solid-js").JSX.Element;
|
|
5
|
+
declare function PinInputLabel(props: ComponentProps<typeof PinInputPrimitive.Label>): import("solid-js").JSX.Element;
|
|
6
|
+
declare function PinInputControl(props: ComponentProps<typeof PinInputPrimitive.Control>): import("solid-js").JSX.Element;
|
|
7
|
+
declare function PinInputInput(props: ComponentProps<typeof PinInputPrimitive.Input>): import("solid-js").JSX.Element;
|
|
8
|
+
declare function PinInputInputs(props: {
|
|
9
|
+
class?: string;
|
|
10
|
+
}): import("solid-js").JSX.Element;
|
|
11
|
+
declare function PinInputSeparator(props: ComponentProps<'span'>): import("solid-js").JSX.Element;
|
|
12
|
+
declare function usePinInput(props?: UsePinInputProps | (() => UsePinInputProps)): UsePinInputReturn;
|
|
13
|
+
declare const PinInput: typeof PinInputRoot & {
|
|
14
|
+
Root: typeof PinInputRoot;
|
|
15
|
+
RootProvider: typeof PinInputRootProvider;
|
|
16
|
+
Context: (props: PinInputPrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
17
|
+
HiddenInput: (props: PinInputPrimitive.HiddenInputProps) => import("solid-js").JSX.Element;
|
|
18
|
+
Label: typeof PinInputLabel;
|
|
19
|
+
Control: typeof PinInputControl;
|
|
20
|
+
Input: typeof PinInputInput;
|
|
21
|
+
Inputs: typeof PinInputInputs;
|
|
22
|
+
Separator: typeof PinInputSeparator;
|
|
23
|
+
};
|
|
24
|
+
export { PinInput, usePinInput, usePinInputContext };
|