@moduix/react 1.1.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 +21 -0
- package/README.md +252 -0
- package/dist/components/accordion/Accordion.css +190 -0
- package/dist/components/accordion/Accordion.d.ts +13 -0
- package/dist/components/accordion/Accordion.js +67 -0
- package/dist/components/accordion/Accordion.module.js +15 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/alert/Alert.css +108 -0
- package/dist/components/alert/Alert.d.ts +14 -0
- package/dist/components/alert/Alert.js +69 -0
- package/dist/components/alert/Alert.module.js +11 -0
- package/dist/components/angle-slider/AngleSlider.css +192 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +16 -0
- package/dist/components/angle-slider/AngleSlider.js +92 -0
- package/dist/components/angle-slider/AngleSlider.module.js +13 -0
- package/dist/components/angle-slider/index.d.ts +2 -0
- package/dist/components/aspect-ratio/AspectRatio.css +14 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +10 -0
- package/dist/components/aspect-ratio/AspectRatio.js +24 -0
- package/dist/components/aspect-ratio/AspectRatio.module.js +5 -0
- package/dist/components/avatar/Avatar.css +75 -0
- package/dist/components/avatar/Avatar.d.ts +19 -0
- package/dist/components/avatar/Avatar.js +49 -0
- package/dist/components/avatar/Avatar.module.js +9 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/Badge.css +66 -0
- package/dist/components/badge/Badge.d.ts +11 -0
- package/dist/components/badge/Badge.js +35 -0
- package/dist/components/badge/Badge.module.js +8 -0
- package/dist/components/bleed/Bleed.css +51 -0
- package/dist/components/bleed/Bleed.d.ts +12 -0
- package/dist/components/bleed/Bleed.js +22 -0
- package/dist/components/bleed/Bleed.module.js +5 -0
- package/dist/components/breadcrumbs/Breadcrumbs.css +90 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +95 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +13 -0
- package/dist/components/button/Button.css +193 -0
- package/dist/components/button/Button.d.ts +14 -0
- package/dist/components/button/Button.js +28 -0
- package/dist/components/button/Button.module.js +5 -0
- package/dist/components/card/Card.css +148 -0
- package/dist/components/card/Card.d.ts +19 -0
- package/dist/components/card/Card.js +101 -0
- package/dist/components/card/Card.module.js +14 -0
- package/dist/components/carousel/Carousel.css +198 -0
- package/dist/components/carousel/Carousel.d.ts +19 -0
- package/dist/components/carousel/Carousel.js +128 -0
- package/dist/components/carousel/Carousel.module.js +18 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.css +135 -0
- package/dist/components/checkbox/Checkbox.d.ts +22 -0
- package/dist/components/checkbox/Checkbox.js +84 -0
- package/dist/components/checkbox/Checkbox.module.js +12 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.css +145 -0
- package/dist/components/clipboard/Clipboard.d.ts +15 -0
- package/dist/components/clipboard/Clipboard.js +96 -0
- package/dist/components/clipboard/Clipboard.module.js +14 -0
- package/dist/components/clipboard/index.d.ts +2 -0
- package/dist/components/close-button/CloseButton.css +49 -0
- package/dist/components/close-button/CloseButton.d.ts +6 -0
- package/dist/components/close-button/CloseButton.js +39 -0
- package/dist/components/close-button/CloseButton.module.js +5 -0
- package/dist/components/collapsible/Collapsible.css +138 -0
- package/dist/components/collapsible/Collapsible.d.ts +12 -0
- package/dist/components/collapsible/Collapsible.js +59 -0
- package/dist/components/collapsible/Collapsible.module.js +12 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/color-picker/ColorPicker.css +433 -0
- package/dist/components/color-picker/ColorPicker.d.ts +39 -0
- package/dist/components/color-picker/ColorPicker.js +275 -0
- package/dist/components/color-picker/ColorPicker.module.js +33 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/combobox/Combobox.css +315 -0
- package/dist/components/combobox/Combobox.d.ts +24 -0
- package/dist/components/combobox/Combobox.js +169 -0
- package/dist/components/combobox/Combobox.module.js +23 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/command-palette/CommandPalette.css +492 -0
- package/dist/components/command-palette/CommandPalette.d.ts +71 -0
- package/dist/components/command-palette/CommandPalette.js +383 -0
- package/dist/components/command-palette/CommandPalette.module.js +43 -0
- package/dist/components/command-palette/index.d.ts +2 -0
- package/dist/components/container/Container.css +45 -0
- package/dist/components/container/Container.d.ts +14 -0
- package/dist/components/container/Container.js +22 -0
- package/dist/components/container/Container.module.js +5 -0
- package/dist/components/date-input/DateInput.css +104 -0
- package/dist/components/date-input/DateInput.d.ts +22 -0
- package/dist/components/date-input/DateInput.js +83 -0
- package/dist/components/date-input/DateInput.module.js +12 -0
- package/dist/components/date-input/index.d.ts +2 -0
- package/dist/components/date-picker/DatePicker.css +420 -0
- package/dist/components/date-picker/DatePicker.d.ts +39 -0
- package/dist/components/date-picker/DatePicker.js +284 -0
- package/dist/components/date-picker/DatePicker.module.js +29 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/dialog/Dialog.css +221 -0
- package/dist/components/dialog/Dialog.d.ts +46 -0
- package/dist/components/dialog/Dialog.js +133 -0
- package/dist/components/dialog/Dialog.module.js +21 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/drawer/Drawer.css +482 -0
- package/dist/components/drawer/Drawer.d.ts +56 -0
- package/dist/components/drawer/Drawer.js +188 -0
- package/dist/components/drawer/Drawer.module.js +32 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/editable/Editable.css +171 -0
- package/dist/components/editable/Editable.d.ts +17 -0
- package/dist/components/editable/Editable.js +106 -0
- package/dist/components/editable/Editable.module.js +13 -0
- package/dist/components/editable/index.d.ts +2 -0
- package/dist/components/empty/Empty.css +78 -0
- package/dist/components/empty/Empty.d.ts +11 -0
- package/dist/components/empty/Empty.js +77 -0
- package/dist/components/empty/Empty.module.js +12 -0
- package/dist/components/field/Field.css +113 -0
- package/dist/components/field/Field.d.ts +25 -0
- package/dist/components/field/Field.js +104 -0
- package/dist/components/field/Field.module.js +15 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/fieldset/Fieldset.css +52 -0
- package/dist/components/fieldset/Fieldset.d.ts +12 -0
- package/dist/components/fieldset/Fieldset.js +56 -0
- package/dist/components/fieldset/Fieldset.module.js +10 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.css +290 -0
- package/dist/components/file-upload/FileUpload.d.ts +28 -0
- package/dist/components/file-upload/FileUpload.js +149 -0
- package/dist/components/file-upload/FileUpload.module.js +19 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/floating-panel/FloatingPanel.css +319 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +45 -0
- package/dist/components/floating-panel/FloatingPanel.js +194 -0
- package/dist/components/floating-panel/FloatingPanel.module.js +20 -0
- package/dist/components/floating-panel/index.d.ts +2 -0
- package/dist/components/heading/Heading.css +58 -0
- package/dist/components/heading/Heading.d.ts +17 -0
- package/dist/components/heading/Heading.js +32 -0
- package/dist/components/heading/Heading.module.js +5 -0
- package/dist/components/highlight/Highlight.css +15 -0
- package/dist/components/highlight/Highlight.d.ts +13 -0
- package/dist/components/highlight/Highlight.js +18 -0
- package/dist/components/highlight/Highlight.module.js +5 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/hover-card/HoverCard.css +107 -0
- package/dist/components/hover-card/HoverCard.d.ts +28 -0
- package/dist/components/hover-card/HoverCard.js +81 -0
- package/dist/components/hover-card/HoverCard.module.js +13 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +147 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +15 -0
- package/dist/components/image-cropper/ImageCropper.js +75 -0
- package/dist/components/image-cropper/ImageCropper.module.js +12 -0
- package/dist/components/image-cropper/index.d.ts +2 -0
- package/dist/components/input/Input.css +83 -0
- package/dist/components/input/Input.d.ts +15 -0
- package/dist/components/input/Input.js +22 -0
- package/dist/components/input/Input.module.js +5 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input-group/InputGroup.css +158 -0
- package/dist/components/input-group/InputGroup.d.ts +25 -0
- package/dist/components/input-group/InputGroup.js +76 -0
- package/dist/components/input-group/InputGroup.module.js +11 -0
- package/dist/components/input-group/index.d.ts +2 -0
- package/dist/components/kbd/Kbd.css +45 -0
- package/dist/components/kbd/Kbd.d.ts +7 -0
- package/dist/components/kbd/Kbd.js +33 -0
- package/dist/components/kbd/Kbd.module.js +8 -0
- package/dist/components/lightbox/Lightbox.css +242 -0
- package/dist/components/lightbox/Lightbox.d.ts +71 -0
- package/dist/components/lightbox/Lightbox.js +219 -0
- package/dist/components/lightbox/Lightbox.module.js +22 -0
- package/dist/components/lightbox/index.d.ts +2 -0
- package/dist/components/list/List.css +118 -0
- package/dist/components/list/List.d.ts +24 -0
- package/dist/components/list/List.js +48 -0
- package/dist/components/list/List.module.js +5 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/listbox/Listbox.css +255 -0
- package/dist/components/listbox/Listbox.d.ts +35 -0
- package/dist/components/listbox/Listbox.js +145 -0
- package/dist/components/listbox/Listbox.module.js +20 -0
- package/dist/components/listbox/index.d.ts +2 -0
- package/dist/components/marquee/Marquee.css +114 -0
- package/dist/components/marquee/Marquee.d.ts +13 -0
- package/dist/components/marquee/Marquee.js +65 -0
- package/dist/components/marquee/Marquee.module.js +13 -0
- package/dist/components/marquee/index.d.ts +2 -0
- package/dist/components/menu/Menu.css +371 -0
- package/dist/components/menu/Menu.d.ts +83 -0
- package/dist/components/menu/Menu.js +240 -0
- package/dist/components/menu/Menu.module.js +33 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/native-select/NativeSelect.css +104 -0
- package/dist/components/native-select/NativeSelect.d.ts +8 -0
- package/dist/components/native-select/NativeSelect.js +32 -0
- package/dist/components/native-select/NativeSelect.module.js +9 -0
- package/dist/components/native-select/index.d.ts +2 -0
- package/dist/components/number-input/NumberInput.css +162 -0
- package/dist/components/number-input/NumberInput.d.ts +16 -0
- package/dist/components/number-input/NumberInput.js +95 -0
- package/dist/components/number-input/NumberInput.module.js +14 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/pagination/Pagination.css +99 -0
- package/dist/components/pagination/Pagination.d.ts +16 -0
- package/dist/components/pagination/Pagination.js +101 -0
- package/dist/components/pagination/Pagination.module.js +12 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/password-input/PasswordInput.css +155 -0
- package/dist/components/password-input/PasswordInput.d.ts +14 -0
- package/dist/components/password-input/PasswordInput.js +77 -0
- package/dist/components/password-input/PasswordInput.module.js +12 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/pin-input/PinInput.css +96 -0
- package/dist/components/pin-input/PinInput.d.ts +23 -0
- package/dist/components/pin-input/PinInput.js +85 -0
- package/dist/components/pin-input/PinInput.module.js +11 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/popover/Popover.css +162 -0
- package/dist/components/popover/Popover.d.ts +50 -0
- package/dist/components/popover/Popover.js +167 -0
- package/dist/components/popover/Popover.module.js +20 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/progress-circular/ProgressCircular.css +68 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +15 -0
- package/dist/components/progress-circular/ProgressCircular.js +83 -0
- package/dist/components/progress-circular/ProgressCircular.module.js +14 -0
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-linear/ProgressLinear.css +106 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +14 -0
- package/dist/components/progress-linear/ProgressLinear.js +74 -0
- package/dist/components/progress-linear/ProgressLinear.module.js +14 -0
- package/dist/components/progress-linear/index.d.ts +2 -0
- package/dist/components/qr-code/QrCode.css +100 -0
- package/dist/components/qr-code/QrCode.d.ts +13 -0
- package/dist/components/qr-code/QrCode.js +65 -0
- package/dist/components/qr-code/QrCode.module.js +11 -0
- package/dist/components/qr-code/index.d.ts +2 -0
- package/dist/components/radio-group/RadioGroup.css +147 -0
- package/dist/components/radio-group/RadioGroup.d.ts +20 -0
- package/dist/components/radio-group/RadioGroup.js +83 -0
- package/dist/components/radio-group/RadioGroup.module.js +12 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/rating-group/RatingGroup.css +133 -0
- package/dist/components/rating-group/RatingGroup.d.ts +23 -0
- package/dist/components/rating-group/RatingGroup.js +86 -0
- package/dist/components/rating-group/RatingGroup.module.js +13 -0
- package/dist/components/rating-group/index.d.ts +2 -0
- package/dist/components/scroll-area/ScrollArea.css +162 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +21 -0
- package/dist/components/scroll-area/ScrollArea.js +76 -0
- package/dist/components/scroll-area/ScrollArea.module.js +12 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/segment-group/SegmentGroup.css +120 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +15 -0
- package/dist/components/segment-group/SegmentGroup.js +83 -0
- package/dist/components/segment-group/SegmentGroup.module.js +12 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/select/Select.css +351 -0
- package/dist/components/select/Select.d.ts +48 -0
- package/dist/components/select/Select.js +210 -0
- package/dist/components/select/Select.module.js +27 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/separator/Separator.css +45 -0
- package/dist/components/separator/Separator.d.ts +14 -0
- package/dist/components/separator/Separator.js +27 -0
- package/dist/components/separator/Separator.module.js +5 -0
- package/dist/components/sidebar/Sidebar.css +341 -0
- package/dist/components/sidebar/Sidebar.d.ts +48 -0
- package/dist/components/sidebar/Sidebar.js +279 -0
- package/dist/components/sidebar/Sidebar.module.js +23 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/signature-pad/SignaturePad.css +123 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +15 -0
- package/dist/components/signature-pad/SignaturePad.js +82 -0
- package/dist/components/signature-pad/SignaturePad.module.js +12 -0
- package/dist/components/signature-pad/index.d.ts +2 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +18 -0
- package/dist/components/simple-grid/SimpleGrid.js +32 -0
- package/dist/components/skeleton/Skeleton.css +29 -0
- package/dist/components/skeleton/Skeleton.d.ts +20 -0
- package/dist/components/skeleton/Skeleton.js +32 -0
- package/dist/components/skeleton/Skeleton.module.js +5 -0
- package/dist/components/slider/Slider.css +167 -0
- package/dist/components/slider/Slider.d.ts +19 -0
- package/dist/components/slider/Slider.js +119 -0
- package/dist/components/slider/Slider.module.js +16 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/spinner/Spinner.css +60 -0
- package/dist/components/spinner/Spinner.d.ts +12 -0
- package/dist/components/spinner/Spinner.js +40 -0
- package/dist/components/spinner/Spinner.module.js +9 -0
- package/dist/components/split-button/SplitButton.css +51 -0
- package/dist/components/split-button/SplitButton.d.ts +36 -0
- package/dist/components/split-button/SplitButton.js +93 -0
- package/dist/components/split-button/SplitButton.module.js +9 -0
- package/dist/components/split-button/index.d.ts +2 -0
- package/dist/components/splitter/Splitter.css +170 -0
- package/dist/components/splitter/Splitter.d.ts +12 -0
- package/dist/components/splitter/Splitter.js +68 -0
- package/dist/components/splitter/Splitter.module.js +10 -0
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/stack/Stack.css +13 -0
- package/dist/components/stack/Stack.d.ts +31 -0
- package/dist/components/stack/Stack.js +36 -0
- package/dist/components/stack/Stack.module.js +5 -0
- package/dist/components/stack/index.d.ts +2 -0
- package/dist/components/steps/Steps.css +283 -0
- package/dist/components/steps/Steps.d.ts +19 -0
- package/dist/components/steps/Steps.js +122 -0
- package/dist/components/steps/Steps.module.js +17 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +130 -0
- package/dist/components/switch/Switch.d.ts +21 -0
- package/dist/components/switch/Switch.js +67 -0
- package/dist/components/switch/Switch.module.js +10 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/table/Table.css +162 -0
- package/dist/components/table/Table.d.ts +41 -0
- package/dist/components/table/Table.js +173 -0
- package/dist/components/table/Table.module.js +18 -0
- package/dist/components/tabs/Tabs.css +186 -0
- package/dist/components/tabs/Tabs.d.ts +20 -0
- package/dist/components/tabs/Tabs.js +67 -0
- package/dist/components/tabs/Tabs.module.js +11 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tag/Tag.css +128 -0
- package/dist/components/tag/Tag.d.ts +18 -0
- package/dist/components/tag/Tag.js +87 -0
- package/dist/components/tag/Tag.module.js +11 -0
- package/dist/components/tags-input/TagsInput.css +248 -0
- package/dist/components/tags-input/TagsInput.d.ts +20 -0
- package/dist/components/tags-input/TagsInput.js +139 -0
- package/dist/components/tags-input/TagsInput.module.js +16 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/text/Text.css +87 -0
- package/dist/components/text/Text.d.ts +27 -0
- package/dist/components/text/Text.js +43 -0
- package/dist/components/text/Text.module.js +5 -0
- package/dist/components/textarea/Textarea.css +55 -0
- package/dist/components/textarea/Textarea.d.ts +6 -0
- package/dist/components/textarea/Textarea.js +21 -0
- package/dist/components/textarea/Textarea.module.js +5 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/timer/Timer.css +95 -0
- package/dist/components/timer/Timer.d.ts +14 -0
- package/dist/components/timer/Timer.js +74 -0
- package/dist/components/timer/Timer.module.js +12 -0
- package/dist/components/timer/index.d.ts +2 -0
- package/dist/components/toast/Toast.css +154 -0
- package/dist/components/toast/Toast.d.ts +17 -0
- package/dist/components/toast/Toast.js +92 -0
- package/dist/components/toast/Toast.module.js +12 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toggle/Toggle.css +167 -0
- package/dist/components/toggle/Toggle.d.ts +16 -0
- package/dist/components/toggle/Toggle.js +31 -0
- package/dist/components/toggle/Toggle.module.js +8 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroup.css +42 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +25 -0
- package/dist/components/toggle-group/ToggleGroup.js +62 -0
- package/dist/components/toggle-group/ToggleGroup.module.js +8 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.css +125 -0
- package/dist/components/tooltip/Tooltip.d.ts +28 -0
- package/dist/components/tooltip/Tooltip.js +75 -0
- package/dist/components/tooltip/Tooltip.module.js +13 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tour/Tour.css +286 -0
- package/dist/components/tour/Tour.d.ts +30 -0
- package/dist/components/tour/Tour.js +149 -0
- package/dist/components/tour/Tour.module.js +23 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tree-view/TreeView.css +261 -0
- package/dist/components/tree-view/TreeView.d.ts +32 -0
- package/dist/components/tree-view/TreeView.js +171 -0
- package/dist/components/tree-view/TreeView.module.js +26 -0
- package/dist/components/tree-view/index.d.ts +2 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +83 -0
- package/dist/lib/moduix/icons/ui/Icons.d.ts +51 -0
- package/dist/lib/moduix/icons/ui/Icons.js +759 -0
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -0
- package/dist/lib/moduix/normalizeClassName.js +4 -0
- package/dist/lib/moduix/overlayPortal.d.ts +9 -0
- package/dist/lib/moduix/overlayPortal.js +21 -0
- package/dist/lib/moduix/styles/reset.css +175 -0
- package/dist/lib/moduix/styles/style.css +288 -0
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLArkProps } from "@ark-ui/react/factory";
|
|
2
|
+
|
|
3
|
+
//#region src/components/list/List.d.ts
|
|
4
|
+
type ListMarker = 'disc' | 'decimal' | 'none';
|
|
5
|
+
type ListGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
6
|
+
type ListSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
type ListTone = 'default' | 'muted' | 'subtle' | 'primary' | 'destructive';
|
|
8
|
+
type ListBaseProps = {
|
|
9
|
+
marker?: ListMarker;
|
|
10
|
+
gap?: ListGap;
|
|
11
|
+
size?: ListSize;
|
|
12
|
+
tone?: ListTone;
|
|
13
|
+
};
|
|
14
|
+
type ListRootProps = (HTMLArkProps<'ul'> & ListBaseProps & {
|
|
15
|
+
as?: 'ul';
|
|
16
|
+
}) | (HTMLArkProps<'ol'> & ListBaseProps & {
|
|
17
|
+
as: 'ol';
|
|
18
|
+
});
|
|
19
|
+
declare const List: import("react").ForwardRefExoticComponent<ListRootProps & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>> & {
|
|
20
|
+
Root: import("react").ForwardRefExoticComponent<ListRootProps & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
|
21
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { List };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import List_module_default from "./List.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { ark } from "@ark-ui/react/factory";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
//#region src/components/list/List.tsx
|
|
8
|
+
const ListRoot = forwardRef(function ListRoot({ as, asChild, className, gap = "sm", marker, role, size = "md", tone = "default", ...props }, ref) {
|
|
9
|
+
const markerValue = marker ?? "auto";
|
|
10
|
+
const rootProps = {
|
|
11
|
+
asChild,
|
|
12
|
+
role: role ?? (markerValue === "none" ? "list" : void 0),
|
|
13
|
+
...props,
|
|
14
|
+
"data-scope": "list",
|
|
15
|
+
"data-part": "root",
|
|
16
|
+
"data-slot": "list-root",
|
|
17
|
+
"data-gap": gap,
|
|
18
|
+
"data-marker": markerValue,
|
|
19
|
+
"data-size": size,
|
|
20
|
+
"data-tone": tone,
|
|
21
|
+
className: clsx(List_module_default.root, normalizeClassName(className))
|
|
22
|
+
};
|
|
23
|
+
if (as === "ol") return /* @__PURE__ */ jsx(ark.ol, {
|
|
24
|
+
ref,
|
|
25
|
+
...rootProps
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ jsx(ark.ul, {
|
|
28
|
+
ref,
|
|
29
|
+
...rootProps
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const ListItem = forwardRef(function ListItem({ asChild, className, ...props }, ref) {
|
|
33
|
+
return /* @__PURE__ */ jsx(ark.li, {
|
|
34
|
+
ref,
|
|
35
|
+
asChild,
|
|
36
|
+
...props,
|
|
37
|
+
"data-scope": "list",
|
|
38
|
+
"data-part": "item",
|
|
39
|
+
"data-slot": "list-item",
|
|
40
|
+
className: normalizeClassName(className)
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const List = Object.assign(ListRoot, {
|
|
44
|
+
Root: ListRoot,
|
|
45
|
+
Item: ListItem
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { List };
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.-yleua_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: var(--listbox-width, 16rem);
|
|
5
|
+
max-width: var(--listbox-max-width, 100%);
|
|
6
|
+
gap: var(--listbox-root-gap, var(--spacing-3));
|
|
7
|
+
min-width: 0;
|
|
8
|
+
color: var(--listbox-color, var(--color-foreground));
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
display: flex;
|
|
11
|
+
|
|
12
|
+
&[data-disabled] {
|
|
13
|
+
opacity: var(--listbox-disabled-opacity, var(--opacity-disabled));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.-yleua_label {
|
|
18
|
+
color: var(--listbox-label-color, var(--listbox-color, var(--color-foreground)));
|
|
19
|
+
font-size: var(--listbox-label-font-size, var(--text-sm));
|
|
20
|
+
font-weight: var(--listbox-label-font-weight, var(--weight-medium));
|
|
21
|
+
line-height: var(--listbox-label-line-height, var(--line-height-text-sm));
|
|
22
|
+
user-select: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.-yleua_input {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-height: var(--listbox-input-height, var(--size-lg));
|
|
29
|
+
border: var(--listbox-input-border-width, var(--listbox-border-width, var(--border-width-sm)))
|
|
30
|
+
solid var(--listbox-input-border-color, var(--listbox-border-color, var(--color-border)));
|
|
31
|
+
border-radius: var(--listbox-input-radius, var(--listbox-radius, var(--radius-md)));
|
|
32
|
+
padding: var(--listbox-input-padding-y, var(--spacing-2))
|
|
33
|
+
var(--listbox-input-padding-x, var(--spacing-3));
|
|
34
|
+
background-color: var(--listbox-input-bg, var(--color-background));
|
|
35
|
+
color: var(--listbox-input-color, var(--listbox-color, var(--color-foreground)));
|
|
36
|
+
font: inherit;
|
|
37
|
+
font-size: var(--listbox-input-font-size, var(--text-md));
|
|
38
|
+
line-height: var(--listbox-input-line-height, var(--line-height-text-md));
|
|
39
|
+
outline: var(--listbox-input-focus-ring-width, var(--listbox-focus-ring-width, var(--border-width-sm)))
|
|
40
|
+
solid transparent;
|
|
41
|
+
outline-offset: calc(var(--listbox-input-focus-ring-width, var(--listbox-focus-ring-width, var(--border-width-sm))) *
|
|
42
|
+
-1);
|
|
43
|
+
transition: border-color var(--listbox-transition, var(--transition-default)),
|
|
44
|
+
outline-color var(--listbox-transition, var(--transition-default)),
|
|
45
|
+
opacity var(--listbox-transition, var(--transition-default));
|
|
46
|
+
margin: 0;
|
|
47
|
+
|
|
48
|
+
&::placeholder {
|
|
49
|
+
color: var(--listbox-placeholder-color, var(--color-muted-foreground));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
border-color: var(--listbox-input-focus-ring-color, var(--listbox-focus-ring-color, var(--color-ring)));
|
|
54
|
+
outline-color: var(--listbox-input-focus-ring-color, var(--listbox-focus-ring-color, var(--color-ring)));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-disabled], &[disabled] {
|
|
58
|
+
opacity: var(--listbox-disabled-opacity, var(--opacity-disabled));
|
|
59
|
+
cursor: default;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.-yleua_content {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
min-height: 0;
|
|
66
|
+
max-height: var(--listbox-content-max-height, 14rem);
|
|
67
|
+
border: var(--listbox-border-width, var(--border-width-sm)) solid
|
|
68
|
+
var(--listbox-border-color, var(--color-border));
|
|
69
|
+
border-radius: var(--listbox-radius, var(--radius-md));
|
|
70
|
+
padding-block: var(--listbox-content-padding-y, var(--spacing-1));
|
|
71
|
+
background-color: var(--listbox-bg, var(--color-background));
|
|
72
|
+
color: var(--listbox-color, var(--color-foreground));
|
|
73
|
+
outline: var(--listbox-focus-ring-width, var(--border-width-sm)) solid transparent;
|
|
74
|
+
outline-offset: calc(var(--listbox-focus-ring-width, var(--border-width-sm)) * -1);
|
|
75
|
+
overscroll-behavior: auto;
|
|
76
|
+
scrollbar-gutter: stable;
|
|
77
|
+
scroll-padding-block: var(--listbox-content-padding-y, var(--spacing-1));
|
|
78
|
+
transition: border-color var(--listbox-transition, var(--transition-default)),
|
|
79
|
+
outline-color var(--listbox-transition, var(--transition-default));
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
display: flex;
|
|
82
|
+
overflow: hidden auto;
|
|
83
|
+
|
|
84
|
+
&[data-layout="grid"] {
|
|
85
|
+
grid-template-columns: repeat(var(--column-count), minmax(0, 1fr));
|
|
86
|
+
gap: var(--listbox-grid-gap, var(--spacing-1));
|
|
87
|
+
padding: var(--listbox-grid-padding, var(--spacing-2));
|
|
88
|
+
display: grid;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&[data-orientation="horizontal"]:not([data-layout="grid"]) {
|
|
92
|
+
gap: var(--listbox-horizontal-gap, var(--spacing-2));
|
|
93
|
+
max-height: var(--listbox-horizontal-content-max-height, none);
|
|
94
|
+
padding-inline: var(--listbox-content-padding-y, var(--spacing-1));
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
overflow: auto hidden;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.-yleua_empty {
|
|
101
|
+
padding-block: var(--listbox-empty-padding-y, var(--spacing-3));
|
|
102
|
+
padding-inline: var(--listbox-empty-padding-x, var(--spacing-3));
|
|
103
|
+
color: var(--listbox-empty-color, var(--color-muted-foreground));
|
|
104
|
+
font-size: var(--listbox-empty-font-size, var(--text-sm));
|
|
105
|
+
line-height: var(--listbox-empty-line-height, var(--line-height-text-sm));
|
|
106
|
+
text-align: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.-yleua_itemGroup {
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
display: flex;
|
|
112
|
+
|
|
113
|
+
& + & {
|
|
114
|
+
margin-top: var(--listbox-item-group-gap, var(--spacing-2));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.-yleua_itemGroupLabel {
|
|
119
|
+
padding-block: var(--listbox-item-group-label-padding-y, var(--spacing-1));
|
|
120
|
+
padding-inline: var(--listbox-item-group-label-padding-x, var(--spacing-2));
|
|
121
|
+
color: var(--listbox-item-group-label-color, var(--color-muted-foreground));
|
|
122
|
+
font-size: var(--listbox-item-group-label-font-size, var(--text-xs));
|
|
123
|
+
font-weight: var(--listbox-item-group-label-font-weight, var(--weight-semibold));
|
|
124
|
+
line-height: var(--listbox-item-group-label-line-height, var(--line-height-text-xs));
|
|
125
|
+
user-select: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.-yleua_item {
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
width: calc(100% - var(--listbox-item-inset-x, var(--spacing-2)));
|
|
131
|
+
min-height: var(--listbox-item-min-height, 2rem);
|
|
132
|
+
grid-template-columns: minmax(0, 1fr) var(--listbox-item-indicator-size, 1rem);
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: var(--listbox-item-gap, var(--spacing-2));
|
|
135
|
+
margin-inline: calc(var(--listbox-item-inset-x, var(--spacing-2)) / 2);
|
|
136
|
+
border: var(--listbox-item-border-width, 0) solid var(--listbox-item-border-color, transparent);
|
|
137
|
+
border-radius: var(--listbox-item-radius, var(--radius-sm));
|
|
138
|
+
padding-block: var(--listbox-item-padding-y, var(--spacing-2));
|
|
139
|
+
padding-inline: var(--listbox-item-padding-x, var(--spacing-3));
|
|
140
|
+
background-color: var(--listbox-item-bg, transparent);
|
|
141
|
+
color: var(--listbox-item-color, var(--listbox-color, var(--color-foreground)));
|
|
142
|
+
font: inherit;
|
|
143
|
+
font-size: var(--listbox-item-font-size, var(--text-sm));
|
|
144
|
+
line-height: var(--listbox-item-line-height, var(--line-height-text-sm));
|
|
145
|
+
user-select: none;
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
transition: background-color var(--listbox-transition, var(--transition-default)),
|
|
148
|
+
color var(--listbox-transition, var(--transition-default));
|
|
149
|
+
outline: 0;
|
|
150
|
+
display: grid;
|
|
151
|
+
position: relative;
|
|
152
|
+
|
|
153
|
+
@media (hover: hover) {
|
|
154
|
+
&:not([data-disabled]):hover {
|
|
155
|
+
background-color: var(--listbox-hover-bg, var(--listbox-highlight-bg, var(--color-accent)));
|
|
156
|
+
color: var(--listbox-hover-color, var(--listbox-highlight-color, var(--color-accent-foreground)));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&[data-highlighted] {
|
|
161
|
+
background-color: var(--listbox-highlight-bg, var(--color-accent));
|
|
162
|
+
color: var(--listbox-highlight-color, var(--color-accent-foreground));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&[data-selected] {
|
|
166
|
+
color: var(--listbox-item-selected-color, var(--listbox-item-color, var(--color-foreground)));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&[data-disabled] {
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
color: var(--listbox-item-disabled-color, var(--color-muted-foreground));
|
|
172
|
+
opacity: var(--listbox-disabled-opacity, var(--opacity-disabled));
|
|
173
|
+
cursor: default;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.-yleua_content[data-orientation="horizontal"]:not([data-layout="grid"]) .-yleua_item {
|
|
178
|
+
width: var(--listbox-horizontal-item-width, 11rem);
|
|
179
|
+
min-width: var(--listbox-horizontal-item-width, 11rem);
|
|
180
|
+
align-items: flex-start;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.-yleua_content[data-layout="grid"] .-yleua_item {
|
|
184
|
+
text-align: center;
|
|
185
|
+
grid-template-columns: minmax(0, 1fr);
|
|
186
|
+
justify-items: center;
|
|
187
|
+
width: 100%;
|
|
188
|
+
min-width: 0;
|
|
189
|
+
margin-inline: 0;
|
|
190
|
+
|
|
191
|
+
&[data-selected] {
|
|
192
|
+
background-color: var(--listbox-grid-selected-bg, var(--color-muted));
|
|
193
|
+
color: var(--listbox-grid-selected-color, var(--color-foreground));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.-yleua_itemText {
|
|
198
|
+
text-overflow: ellipsis;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
flex: 1;
|
|
201
|
+
min-width: 0;
|
|
202
|
+
overflow: hidden;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.-yleua_itemIndicator {
|
|
206
|
+
width: var(--listbox-item-indicator-size, 1rem);
|
|
207
|
+
height: var(--listbox-item-indicator-size, 1rem);
|
|
208
|
+
color: var(--listbox-item-indicator-color, currentColor);
|
|
209
|
+
flex-shrink: 0;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
align-items: center;
|
|
212
|
+
display: inline-flex;
|
|
213
|
+
|
|
214
|
+
& > svg {
|
|
215
|
+
width: var(--listbox-item-indicator-icon-size, .75rem);
|
|
216
|
+
height: var(--listbox-item-indicator-icon-size, .75rem);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&[data-state="unchecked"] {
|
|
220
|
+
visibility: hidden;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.-yleua_valueText {
|
|
225
|
+
color: var(--listbox-value-text-color, var(--color-muted-foreground));
|
|
226
|
+
font-size: var(--listbox-value-text-font-size, var(--text-sm));
|
|
227
|
+
line-height: var(--listbox-value-text-line-height, var(--line-height-text-sm));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.-yleua_itemTextContent {
|
|
231
|
+
align-items: center;
|
|
232
|
+
gap: var(--listbox-item-text-content-gap, var(--spacing-2));
|
|
233
|
+
vertical-align: top;
|
|
234
|
+
min-width: 0;
|
|
235
|
+
max-width: 100%;
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.-yleua_itemTextIcon {
|
|
240
|
+
width: var(--listbox-item-text-icon-size, 1rem);
|
|
241
|
+
height: var(--listbox-item-text-icon-size, 1rem);
|
|
242
|
+
color: var(--listbox-item-text-icon-color, currentColor);
|
|
243
|
+
flex-shrink: 0;
|
|
244
|
+
justify-content: center;
|
|
245
|
+
align-items: center;
|
|
246
|
+
display: inline-flex;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.-yleua_itemTextLabel {
|
|
250
|
+
text-overflow: ellipsis;
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
min-width: 0;
|
|
253
|
+
overflow: hidden;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Listbox } from "@ark-ui/react/listbox";
|
|
3
|
+
|
|
4
|
+
//#region src/components/listbox/Listbox.d.ts
|
|
5
|
+
declare function ListboxItemTextContent({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
9
|
+
declare function ListboxItemTextIcon({
|
|
10
|
+
className,
|
|
11
|
+
...props
|
|
12
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
13
|
+
declare function ListboxItemTextLabel({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
17
|
+
declare const Listbox$1: Listbox.RootComponent & {
|
|
18
|
+
Root: Listbox.RootComponent;
|
|
19
|
+
RootProvider: Listbox.RootProviderComponent;
|
|
20
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Listbox.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
Input: import("react").ForwardRefExoticComponent<Omit<Listbox.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Listbox.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
Empty: import("react").ForwardRefExoticComponent<Omit<Listbox.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
ItemGroup: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
ItemGroupLabel: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
Item: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
ItemText: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
|
+
ValueText: import("react").ForwardRefExoticComponent<Omit<Listbox.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
30
|
+
ItemTextContent: typeof ListboxItemTextContent;
|
|
31
|
+
ItemTextIcon: typeof ListboxItemTextIcon;
|
|
32
|
+
ItemTextLabel: typeof ListboxItemTextLabel;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Listbox$1 as Listbox };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { CheckIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import Listbox_module_default from "./Listbox.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Listbox } from "@ark-ui/react/listbox";
|
|
8
|
+
//#region src/components/listbox/Listbox.tsx
|
|
9
|
+
const ListboxRoot = forwardRef(function ListboxRoot({ className, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Listbox.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "listbox-root",
|
|
13
|
+
className: clsx(Listbox_module_default.root, normalizeClassName(className)),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
const ListboxRootProvider = forwardRef(function ListboxRootProvider({ className, ...props }, ref) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Listbox.RootProvider, {
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "listbox-root-provider",
|
|
21
|
+
className: clsx(Listbox_module_default.root, normalizeClassName(className)),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const ListboxLabel = forwardRef(function ListboxLabel({ className, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ jsx(Listbox.Label, {
|
|
27
|
+
ref,
|
|
28
|
+
"data-slot": "listbox-label",
|
|
29
|
+
className: clsx(Listbox_module_default.label, normalizeClassName(className)),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const ListboxInput = forwardRef(function ListboxInput({ className, ...props }, ref) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Listbox.Input, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "listbox-input",
|
|
37
|
+
className: clsx(Listbox_module_default.input, normalizeClassName(className)),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const ListboxContent = forwardRef(function ListboxContent({ className, ...props }, ref) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Listbox.Content, {
|
|
43
|
+
ref,
|
|
44
|
+
"data-slot": "listbox-content",
|
|
45
|
+
className: clsx(Listbox_module_default.content, normalizeClassName(className)),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const ListboxEmpty = forwardRef(function ListboxEmpty({ className, ...props }, ref) {
|
|
50
|
+
return /* @__PURE__ */ jsx(Listbox.Empty, {
|
|
51
|
+
ref,
|
|
52
|
+
"data-slot": "listbox-empty",
|
|
53
|
+
className: clsx(Listbox_module_default.empty, normalizeClassName(className)),
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const ListboxItemGroup = forwardRef(function ListboxItemGroup({ className, ...props }, ref) {
|
|
58
|
+
return /* @__PURE__ */ jsx(Listbox.ItemGroup, {
|
|
59
|
+
ref,
|
|
60
|
+
"data-slot": "listbox-item-group",
|
|
61
|
+
className: clsx(Listbox_module_default.itemGroup, normalizeClassName(className)),
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
const ListboxItemGroupLabel = forwardRef(function ListboxItemGroupLabel({ className, ...props }, ref) {
|
|
66
|
+
return /* @__PURE__ */ jsx(Listbox.ItemGroupLabel, {
|
|
67
|
+
ref,
|
|
68
|
+
"data-slot": "listbox-item-group-label",
|
|
69
|
+
className: clsx(Listbox_module_default.itemGroupLabel, normalizeClassName(className)),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
const ListboxItem = forwardRef(function ListboxItem({ className, ...props }, ref) {
|
|
74
|
+
return /* @__PURE__ */ jsx(Listbox.Item, {
|
|
75
|
+
ref,
|
|
76
|
+
"data-slot": "listbox-item",
|
|
77
|
+
className: clsx(Listbox_module_default.item, normalizeClassName(className)),
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
const ListboxItemText = forwardRef(function ListboxItemText({ className, ...props }, ref) {
|
|
82
|
+
return /* @__PURE__ */ jsx(Listbox.ItemText, {
|
|
83
|
+
ref,
|
|
84
|
+
"data-slot": "listbox-item-text",
|
|
85
|
+
className: clsx(Listbox_module_default.itemText, normalizeClassName(className)),
|
|
86
|
+
...props
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
const ListboxItemIndicator = forwardRef(function ListboxItemIndicator({ className, children, ...props }, ref) {
|
|
90
|
+
return /* @__PURE__ */ jsx(Listbox.ItemIndicator, {
|
|
91
|
+
ref,
|
|
92
|
+
"data-slot": "listbox-item-indicator",
|
|
93
|
+
className: clsx(Listbox_module_default.itemIndicator, normalizeClassName(className)),
|
|
94
|
+
...props,
|
|
95
|
+
children: children ?? /* @__PURE__ */ jsx(CheckIcon, {})
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
const ListboxValueText = forwardRef(function ListboxValueText({ className, ...props }, ref) {
|
|
99
|
+
return /* @__PURE__ */ jsx(Listbox.ValueText, {
|
|
100
|
+
ref,
|
|
101
|
+
"data-slot": "listbox-value-text",
|
|
102
|
+
className: clsx(Listbox_module_default.valueText, normalizeClassName(className)),
|
|
103
|
+
...props
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
function ListboxItemTextContent({ className, ...props }) {
|
|
107
|
+
return /* @__PURE__ */ jsx("span", {
|
|
108
|
+
"data-slot": "listbox-item-text-content",
|
|
109
|
+
className: clsx(Listbox_module_default.itemTextContent, normalizeClassName(className)),
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function ListboxItemTextIcon({ className, ...props }) {
|
|
114
|
+
return /* @__PURE__ */ jsx("span", {
|
|
115
|
+
"data-slot": "listbox-item-text-icon",
|
|
116
|
+
className: clsx(Listbox_module_default.itemTextIcon, normalizeClassName(className)),
|
|
117
|
+
...props
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function ListboxItemTextLabel({ className, ...props }) {
|
|
121
|
+
return /* @__PURE__ */ jsx("span", {
|
|
122
|
+
"data-slot": "listbox-item-text-label",
|
|
123
|
+
className: clsx(Listbox_module_default.itemTextLabel, normalizeClassName(className)),
|
|
124
|
+
...props
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
const Listbox$1 = Object.assign(ListboxRoot, {
|
|
128
|
+
Root: ListboxRoot,
|
|
129
|
+
RootProvider: ListboxRootProvider,
|
|
130
|
+
Label: ListboxLabel,
|
|
131
|
+
Input: ListboxInput,
|
|
132
|
+
Content: ListboxContent,
|
|
133
|
+
Empty: ListboxEmpty,
|
|
134
|
+
ItemGroup: ListboxItemGroup,
|
|
135
|
+
ItemGroupLabel: ListboxItemGroupLabel,
|
|
136
|
+
Item: ListboxItem,
|
|
137
|
+
ItemText: ListboxItemText,
|
|
138
|
+
ItemIndicator: ListboxItemIndicator,
|
|
139
|
+
ValueText: ListboxValueText,
|
|
140
|
+
ItemTextContent: ListboxItemTextContent,
|
|
141
|
+
ItemTextIcon: ListboxItemTextIcon,
|
|
142
|
+
ItemTextLabel: ListboxItemTextLabel
|
|
143
|
+
});
|
|
144
|
+
//#endregion
|
|
145
|
+
export { Listbox$1 as Listbox };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './Listbox.css';
|
|
2
|
+
//#region src/components/listbox/Listbox.module.css
|
|
3
|
+
var Listbox_module_default = {
|
|
4
|
+
"content": "-yleua_content",
|
|
5
|
+
"empty": "-yleua_empty",
|
|
6
|
+
"input": "-yleua_input",
|
|
7
|
+
"item": "-yleua_item",
|
|
8
|
+
"itemGroup": "-yleua_itemGroup",
|
|
9
|
+
"itemGroupLabel": "-yleua_itemGroupLabel",
|
|
10
|
+
"itemIndicator": "-yleua_itemIndicator",
|
|
11
|
+
"itemText": "-yleua_itemText",
|
|
12
|
+
"itemTextContent": "-yleua_itemTextContent",
|
|
13
|
+
"itemTextIcon": "-yleua_itemTextIcon",
|
|
14
|
+
"itemTextLabel": "-yleua_itemTextLabel",
|
|
15
|
+
"label": "-yleua_label",
|
|
16
|
+
"root": "-yleua_root",
|
|
17
|
+
"valueText": "-yleua_valueText"
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Listbox_module_default as default };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._7_2lUa_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: var(--marquee-width, 100%);
|
|
5
|
+
height: var(--marquee-height, auto);
|
|
6
|
+
color: var(--marquee-color, var(--color-foreground));
|
|
7
|
+
position: relative;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&[data-orientation="vertical"] {
|
|
11
|
+
height: var(--marquee-vertical-height, var(--marquee-height, 15rem));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-paused] ._7_2lUa_content {
|
|
15
|
+
animation-play-state: paused;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
._7_2lUa_viewport {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._7_2lUa_content {
|
|
26
|
+
animation-name: _7_2lUa_marquee-x;
|
|
27
|
+
animation-duration: var(--marquee-duration);
|
|
28
|
+
animation-delay: var(--marquee-delay);
|
|
29
|
+
animation-timing-function: linear;
|
|
30
|
+
animation-iteration-count: var(--marquee-loop-count);
|
|
31
|
+
|
|
32
|
+
&[data-side="top"], &[data-side="bottom"] {
|
|
33
|
+
animation-name: _7_2lUa_marquee-y;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-reverse] {
|
|
37
|
+
animation-direction: reverse;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
animation: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
._7_2lUa_item {
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
._7_2lUa_edge {
|
|
51
|
+
z-index: var(--marquee-edge-z-index, 1);
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
|
|
54
|
+
&[data-side="start"] {
|
|
55
|
+
width: var(--marquee-edge-size, 20%);
|
|
56
|
+
background: linear-gradient(to right,
|
|
57
|
+
var(--marquee-edge-color, var(--color-background)),
|
|
58
|
+
transparent);
|
|
59
|
+
|
|
60
|
+
&[dir="rtl"] {
|
|
61
|
+
background: linear-gradient(to left,
|
|
62
|
+
var(--marquee-edge-color, var(--color-background)),
|
|
63
|
+
transparent);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-side="end"] {
|
|
68
|
+
width: var(--marquee-edge-size, 20%);
|
|
69
|
+
background: linear-gradient(to left,
|
|
70
|
+
var(--marquee-edge-color, var(--color-background)),
|
|
71
|
+
transparent);
|
|
72
|
+
|
|
73
|
+
&[dir="rtl"] {
|
|
74
|
+
background: linear-gradient(to right,
|
|
75
|
+
var(--marquee-edge-color, var(--color-background)),
|
|
76
|
+
transparent);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-side="top"] {
|
|
81
|
+
height: var(--marquee-edge-size, 20%);
|
|
82
|
+
background: linear-gradient(to bottom,
|
|
83
|
+
var(--marquee-edge-color, var(--color-background)),
|
|
84
|
+
transparent);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&[data-side="bottom"] {
|
|
88
|
+
height: var(--marquee-edge-size, 20%);
|
|
89
|
+
background: linear-gradient(to top,
|
|
90
|
+
var(--marquee-edge-color, var(--color-background)),
|
|
91
|
+
transparent);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes _7_2lUa_marquee-x {
|
|
96
|
+
from {
|
|
97
|
+
transform: translateX(0%);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
to {
|
|
101
|
+
transform: translateX(var(--marquee-translate));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes _7_2lUa_marquee-y {
|
|
106
|
+
from {
|
|
107
|
+
transform: translateY(0%);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
to {
|
|
111
|
+
transform: translateY(var(--marquee-translate));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Marquee } from "@ark-ui/react/marquee";
|
|
2
|
+
|
|
3
|
+
//#region src/components/marquee/Marquee.d.ts
|
|
4
|
+
declare const Marquee$1: import("react").ForwardRefExoticComponent<Omit<Marquee.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Marquee.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Marquee.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Viewport: import("react").ForwardRefExoticComponent<Omit<Marquee.ViewportProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Marquee.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Item: import("react").ForwardRefExoticComponent<Omit<Marquee.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Edge: import("react").ForwardRefExoticComponent<Omit<Marquee.EdgeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Marquee$1 as Marquee };
|