@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
|
@@ -9,50 +9,50 @@ import Accordion_module from "./Accordion.module.js";
|
|
|
9
9
|
const Accordion_AccordionRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
10
|
return /*#__PURE__*/ jsx(Accordion.Root, {
|
|
11
11
|
ref: ref,
|
|
12
|
-
"data-slot": "accordion-root",
|
|
13
12
|
className: clsx(Accordion_module.root, className),
|
|
14
|
-
...props
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "accordion-root"
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
const Accordion_AccordionRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
18
|
return /*#__PURE__*/ jsx(Accordion.RootProvider, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
"data-slot": "accordion-root-provider",
|
|
21
20
|
className: clsx(Accordion_module.root, className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "accordion-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Accordion_AccordionItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Accordion.Item, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
"data-slot": "accordion-item",
|
|
29
28
|
className: clsx(Accordion_module.item, className),
|
|
30
|
-
...props
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "accordion-item"
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
const Accordion_AccordionItemTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
34
|
return /*#__PURE__*/ jsx(Accordion.ItemTrigger, {
|
|
35
35
|
ref: ref,
|
|
36
|
-
"data-slot": "accordion-item-trigger",
|
|
37
36
|
className: clsx(Accordion_module.itemTrigger, className),
|
|
38
|
-
...props
|
|
37
|
+
...props,
|
|
38
|
+
"data-slot": "accordion-item-trigger"
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
const Accordion_AccordionItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
42
42
|
return /*#__PURE__*/ jsx(Accordion.ItemIndicator, {
|
|
43
43
|
ref: ref,
|
|
44
|
-
"data-slot": "accordion-item-indicator",
|
|
45
44
|
className: clsx(Accordion_module.itemIndicator, className),
|
|
46
45
|
...props,
|
|
46
|
+
"data-slot": "accordion-item-indicator",
|
|
47
47
|
children: children ?? /*#__PURE__*/ jsx(PlusIcon, {})
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const Accordion_AccordionItemContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
51
51
|
return /*#__PURE__*/ jsx(Accordion.ItemContent, {
|
|
52
52
|
ref: ref,
|
|
53
|
-
"data-slot": "accordion-item-content",
|
|
54
53
|
className: clsx(Accordion_module.itemContent, className),
|
|
55
|
-
...props
|
|
54
|
+
...props,
|
|
55
|
+
"data-slot": "accordion-item-content"
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
const Accordion_AccordionItemBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -60,9 +60,9 @@ const Accordion_AccordionItemBody = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
60
60
|
ref: ref,
|
|
61
61
|
"data-scope": "accordion",
|
|
62
62
|
"data-part": "item-body",
|
|
63
|
-
"data-slot": "accordion-item-body",
|
|
64
63
|
className: clsx(Accordion_module.itemBody, className),
|
|
65
|
-
...props
|
|
64
|
+
...props,
|
|
65
|
+
"data-slot": "accordion-item-body"
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
const Accordion_Accordion = Object.assign(Accordion_AccordionRoot, {
|
|
@@ -6,13 +6,13 @@ import Alert_module from "./Alert.module.js";
|
|
|
6
6
|
const Alert_AlertRoot = /*#__PURE__*/ forwardRef(function({ children, className, role, status = 'info', ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
role: role
|
|
9
|
+
role: role,
|
|
10
10
|
"data-scope": "alert",
|
|
11
11
|
"data-part": "root",
|
|
12
|
-
"data-slot": "alert-root",
|
|
13
12
|
"data-status": status,
|
|
14
13
|
className: clsx(Alert_module.root, className),
|
|
15
14
|
...props,
|
|
15
|
+
"data-slot": "alert-root",
|
|
16
16
|
children: children
|
|
17
17
|
});
|
|
18
18
|
});
|
|
@@ -21,10 +21,10 @@ const Alert_AlertIndicator = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
21
21
|
ref: ref,
|
|
22
22
|
"data-scope": "alert",
|
|
23
23
|
"data-part": "indicator",
|
|
24
|
-
"data-slot": "alert-indicator",
|
|
25
24
|
"aria-hidden": "true",
|
|
26
25
|
className: clsx(Alert_module.indicator, className),
|
|
27
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
"data-slot": "alert-indicator"
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
const Alert_AlertContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -32,9 +32,9 @@ const Alert_AlertContent = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
32
32
|
ref: ref,
|
|
33
33
|
"data-scope": "alert",
|
|
34
34
|
"data-part": "content",
|
|
35
|
-
"data-slot": "alert-content",
|
|
36
35
|
className: clsx(Alert_module.content, className),
|
|
37
|
-
...props
|
|
36
|
+
...props,
|
|
37
|
+
"data-slot": "alert-content"
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
const Alert_AlertTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -42,9 +42,9 @@ const Alert_AlertTitle = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
42
42
|
ref: ref,
|
|
43
43
|
"data-scope": "alert",
|
|
44
44
|
"data-part": "title",
|
|
45
|
-
"data-slot": "alert-title",
|
|
46
45
|
className: clsx(Alert_module.title, className),
|
|
47
|
-
...props
|
|
46
|
+
...props,
|
|
47
|
+
"data-slot": "alert-title"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const Alert_AlertDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -52,9 +52,9 @@ const Alert_AlertDescription = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
52
52
|
ref: ref,
|
|
53
53
|
"data-scope": "alert",
|
|
54
54
|
"data-part": "description",
|
|
55
|
-
"data-slot": "alert-description",
|
|
56
55
|
className: clsx(Alert_module.description, className),
|
|
57
|
-
...props
|
|
56
|
+
...props,
|
|
57
|
+
"data-slot": "alert-description"
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
const Alert_AlertActions = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -62,9 +62,9 @@ const Alert_AlertActions = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
62
62
|
ref: ref,
|
|
63
63
|
"data-scope": "alert",
|
|
64
64
|
"data-part": "actions",
|
|
65
|
-
"data-slot": "alert-actions",
|
|
66
65
|
className: clsx(Alert_module.actions, className),
|
|
67
|
-
...props
|
|
66
|
+
...props,
|
|
67
|
+
"data-slot": "alert-actions"
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
const Alert = Object.assign(Alert_AlertRoot, {
|
|
@@ -7,58 +7,58 @@ import AngleSlider_module from "./AngleSlider.module.js";
|
|
|
7
7
|
const AngleSlider_AngleSliderRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(AngleSlider.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "angle-slider-root",
|
|
11
10
|
className: clsx(AngleSlider_module.root, className),
|
|
12
|
-
...props
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "angle-slider-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const AngleSlider_AngleSliderLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(AngleSlider.Label, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-slot": "angle-slider-label",
|
|
19
18
|
className: clsx(AngleSlider_module.label, className),
|
|
20
|
-
...props
|
|
19
|
+
...props,
|
|
20
|
+
"data-slot": "angle-slider-label"
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
const AngleSlider_AngleSliderRootProvider = /*#__PURE__*/ forwardRef(function({ className, value, ...props }, ref) {
|
|
24
24
|
return /*#__PURE__*/ jsx(AngleSlider.RootProvider, {
|
|
25
25
|
ref: ref,
|
|
26
|
-
"data-slot": "angle-slider-root-provider",
|
|
27
26
|
className: clsx(AngleSlider_module.root, className),
|
|
28
27
|
value: value,
|
|
29
|
-
...props
|
|
28
|
+
...props,
|
|
29
|
+
"data-slot": "angle-slider-root-provider"
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
const AngleSlider_AngleSliderControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
33
33
|
return /*#__PURE__*/ jsx(AngleSlider.Control, {
|
|
34
34
|
ref: ref,
|
|
35
|
-
"data-slot": "angle-slider-control",
|
|
36
35
|
className: clsx(AngleSlider_module.control, className),
|
|
37
|
-
...props
|
|
36
|
+
...props,
|
|
37
|
+
"data-slot": "angle-slider-control"
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
const AngleSlider_AngleSliderThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
41
|
return /*#__PURE__*/ jsx(AngleSlider.Thumb, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
"data-slot": "angle-slider-thumb",
|
|
44
43
|
className: clsx(AngleSlider_module.thumb, className),
|
|
45
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "angle-slider-thumb"
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
const AngleSlider_AngleSliderMarkerGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
49
|
return /*#__PURE__*/ jsx(AngleSlider.MarkerGroup, {
|
|
50
50
|
ref: ref,
|
|
51
|
-
"data-slot": "angle-slider-marker-group",
|
|
52
51
|
className: clsx(AngleSlider_module.markerGroup, className),
|
|
53
|
-
...props
|
|
52
|
+
...props,
|
|
53
|
+
"data-slot": "angle-slider-marker-group"
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
const AngleSlider_AngleSliderMarker = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
57
57
|
return /*#__PURE__*/ jsx(AngleSlider.Marker, {
|
|
58
58
|
ref: ref,
|
|
59
|
-
"data-slot": "angle-slider-marker",
|
|
60
59
|
className: clsx(AngleSlider_module.marker, className),
|
|
61
|
-
...props
|
|
60
|
+
...props,
|
|
61
|
+
"data-slot": "angle-slider-marker"
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
function AngleSliderMarks({ values, ...props }) {
|
|
@@ -81,9 +81,9 @@ function AngleSliderDial({ children, ...props }) {
|
|
|
81
81
|
const AngleSlider_AngleSliderValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
82
82
|
return /*#__PURE__*/ jsx(AngleSlider.ValueText, {
|
|
83
83
|
ref: ref,
|
|
84
|
-
"data-slot": "angle-slider-value-text",
|
|
85
84
|
className: clsx(AngleSlider_module.valueText, className),
|
|
86
|
-
...props
|
|
85
|
+
...props,
|
|
86
|
+
"data-slot": "angle-slider-value-text"
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
const AngleSlider_AngleSlider = Object.assign(AngleSlider_AngleSliderRoot, {
|
|
@@ -6,35 +6,35 @@ import Avatar_module from "./Avatar.module.js";
|
|
|
6
6
|
const Avatar_AvatarRoot = /*#__PURE__*/ forwardRef(function({ className, size, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Avatar.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-slot": "avatar-root",
|
|
10
9
|
"data-size": size,
|
|
11
10
|
className: clsx(Avatar_module.root, className),
|
|
12
|
-
...props
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "avatar-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const Avatar_AvatarRootProvider = /*#__PURE__*/ forwardRef(function({ className, size, ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(Avatar.RootProvider, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-slot": "avatar-root-provider",
|
|
19
18
|
"data-size": size,
|
|
20
19
|
className: clsx(Avatar_module.root, className),
|
|
21
|
-
...props
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "avatar-root-provider"
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
const Avatar_AvatarImage = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
25
25
|
return /*#__PURE__*/ jsx(Avatar.Image, {
|
|
26
26
|
ref: ref,
|
|
27
|
-
"data-slot": "avatar-image",
|
|
28
27
|
className: clsx(Avatar_module.image, className),
|
|
29
|
-
...props
|
|
28
|
+
...props,
|
|
29
|
+
"data-slot": "avatar-image"
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
const Avatar_AvatarFallback = /*#__PURE__*/ forwardRef(function({ children, className, ...props }, ref) {
|
|
33
33
|
return /*#__PURE__*/ jsx(Avatar.Fallback, {
|
|
34
34
|
ref: ref,
|
|
35
|
-
"data-slot": "avatar-fallback",
|
|
36
35
|
className: clsx(Avatar_module.fallback, className),
|
|
37
36
|
...props,
|
|
37
|
+
"data-slot": "avatar-fallback",
|
|
38
38
|
children: children
|
|
39
39
|
});
|
|
40
40
|
});
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
gap: var(--moduix-button-content-gap, var(--moduix-spacing-2));
|
|
7
7
|
border: var(--moduix-button-border-width, var(--moduix-border-width-sm)) solid transparent;
|
|
8
8
|
border-radius: var(--moduix-button-radius, var(--moduix-radius-md));
|
|
9
|
-
color: var(--moduix-button-color, var(--moduix-color-foreground));
|
|
10
9
|
appearance: none;
|
|
11
10
|
font: inherit;
|
|
12
11
|
font-size: var(--moduix-button-font-size, var(--moduix-text-sm));
|
|
@@ -6,103 +6,103 @@ import Card_module from "./Card.module.js";
|
|
|
6
6
|
const Card_CardRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', variant = 'outline', ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
8
8
|
ref: ref,
|
|
9
|
+
className: clsx(Card_module.root, className),
|
|
10
|
+
...props,
|
|
9
11
|
"data-scope": "card",
|
|
10
12
|
"data-part": "root",
|
|
11
|
-
"data-slot": "card-root",
|
|
12
13
|
"data-size": size,
|
|
13
14
|
"data-variant": variant,
|
|
14
|
-
|
|
15
|
-
...props
|
|
15
|
+
"data-slot": "card-root"
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
18
|
const Card_CardHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
19
19
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
20
20
|
ref: ref,
|
|
21
|
+
className: clsx(Card_module.header, className),
|
|
22
|
+
...props,
|
|
21
23
|
"data-scope": "card",
|
|
22
24
|
"data-part": "header",
|
|
23
|
-
"data-slot": "card-header"
|
|
24
|
-
className: clsx(Card_module.header, className),
|
|
25
|
-
...props
|
|
25
|
+
"data-slot": "card-header"
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
const Card_CardBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
29
29
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
30
30
|
ref: ref,
|
|
31
|
+
className: clsx(Card_module.body, className),
|
|
32
|
+
...props,
|
|
31
33
|
"data-scope": "card",
|
|
32
34
|
"data-part": "body",
|
|
33
|
-
"data-slot": "card-body"
|
|
34
|
-
className: clsx(Card_module.body, className),
|
|
35
|
-
...props
|
|
35
|
+
"data-slot": "card-body"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const Card_CardMedia = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
40
40
|
ref: ref,
|
|
41
|
+
className: clsx(Card_module.media, className),
|
|
42
|
+
...props,
|
|
41
43
|
"data-scope": "card",
|
|
42
44
|
"data-part": "media",
|
|
43
|
-
"data-slot": "card-media"
|
|
44
|
-
className: clsx(Card_module.media, className),
|
|
45
|
-
...props
|
|
45
|
+
"data-slot": "card-media"
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
const Card_CardBackground = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
49
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
50
50
|
ref: ref,
|
|
51
|
+
className: clsx(Card_module.background, className),
|
|
52
|
+
...props,
|
|
51
53
|
"data-scope": "card",
|
|
52
54
|
"data-part": "background",
|
|
53
|
-
"data-slot": "card-background"
|
|
54
|
-
className: clsx(Card_module.background, className),
|
|
55
|
-
...props
|
|
55
|
+
"data-slot": "card-background"
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
const Card_CardFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
59
59
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
60
60
|
ref: ref,
|
|
61
|
+
className: clsx(Card_module.footer, className),
|
|
62
|
+
...props,
|
|
61
63
|
"data-scope": "card",
|
|
62
64
|
"data-part": "footer",
|
|
63
|
-
"data-slot": "card-footer"
|
|
64
|
-
className: clsx(Card_module.footer, className),
|
|
65
|
-
...props
|
|
65
|
+
"data-slot": "card-footer"
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
const Card_CardTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
69
69
|
return /*#__PURE__*/ jsx(ark.h3, {
|
|
70
70
|
ref: ref,
|
|
71
|
+
className: clsx(Card_module.title, className),
|
|
72
|
+
...props,
|
|
71
73
|
"data-scope": "card",
|
|
72
74
|
"data-part": "title",
|
|
73
|
-
"data-slot": "card-title"
|
|
74
|
-
className: clsx(Card_module.title, className),
|
|
75
|
-
...props
|
|
75
|
+
"data-slot": "card-title"
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
const Card_CardDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
79
79
|
return /*#__PURE__*/ jsx(ark.p, {
|
|
80
80
|
ref: ref,
|
|
81
|
+
className: clsx(Card_module.description, className),
|
|
82
|
+
...props,
|
|
81
83
|
"data-scope": "card",
|
|
82
84
|
"data-part": "description",
|
|
83
|
-
"data-slot": "card-description"
|
|
84
|
-
className: clsx(Card_module.description, className),
|
|
85
|
-
...props
|
|
85
|
+
"data-slot": "card-description"
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
const Card_CardAction = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
89
89
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
90
90
|
ref: ref,
|
|
91
|
+
className: clsx(Card_module.action, className),
|
|
92
|
+
...props,
|
|
91
93
|
"data-scope": "card",
|
|
92
94
|
"data-part": "action",
|
|
93
|
-
"data-slot": "card-action"
|
|
94
|
-
className: clsx(Card_module.action, className),
|
|
95
|
-
...props
|
|
95
|
+
"data-slot": "card-action"
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
const Card_CardLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
99
99
|
return /*#__PURE__*/ jsx(ark.a, {
|
|
100
100
|
ref: ref,
|
|
101
|
+
className: clsx(Card_module.link, className),
|
|
102
|
+
...props,
|
|
101
103
|
"data-scope": "card",
|
|
102
104
|
"data-part": "link",
|
|
103
|
-
"data-slot": "card-link"
|
|
104
|
-
className: clsx(Card_module.link, className),
|
|
105
|
-
...props
|
|
105
|
+
"data-slot": "card-link"
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
const Card = Object.assign(Card_CardRoot, {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
z-index: 1;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.root-aWX0Lo:has([data-scope="card"][data-part="link"]) :where(a, button, input, select, textarea, [role="button"], [role="checkbox"], [role="menuitem"], [role="switch"], [tabindex]:not([tabindex="-1"])):not([data-scope="card"][data-part="link"]) {
|
|
77
|
+
.root-aWX0Lo:has([data-scope="card"][data-part="link"]) :where(a, button, input, select, textarea, summary, audio[controls], video[controls], iframe, [contenteditable="true"], [role="button"], [role="checkbox"], [role="menuitem"], [role="switch"], [tabindex]:not([tabindex="-1"])):not([data-scope="card"][data-part="link"]) {
|
|
78
78
|
z-index: 1;
|
|
79
79
|
position: relative;
|
|
80
80
|
}
|
|
@@ -10,7 +10,7 @@ declare const Carousel: import("react").ForwardRefExoticComponent<Omit<CarouselP
|
|
|
10
10
|
NextTrigger: import("react").ForwardRefExoticComponent<Omit<CarouselPrimitive.NextTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
IndicatorGroup: import("react").ForwardRefExoticComponent<Omit<CarouselPrimitive.IndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
Indicator: import("react").ForwardRefExoticComponent<Omit<CarouselPrimitive.IndicatorProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
Indicators: import("react").ForwardRefExoticComponent<Omit<CarouselPrimitive.IndicatorGroupProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
13
|
+
Indicators: import("react").ForwardRefExoticComponent<Omit<Omit<CarouselPrimitive.IndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>, "asChild" | "children"> & {
|
|
14
14
|
indicatorClassName?: string;
|
|
15
15
|
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
AutoplayTrigger: import("react").ForwardRefExoticComponent<Omit<CarouselPrimitive.AutoplayTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -8,49 +8,49 @@ import Carousel_module from "./Carousel.module.js";
|
|
|
8
8
|
const Carousel_CarouselRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
9
|
return /*#__PURE__*/ jsx(Carousel.Root, {
|
|
10
10
|
ref: ref,
|
|
11
|
-
"data-slot": "carousel-root",
|
|
12
11
|
className: clsx(Carousel_module.root, className),
|
|
13
|
-
...props
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "carousel-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const Carousel_CarouselRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(Carousel.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-slot": "carousel-root-provider",
|
|
20
19
|
className: clsx(Carousel_module.root, className),
|
|
21
|
-
...props
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "carousel-root-provider"
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
const Carousel_CarouselControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
25
25
|
return /*#__PURE__*/ jsx(Carousel.Control, {
|
|
26
26
|
ref: ref,
|
|
27
|
-
"data-slot": "carousel-control",
|
|
28
27
|
className: clsx(Carousel_module.control, className),
|
|
29
|
-
...props
|
|
28
|
+
...props,
|
|
29
|
+
"data-slot": "carousel-control"
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
const Carousel_CarouselItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
33
33
|
return /*#__PURE__*/ jsx(Carousel.ItemGroup, {
|
|
34
34
|
ref: ref,
|
|
35
|
-
"data-slot": "carousel-item-group",
|
|
36
35
|
className: clsx(Carousel_module.itemGroup, className),
|
|
37
|
-
...props
|
|
36
|
+
...props,
|
|
37
|
+
"data-slot": "carousel-item-group"
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
const Carousel_CarouselItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
41
|
return /*#__PURE__*/ jsx(Carousel.Item, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
"data-slot": "carousel-item",
|
|
44
43
|
className: clsx(Carousel_module.item, className),
|
|
45
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "carousel-item"
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
const Carousel_CarouselPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
49
49
|
return /*#__PURE__*/ jsx(Carousel.PrevTrigger, {
|
|
50
50
|
ref: ref,
|
|
51
|
-
"data-slot": "carousel-prev-trigger",
|
|
52
51
|
className: clsx(Carousel_module.prevTrigger, className),
|
|
53
52
|
...props,
|
|
53
|
+
"data-slot": "carousel-prev-trigger",
|
|
54
54
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
55
55
|
className: Carousel_module.defaultIcon,
|
|
56
56
|
children: /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
@@ -60,9 +60,9 @@ const Carousel_CarouselPrevTrigger = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
60
60
|
const Carousel_CarouselNextTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
61
61
|
return /*#__PURE__*/ jsx(Carousel.NextTrigger, {
|
|
62
62
|
ref: ref,
|
|
63
|
-
"data-slot": "carousel-next-trigger",
|
|
64
63
|
className: clsx(Carousel_module.nextTrigger, className),
|
|
65
64
|
...props,
|
|
65
|
+
"data-slot": "carousel-next-trigger",
|
|
66
66
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
67
67
|
className: Carousel_module.defaultIcon,
|
|
68
68
|
children: /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
@@ -72,17 +72,17 @@ const Carousel_CarouselNextTrigger = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
72
72
|
const Carousel_CarouselIndicatorGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
73
73
|
return /*#__PURE__*/ jsx(Carousel.IndicatorGroup, {
|
|
74
74
|
ref: ref,
|
|
75
|
-
"data-slot": "carousel-indicator-group",
|
|
76
75
|
className: clsx(Carousel_module.indicatorGroup, className),
|
|
77
|
-
...props
|
|
76
|
+
...props,
|
|
77
|
+
"data-slot": "carousel-indicator-group"
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
const Carousel_CarouselIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
81
81
|
return /*#__PURE__*/ jsx(Carousel.Indicator, {
|
|
82
82
|
ref: ref,
|
|
83
|
-
"data-slot": "carousel-indicator",
|
|
84
83
|
className: clsx(Carousel_module.indicator, className),
|
|
85
|
-
...props
|
|
84
|
+
...props,
|
|
85
|
+
"data-slot": "carousel-indicator"
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
const Carousel_CarouselIndicators = /*#__PURE__*/ forwardRef(function({ className, indicatorClassName, ...props }, ref) {
|
|
@@ -101,25 +101,25 @@ const Carousel_CarouselIndicators = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
101
101
|
const Carousel_CarouselAutoplayTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
102
102
|
return /*#__PURE__*/ jsx(Carousel.AutoplayTrigger, {
|
|
103
103
|
ref: ref,
|
|
104
|
-
"data-slot": "carousel-autoplay-trigger",
|
|
105
104
|
className: clsx(Carousel_module.autoplayTrigger, className),
|
|
106
|
-
...props
|
|
105
|
+
...props,
|
|
106
|
+
"data-slot": "carousel-autoplay-trigger"
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
const Carousel_CarouselAutoplayIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
110
110
|
return /*#__PURE__*/ jsx(Carousel.AutoplayIndicator, {
|
|
111
111
|
ref: ref,
|
|
112
|
-
"data-slot": "carousel-autoplay-indicator",
|
|
113
112
|
className: clsx(Carousel_module.autoplayIndicator, className),
|
|
114
|
-
...props
|
|
113
|
+
...props,
|
|
114
|
+
"data-slot": "carousel-autoplay-indicator"
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
117
|
const Carousel_CarouselProgressText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
118
118
|
return /*#__PURE__*/ jsx(Carousel.ProgressText, {
|
|
119
119
|
ref: ref,
|
|
120
|
-
"data-slot": "carousel-progress-text",
|
|
121
120
|
className: clsx(Carousel_module.progressText, className),
|
|
122
|
-
...props
|
|
121
|
+
...props,
|
|
122
|
+
"data-slot": "carousel-progress-text"
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
const Carousel_Carousel = Object.assign(Carousel_CarouselRoot, {
|
|
@@ -18,11 +18,11 @@ const defaultChartRenderer = motion_motion({
|
|
|
18
18
|
const Chart_ChartRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
19
19
|
return /*#__PURE__*/ jsx(ark.figure, {
|
|
20
20
|
ref: ref,
|
|
21
|
+
className: clsx(Chart_module.root, className),
|
|
22
|
+
...props,
|
|
21
23
|
"data-scope": "chart",
|
|
22
24
|
"data-part": "root",
|
|
23
|
-
"data-slot": "chart-root"
|
|
24
|
-
className: clsx(Chart_module.root, className),
|
|
25
|
-
...props
|
|
25
|
+
"data-slot": "chart-root"
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
const renderDefaultTooltipBody = ({ content })=>{
|
|
@@ -92,55 +92,55 @@ const Chart_ChartPlot = function({ className, motion = true, renderTooltipBody,
|
|
|
92
92
|
const Chart_ChartHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
93
93
|
return /*#__PURE__*/ jsx(ark.figcaption, {
|
|
94
94
|
ref: ref,
|
|
95
|
+
className: clsx(Chart_module.header, className),
|
|
96
|
+
...props,
|
|
95
97
|
"data-scope": "chart",
|
|
96
98
|
"data-part": "header",
|
|
97
|
-
"data-slot": "chart-header"
|
|
98
|
-
className: clsx(Chart_module.header, className),
|
|
99
|
-
...props
|
|
99
|
+
"data-slot": "chart-header"
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
const Chart_ChartTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
103
103
|
return /*#__PURE__*/ jsx(ark.h3, {
|
|
104
104
|
ref: ref,
|
|
105
|
+
className: clsx(Chart_module.title, className),
|
|
106
|
+
...props,
|
|
105
107
|
"data-scope": "chart",
|
|
106
108
|
"data-part": "title",
|
|
107
|
-
"data-slot": "chart-title"
|
|
108
|
-
className: clsx(Chart_module.title, className),
|
|
109
|
-
...props
|
|
109
|
+
"data-slot": "chart-title"
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
const Chart_ChartDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
113
113
|
return /*#__PURE__*/ jsx(ark.p, {
|
|
114
114
|
ref: ref,
|
|
115
|
+
className: clsx(Chart_module.description, className),
|
|
116
|
+
...props,
|
|
115
117
|
"data-scope": "chart",
|
|
116
118
|
"data-part": "description",
|
|
117
|
-
"data-slot": "chart-description"
|
|
118
|
-
className: clsx(Chart_module.description, className),
|
|
119
|
-
...props
|
|
119
|
+
"data-slot": "chart-description"
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
const Chart_ChartLegend = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
123
123
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
124
124
|
ref: ref,
|
|
125
|
+
className: clsx(Chart_module.legend, className),
|
|
126
|
+
...props,
|
|
125
127
|
"data-scope": "chart",
|
|
126
128
|
"data-part": "legend",
|
|
127
|
-
"data-slot": "chart-legend"
|
|
128
|
-
className: clsx(Chart_module.legend, className),
|
|
129
|
-
...props
|
|
129
|
+
"data-slot": "chart-legend"
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
const Chart_ChartLegendItem = /*#__PURE__*/ forwardRef(function({ className, color, style, ...props }, ref) {
|
|
133
133
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
134
134
|
ref: ref,
|
|
135
|
-
"data-scope": "chart",
|
|
136
|
-
"data-part": "legend-item",
|
|
137
|
-
"data-slot": "chart-legend-item",
|
|
138
135
|
className: clsx(Chart_module.legendItem, className),
|
|
139
136
|
style: color ? {
|
|
140
137
|
'--moduix-chart-legend-indicator-color': color,
|
|
141
138
|
...style
|
|
142
139
|
} : style,
|
|
143
|
-
...props
|
|
140
|
+
...props,
|
|
141
|
+
"data-scope": "chart",
|
|
142
|
+
"data-part": "legend-item",
|
|
143
|
+
"data-slot": "chart-legend-item"
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
146
|
const Chart = Object.assign(Chart_ChartRoot, {
|