@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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.jqWswG_root {
|
|
3
|
+
vertical-align: middle;
|
|
4
|
+
grid-template-areas: "jqWswG_swap";
|
|
5
|
+
place-items: center;
|
|
6
|
+
display: inline-grid;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.jqWswG_indicator {
|
|
10
|
+
color: inherit;
|
|
11
|
+
grid-area: jqWswG_swap;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
|
|
16
|
+
&[data-state="open"] {
|
|
17
|
+
animation: jqWswG_swap-enter var(--swap-transition, var(--transition-default));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-state="closed"] {
|
|
21
|
+
animation: jqWswG_swap-exit var(--swap-transition, var(--transition-default));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-reduced-motion: reduce) {
|
|
26
|
+
.jqWswG_indicator[data-state] {
|
|
27
|
+
animation-duration: 1ms;
|
|
28
|
+
animation-delay: 0s;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@keyframes jqWswG_swap-enter {
|
|
33
|
+
from {
|
|
34
|
+
opacity: var(--swap-enter-starting-opacity, 0);
|
|
35
|
+
transform: scale(var(--swap-enter-starting-scale, .92));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes jqWswG_swap-exit {
|
|
40
|
+
to {
|
|
41
|
+
opacity: var(--swap-exit-ending-opacity, 0);
|
|
42
|
+
transform: scale(var(--swap-exit-ending-scale, .92));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Swap, useSwapContext } from "@ark-ui/react/swap";
|
|
2
|
+
|
|
3
|
+
//#region src/components/swap/Swap.d.ts
|
|
4
|
+
declare const Swap$1: import("react").ForwardRefExoticComponent<Omit<Swap.RootProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Swap.RootProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<Swap.RootProviderProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<Swap.IndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
useSwap: (props?: import("@ark-ui/react/swap").UseSwapProps) => import("@ark-ui/react/swap").UseSwapReturn;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Swap$1 as Swap, useSwapContext };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Swap_module_default from "./Swap.module.js";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Swap, useSwap, useSwapContext } from "@ark-ui/react/swap";
|
|
7
|
+
//#region src/components/swap/Swap.tsx
|
|
8
|
+
const SwapRoot = forwardRef(function SwapRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Swap.Root, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "swap-root",
|
|
12
|
+
className: clsx(Swap_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const SwapRootProvider = forwardRef(function SwapRootProvider({ className, ...props }, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Swap.RootProvider, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "swap-root-provider",
|
|
20
|
+
className: clsx(Swap_module_default.root, normalizeClassName(className)),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
const SwapIndicator = forwardRef(function SwapIndicator({ className, ...props }, ref) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Swap.Indicator, {
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "swap-indicator",
|
|
28
|
+
className: clsx(Swap_module_default.indicator, normalizeClassName(className)),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const Swap$1 = Object.assign(SwapRoot, {
|
|
33
|
+
Root: SwapRoot,
|
|
34
|
+
RootProvider: SwapRootProvider,
|
|
35
|
+
Indicator: SwapIndicator,
|
|
36
|
+
useSwap
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Swap$1 as Swap, useSwapContext };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './Swap.css';
|
|
2
|
+
//#region src/components/swap/Swap.module.css
|
|
3
|
+
var Swap_module_default = {
|
|
4
|
+
"indicator": "jqWswG_indicator",
|
|
5
|
+
"root": "jqWswG_root",
|
|
6
|
+
"swap": "jqWswG_swap",
|
|
7
|
+
"swap-enter": "jqWswG_swap-enter",
|
|
8
|
+
"swap-exit": "jqWswG_swap-exit"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Swap_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.PUgkqa_root {
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--switch-gap, var(--spacing-2));
|
|
5
5
|
vertical-align: middle;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.PUgkqa_control {
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
width: var(--switch-width, 3rem);
|
|
22
22
|
height: var(--switch-height, 1.5rem);
|
|
@@ -51,47 +51,47 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@media (hover: hover) {
|
|
54
|
-
&[data-state="unchecked"][data-hover]:not([data-readonly]) {
|
|
54
|
+
&[data-state="unchecked"][data-hover]:not([data-readonly], [data-disabled]) {
|
|
55
55
|
background-color: var(--switch-bg-hover, var(--color-accent));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
&[data-state="checked"][data-hover]:not([data-readonly]) {
|
|
58
|
+
&[data-state="checked"][data-hover]:not([data-readonly], [data-disabled]) {
|
|
59
59
|
background-color: var(--switch-bg-checked-hover, var(--switch-bg-checked, var(--color-primary)));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.
|
|
64
|
+
.PUgkqa_root[data-size="xs"] .PUgkqa_control {
|
|
65
65
|
--switch-width: var(--switch-width-xs, 1.75rem);
|
|
66
66
|
--switch-height: var(--switch-height-xs, 1rem);
|
|
67
67
|
--switch-thumb-size: var(--switch-thumb-size-xs, .75rem);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.
|
|
70
|
+
.PUgkqa_root[data-size="sm"] .PUgkqa_control {
|
|
71
71
|
--switch-width: var(--switch-width-sm, 2.25rem);
|
|
72
72
|
--switch-height: var(--switch-height-sm, 1.25rem);
|
|
73
73
|
--switch-thumb-size: var(--switch-thumb-size-sm, 1rem);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.
|
|
76
|
+
.PUgkqa_root[data-size="md"] .PUgkqa_control {
|
|
77
77
|
--switch-width: var(--switch-width-md, 2.75rem);
|
|
78
78
|
--switch-height: var(--switch-height-md, 1.5rem);
|
|
79
79
|
--switch-thumb-size: var(--switch-thumb-size-md, 1.25rem);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.
|
|
82
|
+
.PUgkqa_root[data-size="lg"] .PUgkqa_control {
|
|
83
83
|
--switch-width: var(--switch-width-lg, 3.25rem);
|
|
84
84
|
--switch-height: var(--switch-height-lg, 1.75rem);
|
|
85
85
|
--switch-thumb-size: var(--switch-thumb-size-lg, 1.5rem);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
.PUgkqa_root[data-size="xl"] .PUgkqa_control {
|
|
89
89
|
--switch-width: var(--switch-width-xl, 3.75rem);
|
|
90
90
|
--switch-height: var(--switch-height-xl, 2rem);
|
|
91
91
|
--switch-thumb-size: var(--switch-thumb-size-xl, 1.75rem);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
94
|
+
.PUgkqa_thumb {
|
|
95
95
|
width: var(--switch-thumb-size, 1.25rem);
|
|
96
96
|
height: var(--switch-thumb-size, 1.25rem);
|
|
97
97
|
border: var(--switch-thumb-border-width, 0) solid var(--switch-thumb-border-color, transparent);
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
.
|
|
123
|
+
.PUgkqa_label {
|
|
124
124
|
color: var(--switch-label-color, var(--color-foreground));
|
|
125
125
|
font-size: var(--switch-label-font-size, var(--text-sm));
|
|
126
126
|
font-weight: var(--switch-label-font-weight, var(--weight-medium));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
import { Switch } from "@ark-ui/react/switch";
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { Switch, useSwitch, useSwitchContext } from "@ark-ui/react/switch";
|
|
3
3
|
|
|
4
4
|
//#region src/components/switch/Switch.d.ts
|
|
5
5
|
type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -15,7 +15,7 @@ declare const Switch$1: import("react").ForwardRefExoticComponent<Omit<SwitchRoo
|
|
|
15
15
|
Control: import("react").ForwardRefExoticComponent<Omit<Switch.ControlProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
16
|
Thumb: import("react").ForwardRefExoticComponent<Omit<Switch.ThumbProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
17
|
Label: import("react").ForwardRefExoticComponent<Omit<Switch.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
|
-
|
|
18
|
+
Context: (props: Switch.ContextProps) => ReactNode;
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
|
-
export { Switch$1 as Switch, type SwitchRootProps, type SwitchRootProviderProps, type SwitchSize };
|
|
21
|
+
export { Switch$1 as Switch, type SwitchRootProps, type SwitchRootProviderProps, type SwitchSize, useSwitch, useSwitchContext };
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Switch_module_default from "./Switch.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 { Switch, SwitchContext, useSwitch, useSwitchContext } from "@ark-ui/react/switch";
|
|
7
7
|
//#region src/components/switch/Switch.tsx
|
|
8
|
-
const SwitchRoot = forwardRef(function SwitchRoot({ className, size = "md", ...props }, ref) {
|
|
8
|
+
const SwitchRoot = forwardRef(function SwitchRoot({ asChild, children, className, size = "md", ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Switch.Root, {
|
|
10
10
|
ref,
|
|
11
|
+
asChild,
|
|
11
12
|
"data-slot": "switch-root",
|
|
12
13
|
"data-size": size,
|
|
13
14
|
className: clsx(Switch_module_default.root, normalizeClassName(className)),
|
|
14
|
-
...props
|
|
15
|
+
...props,
|
|
16
|
+
children: withHiddenInput(children, asChild)
|
|
15
17
|
});
|
|
16
18
|
});
|
|
17
|
-
const SwitchRootProvider = forwardRef(function SwitchRootProvider({ className, size = "md", ...props }, ref) {
|
|
19
|
+
const SwitchRootProvider = forwardRef(function SwitchRootProvider({ asChild, children, className, size = "md", ...props }, ref) {
|
|
18
20
|
return /* @__PURE__ */ jsx(Switch.RootProvider, {
|
|
19
21
|
ref,
|
|
22
|
+
asChild,
|
|
20
23
|
"data-slot": "switch-root-provider",
|
|
21
24
|
"data-size": size,
|
|
22
25
|
className: clsx(Switch_module_default.root, normalizeClassName(className)),
|
|
23
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
children: withHiddenInput(children, asChild)
|
|
24
28
|
});
|
|
25
29
|
});
|
|
26
30
|
const SwitchControl = forwardRef(function SwitchControl({ className, children, ...props }, ref) {
|
|
@@ -48,20 +52,19 @@ const SwitchLabel = forwardRef(function SwitchLabel({ className, ...props }, ref
|
|
|
48
52
|
...props
|
|
49
53
|
});
|
|
50
54
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
55
|
+
function withHiddenInput(children, asChild) {
|
|
56
|
+
const hiddenInput = /* @__PURE__ */ jsx(Switch.HiddenInput, { "data-slot": "switch-hidden-input" });
|
|
57
|
+
if (!asChild) return /* @__PURE__ */ jsxs(Fragment$1, { children: [children, hiddenInput] });
|
|
58
|
+
const child = Children.only(children);
|
|
59
|
+
return cloneElement(child, {}, child.props.children, hiddenInput);
|
|
60
|
+
}
|
|
58
61
|
const Switch$1 = Object.assign(SwitchRoot, {
|
|
59
62
|
Root: SwitchRoot,
|
|
60
63
|
RootProvider: SwitchRootProvider,
|
|
61
64
|
Control: SwitchControl,
|
|
62
65
|
Thumb: SwitchThumb,
|
|
63
66
|
Label: SwitchLabel,
|
|
64
|
-
|
|
67
|
+
Context: SwitchContext
|
|
65
68
|
});
|
|
66
69
|
//#endregion
|
|
67
|
-
export { Switch$1 as Switch };
|
|
70
|
+
export { Switch$1 as Switch, useSwitch, useSwitchContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './Switch.css';
|
|
2
2
|
//#region src/components/switch/Switch.module.css
|
|
3
3
|
var Switch_module_default = {
|
|
4
|
-
"control": "
|
|
5
|
-
"label": "
|
|
6
|
-
"root": "
|
|
7
|
-
"thumb": "
|
|
4
|
+
"control": "PUgkqa_control",
|
|
5
|
+
"label": "PUgkqa_label",
|
|
6
|
+
"root": "PUgkqa_root",
|
|
7
|
+
"thumb": "PUgkqa_thumb"
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Switch, SwitchRootProps, SwitchRootProviderProps, SwitchSize } from "./Switch.js";
|
|
2
|
-
export { Switch, type SwitchRootProps, type SwitchRootProviderProps, type SwitchSize };
|
|
1
|
+
import { Switch, SwitchRootProps, SwitchRootProviderProps, SwitchSize, useSwitch, useSwitchContext } from "./Switch.js";
|
|
2
|
+
export { Switch, type SwitchRootProps, type SwitchRootProviderProps, type SwitchSize, useSwitch, useSwitchContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
|
|
2
|
+
.-X2Dga_scrollArea {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
isolation: isolate;
|
|
5
5
|
border: var(--table-scroll-area-border-width, var(--table-border-width, var(--border-width-sm)))
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
overflow-x: auto;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
.-X2Dga_root {
|
|
17
17
|
--table-cell-padding-x-default: var(--table-cell-padding-x, var(--spacing-4));
|
|
18
18
|
--table-cell-padding-y-default: var(--table-cell-padding-y, var(--spacing-3));
|
|
19
19
|
--table-empty-padding-y-default: calc(var(--table-cell-padding-y-default) * 2);
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
.-X2Dga_caption {
|
|
52
52
|
box-sizing: border-box;
|
|
53
53
|
color: var(--table-caption-color, var(--color-muted-foreground));
|
|
54
54
|
font-size: var(--table-caption-font-size, var(--text-sm));
|
|
@@ -70,40 +70,40 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
.-X2Dga_row {
|
|
74
74
|
transition: var(--table-row-transition, background-color var(--transition-default));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
.-X2Dga_header .-X2Dga_row, .-X2Dga_body .-X2Dga_row {
|
|
78
78
|
border-bottom: var(--table-border-width, var(--border-width-sm)) solid
|
|
79
79
|
var(--table-border-color, var(--color-border));
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
.-X2Dga_root[data-striped] .-X2Dga_body .-X2Dga_row:nth-child(2n):not([data-empty]) {
|
|
83
83
|
background-color: var(--table-row-bg-striped, color-mix(in oklab, var(--color-muted) 35%, transparent));
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
.-X2Dga_root[data-interactive] .-X2Dga_body .-X2Dga_row:not([data-empty]):hover {
|
|
87
87
|
background-color: var(--table-row-bg-hover, var(--color-muted));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
.-X2Dga_root[data-show-column-border] :is(.-X2Dga_columnHeader, .-X2Dga_cell):not(:last-child) {
|
|
91
91
|
border-inline-end: var(--table-column-border-width, var(--table-border-width, var(--border-width-sm)))
|
|
92
92
|
solid var(--table-column-border-color, var(--table-border-color, var(--color-border)));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
.-X2Dga_root[data-sticky-header] .-X2Dga_header {
|
|
96
96
|
z-index: var(--table-sticky-header-z-index, 3);
|
|
97
97
|
background-color: var(--table-sticky-header-bg, var(--table-scroll-area-bg, var(--color-card)));
|
|
98
98
|
position: sticky;
|
|
99
99
|
inset-block-start: 0;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
.-X2Dga_body .-X2Dga_row:last-child {
|
|
103
103
|
border-bottom: 0;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
.-X2Dga_footer {
|
|
107
107
|
border-top: var(--table-border-width, var(--border-width-sm)) solid
|
|
108
108
|
var(--table-border-color, var(--color-border));
|
|
109
109
|
background-color: var(--table-footer-bg, var(--color-muted));
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
font-weight: var(--table-footer-font-weight, var(--weight-medium));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
.-X2Dga_columnHeader, .-X2Dga_cell {
|
|
115
115
|
z-index: 0;
|
|
116
116
|
padding-block: var(--table-cell-padding-y-default);
|
|
117
117
|
padding-inline: var(--table-cell-padding-x-default);
|
|
@@ -133,28 +133,28 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
.-X2Dga_root[data-sticky-header] .-X2Dga_header .-X2Dga_columnHeader[data-sticky] {
|
|
137
137
|
z-index: var(--table-sticky-intersection-z-index, 4);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
.-X2Dga_columnHeader {
|
|
141
141
|
color: var(--table-column-header-color, var(--color-muted-foreground));
|
|
142
142
|
font-weight: var(--table-column-header-font-weight, var(--weight-medium));
|
|
143
143
|
text-align: inherit;
|
|
144
144
|
white-space: nowrap;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
.-X2Dga_cell {
|
|
148
148
|
color: inherit;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
text-align:
|
|
151
|
+
.-X2Dga_numeric {
|
|
152
|
+
text-align: end;
|
|
153
153
|
white-space: nowrap;
|
|
154
154
|
font-variant-numeric: tabular-nums;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
.-X2Dga_empty {
|
|
158
158
|
padding-block: var(--table-empty-padding-y, var(--table-empty-padding-y-default));
|
|
159
159
|
color: var(--table-empty-color, var(--color-muted-foreground));
|
|
160
160
|
text-align: center;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Table_module_default from "./Table.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/table/Table.tsx
|
|
8
8
|
const TableRoot = forwardRef(function TableRoot({ asChild, className, interactive = false, showColumnBorder = false, size = "md", stickyHeader = false, striped = false, variant = "line", ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(ark.table, {
|
|
@@ -140,8 +140,9 @@ const TableEmpty = forwardRef(function TableEmpty({ asChild, children = "No resu
|
|
|
140
140
|
return /* @__PURE__ */ jsx(ark.tr, {
|
|
141
141
|
"data-scope": "table",
|
|
142
142
|
"data-part": "row",
|
|
143
|
+
"data-empty": true,
|
|
143
144
|
"data-slot": "table-row",
|
|
144
|
-
className:
|
|
145
|
+
className: Table_module_default.row,
|
|
145
146
|
children: /* @__PURE__ */ jsx(ark.td, {
|
|
146
147
|
ref,
|
|
147
148
|
asChild,
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import './Table.css';
|
|
2
2
|
//#region src/components/table/Table.module.css
|
|
3
3
|
var Table_module_default = {
|
|
4
|
-
"body": "
|
|
5
|
-
"caption": "
|
|
6
|
-
"cell": "
|
|
7
|
-
"columnHeader": "
|
|
8
|
-
"empty": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"scrollArea": "YeBawq_scrollArea"
|
|
4
|
+
"body": "-X2Dga_body",
|
|
5
|
+
"caption": "-X2Dga_caption",
|
|
6
|
+
"cell": "-X2Dga_cell",
|
|
7
|
+
"columnHeader": "-X2Dga_columnHeader",
|
|
8
|
+
"empty": "-X2Dga_empty",
|
|
9
|
+
"footer": "-X2Dga_footer",
|
|
10
|
+
"header": "-X2Dga_header",
|
|
11
|
+
"numeric": "-X2Dga_numeric",
|
|
12
|
+
"root": "-X2Dga_root",
|
|
13
|
+
"row": "-X2Dga_row",
|
|
14
|
+
"scrollArea": "-X2Dga_scrollArea"
|
|
16
15
|
};
|
|
17
16
|
//#endregion
|
|
18
17
|
export { Table_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.ostTjG_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
gap: var(--tabs-gap, .75rem);
|
|
5
5
|
min-width: 0;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.ostTjG_list {
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
z-index: 0;
|
|
19
19
|
align-items: stretch;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
.ostTjG_root[data-variant="line"] & {
|
|
39
39
|
border-width: 0 0 var(--tabs-list-border-width, var(--border-width-sm));
|
|
40
40
|
background-color: #0000;
|
|
41
41
|
border-radius: 0;
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
padding-inline: 0;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
.ostTjG_root[data-orientation="vertical"][data-variant="line"] & {
|
|
47
47
|
width: var(--tabs-vertical-list-width, 12rem);
|
|
48
48
|
border-width: 0 var(--tabs-list-border-width, var(--border-width-sm)) 0 0;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
.ostTjG_trigger {
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
z-index: 1;
|
|
55
55
|
justify-content: center;
|
|
@@ -113,8 +113,10 @@
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.
|
|
116
|
+
.ostTjG_indicator {
|
|
117
117
|
z-index: 0;
|
|
118
|
+
top: 50%;
|
|
119
|
+
left: var(--left, 0);
|
|
118
120
|
width: var(--width, 0);
|
|
119
121
|
height: var(--tabs-indicator-size, 2rem);
|
|
120
122
|
border-radius: var(--tabs-indicator-radius, var(--radius-md));
|
|
@@ -125,10 +127,9 @@
|
|
|
125
127
|
top var(--tabs-indicator-transition, var(--transition-default)),
|
|
126
128
|
left var(--tabs-indicator-transition, var(--transition-default));
|
|
127
129
|
position: absolute;
|
|
128
|
-
top: 50%;
|
|
129
130
|
translate: 0 -50%;
|
|
130
131
|
|
|
131
|
-
.
|
|
132
|
+
.ostTjG_root[data-variant="line"] & {
|
|
132
133
|
height: var(--tabs-line-indicator-size, 2px);
|
|
133
134
|
border-radius: var(--tabs-line-indicator-radius, var(--radius-full));
|
|
134
135
|
background-color: var(--tabs-line-indicator-bg, var(--tabs-tab-color-active, var(--color-foreground)));
|
|
@@ -143,12 +144,13 @@
|
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
&[data-orientation="vertical"] {
|
|
147
|
+
top: var(--top, 0);
|
|
146
148
|
width: calc(100% - (var(--tabs-list-padding-x, var(--tabs-list-padding, .25rem)) * 2));
|
|
147
149
|
height: var(--height, 0);
|
|
148
150
|
left: 50%;
|
|
149
151
|
translate: -50%;
|
|
150
152
|
|
|
151
|
-
.
|
|
153
|
+
.ostTjG_root[data-variant="line"] & {
|
|
152
154
|
width: var(--tabs-line-indicator-size, 2px);
|
|
153
155
|
bottom: auto;
|
|
154
156
|
left: 0;
|
|
@@ -157,7 +159,7 @@
|
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
|
|
160
|
-
.
|
|
162
|
+
.ostTjG_content {
|
|
161
163
|
box-sizing: border-box;
|
|
162
164
|
border: var(--tabs-border-width, var(--border-width-sm)) solid
|
|
163
165
|
var(--tabs-border-color, var(--color-border));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tabs } from "@ark-ui/react/tabs";
|
|
1
|
+
import { Tabs, useTabs } from "@ark-ui/react/tabs";
|
|
2
2
|
|
|
3
3
|
//#region src/components/tabs/Tabs.d.ts
|
|
4
4
|
type TabsVariant = 'default' | 'line';
|
|
@@ -15,6 +15,7 @@ declare const Tabs$1: import("react").ForwardRefExoticComponent<Omit<Tabs.RootPr
|
|
|
15
15
|
Trigger: import("react").ForwardRefExoticComponent<Omit<Tabs.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
Indicator: import("react").ForwardRefExoticComponent<Omit<Tabs.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
Content: import("react").ForwardRefExoticComponent<Omit<Tabs.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
useTabs: (props?: import("@ark-ui/react/tabs").UseTabsProps) => import("@ark-ui/react/tabs").UseTabsReturn;
|
|
18
19
|
};
|
|
19
20
|
//#endregion
|
|
20
|
-
export { Tabs$1 as Tabs };
|
|
21
|
+
export { Tabs$1 as Tabs, useTabs };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Tabs_module_default from "./Tabs.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 { Tabs, useTabs } from "@ark-ui/react/tabs";
|
|
7
7
|
//#region src/components/tabs/Tabs.tsx
|
|
8
8
|
const TabsRoot = forwardRef(function TabsRoot({ className, variant = "default", ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Tabs.Root, {
|
|
@@ -61,7 +61,8 @@ const Tabs$1 = Object.assign(TabsRoot, {
|
|
|
61
61
|
List: TabsList,
|
|
62
62
|
Trigger: TabsTrigger,
|
|
63
63
|
Indicator: TabsIndicator,
|
|
64
|
-
Content: TabsContent
|
|
64
|
+
Content: TabsContent,
|
|
65
|
+
useTabs
|
|
65
66
|
});
|
|
66
67
|
//#endregion
|
|
67
|
-
export { Tabs$1 as Tabs };
|
|
68
|
+
export { Tabs$1 as Tabs, useTabs };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './Tabs.css';
|
|
2
2
|
//#region src/components/tabs/Tabs.module.css
|
|
3
3
|
var Tabs_module_default = {
|
|
4
|
-
"content": "
|
|
5
|
-
"indicator": "
|
|
6
|
-
"list": "
|
|
7
|
-
"root": "
|
|
8
|
-
"trigger": "
|
|
4
|
+
"content": "ostTjG_content",
|
|
5
|
+
"indicator": "ostTjG_indicator",
|
|
6
|
+
"list": "ostTjG_list",
|
|
7
|
+
"root": "ostTjG_root",
|
|
8
|
+
"trigger": "ostTjG_trigger"
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Tabs_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tabs } from "./Tabs.js";
|
|
2
|
-
export { Tabs };
|
|
1
|
+
import { Tabs, useTabs } from "./Tabs.js";
|
|
2
|
+
export { Tabs, useTabs };
|