@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,32 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Skeleton_module_default from "./Skeleton.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/skeleton/Skeleton.tsx
|
|
8
|
+
const toCssValue = (value) => typeof value === "number" ? `${value}px` : value;
|
|
9
|
+
const SkeletonRoot = forwardRef(function SkeletonRoot({ "aria-hidden": ariaHidden, asChild, borderRadius, boxSize, className, height, loading = true, style, variant = "pulse", width, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
11
|
+
ref,
|
|
12
|
+
asChild,
|
|
13
|
+
"data-scope": "skeleton",
|
|
14
|
+
"data-part": "root",
|
|
15
|
+
"data-slot": "skeleton-root",
|
|
16
|
+
"data-state": loading ? "loading" : "loaded",
|
|
17
|
+
"data-loading": loading ? "" : void 0,
|
|
18
|
+
"data-variant": variant,
|
|
19
|
+
"aria-hidden": ariaHidden ?? (loading ? true : void 0),
|
|
20
|
+
className: clsx(Skeleton_module_default.root, normalizeClassName(className)),
|
|
21
|
+
style: {
|
|
22
|
+
width: toCssValue(width ?? boxSize),
|
|
23
|
+
height: toCssValue(height ?? boxSize),
|
|
24
|
+
borderRadius: toCssValue(borderRadius),
|
|
25
|
+
...style
|
|
26
|
+
},
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
const Skeleton = Object.assign(SkeletonRoot, { Root: SkeletonRoot });
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Skeleton };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.qB-XUW_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
gap: var(--slider-gap, .5rem);
|
|
5
|
+
width: var(--slider-width, 12rem);
|
|
6
|
+
color: var(--slider-color, var(--color-foreground));
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
display: flex;
|
|
9
|
+
|
|
10
|
+
&[data-orientation="vertical"] {
|
|
11
|
+
width: var(--slider-width-vertical, max-content);
|
|
12
|
+
height: var(--slider-height, 12rem);
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-disabled] {
|
|
17
|
+
opacity: var(--slider-disabled-opacity, var(--opacity-disabled));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.qB-XUW_label {
|
|
22
|
+
color: var(--slider-label-color, var(--slider-color, var(--color-foreground)));
|
|
23
|
+
font-size: var(--slider-label-font-size, var(--text-sm));
|
|
24
|
+
font-weight: var(--slider-label-font-weight, var(--weight-regular));
|
|
25
|
+
line-height: var(--slider-label-line-height, var(--line-height-text-sm));
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.qB-XUW_valueText {
|
|
30
|
+
color: var(--slider-value-text-color, var(--slider-color, var(--color-foreground)));
|
|
31
|
+
font-size: var(--slider-value-text-font-size, var(--text-sm));
|
|
32
|
+
font-weight: var(--slider-value-text-font-weight, var(--weight-regular));
|
|
33
|
+
line-height: var(--slider-value-text-line-height, var(--line-height-text-sm));
|
|
34
|
+
text-align: right;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.qB-XUW_control {
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
width: 100%;
|
|
40
|
+
min-height: var(--slider-control-size, 1.25rem);
|
|
41
|
+
touch-action: none;
|
|
42
|
+
user-select: none;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
align-items: center;
|
|
45
|
+
display: flex;
|
|
46
|
+
position: relative;
|
|
47
|
+
|
|
48
|
+
&[data-orientation="vertical"] {
|
|
49
|
+
width: var(--slider-control-size, 1.25rem);
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
height: 100%;
|
|
52
|
+
min-height: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&[data-disabled] {
|
|
56
|
+
cursor: default;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.qB-XUW_track {
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: var(--slider-track-size, .375rem);
|
|
63
|
+
border-radius: var(--slider-track-radius, var(--radius-full));
|
|
64
|
+
background-color: var(--slider-track-bg, var(--color-muted));
|
|
65
|
+
box-shadow: inset 0 0 0 var(--slider-track-border-width, var(--border-width-sm))
|
|
66
|
+
var(--slider-track-border-color, var(--color-border));
|
|
67
|
+
user-select: none;
|
|
68
|
+
flex: 1;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
|
|
71
|
+
&[data-orientation="vertical"] {
|
|
72
|
+
width: var(--slider-track-size, .375rem);
|
|
73
|
+
height: 100%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.qB-XUW_range {
|
|
78
|
+
border-radius: var(--slider-range-radius, inherit);
|
|
79
|
+
background-color: var(--slider-range-bg, var(--color-primary));
|
|
80
|
+
height: 100%;
|
|
81
|
+
|
|
82
|
+
&[data-orientation="vertical"] {
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.qB-XUW_thumb {
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
width: var(--slider-thumb-size, 1rem);
|
|
90
|
+
height: var(--slider-thumb-size, 1rem);
|
|
91
|
+
border: var(--slider-thumb-border-width, var(--border-width-sm)) solid
|
|
92
|
+
var(--slider-thumb-border-color, var(--color-border));
|
|
93
|
+
border-radius: var(--slider-thumb-radius, var(--radius-full));
|
|
94
|
+
background-color: var(--slider-thumb-bg, var(--color-background));
|
|
95
|
+
box-shadow: var(--slider-thumb-shadow, var(--shadow-sm));
|
|
96
|
+
user-select: none;
|
|
97
|
+
transition: border-color var(--slider-transition, var(--transition-default)),
|
|
98
|
+
background-color var(--slider-transition, var(--transition-default)),
|
|
99
|
+
box-shadow var(--slider-transition, var(--transition-default));
|
|
100
|
+
outline: 0;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
align-items: center;
|
|
103
|
+
display: flex;
|
|
104
|
+
|
|
105
|
+
&:focus-visible {
|
|
106
|
+
border-color: var(--slider-focus-ring-color, var(--color-ring));
|
|
107
|
+
box-shadow: 0 0 0 var(--border-width-sm) var(--slider-focus-ring-color, var(--color-ring));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&[data-dragging] {
|
|
111
|
+
box-shadow: var(--slider-thumb-shadow-dragging, var(--shadow-md));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&[data-disabled] {
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.qB-XUW_draggingIndicator {
|
|
120
|
+
top: calc(-1 * var(--spacing-8));
|
|
121
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
122
|
+
border-radius: var(--slider-dragging-indicator-radius, var(--radius-sm));
|
|
123
|
+
background-color: var(--slider-dragging-indicator-bg, var(--color-foreground));
|
|
124
|
+
color: var(--slider-dragging-indicator-color, var(--color-background));
|
|
125
|
+
font-size: var(--slider-dragging-indicator-font-size, var(--text-xs));
|
|
126
|
+
font-weight: var(--slider-dragging-indicator-font-weight, var(--weight-medium));
|
|
127
|
+
line-height: var(--slider-dragging-indicator-line-height, 1);
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.qB-XUW_markerGroup {
|
|
133
|
+
margin-top: var(--slider-marker-group-margin-top, var(--spacing-2));
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
display: flex;
|
|
136
|
+
|
|
137
|
+
&[data-orientation="vertical"] {
|
|
138
|
+
height: 100%;
|
|
139
|
+
margin-top: 0;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
margin-inline-start: var(--slider-marker-group-margin-inline-start, var(--spacing-2));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.qB-XUW_marker {
|
|
146
|
+
color: var(--slider-marker-color, var(--color-muted-foreground));
|
|
147
|
+
font-size: var(--slider-marker-font-size, var(--text-xs));
|
|
148
|
+
line-height: var(--slider-marker-line-height, var(--line-height-text-xs));
|
|
149
|
+
position: relative;
|
|
150
|
+
|
|
151
|
+
&:before {
|
|
152
|
+
width: var(--slider-marker-dot-size, .25rem);
|
|
153
|
+
height: var(--slider-marker-dot-size, .25rem);
|
|
154
|
+
border-radius: var(--radius-full);
|
|
155
|
+
background-color: var(--slider-marker-dot-bg, var(--color-border));
|
|
156
|
+
content: "";
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset-block-start: calc(-1 * var(--spacing-2));
|
|
159
|
+
inset-inline-start: 50%;
|
|
160
|
+
transform: translateX(-50%);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&:is([data-state="under-value"], [data-state="at-value"]):before {
|
|
164
|
+
background-color: var(--slider-marker-dot-bg-active, var(--slider-range-bg, var(--color-primary)));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Slider } from "@ark-ui/react/slider";
|
|
2
|
+
|
|
3
|
+
//#region src/components/slider/Slider.d.ts
|
|
4
|
+
declare const Slider$1: import("react").ForwardRefExoticComponent<Omit<Slider.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Slider.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Slider.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Slider.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
|
+
ValueText: import("react").ForwardRefExoticComponent<Omit<Slider.ValueTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Control: import("react").ForwardRefExoticComponent<Omit<Slider.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Track: import("react").ForwardRefExoticComponent<Omit<Slider.TrackProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Range: import("react").ForwardRefExoticComponent<Omit<Slider.RangeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Thumb: import("react").ForwardRefExoticComponent<Omit<Slider.ThumbProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
HiddenInput: import("react").ForwardRefExoticComponent<Omit<Slider.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
|
+
MarkerGroup: import("react").ForwardRefExoticComponent<Omit<Slider.MarkerGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Marker: import("react").ForwardRefExoticComponent<Omit<Slider.MarkerProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
DraggingIndicator: import("react").ForwardRefExoticComponent<Omit<Slider.DraggingIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Slider$1 as Slider };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Slider_module_default from "./Slider.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Slider } from "@ark-ui/react/slider";
|
|
7
|
+
//#region src/components/slider/Slider.tsx
|
|
8
|
+
const SliderRoot = forwardRef(function SliderRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Slider.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "slider-root",
|
|
12
|
+
className: clsx(Slider_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const SliderRootProvider = forwardRef(function SliderRootProvider({ className, ...props }, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Slider.RootProvider, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "slider-root-provider",
|
|
20
|
+
className: clsx(Slider_module_default.root, normalizeClassName(className)),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
const SliderLabel = forwardRef(function SliderLabel({ className, ...props }, ref) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Slider.Label, {
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "slider-label",
|
|
28
|
+
className: clsx(Slider_module_default.label, normalizeClassName(className)),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const SliderValueText = forwardRef(function SliderValueText({ className, ...props }, ref) {
|
|
33
|
+
return /* @__PURE__ */ jsx(Slider.ValueText, {
|
|
34
|
+
ref,
|
|
35
|
+
"data-slot": "slider-value-text",
|
|
36
|
+
className: clsx(Slider_module_default.valueText, normalizeClassName(className)),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
const SliderControl = forwardRef(function SliderControl({ className, ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Slider.Control, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-slot": "slider-control",
|
|
44
|
+
className: clsx(Slider_module_default.control, normalizeClassName(className)),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const SliderTrack = forwardRef(function SliderTrack({ className, ...props }, ref) {
|
|
49
|
+
return /* @__PURE__ */ jsx(Slider.Track, {
|
|
50
|
+
ref,
|
|
51
|
+
"data-slot": "slider-track",
|
|
52
|
+
className: clsx(Slider_module_default.track, normalizeClassName(className)),
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
const SliderRange = forwardRef(function SliderRange({ className, ...props }, ref) {
|
|
57
|
+
return /* @__PURE__ */ jsx(Slider.Range, {
|
|
58
|
+
ref,
|
|
59
|
+
"data-slot": "slider-range",
|
|
60
|
+
className: clsx(Slider_module_default.range, normalizeClassName(className)),
|
|
61
|
+
...props
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
const SliderThumb = forwardRef(function SliderThumb({ className, ...props }, ref) {
|
|
65
|
+
return /* @__PURE__ */ jsx(Slider.Thumb, {
|
|
66
|
+
ref,
|
|
67
|
+
"data-slot": "slider-thumb",
|
|
68
|
+
className: clsx(Slider_module_default.thumb, normalizeClassName(className)),
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
const SliderHiddenInput = forwardRef(function SliderHiddenInput({ className, ...props }, ref) {
|
|
73
|
+
return /* @__PURE__ */ jsx(Slider.HiddenInput, {
|
|
74
|
+
ref,
|
|
75
|
+
"data-slot": "slider-hidden-input",
|
|
76
|
+
className: normalizeClassName(className),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
const SliderMarkerGroup = forwardRef(function SliderMarkerGroup({ className, ...props }, ref) {
|
|
81
|
+
return /* @__PURE__ */ jsx(Slider.MarkerGroup, {
|
|
82
|
+
ref,
|
|
83
|
+
"data-slot": "slider-marker-group",
|
|
84
|
+
className: clsx(Slider_module_default.markerGroup, normalizeClassName(className)),
|
|
85
|
+
...props
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
const SliderMarker = forwardRef(function SliderMarker({ className, ...props }, ref) {
|
|
89
|
+
return /* @__PURE__ */ jsx(Slider.Marker, {
|
|
90
|
+
ref,
|
|
91
|
+
"data-slot": "slider-marker",
|
|
92
|
+
className: clsx(Slider_module_default.marker, normalizeClassName(className)),
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
const SliderDraggingIndicator = forwardRef(function SliderDraggingIndicator({ className, ...props }, ref) {
|
|
97
|
+
return /* @__PURE__ */ jsx(Slider.DraggingIndicator, {
|
|
98
|
+
ref,
|
|
99
|
+
"data-slot": "slider-dragging-indicator",
|
|
100
|
+
className: clsx(Slider_module_default.draggingIndicator, normalizeClassName(className)),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
const Slider$1 = Object.assign(SliderRoot, {
|
|
105
|
+
Root: SliderRoot,
|
|
106
|
+
RootProvider: SliderRootProvider,
|
|
107
|
+
Label: SliderLabel,
|
|
108
|
+
ValueText: SliderValueText,
|
|
109
|
+
Control: SliderControl,
|
|
110
|
+
Track: SliderTrack,
|
|
111
|
+
Range: SliderRange,
|
|
112
|
+
Thumb: SliderThumb,
|
|
113
|
+
HiddenInput: SliderHiddenInput,
|
|
114
|
+
MarkerGroup: SliderMarkerGroup,
|
|
115
|
+
Marker: SliderMarker,
|
|
116
|
+
DraggingIndicator: SliderDraggingIndicator
|
|
117
|
+
});
|
|
118
|
+
//#endregion
|
|
119
|
+
export { Slider$1 as Slider };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './Slider.css';
|
|
2
|
+
//#region src/components/slider/Slider.module.css
|
|
3
|
+
var Slider_module_default = {
|
|
4
|
+
"control": "qB-XUW_control",
|
|
5
|
+
"draggingIndicator": "qB-XUW_draggingIndicator",
|
|
6
|
+
"label": "qB-XUW_label",
|
|
7
|
+
"marker": "qB-XUW_marker",
|
|
8
|
+
"markerGroup": "qB-XUW_markerGroup",
|
|
9
|
+
"range": "qB-XUW_range",
|
|
10
|
+
"root": "qB-XUW_root",
|
|
11
|
+
"thumb": "qB-XUW_thumb",
|
|
12
|
+
"track": "qB-XUW_track",
|
|
13
|
+
"valueText": "qB-XUW_valueText"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Slider_module_default as default };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.mDsGJa_root, [data-scope="spinner"][data-part="root"] {
|
|
3
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-md, 1.25rem));
|
|
4
|
+
width: var(--_spinner-size);
|
|
5
|
+
height: var(--_spinner-size);
|
|
6
|
+
color: var(--spinner-color, currentColor);
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
flex: none;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mDsGJa_indicator, [data-scope="spinner"][data-part="indicator"] {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
animation: var(--spinner-animation, var(--animation-spin));
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.mDsGJa_ring, [data-scope="spinner"][data-part="ring"] {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
border: var(--spinner-ring-border-width, var(--border-width-md)) solid
|
|
26
|
+
var(--spinner-ring-track-color, color-mix(in oklab, currentColor 22%, transparent));
|
|
27
|
+
border-block-start-color: var(--spinner-color, currentColor);
|
|
28
|
+
border-radius: var(--spinner-radius, var(--radius-full));
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mDsGJa_indicator :where(svg), [data-scope="spinner"][data-part="indicator"] :where(svg) {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mDsGJa_root[data-size="xs"], [data-scope="spinner"][data-part="root"][data-size="xs"] {
|
|
40
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-xs, .75rem));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mDsGJa_root[data-size="sm"], [data-scope="spinner"][data-part="root"][data-size="sm"] {
|
|
44
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-sm, 1rem));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mDsGJa_root[data-size="lg"], [data-scope="spinner"][data-part="root"][data-size="lg"] {
|
|
48
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-lg, 1.75rem));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mDsGJa_root[data-size="xl"], [data-scope="spinner"][data-part="root"][data-size="xl"] {
|
|
52
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-xl, 2.25rem));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (prefers-reduced-motion: reduce) {
|
|
56
|
+
.mDsGJa_indicator, [data-scope="spinner"][data-part="indicator"] {
|
|
57
|
+
animation: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/spinner/Spinner.d.ts
|
|
2
|
+
declare const Spinner: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
decorative?: boolean;
|
|
5
|
+
} & import("react").RefAttributes<HTMLSpanElement>> & {
|
|
6
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
8
|
+
decorative?: boolean;
|
|
9
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Spinner };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Spinner_module_default from "./Spinner.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/spinner/Spinner.tsx
|
|
8
|
+
const SpinnerRoot = forwardRef(function SpinnerRoot({ asChild, children, className, decorative = false, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, size = "md", ...props }, ref) {
|
|
9
|
+
const accessibleLabel = decorative ? void 0 : ariaLabel ?? (ariaLabelledBy ? void 0 : "Loading");
|
|
10
|
+
return /* @__PURE__ */ jsx(ark.span, {
|
|
11
|
+
ref,
|
|
12
|
+
asChild,
|
|
13
|
+
"data-scope": "spinner",
|
|
14
|
+
"data-part": "root",
|
|
15
|
+
"data-slot": "spinner-root",
|
|
16
|
+
"data-size": size,
|
|
17
|
+
role: decorative ? "presentation" : "status",
|
|
18
|
+
"aria-hidden": decorative ? true : void 0,
|
|
19
|
+
"aria-label": accessibleLabel,
|
|
20
|
+
"aria-labelledby": decorative ? void 0 : ariaLabelledBy,
|
|
21
|
+
className: clsx(Spinner_module_default.root, normalizeClassName(className)),
|
|
22
|
+
...props,
|
|
23
|
+
children: asChild ? children : /* @__PURE__ */ jsx("span", {
|
|
24
|
+
"data-scope": "spinner",
|
|
25
|
+
"data-part": "indicator",
|
|
26
|
+
"data-slot": "spinner-indicator",
|
|
27
|
+
className: Spinner_module_default.indicator,
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
children: children ?? /* @__PURE__ */ jsx("span", {
|
|
30
|
+
"data-scope": "spinner",
|
|
31
|
+
"data-part": "ring",
|
|
32
|
+
"data-slot": "spinner-ring",
|
|
33
|
+
className: Spinner_module_default.ring
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const Spinner = Object.assign(SpinnerRoot, { Root: SpinnerRoot });
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Spinner };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.A0sAVa_root {
|
|
3
|
+
align-items: stretch;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.A0sAVa_action {
|
|
8
|
+
border-start-end-radius: 0;
|
|
9
|
+
border-end-end-radius: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.A0sAVa_trigger {
|
|
13
|
+
min-width: 0;
|
|
14
|
+
border-start-start-radius: 0;
|
|
15
|
+
border-end-start-radius: 0;
|
|
16
|
+
margin-inline-start: calc(var(--button-border-width, var(--border-width-sm)) * -1);
|
|
17
|
+
padding-inline: .75rem;
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.A0sAVa_trigger:before {
|
|
22
|
+
content: "";
|
|
23
|
+
opacity: .16;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
background-color: currentColor;
|
|
26
|
+
width: 1px;
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset-block: .375rem;
|
|
29
|
+
inset-inline-start: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.A0sAVa_trigger[data-variant="outline"]:before, .A0sAVa_trigger[data-variant="destructive-outline"]:before {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.A0sAVa_trigger[data-size="xs"] {
|
|
37
|
+
padding-inline: .5rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.A0sAVa_trigger[data-size="sm"] {
|
|
41
|
+
padding-inline: .625rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.A0sAVa_trigger[data-size="lg"] {
|
|
45
|
+
padding-inline: .875rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.A0sAVa_trigger[data-size="xl"] {
|
|
49
|
+
padding-inline: 1rem;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Button } from "../button/Button.js";
|
|
2
|
+
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
3
|
+
import { Menu } from "../menu/Menu.js";
|
|
4
|
+
import { ComponentProps, ReactNode } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/split-button/SplitButton.d.ts
|
|
7
|
+
type ButtonProps = ComponentProps<typeof Button>;
|
|
8
|
+
type SplitButtonVariant = Exclude<NonNullable<ButtonProps['variant']>, 'link'>;
|
|
9
|
+
type SplitButtonSize = Exclude<NonNullable<ButtonProps['size']>, 'icon-sm' | 'icon-md' | 'icon-lg'>;
|
|
10
|
+
type SplitButtonActionProps = Omit<ButtonProps, 'size' | 'variant'> & {
|
|
11
|
+
size?: SplitButtonSize;
|
|
12
|
+
variant?: SplitButtonVariant;
|
|
13
|
+
};
|
|
14
|
+
type SplitButtonTriggerProps = ComponentProps<typeof Menu.Trigger> & {
|
|
15
|
+
size?: SplitButtonSize;
|
|
16
|
+
variant?: SplitButtonVariant;
|
|
17
|
+
};
|
|
18
|
+
declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<import("@ark-ui/react/menu").MenuRootProps & OverlayPortalProps, "children"> & {
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
size?: SplitButtonSize;
|
|
22
|
+
variant?: SplitButtonVariant;
|
|
23
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
24
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("@ark-ui/react/menu").MenuRootProps & OverlayPortalProps, "children"> & {
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
size?: SplitButtonSize;
|
|
28
|
+
variant?: SplitButtonVariant;
|
|
29
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Action: import("react").ForwardRefExoticComponent<Omit<SplitButtonActionProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<SplitButtonTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<Omit<import("@ark-ui/react/menu").MenuPositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("@ark-ui/react/menu").MenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { SplitButton };
|