@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,18 @@
|
|
|
1
|
+
import './Carousel.css';
|
|
2
|
+
//#region src/components/carousel/Carousel.module.css
|
|
3
|
+
var Carousel_module_default = {
|
|
4
|
+
"autoplayIndicator": "m9QXca_autoplayIndicator",
|
|
5
|
+
"autoplayTrigger": "m9QXca_autoplayTrigger",
|
|
6
|
+
"control": "m9QXca_control",
|
|
7
|
+
"defaultIcon": "m9QXca_defaultIcon",
|
|
8
|
+
"indicator": "m9QXca_indicator",
|
|
9
|
+
"indicatorGroup": "m9QXca_indicatorGroup",
|
|
10
|
+
"item": "m9QXca_item",
|
|
11
|
+
"itemGroup": "m9QXca_itemGroup",
|
|
12
|
+
"nextTrigger": "m9QXca_nextTrigger",
|
|
13
|
+
"prevTrigger": "m9QXca_prevTrigger",
|
|
14
|
+
"progressText": "m9QXca_progressText",
|
|
15
|
+
"root": "m9QXca_root"
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Carousel_module_default as default };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.xohwwq_root {
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--checkbox-gap, var(--spacing-2));
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
color: var(--checkbox-label-color, var(--color-foreground));
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
|
|
10
|
+
&[data-disabled], &[data-readonly] {
|
|
11
|
+
cursor: default;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-disabled] {
|
|
15
|
+
opacity: var(--checkbox-disabled-opacity, var(--opacity-disabled));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.xohwwq_control {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
width: var(--_checkbox-size, 1.25rem);
|
|
22
|
+
height: var(--_checkbox-size, 1.25rem);
|
|
23
|
+
border: var(--checkbox-border-width, var(--border-width-sm)) solid
|
|
24
|
+
var(--checkbox-border-color, var(--color-border));
|
|
25
|
+
border-radius: var(--checkbox-radius, var(--radius-xs));
|
|
26
|
+
background-color: var(--checkbox-bg, var(--color-background));
|
|
27
|
+
color: var(--checkbox-color, var(--color-primary-foreground));
|
|
28
|
+
user-select: none;
|
|
29
|
+
transition: background-color var(--checkbox-transition, var(--transition-default)),
|
|
30
|
+
border-color var(--checkbox-transition, var(--transition-default)),
|
|
31
|
+
color var(--checkbox-transition, var(--transition-default)),
|
|
32
|
+
opacity var(--checkbox-transition, var(--transition-default));
|
|
33
|
+
flex: none;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
line-height: 0;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
|
|
41
|
+
&[data-state="checked"], &[data-state="indeterminate"] {
|
|
42
|
+
border-color: var(--checkbox-border-color-checked, var(--color-primary));
|
|
43
|
+
background-color: var(--checkbox-bg-checked, var(--color-primary));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-focus-visible] {
|
|
47
|
+
outline: var(--checkbox-focus-ring-width, var(--border-width-sm)) solid
|
|
48
|
+
var(--checkbox-focus-ring-color, var(--color-ring));
|
|
49
|
+
outline-offset: var(--checkbox-focus-ring-offset, var(--border-width-sm));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-invalid] {
|
|
53
|
+
border-color: var(--checkbox-border-color-invalid, var(--color-destructive));
|
|
54
|
+
color: var(--checkbox-color-invalid, var(--color-primary-foreground));
|
|
55
|
+
|
|
56
|
+
&[data-state="checked"], &[data-state="indeterminate"] {
|
|
57
|
+
border-color: var(--checkbox-border-color-invalid, var(--color-destructive));
|
|
58
|
+
background-color: var(--checkbox-bg-invalid, var(--color-destructive));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&[data-focus-visible] {
|
|
62
|
+
outline-color: var(--checkbox-border-color-invalid, var(--color-destructive));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (hover: hover) {
|
|
67
|
+
&[data-state="unchecked"][data-hover]:not([data-readonly], [data-disabled]) {
|
|
68
|
+
background-color: var(--checkbox-bg-hover, var(--color-accent));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.xohwwq_root[data-size="xs"] .xohwwq_control {
|
|
74
|
+
--_checkbox-size: var(--checkbox-size-xs, .875rem);
|
|
75
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-xs, .5rem);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.xohwwq_root[data-size="sm"] .xohwwq_control {
|
|
79
|
+
--_checkbox-size: var(--checkbox-size-sm, 1rem);
|
|
80
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-sm, .625rem);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.xohwwq_root[data-size="md"] .xohwwq_control {
|
|
84
|
+
--_checkbox-size: var(--checkbox-size-md, 1.25rem);
|
|
85
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-md, .75rem);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.xohwwq_root[data-size="lg"] .xohwwq_control {
|
|
89
|
+
--_checkbox-size: var(--checkbox-size-lg, 1.5rem);
|
|
90
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-lg, .875rem);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.xohwwq_root[data-size="xl"] .xohwwq_control {
|
|
94
|
+
--_checkbox-size: var(--checkbox-size-xl, 1.75rem);
|
|
95
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-xl, 1rem);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.xohwwq_indicator {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 100%;
|
|
101
|
+
color: inherit;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.xohwwq_icon {
|
|
108
|
+
width: var(--_checkbox-icon-size, .75rem);
|
|
109
|
+
height: var(--_checkbox-icon-size, .75rem);
|
|
110
|
+
color: inherit;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
line-height: 0;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
|
|
116
|
+
& > svg {
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.xohwwq_label {
|
|
123
|
+
color: var(--checkbox-label-color, var(--color-foreground));
|
|
124
|
+
font-size: var(--checkbox-label-font-size, var(--text-sm));
|
|
125
|
+
font-weight: var(--checkbox-label-font-weight, var(--weight-medium));
|
|
126
|
+
line-height: var(--checkbox-label-line-height, var(--line-height-text-sm));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.xohwwq_group {
|
|
130
|
+
gap: var(--checkbox-group-gap, var(--spacing-2));
|
|
131
|
+
color: var(--checkbox-group-color, var(--color-foreground));
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
display: flex;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
3
|
+
|
|
4
|
+
//#region src/components/checkbox/Checkbox.d.ts
|
|
5
|
+
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
type RootProps = ComponentProps<typeof Checkbox.Root> & {
|
|
7
|
+
size?: CheckboxSize;
|
|
8
|
+
};
|
|
9
|
+
type RootProviderProps = ComponentProps<typeof Checkbox.RootProvider> & {
|
|
10
|
+
size?: CheckboxSize;
|
|
11
|
+
};
|
|
12
|
+
declare const Checkbox$1: import("react").ForwardRefExoticComponent<Omit<RootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>> & {
|
|
13
|
+
Root: import("react").ForwardRefExoticComponent<Omit<RootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<RootProviderProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
15
|
+
Control: import("react").ForwardRefExoticComponent<Omit<Checkbox.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Checkbox.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
HiddenInput: import("react").ForwardRefExoticComponent<Omit<Checkbox.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Checkbox.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
Group: import("react").ForwardRefExoticComponent<Omit<Checkbox.GroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Checkbox$1 as Checkbox };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { CheckIcon, IndeterminateIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import Checkbox_module_default from "./Checkbox.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
8
|
+
//#region src/components/checkbox/Checkbox.tsx
|
|
9
|
+
const CheckboxRoot = forwardRef(function CheckboxRoot({ className, size = "md", ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Checkbox.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "checkbox-root",
|
|
13
|
+
"data-size": size,
|
|
14
|
+
className: clsx(Checkbox_module_default.root, normalizeClassName(className)),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
const CheckboxRootProvider = forwardRef(function CheckboxRootProvider({ className, size = "md", ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(Checkbox.RootProvider, {
|
|
20
|
+
ref,
|
|
21
|
+
"data-slot": "checkbox-root-provider",
|
|
22
|
+
"data-size": size,
|
|
23
|
+
className: clsx(Checkbox_module_default.root, normalizeClassName(className)),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
const CheckboxControl = forwardRef(function CheckboxControl({ className, ...props }, ref) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Checkbox.Control, {
|
|
29
|
+
ref,
|
|
30
|
+
"data-slot": "checkbox-control",
|
|
31
|
+
className: clsx(Checkbox_module_default.control, normalizeClassName(className)),
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
const CheckboxIndicator = forwardRef(function CheckboxIndicator({ className, children, indeterminate, ...props }, ref) {
|
|
36
|
+
const slot = indeterminate ? "checkbox-indicator-indeterminate-icon" : "checkbox-indicator-checked-icon";
|
|
37
|
+
return /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
38
|
+
ref,
|
|
39
|
+
"data-slot": "checkbox-indicator",
|
|
40
|
+
className: clsx(Checkbox_module_default.indicator, normalizeClassName(className)),
|
|
41
|
+
indeterminate,
|
|
42
|
+
...props,
|
|
43
|
+
children: children ?? /* @__PURE__ */ jsx("span", {
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
"data-slot": slot,
|
|
46
|
+
className: Checkbox_module_default.icon,
|
|
47
|
+
children: indeterminate ? /* @__PURE__ */ jsx(IndeterminateIcon, {}) : /* @__PURE__ */ jsx(CheckIcon, {})
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const CheckboxHiddenInput = forwardRef(function CheckboxHiddenInput(props, ref) {
|
|
52
|
+
return /* @__PURE__ */ jsx(Checkbox.HiddenInput, {
|
|
53
|
+
ref,
|
|
54
|
+
"data-slot": "checkbox-hidden-input",
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
const CheckboxLabel = forwardRef(function CheckboxLabel({ className, ...props }, ref) {
|
|
59
|
+
return /* @__PURE__ */ jsx(Checkbox.Label, {
|
|
60
|
+
ref,
|
|
61
|
+
"data-slot": "checkbox-label",
|
|
62
|
+
className: clsx(Checkbox_module_default.label, normalizeClassName(className)),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
const CheckboxGroup = forwardRef(function CheckboxGroup({ className, ...props }, ref) {
|
|
67
|
+
return /* @__PURE__ */ jsx(Checkbox.Group, {
|
|
68
|
+
ref,
|
|
69
|
+
"data-slot": "checkbox-group",
|
|
70
|
+
className: clsx(Checkbox_module_default.group, normalizeClassName(className)),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
const Checkbox$1 = Object.assign(CheckboxRoot, {
|
|
75
|
+
Root: CheckboxRoot,
|
|
76
|
+
RootProvider: CheckboxRootProvider,
|
|
77
|
+
Control: CheckboxControl,
|
|
78
|
+
Indicator: CheckboxIndicator,
|
|
79
|
+
HiddenInput: CheckboxHiddenInput,
|
|
80
|
+
Label: CheckboxLabel,
|
|
81
|
+
Group: CheckboxGroup
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Checkbox$1 as Checkbox };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './Checkbox.css';
|
|
2
|
+
//#region src/components/checkbox/Checkbox.module.css
|
|
3
|
+
var Checkbox_module_default = {
|
|
4
|
+
"control": "xohwwq_control",
|
|
5
|
+
"group": "xohwwq_group",
|
|
6
|
+
"icon": "xohwwq_icon",
|
|
7
|
+
"indicator": "xohwwq_indicator",
|
|
8
|
+
"label": "xohwwq_label",
|
|
9
|
+
"root": "xohwwq_root"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Checkbox_module_default as default };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.BmLivq_root {
|
|
3
|
+
gap: var(--clipboard-gap, .375rem);
|
|
4
|
+
width: var(--clipboard-width, 100%);
|
|
5
|
+
max-width: var(--clipboard-max-width, 20rem);
|
|
6
|
+
color: var(--clipboard-color, var(--color-foreground));
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.BmLivq_label {
|
|
12
|
+
color: var(--clipboard-label-color, currentColor);
|
|
13
|
+
font-size: var(--clipboard-label-font-size, var(--text-sm));
|
|
14
|
+
font-weight: var(--clipboard-label-font-weight, var(--weight-medium));
|
|
15
|
+
line-height: var(--clipboard-label-line-height, var(--line-height-text-sm));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.BmLivq_control {
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: var(--clipboard-control-gap, var(--spacing-2));
|
|
21
|
+
width: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.BmLivq_input {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
min-height: var(--clipboard-input-height, var(--input-height-md, var(--size-lg)));
|
|
30
|
+
border: var(--clipboard-input-border-width, var(--input-border-width, var(--border-width-sm)))
|
|
31
|
+
solid var(--clipboard-input-border-color, var(--input-border-color, var(--color-border)));
|
|
32
|
+
border-radius: var(--clipboard-input-radius, var(--input-radius, var(--radius-md)));
|
|
33
|
+
padding-block: var(--clipboard-input-padding-y, var(--input-padding-y-md, .5rem));
|
|
34
|
+
padding-inline: var(--clipboard-input-padding-x, var(--input-padding-x-md, .875rem));
|
|
35
|
+
background-color: var(--clipboard-input-bg, var(--input-bg, var(--color-background)));
|
|
36
|
+
color: var(--clipboard-input-color, var(--input-color, var(--color-foreground)));
|
|
37
|
+
font: inherit;
|
|
38
|
+
font-size: var(--clipboard-input-font-size, var(--input-font-size-md, var(--text-md)));
|
|
39
|
+
line-height: var(--clipboard-input-line-height, var(--input-line-height-md, var(--line-height-text-md)));
|
|
40
|
+
outline: var(--clipboard-input-focus-ring-width, var(--input-focus-ring-width, var(--border-width-sm)))
|
|
41
|
+
solid transparent;
|
|
42
|
+
outline-offset: calc(var(--clipboard-input-focus-ring-offset, var(--clipboard-input-border-width, var(--input-border-width, var(--border-width-sm)))) *
|
|
43
|
+
-1);
|
|
44
|
+
transition: border-color var(--clipboard-transition, var(--input-transition, var(--transition-default))),
|
|
45
|
+
outline-color var(--clipboard-transition, var(--input-transition, var(--transition-default))),
|
|
46
|
+
background-color
|
|
47
|
+
var(--clipboard-transition, var(--input-transition, var(--transition-default))),
|
|
48
|
+
color var(--clipboard-transition, var(--input-transition, var(--transition-default))),
|
|
49
|
+
opacity var(--clipboard-transition, var(--input-transition, var(--transition-default)));
|
|
50
|
+
margin: 0;
|
|
51
|
+
|
|
52
|
+
&::placeholder {
|
|
53
|
+
color: var(--clipboard-input-placeholder-color, var(--input-placeholder-color, var(--color-muted-foreground)));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:focus-visible {
|
|
57
|
+
outline-color: var(--clipboard-input-focus-ring-color, var(--input-focus-ring-color, var(--color-ring)));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-readonly] {
|
|
61
|
+
background-color: var(--clipboard-input-readonly-bg, var(--input-readonly-bg, var(--clipboard-input-bg, var(--color-background))));
|
|
62
|
+
color: var(--clipboard-input-readonly-color, var(--input-readonly-color, var(--clipboard-input-color, var(--color-foreground))));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&[data-disabled] {
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
opacity: var(--clipboard-disabled-opacity, var(--input-disabled-opacity, var(--opacity-disabled)));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.BmLivq_trigger {
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: var(--clipboard-trigger-gap, var(--button-content-gap, var(--spacing-2)));
|
|
76
|
+
min-height: var(--clipboard-trigger-height, var(--button-size-md, var(--size-lg)));
|
|
77
|
+
padding-inline: var(--clipboard-trigger-padding-x, var(--button-padding-x-md, 1rem));
|
|
78
|
+
border: var(--clipboard-trigger-border-width, var(--button-border-width, var(--border-width-sm)))
|
|
79
|
+
solid
|
|
80
|
+
var(--clipboard-trigger-border-color, var(--button-outline-border-color, var(--color-border)));
|
|
81
|
+
border-radius: var(--clipboard-trigger-radius, var(--button-radius, var(--radius-md)));
|
|
82
|
+
background-color: var(--clipboard-trigger-bg, var(--button-outline-bg, var(--color-background)));
|
|
83
|
+
color: var(--clipboard-trigger-color, var(--button-outline-color, var(--color-foreground)));
|
|
84
|
+
appearance: none;
|
|
85
|
+
font: inherit;
|
|
86
|
+
font-size: var(--clipboard-trigger-font-size, var(--button-font-size, var(--text-sm)));
|
|
87
|
+
font-weight: var(--clipboard-trigger-font-weight, var(--button-font-weight, var(--weight-medium)));
|
|
88
|
+
line-height: var(--clipboard-trigger-line-height, var(--button-line-height, var(--line-height-text-sm)));
|
|
89
|
+
user-select: none;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
transition: border-color var(--clipboard-transition, var(--button-transition, var(--transition-default))),
|
|
93
|
+
background-color
|
|
94
|
+
var(--clipboard-transition, var(--button-transition, var(--transition-default))),
|
|
95
|
+
color var(--clipboard-transition, var(--button-transition, var(--transition-default))),
|
|
96
|
+
opacity var(--clipboard-transition, var(--button-transition, var(--transition-default))),
|
|
97
|
+
box-shadow var(--clipboard-transition, var(--button-transition, var(--transition-default)));
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
|
|
101
|
+
& :where(svg) {
|
|
102
|
+
width: var(--clipboard-indicator-size, var(--button-icon-size, 1rem));
|
|
103
|
+
height: var(--clipboard-indicator-size, var(--button-icon-size, 1rem));
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (hover: hover) {
|
|
108
|
+
&:hover:not(:disabled, [data-disabled]) {
|
|
109
|
+
background-color: var(--clipboard-trigger-bg-hover, var(--button-outline-bg-hover, var(--color-accent)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:focus-visible {
|
|
114
|
+
outline: var(--clipboard-trigger-focus-ring-width, var(--button-focus-ring-width, var(--border-width-md)))
|
|
115
|
+
solid
|
|
116
|
+
var(--clipboard-trigger-focus-ring-color, var(--button-focus-ring-color, var(--color-ring)));
|
|
117
|
+
outline-offset: calc(var(--clipboard-trigger-focus-ring-offset, var(--clipboard-trigger-border-width, var(--button-border-width, var(--border-width-sm)))) *
|
|
118
|
+
-1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:is(:disabled, [data-disabled]) {
|
|
122
|
+
pointer-events: none;
|
|
123
|
+
opacity: var(--clipboard-disabled-opacity, var(--button-disabled-opacity, var(--opacity-disabled)));
|
|
124
|
+
cursor: default;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.BmLivq_indicator, .BmLivq_icon {
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
align-items: center;
|
|
132
|
+
display: inline-flex;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.BmLivq_valueText {
|
|
136
|
+
min-width: 0;
|
|
137
|
+
color: var(--clipboard-value-text-color, currentColor);
|
|
138
|
+
font-size: var(--clipboard-value-text-font-size, inherit);
|
|
139
|
+
font-weight: var(--clipboard-value-text-font-weight, inherit);
|
|
140
|
+
line-height: var(--clipboard-value-text-line-height, inherit);
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Clipboard } from "@ark-ui/react/clipboard";
|
|
2
|
+
|
|
3
|
+
//#region src/components/clipboard/Clipboard.d.ts
|
|
4
|
+
declare const Clipboard$1: import("react").ForwardRefExoticComponent<Omit<Clipboard.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Clipboard.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Clipboard.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Clipboard.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
|
+
Control: import("react").ForwardRefExoticComponent<Omit<Clipboard.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Input: import("react").ForwardRefExoticComponent<Omit<Clipboard.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<Clipboard.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Clipboard.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
ValueText: import("react").ForwardRefExoticComponent<Omit<Clipboard.ValueTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Clipboard$1 as Clipboard };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { CheckIcon, CopyIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import Clipboard_module_default from "./Clipboard.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Clipboard } from "@ark-ui/react/clipboard";
|
|
8
|
+
//#region src/components/clipboard/Clipboard.tsx
|
|
9
|
+
const ClipboardRoot = forwardRef(function ClipboardRoot({ className, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Clipboard.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "clipboard-root",
|
|
13
|
+
className: clsx(Clipboard_module_default.root, normalizeClassName(className)),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
const ClipboardRootProvider = forwardRef(function ClipboardRootProvider({ className, ...props }, ref) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Clipboard.RootProvider, {
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "clipboard-root-provider",
|
|
21
|
+
className: clsx(Clipboard_module_default.root, normalizeClassName(className)),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const ClipboardLabel = forwardRef(function ClipboardLabel({ className, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ jsx(Clipboard.Label, {
|
|
27
|
+
ref,
|
|
28
|
+
"data-slot": "clipboard-label",
|
|
29
|
+
className: clsx(Clipboard_module_default.label, normalizeClassName(className)),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const ClipboardControl = forwardRef(function ClipboardControl({ className, ...props }, ref) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Clipboard.Control, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "clipboard-control",
|
|
37
|
+
className: clsx(Clipboard_module_default.control, normalizeClassName(className)),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const ClipboardInput = forwardRef(function ClipboardInput({ className, ...props }, ref) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Clipboard.Input, {
|
|
43
|
+
ref,
|
|
44
|
+
"data-slot": "clipboard-input",
|
|
45
|
+
className: clsx(Clipboard_module_default.input, normalizeClassName(className)),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const ClipboardTrigger = forwardRef(function ClipboardTrigger({ className, ...props }, ref) {
|
|
50
|
+
return /* @__PURE__ */ jsx(Clipboard.Trigger, {
|
|
51
|
+
ref,
|
|
52
|
+
"data-slot": "clipboard-trigger",
|
|
53
|
+
className: clsx(Clipboard_module_default.trigger, normalizeClassName(className)),
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const ClipboardIndicator = forwardRef(function ClipboardIndicator({ className, children, copied, ...props }, ref) {
|
|
58
|
+
return /* @__PURE__ */ jsx(Clipboard.Indicator, {
|
|
59
|
+
ref,
|
|
60
|
+
"data-slot": "clipboard-indicator",
|
|
61
|
+
className: clsx(Clipboard_module_default.indicator, normalizeClassName(className)),
|
|
62
|
+
copied: copied ?? /* @__PURE__ */ jsx("span", {
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
"data-slot": "clipboard-indicator-copied-icon",
|
|
65
|
+
className: Clipboard_module_default.icon,
|
|
66
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
67
|
+
}),
|
|
68
|
+
...props,
|
|
69
|
+
children: children ?? /* @__PURE__ */ jsx("span", {
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
"data-slot": "clipboard-indicator-idle-icon",
|
|
72
|
+
className: Clipboard_module_default.icon,
|
|
73
|
+
children: /* @__PURE__ */ jsx(CopyIcon, {})
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
const ClipboardValueText = forwardRef(function ClipboardValueText({ className, ...props }, ref) {
|
|
78
|
+
return /* @__PURE__ */ jsx(Clipboard.ValueText, {
|
|
79
|
+
ref,
|
|
80
|
+
"data-slot": "clipboard-value-text",
|
|
81
|
+
className: clsx(Clipboard_module_default.valueText, normalizeClassName(className)),
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
const Clipboard$1 = Object.assign(ClipboardRoot, {
|
|
86
|
+
Root: ClipboardRoot,
|
|
87
|
+
RootProvider: ClipboardRootProvider,
|
|
88
|
+
Label: ClipboardLabel,
|
|
89
|
+
Control: ClipboardControl,
|
|
90
|
+
Input: ClipboardInput,
|
|
91
|
+
Trigger: ClipboardTrigger,
|
|
92
|
+
Indicator: ClipboardIndicator,
|
|
93
|
+
ValueText: ClipboardValueText
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
export { Clipboard$1 as Clipboard };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './Clipboard.css';
|
|
2
|
+
//#region src/components/clipboard/Clipboard.module.css
|
|
3
|
+
var Clipboard_module_default = {
|
|
4
|
+
"control": "BmLivq_control",
|
|
5
|
+
"icon": "BmLivq_icon",
|
|
6
|
+
"indicator": "BmLivq_indicator",
|
|
7
|
+
"input": "BmLivq_input",
|
|
8
|
+
"label": "BmLivq_label",
|
|
9
|
+
"root": "BmLivq_root",
|
|
10
|
+
"trigger": "BmLivq_trigger",
|
|
11
|
+
"valueText": "BmLivq_valueText"
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Clipboard_module_default as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.CLvmvW_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: var(--close-button-size, 28px);
|
|
5
|
+
height: var(--close-button-size, 28px);
|
|
6
|
+
background-color: var(--close-button-bg, transparent);
|
|
7
|
+
border-radius: var(--close-button-radius, var(--radius-sm));
|
|
8
|
+
color: var(--close-button-color, var(--color-muted-foreground));
|
|
9
|
+
appearance: none;
|
|
10
|
+
font: inherit;
|
|
11
|
+
user-select: none;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition: background-color var(--close-button-transition, var(--transition-default)),
|
|
14
|
+
color var(--close-button-transition, var(--transition-default)),
|
|
15
|
+
opacity var(--close-button-transition, var(--transition-default));
|
|
16
|
+
border: none;
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
|
|
24
|
+
& > svg {
|
|
25
|
+
width: var(--close-button-icon-size, 12px);
|
|
26
|
+
height: var(--close-button-icon-size, 12px);
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (hover: hover) {
|
|
31
|
+
&:hover:not([data-disabled]) {
|
|
32
|
+
background-color: var(--close-button-bg-hover, var(--color-muted));
|
|
33
|
+
color: var(--close-button-color-hover, var(--color-foreground));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
outline: var(--close-button-focus-ring-width, var(--border-width-md)) solid
|
|
39
|
+
var(--close-button-focus-ring-color, var(--color-ring));
|
|
40
|
+
outline-offset: var(--close-button-focus-ring-offset, 2px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-disabled] {
|
|
44
|
+
cursor: default;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
opacity: var(--close-button-disabled-opacity, var(--opacity-disabled));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/components/close-button/CloseButton.d.ts
|
|
2
|
+
declare const CloseButton: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
3
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
};
|
|
5
|
+
//#endregion
|
|
6
|
+
export { CloseButton };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CloseIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import CloseButton_module_default from "./CloseButton.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { ark } from "@ark-ui/react/factory";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
//#region src/components/close-button/CloseButton.tsx
|
|
9
|
+
const CloseButtonRoot = forwardRef(function CloseButtonRoot({ asChild, className, children, disabled, onClick, type, "aria-disabled": ariaDisabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }, ref) {
|
|
10
|
+
const isDisabled = disabled || ariaDisabled === true || ariaDisabled === "true";
|
|
11
|
+
const handleClick = (event) => {
|
|
12
|
+
if (isDisabled) {
|
|
13
|
+
event.preventDefault();
|
|
14
|
+
event.stopPropagation();
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
onClick?.(event);
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ jsx(ark.button, {
|
|
20
|
+
ref,
|
|
21
|
+
asChild,
|
|
22
|
+
type: asChild ? type : type ?? "button",
|
|
23
|
+
disabled,
|
|
24
|
+
"data-scope": "close-button",
|
|
25
|
+
"data-part": "root",
|
|
26
|
+
"data-slot": "close-button-root",
|
|
27
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
28
|
+
className: clsx(CloseButton_module_default.root, normalizeClassName(className)),
|
|
29
|
+
"aria-disabled": ariaDisabled,
|
|
30
|
+
"aria-label": ariaLabel ?? (children == null && ariaLabelledBy == null ? "Close" : void 0),
|
|
31
|
+
"aria-labelledby": ariaLabelledBy,
|
|
32
|
+
onClick: handleClick,
|
|
33
|
+
...props,
|
|
34
|
+
children: children ?? /* @__PURE__ */ jsx(CloseIcon, {})
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
const CloseButton = Object.assign(CloseButtonRoot, { Root: CloseButtonRoot });
|
|
38
|
+
//#endregion
|
|
39
|
+
export { CloseButton };
|