@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,28 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Button_module_default from "./Button.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/button/Button.tsx
|
|
8
|
+
const ButtonRoot = forwardRef(function ButtonRoot({ asChild, className, disabled, size = "md", type, "data-slot": dataSlot, variant = "default", "aria-disabled": ariaDisabled, ...props }, ref) {
|
|
9
|
+
const isDisabled = disabled || ariaDisabled === true || ariaDisabled === "true";
|
|
10
|
+
return /* @__PURE__ */ jsx(ark.button, {
|
|
11
|
+
ref,
|
|
12
|
+
asChild,
|
|
13
|
+
type: asChild ? type : type ?? "button",
|
|
14
|
+
disabled,
|
|
15
|
+
"aria-disabled": ariaDisabled,
|
|
16
|
+
...props,
|
|
17
|
+
"data-scope": "button",
|
|
18
|
+
"data-part": "root",
|
|
19
|
+
"data-slot": dataSlot ?? "button-root",
|
|
20
|
+
"data-variant": variant,
|
|
21
|
+
"data-size": size,
|
|
22
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
23
|
+
className: clsx(Button_module_default.root, normalizeClassName(className))
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const Button = Object.assign(ButtonRoot, { Root: ButtonRoot });
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Button };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.E2gSWq_root {
|
|
3
|
+
--card-padding-default: var(--card-padding, var(--spacing-6));
|
|
4
|
+
--card-title-font-size-default: var(--card-title-font-size, var(--text-lg));
|
|
5
|
+
--card-title-line-height-default: var(--card-title-line-height, var(--line-height-text-lg));
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border: var(--card-border-width, var(--card-border-width-default, var(--border-width-sm))) solid
|
|
8
|
+
var(--card-border-color, var(--color-border));
|
|
9
|
+
border-radius: var(--card-radius, var(--radius-lg));
|
|
10
|
+
background-color: var(--card-bg, var(--card-bg-default, var(--color-card)));
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
color: var(--card-color, var(--color-card-foreground));
|
|
14
|
+
box-shadow: var(--card-shadow, var(--card-shadow-default, none));
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
display: flex;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
&:where(a) {
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-size="sm"] {
|
|
24
|
+
--card-padding-default: var(--card-padding-sm, var(--spacing-4));
|
|
25
|
+
--card-title-font-size-default: var(--card-title-font-size-sm, var(--text-md));
|
|
26
|
+
--card-title-line-height-default: var(--card-title-line-height-sm, var(--line-height-text-md));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-size="lg"] {
|
|
30
|
+
--card-padding-default: var(--card-padding-lg, var(--spacing-8));
|
|
31
|
+
--card-title-font-size-default: var(--card-title-font-size-lg, var(--text-xl));
|
|
32
|
+
--card-title-line-height-default: var(--card-title-line-height-lg, var(--line-height-text-xl));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-variant="elevated"] {
|
|
36
|
+
--card-border-width-default: 0;
|
|
37
|
+
--card-shadow-default: var(--shadow-md);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-variant="subtle"] {
|
|
41
|
+
--card-border-width-default: 0;
|
|
42
|
+
--card-bg-default: var(--color-muted);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:has([data-scope="card"][data-part="link"]) :where(a, button, input, select, textarea, [role="button"], [role="checkbox"], [role="menuitem"], [role="switch"], [tabindex]:not([tabindex="-1"])):not([data-scope="card"][data-part="link"]) {
|
|
46
|
+
z-index: 1;
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.E2gSWq_header, .E2gSWq_body, .E2gSWq_footer {
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
padding-inline: var(--card-padding-default);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.E2gSWq_header {
|
|
58
|
+
column-gap: var(--card-action-gap, var(--spacing-2));
|
|
59
|
+
row-gap: var(--card-header-gap, var(--spacing-1));
|
|
60
|
+
padding-block: var(--card-padding-default) 0;
|
|
61
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
62
|
+
display: grid;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.E2gSWq_body {
|
|
66
|
+
padding-block: var(--card-body-padding-top, var(--spacing-4)) var(--card-padding-default);
|
|
67
|
+
color: var(--card-body-color, var(--color-muted-foreground));
|
|
68
|
+
font-size: var(--card-body-font-size, var(--text-sm));
|
|
69
|
+
line-height: var(--card-body-line-height, var(--line-height-text-sm));
|
|
70
|
+
overflow-wrap: anywhere;
|
|
71
|
+
|
|
72
|
+
&:first-child {
|
|
73
|
+
padding-block-start: var(--card-padding-default);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
& > :first-child {
|
|
77
|
+
margin-top: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& > :last-child {
|
|
81
|
+
margin-bottom: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.E2gSWq_footer {
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: var(--card-footer-gap, var(--spacing-2));
|
|
88
|
+
padding-block: 0 var(--card-padding-default);
|
|
89
|
+
flex-wrap: wrap;
|
|
90
|
+
display: flex;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.E2gSWq_title {
|
|
94
|
+
min-width: 0;
|
|
95
|
+
color: var(--card-title-color, currentColor);
|
|
96
|
+
font-size: var(--card-title-font-size-default);
|
|
97
|
+
font-weight: var(--card-title-font-weight, var(--weight-semibold));
|
|
98
|
+
line-height: var(--card-title-line-height-default);
|
|
99
|
+
overflow-wrap: anywhere;
|
|
100
|
+
grid-column: 1;
|
|
101
|
+
margin: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.E2gSWq_description {
|
|
105
|
+
min-width: 0;
|
|
106
|
+
color: var(--card-description-color, var(--color-muted-foreground));
|
|
107
|
+
font-size: var(--card-description-font-size, var(--text-sm));
|
|
108
|
+
line-height: var(--card-description-line-height, var(--line-height-text-sm));
|
|
109
|
+
overflow-wrap: anywhere;
|
|
110
|
+
grid-column: 1;
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.E2gSWq_action {
|
|
115
|
+
z-index: 1;
|
|
116
|
+
justify-content: flex-end;
|
|
117
|
+
align-items: start;
|
|
118
|
+
gap: var(--card-action-gap, var(--spacing-2));
|
|
119
|
+
grid-area: 1 / 2 / span 2;
|
|
120
|
+
justify-self: end;
|
|
121
|
+
display: inline-flex;
|
|
122
|
+
position: relative;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.E2gSWq_link {
|
|
126
|
+
color: inherit;
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
position: static;
|
|
129
|
+
|
|
130
|
+
&:after {
|
|
131
|
+
content: "";
|
|
132
|
+
z-index: 0;
|
|
133
|
+
border-radius: var(--card-radius, var(--radius-lg));
|
|
134
|
+
position: absolute;
|
|
135
|
+
inset: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:focus-visible {
|
|
139
|
+
outline: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:focus-visible:after {
|
|
143
|
+
outline: var(--card-focus-ring-width, var(--border-width-md)) solid
|
|
144
|
+
var(--card-focus-ring-color, var(--color-ring));
|
|
145
|
+
outline-offset: var(--card-focus-ring-offset, var(--border-width-sm));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/components/card/Card.d.ts
|
|
2
|
+
declare const Card: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
3
|
+
size?: "sm" | "md" | "lg";
|
|
4
|
+
variant?: "elevated" | "outline" | "subtle";
|
|
5
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
8
|
+
variant?: "elevated" | "outline" | "subtle";
|
|
9
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
14
|
+
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
15
|
+
Action: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Card };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Card_module_default from "./Card.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/card/Card.tsx
|
|
8
|
+
const CardRoot = forwardRef(function CardRoot({ className, size = "md", variant = "outline", ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-scope": "card",
|
|
12
|
+
"data-part": "root",
|
|
13
|
+
"data-slot": "card-root",
|
|
14
|
+
"data-size": size,
|
|
15
|
+
"data-variant": variant,
|
|
16
|
+
className: clsx(Card_module_default.root, normalizeClassName(className)),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const CardHeader = forwardRef(function CardHeader({ className, ...props }, ref) {
|
|
21
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
22
|
+
ref,
|
|
23
|
+
"data-scope": "card",
|
|
24
|
+
"data-part": "header",
|
|
25
|
+
"data-slot": "card-header",
|
|
26
|
+
className: clsx(Card_module_default.header, normalizeClassName(className)),
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
const CardBody = forwardRef(function CardBody({ className, ...props }, ref) {
|
|
31
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
32
|
+
ref,
|
|
33
|
+
"data-scope": "card",
|
|
34
|
+
"data-part": "body",
|
|
35
|
+
"data-slot": "card-body",
|
|
36
|
+
className: clsx(Card_module_default.body, normalizeClassName(className)),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
const CardFooter = forwardRef(function CardFooter({ className, ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-scope": "card",
|
|
44
|
+
"data-part": "footer",
|
|
45
|
+
"data-slot": "card-footer",
|
|
46
|
+
className: clsx(Card_module_default.footer, normalizeClassName(className)),
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
const CardTitle = forwardRef(function CardTitle({ className, ...props }, ref) {
|
|
51
|
+
return /* @__PURE__ */ jsx(ark.h3, {
|
|
52
|
+
ref,
|
|
53
|
+
"data-scope": "card",
|
|
54
|
+
"data-part": "title",
|
|
55
|
+
"data-slot": "card-title",
|
|
56
|
+
className: clsx(Card_module_default.title, normalizeClassName(className)),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
const CardDescription = forwardRef(function CardDescription({ className, ...props }, ref) {
|
|
61
|
+
return /* @__PURE__ */ jsx(ark.p, {
|
|
62
|
+
ref,
|
|
63
|
+
"data-scope": "card",
|
|
64
|
+
"data-part": "description",
|
|
65
|
+
"data-slot": "card-description",
|
|
66
|
+
className: clsx(Card_module_default.description, normalizeClassName(className)),
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
const CardAction = forwardRef(function CardAction({ className, ...props }, ref) {
|
|
71
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
72
|
+
ref,
|
|
73
|
+
"data-scope": "card",
|
|
74
|
+
"data-part": "action",
|
|
75
|
+
"data-slot": "card-action",
|
|
76
|
+
className: clsx(Card_module_default.action, normalizeClassName(className)),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
const CardLink = forwardRef(function CardLink({ className, ...props }, ref) {
|
|
81
|
+
return /* @__PURE__ */ jsx(ark.a, {
|
|
82
|
+
ref,
|
|
83
|
+
"data-scope": "card",
|
|
84
|
+
"data-part": "link",
|
|
85
|
+
"data-slot": "card-link",
|
|
86
|
+
className: clsx(Card_module_default.link, normalizeClassName(className)),
|
|
87
|
+
...props
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
const Card = Object.assign(CardRoot, {
|
|
91
|
+
Root: CardRoot,
|
|
92
|
+
Header: CardHeader,
|
|
93
|
+
Body: CardBody,
|
|
94
|
+
Footer: CardFooter,
|
|
95
|
+
Title: CardTitle,
|
|
96
|
+
Description: CardDescription,
|
|
97
|
+
Action: CardAction,
|
|
98
|
+
Link: CardLink
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
export { Card };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './Card.css';
|
|
2
|
+
//#region src/components/card/Card.module.css
|
|
3
|
+
var Card_module_default = {
|
|
4
|
+
"action": "E2gSWq_action",
|
|
5
|
+
"body": "E2gSWq_body",
|
|
6
|
+
"description": "E2gSWq_description",
|
|
7
|
+
"footer": "E2gSWq_footer",
|
|
8
|
+
"header": "E2gSWq_header",
|
|
9
|
+
"link": "E2gSWq_link",
|
|
10
|
+
"root": "E2gSWq_root",
|
|
11
|
+
"title": "E2gSWq_title"
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Card_module_default as default };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.m9QXca_root {
|
|
3
|
+
gap: var(--carousel-gap, var(--spacing-3));
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.m9QXca_root[data-orientation="vertical"] {
|
|
11
|
+
height: var(--carousel-height, 24rem);
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.m9QXca_control {
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: var(--carousel-gap, var(--spacing-3));
|
|
19
|
+
min-width: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.m9QXca_control[data-orientation="vertical"] {
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.m9QXca_itemGroup {
|
|
29
|
+
overscroll-behavior-x: contain;
|
|
30
|
+
overscroll-behavior-y: auto;
|
|
31
|
+
border-radius: var(--carousel-track-radius, var(--radius-xl));
|
|
32
|
+
scrollbar-width: none;
|
|
33
|
+
scroll-behavior: smooth;
|
|
34
|
+
flex: auto;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
min-height: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
|
|
39
|
+
&::-webkit-scrollbar {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-dragging] {
|
|
44
|
+
cursor: grabbing;
|
|
45
|
+
user-select: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.m9QXca_root[data-orientation="vertical"] > .m9QXca_itemGroup {
|
|
50
|
+
height: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.m9QXca_item {
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
min-height: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.m9QXca_prevTrigger, .m9QXca_nextTrigger, .m9QXca_autoplayTrigger {
|
|
60
|
+
width: var(--carousel-control-size, 2.5rem);
|
|
61
|
+
height: var(--carousel-control-size, 2.5rem);
|
|
62
|
+
border: var(--border-width-sm) solid
|
|
63
|
+
var(--carousel-control-border-color, color-mix(in oklab, var(--color-border) 88%, black 12%));
|
|
64
|
+
border-radius: var(--radius-full);
|
|
65
|
+
background-color: var(--carousel-control-bg, color-mix(in oklab, var(--color-background) 92%, var(--color-card) 8%));
|
|
66
|
+
box-shadow: var(--carousel-control-shadow, var(--shadow-sm));
|
|
67
|
+
color: var(--carousel-control-color, var(--color-foreground));
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
transition: background-color var(--transition-fast),
|
|
70
|
+
border-color var(--transition-fast),
|
|
71
|
+
color var(--transition-fast),
|
|
72
|
+
box-shadow var(--transition-fast),
|
|
73
|
+
transform var(--transition-fast);
|
|
74
|
+
flex: none;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
|
|
79
|
+
& svg {
|
|
80
|
+
width: 1rem;
|
|
81
|
+
height: 1rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:not(:disabled, [data-disabled]):hover {
|
|
85
|
+
border-color: var(--carousel-control-border-color-hover, color-mix(in oklab, var(--color-border) 50%, var(--color-foreground) 50%));
|
|
86
|
+
background-color: var(--carousel-control-bg-hover, var(--color-accent));
|
|
87
|
+
box-shadow: var(--carousel-control-shadow-hover, var(--shadow-md));
|
|
88
|
+
color: var(--carousel-control-color-hover, var(--color-accent-foreground));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:focus-visible {
|
|
92
|
+
outline: var(--carousel-focus-ring-width, var(--border-width-md)) solid
|
|
93
|
+
var(--carousel-focus-ring-color, var(--color-ring));
|
|
94
|
+
outline-offset: var(--carousel-focus-ring-offset, 2px);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:is(:disabled, [data-disabled]) {
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
opacity: var(--opacity-disabled);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[data-pressed] {
|
|
103
|
+
border-color: var(--carousel-control-border-color-hover, color-mix(in oklab, var(--color-border) 50%, var(--color-foreground) 50%));
|
|
104
|
+
background-color: var(--carousel-control-bg-hover, var(--color-accent));
|
|
105
|
+
color: var(--carousel-control-color-hover, var(--color-accent-foreground));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.m9QXca_defaultIcon {
|
|
110
|
+
justify-content: center;
|
|
111
|
+
align-items: center;
|
|
112
|
+
display: inline-flex;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.m9QXca_root[data-orientation="vertical"] {
|
|
116
|
+
& .m9QXca_defaultIcon {
|
|
117
|
+
& svg {
|
|
118
|
+
transform: rotate(90deg);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.m9QXca_indicatorGroup {
|
|
124
|
+
justify-content: center;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: var(--carousel-indicator-gap, var(--spacing-2));
|
|
127
|
+
display: flex;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.m9QXca_root[data-orientation="vertical"] > .m9QXca_indicatorGroup, .m9QXca_control[data-orientation="vertical"] > .m9QXca_indicatorGroup {
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.m9QXca_indicator {
|
|
135
|
+
width: var(--carousel-indicator-size, .5rem);
|
|
136
|
+
height: var(--carousel-indicator-size, .5rem);
|
|
137
|
+
border-radius: var(--radius-full);
|
|
138
|
+
background-color: var(--carousel-indicator-bg, color-mix(in oklab, var(--color-muted) 84%, var(--color-background) 16%));
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
opacity: .88;
|
|
141
|
+
transition: inline-size var(--transition-fast),
|
|
142
|
+
block-size var(--transition-fast),
|
|
143
|
+
background-color var(--transition-fast),
|
|
144
|
+
opacity var(--transition-fast);
|
|
145
|
+
border: 0;
|
|
146
|
+
padding: 0;
|
|
147
|
+
|
|
148
|
+
&:hover {
|
|
149
|
+
background-color: var(--carousel-indicator-bg-hover, color-mix(in oklab, var(--color-muted) 56%, var(--color-foreground) 44%));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:focus-visible {
|
|
153
|
+
outline: var(--carousel-focus-ring-width, var(--border-width-md)) solid
|
|
154
|
+
var(--carousel-focus-ring-color, var(--color-ring));
|
|
155
|
+
outline-offset: var(--carousel-focus-ring-offset, 2px);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&[data-current] {
|
|
159
|
+
width: calc(var(--carousel-indicator-size, .5rem) * 3);
|
|
160
|
+
background-color: var(--carousel-indicator-bg-current, var(--color-primary));
|
|
161
|
+
opacity: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:is(:disabled, [data-disabled], [data-readonly]) {
|
|
165
|
+
cursor: not-allowed;
|
|
166
|
+
opacity: var(--opacity-disabled);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.m9QXca_root[data-orientation="vertical"] > .m9QXca_indicatorGroup .m9QXca_indicator, .m9QXca_control[data-orientation="vertical"] > .m9QXca_indicatorGroup .m9QXca_indicator {
|
|
171
|
+
&[data-current] {
|
|
172
|
+
width: var(--carousel-indicator-size, .5rem);
|
|
173
|
+
height: calc(var(--carousel-indicator-size, .5rem) * 3);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.m9QXca_autoplayTrigger {
|
|
178
|
+
min-width: 3rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.m9QXca_autoplayIndicator {
|
|
182
|
+
min-width: 1rem;
|
|
183
|
+
font-size: var(--text-xs);
|
|
184
|
+
font-weight: var(--weight-medium);
|
|
185
|
+
line-height: var(--line-height-text-xs);
|
|
186
|
+
text-transform: uppercase;
|
|
187
|
+
justify-content: center;
|
|
188
|
+
align-items: center;
|
|
189
|
+
display: inline-flex;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.m9QXca_progressText {
|
|
193
|
+
color: var(--carousel-progress-text-color, var(--color-muted-foreground));
|
|
194
|
+
font-size: var(--carousel-progress-text-font-size, var(--text-sm));
|
|
195
|
+
line-height: var(--line-height-text-sm);
|
|
196
|
+
font-variant-numeric: tabular-nums;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Carousel } from "@ark-ui/react/carousel";
|
|
2
|
+
|
|
3
|
+
//#region src/components/carousel/Carousel.d.ts
|
|
4
|
+
declare const Carousel$1: import("react").ForwardRefExoticComponent<Omit<Carousel.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Carousel.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Carousel.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Control: import("react").ForwardRefExoticComponent<Omit<Carousel.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
ItemGroup: import("react").ForwardRefExoticComponent<Omit<Carousel.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Item: import("react").ForwardRefExoticComponent<Omit<Carousel.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
PrevTrigger: import("react").ForwardRefExoticComponent<Omit<Carousel.PrevTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
NextTrigger: import("react").ForwardRefExoticComponent<Omit<Carousel.NextTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
IndicatorGroup: import("react").ForwardRefExoticComponent<Omit<Carousel.IndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Carousel.IndicatorProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
AutoplayTrigger: import("react").ForwardRefExoticComponent<Omit<Carousel.AutoplayTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
AutoplayIndicator: import("react").ForwardRefExoticComponent<Omit<Carousel.AutoplayIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
ProgressText: import("react").ForwardRefExoticComponent<Omit<Carousel.ProgressTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Carousel$1 as Carousel };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import Carousel_module_default from "./Carousel.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Carousel } from "@ark-ui/react/carousel";
|
|
8
|
+
//#region src/components/carousel/Carousel.tsx
|
|
9
|
+
const CarouselRoot = forwardRef(function CarouselRoot({ className, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Carousel.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "carousel-root",
|
|
13
|
+
className: clsx(Carousel_module_default.root, normalizeClassName(className)),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
const CarouselRootProvider = forwardRef(function CarouselRootProvider({ className, ...props }, ref) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Carousel.RootProvider, {
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "carousel-root-provider",
|
|
21
|
+
className: clsx(Carousel_module_default.root, normalizeClassName(className)),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const CarouselControl = forwardRef(function CarouselControl({ className, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ jsx(Carousel.Control, {
|
|
27
|
+
ref,
|
|
28
|
+
"data-slot": "carousel-control",
|
|
29
|
+
className: clsx(Carousel_module_default.control, normalizeClassName(className)),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const CarouselItemGroup = forwardRef(function CarouselItemGroup({ className, ...props }, ref) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Carousel.ItemGroup, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "carousel-item-group",
|
|
37
|
+
className: clsx(Carousel_module_default.itemGroup, normalizeClassName(className)),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const CarouselItem = forwardRef(function CarouselItem({ className, ...props }, ref) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Carousel.Item, {
|
|
43
|
+
ref,
|
|
44
|
+
"data-slot": "carousel-item",
|
|
45
|
+
className: clsx(Carousel_module_default.item, normalizeClassName(className)),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const CarouselPrevTrigger = forwardRef(function CarouselPrevTrigger({ className, children, ...props }, ref) {
|
|
50
|
+
return /* @__PURE__ */ jsx(Carousel.PrevTrigger, {
|
|
51
|
+
ref,
|
|
52
|
+
"data-slot": "carousel-prev-trigger",
|
|
53
|
+
className: clsx(Carousel_module_default.prevTrigger, normalizeClassName(className)),
|
|
54
|
+
...props,
|
|
55
|
+
children: children ?? /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: Carousel_module_default.defaultIcon,
|
|
57
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
const CarouselNextTrigger = forwardRef(function CarouselNextTrigger({ className, children, ...props }, ref) {
|
|
62
|
+
return /* @__PURE__ */ jsx(Carousel.NextTrigger, {
|
|
63
|
+
ref,
|
|
64
|
+
"data-slot": "carousel-next-trigger",
|
|
65
|
+
className: clsx(Carousel_module_default.nextTrigger, normalizeClassName(className)),
|
|
66
|
+
...props,
|
|
67
|
+
children: children ?? /* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: Carousel_module_default.defaultIcon,
|
|
69
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
const CarouselIndicatorGroup = forwardRef(function CarouselIndicatorGroup({ className, ...props }, ref) {
|
|
74
|
+
return /* @__PURE__ */ jsx(Carousel.IndicatorGroup, {
|
|
75
|
+
ref,
|
|
76
|
+
"data-slot": "carousel-indicator-group",
|
|
77
|
+
className: clsx(Carousel_module_default.indicatorGroup, normalizeClassName(className)),
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
const CarouselIndicator = forwardRef(function CarouselIndicator({ className, ...props }, ref) {
|
|
82
|
+
return /* @__PURE__ */ jsx(Carousel.Indicator, {
|
|
83
|
+
ref,
|
|
84
|
+
"data-slot": "carousel-indicator",
|
|
85
|
+
className: clsx(Carousel_module_default.indicator, normalizeClassName(className)),
|
|
86
|
+
...props
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
const CarouselAutoplayTrigger = forwardRef(function CarouselAutoplayTrigger({ className, ...props }, ref) {
|
|
90
|
+
return /* @__PURE__ */ jsx(Carousel.AutoplayTrigger, {
|
|
91
|
+
ref,
|
|
92
|
+
"data-slot": "carousel-autoplay-trigger",
|
|
93
|
+
className: clsx(Carousel_module_default.autoplayTrigger, normalizeClassName(className)),
|
|
94
|
+
...props
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
const CarouselAutoplayIndicator = forwardRef(function CarouselAutoplayIndicator({ className, ...props }, ref) {
|
|
98
|
+
return /* @__PURE__ */ jsx(Carousel.AutoplayIndicator, {
|
|
99
|
+
ref,
|
|
100
|
+
"data-slot": "carousel-autoplay-indicator",
|
|
101
|
+
className: clsx(Carousel_module_default.autoplayIndicator, normalizeClassName(className)),
|
|
102
|
+
...props
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
const CarouselProgressText = forwardRef(function CarouselProgressText({ className, ...props }, ref) {
|
|
106
|
+
return /* @__PURE__ */ jsx(Carousel.ProgressText, {
|
|
107
|
+
ref,
|
|
108
|
+
"data-slot": "carousel-progress-text",
|
|
109
|
+
className: clsx(Carousel_module_default.progressText, normalizeClassName(className)),
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
const Carousel$1 = Object.assign(CarouselRoot, {
|
|
114
|
+
Root: CarouselRoot,
|
|
115
|
+
RootProvider: CarouselRootProvider,
|
|
116
|
+
Control: CarouselControl,
|
|
117
|
+
ItemGroup: CarouselItemGroup,
|
|
118
|
+
Item: CarouselItem,
|
|
119
|
+
PrevTrigger: CarouselPrevTrigger,
|
|
120
|
+
NextTrigger: CarouselNextTrigger,
|
|
121
|
+
IndicatorGroup: CarouselIndicatorGroup,
|
|
122
|
+
Indicator: CarouselIndicator,
|
|
123
|
+
AutoplayTrigger: CarouselAutoplayTrigger,
|
|
124
|
+
AutoplayIndicator: CarouselAutoplayIndicator,
|
|
125
|
+
ProgressText: CarouselProgressText
|
|
126
|
+
});
|
|
127
|
+
//#endregion
|
|
128
|
+
export { Carousel$1 as Carousel };
|