@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,147 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._6pRuhq_root {
|
|
3
|
+
gap: var(--radio-group-gap, var(--spacing-2));
|
|
4
|
+
color: var(--radio-group-color, var(--color-foreground));
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
display: flex;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
&[data-disabled] {
|
|
10
|
+
cursor: default;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
._6pRuhq_label {
|
|
15
|
+
color: var(--radio-group-label-color, var(--radio-group-color, var(--color-foreground)));
|
|
16
|
+
font-size: var(--radio-group-label-font-size, var(--text-sm));
|
|
17
|
+
font-weight: var(--radio-group-label-font-weight, var(--weight-semibold));
|
|
18
|
+
line-height: var(--radio-group-label-line-height, var(--line-height-text-sm));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
._6pRuhq_item {
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--radio-gap, var(--spacing-2));
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
width: fit-content;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
|
|
29
|
+
&[data-disabled] {
|
|
30
|
+
cursor: default;
|
|
31
|
+
opacity: var(--radio-disabled-opacity, var(--opacity-disabled));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._6pRuhq_itemControl {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
-webkit-appearance: none;
|
|
38
|
+
appearance: none;
|
|
39
|
+
width: var(--_radio-size, 1.25rem);
|
|
40
|
+
height: var(--_radio-size, 1.25rem);
|
|
41
|
+
border: var(--radio-border-width, var(--border-width-sm)) solid
|
|
42
|
+
var(--radio-border-color, var(--color-border));
|
|
43
|
+
border-radius: var(--radius-full);
|
|
44
|
+
background-color: var(--radio-bg, var(--color-background));
|
|
45
|
+
color: var(--radio-indicator-color, var(--color-primary-foreground));
|
|
46
|
+
user-select: none;
|
|
47
|
+
transition: background-color var(--radio-transition, var(--transition-default)),
|
|
48
|
+
border-color var(--radio-transition, var(--transition-default)),
|
|
49
|
+
border-width var(--radio-transition, var(--transition-default)),
|
|
50
|
+
color var(--radio-transition, var(--transition-default)),
|
|
51
|
+
opacity var(--radio-transition, var(--transition-default));
|
|
52
|
+
outline: 0;
|
|
53
|
+
flex: none;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
line-height: 0;
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
position: relative;
|
|
59
|
+
|
|
60
|
+
&:before {
|
|
61
|
+
width: var(--_radio-indicator-size, .5rem);
|
|
62
|
+
height: var(--_radio-indicator-size, .5rem);
|
|
63
|
+
border: var(--radio-indicator-border-width, 0) solid
|
|
64
|
+
var(--radio-indicator-border-color, currentColor);
|
|
65
|
+
border-radius: var(--radio-indicator-radius, var(--radius-full));
|
|
66
|
+
content: "";
|
|
67
|
+
opacity: 0;
|
|
68
|
+
transition: opacity var(--radio-transition, var(--transition-default)),
|
|
69
|
+
transform var(--radio-transition, var(--transition-default));
|
|
70
|
+
background-color: currentColor;
|
|
71
|
+
display: block;
|
|
72
|
+
transform: scale(.6);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&[data-state="checked"] {
|
|
76
|
+
border-color: var(--radio-border-color-checked, var(--color-primary));
|
|
77
|
+
background-color: var(--radio-bg-checked, var(--color-primary));
|
|
78
|
+
|
|
79
|
+
&:before {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
transform: scale(1);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[data-focus-visible] {
|
|
86
|
+
outline: var(--radio-focus-ring-width, var(--border-width-sm)) solid
|
|
87
|
+
var(--radio-focus-ring-color, var(--color-ring));
|
|
88
|
+
outline-offset: var(--radio-focus-ring-offset, var(--border-width-sm));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (hover: hover) {
|
|
92
|
+
&[data-state="unchecked"]:not([data-readonly], [data-disabled]):hover {
|
|
93
|
+
background-color: var(--radio-bg-hover, var(--color-accent));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&[data-readonly], &[data-disabled] {
|
|
98
|
+
cursor: default;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[data-size="xs"] {
|
|
102
|
+
--_radio-size: var(--radio-size-xs, .875rem);
|
|
103
|
+
--_radio-indicator-size: var(--radio-indicator-size-xs, .25rem);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&[data-size="sm"] {
|
|
107
|
+
--_radio-size: var(--radio-size-sm, 1rem);
|
|
108
|
+
--_radio-indicator-size: var(--radio-indicator-size-sm, .375rem);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&[data-size="md"] {
|
|
112
|
+
--_radio-size: var(--radio-size-md, 1.25rem);
|
|
113
|
+
--_radio-indicator-size: var(--radio-indicator-size-md, .5rem);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&[data-size="lg"] {
|
|
117
|
+
--_radio-size: var(--radio-size-lg, 1.5rem);
|
|
118
|
+
--_radio-indicator-size: var(--radio-indicator-size-lg, .625rem);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&[data-size="xl"] {
|
|
122
|
+
--_radio-size: var(--radio-size-xl, 1.75rem);
|
|
123
|
+
--_radio-indicator-size: var(--radio-indicator-size-xl, .75rem);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
._6pRuhq_itemText {
|
|
128
|
+
color: var(--radio-label-color, var(--color-foreground));
|
|
129
|
+
font-size: var(--radio-label-font-size, var(--text-sm));
|
|
130
|
+
font-weight: var(--radio-label-font-weight, var(--weight-medium));
|
|
131
|
+
line-height: var(--radio-label-line-height, var(--line-height-text-sm));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
._6pRuhq_indicator {
|
|
135
|
+
top: var(--top);
|
|
136
|
+
left: var(--left);
|
|
137
|
+
width: var(--width);
|
|
138
|
+
height: var(--height);
|
|
139
|
+
border-radius: var(--radio-indicator-radius, var(--radius-full));
|
|
140
|
+
background-color: var(--radio-bg-checked, var(--color-primary));
|
|
141
|
+
opacity: var(--radio-group-indicator-opacity, .12);
|
|
142
|
+
pointer-events: none;
|
|
143
|
+
transition: var(--transition-property, translate)
|
|
144
|
+
var(--radio-transition, var(--transition-default));
|
|
145
|
+
position: absolute;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { RadioGroup } from "@ark-ui/react/radio-group";
|
|
3
|
+
|
|
4
|
+
//#region src/components/radio-group/RadioGroup.d.ts
|
|
5
|
+
type RadioGroupItemControlSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
type RadioGroupItemControlProps = ComponentProps<typeof RadioGroup.ItemControl> & {
|
|
7
|
+
size?: RadioGroupItemControlSize;
|
|
8
|
+
};
|
|
9
|
+
declare const RadioGroup$1: import("react").ForwardRefExoticComponent<Omit<RadioGroup.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
10
|
+
Root: import("react").ForwardRefExoticComponent<Omit<RadioGroup.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<RadioGroup.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Label: import("react").ForwardRefExoticComponent<Omit<RadioGroup.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
Item: import("react").ForwardRefExoticComponent<Omit<RadioGroup.ItemProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
|
+
ItemControl: import("react").ForwardRefExoticComponent<Omit<RadioGroupItemControlProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
ItemText: import("react").ForwardRefExoticComponent<Omit<RadioGroup.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
ItemHiddenInput: import("react").ForwardRefExoticComponent<Omit<RadioGroup.ItemHiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
17
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<RadioGroup.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RadioGroup$1 as RadioGroup, type RadioGroupItemControlProps, type RadioGroupItemControlSize };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import RadioGroup_module_default from "./RadioGroup.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { RadioGroup } from "@ark-ui/react/radio-group";
|
|
7
|
+
//#region src/components/radio-group/RadioGroup.tsx
|
|
8
|
+
const RadioGroupRoot = forwardRef(function RadioGroupRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(RadioGroup.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "radio-group-root",
|
|
12
|
+
className: clsx(RadioGroup_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const RadioGroupRootProvider = forwardRef(function RadioGroupRootProvider({ className, ...props }, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(RadioGroup.RootProvider, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "radio-group-root-provider",
|
|
20
|
+
className: clsx(RadioGroup_module_default.root, normalizeClassName(className)),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
const RadioGroupLabel = forwardRef(function RadioGroupLabel({ className, ...props }, ref) {
|
|
25
|
+
return /* @__PURE__ */ jsx(RadioGroup.Label, {
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "radio-group-label",
|
|
28
|
+
className: clsx(RadioGroup_module_default.label, normalizeClassName(className)),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const RadioGroupItem = forwardRef(function RadioGroupItem({ className, ...props }, ref) {
|
|
33
|
+
return /* @__PURE__ */ jsx(RadioGroup.Item, {
|
|
34
|
+
ref,
|
|
35
|
+
"data-slot": "radio-group-item",
|
|
36
|
+
className: clsx(RadioGroup_module_default.item, normalizeClassName(className)),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
const RadioGroupItemControl = forwardRef(function RadioGroupItemControl({ className, size = "md", ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(RadioGroup.ItemControl, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-slot": "radio-group-item-control",
|
|
44
|
+
"data-size": size,
|
|
45
|
+
className: clsx(RadioGroup_module_default.itemControl, normalizeClassName(className)),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const RadioGroupItemText = forwardRef(function RadioGroupItemText({ className, ...props }, ref) {
|
|
50
|
+
return /* @__PURE__ */ jsx(RadioGroup.ItemText, {
|
|
51
|
+
ref,
|
|
52
|
+
"data-slot": "radio-group-item-text",
|
|
53
|
+
className: clsx(RadioGroup_module_default.itemText, normalizeClassName(className)),
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const RadioGroupItemHiddenInput = forwardRef(function RadioGroupItemHiddenInput(props, ref) {
|
|
58
|
+
return /* @__PURE__ */ jsx(RadioGroup.ItemHiddenInput, {
|
|
59
|
+
ref,
|
|
60
|
+
"data-slot": "radio-group-item-hidden-input",
|
|
61
|
+
...props
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
const RadioGroupIndicator = forwardRef(function RadioGroupIndicator({ className, ...props }, ref) {
|
|
65
|
+
return /* @__PURE__ */ jsx(RadioGroup.Indicator, {
|
|
66
|
+
ref,
|
|
67
|
+
"data-slot": "radio-group-indicator",
|
|
68
|
+
className: clsx(RadioGroup_module_default.indicator, normalizeClassName(className)),
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
const RadioGroup$1 = Object.assign(RadioGroupRoot, {
|
|
73
|
+
Root: RadioGroupRoot,
|
|
74
|
+
RootProvider: RadioGroupRootProvider,
|
|
75
|
+
Label: RadioGroupLabel,
|
|
76
|
+
Item: RadioGroupItem,
|
|
77
|
+
ItemControl: RadioGroupItemControl,
|
|
78
|
+
ItemText: RadioGroupItemText,
|
|
79
|
+
ItemHiddenInput: RadioGroupItemHiddenInput,
|
|
80
|
+
Indicator: RadioGroupIndicator
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { RadioGroup$1 as RadioGroup };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './RadioGroup.css';
|
|
2
|
+
//#region src/components/radio-group/RadioGroup.module.css
|
|
3
|
+
var RadioGroup_module_default = {
|
|
4
|
+
"indicator": "_6pRuhq_indicator",
|
|
5
|
+
"item": "_6pRuhq_item",
|
|
6
|
+
"itemControl": "_6pRuhq_itemControl",
|
|
7
|
+
"itemText": "_6pRuhq_itemText",
|
|
8
|
+
"label": "_6pRuhq_label",
|
|
9
|
+
"root": "_6pRuhq_root"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RadioGroup_module_default as default };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._6aTNoq_root {
|
|
3
|
+
gap: var(--rating-group-root-gap, var(--spacing-1));
|
|
4
|
+
color: var(--rating-group-color, var(--color-muted-foreground));
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
|
|
8
|
+
&[data-size="xs"] {
|
|
9
|
+
--_rating-group-icon-size: var(--rating-group-icon-size-xs, .875rem);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[data-size="sm"] {
|
|
13
|
+
--_rating-group-icon-size: var(--rating-group-icon-size-sm, 1rem);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-size="md"] {
|
|
17
|
+
--_rating-group-icon-size: var(--rating-group-icon-size-md, 1.25rem);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-size="lg"] {
|
|
21
|
+
--_rating-group-icon-size: var(--rating-group-icon-size-lg, 1.5rem);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-size="xl"] {
|
|
25
|
+
--_rating-group-icon-size: var(--rating-group-icon-size-xl, 1.75rem);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._6aTNoq_label {
|
|
30
|
+
color: var(--rating-group-label-color, var(--color-foreground));
|
|
31
|
+
font-size: var(--rating-group-label-font-size, var(--text-sm));
|
|
32
|
+
font-weight: var(--rating-group-label-font-weight, var(--weight-semibold));
|
|
33
|
+
line-height: var(--rating-group-label-line-height, var(--line-height-text-sm));
|
|
34
|
+
user-select: none;
|
|
35
|
+
|
|
36
|
+
&[data-disabled] {
|
|
37
|
+
opacity: var(--rating-group-disabled-opacity, var(--opacity-disabled));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
._6aTNoq_control {
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: var(--rating-group-gap, var(--spacing-1));
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
|
|
46
|
+
&[data-disabled] {
|
|
47
|
+
opacity: var(--rating-group-disabled-opacity, var(--opacity-disabled));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
._6aTNoq_item {
|
|
52
|
+
border-radius: var(--radius-sm);
|
|
53
|
+
color: inherit;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition: color var(--rating-group-transition, var(--transition-default)),
|
|
56
|
+
opacity var(--rating-group-transition, var(--transition-default));
|
|
57
|
+
background-color: #0000;
|
|
58
|
+
border: 0;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
margin: 0;
|
|
62
|
+
padding: 0;
|
|
63
|
+
line-height: 0;
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
|
|
66
|
+
&[data-readonly], &[data-disabled] {
|
|
67
|
+
cursor: default;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[data-disabled] {
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:focus-visible {
|
|
75
|
+
outline: var(--rating-group-focus-ring-width, var(--border-width-sm)) solid
|
|
76
|
+
var(--rating-group-focus-ring-color, var(--color-ring));
|
|
77
|
+
outline-offset: var(--rating-group-focus-ring-offset, var(--border-width-sm));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
._6aTNoq_itemIndicator {
|
|
82
|
+
width: var(--_rating-group-icon-size, var(--rating-group-icon-size-md, 1.25rem));
|
|
83
|
+
height: var(--_rating-group-icon-size, var(--rating-group-icon-size-md, 1.25rem));
|
|
84
|
+
color: var(--rating-group-active-color, var(--color-primary));
|
|
85
|
+
justify-content: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
position: relative;
|
|
89
|
+
|
|
90
|
+
& > svg {
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
transition: color var(--rating-group-transition, var(--transition-default)),
|
|
94
|
+
fill var(--rating-group-transition, var(--transition-default)),
|
|
95
|
+
stroke var(--rating-group-transition, var(--transition-default)),
|
|
96
|
+
clip-path var(--rating-group-transition, var(--transition-default));
|
|
97
|
+
flex: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[data-half] ._6aTNoq_iconFg {
|
|
101
|
+
clip-path: inset(0 50% 0 0);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:not([data-highlighted]) ._6aTNoq_iconFg {
|
|
105
|
+
clip-path: inset(0 100% 0 0);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
._6aTNoq_item[data-half] ._6aTNoq_iconFg {
|
|
110
|
+
clip-path: inset(0 50% 0 0);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
._6aTNoq_item:not([data-highlighted]) ._6aTNoq_iconFg {
|
|
114
|
+
clip-path: inset(0 100% 0 0);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
._6aTNoq_iconBg {
|
|
118
|
+
color: var(--rating-group-color, var(--color-muted-foreground));
|
|
119
|
+
fill: #0000;
|
|
120
|
+
stroke: currentColor;
|
|
121
|
+
position: absolute;
|
|
122
|
+
inset: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
._6aTNoq_iconFg {
|
|
126
|
+
color: var(--rating-group-active-color, var(--color-primary));
|
|
127
|
+
fill: currentColor;
|
|
128
|
+
stroke: currentColor;
|
|
129
|
+
clip-path: inset(0);
|
|
130
|
+
position: absolute;
|
|
131
|
+
inset: 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { RatingGroup } from "@ark-ui/react/rating-group";
|
|
3
|
+
|
|
4
|
+
//#region src/components/rating-group/RatingGroup.d.ts
|
|
5
|
+
type RatingGroupSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
type RatingGroupRootProps = ComponentProps<typeof RatingGroup.Root> & {
|
|
7
|
+
size?: RatingGroupSize;
|
|
8
|
+
};
|
|
9
|
+
type RatingGroupRootProviderProps = ComponentProps<typeof RatingGroup.RootProvider> & {
|
|
10
|
+
size?: RatingGroupSize;
|
|
11
|
+
};
|
|
12
|
+
type RatingGroupItemIndicatorProps = ComponentProps<'span'>;
|
|
13
|
+
declare const RatingGroup$1: import("react").ForwardRefExoticComponent<Omit<RatingGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
14
|
+
Root: import("react").ForwardRefExoticComponent<Omit<RatingGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<RatingGroupRootProviderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Label: import("react").ForwardRefExoticComponent<Omit<RatingGroup.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
17
|
+
Control: import("react").ForwardRefExoticComponent<Omit<RatingGroup.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Item: import("react").ForwardRefExoticComponent<Omit<RatingGroup.ItemProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
HiddenInput: import("react").ForwardRefExoticComponent<Omit<RatingGroup.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RatingGroup$1 as RatingGroup, type RatingGroupItemIndicatorProps, type RatingGroupRootProps, type RatingGroupRootProviderProps, type RatingGroupSize };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { RatingStarIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
3
|
+
import RatingGroup_module_default from "./RatingGroup.module.js";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { RatingGroup, useRatingGroupItemContext } from "@ark-ui/react/rating-group";
|
|
8
|
+
//#region src/components/rating-group/RatingGroup.tsx
|
|
9
|
+
const RatingGroupRoot = forwardRef(function RatingGroupRoot({ className, size = "md", ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(RatingGroup.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "rating-group-root",
|
|
13
|
+
"data-size": size,
|
|
14
|
+
className: clsx(RatingGroup_module_default.root, normalizeClassName(className)),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
const RatingGroupRootProvider = forwardRef(function RatingGroupRootProvider({ className, size = "md", ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(RatingGroup.RootProvider, {
|
|
20
|
+
ref,
|
|
21
|
+
"data-slot": "rating-group-root-provider",
|
|
22
|
+
"data-size": size,
|
|
23
|
+
className: clsx(RatingGroup_module_default.root, normalizeClassName(className)),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
const RatingGroupLabel = forwardRef(function RatingGroupLabel({ className, ...props }, ref) {
|
|
28
|
+
return /* @__PURE__ */ jsx(RatingGroup.Label, {
|
|
29
|
+
ref,
|
|
30
|
+
"data-slot": "rating-group-label",
|
|
31
|
+
className: clsx(RatingGroup_module_default.label, normalizeClassName(className)),
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
const RatingGroupControl = forwardRef(function RatingGroupControl({ className, ...props }, ref) {
|
|
36
|
+
return /* @__PURE__ */ jsx(RatingGroup.Control, {
|
|
37
|
+
ref,
|
|
38
|
+
"data-slot": "rating-group-control",
|
|
39
|
+
className: clsx(RatingGroup_module_default.control, normalizeClassName(className)),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const RatingGroupItem = forwardRef(function RatingGroupItem({ className, ...props }, ref) {
|
|
44
|
+
return /* @__PURE__ */ jsx(RatingGroup.Item, {
|
|
45
|
+
ref,
|
|
46
|
+
"data-slot": "rating-group-item",
|
|
47
|
+
className: clsx(RatingGroup_module_default.item, normalizeClassName(className)),
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const RatingGroupItemIndicator = forwardRef(function RatingGroupItemIndicator({ className, children, ...props }, ref) {
|
|
52
|
+
const { half, highlighted } = useRatingGroupItemContext();
|
|
53
|
+
return /* @__PURE__ */ jsx("span", {
|
|
54
|
+
ref,
|
|
55
|
+
"data-slot": "rating-group-item-indicator",
|
|
56
|
+
"data-half": half ? "" : void 0,
|
|
57
|
+
"data-highlighted": highlighted ? "" : void 0,
|
|
58
|
+
className: clsx(RatingGroup_module_default.itemIndicator, normalizeClassName(className)),
|
|
59
|
+
...props,
|
|
60
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(RatingStarIcon, {
|
|
61
|
+
"data-slot": "rating-group-item-indicator-bg",
|
|
62
|
+
className: RatingGroup_module_default.iconBg
|
|
63
|
+
}), /* @__PURE__ */ jsx(RatingStarIcon, {
|
|
64
|
+
"data-slot": "rating-group-item-indicator-fg",
|
|
65
|
+
className: RatingGroup_module_default.iconFg
|
|
66
|
+
})] })
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
const RatingGroupHiddenInput = forwardRef(function RatingGroupHiddenInput(props, ref) {
|
|
70
|
+
return /* @__PURE__ */ jsx(RatingGroup.HiddenInput, {
|
|
71
|
+
ref,
|
|
72
|
+
"data-slot": "rating-group-hidden-input",
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
const RatingGroup$1 = Object.assign(RatingGroupRoot, {
|
|
77
|
+
Root: RatingGroupRoot,
|
|
78
|
+
RootProvider: RatingGroupRootProvider,
|
|
79
|
+
Label: RatingGroupLabel,
|
|
80
|
+
Control: RatingGroupControl,
|
|
81
|
+
Item: RatingGroupItem,
|
|
82
|
+
ItemIndicator: RatingGroupItemIndicator,
|
|
83
|
+
HiddenInput: RatingGroupHiddenInput
|
|
84
|
+
});
|
|
85
|
+
//#endregion
|
|
86
|
+
export { RatingGroup$1 as RatingGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './RatingGroup.css';
|
|
2
|
+
//#region src/components/rating-group/RatingGroup.module.css
|
|
3
|
+
var RatingGroup_module_default = {
|
|
4
|
+
"control": "_6aTNoq_control",
|
|
5
|
+
"iconBg": "_6aTNoq_iconBg",
|
|
6
|
+
"iconFg": "_6aTNoq_iconFg",
|
|
7
|
+
"item": "_6aTNoq_item",
|
|
8
|
+
"itemIndicator": "_6aTNoq_itemIndicator",
|
|
9
|
+
"label": "_6aTNoq_label",
|
|
10
|
+
"root": "_6aTNoq_root"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { RatingGroup_module_default as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { RatingGroup, RatingGroupItemIndicatorProps, RatingGroupRootProps, RatingGroupRootProviderProps, RatingGroupSize } from "./RatingGroup.js";
|
|
2
|
+
export { RatingGroup, type RatingGroupItemIndicatorProps, type RatingGroupRootProps, type RatingGroupRootProviderProps, type RatingGroupSize };
|