@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,283 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.XFk_Vq_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
max-width: var(--steps-max-width, 52rem);
|
|
6
|
+
min-width: 0;
|
|
7
|
+
color: var(--steps-color, var(--color-foreground));
|
|
8
|
+
display: flex;
|
|
9
|
+
|
|
10
|
+
&[data-orientation="horizontal"] {
|
|
11
|
+
gap: var(--steps-root-gap, var(--spacing-4));
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&[data-orientation="vertical"] {
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
gap: var(--steps-vertical-gap, var(--spacing-6));
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.XFk_Vq_list {
|
|
23
|
+
width: 100%;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
list-style: none;
|
|
28
|
+
display: flex;
|
|
29
|
+
|
|
30
|
+
&[data-orientation="horizontal"] {
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-orientation="vertical"] {
|
|
36
|
+
align-items: flex-start;
|
|
37
|
+
gap: var(--steps-gap, var(--spacing-4));
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
flex: none;
|
|
40
|
+
width: fit-content;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.XFk_Vq_item {
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: var(--steps-trigger-gap, var(--spacing-3));
|
|
47
|
+
flex: 1 1 0;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
display: flex;
|
|
50
|
+
position: relative;
|
|
51
|
+
|
|
52
|
+
&:last-child {
|
|
53
|
+
flex: none;
|
|
54
|
+
|
|
55
|
+
& .XFk_Vq_separator {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-orientation="vertical"] {
|
|
61
|
+
min-height: var(--steps-vertical-item-min-height, 4rem);
|
|
62
|
+
flex: none;
|
|
63
|
+
align-items: flex-start;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.XFk_Vq_trigger {
|
|
68
|
+
z-index: 1;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: var(--steps-trigger-gap, var(--spacing-3));
|
|
71
|
+
border-radius: var(--steps-trigger-radius, var(--radius-md));
|
|
72
|
+
min-width: 0;
|
|
73
|
+
color: inherit;
|
|
74
|
+
font: inherit;
|
|
75
|
+
text-align: left;
|
|
76
|
+
user-select: none;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
background: none;
|
|
79
|
+
border: 0;
|
|
80
|
+
outline: none;
|
|
81
|
+
padding: 0;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
position: relative;
|
|
85
|
+
|
|
86
|
+
&[data-orientation="vertical"] {
|
|
87
|
+
align-items: flex-start;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:focus-visible .XFk_Vq_indicator {
|
|
91
|
+
outline: var(--steps-focus-ring-width, var(--border-width-sm)) solid
|
|
92
|
+
var(--steps-focus-ring-color, var(--color-ring));
|
|
93
|
+
outline-offset: var(--steps-focus-ring-offset, 2px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&[data-incomplete] {
|
|
97
|
+
color: var(--steps-trigger-color-incomplete, inherit);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (hover: hover) {
|
|
101
|
+
&:hover .XFk_Vq_indicator[data-incomplete] {
|
|
102
|
+
border-color: var(--steps-indicator-border-color-hover, var(--steps-indicator-border-color-current, var(--color-foreground)));
|
|
103
|
+
color: var(--steps-indicator-color-hover, var(--steps-indicator-color-current, var(--color-foreground)));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.XFk_Vq_indicator {
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
width: var(--steps-indicator-size, 2rem);
|
|
111
|
+
height: var(--steps-indicator-size, 2rem);
|
|
112
|
+
border: var(--steps-indicator-border-width, var(--border-width-sm)) solid
|
|
113
|
+
var(--steps-indicator-border-color, var(--color-border));
|
|
114
|
+
border-radius: var(--steps-indicator-radius, var(--radius-full));
|
|
115
|
+
background-color: var(--steps-indicator-bg, var(--color-background));
|
|
116
|
+
color: var(--steps-indicator-color, var(--color-muted-foreground));
|
|
117
|
+
font-size: var(--steps-indicator-font-size, var(--text-sm));
|
|
118
|
+
font-weight: var(--steps-indicator-font-weight, var(--weight-semibold));
|
|
119
|
+
transition: background-color var(--transition-default),
|
|
120
|
+
border-color var(--transition-default),
|
|
121
|
+
color var(--transition-default),
|
|
122
|
+
opacity var(--transition-default);
|
|
123
|
+
flex: none;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
align-items: center;
|
|
126
|
+
line-height: 1;
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
|
|
129
|
+
& :where(svg) {
|
|
130
|
+
width: var(--steps-indicator-icon-size, .875rem);
|
|
131
|
+
height: var(--steps-indicator-icon-size, .875rem);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&[data-current] {
|
|
135
|
+
border-color: var(--steps-indicator-border-color-current, var(--steps-indicator-border-color-complete, var(--color-foreground)));
|
|
136
|
+
background-color: var(--steps-indicator-bg-current, var(--steps-indicator-bg, var(--color-background)));
|
|
137
|
+
color: var(--steps-indicator-color-current, var(--color-foreground));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&[data-complete] {
|
|
141
|
+
border-color: var(--steps-indicator-border-color-complete, var(--color-foreground));
|
|
142
|
+
background-color: var(--steps-indicator-bg-complete, var(--color-foreground));
|
|
143
|
+
color: var(--steps-indicator-color-complete, var(--color-background));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.XFk_Vq_separator {
|
|
148
|
+
height: var(--steps-separator-thickness, var(--border-width-sm));
|
|
149
|
+
min-width: var(--steps-separator-min-width, var(--spacing-8));
|
|
150
|
+
margin-inline: var(--steps-separator-inset, .5rem);
|
|
151
|
+
background-color: var(--steps-separator-color, var(--color-border));
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
flex: auto;
|
|
154
|
+
|
|
155
|
+
&[data-complete] {
|
|
156
|
+
background-color: var(--steps-separator-color-complete, var(--color-foreground));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&[data-orientation="vertical"] {
|
|
160
|
+
top: calc(var(--steps-indicator-size, 2rem) + var(--steps-separator-inset, .5rem));
|
|
161
|
+
bottom: calc(var(--steps-gap, var(--spacing-4)) * -1);
|
|
162
|
+
left: calc(var(--steps-indicator-size, 2rem) / 2);
|
|
163
|
+
width: var(--steps-separator-thickness, var(--border-width-sm));
|
|
164
|
+
min-width: 0;
|
|
165
|
+
height: auto;
|
|
166
|
+
margin-inline: 0;
|
|
167
|
+
position: absolute;
|
|
168
|
+
translate: -50%;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.XFk_Vq_content, .XFk_Vq_completedContent {
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
min-height: var(--steps-content-min-height, 10rem);
|
|
175
|
+
min-width: 0;
|
|
176
|
+
padding-block: var(--steps-content-padding-y, var(--spacing-4));
|
|
177
|
+
padding-inline: var(--steps-content-padding-x, var(--spacing-4));
|
|
178
|
+
border-radius: var(--steps-content-radius, var(--radius-md));
|
|
179
|
+
background-color: var(--steps-content-bg, var(--color-muted));
|
|
180
|
+
color: var(--steps-content-color, var(--color-foreground));
|
|
181
|
+
font-size: var(--steps-content-font-size, var(--text-sm));
|
|
182
|
+
line-height: var(--steps-content-line-height, var(--line-height-text-sm));
|
|
183
|
+
outline: none;
|
|
184
|
+
place-items: center;
|
|
185
|
+
display: grid;
|
|
186
|
+
|
|
187
|
+
&[hidden]:not([hidden="until-found"]) {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&[data-orientation="vertical"] {
|
|
192
|
+
flex: auto;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:focus-visible {
|
|
196
|
+
outline: var(--steps-focus-ring-width, var(--border-width-sm)) solid
|
|
197
|
+
var(--steps-focus-ring-color, var(--color-ring));
|
|
198
|
+
outline-offset: calc(var(--steps-focus-ring-offset, 2px) * -1);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.XFk_Vq_completedContent {
|
|
203
|
+
color: var(--steps-completed-content-color, var(--color-foreground));
|
|
204
|
+
font-weight: var(--steps-completed-content-font-weight, var(--weight-medium));
|
|
205
|
+
text-align: center;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.XFk_Vq_prevTrigger, .XFk_Vq_nextTrigger {
|
|
209
|
+
box-sizing: border-box;
|
|
210
|
+
min-height: var(--steps-action-height, 2rem);
|
|
211
|
+
justify-content: center;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: var(--steps-action-gap, var(--spacing-2));
|
|
214
|
+
border: var(--steps-action-border-width, var(--border-width-sm)) solid
|
|
215
|
+
var(--steps-action-border-color, var(--color-border));
|
|
216
|
+
border-radius: var(--steps-action-radius, var(--radius-md));
|
|
217
|
+
padding-block: var(--steps-action-padding-y, .375rem);
|
|
218
|
+
padding-inline: var(--steps-action-padding-x, .75rem);
|
|
219
|
+
background-color: var(--steps-action-bg, var(--color-background));
|
|
220
|
+
color: var(--steps-action-color, var(--color-foreground));
|
|
221
|
+
font: inherit;
|
|
222
|
+
font-size: var(--steps-action-font-size, var(--text-sm));
|
|
223
|
+
line-height: var(--steps-action-line-height, var(--line-height-text-sm));
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
transition: background-color var(--transition-default),
|
|
226
|
+
border-color var(--transition-default),
|
|
227
|
+
color var(--transition-default),
|
|
228
|
+
opacity var(--transition-default);
|
|
229
|
+
outline: none;
|
|
230
|
+
text-decoration: none;
|
|
231
|
+
display: inline-flex;
|
|
232
|
+
|
|
233
|
+
@media (hover: hover) {
|
|
234
|
+
&:hover:not(:disabled):not([data-disabled]) {
|
|
235
|
+
background-color: var(--steps-action-bg-hover, var(--color-accent));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&:focus-visible {
|
|
240
|
+
outline: var(--steps-focus-ring-width, var(--border-width-sm)) solid
|
|
241
|
+
var(--steps-focus-ring-color, var(--color-ring));
|
|
242
|
+
outline-offset: var(--steps-focus-ring-offset, 2px);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&:is(:disabled, [data-disabled]) {
|
|
246
|
+
opacity: var(--steps-disabled-opacity, var(--opacity-disabled));
|
|
247
|
+
cursor: default;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.XFk_Vq_nextTrigger {
|
|
252
|
+
border-color: var(--steps-next-action-border-color, var(--color-foreground));
|
|
253
|
+
background-color: var(--steps-next-action-bg, var(--color-foreground));
|
|
254
|
+
color: var(--steps-next-action-color, var(--color-background));
|
|
255
|
+
|
|
256
|
+
@media (hover: hover) {
|
|
257
|
+
&:hover:not(:disabled):not([data-disabled]) {
|
|
258
|
+
background-color: var(--steps-next-action-bg-hover, var(--color-foreground));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.XFk_Vq_progress {
|
|
264
|
+
width: 100%;
|
|
265
|
+
height: var(--steps-progress-height, var(--border-width-md));
|
|
266
|
+
border-radius: var(--steps-progress-radius, var(--radius-full));
|
|
267
|
+
background-color: var(--steps-progress-bg, var(--color-border));
|
|
268
|
+
display: block;
|
|
269
|
+
position: relative;
|
|
270
|
+
overflow: hidden;
|
|
271
|
+
|
|
272
|
+
&:before {
|
|
273
|
+
content: "";
|
|
274
|
+
width: var(--percent, 0%);
|
|
275
|
+
border-radius: inherit;
|
|
276
|
+
background-color: var(--steps-progress-fill-bg, var(--color-foreground));
|
|
277
|
+
transition: width var(--transition-default);
|
|
278
|
+
position: absolute;
|
|
279
|
+
inset-block: 0;
|
|
280
|
+
inset-inline-start: 0;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Steps } from "@ark-ui/react/steps";
|
|
2
|
+
|
|
3
|
+
//#region src/components/steps/Steps.d.ts
|
|
4
|
+
declare const Steps$1: import("react").ForwardRefExoticComponent<Omit<Steps.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Steps.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Steps.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
List: import("react").ForwardRefExoticComponent<Omit<Steps.ListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Item: import("react").ForwardRefExoticComponent<Omit<Steps.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<Steps.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Steps.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Separator: import("react").ForwardRefExoticComponent<Omit<Steps.SeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Steps.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
CompletedContent: import("react").ForwardRefExoticComponent<Omit<Steps.CompletedContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
PrevTrigger: import("react").ForwardRefExoticComponent<Omit<Steps.PrevTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
NextTrigger: import("react").ForwardRefExoticComponent<Omit<Steps.NextTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
Progress: import("react").ForwardRefExoticComponent<Omit<Steps.ProgressProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Steps$1 as Steps };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { CheckIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import Steps_module_default from "./Steps.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Steps, useStepsItemContext } from "@ark-ui/react/steps";
|
|
8
|
+
//#region src/components/steps/Steps.tsx
|
|
9
|
+
const StepsRoot = forwardRef(function StepsRoot({ className, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Steps.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "steps-root",
|
|
13
|
+
className: clsx(Steps_module_default.root, normalizeClassName(className)),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
const StepsRootProvider = forwardRef(function StepsRootProvider({ className, ...props }, ref) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Steps.RootProvider, {
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "steps-root-provider",
|
|
21
|
+
className: clsx(Steps_module_default.root, normalizeClassName(className)),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const StepsList = forwardRef(function StepsList({ className, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ jsx(Steps.List, {
|
|
27
|
+
ref,
|
|
28
|
+
"data-slot": "steps-list",
|
|
29
|
+
className: clsx(Steps_module_default.list, normalizeClassName(className)),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const StepsItem = forwardRef(function StepsItem({ className, ...props }, ref) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Steps.Item, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "steps-item",
|
|
37
|
+
className: clsx(Steps_module_default.item, normalizeClassName(className)),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const StepsTrigger = forwardRef(function StepsTrigger({ className, ...props }, ref) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Steps.Trigger, {
|
|
43
|
+
ref,
|
|
44
|
+
"data-slot": "steps-trigger",
|
|
45
|
+
className: clsx(Steps_module_default.trigger, normalizeClassName(className)),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const StepsIndicator = forwardRef(function StepsIndicator({ className, children, ...props }, ref) {
|
|
50
|
+
const item = useStepsItemContext();
|
|
51
|
+
return /* @__PURE__ */ jsx(Steps.Indicator, {
|
|
52
|
+
ref,
|
|
53
|
+
"data-slot": "steps-indicator",
|
|
54
|
+
className: clsx(Steps_module_default.indicator, normalizeClassName(className)),
|
|
55
|
+
...props,
|
|
56
|
+
children: children ?? (item.completed ? /* @__PURE__ */ jsx(CheckIcon, {}) : item.index + 1)
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const StepsSeparator = forwardRef(function StepsSeparator({ className, ...props }, ref) {
|
|
60
|
+
return /* @__PURE__ */ jsx(Steps.Separator, {
|
|
61
|
+
ref,
|
|
62
|
+
"data-slot": "steps-separator",
|
|
63
|
+
className: clsx(Steps_module_default.separator, normalizeClassName(className)),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
const StepsContent = forwardRef(function StepsContent({ className, ...props }, ref) {
|
|
68
|
+
return /* @__PURE__ */ jsx(Steps.Content, {
|
|
69
|
+
ref,
|
|
70
|
+
"data-slot": "steps-content",
|
|
71
|
+
className: clsx(Steps_module_default.content, normalizeClassName(className)),
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
const StepsCompletedContent = forwardRef(function StepsCompletedContent({ className, ...props }, ref) {
|
|
76
|
+
return /* @__PURE__ */ jsx(Steps.CompletedContent, {
|
|
77
|
+
ref,
|
|
78
|
+
"data-slot": "steps-completed-content",
|
|
79
|
+
className: clsx(Steps_module_default.completedContent, normalizeClassName(className)),
|
|
80
|
+
...props
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
const StepsPrevTrigger = forwardRef(function StepsPrevTrigger({ className, ...props }, ref) {
|
|
84
|
+
return /* @__PURE__ */ jsx(Steps.PrevTrigger, {
|
|
85
|
+
ref,
|
|
86
|
+
"data-slot": "steps-prev-trigger",
|
|
87
|
+
className: clsx(Steps_module_default.prevTrigger, normalizeClassName(className)),
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
const StepsNextTrigger = forwardRef(function StepsNextTrigger({ className, ...props }, ref) {
|
|
92
|
+
return /* @__PURE__ */ jsx(Steps.NextTrigger, {
|
|
93
|
+
ref,
|
|
94
|
+
"data-slot": "steps-next-trigger",
|
|
95
|
+
className: clsx(Steps_module_default.nextTrigger, normalizeClassName(className)),
|
|
96
|
+
...props
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
const StepsProgress = forwardRef(function StepsProgress({ className, ...props }, ref) {
|
|
100
|
+
return /* @__PURE__ */ jsx(Steps.Progress, {
|
|
101
|
+
ref,
|
|
102
|
+
"data-slot": "steps-progress",
|
|
103
|
+
className: clsx(Steps_module_default.progress, normalizeClassName(className)),
|
|
104
|
+
...props
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
const Steps$1 = Object.assign(StepsRoot, {
|
|
108
|
+
Root: StepsRoot,
|
|
109
|
+
RootProvider: StepsRootProvider,
|
|
110
|
+
List: StepsList,
|
|
111
|
+
Item: StepsItem,
|
|
112
|
+
Trigger: StepsTrigger,
|
|
113
|
+
Indicator: StepsIndicator,
|
|
114
|
+
Separator: StepsSeparator,
|
|
115
|
+
Content: StepsContent,
|
|
116
|
+
CompletedContent: StepsCompletedContent,
|
|
117
|
+
PrevTrigger: StepsPrevTrigger,
|
|
118
|
+
NextTrigger: StepsNextTrigger,
|
|
119
|
+
Progress: StepsProgress
|
|
120
|
+
});
|
|
121
|
+
//#endregion
|
|
122
|
+
export { Steps$1 as Steps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './Steps.css';
|
|
2
|
+
//#region src/components/steps/Steps.module.css
|
|
3
|
+
var Steps_module_default = {
|
|
4
|
+
"completedContent": "XFk_Vq_completedContent",
|
|
5
|
+
"content": "XFk_Vq_content",
|
|
6
|
+
"indicator": "XFk_Vq_indicator",
|
|
7
|
+
"item": "XFk_Vq_item",
|
|
8
|
+
"list": "XFk_Vq_list",
|
|
9
|
+
"nextTrigger": "XFk_Vq_nextTrigger",
|
|
10
|
+
"prevTrigger": "XFk_Vq_prevTrigger",
|
|
11
|
+
"progress": "XFk_Vq_progress",
|
|
12
|
+
"root": "XFk_Vq_root",
|
|
13
|
+
"separator": "XFk_Vq_separator",
|
|
14
|
+
"trigger": "XFk_Vq_trigger"
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Steps_module_default as default };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.wDUCnq_root {
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--switch-gap, var(--spacing-2));
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
|
|
10
|
+
&[data-disabled], &[data-readonly] {
|
|
11
|
+
cursor: default;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-disabled] {
|
|
15
|
+
opacity: var(--switch-disabled-opacity, var(--opacity-disabled));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wDUCnq_control {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
width: var(--switch-width, 3rem);
|
|
22
|
+
height: var(--switch-height, 1.5rem);
|
|
23
|
+
--switch-thumb-translate-default: calc(var(--switch-width, 3rem) - var(--switch-thumb-size, 1.25rem) -
|
|
24
|
+
(var(--switch-padding, .125rem) * 2) -
|
|
25
|
+
(var(--switch-border-width, var(--border-width-sm)) * 2));
|
|
26
|
+
border: var(--switch-border-width, var(--border-width-sm)) solid
|
|
27
|
+
var(--switch-border-color, var(--color-border));
|
|
28
|
+
border-radius: var(--switch-radius, var(--radius-full));
|
|
29
|
+
padding: var(--switch-padding, .125rem);
|
|
30
|
+
background-color: var(--switch-bg, var(--color-muted));
|
|
31
|
+
user-select: none;
|
|
32
|
+
transition: background-color var(--switch-transition, var(--transition-default)),
|
|
33
|
+
border-color var(--switch-transition, var(--transition-default)),
|
|
34
|
+
opacity var(--switch-transition, var(--transition-default));
|
|
35
|
+
outline: 0;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
align-items: center;
|
|
38
|
+
line-height: 0;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
position: relative;
|
|
41
|
+
|
|
42
|
+
&[data-state="checked"] {
|
|
43
|
+
border-color: var(--switch-border-color-checked, var(--color-primary));
|
|
44
|
+
background-color: var(--switch-bg-checked, var(--color-primary));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-focus-visible] {
|
|
48
|
+
outline: var(--switch-focus-ring-width, var(--border-width-sm)) solid
|
|
49
|
+
var(--switch-focus-ring-color, var(--color-ring));
|
|
50
|
+
outline-offset: var(--switch-focus-ring-offset, var(--border-width-sm));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (hover: hover) {
|
|
54
|
+
&[data-state="unchecked"][data-hover]:not([data-readonly]) {
|
|
55
|
+
background-color: var(--switch-bg-hover, var(--color-accent));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-state="checked"][data-hover]:not([data-readonly]) {
|
|
59
|
+
background-color: var(--switch-bg-checked-hover, var(--switch-bg-checked, var(--color-primary)));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.wDUCnq_root[data-size="xs"] .wDUCnq_control {
|
|
65
|
+
--switch-width: var(--switch-width-xs, 1.75rem);
|
|
66
|
+
--switch-height: var(--switch-height-xs, 1rem);
|
|
67
|
+
--switch-thumb-size: var(--switch-thumb-size-xs, .75rem);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.wDUCnq_root[data-size="sm"] .wDUCnq_control {
|
|
71
|
+
--switch-width: var(--switch-width-sm, 2.25rem);
|
|
72
|
+
--switch-height: var(--switch-height-sm, 1.25rem);
|
|
73
|
+
--switch-thumb-size: var(--switch-thumb-size-sm, 1rem);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.wDUCnq_root[data-size="md"] .wDUCnq_control {
|
|
77
|
+
--switch-width: var(--switch-width-md, 2.75rem);
|
|
78
|
+
--switch-height: var(--switch-height-md, 1.5rem);
|
|
79
|
+
--switch-thumb-size: var(--switch-thumb-size-md, 1.25rem);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.wDUCnq_root[data-size="lg"] .wDUCnq_control {
|
|
83
|
+
--switch-width: var(--switch-width-lg, 3.25rem);
|
|
84
|
+
--switch-height: var(--switch-height-lg, 1.75rem);
|
|
85
|
+
--switch-thumb-size: var(--switch-thumb-size-lg, 1.5rem);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.wDUCnq_root[data-size="xl"] .wDUCnq_control {
|
|
89
|
+
--switch-width: var(--switch-width-xl, 3.75rem);
|
|
90
|
+
--switch-height: var(--switch-height-xl, 2rem);
|
|
91
|
+
--switch-thumb-size: var(--switch-thumb-size-xl, 1.75rem);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.wDUCnq_thumb {
|
|
95
|
+
width: var(--switch-thumb-size, 1.25rem);
|
|
96
|
+
height: var(--switch-thumb-size, 1.25rem);
|
|
97
|
+
border: var(--switch-thumb-border-width, 0) solid var(--switch-thumb-border-color, transparent);
|
|
98
|
+
border-radius: var(--switch-thumb-radius, var(--radius-full));
|
|
99
|
+
background-color: var(--switch-thumb-bg-unchecked, var(--switch-thumb-bg, var(--color-background)));
|
|
100
|
+
color: var(--switch-thumb-color-unchecked, var(--switch-thumb-color, var(--color-muted)));
|
|
101
|
+
box-shadow: var(--switch-thumb-shadow, var(--shadow-sm));
|
|
102
|
+
transition: transform var(--switch-thumb-transition, var(--switch-transition, var(--transition-default))),
|
|
103
|
+
background-color var(--switch-transition, var(--transition-default)),
|
|
104
|
+
color var(--switch-transition, var(--transition-default));
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
display: inline-flex;
|
|
108
|
+
transform: translateX(0);
|
|
109
|
+
|
|
110
|
+
&[data-state="checked"] {
|
|
111
|
+
background-color: var(--switch-thumb-bg-checked, var(--switch-thumb-bg, var(--color-primary-foreground)));
|
|
112
|
+
color: var(--switch-thumb-color-checked, var(--switch-thumb-color, var(--color-primary)));
|
|
113
|
+
transform: translateX(var(--switch-thumb-translate, var(--switch-thumb-translate-default)));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& > svg {
|
|
117
|
+
width: var(--switch-thumb-icon-size, 65%);
|
|
118
|
+
height: var(--switch-thumb-icon-size, 65%);
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.wDUCnq_label {
|
|
124
|
+
color: var(--switch-label-color, var(--color-foreground));
|
|
125
|
+
font-size: var(--switch-label-font-size, var(--text-sm));
|
|
126
|
+
font-weight: var(--switch-label-font-weight, var(--weight-medium));
|
|
127
|
+
line-height: var(--switch-label-line-height, var(--line-height-text-sm));
|
|
128
|
+
user-select: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Switch } from "@ark-ui/react/switch";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/Switch.d.ts
|
|
5
|
+
type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
type SwitchRootProps = ComponentProps<typeof Switch.Root> & {
|
|
7
|
+
size?: SwitchSize;
|
|
8
|
+
};
|
|
9
|
+
type SwitchRootProviderProps = ComponentProps<typeof Switch.RootProvider> & {
|
|
10
|
+
size?: SwitchSize;
|
|
11
|
+
};
|
|
12
|
+
declare const Switch$1: import("react").ForwardRefExoticComponent<Omit<SwitchRootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>> & {
|
|
13
|
+
Root: import("react").ForwardRefExoticComponent<Omit<SwitchRootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<SwitchRootProviderProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
15
|
+
Control: import("react").ForwardRefExoticComponent<Omit<Switch.ControlProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
Thumb: import("react").ForwardRefExoticComponent<Omit<Switch.ThumbProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Switch.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
HiddenInput: import("react").ForwardRefExoticComponent<Omit<Switch.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Switch$1 as Switch, type SwitchRootProps, type SwitchRootProviderProps, type SwitchSize };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Switch_module_default from "./Switch.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Switch } from "@ark-ui/react/switch";
|
|
7
|
+
//#region src/components/switch/Switch.tsx
|
|
8
|
+
const SwitchRoot = forwardRef(function SwitchRoot({ className, size = "md", ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Switch.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "switch-root",
|
|
12
|
+
"data-size": size,
|
|
13
|
+
className: clsx(Switch_module_default.root, normalizeClassName(className)),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
const SwitchRootProvider = forwardRef(function SwitchRootProvider({ className, size = "md", ...props }, ref) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Switch.RootProvider, {
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "switch-root-provider",
|
|
21
|
+
"data-size": size,
|
|
22
|
+
className: clsx(Switch_module_default.root, normalizeClassName(className)),
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const SwitchControl = forwardRef(function SwitchControl({ className, children, ...props }, ref) {
|
|
27
|
+
return /* @__PURE__ */ jsx(Switch.Control, {
|
|
28
|
+
ref,
|
|
29
|
+
"data-slot": "switch-control",
|
|
30
|
+
className: clsx(Switch_module_default.control, normalizeClassName(className)),
|
|
31
|
+
...props,
|
|
32
|
+
children: children ?? /* @__PURE__ */ jsx(SwitchThumb, {})
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
const SwitchThumb = forwardRef(function SwitchThumb({ className, ...props }, ref) {
|
|
36
|
+
return /* @__PURE__ */ jsx(Switch.Thumb, {
|
|
37
|
+
ref,
|
|
38
|
+
"data-slot": "switch-thumb",
|
|
39
|
+
className: clsx(Switch_module_default.thumb, normalizeClassName(className)),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const SwitchLabel = forwardRef(function SwitchLabel({ className, ...props }, ref) {
|
|
44
|
+
return /* @__PURE__ */ jsx(Switch.Label, {
|
|
45
|
+
ref,
|
|
46
|
+
"data-slot": "switch-label",
|
|
47
|
+
className: clsx(Switch_module_default.label, normalizeClassName(className)),
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const SwitchHiddenInput = forwardRef(function SwitchHiddenInput(props, ref) {
|
|
52
|
+
return /* @__PURE__ */ jsx(Switch.HiddenInput, {
|
|
53
|
+
ref,
|
|
54
|
+
"data-slot": "switch-hidden-input",
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
const Switch$1 = Object.assign(SwitchRoot, {
|
|
59
|
+
Root: SwitchRoot,
|
|
60
|
+
RootProvider: SwitchRootProvider,
|
|
61
|
+
Control: SwitchControl,
|
|
62
|
+
Thumb: SwitchThumb,
|
|
63
|
+
Label: SwitchLabel,
|
|
64
|
+
HiddenInput: SwitchHiddenInput
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { Switch$1 as Switch };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './Switch.css';
|
|
2
|
+
//#region src/components/switch/Switch.module.css
|
|
3
|
+
var Switch_module_default = {
|
|
4
|
+
"control": "wDUCnq_control",
|
|
5
|
+
"label": "wDUCnq_label",
|
|
6
|
+
"root": "wDUCnq_root",
|
|
7
|
+
"thumb": "wDUCnq_thumb"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Switch_module_default as default };
|