@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
|
+
.NbN_ya_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
@@ -31,18 +31,33 @@
|
|
|
31
31
|
outline-offset: calc(var(--button-focus-ring-offset, var(--button-border-width, var(--border-width-sm))) * -1);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
&:active:not([data-disabled]) {
|
|
35
|
+
opacity: .9;
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
&[data-disabled] {
|
|
35
39
|
opacity: var(--button-disabled-opacity, var(--opacity-disabled));
|
|
36
40
|
cursor: default;
|
|
37
41
|
pointer-events: none;
|
|
38
42
|
}
|
|
39
43
|
|
|
44
|
+
&[data-loading] {
|
|
45
|
+
cursor: progress;
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
& :where(svg) {
|
|
41
49
|
width: var(--button-icon-size, 1rem);
|
|
42
50
|
height: var(--button-icon-size, 1rem);
|
|
43
51
|
flex-shrink: 0;
|
|
44
52
|
}
|
|
45
53
|
|
|
54
|
+
& [data-icon="inline-start"], & [data-icon="inline-end"] {
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
}
|
|
60
|
+
|
|
46
61
|
&[data-variant="default"] {
|
|
47
62
|
border-color: var(--button-default-border-color, var(--color-primary));
|
|
48
63
|
background-color: var(--button-default-bg, var(--color-primary));
|
|
@@ -50,7 +65,7 @@
|
|
|
50
65
|
|
|
51
66
|
@media (hover: hover) {
|
|
52
67
|
&:not([data-disabled]):hover {
|
|
53
|
-
background-color: var(--button-default-bg-hover, var(--color-
|
|
68
|
+
background-color: var(--button-default-bg-hover, color-mix(in srgb, var(--button-default-bg, var(--color-primary)) 88%, black));
|
|
54
69
|
}
|
|
55
70
|
}
|
|
56
71
|
}
|
|
@@ -189,5 +204,10 @@
|
|
|
189
204
|
min-width: var(--button-size-icon-lg, var(--size-xl));
|
|
190
205
|
height: var(--button-size-icon-lg, var(--size-xl));
|
|
191
206
|
}
|
|
207
|
+
|
|
208
|
+
&[data-variant="link"] {
|
|
209
|
+
min-height: 0;
|
|
210
|
+
padding-block: 0;
|
|
211
|
+
}
|
|
192
212
|
}
|
|
193
213
|
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
//#region src/components/button/Button.d.ts
|
|
2
2
|
declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
3
|
+
loading?: boolean;
|
|
3
4
|
variant?: "default" | "outline" | "secondary" | "destructive" | "destructive-outline" | "ghost" | "link";
|
|
4
5
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg";
|
|
6
|
+
'data-scope'?: string;
|
|
7
|
+
'data-part'?: string;
|
|
5
8
|
'data-slot'?: string;
|
|
6
9
|
} & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
7
10
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
11
|
+
loading?: boolean;
|
|
8
12
|
variant?: "default" | "outline" | "secondary" | "destructive" | "destructive-outline" | "ghost" | "link";
|
|
9
13
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg";
|
|
14
|
+
'data-scope'?: string;
|
|
15
|
+
'data-part'?: string;
|
|
10
16
|
'data-slot'?: string;
|
|
11
17
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
18
|
};
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Button_module_default from "./Button.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { ark } from "@ark-ui/react/factory";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/button/Button.tsx
|
|
8
|
-
const ButtonRoot = forwardRef(function ButtonRoot({ asChild, className, disabled, size = "md", type, "data-slot": dataSlot, variant = "default", "aria-disabled": ariaDisabled, ...props }, ref) {
|
|
9
|
-
const
|
|
8
|
+
const ButtonRoot = forwardRef(function ButtonRoot({ asChild, className, disabled, loading = false, size = "md", type, "data-scope": dataScope = "button", "data-part": dataPart = "root", "data-slot": dataSlot, variant = "default", "aria-busy": ariaBusy, "aria-disabled": ariaDisabled, ...props }, ref) {
|
|
9
|
+
const nativeDisabled = asChild ? void 0 : loading || disabled;
|
|
10
|
+
const resolvedAriaBusy = loading ? true : ariaBusy;
|
|
11
|
+
const resolvedAriaDisabled = loading ? true : ariaDisabled;
|
|
12
|
+
const isDisabled = disabled || loading || resolvedAriaDisabled === true || resolvedAriaDisabled === "true";
|
|
10
13
|
return /* @__PURE__ */ jsx(ark.button, {
|
|
11
14
|
ref,
|
|
12
15
|
asChild,
|
|
13
16
|
type: asChild ? type : type ?? "button",
|
|
14
|
-
disabled,
|
|
15
|
-
"aria-
|
|
17
|
+
disabled: nativeDisabled,
|
|
18
|
+
"aria-busy": resolvedAriaBusy,
|
|
19
|
+
"aria-disabled": resolvedAriaDisabled,
|
|
16
20
|
...props,
|
|
17
|
-
"data-scope":
|
|
18
|
-
"data-part":
|
|
21
|
+
"data-scope": dataScope,
|
|
22
|
+
"data-part": dataPart,
|
|
19
23
|
"data-slot": dataSlot ?? "button-root",
|
|
20
24
|
"data-variant": variant,
|
|
21
25
|
"data-size": size,
|
|
22
26
|
"data-disabled": isDisabled ? "" : void 0,
|
|
27
|
+
"data-loading": loading ? "" : void 0,
|
|
23
28
|
className: clsx(Button_module_default.root, normalizeClassName(className))
|
|
24
29
|
});
|
|
25
30
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
3
|
-
--card-padding-default: var(--card-padding, var(--spacing-6));
|
|
2
|
+
._2rXk6G_root {
|
|
3
|
+
--card-padding-default: var(--card-spacing, var(--card-padding, var(--spacing-6)));
|
|
4
|
+
--card-section-spacing-default: var(--card-spacing, var(--card-body-padding-top, var(--spacing-4)));
|
|
4
5
|
--card-title-font-size-default: var(--card-title-font-size, var(--text-lg));
|
|
5
6
|
--card-title-line-height-default: var(--card-title-line-height, var(--line-height-text-lg));
|
|
6
7
|
box-sizing: border-box;
|
|
@@ -21,13 +22,15 @@
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&[data-size="sm"] {
|
|
24
|
-
--card-padding-default: var(--card-padding-sm, var(--spacing-4));
|
|
25
|
+
--card-padding-default: var(--card-spacing-sm, var(--card-spacing, var(--card-padding-sm, var(--spacing-4))));
|
|
26
|
+
--card-section-spacing-default: var(--card-spacing-sm, var(--card-spacing, var(--card-body-padding-top, var(--spacing-4))));
|
|
25
27
|
--card-title-font-size-default: var(--card-title-font-size-sm, var(--text-md));
|
|
26
28
|
--card-title-line-height-default: var(--card-title-line-height-sm, var(--line-height-text-md));
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
&[data-size="lg"] {
|
|
30
|
-
--card-padding-default: var(--card-padding-lg, var(--spacing-8));
|
|
32
|
+
--card-padding-default: var(--card-spacing-lg, var(--card-spacing, var(--card-padding-lg, var(--spacing-8))));
|
|
33
|
+
--card-section-spacing-default: var(--card-spacing-lg, var(--card-spacing, var(--card-body-padding-top, var(--spacing-4))));
|
|
31
34
|
--card-title-font-size-default: var(--card-title-font-size-lg, var(--text-xl));
|
|
32
35
|
--card-title-line-height-default: var(--card-title-line-height-lg, var(--line-height-text-xl));
|
|
33
36
|
}
|
|
@@ -48,13 +51,13 @@
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|
|
51
|
-
.
|
|
54
|
+
._2rXk6G_header, ._2rXk6G_body, ._2rXk6G_footer {
|
|
52
55
|
box-sizing: border-box;
|
|
53
56
|
min-width: 0;
|
|
54
57
|
padding-inline: var(--card-padding-default);
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
.
|
|
60
|
+
._2rXk6G_header {
|
|
58
61
|
column-gap: var(--card-action-gap, var(--spacing-2));
|
|
59
62
|
row-gap: var(--card-header-gap, var(--spacing-1));
|
|
60
63
|
padding-block: var(--card-padding-default) 0;
|
|
@@ -62,8 +65,21 @@
|
|
|
62
65
|
display: grid;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
|
-
.
|
|
66
|
-
|
|
68
|
+
._2rXk6G_media {
|
|
69
|
+
border-start-start-radius: inherit;
|
|
70
|
+
border-start-end-radius: inherit;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
|
|
74
|
+
& > :where(img, picture, video, canvas, svg, iframe) {
|
|
75
|
+
width: 100%;
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
display: block;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
._2rXk6G_body {
|
|
82
|
+
padding-block: var(--card-section-spacing-default) var(--card-padding-default);
|
|
67
83
|
color: var(--card-body-color, var(--color-muted-foreground));
|
|
68
84
|
font-size: var(--card-body-font-size, var(--text-sm));
|
|
69
85
|
line-height: var(--card-body-line-height, var(--line-height-text-sm));
|
|
@@ -82,7 +98,7 @@
|
|
|
82
98
|
}
|
|
83
99
|
}
|
|
84
100
|
|
|
85
|
-
.
|
|
101
|
+
._2rXk6G_footer {
|
|
86
102
|
align-items: center;
|
|
87
103
|
gap: var(--card-footer-gap, var(--spacing-2));
|
|
88
104
|
padding-block: 0 var(--card-padding-default);
|
|
@@ -90,7 +106,7 @@
|
|
|
90
106
|
display: flex;
|
|
91
107
|
}
|
|
92
108
|
|
|
93
|
-
.
|
|
109
|
+
._2rXk6G_title {
|
|
94
110
|
min-width: 0;
|
|
95
111
|
color: var(--card-title-color, currentColor);
|
|
96
112
|
font-size: var(--card-title-font-size-default);
|
|
@@ -101,7 +117,7 @@
|
|
|
101
117
|
margin: 0;
|
|
102
118
|
}
|
|
103
119
|
|
|
104
|
-
.
|
|
120
|
+
._2rXk6G_description {
|
|
105
121
|
min-width: 0;
|
|
106
122
|
color: var(--card-description-color, var(--color-muted-foreground));
|
|
107
123
|
font-size: var(--card-description-font-size, var(--text-sm));
|
|
@@ -111,7 +127,7 @@
|
|
|
111
127
|
margin: 0;
|
|
112
128
|
}
|
|
113
129
|
|
|
114
|
-
.
|
|
130
|
+
._2rXk6G_action {
|
|
115
131
|
z-index: 1;
|
|
116
132
|
justify-content: flex-end;
|
|
117
133
|
align-items: start;
|
|
@@ -122,7 +138,7 @@
|
|
|
122
138
|
position: relative;
|
|
123
139
|
}
|
|
124
140
|
|
|
125
|
-
.
|
|
141
|
+
._2rXk6G_link {
|
|
126
142
|
color: inherit;
|
|
127
143
|
text-decoration: none;
|
|
128
144
|
position: static;
|
|
@@ -9,6 +9,7 @@ declare const Card: import("react").ForwardRefExoticComponent<Omit<import("react
|
|
|
9
9
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Media: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
13
|
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
14
|
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
14
15
|
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Card_module_default from "./Card.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { ark } from "@ark-ui/react/factory";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/card/Card.tsx
|
|
8
8
|
const CardRoot = forwardRef(function CardRoot({ className, size = "md", variant = "outline", ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(ark.div, {
|
|
@@ -37,6 +37,16 @@ const CardBody = forwardRef(function CardBody({ className, ...props }, ref) {
|
|
|
37
37
|
...props
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
|
+
const CardMedia = forwardRef(function CardMedia({ className, ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-scope": "card",
|
|
44
|
+
"data-part": "media",
|
|
45
|
+
"data-slot": "card-media",
|
|
46
|
+
className: clsx(Card_module_default.media, normalizeClassName(className)),
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
});
|
|
40
50
|
const CardFooter = forwardRef(function CardFooter({ className, ...props }, ref) {
|
|
41
51
|
return /* @__PURE__ */ jsx(ark.div, {
|
|
42
52
|
ref,
|
|
@@ -91,6 +101,7 @@ const Card = Object.assign(CardRoot, {
|
|
|
91
101
|
Root: CardRoot,
|
|
92
102
|
Header: CardHeader,
|
|
93
103
|
Body: CardBody,
|
|
104
|
+
Media: CardMedia,
|
|
94
105
|
Footer: CardFooter,
|
|
95
106
|
Title: CardTitle,
|
|
96
107
|
Description: CardDescription,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import './Card.css';
|
|
2
2
|
//#region src/components/card/Card.module.css
|
|
3
3
|
var Card_module_default = {
|
|
4
|
-
"action": "
|
|
5
|
-
"body": "
|
|
6
|
-
"description": "
|
|
7
|
-
"footer": "
|
|
8
|
-
"header": "
|
|
9
|
-
"link": "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
4
|
+
"action": "_2rXk6G_action",
|
|
5
|
+
"body": "_2rXk6G_body",
|
|
6
|
+
"description": "_2rXk6G_description",
|
|
7
|
+
"footer": "_2rXk6G_footer",
|
|
8
|
+
"header": "_2rXk6G_header",
|
|
9
|
+
"link": "_2rXk6G_link",
|
|
10
|
+
"media": "_2rXk6G_media",
|
|
11
|
+
"root": "_2rXk6G_root",
|
|
12
|
+
"title": "_2rXk6G_title"
|
|
12
13
|
};
|
|
13
14
|
//#endregion
|
|
14
15
|
export { Card_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.NQiVeG_root {
|
|
3
3
|
gap: var(--carousel-gap, var(--spacing-3));
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.NQiVeG_root[data-orientation="vertical"] {
|
|
11
11
|
height: var(--carousel-height, 24rem);
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
align-items: stretch;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.NQiVeG_control {
|
|
17
17
|
align-items: center;
|
|
18
18
|
gap: var(--carousel-gap, var(--spacing-3));
|
|
19
19
|
min-width: 0;
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.NQiVeG_control[data-orientation="vertical"] {
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
justify-content: space-between;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.NQiVeG_itemGroup {
|
|
29
29
|
overscroll-behavior-x: contain;
|
|
30
30
|
overscroll-behavior-y: auto;
|
|
31
31
|
border-radius: var(--carousel-track-radius, var(--radius-xl));
|
|
@@ -46,17 +46,19 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
.NQiVeG_root[data-orientation="vertical"] > .NQiVeG_itemGroup {
|
|
50
|
+
overscroll-behavior-x: auto;
|
|
51
|
+
overscroll-behavior-y: contain;
|
|
50
52
|
height: 100%;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
.
|
|
55
|
+
.NQiVeG_item {
|
|
54
56
|
box-sizing: border-box;
|
|
55
57
|
min-width: 0;
|
|
56
58
|
min-height: 0;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
.
|
|
61
|
+
.NQiVeG_prevTrigger, .NQiVeG_nextTrigger, .NQiVeG_autoplayTrigger {
|
|
60
62
|
width: var(--carousel-control-size, 2.5rem);
|
|
61
63
|
height: var(--carousel-control-size, 2.5rem);
|
|
62
64
|
border: var(--border-width-sm) solid
|
|
@@ -106,32 +108,32 @@
|
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
.
|
|
111
|
+
.NQiVeG_defaultIcon {
|
|
110
112
|
justify-content: center;
|
|
111
113
|
align-items: center;
|
|
112
114
|
display: inline-flex;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
.
|
|
116
|
-
& .
|
|
117
|
+
.NQiVeG_root[data-orientation="vertical"] {
|
|
118
|
+
& .NQiVeG_defaultIcon {
|
|
117
119
|
& svg {
|
|
118
120
|
transform: rotate(90deg);
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
.
|
|
125
|
+
.NQiVeG_indicatorGroup {
|
|
124
126
|
justify-content: center;
|
|
125
127
|
align-items: center;
|
|
126
128
|
gap: var(--carousel-indicator-gap, var(--spacing-2));
|
|
127
129
|
display: flex;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
|
-
.
|
|
132
|
+
.NQiVeG_root[data-orientation="vertical"] > .NQiVeG_indicatorGroup, .NQiVeG_control[data-orientation="vertical"] > .NQiVeG_indicatorGroup {
|
|
131
133
|
flex-direction: column;
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
.
|
|
136
|
+
.NQiVeG_indicator {
|
|
135
137
|
width: var(--carousel-indicator-size, .5rem);
|
|
136
138
|
height: var(--carousel-indicator-size, .5rem);
|
|
137
139
|
border-radius: var(--radius-full);
|
|
@@ -167,18 +169,18 @@
|
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
.
|
|
172
|
+
.NQiVeG_root[data-orientation="vertical"] > .NQiVeG_indicatorGroup .NQiVeG_indicator, .NQiVeG_control[data-orientation="vertical"] > .NQiVeG_indicatorGroup .NQiVeG_indicator {
|
|
171
173
|
&[data-current] {
|
|
172
174
|
width: var(--carousel-indicator-size, .5rem);
|
|
173
175
|
height: calc(var(--carousel-indicator-size, .5rem) * 3);
|
|
174
176
|
}
|
|
175
177
|
}
|
|
176
178
|
|
|
177
|
-
.
|
|
179
|
+
.NQiVeG_autoplayTrigger {
|
|
178
180
|
min-width: 3rem;
|
|
179
181
|
}
|
|
180
182
|
|
|
181
|
-
.
|
|
183
|
+
.NQiVeG_autoplayIndicator {
|
|
182
184
|
min-width: 1rem;
|
|
183
185
|
font-size: var(--text-xs);
|
|
184
186
|
font-weight: var(--weight-medium);
|
|
@@ -189,7 +191,7 @@
|
|
|
189
191
|
display: inline-flex;
|
|
190
192
|
}
|
|
191
193
|
|
|
192
|
-
.
|
|
194
|
+
.NQiVeG_progressText {
|
|
193
195
|
color: var(--carousel-progress-text-color, var(--color-muted-foreground));
|
|
194
196
|
font-size: var(--carousel-progress-text-font-size, var(--text-sm));
|
|
195
197
|
line-height: var(--line-height-text-sm);
|
|
@@ -4,6 +4,7 @@ import { Carousel } from "@ark-ui/react/carousel";
|
|
|
4
4
|
declare const Carousel$1: import("react").ForwardRefExoticComponent<Omit<Carousel.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Root: import("react").ForwardRefExoticComponent<Omit<Carousel.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<Carousel.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Context: (props: Carousel.ContextProps) => import("react").ReactNode;
|
|
7
8
|
Control: import("react").ForwardRefExoticComponent<Omit<Carousel.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<Carousel.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
10
|
Item: import("react").ForwardRefExoticComponent<Omit<Carousel.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -11,6 +12,9 @@ declare const Carousel$1: import("react").ForwardRefExoticComponent<Omit<Carouse
|
|
|
11
12
|
NextTrigger: import("react").ForwardRefExoticComponent<Omit<Carousel.NextTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
13
|
IndicatorGroup: import("react").ForwardRefExoticComponent<Omit<Carousel.IndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
14
|
Indicator: import("react").ForwardRefExoticComponent<Omit<Carousel.IndicatorProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
Indicators: import("react").ForwardRefExoticComponent<Omit<Carousel.IndicatorGroupProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
16
|
+
indicatorClassName?: string;
|
|
17
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
18
|
AutoplayTrigger: import("react").ForwardRefExoticComponent<Omit<Carousel.AutoplayTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
19
|
AutoplayIndicator: import("react").ForwardRefExoticComponent<Omit<Carousel.AutoplayIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
20
|
ProgressText: import("react").ForwardRefExoticComponent<Omit<Carousel.ProgressTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import Carousel_module_default from "./Carousel.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { Carousel } from "@ark-ui/react/carousel";
|
|
8
8
|
//#region src/components/carousel/Carousel.tsx
|
|
9
9
|
const CarouselRoot = forwardRef(function CarouselRoot({ className, ...props }, ref) {
|
|
@@ -86,6 +86,17 @@ const CarouselIndicator = forwardRef(function CarouselIndicator({ className, ...
|
|
|
86
86
|
...props
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
|
+
const CarouselIndicators = forwardRef(function CarouselIndicators({ className, indicatorClassName, ...props }, ref) {
|
|
90
|
+
return /* @__PURE__ */ jsx(Carousel.Context, { children: (api) => /* @__PURE__ */ jsx(CarouselIndicatorGroup, {
|
|
91
|
+
ref,
|
|
92
|
+
className,
|
|
93
|
+
...props,
|
|
94
|
+
children: api.pageSnapPoints.map((_, index) => /* @__PURE__ */ jsx(CarouselIndicator, {
|
|
95
|
+
index,
|
|
96
|
+
className: indicatorClassName
|
|
97
|
+
}, index))
|
|
98
|
+
}) });
|
|
99
|
+
});
|
|
89
100
|
const CarouselAutoplayTrigger = forwardRef(function CarouselAutoplayTrigger({ className, ...props }, ref) {
|
|
90
101
|
return /* @__PURE__ */ jsx(Carousel.AutoplayTrigger, {
|
|
91
102
|
ref,
|
|
@@ -113,6 +124,7 @@ const CarouselProgressText = forwardRef(function CarouselProgressText({ classNam
|
|
|
113
124
|
const Carousel$1 = Object.assign(CarouselRoot, {
|
|
114
125
|
Root: CarouselRoot,
|
|
115
126
|
RootProvider: CarouselRootProvider,
|
|
127
|
+
Context: Carousel.Context,
|
|
116
128
|
Control: CarouselControl,
|
|
117
129
|
ItemGroup: CarouselItemGroup,
|
|
118
130
|
Item: CarouselItem,
|
|
@@ -120,6 +132,7 @@ const Carousel$1 = Object.assign(CarouselRoot, {
|
|
|
120
132
|
NextTrigger: CarouselNextTrigger,
|
|
121
133
|
IndicatorGroup: CarouselIndicatorGroup,
|
|
122
134
|
Indicator: CarouselIndicator,
|
|
135
|
+
Indicators: CarouselIndicators,
|
|
123
136
|
AutoplayTrigger: CarouselAutoplayTrigger,
|
|
124
137
|
AutoplayIndicator: CarouselAutoplayIndicator,
|
|
125
138
|
ProgressText: CarouselProgressText
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './Carousel.css';
|
|
2
2
|
//#region src/components/carousel/Carousel.module.css
|
|
3
3
|
var Carousel_module_default = {
|
|
4
|
-
"autoplayIndicator": "
|
|
5
|
-
"autoplayTrigger": "
|
|
6
|
-
"control": "
|
|
7
|
-
"defaultIcon": "
|
|
8
|
-
"indicator": "
|
|
9
|
-
"indicatorGroup": "
|
|
10
|
-
"item": "
|
|
11
|
-
"itemGroup": "
|
|
12
|
-
"nextTrigger": "
|
|
13
|
-
"prevTrigger": "
|
|
14
|
-
"progressText": "
|
|
15
|
-
"root": "
|
|
4
|
+
"autoplayIndicator": "NQiVeG_autoplayIndicator",
|
|
5
|
+
"autoplayTrigger": "NQiVeG_autoplayTrigger",
|
|
6
|
+
"control": "NQiVeG_control",
|
|
7
|
+
"defaultIcon": "NQiVeG_defaultIcon",
|
|
8
|
+
"indicator": "NQiVeG_indicator",
|
|
9
|
+
"indicatorGroup": "NQiVeG_indicatorGroup",
|
|
10
|
+
"item": "NQiVeG_item",
|
|
11
|
+
"itemGroup": "NQiVeG_itemGroup",
|
|
12
|
+
"nextTrigger": "NQiVeG_nextTrigger",
|
|
13
|
+
"prevTrigger": "NQiVeG_prevTrigger",
|
|
14
|
+
"progressText": "NQiVeG_progressText",
|
|
15
|
+
"root": "NQiVeG_root"
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Carousel_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.NxmH7W_root {
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--checkbox-gap, var(--spacing-2));
|
|
5
5
|
vertical-align: middle;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.NxmH7W_control {
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
width: var(--_checkbox-size, 1.25rem);
|
|
22
22
|
height: var(--_checkbox-size, 1.25rem);
|
|
@@ -70,32 +70,32 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.
|
|
73
|
+
.NxmH7W_root[data-size="xs"] .NxmH7W_control {
|
|
74
74
|
--_checkbox-size: var(--checkbox-size-xs, .875rem);
|
|
75
75
|
--_checkbox-icon-size: var(--checkbox-icon-size-xs, .5rem);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.
|
|
78
|
+
.NxmH7W_root[data-size="sm"] .NxmH7W_control {
|
|
79
79
|
--_checkbox-size: var(--checkbox-size-sm, 1rem);
|
|
80
80
|
--_checkbox-icon-size: var(--checkbox-icon-size-sm, .625rem);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.
|
|
83
|
+
.NxmH7W_root[data-size="md"] .NxmH7W_control {
|
|
84
84
|
--_checkbox-size: var(--checkbox-size-md, 1.25rem);
|
|
85
85
|
--_checkbox-icon-size: var(--checkbox-icon-size-md, .75rem);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
.NxmH7W_root[data-size="lg"] .NxmH7W_control {
|
|
89
89
|
--_checkbox-size: var(--checkbox-size-lg, 1.5rem);
|
|
90
90
|
--_checkbox-icon-size: var(--checkbox-icon-size-lg, .875rem);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.
|
|
93
|
+
.NxmH7W_root[data-size="xl"] .NxmH7W_control {
|
|
94
94
|
--_checkbox-size: var(--checkbox-size-xl, 1.75rem);
|
|
95
95
|
--_checkbox-icon-size: var(--checkbox-icon-size-xl, 1rem);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
.NxmH7W_indicator {
|
|
99
99
|
width: 100%;
|
|
100
100
|
height: 100%;
|
|
101
101
|
color: inherit;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
display: inline-flex;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.
|
|
107
|
+
.NxmH7W_icon {
|
|
108
108
|
width: var(--_checkbox-icon-size, .75rem);
|
|
109
109
|
height: var(--_checkbox-icon-size, .75rem);
|
|
110
110
|
color: inherit;
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.
|
|
122
|
+
.NxmH7W_label {
|
|
123
123
|
color: var(--checkbox-label-color, var(--color-foreground));
|
|
124
124
|
font-size: var(--checkbox-label-font-size, var(--text-sm));
|
|
125
125
|
font-weight: var(--checkbox-label-font-weight, var(--weight-medium));
|
|
126
126
|
line-height: var(--checkbox-label-line-height, var(--line-height-text-sm));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.
|
|
129
|
+
.NxmH7W_group {
|
|
130
130
|
gap: var(--checkbox-group-gap, var(--spacing-2));
|
|
131
131
|
color: var(--checkbox-group-color, var(--color-foreground));
|
|
132
132
|
flex-direction: column;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
2
|
+
import { Checkbox, useCheckbox, useCheckboxGroup } from "@ark-ui/react/checkbox";
|
|
3
3
|
|
|
4
4
|
//#region src/components/checkbox/Checkbox.d.ts
|
|
5
5
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -14,9 +14,8 @@ declare const Checkbox$1: import("react").ForwardRefExoticComponent<Omit<RootPro
|
|
|
14
14
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<RootProviderProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
15
15
|
Control: import("react").ForwardRefExoticComponent<Omit<Checkbox.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
Indicator: import("react").ForwardRefExoticComponent<Omit<Checkbox.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
-
HiddenInput: import("react").ForwardRefExoticComponent<Omit<Checkbox.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
17
|
Label: import("react").ForwardRefExoticComponent<Omit<Checkbox.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
18
|
Group: import("react").ForwardRefExoticComponent<Omit<Checkbox.GroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
19
|
};
|
|
21
20
|
//#endregion
|
|
22
|
-
export { Checkbox$1 as Checkbox };
|
|
21
|
+
export { Checkbox$1 as Checkbox, useCheckbox, useCheckboxGroup };
|