@moduix/react 2.6.0 → 2.7.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/dist/components/accordion/Accordion.js +13 -13
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +16 -16
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/button/Button_module.css +0 -1
- package/dist/components/card/Card.js +30 -30
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +22 -22
- package/dist/components/chart/Chart.js +19 -19
- package/dist/components/checkbox/Checkbox.js +12 -12
- package/dist/components/clipboard/Clipboard.js +19 -18
- package/dist/components/collapsible/Collapsible.js +11 -11
- package/dist/components/color-picker/ColorPicker.js +47 -47
- package/dist/components/combobox/Combobox.js +31 -31
- package/dist/components/command-palette/CommandPalette.js +48 -48
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +14 -14
- package/dist/components/date-picker/DatePicker.js +51 -51
- package/dist/components/dialog/Dialog.js +20 -20
- package/dist/components/drawer/Drawer.js +30 -30
- package/dist/components/editable/Editable.js +17 -17
- package/dist/components/empty/Empty.js +12 -12
- package/dist/components/field/Field.js +19 -19
- package/dist/components/fieldset/Fieldset.js +10 -10
- package/dist/components/file-upload/FileUpload.js +28 -28
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/floating-panel/FloatingPanel.js +22 -22
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +11 -11
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/image-cropper/ImageCropper.js +14 -14
- package/dist/components/kbd/Kbd.js +4 -4
- package/dist/components/lightbox/Lightbox.js +25 -25
- package/dist/components/listbox/Listbox.js +31 -31
- package/dist/components/marquee/Marquee.js +12 -12
- package/dist/components/menu/Menu.js +41 -41
- package/dist/components/navigation-menu/NavigationMenu.js +24 -24
- package/dist/components/number-input/NumberInput.js +16 -16
- package/dist/components/pagination/Pagination.js +11 -11
- package/dist/components/password-input/PasswordInput.js +13 -13
- package/dist/components/pin-input/PinInput.js +11 -11
- package/dist/components/popover/Popover.js +25 -25
- package/dist/components/progress-circular/ProgressCircular.js +16 -16
- package/dist/components/progress-linear/ProgressLinear.js +14 -14
- package/dist/components/qr-code/QrCode.js +12 -12
- package/dist/components/radio-group/RadioGroup.js +14 -14
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/segment-group/SegmentGroup.js +14 -14
- package/dist/components/select/Select.js +33 -33
- package/dist/components/sidebar/Sidebar.js +52 -44
- package/dist/components/signature-pad/SignaturePad.js +11 -11
- package/dist/components/slider/Slider.js +22 -22
- package/dist/components/split-button/SplitButton.d.ts +6 -6
- package/dist/components/split-button/SplitButton.js +18 -13
- package/dist/components/splitter/Splitter.js +9 -9
- package/dist/components/steps/Steps.js +23 -23
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/switch/Switch.js +9 -9
- package/dist/components/table/Table.js +23 -23
- package/dist/components/tabs/Tabs.js +12 -12
- package/dist/components/tags-input/TagsInput.js +20 -20
- package/dist/components/timer/Timer.js +14 -14
- package/dist/components/toast/Toast.js +8 -8
- package/dist/components/toc/Toc.js +19 -19
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/tooltip/Tooltip.js +11 -11
- package/dist/components/tour/Tour.js +25 -25
- package/dist/components/tree-view/TreeView.js +30 -30
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -7,67 +7,67 @@ import Slider_module from "./Slider.module.js";
|
|
|
7
7
|
const Slider_SliderRoot = /*#__PURE__*/ forwardRef(function({ className, readOnly, ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(Slider.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "slider-root",
|
|
11
10
|
"data-readonly": readOnly ? '' : void 0,
|
|
12
11
|
className: clsx(Slider_module.root, className),
|
|
13
12
|
readOnly: readOnly,
|
|
14
|
-
...props
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "slider-root"
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
const Slider_SliderRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
18
|
return /*#__PURE__*/ jsx(Slider.RootProvider, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
"data-slot": "slider-root-provider",
|
|
21
20
|
className: clsx(Slider_module.root, className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "slider-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Slider_SliderLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Slider.Label, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
"data-slot": "slider-label",
|
|
29
28
|
className: clsx(Slider_module.label, className),
|
|
30
|
-
...props
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "slider-label"
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
const Slider_SliderValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
34
|
return /*#__PURE__*/ jsx(Slider.ValueText, {
|
|
35
35
|
ref: ref,
|
|
36
|
-
"data-slot": "slider-value-text",
|
|
37
36
|
className: clsx(Slider_module.valueText, className),
|
|
38
|
-
...props
|
|
37
|
+
...props,
|
|
38
|
+
"data-slot": "slider-value-text"
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
const Slider_SliderControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
42
|
return /*#__PURE__*/ jsx(Slider.Control, {
|
|
43
43
|
ref: ref,
|
|
44
|
-
"data-slot": "slider-control",
|
|
45
44
|
className: clsx(Slider_module.control, className),
|
|
46
|
-
...props
|
|
45
|
+
...props,
|
|
46
|
+
"data-slot": "slider-control"
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
const Slider_SliderTrack = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
50
|
return /*#__PURE__*/ jsx(Slider.Track, {
|
|
51
51
|
ref: ref,
|
|
52
|
-
"data-slot": "slider-track",
|
|
53
52
|
className: clsx(Slider_module.track, className),
|
|
54
|
-
...props
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "slider-track"
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
const Slider_SliderRange = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
58
58
|
return /*#__PURE__*/ jsx(Slider.Range, {
|
|
59
59
|
ref: ref,
|
|
60
|
-
"data-slot": "slider-range",
|
|
61
60
|
className: clsx(Slider_module.range, className),
|
|
62
|
-
...props
|
|
61
|
+
...props,
|
|
62
|
+
"data-slot": "slider-range"
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
const Slider_SliderThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
66
66
|
return /*#__PURE__*/ jsx(Slider.Thumb, {
|
|
67
67
|
ref: ref,
|
|
68
|
-
"data-slot": "slider-thumb",
|
|
69
68
|
className: clsx(Slider_module.thumb, className),
|
|
70
|
-
...props
|
|
69
|
+
...props,
|
|
70
|
+
"data-slot": "slider-thumb"
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
function SliderThumbs({ className }) {
|
|
@@ -81,25 +81,25 @@ function SliderThumbs({ className }) {
|
|
|
81
81
|
const Slider_SliderMarkerGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
82
82
|
return /*#__PURE__*/ jsx(Slider.MarkerGroup, {
|
|
83
83
|
ref: ref,
|
|
84
|
-
"data-slot": "slider-marker-group",
|
|
85
84
|
className: clsx(Slider_module.markerGroup, className),
|
|
86
|
-
...props
|
|
85
|
+
...props,
|
|
86
|
+
"data-slot": "slider-marker-group"
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
const Slider_SliderMarker = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
90
90
|
return /*#__PURE__*/ jsx(Slider.Marker, {
|
|
91
91
|
ref: ref,
|
|
92
|
-
"data-slot": "slider-marker",
|
|
93
92
|
className: clsx(Slider_module.marker, className),
|
|
94
|
-
...props
|
|
93
|
+
...props,
|
|
94
|
+
"data-slot": "slider-marker"
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
const Slider_SliderDraggingIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
98
98
|
return /*#__PURE__*/ jsx(Slider.DraggingIndicator, {
|
|
99
99
|
ref: ref,
|
|
100
|
-
"data-slot": "slider-dragging-indicator",
|
|
101
100
|
className: clsx(Slider_module.draggingIndicator, className),
|
|
102
|
-
...props
|
|
101
|
+
...props,
|
|
102
|
+
"data-slot": "slider-dragging-indicator"
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
const Slider_Slider = Object.assign(Slider_SliderRoot, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Menu as MenuPrimitive } from '@ark-ui/react/menu';
|
|
1
2
|
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
3
|
import { Button } from '../button/index.js';
|
|
3
|
-
import { Menu } from '../menu/index.js';
|
|
4
4
|
type ButtonProps = ComponentProps<typeof Button>;
|
|
5
5
|
type SplitButtonVariant = Exclude<NonNullable<ButtonProps['variant']>, 'link'>;
|
|
6
6
|
type SplitButtonSize = Exclude<NonNullable<ButtonProps['size']>, 'icon-sm' | 'icon-md' | 'icon-lg'>;
|
|
@@ -8,11 +8,11 @@ type SplitButtonActionProps = Omit<ButtonProps, 'size' | 'variant'> & {
|
|
|
8
8
|
size?: SplitButtonSize;
|
|
9
9
|
variant?: SplitButtonVariant;
|
|
10
10
|
};
|
|
11
|
-
type SplitButtonTriggerProps = Omit<ComponentProps<typeof
|
|
11
|
+
type SplitButtonTriggerProps = Omit<ComponentProps<typeof MenuPrimitive.Trigger>, 'asChild'> & {
|
|
12
12
|
size?: SplitButtonSize;
|
|
13
13
|
variant?: SplitButtonVariant;
|
|
14
14
|
};
|
|
15
|
-
declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<
|
|
15
|
+
declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.RootProps & import("../../internal/overlayPortal.js").OverlayPortalProps, "children"> & {
|
|
16
16
|
'aria-label'?: string;
|
|
17
17
|
'aria-labelledby'?: string;
|
|
18
18
|
children?: ReactNode;
|
|
@@ -20,7 +20,7 @@ declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<import
|
|
|
20
20
|
size?: SplitButtonSize;
|
|
21
21
|
variant?: SplitButtonVariant;
|
|
22
22
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
23
|
-
Root: import("react").ForwardRefExoticComponent<Omit<
|
|
23
|
+
Root: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.RootProps & import("../../internal/overlayPortal.js").OverlayPortalProps, "children"> & {
|
|
24
24
|
'aria-label'?: string;
|
|
25
25
|
'aria-labelledby'?: string;
|
|
26
26
|
children?: ReactNode;
|
|
@@ -30,7 +30,7 @@ declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<import
|
|
|
30
30
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
31
|
Action: import("react").ForwardRefExoticComponent<Omit<SplitButtonActionProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
32
32
|
Trigger: import("react").ForwardRefExoticComponent<Omit<SplitButtonTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
33
|
-
Positioner: import("react").ForwardRefExoticComponent<Omit<
|
|
34
|
-
Content: import("react").ForwardRefExoticComponent<Omit<
|
|
33
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
+
Content: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
35
|
};
|
|
36
36
|
export { SplitButton };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Menu } from "@ark-ui/react/menu";
|
|
3
4
|
import { clsx } from "clsx";
|
|
4
5
|
import { createContext, forwardRef, useContext } from "react";
|
|
5
6
|
import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
+
import { OverlayPortal } from "../../internal/overlayPortal.js";
|
|
6
8
|
import { Button } from "../button/index.js";
|
|
7
|
-
import { Menu } from "../menu/index.js";
|
|
9
|
+
import { Menu as index_js_Menu } from "../menu/index.js";
|
|
10
|
+
import Menu_module from "../menu/Menu.module.js";
|
|
8
11
|
import SplitButton_module from "./SplitButton.module.js";
|
|
9
12
|
const SplitButtonContext = /*#__PURE__*/ createContext(null);
|
|
10
13
|
function useSplitButtonContext(componentName) {
|
|
@@ -18,7 +21,7 @@ const SplitButton_SplitButtonRoot = /*#__PURE__*/ forwardRef(function({ children
|
|
|
18
21
|
size,
|
|
19
22
|
variant
|
|
20
23
|
},
|
|
21
|
-
children: /*#__PURE__*/ jsx(
|
|
24
|
+
children: /*#__PURE__*/ jsx(index_js_Menu.Root, {
|
|
22
25
|
positioning: {
|
|
23
26
|
placement: 'bottom-end',
|
|
24
27
|
gutter: 4,
|
|
@@ -43,11 +46,11 @@ const SplitButton_SplitButtonAction = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
43
46
|
const context = useSplitButtonContext('SplitButton.Action');
|
|
44
47
|
return /*#__PURE__*/ jsx(Button, {
|
|
45
48
|
ref: ref,
|
|
46
|
-
"data-slot": "split-button-action",
|
|
47
49
|
size: size ?? context.size,
|
|
48
50
|
variant: variant ?? context.variant,
|
|
49
51
|
className: clsx(SplitButton_module.action, className),
|
|
50
|
-
...props
|
|
52
|
+
...props,
|
|
53
|
+
"data-slot": "split-button-action"
|
|
51
54
|
});
|
|
52
55
|
});
|
|
53
56
|
const SplitButton_SplitButtonTrigger = /*#__PURE__*/ forwardRef(function({ children, className, size, variant, 'aria-label': ariaLabel, ...props }, ref) {
|
|
@@ -56,10 +59,10 @@ const SplitButton_SplitButtonTrigger = /*#__PURE__*/ forwardRef(function({ child
|
|
|
56
59
|
return /*#__PURE__*/ jsx(Menu.Trigger, {
|
|
57
60
|
ref: ref,
|
|
58
61
|
asChild: true,
|
|
59
|
-
"data-slot": "split-button-trigger",
|
|
60
62
|
"aria-label": isIconOnly ? ariaLabel ?? 'More actions' : ariaLabel,
|
|
61
63
|
className: clsx(SplitButton_module.trigger, className),
|
|
62
64
|
...props,
|
|
65
|
+
"data-slot": "split-button-trigger",
|
|
63
66
|
children: /*#__PURE__*/ jsx(Button, {
|
|
64
67
|
size: size ?? context.size,
|
|
65
68
|
variant: variant ?? context.variant,
|
|
@@ -68,21 +71,23 @@ const SplitButton_SplitButtonTrigger = /*#__PURE__*/ forwardRef(function({ child
|
|
|
68
71
|
});
|
|
69
72
|
});
|
|
70
73
|
const SplitButton_SplitButtonPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
71
|
-
return /*#__PURE__*/ jsx(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
75
|
+
children: /*#__PURE__*/ jsx(Menu.Positioner, {
|
|
76
|
+
ref: ref,
|
|
77
|
+
className: clsx(Menu_module.positioner, className),
|
|
78
|
+
...props,
|
|
79
|
+
"data-slot": "split-button-positioner"
|
|
80
|
+
})
|
|
76
81
|
});
|
|
77
82
|
});
|
|
78
83
|
const SplitButton_SplitButtonContent = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
|
|
79
84
|
return /*#__PURE__*/ jsx(Menu.Content, {
|
|
80
85
|
ref: ref,
|
|
81
86
|
asChild: asChild,
|
|
82
|
-
|
|
83
|
-
className: className,
|
|
87
|
+
className: clsx(Menu_module.content, className),
|
|
84
88
|
...props,
|
|
85
|
-
|
|
89
|
+
"data-slot": "split-button-content",
|
|
90
|
+
children: asChild ? children : /*#__PURE__*/ jsx(index_js_Menu.Viewport, {
|
|
86
91
|
children: children
|
|
87
92
|
})
|
|
88
93
|
});
|
|
@@ -10,50 +10,50 @@ const rootStyle = {
|
|
|
10
10
|
const Splitter_SplitterRoot = /*#__PURE__*/ forwardRef(function({ className, style, ...props }, ref) {
|
|
11
11
|
return /*#__PURE__*/ jsx(Splitter.Root, {
|
|
12
12
|
ref: ref,
|
|
13
|
-
"data-slot": "splitter-root",
|
|
14
13
|
className: clsx(Splitter_module.root, className),
|
|
15
14
|
style: {
|
|
16
15
|
...rootStyle,
|
|
17
16
|
...style
|
|
18
17
|
},
|
|
19
|
-
...props
|
|
18
|
+
...props,
|
|
19
|
+
"data-slot": "splitter-root"
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const Splitter_SplitterRootProvider = /*#__PURE__*/ forwardRef(function({ className, style, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(Splitter.RootProvider, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
"data-slot": "splitter-root-provider",
|
|
26
25
|
className: clsx(Splitter_module.root, className),
|
|
27
26
|
style: {
|
|
28
27
|
...rootStyle,
|
|
29
28
|
...style
|
|
30
29
|
},
|
|
31
|
-
...props
|
|
30
|
+
...props,
|
|
31
|
+
"data-slot": "splitter-root-provider"
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
const Splitter_SplitterPanel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
35
35
|
return /*#__PURE__*/ jsx(Splitter.Panel, {
|
|
36
36
|
ref: ref,
|
|
37
|
-
"data-slot": "splitter-panel",
|
|
38
37
|
className: clsx(Splitter_module.panel, className),
|
|
39
|
-
...props
|
|
38
|
+
...props,
|
|
39
|
+
"data-slot": "splitter-panel"
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
const Splitter_SplitterResizeTriggerIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
43
|
return /*#__PURE__*/ jsx(Splitter.ResizeTriggerIndicator, {
|
|
44
44
|
ref: ref,
|
|
45
|
-
"data-slot": "splitter-resize-trigger-indicator",
|
|
46
45
|
className: clsx(Splitter_module.resizeTriggerIndicator, className),
|
|
47
|
-
...props
|
|
46
|
+
...props,
|
|
47
|
+
"data-slot": "splitter-resize-trigger-indicator"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const Splitter_SplitterResizeTrigger = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
|
|
51
51
|
return /*#__PURE__*/ jsx(Splitter.ResizeTrigger, {
|
|
52
52
|
ref: ref,
|
|
53
53
|
asChild: asChild,
|
|
54
|
-
"data-slot": "splitter-resize-trigger",
|
|
55
54
|
className: clsx(Splitter_module.resizeTrigger, className),
|
|
56
55
|
...props,
|
|
56
|
+
"data-slot": "splitter-resize-trigger",
|
|
57
57
|
children: void 0 !== children || asChild ? children : /*#__PURE__*/ jsx(Splitter_SplitterResizeTriggerIndicator, {})
|
|
58
58
|
});
|
|
59
59
|
});
|
|
@@ -8,99 +8,99 @@ import Steps_module from "./Steps.module.js";
|
|
|
8
8
|
const Steps_StepsRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
9
|
return /*#__PURE__*/ jsx(Steps.Root, {
|
|
10
10
|
ref: ref,
|
|
11
|
-
"data-slot": "steps-root",
|
|
12
11
|
className: clsx(Steps_module.root, className),
|
|
13
|
-
...props
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "steps-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const Steps_StepsRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(Steps.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-slot": "steps-root-provider",
|
|
20
19
|
className: clsx(Steps_module.root, className),
|
|
21
|
-
...props
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "steps-root-provider"
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
const Steps_StepsList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
25
25
|
return /*#__PURE__*/ jsx(Steps.List, {
|
|
26
26
|
ref: ref,
|
|
27
|
-
"data-slot": "steps-list",
|
|
28
27
|
className: clsx(Steps_module.list, className),
|
|
29
|
-
...props
|
|
28
|
+
...props,
|
|
29
|
+
"data-slot": "steps-list"
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
const Steps_StepsItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
33
33
|
return /*#__PURE__*/ jsx(Steps.Item, {
|
|
34
34
|
ref: ref,
|
|
35
|
-
"data-slot": "steps-item",
|
|
36
35
|
className: clsx(Steps_module.item, className),
|
|
37
|
-
...props
|
|
36
|
+
...props,
|
|
37
|
+
"data-slot": "steps-item"
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
const Steps_StepsTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
41
|
return /*#__PURE__*/ jsx(Steps.Trigger, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
"data-slot": "steps-trigger",
|
|
44
43
|
className: clsx(Steps_module.trigger, className),
|
|
45
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "steps-trigger"
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
const Steps_StepsIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
49
49
|
const item = useStepsItemContext();
|
|
50
50
|
return /*#__PURE__*/ jsx(Steps.Indicator, {
|
|
51
51
|
ref: ref,
|
|
52
|
-
"data-slot": "steps-indicator",
|
|
53
52
|
className: clsx(Steps_module.indicator, className),
|
|
54
53
|
...props,
|
|
54
|
+
"data-slot": "steps-indicator",
|
|
55
55
|
children: children ?? (item.completed ? /*#__PURE__*/ jsx(CheckIcon, {}) : item.index + 1)
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
const Steps_StepsSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
59
59
|
return /*#__PURE__*/ jsx(Steps.Separator, {
|
|
60
60
|
ref: ref,
|
|
61
|
-
"data-slot": "steps-separator",
|
|
62
61
|
className: clsx(Steps_module.separator, className),
|
|
63
|
-
...props
|
|
62
|
+
...props,
|
|
63
|
+
"data-slot": "steps-separator"
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
const Steps_StepsContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
67
67
|
return /*#__PURE__*/ jsx(Steps.Content, {
|
|
68
68
|
ref: ref,
|
|
69
|
-
"data-slot": "steps-content",
|
|
70
69
|
className: clsx(Steps_module.content, className),
|
|
71
|
-
...props
|
|
70
|
+
...props,
|
|
71
|
+
"data-slot": "steps-content"
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
const Steps_StepsCompletedContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
75
75
|
return /*#__PURE__*/ jsx(Steps.CompletedContent, {
|
|
76
76
|
ref: ref,
|
|
77
|
-
"data-slot": "steps-completed-content",
|
|
78
77
|
className: clsx(Steps_module.completedContent, className),
|
|
79
|
-
...props
|
|
78
|
+
...props,
|
|
79
|
+
"data-slot": "steps-completed-content"
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
const Steps_StepsPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
83
83
|
return /*#__PURE__*/ jsx(Steps.PrevTrigger, {
|
|
84
84
|
ref: ref,
|
|
85
|
-
"data-slot": "steps-prev-trigger",
|
|
86
85
|
className: clsx(Steps_module.prevTrigger, className),
|
|
87
|
-
...props
|
|
86
|
+
...props,
|
|
87
|
+
"data-slot": "steps-prev-trigger"
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
const Steps_StepsNextTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
91
91
|
return /*#__PURE__*/ jsx(Steps.NextTrigger, {
|
|
92
92
|
ref: ref,
|
|
93
|
-
"data-slot": "steps-next-trigger",
|
|
94
93
|
className: clsx(Steps_module.nextTrigger, className),
|
|
95
|
-
...props
|
|
94
|
+
...props,
|
|
95
|
+
"data-slot": "steps-next-trigger"
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
const Steps_StepsProgress = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
99
99
|
return /*#__PURE__*/ jsx(Steps.Progress, {
|
|
100
100
|
ref: ref,
|
|
101
|
-
"data-slot": "steps-progress",
|
|
102
101
|
className: clsx(Steps_module.progress, className),
|
|
103
|
-
...props
|
|
102
|
+
...props,
|
|
103
|
+
"data-slot": "steps-progress"
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
const Steps_Steps = Object.assign(Steps_StepsRoot, {
|
|
@@ -7,27 +7,27 @@ import Swap_module from "./Swap.module.js";
|
|
|
7
7
|
const Swap_SwapRoot = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(Swap.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "swap-root",
|
|
11
10
|
"data-animation": animation,
|
|
12
11
|
className: clsx(Swap_module.root, className),
|
|
13
|
-
...props
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "swap-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const Swap_SwapRootProvider = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(Swap.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-slot": "swap-root-provider",
|
|
20
19
|
"data-animation": animation,
|
|
21
20
|
className: clsx(Swap_module.root, className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "swap-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Swap_SwapIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Swap.Indicator, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
"data-slot": "swap-indicator",
|
|
29
28
|
className: clsx(Swap_module.indicator, className),
|
|
30
|
-
...props
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "swap-indicator"
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
const Swap_Swap = Object.assign(Swap_SwapRoot, {
|
|
@@ -7,44 +7,44 @@ import Switch_module from "./Switch.module.js";
|
|
|
7
7
|
const Switch_SwitchRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(Switch.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "switch-root",
|
|
11
10
|
"data-size": size,
|
|
12
11
|
className: clsx(Switch_module.root, className),
|
|
13
|
-
...props
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "switch-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const Switch_SwitchRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(Switch.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-slot": "switch-root-provider",
|
|
20
19
|
"data-size": size,
|
|
21
20
|
className: clsx(Switch_module.root, className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "switch-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Switch_SwitchControl = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Switch.Control, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
"data-slot": "switch-control",
|
|
29
28
|
className: clsx(Switch_module.control, className),
|
|
30
29
|
...props,
|
|
30
|
+
"data-slot": "switch-control",
|
|
31
31
|
children: children ?? /*#__PURE__*/ jsx(Switch_SwitchThumb, {})
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
const Switch_SwitchThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
35
35
|
return /*#__PURE__*/ jsx(Switch.Thumb, {
|
|
36
36
|
ref: ref,
|
|
37
|
-
"data-slot": "switch-thumb",
|
|
38
37
|
className: clsx(Switch_module.thumb, className),
|
|
39
|
-
...props
|
|
38
|
+
...props,
|
|
39
|
+
"data-slot": "switch-thumb"
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
const Switch_SwitchLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
43
|
return /*#__PURE__*/ jsx(Switch.Label, {
|
|
44
44
|
ref: ref,
|
|
45
|
-
"data-slot": "switch-label",
|
|
46
45
|
className: clsx(Switch_module.label, className),
|
|
47
|
-
...props
|
|
46
|
+
...props,
|
|
47
|
+
"data-slot": "switch-label"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const Switch_Switch = Object.assign(Switch_SwitchRoot, {
|
|
@@ -9,7 +9,6 @@ const Table_TableRoot = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
9
9
|
asChild: asChild,
|
|
10
10
|
"data-scope": "table",
|
|
11
11
|
"data-part": "root",
|
|
12
|
-
"data-slot": "table-root",
|
|
13
12
|
"data-interactive": interactive || void 0,
|
|
14
13
|
"data-show-column-border": showColumnBorder || void 0,
|
|
15
14
|
"data-size": size,
|
|
@@ -17,7 +16,8 @@ const Table_TableRoot = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
17
16
|
"data-striped": striped || void 0,
|
|
18
17
|
"data-variant": variant,
|
|
19
18
|
className: clsx(Table_module.root, className),
|
|
20
|
-
...props
|
|
19
|
+
...props,
|
|
20
|
+
"data-slot": "table-root"
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
const Table_TableScrollArea = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -26,9 +26,9 @@ const Table_TableScrollArea = /*#__PURE__*/ forwardRef(function({ asChild, class
|
|
|
26
26
|
asChild: asChild,
|
|
27
27
|
"data-scope": "table",
|
|
28
28
|
"data-part": "scroll-area",
|
|
29
|
-
"data-slot": "table-scroll-area",
|
|
30
29
|
className: clsx(Table_module.scrollArea, className),
|
|
31
|
-
...props
|
|
30
|
+
...props,
|
|
31
|
+
"data-slot": "table-scroll-area"
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
const Table_TableCaption = /*#__PURE__*/ forwardRef(function({ asChild, className, side = 'bottom', ...props }, ref) {
|
|
@@ -38,9 +38,9 @@ const Table_TableCaption = /*#__PURE__*/ forwardRef(function({ asChild, classNam
|
|
|
38
38
|
"data-scope": "table",
|
|
39
39
|
"data-part": "caption",
|
|
40
40
|
"data-side": side,
|
|
41
|
-
"data-slot": "table-caption",
|
|
42
41
|
className: clsx(Table_module.caption, className),
|
|
43
|
-
...props
|
|
42
|
+
...props,
|
|
43
|
+
"data-slot": "table-caption"
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const Table_TableColumnGroup = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -49,9 +49,9 @@ const Table_TableColumnGroup = /*#__PURE__*/ forwardRef(function({ asChild, clas
|
|
|
49
49
|
asChild: asChild,
|
|
50
50
|
"data-scope": "table",
|
|
51
51
|
"data-part": "column-group",
|
|
52
|
-
"data-slot": "table-column-group",
|
|
53
52
|
className: className,
|
|
54
|
-
...props
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "table-column-group"
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
const Table_TableColumn = /*#__PURE__*/ forwardRef(function({ asChild, className, htmlWidth, width, ...props }, ref) {
|
|
@@ -60,10 +60,10 @@ const Table_TableColumn = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
60
60
|
asChild: asChild,
|
|
61
61
|
"data-scope": "table",
|
|
62
62
|
"data-part": "column",
|
|
63
|
-
"data-slot": "table-column",
|
|
64
63
|
width: htmlWidth ?? width,
|
|
65
64
|
className: className,
|
|
66
|
-
...props
|
|
65
|
+
...props,
|
|
66
|
+
"data-slot": "table-column"
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const Table_TableHeader = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -72,9 +72,9 @@ const Table_TableHeader = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
72
72
|
asChild: asChild,
|
|
73
73
|
"data-scope": "table",
|
|
74
74
|
"data-part": "header",
|
|
75
|
-
"data-slot": "table-header",
|
|
76
75
|
className: clsx(Table_module.header, className),
|
|
77
|
-
...props
|
|
76
|
+
...props,
|
|
77
|
+
"data-slot": "table-header"
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
const Table_TableBody = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -83,9 +83,9 @@ const Table_TableBody = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
83
83
|
asChild: asChild,
|
|
84
84
|
"data-scope": "table",
|
|
85
85
|
"data-part": "body",
|
|
86
|
-
"data-slot": "table-body",
|
|
87
86
|
className: clsx(Table_module.body, className),
|
|
88
|
-
...props
|
|
87
|
+
...props,
|
|
88
|
+
"data-slot": "table-body"
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
const Table_TableFooter = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -94,9 +94,9 @@ const Table_TableFooter = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
94
94
|
asChild: asChild,
|
|
95
95
|
"data-scope": "table",
|
|
96
96
|
"data-part": "footer",
|
|
97
|
-
"data-slot": "table-footer",
|
|
98
97
|
className: clsx(Table_module.footer, className),
|
|
99
|
-
...props
|
|
98
|
+
...props,
|
|
99
|
+
"data-slot": "table-footer"
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
const Table_TableRow = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -105,9 +105,9 @@ const Table_TableRow = /*#__PURE__*/ forwardRef(function({ asChild, className, .
|
|
|
105
105
|
asChild: asChild,
|
|
106
106
|
"data-scope": "table",
|
|
107
107
|
"data-part": "row",
|
|
108
|
-
"data-slot": "table-row",
|
|
109
108
|
className: clsx(Table_module.row, className),
|
|
110
|
-
...props
|
|
109
|
+
...props,
|
|
110
|
+
"data-slot": "table-row"
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
const Table_TableColumnHeader = /*#__PURE__*/ forwardRef(function({ asChild, className, numeric = false, ...props }, ref) {
|
|
@@ -117,9 +117,9 @@ const Table_TableColumnHeader = /*#__PURE__*/ forwardRef(function({ asChild, cla
|
|
|
117
117
|
"data-scope": "table",
|
|
118
118
|
"data-part": "column-header",
|
|
119
119
|
"data-numeric": numeric || void 0,
|
|
120
|
-
"data-slot": "table-column-header",
|
|
121
120
|
className: clsx(Table_module.columnHeader, numeric && Table_module.numeric, className),
|
|
122
|
-
...props
|
|
121
|
+
...props,
|
|
122
|
+
"data-slot": "table-column-header"
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
const Table_TableCell = /*#__PURE__*/ forwardRef(function({ asChild, className, numeric = false, ...props }, ref) {
|
|
@@ -129,9 +129,9 @@ const Table_TableCell = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
129
129
|
"data-scope": "table",
|
|
130
130
|
"data-part": "cell",
|
|
131
131
|
"data-numeric": numeric || void 0,
|
|
132
|
-
"data-slot": "table-cell",
|
|
133
132
|
className: clsx(Table_module.cell, numeric && Table_module.numeric, className),
|
|
134
|
-
...props
|
|
133
|
+
...props,
|
|
134
|
+
"data-slot": "table-cell"
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
137
|
const Table_TableEmpty = /*#__PURE__*/ forwardRef(function({ asChild, children = 'No results.', className, colSpan, ...props }, ref) {
|
|
@@ -146,10 +146,10 @@ const Table_TableEmpty = /*#__PURE__*/ forwardRef(function({ asChild, children =
|
|
|
146
146
|
asChild: asChild,
|
|
147
147
|
"data-scope": "table",
|
|
148
148
|
"data-part": "empty",
|
|
149
|
-
"data-slot": "table-empty",
|
|
150
149
|
colSpan: colSpan,
|
|
151
150
|
className: clsx(Table_module.cell, Table_module.empty, className),
|
|
152
151
|
...props,
|
|
152
|
+
"data-slot": "table-empty",
|
|
153
153
|
children: children
|
|
154
154
|
})
|
|
155
155
|
});
|