@moduix/react 1.1.0 → 2.0.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/README.md +16 -16
- package/dist/components/accordion/Accordion.css +21 -14
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +10 -9
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +24 -10
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +6 -5
- package/dist/components/angle-slider/AngleSlider.css +8 -8
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/AngleSlider.module.js +7 -7
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +4 -2
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/aspect-ratio/AspectRatio.module.js +1 -1
- package/dist/components/avatar/Avatar.css +3 -3
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/Avatar.module.js +3 -3
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +46 -3
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/Badge.module.js +2 -2
- package/dist/components/bleed/Bleed.css +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/bleed/Bleed.module.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.css +17 -11
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +8 -7
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +22 -2
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/button/Button.module.js +1 -1
- package/dist/components/card/Card.css +29 -13
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +9 -8
- package/dist/components/carousel/Carousel.css +20 -18
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/carousel/Carousel.module.js +12 -12
- package/dist/components/checkbox/Checkbox.css +11 -11
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/Checkbox.module.js +6 -6
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +8 -8
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/clipboard/Clipboard.module.js +8 -8
- package/dist/components/close-button/CloseButton.css +1 -1
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/close-button/CloseButton.module.js +1 -1
- package/dist/components/collapsible/Collapsible.css +17 -10
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +7 -6
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -34
- package/dist/components/color-picker/ColorPicker.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.js +78 -27
- package/dist/components/color-picker/ColorPicker.module.js +28 -27
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +55 -26
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/Combobox.module.js +17 -17
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +80 -114
- package/dist/components/command-palette/CommandPalette.d.ts +13 -3
- package/dist/components/command-palette/CommandPalette.js +54 -43
- package/dist/components/command-palette/CommandPalette.module.js +35 -37
- package/dist/components/container/Container.css +1 -1
- package/dist/components/container/Container.js +1 -1
- package/dist/components/container/Container.module.js +1 -1
- package/dist/components/date-input/DateInput.css +9 -7
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/DateInput.module.js +6 -6
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +68 -40
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/DatePicker.module.js +23 -23
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +31 -27
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/Dialog.module.js +15 -15
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +40 -40
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.module.js +26 -26
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +10 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/Editable.module.js +7 -7
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +6 -6
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.module.js +6 -6
- package/dist/components/field/Field.css +8 -12
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +8 -9
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.css +6 -6
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/Fieldset.module.js +4 -4
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +97 -24
- package/dist/components/file-upload/FileUpload.d.ts +22 -5
- package/dist/components/file-upload/FileUpload.js +79 -21
- package/dist/components/file-upload/FileUpload.module.js +16 -13
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +28 -24
- package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/floating-panel/FloatingPanel.module.js +14 -14
- package/dist/components/heading/Heading.css +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.module.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/Highlight.module.js +1 -1
- package/dist/components/hover-card/HoverCard.css +21 -17
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/HoverCard.module.js +7 -7
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/image/Image.css +7 -0
- package/dist/components/image/Image.d.ts +12 -0
- package/dist/components/image/Image.js +28 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +6 -6
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/ImageCropper.module.js +6 -6
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +1 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.module.js +1 -1
- package/dist/components/input-group/InputGroup.css +6 -6
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/input-group/InputGroup.module.js +5 -5
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/kbd/Kbd.module.js +2 -2
- package/dist/components/lightbox/Lightbox.css +30 -28
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/Lightbox.module.js +16 -16
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.css +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/List.module.js +1 -1
- package/dist/components/listbox/Listbox.css +76 -17
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +17 -14
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.css +10 -10
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/Marquee.module.js +7 -7
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +46 -40
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/Menu.module.js +27 -27
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +5 -5
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/native-select/NativeSelect.module.js +3 -3
- package/dist/components/number-input/NumberInput.css +11 -17
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/NumberInput.module.js +8 -8
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +8 -8
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/pagination/Pagination.module.js +6 -6
- package/dist/components/password-input/PasswordInput.css +7 -7
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/password-input/PasswordInput.module.js +6 -6
- package/dist/components/pin-input/PinInput.css +5 -5
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/pin-input/PinInput.module.js +5 -5
- package/dist/components/popover/Popover.css +33 -24
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/Popover.module.js +14 -14
- package/dist/components/progress-circular/ProgressCircular.css +8 -8
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-circular/ProgressCircular.module.js +8 -8
- package/dist/components/progress-linear/ProgressLinear.css +8 -8
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/progress-linear/ProgressLinear.module.js +8 -8
- package/dist/components/qr-code/QrCode.css +13 -12
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/QrCode.module.js +5 -5
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +6 -6
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/RadioGroup.module.js +6 -6
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +14 -14
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/RatingGroup.module.js +7 -7
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +14 -9
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/scroll-area/ScrollArea.module.js +6 -6
- package/dist/components/segment-group/SegmentGroup.css +6 -6
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/SegmentGroup.module.js +6 -6
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +49 -40
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/select/Select.module.js +21 -21
- package/dist/components/separator/Separator.css +1 -1
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/separator/Separator.module.js +1 -1
- package/dist/components/sidebar/Sidebar.css +169 -32
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +23 -17
- package/dist/components/signature-pad/SignaturePad.css +18 -47
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/SignaturePad.module.js +6 -6
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.css +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.module.js +1 -1
- package/dist/components/slider/Slider.css +16 -14
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/Slider.module.js +10 -10
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +9 -9
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/spinner/Spinner.module.js +3 -3
- package/dist/components/split-button/SplitButton.css +9 -9
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/split-button/SplitButton.module.js +3 -3
- package/dist/components/splitter/Splitter.css +27 -22
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/Splitter.module.js +4 -4
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.css +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/stack/Stack.module.js +1 -1
- package/dist/components/steps/Steps.css +14 -14
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/steps/Steps.module.js +11 -11
- package/dist/components/swap/Swap.css +45 -0
- package/dist/components/swap/Swap.d.ts +11 -0
- package/dist/components/swap/Swap.js +39 -0
- package/dist/components/swap/Swap.module.js +11 -0
- package/dist/components/swap/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +11 -11
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/Switch.module.js +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +18 -18
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +11 -12
- package/dist/components/tabs/Tabs.css +12 -10
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/Tabs.module.js +5 -5
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +16 -46
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tag/Tag.module.js +5 -5
- package/dist/components/tags-input/TagsInput.css +13 -50
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/TagsInput.module.js +10 -10
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.css +1 -1
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.module.js +1 -1
- package/dist/components/textarea/Textarea.css +7 -7
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.module.js +1 -1
- package/dist/components/timer/Timer.css +6 -6
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/Timer.module.js +6 -6
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +8 -8
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toast/Toast.module.js +6 -6
- package/dist/components/toggle/Toggle.css +5 -5
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/Toggle.module.js +2 -2
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.css +3 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/ToggleGroup.module.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +21 -17
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/Tooltip.module.js +7 -7
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +42 -37
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tour/Tour.module.js +17 -17
- package/dist/components/tree-view/TreeView.css +22 -22
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/TreeView.module.js +20 -20
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/index.d.ts +40 -39
- package/dist/index.js +40 -39
- package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
- package/dist/lib/moduix/icons/ui/Icons.js +36 -263
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
- package/dist/lib/moduix/overlayPortal.js +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.ElFLgq_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
justify-items: center;
|
|
5
5
|
gap: var(--progress-circular-gap, .5rem);
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
display: inline-grid;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
.ElFLgq_label {
|
|
12
12
|
font-size: var(--progress-circular-label-font-size, var(--text-sm));
|
|
13
13
|
font-weight: var(--progress-circular-label-font-weight, var(--weight-regular));
|
|
14
14
|
line-height: var(--progress-circular-label-line-height, var(--line-height-text-sm));
|
|
15
15
|
color: var(--progress-circular-label-color, currentColor);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
.ElFLgq_valueText {
|
|
19
19
|
font-size: var(--progress-circular-value-text-font-size, var(--text-sm));
|
|
20
20
|
font-weight: var(--progress-circular-value-text-font-weight, var(--weight-medium));
|
|
21
21
|
line-height: var(--progress-circular-value-text-line-height, var(--line-height-text-sm));
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
text-align: center;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
.ElFLgq_circle {
|
|
27
27
|
--size: var(--progress-circular-size, 3rem);
|
|
28
28
|
--thickness: var(--progress-circular-thickness, .4rem);
|
|
29
29
|
display: block;
|
|
30
30
|
overflow: visible;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
.ElFLgq_circleTrack {
|
|
34
34
|
stroke: var(--progress-circular-track-bg, var(--color-muted));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.
|
|
37
|
+
.ElFLgq_circleRange {
|
|
38
38
|
stroke: var(--progress-circular-range-bg, var(--color-primary));
|
|
39
39
|
stroke-linecap: var(--progress-circular-range-linecap, round);
|
|
40
40
|
transition: stroke-dashoffset
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.
|
|
55
|
+
.ElFLgq_view {
|
|
56
56
|
display: contents;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@keyframes
|
|
59
|
+
@keyframes ElFLgq_progress-circular-indeterminate {
|
|
60
60
|
from {
|
|
61
61
|
transform: rotate(-90deg);
|
|
62
62
|
}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { Progress } from "@ark-ui/react/progress";
|
|
2
3
|
|
|
3
4
|
//#region src/components/progress-circular/ProgressCircular.d.ts
|
|
5
|
+
type ProgressCircularRingProps = Omit<ComponentProps<typeof Progress.Circle>, 'asChild' | 'children'>;
|
|
4
6
|
declare const ProgressCircular: import("react").ForwardRefExoticComponent<Omit<Progress.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
7
|
Root: import("react").ForwardRefExoticComponent<Omit<Progress.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
8
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<Progress.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Context: (props: Progress.ContextProps) => import("react").ReactNode;
|
|
7
10
|
Label: import("react").ForwardRefExoticComponent<Omit<Progress.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
11
|
ValueText: import("react").ForwardRefExoticComponent<Omit<Progress.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
12
|
Circle: import("react").ForwardRefExoticComponent<Omit<Progress.CircleProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
10
13
|
CircleTrack: import("react").ForwardRefExoticComponent<Omit<Progress.CircleTrackProps & import("react").RefAttributes<SVGCircleElement>, "ref"> & import("react").RefAttributes<SVGCircleElement>>;
|
|
11
14
|
CircleRange: import("react").ForwardRefExoticComponent<Omit<Progress.CircleRangeProps & import("react").RefAttributes<SVGCircleElement>, "ref"> & import("react").RefAttributes<SVGCircleElement>>;
|
|
15
|
+
Ring: import("react").ForwardRefExoticComponent<Omit<ProgressCircularRingProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
16
|
View: import("react").ForwardRefExoticComponent<Omit<Progress.ViewProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
useProgress: (props?: import("@ark-ui/react/progress").UseProgressProps) => import("@ark-ui/react/progress").UseProgressReturn;
|
|
18
|
+
useProgressContext: () => import("@ark-ui/react/progress").UseProgressContext;
|
|
13
19
|
};
|
|
14
20
|
//#endregion
|
|
15
21
|
export { ProgressCircular };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import ProgressCircular_module_default from "./ProgressCircular.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Progress, useProgress, useProgressContext } from "@ark-ui/react/progress";
|
|
7
7
|
//#region src/components/progress-circular/ProgressCircular.tsx
|
|
8
8
|
const ProgressCircularRoot = forwardRef(function ProgressCircularRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Progress.Root, {
|
|
@@ -61,6 +61,13 @@ const ProgressCircularCircleRange = forwardRef(function ProgressCircularCircleRa
|
|
|
61
61
|
...props
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
+
const ProgressCircularRing = forwardRef(function ProgressCircularRing(props, ref) {
|
|
65
|
+
return /* @__PURE__ */ jsxs(ProgressCircularCircle, {
|
|
66
|
+
ref,
|
|
67
|
+
...props,
|
|
68
|
+
children: [/* @__PURE__ */ jsx(ProgressCircularCircleTrack, {}), /* @__PURE__ */ jsx(ProgressCircularCircleRange, {})]
|
|
69
|
+
});
|
|
70
|
+
});
|
|
64
71
|
const ProgressCircularView = forwardRef(function ProgressCircularView({ className, ...props }, ref) {
|
|
65
72
|
return /* @__PURE__ */ jsx(Progress.View, {
|
|
66
73
|
ref,
|
|
@@ -72,12 +79,16 @@ const ProgressCircularView = forwardRef(function ProgressCircularView({ classNam
|
|
|
72
79
|
const ProgressCircular = Object.assign(ProgressCircularRoot, {
|
|
73
80
|
Root: ProgressCircularRoot,
|
|
74
81
|
RootProvider: ProgressCircularRootProvider,
|
|
82
|
+
Context: Progress.Context,
|
|
75
83
|
Label: ProgressCircularLabel,
|
|
76
84
|
ValueText: ProgressCircularValueText,
|
|
77
85
|
Circle: ProgressCircularCircle,
|
|
78
86
|
CircleTrack: ProgressCircularCircleTrack,
|
|
79
87
|
CircleRange: ProgressCircularCircleRange,
|
|
80
|
-
|
|
88
|
+
Ring: ProgressCircularRing,
|
|
89
|
+
View: ProgressCircularView,
|
|
90
|
+
useProgress,
|
|
91
|
+
useProgressContext
|
|
81
92
|
});
|
|
82
93
|
//#endregion
|
|
83
94
|
export { ProgressCircular };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './ProgressCircular.css';
|
|
2
2
|
//#region src/components/progress-circular/ProgressCircular.module.css
|
|
3
3
|
var ProgressCircular_module_default = {
|
|
4
|
-
"circle": "
|
|
5
|
-
"circleRange": "
|
|
6
|
-
"circleTrack": "
|
|
7
|
-
"label": "
|
|
8
|
-
"progress-circular-indeterminate": "
|
|
9
|
-
"root": "
|
|
10
|
-
"valueText": "
|
|
11
|
-
"view": "
|
|
4
|
+
"circle": "ElFLgq_circle",
|
|
5
|
+
"circleRange": "ElFLgq_circleRange",
|
|
6
|
+
"circleTrack": "ElFLgq_circleTrack",
|
|
7
|
+
"label": "ElFLgq_label",
|
|
8
|
+
"progress-circular-indeterminate": "ElFLgq_progress-circular-indeterminate",
|
|
9
|
+
"root": "ElFLgq_root",
|
|
10
|
+
"valueText": "ElFLgq_valueText",
|
|
11
|
+
"view": "ElFLgq_view"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ProgressCircular_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.Z1JBTG_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
gap: var(--progress-linear-gap, .5rem);
|
|
5
5
|
width: var(--progress-linear-width, 12rem);
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
.Z1JBTG_label {
|
|
19
19
|
font-size: var(--progress-linear-label-font-size, var(--text-sm));
|
|
20
20
|
font-weight: var(--progress-linear-label-font-weight, var(--weight-regular));
|
|
21
21
|
line-height: var(--progress-linear-label-line-height, var(--line-height-text-sm));
|
|
22
22
|
color: var(--progress-linear-label-color, currentColor);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
.Z1JBTG_valueText {
|
|
26
26
|
font-size: var(--progress-linear-value-text-font-size, var(--text-sm));
|
|
27
27
|
font-weight: var(--progress-linear-value-text-font-weight, var(--weight-regular));
|
|
28
28
|
line-height: var(--progress-linear-value-text-line-height, var(--line-height-text-sm));
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
justify-self: end;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
.Z1JBTG_track {
|
|
35
35
|
width: 100%;
|
|
36
36
|
height: var(--progress-linear-track-height, .5rem);
|
|
37
37
|
border-radius: var(--progress-linear-track-radius, var(--radius-full));
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
.Z1JBTG_range {
|
|
54
54
|
border-radius: var(--progress-linear-range-radius, inherit);
|
|
55
55
|
background-color: var(--progress-linear-range-bg, var(--color-primary));
|
|
56
56
|
height: 100%;
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.
|
|
83
|
+
.Z1JBTG_view {
|
|
84
84
|
display: contents;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
@keyframes
|
|
87
|
+
@keyframes Z1JBTG_progress-linear-indeterminate {
|
|
88
88
|
from {
|
|
89
89
|
transform: translateX(-100%);
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
@keyframes
|
|
97
|
+
@keyframes Z1JBTG_progress-linear-indeterminate-vertical {
|
|
98
98
|
from {
|
|
99
99
|
transform: translateY(100%);
|
|
100
100
|
}
|
|
@@ -4,11 +4,14 @@ import { Progress } from "@ark-ui/react/progress";
|
|
|
4
4
|
declare const ProgressLinear: import("react").ForwardRefExoticComponent<Omit<Progress.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Root: import("react").ForwardRefExoticComponent<Omit<Progress.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<Progress.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Context: (props: Progress.ContextProps) => import("react").ReactNode;
|
|
7
8
|
Label: import("react").ForwardRefExoticComponent<Omit<Progress.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
9
|
ValueText: import("react").ForwardRefExoticComponent<Omit<Progress.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
10
|
Track: import("react").ForwardRefExoticComponent<Omit<Progress.TrackProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
11
|
Range: import("react").ForwardRefExoticComponent<Omit<Progress.RangeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
12
|
View: import("react").ForwardRefExoticComponent<Omit<Progress.ViewProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
useProgress: (props?: import("@ark-ui/react/progress").UseProgressProps) => import("@ark-ui/react/progress").UseProgressReturn;
|
|
14
|
+
useProgressContext: () => import("@ark-ui/react/progress").UseProgressContext;
|
|
12
15
|
};
|
|
13
16
|
//#endregion
|
|
14
17
|
export { ProgressLinear };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import ProgressLinear_module_default from "./ProgressLinear.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Progress, useProgress, useProgressContext } from "@ark-ui/react/progress";
|
|
7
7
|
//#region src/components/progress-linear/ProgressLinear.tsx
|
|
8
8
|
const ProgressLinearRoot = forwardRef(function ProgressLinearRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Progress.Root, {
|
|
@@ -64,11 +64,14 @@ const ProgressLinearView = forwardRef(function ProgressLinearView({ className, .
|
|
|
64
64
|
const ProgressLinear = Object.assign(ProgressLinearRoot, {
|
|
65
65
|
Root: ProgressLinearRoot,
|
|
66
66
|
RootProvider: ProgressLinearRootProvider,
|
|
67
|
+
Context: Progress.Context,
|
|
67
68
|
Label: ProgressLinearLabel,
|
|
68
69
|
ValueText: ProgressLinearValueText,
|
|
69
70
|
Track: ProgressLinearTrack,
|
|
70
71
|
Range: ProgressLinearRange,
|
|
71
|
-
View: ProgressLinearView
|
|
72
|
+
View: ProgressLinearView,
|
|
73
|
+
useProgress,
|
|
74
|
+
useProgressContext
|
|
72
75
|
});
|
|
73
76
|
//#endregion
|
|
74
77
|
export { ProgressLinear };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './ProgressLinear.css';
|
|
2
2
|
//#region src/components/progress-linear/ProgressLinear.module.css
|
|
3
3
|
var ProgressLinear_module_default = {
|
|
4
|
-
"label": "
|
|
5
|
-
"progress-linear-indeterminate": "
|
|
6
|
-
"progress-linear-indeterminate-vertical": "
|
|
7
|
-
"range": "
|
|
8
|
-
"root": "
|
|
9
|
-
"track": "
|
|
10
|
-
"valueText": "
|
|
11
|
-
"view": "
|
|
4
|
+
"label": "Z1JBTG_label",
|
|
5
|
+
"progress-linear-indeterminate": "Z1JBTG_progress-linear-indeterminate",
|
|
6
|
+
"progress-linear-indeterminate-vertical": "Z1JBTG_progress-linear-indeterminate-vertical",
|
|
7
|
+
"range": "Z1JBTG_range",
|
|
8
|
+
"root": "Z1JBTG_root",
|
|
9
|
+
"track": "Z1JBTG_track",
|
|
10
|
+
"valueText": "Z1JBTG_valueText",
|
|
11
|
+
"view": "Z1JBTG_view"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ProgressLinear_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.ZbLWjq_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: var(--qr-code-gap, var(--spacing-3));
|
|
@@ -11,20 +11,21 @@
|
|
|
11
11
|
position: relative;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
.ZbLWjq_frame {
|
|
15
15
|
box-sizing: border-box;
|
|
16
|
-
width: var(--qr-code-size, 8rem);
|
|
17
|
-
|
|
16
|
+
width: min(var(--qr-code-size, 8rem), 100%);
|
|
17
|
+
aspect-ratio: 1;
|
|
18
|
+
height: auto;
|
|
18
19
|
color: inherit;
|
|
19
20
|
fill: var(--qr-code-fill, currentColor);
|
|
20
21
|
display: block;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
.
|
|
24
|
+
.ZbLWjq_pattern {
|
|
24
25
|
fill: inherit;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
.
|
|
28
|
+
.ZbLWjq_overlay {
|
|
28
29
|
box-sizing: border-box;
|
|
29
30
|
width: var(--qr-code-overlay-size, 2.5rem);
|
|
30
31
|
height: var(--qr-code-overlay-size, 2.5rem);
|
|
@@ -37,13 +38,13 @@
|
|
|
37
38
|
display: inline-flex;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
.
|
|
41
|
+
.ZbLWjq_overlay :where(img, svg) {
|
|
41
42
|
object-fit: contain;
|
|
42
43
|
width: 100%;
|
|
43
44
|
height: 100%;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
.
|
|
47
|
+
.ZbLWjq_downloadTrigger {
|
|
47
48
|
box-sizing: border-box;
|
|
48
49
|
justify-content: center;
|
|
49
50
|
align-items: center;
|
|
@@ -73,19 +74,19 @@
|
|
|
73
74
|
display: inline-flex;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
.
|
|
77
|
+
.ZbLWjq_downloadTrigger :where(svg) {
|
|
77
78
|
width: var(--qr-code-download-trigger-icon-size, var(--button-icon-size, 1rem));
|
|
78
79
|
height: var(--qr-code-download-trigger-icon-size, var(--button-icon-size, 1rem));
|
|
79
80
|
flex-shrink: 0;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
@media (hover: hover) {
|
|
83
|
-
.
|
|
84
|
+
.ZbLWjq_downloadTrigger:hover:not(:disabled, [data-disabled]) {
|
|
84
85
|
background-color: var(--qr-code-download-trigger-bg-hover, var(--button-outline-bg-hover, var(--color-accent)));
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
.
|
|
89
|
+
.ZbLWjq_downloadTrigger:focus-visible {
|
|
89
90
|
outline: var(--qr-code-download-trigger-focus-ring-width, var(--button-focus-ring-width, var(--border-width-md)))
|
|
90
91
|
solid
|
|
91
92
|
var(--qr-code-download-trigger-focus-ring-color, var(--button-focus-ring-color, var(--color-ring)));
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
-1);
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
.
|
|
97
|
+
.ZbLWjq_downloadTrigger:disabled, .ZbLWjq_downloadTrigger[data-disabled] {
|
|
97
98
|
pointer-events: none;
|
|
98
99
|
opacity: var(--qr-code-disabled-opacity, var(--button-disabled-opacity, var(--opacity-disabled)));
|
|
99
100
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QrCode } from "@ark-ui/react/qr-code";
|
|
1
|
+
import { QrCode, useQrCode } from "@ark-ui/react/qr-code";
|
|
2
2
|
|
|
3
3
|
//#region src/components/qr-code/QrCode.d.ts
|
|
4
4
|
declare const QrCode$1: import("react").ForwardRefExoticComponent<Omit<QrCode.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -10,4 +10,4 @@ declare const QrCode$1: import("react").ForwardRefExoticComponent<Omit<QrCode.Ro
|
|
|
10
10
|
DownloadTrigger: import("react").ForwardRefExoticComponent<Omit<QrCode.DownloadTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
|
-
export { QrCode$1 as QrCode };
|
|
13
|
+
export { QrCode$1 as QrCode, useQrCode };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import QrCode_module_default from "./QrCode.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { QrCode, useQrCode } from "@ark-ui/react/qr-code";
|
|
7
7
|
//#region src/components/qr-code/QrCode.tsx
|
|
8
8
|
const QrCodeRoot = forwardRef(function QrCodeRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(QrCode.Root, {
|
|
@@ -62,4 +62,4 @@ const QrCode$1 = Object.assign(QrCodeRoot, {
|
|
|
62
62
|
DownloadTrigger: QrCodeDownloadTrigger
|
|
63
63
|
});
|
|
64
64
|
//#endregion
|
|
65
|
-
export { QrCode$1 as QrCode };
|
|
65
|
+
export { QrCode$1 as QrCode, useQrCode };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './QrCode.css';
|
|
2
2
|
//#region src/components/qr-code/QrCode.module.css
|
|
3
3
|
var QrCode_module_default = {
|
|
4
|
-
"downloadTrigger": "
|
|
5
|
-
"frame": "
|
|
6
|
-
"overlay": "
|
|
7
|
-
"pattern": "
|
|
8
|
-
"root": "
|
|
4
|
+
"downloadTrigger": "ZbLWjq_downloadTrigger",
|
|
5
|
+
"frame": "ZbLWjq_frame",
|
|
6
|
+
"overlay": "ZbLWjq_overlay",
|
|
7
|
+
"pattern": "ZbLWjq_pattern",
|
|
8
|
+
"root": "ZbLWjq_root"
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { QrCode_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QrCode } from "./QrCode.js";
|
|
2
|
-
export { QrCode };
|
|
1
|
+
import { QrCode, useQrCode } from "./QrCode.js";
|
|
2
|
+
export { QrCode, useQrCode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.ECSf4W_root {
|
|
3
3
|
gap: var(--radio-group-gap, var(--spacing-2));
|
|
4
4
|
color: var(--radio-group-color, var(--color-foreground));
|
|
5
5
|
flex-direction: column;
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
.ECSf4W_label {
|
|
15
15
|
color: var(--radio-group-label-color, var(--radio-group-color, var(--color-foreground)));
|
|
16
16
|
font-size: var(--radio-group-label-font-size, var(--text-sm));
|
|
17
17
|
font-weight: var(--radio-group-label-font-weight, var(--weight-semibold));
|
|
18
18
|
line-height: var(--radio-group-label-line-height, var(--line-height-text-sm));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.ECSf4W_item {
|
|
22
22
|
align-items: center;
|
|
23
23
|
gap: var(--radio-gap, var(--spacing-2));
|
|
24
24
|
vertical-align: middle;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.
|
|
35
|
+
.ECSf4W_itemControl {
|
|
36
36
|
box-sizing: border-box;
|
|
37
37
|
-webkit-appearance: none;
|
|
38
38
|
appearance: none;
|
|
@@ -124,14 +124,14 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.
|
|
127
|
+
.ECSf4W_itemText {
|
|
128
128
|
color: var(--radio-label-color, var(--color-foreground));
|
|
129
129
|
font-size: var(--radio-label-font-size, var(--text-sm));
|
|
130
130
|
font-weight: var(--radio-label-font-weight, var(--weight-medium));
|
|
131
131
|
line-height: var(--radio-label-line-height, var(--line-height-text-sm));
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.
|
|
134
|
+
.ECSf4W_indicator {
|
|
135
135
|
top: var(--top);
|
|
136
136
|
left: var(--left);
|
|
137
137
|
width: var(--width);
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
import { RadioGroup } from "@ark-ui/react/radio-group";
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { RadioGroup, useRadioGroup } from "@ark-ui/react/radio-group";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio-group/RadioGroup.d.ts
|
|
5
5
|
type RadioGroupItemControlSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
6
|
type RadioGroupItemControlProps = ComponentProps<typeof RadioGroup.ItemControl> & {
|
|
7
7
|
size?: RadioGroupItemControlSize;
|
|
8
8
|
};
|
|
9
|
+
type RadioGroupOptionProps = Omit<ComponentProps<typeof RadioGroup.Item>, 'asChild' | 'children'> & {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
size?: RadioGroupItemControlSize;
|
|
12
|
+
};
|
|
9
13
|
declare const RadioGroup$1: import("react").ForwardRefExoticComponent<Omit<RadioGroup.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
10
14
|
Root: import("react").ForwardRefExoticComponent<Omit<RadioGroup.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
15
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<RadioGroup.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
16
|
Label: import("react").ForwardRefExoticComponent<Omit<RadioGroup.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
17
|
Item: import("react").ForwardRefExoticComponent<Omit<RadioGroup.ItemProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
18
|
+
Option: import("react").ForwardRefExoticComponent<Omit<RadioGroupOptionProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
19
|
ItemControl: import("react").ForwardRefExoticComponent<Omit<RadioGroupItemControlProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
20
|
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
21
|
Indicator: import("react").ForwardRefExoticComponent<Omit<RadioGroup.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
22
|
};
|
|
19
23
|
//#endregion
|
|
20
|
-
export { RadioGroup$1 as RadioGroup, type RadioGroupItemControlProps, type RadioGroupItemControlSize };
|
|
24
|
+
export { RadioGroup$1 as RadioGroup, type RadioGroupItemControlProps, type RadioGroupItemControlSize, type RadioGroupOptionProps, useRadioGroup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import RadioGroup_module_default from "./RadioGroup.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
|
-
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
4
|
+
import { Children, cloneElement, forwardRef } from "react";
|
|
5
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { RadioGroup, useRadioGroup } from "@ark-ui/react/radio-group";
|
|
7
7
|
//#region src/components/radio-group/RadioGroup.tsx
|
|
8
8
|
const RadioGroupRoot = forwardRef(function RadioGroupRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(RadioGroup.Root, {
|
|
@@ -29,12 +29,21 @@ const RadioGroupLabel = forwardRef(function RadioGroupLabel({ className, ...prop
|
|
|
29
29
|
...props
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
const RadioGroupItem = forwardRef(function RadioGroupItem({ className, ...props }, ref) {
|
|
32
|
+
const RadioGroupItem = forwardRef(function RadioGroupItem({ asChild, children, className, ...props }, ref) {
|
|
33
33
|
return /* @__PURE__ */ jsx(RadioGroup.Item, {
|
|
34
34
|
ref,
|
|
35
|
+
asChild,
|
|
35
36
|
"data-slot": "radio-group-item",
|
|
36
37
|
className: clsx(RadioGroup_module_default.item, normalizeClassName(className)),
|
|
37
|
-
...props
|
|
38
|
+
...props,
|
|
39
|
+
children: withItemHiddenInput(children, asChild)
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const RadioGroupOption = forwardRef(function RadioGroupOption({ children, size, ...props }, ref) {
|
|
43
|
+
return /* @__PURE__ */ jsxs(RadioGroupItem, {
|
|
44
|
+
ref,
|
|
45
|
+
...props,
|
|
46
|
+
children: [/* @__PURE__ */ jsx(RadioGroupItemControl, { size }), /* @__PURE__ */ jsx(RadioGroupItemText, { children })]
|
|
38
47
|
});
|
|
39
48
|
});
|
|
40
49
|
const RadioGroupItemControl = forwardRef(function RadioGroupItemControl({ className, size = "md", ...props }, ref) {
|
|
@@ -54,13 +63,12 @@ const RadioGroupItemText = forwardRef(function RadioGroupItemText({ className, .
|
|
|
54
63
|
...props
|
|
55
64
|
});
|
|
56
65
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
});
|
|
66
|
+
function withItemHiddenInput(children, asChild) {
|
|
67
|
+
const hiddenInput = /* @__PURE__ */ jsx(RadioGroup.ItemHiddenInput, { "data-slot": "radio-group-item-hidden-input" });
|
|
68
|
+
if (!asChild) return /* @__PURE__ */ jsxs(Fragment$1, { children: [children, hiddenInput] });
|
|
69
|
+
const child = Children.only(children);
|
|
70
|
+
return cloneElement(child, {}, child.props.children, hiddenInput);
|
|
71
|
+
}
|
|
64
72
|
const RadioGroupIndicator = forwardRef(function RadioGroupIndicator({ className, ...props }, ref) {
|
|
65
73
|
return /* @__PURE__ */ jsx(RadioGroup.Indicator, {
|
|
66
74
|
ref,
|
|
@@ -74,10 +82,10 @@ const RadioGroup$1 = Object.assign(RadioGroupRoot, {
|
|
|
74
82
|
RootProvider: RadioGroupRootProvider,
|
|
75
83
|
Label: RadioGroupLabel,
|
|
76
84
|
Item: RadioGroupItem,
|
|
85
|
+
Option: RadioGroupOption,
|
|
77
86
|
ItemControl: RadioGroupItemControl,
|
|
78
87
|
ItemText: RadioGroupItemText,
|
|
79
|
-
ItemHiddenInput: RadioGroupItemHiddenInput,
|
|
80
88
|
Indicator: RadioGroupIndicator
|
|
81
89
|
});
|
|
82
90
|
//#endregion
|
|
83
|
-
export { RadioGroup$1 as RadioGroup };
|
|
91
|
+
export { RadioGroup$1 as RadioGroup, useRadioGroup };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './RadioGroup.css';
|
|
2
2
|
//#region src/components/radio-group/RadioGroup.module.css
|
|
3
3
|
var RadioGroup_module_default = {
|
|
4
|
-
"indicator": "
|
|
5
|
-
"item": "
|
|
6
|
-
"itemControl": "
|
|
7
|
-
"itemText": "
|
|
8
|
-
"label": "
|
|
9
|
-
"root": "
|
|
4
|
+
"indicator": "ECSf4W_indicator",
|
|
5
|
+
"item": "ECSf4W_item",
|
|
6
|
+
"itemControl": "ECSf4W_itemControl",
|
|
7
|
+
"itemText": "ECSf4W_itemText",
|
|
8
|
+
"label": "ECSf4W_label",
|
|
9
|
+
"root": "ECSf4W_root"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RadioGroup_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RadioGroup, RadioGroupItemControlProps, RadioGroupItemControlSize } from "./RadioGroup.js";
|
|
2
|
-
export { RadioGroup, type RadioGroupItemControlProps, type RadioGroupItemControlSize };
|
|
1
|
+
import { RadioGroup, RadioGroupItemControlProps, RadioGroupItemControlSize, RadioGroupOptionProps, useRadioGroup } from "./RadioGroup.js";
|
|
2
|
+
export { RadioGroup, type RadioGroupItemControlProps, type RadioGroupItemControlSize, type RadioGroupOptionProps, useRadioGroup };
|