@moduix/react 2.2.4 → 2.2.5
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 +1 -1
- package/dist/components/accordion/Accordion_module.css +12 -1
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert.js +1 -1
- package/dist/components/alert/Alert_module.css +22 -48
- package/dist/components/angle-slider/AngleSlider.d.ts +9 -3
- package/dist/components/angle-slider/AngleSlider.js +34 -10
- package/dist/components/angle-slider/AngleSlider_module.css +24 -5
- package/dist/components/aspect-ratio/AspectRatio.js +3 -3
- package/dist/components/aspect-ratio/AspectRatio_module.css +9 -2
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/Avatar.js +39 -3
- package/dist/components/avatar/Avatar.module.js +2 -1
- package/dist/components/avatar/Avatar_module.css +8 -1
- package/dist/components/badge/Badge.d.ts +1 -0
- package/dist/components/badge/Badge.js +15 -5
- package/dist/components/badge/Badge_module.css +45 -30
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -6
- package/dist/components/breadcrumbs/Breadcrumbs.js +4 -3
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +1 -1
- package/dist/components/button/Button.js +9 -1
- package/dist/components/button/Button_module.css +0 -7
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +11 -0
- package/dist/components/card/Card.module.js +1 -0
- package/dist/components/card/Card_module.css +79 -29
- package/dist/components/carousel/Carousel_module.css +27 -5
- package/dist/components/checkbox/Checkbox.js +9 -3
- package/dist/components/checkbox/Checkbox_module.css +11 -3
- package/dist/components/clipboard/Clipboard_module.css +13 -1
- package/dist/components/close-button/CloseButton.js +14 -3
- package/dist/components/collapsible/Collapsible_module.css +11 -0
- package/dist/components/color-picker/ColorPicker.js +16 -6
- package/dist/components/color-picker/ColorPicker.module.js +2 -0
- package/dist/components/color-picker/ColorPicker_module.css +84 -9
- package/dist/components/combobox/Combobox.d.ts +1 -1
- package/dist/components/combobox/Combobox.js +2 -1
- package/dist/components/combobox/Combobox_module.css +1 -1
- package/dist/components/command-palette/CommandPalette.js +10 -18
- package/dist/components/command-palette/CommandPalette.module.js +0 -1
- package/dist/components/command-palette/CommandPalette_module.css +5 -15
- package/dist/components/container/Container_module.css +11 -11
- package/dist/components/date-picker/DatePicker.js +15 -6
- package/dist/components/dialog/Dialog.d.ts +3 -6
- package/dist/components/dialog/Dialog.js +19 -15
- package/dist/components/dialog/Dialog_module.css +12 -1
- package/dist/components/drawer/Drawer.d.ts +3 -6
- package/dist/components/drawer/Drawer.js +19 -15
- package/dist/components/drawer/Drawer_module.css +17 -6
- package/dist/components/empty/Empty_module.css +2 -2
- package/dist/components/field/Field_module.css +4 -0
- package/dist/components/fieldset/Fieldset_module.css +3 -0
- package/dist/components/file-upload/FileUpload.js +1 -1
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -2
- package/dist/components/floating-panel/FloatingPanel.js +7 -5
- package/dist/components/heading/Heading.js +2 -2
- package/dist/components/highlight/Highlight.js +2 -2
- package/dist/components/hover-card/HoverCard.js +0 -2
- package/dist/components/hover-card/HoverCard_module.css +19 -8
- package/dist/components/image/Image.d.ts +6 -2
- package/dist/components/image/Image.js +2 -1
- package/dist/components/image-cropper/ImageCropper_module.css +0 -1
- package/dist/components/input/Input_module.css +2 -2
- package/dist/components/input-group/InputGroup.js +7 -7
- package/dist/components/kbd/Kbd.js +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +5 -8
- package/dist/components/lightbox/Lightbox.js +20 -16
- package/dist/components/lightbox/Lightbox_module.css +7 -0
- package/dist/components/list/List_module.css +3 -4
- package/dist/components/listbox/Listbox.d.ts +3 -6
- package/dist/components/listbox/Listbox.js +15 -12
- package/dist/components/listbox/Listbox_module.css +2 -2
- package/dist/components/menu/Menu.d.ts +4 -8
- package/dist/components/menu/Menu.js +25 -20
- package/dist/components/menu/Menu_module.css +10 -0
- package/dist/components/native-select/NativeSelect_module.css +1 -1
- package/dist/components/pagination/Pagination.js +2 -2
- package/dist/components/pagination/Pagination_module.css +1 -1
- package/dist/components/password-input/PasswordInput_module.css +4 -4
- package/dist/components/popover/Popover.d.ts +4 -7
- package/dist/components/popover/Popover.js +24 -18
- package/dist/components/popover/Popover_module.css +18 -8
- package/dist/components/progress-circular/ProgressCircular_module.css +8 -1
- package/dist/components/progress-linear/ProgressLinear_module.css +1 -0
- package/dist/components/qr-code/QrCode_module.css +2 -3
- package/dist/components/radio-group/RadioGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea_module.css +15 -0
- package/dist/components/segment-group/SegmentGroup.module.js +1 -1
- package/dist/components/segment-group/SegmentGroup_module.css +4 -4
- package/dist/components/select/Select.d.ts +3 -6
- package/dist/components/select/Select.js +16 -12
- package/dist/components/select/Select_module.css +15 -1
- package/dist/components/separator/Separator.js +2 -2
- package/dist/components/separator/Separator_module.css +3 -3
- package/dist/components/sidebar/Sidebar.js +1 -1
- package/dist/components/sidebar/Sidebar_module.css +9 -8
- package/dist/components/signature-pad/SignaturePad.d.ts +3 -5
- package/dist/components/signature-pad/SignaturePad.js +44 -18
- package/dist/components/simple-grid/SimpleGrid.js +1 -0
- package/dist/components/slider/Slider_module.css +9 -5
- package/dist/components/split-button/SplitButton.d.ts +4 -0
- package/dist/components/split-button/SplitButton.js +4 -1
- package/dist/components/splitter/Splitter.js +3 -2
- package/dist/components/splitter/Splitter_module.css +21 -14
- package/dist/components/swap/Swap_module.css +22 -22
- package/dist/components/switch/Switch.js +9 -3
- package/dist/components/switch/Switch_module.css +30 -23
- package/dist/components/table/Table_module.css +15 -11
- package/dist/components/tabs/Tabs.js +5 -2
- package/dist/components/tag/Tag_module.css +17 -14
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text_module.css +2 -1
- package/dist/components/timer/Timer.d.ts +2 -4
- package/dist/components/timer/Timer.js +5 -4
- package/dist/components/toast/Toast_module.css +37 -43
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
- package/dist/components/toggle-group/ToggleGroup_module.css +5 -7
- package/dist/components/tooltip/Tooltip_module.css +11 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +2 -1
- package/dist/components/tour/Tour_module.css +16 -4
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView_module.css +1 -1
- package/dist/styles/reset.css +33 -0
- package/package.json +6 -6
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@layer moduix.components {
|
|
2
2
|
.root-qRQEjV {
|
|
3
|
+
box-sizing: border-box;
|
|
3
4
|
justify-content: center;
|
|
4
5
|
align-items: center;
|
|
5
6
|
gap: var(--moduix-badge-gap, var(--moduix-spacing-1-5));
|
|
6
7
|
border: var(--moduix-badge-border-width, var(--moduix-border-width-sm)) solid
|
|
7
|
-
var(--moduix-badge-border-color, transparent);
|
|
8
|
+
var(--moduix-badge-border-color, var(--moduix-badge-default-border-color, transparent));
|
|
8
9
|
border-radius: var(--moduix-badge-radius, var(--moduix-radius-full));
|
|
9
10
|
width: -moz-fit-content;
|
|
10
11
|
width: fit-content;
|
|
@@ -12,8 +13,8 @@
|
|
|
12
13
|
max-width: 100%;
|
|
13
14
|
padding-block: var(--moduix-badge-padding-y, 0);
|
|
14
15
|
padding-inline: var(--moduix-badge-padding-x, var(--moduix-spacing-2-5));
|
|
15
|
-
background-color: var(--moduix-badge-bg, var(--moduix-color-primary));
|
|
16
|
-
color: var(--moduix-badge-color, var(--moduix-color-primary-foreground));
|
|
16
|
+
background-color: var(--moduix-badge-bg, var(--moduix-badge-default-bg, var(--moduix-color-primary)));
|
|
17
|
+
color: var(--moduix-badge-color, var(--moduix-badge-default-color, var(--moduix-color-primary-foreground)));
|
|
17
18
|
font-size: var(--moduix-badge-font-size, var(--moduix-text-xs));
|
|
18
19
|
font-weight: var(--moduix-badge-font-weight, var(--moduix-weight-medium));
|
|
19
20
|
font-variant-numeric: tabular-nums;
|
|
@@ -24,37 +25,48 @@
|
|
|
24
25
|
white-space: nowrap;
|
|
25
26
|
text-overflow: ellipsis;
|
|
26
27
|
vertical-align: middle;
|
|
27
|
-
transition: color var(--moduix-transition-default),
|
|
28
|
-
background-color var(--moduix-transition-default),
|
|
29
|
-
border-color var(--moduix-transition-default)
|
|
28
|
+
transition: color var(--moduix-badge-transition, var(--moduix-transition-default)),
|
|
29
|
+
background-color var(--moduix-badge-transition, var(--moduix-transition-default)),
|
|
30
|
+
border-color var(--moduix-badge-transition, var(--moduix-transition-default)),
|
|
31
|
+
opacity var(--moduix-badge-transition, var(--moduix-transition-default));
|
|
30
32
|
text-decoration: none;
|
|
31
33
|
display: inline-flex;
|
|
32
34
|
overflow: hidden;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
.root-qRQEjV:is(a, button, [role="button"]) {
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
37
|
.root-qRQEjV:is(a, button, [role="button"]):focus-visible {
|
|
40
38
|
outline: var(--moduix-badge-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
41
39
|
solid var(--moduix-badge-focus-ring-color, var(--moduix-color-ring));
|
|
42
40
|
outline-offset: var(--moduix-badge-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
43
41
|
}
|
|
44
42
|
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
.root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"]) {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:is(.root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"])[data-variant="default"], .root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"])[data-variant="secondary"], .root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"])[data-variant="destructive"]):hover {
|
|
48
|
+
opacity: var(--moduix-badge-opacity-hover, var(--moduix-opacity-hover));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"])[data-variant="outline"]:hover {
|
|
52
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-outline-border-color-hover, var(--moduix-color-primary)));
|
|
53
|
+
color: var(--moduix-badge-color, var(--moduix-badge-outline-color-hover, var(--moduix-color-primary)));
|
|
47
54
|
}
|
|
48
55
|
|
|
49
|
-
|
|
50
|
-
border-color: var(--moduix-badge-border-color, var(--moduix-color-primary));
|
|
51
|
-
color: var(--moduix-badge-color, var(--moduix-color-primary));
|
|
56
|
+
.root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"])[data-variant="ghost"]:hover {
|
|
57
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-ghost-border-color-hover, var(--moduix-color-primary)));
|
|
58
|
+
color: var(--moduix-badge-color, var(--moduix-badge-ghost-color-hover, var(--moduix-color-primary)));
|
|
52
59
|
}
|
|
53
60
|
|
|
54
|
-
.root-qRQEjV:is(a, button, [role="button"])[data-variant="link"]:hover {
|
|
61
|
+
.root-qRQEjV:is(a, button, [role="button"]):not(:disabled, [aria-disabled="true"])[data-variant="link"]:hover {
|
|
55
62
|
text-decoration-color: currentColor;
|
|
56
63
|
}
|
|
57
64
|
|
|
65
|
+
.root-qRQEjV:is(a, button, [role="button"]):is(:disabled, [aria-disabled="true"]) {
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
opacity: var(--moduix-badge-opacity-disabled, var(--moduix-opacity-disabled));
|
|
68
|
+
}
|
|
69
|
+
|
|
58
70
|
.root-qRQEjV > svg {
|
|
59
71
|
width: var(--moduix-badge-icon-size, var(--moduix-spacing-3));
|
|
60
72
|
height: var(--moduix-badge-icon-size, var(--moduix-spacing-3));
|
|
@@ -63,35 +75,38 @@
|
|
|
63
75
|
}
|
|
64
76
|
|
|
65
77
|
.root-qRQEjV[data-variant="secondary"] {
|
|
66
|
-
|
|
67
|
-
color: var(--moduix-badge-
|
|
78
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-secondary-border-color, transparent));
|
|
79
|
+
background-color: var(--moduix-badge-bg, var(--moduix-badge-secondary-bg, var(--moduix-color-secondary)));
|
|
80
|
+
color: var(--moduix-badge-color, var(--moduix-badge-secondary-color, var(--moduix-color-secondary-foreground)));
|
|
68
81
|
}
|
|
69
82
|
|
|
70
83
|
.root-qRQEjV[data-variant="destructive"] {
|
|
71
|
-
|
|
72
|
-
color: var(--moduix-badge-
|
|
84
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-destructive-border-color, transparent));
|
|
85
|
+
background-color: var(--moduix-badge-bg, var(--moduix-badge-destructive-bg, var(--moduix-color-destructive)));
|
|
86
|
+
color: var(--moduix-badge-color, var(--moduix-badge-destructive-color, var(--moduix-color-destructive-foreground)));
|
|
73
87
|
}
|
|
74
88
|
|
|
75
|
-
.root-qRQEjV[data-variant="outline"]
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.root-qRQEjV[data-variant="outline"], .root-qRQEjV[data-variant="ghost"] {
|
|
80
|
-
color: var(--moduix-badge-color, var(--moduix-color-foreground));
|
|
89
|
+
.root-qRQEjV[data-variant="outline"] {
|
|
90
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-outline-border-color, var(--moduix-color-border)));
|
|
91
|
+
background-color: var(--moduix-badge-bg, var(--moduix-badge-outline-bg, transparent));
|
|
92
|
+
color: var(--moduix-badge-color, var(--moduix-badge-outline-color, var(--moduix-color-foreground)));
|
|
81
93
|
}
|
|
82
94
|
|
|
83
|
-
.root-qRQEjV[data-variant="
|
|
84
|
-
border-color: var(--moduix-badge-border-color, var(--moduix-
|
|
95
|
+
.root-qRQEjV[data-variant="ghost"] {
|
|
96
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-ghost-border-color, transparent));
|
|
97
|
+
background-color: var(--moduix-badge-bg, var(--moduix-badge-ghost-bg, transparent));
|
|
98
|
+
color: var(--moduix-badge-color, var(--moduix-badge-ghost-color, var(--moduix-color-foreground)));
|
|
85
99
|
}
|
|
86
100
|
|
|
87
101
|
.root-qRQEjV[data-variant="link"] {
|
|
102
|
+
border-color: var(--moduix-badge-border-color, var(--moduix-badge-link-border-color, transparent));
|
|
103
|
+
background-color: var(--moduix-badge-bg, var(--moduix-badge-link-bg, transparent));
|
|
88
104
|
min-height: auto;
|
|
89
|
-
color: var(--moduix-badge-color, var(--moduix-color-primary));
|
|
105
|
+
color: var(--moduix-badge-color, var(--moduix-badge-link-color, var(--moduix-color-primary)));
|
|
90
106
|
text-decoration: underline;
|
|
91
107
|
-webkit-text-decoration-color: color-mix(in oklab, currentColor 55%, transparent);
|
|
92
108
|
text-decoration-color: color-mix(in oklab, currentColor 55%, transparent);
|
|
93
109
|
text-underline-offset: var(--moduix-badge-link-underline-offset, .15em);
|
|
94
|
-
border-color: #0000;
|
|
95
110
|
border-radius: 0;
|
|
96
111
|
padding-block: .125em;
|
|
97
112
|
padding-inline: 0;
|
|
@@ -5,17 +5,15 @@ type BreadcrumbsPathItem = {
|
|
|
5
5
|
key?: Key;
|
|
6
6
|
label: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
type BreadcrumbsPathProps = Omit<HTMLArkProps<'ol'>, 'children'> & {
|
|
9
|
-
items: readonly BreadcrumbsPathItem[];
|
|
10
|
-
separator?: ReactNode;
|
|
11
|
-
};
|
|
12
|
-
declare function BreadcrumbsPath({ items, separator, ...props }: BreadcrumbsPathProps): import("react").JSX.Element;
|
|
13
8
|
declare const Breadcrumbs: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>> & {
|
|
14
9
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
15
10
|
List: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
16
11
|
Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
17
12
|
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
18
|
-
Path:
|
|
13
|
+
Path: import("react").ForwardRefExoticComponent<Omit<HTMLArkProps<"ol">, "children" | "asChild"> & {
|
|
14
|
+
items: readonly BreadcrumbsPathItem[];
|
|
15
|
+
separator?: ReactNode;
|
|
16
|
+
} & import("react").RefAttributes<HTMLOListElement>>;
|
|
19
17
|
Page: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
20
18
|
Separator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
21
19
|
Ellipsis: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -57,8 +57,9 @@ const Breadcrumbs_BreadcrumbsPage = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
57
57
|
...props
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
const Breadcrumbs_BreadcrumbsPath = /*#__PURE__*/ forwardRef(function({ items, separator, ...props }, ref) {
|
|
61
61
|
return /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsList, {
|
|
62
|
+
ref: ref,
|
|
62
63
|
...props,
|
|
63
64
|
children: items.map((item, index)=>{
|
|
64
65
|
const isLastItem = index === items.length - 1;
|
|
@@ -79,7 +80,7 @@ function BreadcrumbsPath({ items, separator, ...props }) {
|
|
|
79
80
|
}, item.key ?? index);
|
|
80
81
|
})
|
|
81
82
|
});
|
|
82
|
-
}
|
|
83
|
+
});
|
|
83
84
|
const Breadcrumbs_BreadcrumbsSeparator = /*#__PURE__*/ forwardRef(function({ className, children, role = 'presentation', ...props }, ref) {
|
|
84
85
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
85
86
|
ref: ref,
|
|
@@ -112,7 +113,7 @@ const Breadcrumbs = Object.assign(Breadcrumbs_BreadcrumbsRoot, {
|
|
|
112
113
|
List: Breadcrumbs_BreadcrumbsList,
|
|
113
114
|
Item: Breadcrumbs_BreadcrumbsItem,
|
|
114
115
|
Link: Breadcrumbs_BreadcrumbsLink,
|
|
115
|
-
Path:
|
|
116
|
+
Path: Breadcrumbs_BreadcrumbsPath,
|
|
116
117
|
Page: Breadcrumbs_BreadcrumbsPage,
|
|
117
118
|
Separator: Breadcrumbs_BreadcrumbsSeparator,
|
|
118
119
|
Ellipsis: Breadcrumbs_BreadcrumbsEllipsis
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
text-decoration: var(--moduix-breadcrumbs-link-text-decoration, none);
|
|
49
49
|
text-underline-offset: var(--moduix-breadcrumbs-link-underline-offset, .2em);
|
|
50
50
|
border-radius: var(--moduix-breadcrumbs-link-radius, var(--moduix-radius-sm));
|
|
51
|
-
transition: var(--moduix-breadcrumbs-link-transition, var(--moduix-transition-default));
|
|
51
|
+
transition: color var(--moduix-breadcrumbs-link-transition, var(--moduix-transition-default));
|
|
52
52
|
outline: none;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -4,7 +4,7 @@ import { clsx } from "clsx";
|
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
6
|
import Button_module from "./Button.module.js";
|
|
7
|
-
const Button_ButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, disabled, loading = false, onClick, size = 'md', type, 'data-scope': dataScope = 'button', 'data-part': dataPart = 'root', 'data-slot': dataSlot, variant = 'default', 'aria-busy': ariaBusy, 'aria-disabled': ariaDisabled, ...props }, ref) {
|
|
7
|
+
const Button_ButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, disabled, loading = false, onClick, onClickCapture, size = 'md', type, 'data-scope': dataScope = 'button', 'data-part': dataPart = 'root', 'data-slot': dataSlot, variant = 'default', 'aria-busy': ariaBusy, 'aria-disabled': ariaDisabled, ...props }, ref) {
|
|
8
8
|
const isDisabled = disabled || loading || true === ariaDisabled || 'true' === ariaDisabled;
|
|
9
9
|
const nativeDisabled = asChild ? void 0 : isDisabled;
|
|
10
10
|
const resolvedAriaBusy = loading ? true : ariaBusy;
|
|
@@ -17,6 +17,14 @@ const Button_ButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
17
17
|
"aria-busy": resolvedAriaBusy,
|
|
18
18
|
"aria-disabled": resolvedAriaDisabled,
|
|
19
19
|
...props,
|
|
20
|
+
onClickCapture: (event)=>{
|
|
21
|
+
if (isDisabled) {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
event.stopPropagation();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
onClickCapture?.(event);
|
|
27
|
+
},
|
|
20
28
|
onClick: (event)=>{
|
|
21
29
|
if (isDisabled) {
|
|
22
30
|
event.preventDefault();
|
|
@@ -61,13 +61,6 @@
|
|
|
61
61
|
flex-shrink: 0;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.root-RR_712 [data-icon="inline-start"], .root-RR_712 [data-icon="inline-end"] {
|
|
65
|
-
flex-shrink: 0;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
align-items: center;
|
|
68
|
-
display: inline-flex;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
.root-RR_712[data-variant="default"] {
|
|
72
65
|
border-color: var(--moduix-button-default-border-color, var(--moduix-color-primary));
|
|
73
66
|
background-color: var(--moduix-button-default-bg, var(--moduix-color-primary));
|
|
@@ -9,6 +9,7 @@ declare const Card: import("react").ForwardRefExoticComponent<Omit<import("react
|
|
|
9
9
|
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
10
10
|
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
11
11
|
Media: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
12
|
+
Background: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
12
13
|
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
13
14
|
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
14
15
|
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -46,6 +46,16 @@ const Card_CardMedia = /*#__PURE__*/ forwardRef(function({ className, ...props }
|
|
|
46
46
|
...props
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
|
+
const Card_CardBackground = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
51
|
+
ref: ref,
|
|
52
|
+
"data-scope": "card",
|
|
53
|
+
"data-part": "background",
|
|
54
|
+
"data-slot": "card-background",
|
|
55
|
+
className: clsx(Card_module.background, normalizeClassName(className)),
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
});
|
|
49
59
|
const Card_CardFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
60
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
51
61
|
ref: ref,
|
|
@@ -101,6 +111,7 @@ const Card = Object.assign(Card_CardRoot, {
|
|
|
101
111
|
Header: Card_CardHeader,
|
|
102
112
|
Body: Card_CardBody,
|
|
103
113
|
Media: Card_CardMedia,
|
|
114
|
+
Background: Card_CardBackground,
|
|
104
115
|
Footer: Card_CardFooter,
|
|
105
116
|
Title: Card_CardTitle,
|
|
106
117
|
Description: Card_CardDescription,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
@layer moduix.components {
|
|
2
2
|
.root-aWX0Lo {
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
3
|
+
--_card-padding-default: var(--moduix-card-spacing, var(--moduix-card-padding, var(--moduix-spacing-6)));
|
|
4
|
+
--_card-section-spacing-default: var(--moduix-card-spacing, var(--moduix-card-body-padding-top, var(--moduix-spacing-4)));
|
|
5
|
+
--_card-title-font-size-default: var(--moduix-card-title-font-size, var(--moduix-text-lg));
|
|
6
|
+
--_card-title-line-height-default: var(--moduix-card-title-line-height, var(--moduix-line-height-text-lg));
|
|
7
7
|
box-sizing: border-box;
|
|
8
|
-
border: var(--moduix-card-border-width, var(--
|
|
9
|
-
solid
|
|
8
|
+
border: var(--moduix-card-border-width, var(--_card-border-width-default, var(--moduix-border-width-sm)))
|
|
9
|
+
solid
|
|
10
|
+
var(--moduix-card-border-color, var(--_card-border-color-default, var(--moduix-color-border)));
|
|
10
11
|
border-radius: var(--moduix-card-radius, var(--moduix-radius-lg));
|
|
11
|
-
background-color: var(--moduix-card-bg, var(--
|
|
12
|
+
background-color: var(--moduix-card-bg, var(--_card-bg-default, var(--moduix-color-card)));
|
|
12
13
|
width: 100%;
|
|
13
14
|
min-width: 0;
|
|
14
|
-
color: var(--moduix-card-color, var(--moduix-color-card-foreground));
|
|
15
|
-
box-shadow: var(--moduix-card-shadow, var(--
|
|
15
|
+
color: var(--moduix-card-color, var(--_card-color-default, var(--moduix-color-card-foreground)));
|
|
16
|
+
box-shadow: var(--moduix-card-shadow, var(--_card-shadow-default, none));
|
|
16
17
|
flex-direction: column;
|
|
17
18
|
display: flex;
|
|
18
19
|
position: relative;
|
|
@@ -22,28 +23,56 @@
|
|
|
22
23
|
text-decoration: none;
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
.root-aWX0Lo:is(a, button, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
|
|
27
|
+
outline: var(--moduix-card-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
28
|
+
solid var(--moduix-card-focus-ring-color, var(--moduix-color-ring));
|
|
29
|
+
outline-offset: var(--moduix-card-focus-ring-offset, var(--moduix-border-width-sm));
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
.root-aWX0Lo[data-size="sm"] {
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
33
|
+
--_card-padding-default: var(--moduix-card-spacing-sm, var(--moduix-card-spacing, var(--moduix-card-padding-sm, var(--moduix-spacing-4))));
|
|
34
|
+
--_card-section-spacing-default: var(--moduix-card-spacing-sm, var(--moduix-card-spacing, var(--moduix-card-body-padding-top, var(--moduix-spacing-4))));
|
|
35
|
+
--_card-title-font-size-default: var(--moduix-card-title-font-size-sm, var(--moduix-text-md));
|
|
36
|
+
--_card-title-line-height-default: var(--moduix-card-title-line-height-sm, var(--moduix-line-height-text-md));
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
.root-aWX0Lo[data-size="lg"] {
|
|
33
|
-
--
|
|
34
|
-
--
|
|
35
|
-
--
|
|
36
|
-
--
|
|
40
|
+
--_card-padding-default: var(--moduix-card-spacing-lg, var(--moduix-card-spacing, var(--moduix-card-padding-lg, var(--moduix-spacing-8))));
|
|
41
|
+
--_card-section-spacing-default: var(--moduix-card-spacing-lg, var(--moduix-card-spacing, var(--moduix-card-body-padding-top, var(--moduix-spacing-4))));
|
|
42
|
+
--_card-title-font-size-default: var(--moduix-card-title-font-size-lg, var(--moduix-text-xl));
|
|
43
|
+
--_card-title-line-height-default: var(--moduix-card-title-line-height-lg, var(--moduix-line-height-text-xl));
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
.root-aWX0Lo[data-variant="elevated"] {
|
|
40
|
-
--moduix-card-
|
|
41
|
-
--
|
|
47
|
+
--_card-bg-default: var(--moduix-card-elevated-bg, var(--moduix-color-card));
|
|
48
|
+
--_card-border-color-default: var(--moduix-card-elevated-border-color, transparent);
|
|
49
|
+
--_card-border-width-default: var(--moduix-card-elevated-border-width, 0);
|
|
50
|
+
--_card-color-default: var(--moduix-card-elevated-color, var(--moduix-color-card-foreground));
|
|
51
|
+
--_card-shadow-default: var(--moduix-card-elevated-shadow, var(--moduix-shadow-md));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.root-aWX0Lo[data-variant="outline"] {
|
|
55
|
+
--_card-bg-default: var(--moduix-card-outline-bg, var(--moduix-color-card));
|
|
56
|
+
--_card-border-color-default: var(--moduix-card-outline-border-color, var(--moduix-color-border));
|
|
57
|
+
--_card-border-width-default: var(--moduix-card-outline-border-width, var(--moduix-border-width-sm));
|
|
58
|
+
--_card-color-default: var(--moduix-card-outline-color, var(--moduix-color-card-foreground));
|
|
59
|
+
--_card-shadow-default: var(--moduix-card-outline-shadow, none);
|
|
42
60
|
}
|
|
43
61
|
|
|
44
62
|
.root-aWX0Lo[data-variant="subtle"] {
|
|
45
|
-
--moduix-card-
|
|
46
|
-
--
|
|
63
|
+
--_card-bg-default: var(--moduix-card-subtle-bg, var(--moduix-color-muted));
|
|
64
|
+
--_card-border-color-default: var(--moduix-card-subtle-border-color, transparent);
|
|
65
|
+
--_card-border-width-default: var(--moduix-card-subtle-border-width, 0);
|
|
66
|
+
--_card-color-default: var(--moduix-card-subtle-color, var(--moduix-color-card-foreground));
|
|
67
|
+
--_card-shadow-default: var(--moduix-card-subtle-shadow, none);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.root-aWX0Lo:has( > [data-scope="card"][data-part="background"]) {
|
|
71
|
+
isolation: isolate;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.root-aWX0Lo:has( > [data-scope="card"][data-part="background"]) > :not([data-scope="card"][data-part="background"]) {
|
|
75
|
+
z-index: 1;
|
|
47
76
|
}
|
|
48
77
|
|
|
49
78
|
.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"]) {
|
|
@@ -54,13 +83,13 @@
|
|
|
54
83
|
.header-F5Ms8N, .body-eUwDjL, .footer-QbUloO {
|
|
55
84
|
box-sizing: border-box;
|
|
56
85
|
min-width: 0;
|
|
57
|
-
padding-inline: var(--
|
|
86
|
+
padding-inline: var(--_card-padding-default);
|
|
58
87
|
}
|
|
59
88
|
|
|
60
89
|
.header-F5Ms8N {
|
|
61
90
|
column-gap: var(--moduix-card-action-gap, var(--moduix-spacing-2));
|
|
62
91
|
row-gap: var(--moduix-card-header-gap, var(--moduix-spacing-1));
|
|
63
|
-
padding-block: var(--
|
|
92
|
+
padding-block: var(--_card-padding-default) 0;
|
|
64
93
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
65
94
|
display: grid;
|
|
66
95
|
}
|
|
@@ -82,8 +111,29 @@
|
|
|
82
111
|
display: block;
|
|
83
112
|
}
|
|
84
113
|
|
|
114
|
+
.background-AxFCfZ {
|
|
115
|
+
z-index: 0;
|
|
116
|
+
border-radius: inherit;
|
|
117
|
+
position: absolute;
|
|
118
|
+
inset: 0;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.background-AxFCfZ > :where(img, video, canvas, svg, iframe), .background-AxFCfZ > picture > img {
|
|
123
|
+
object-fit: cover;
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
display: block;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.background-AxFCfZ > picture {
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
display: block;
|
|
133
|
+
}
|
|
134
|
+
|
|
85
135
|
.body-eUwDjL {
|
|
86
|
-
padding-block: var(--
|
|
136
|
+
padding-block: var(--_card-section-spacing-default) var(--_card-padding-default);
|
|
87
137
|
color: var(--moduix-card-body-color, var(--moduix-color-muted-foreground));
|
|
88
138
|
font-size: var(--moduix-card-body-font-size, var(--moduix-text-sm));
|
|
89
139
|
line-height: var(--moduix-card-body-line-height, var(--moduix-line-height-text-sm));
|
|
@@ -91,11 +141,11 @@
|
|
|
91
141
|
}
|
|
92
142
|
|
|
93
143
|
.body-eUwDjL:first-child {
|
|
94
|
-
padding-block-start: var(--
|
|
144
|
+
padding-block-start: var(--_card-padding-default);
|
|
95
145
|
}
|
|
96
146
|
|
|
97
147
|
.body-eUwDjL > :first-child {
|
|
98
|
-
margin-
|
|
148
|
+
margin-block-start: 0;
|
|
99
149
|
}
|
|
100
150
|
|
|
101
151
|
.body-eUwDjL > :last-child {
|
|
@@ -105,7 +155,7 @@
|
|
|
105
155
|
.footer-QbUloO {
|
|
106
156
|
align-items: center;
|
|
107
157
|
gap: var(--moduix-card-footer-gap, var(--moduix-spacing-2));
|
|
108
|
-
padding-block: 0 var(--
|
|
158
|
+
padding-block: 0 var(--_card-padding-default);
|
|
109
159
|
flex-wrap: wrap;
|
|
110
160
|
display: flex;
|
|
111
161
|
}
|
|
@@ -113,9 +163,9 @@
|
|
|
113
163
|
.title-E5XltJ {
|
|
114
164
|
min-width: 0;
|
|
115
165
|
color: var(--moduix-card-title-color, currentColor);
|
|
116
|
-
font-size: var(--
|
|
166
|
+
font-size: var(--_card-title-font-size-default);
|
|
117
167
|
font-weight: var(--moduix-card-title-font-weight, var(--moduix-weight-semibold));
|
|
118
|
-
line-height: var(--
|
|
168
|
+
line-height: var(--_card-title-line-height-default);
|
|
119
169
|
overflow-wrap: anywhere;
|
|
120
170
|
grid-column: 1;
|
|
121
171
|
margin: 0;
|
|
@@ -141,15 +141,15 @@
|
|
|
141
141
|
background-color: var(--moduix-carousel-indicator-bg, color-mix(in oklab, var(--moduix-color-muted) 84%, var(--moduix-color-background) 16%));
|
|
142
142
|
cursor: pointer;
|
|
143
143
|
opacity: .88;
|
|
144
|
-
transition:
|
|
145
|
-
|
|
144
|
+
transition: width var(--moduix-transition-fast),
|
|
145
|
+
height var(--moduix-transition-fast),
|
|
146
146
|
background-color var(--moduix-transition-fast),
|
|
147
147
|
opacity var(--moduix-transition-fast);
|
|
148
148
|
border: 0;
|
|
149
149
|
padding: 0;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
.indicator-cjLdPK:not(:disabled, [data-disabled], [data-readonly]):hover {
|
|
152
|
+
.indicator-cjLdPK:not(:disabled, [data-disabled], [data-readonly], [data-current]):hover {
|
|
153
153
|
background-color: var(--moduix-carousel-indicator-bg-hover, color-mix(in oklab, var(--moduix-color-muted) 56%, var(--moduix-color-foreground) 44%));
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.autoplayTrigger-h1Iihy {
|
|
179
|
-
--
|
|
180
|
-
min-width: var(--moduix-carousel-autoplay-trigger-min-width, var(--
|
|
179
|
+
--_carousel-autoplay-trigger-min-width-fallback: calc(var(--moduix-size-md) + var(--moduix-spacing-3));
|
|
180
|
+
min-width: var(--moduix-carousel-autoplay-trigger-min-width, var(--_carousel-autoplay-trigger-min-width-fallback));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.autoplayIndicator-MQFp2o {
|
|
@@ -196,6 +196,28 @@
|
|
|
196
196
|
font-size: var(--moduix-carousel-progress-text-font-size, var(--moduix-text-sm));
|
|
197
197
|
line-height: var(--moduix-line-height-text-sm);
|
|
198
198
|
font-variant-numeric: tabular-nums;
|
|
199
|
+
direction: ltr;
|
|
200
|
+
unicode-bidi: isolate;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@media (prefers-reduced-motion: reduce) {
|
|
204
|
+
.itemGroup-a7LtFI {
|
|
205
|
+
scroll-behavior: auto;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.prevTrigger-TQv4Ak, .nextTrigger-PkJ3_8, .autoplayTrigger-h1Iihy, .indicator-cjLdPK {
|
|
209
|
+
transition: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (forced-colors: active) {
|
|
214
|
+
.indicator-cjLdPK {
|
|
215
|
+
background-color: buttontext;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.indicator-cjLdPK[data-current] {
|
|
219
|
+
background-color: highlight;
|
|
220
|
+
}
|
|
199
221
|
}
|
|
200
222
|
}
|
|
201
223
|
|
|
@@ -61,9 +61,7 @@ const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, c
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
function withHiddenInput(children, asChild) {
|
|
64
|
-
const hiddenInput = /*#__PURE__*/ jsx(
|
|
65
|
-
"data-slot": "checkbox-hidden-input"
|
|
66
|
-
});
|
|
64
|
+
const hiddenInput = /*#__PURE__*/ jsx(CheckboxHiddenInput, {});
|
|
67
65
|
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
68
66
|
children: [
|
|
69
67
|
children,
|
|
@@ -73,6 +71,14 @@ function withHiddenInput(children, asChild) {
|
|
|
73
71
|
const child = Children.only(children);
|
|
74
72
|
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
75
73
|
}
|
|
74
|
+
function CheckboxHiddenInput() {
|
|
75
|
+
const checkbox = useCheckboxContext();
|
|
76
|
+
const readOnly = void 0 !== checkbox.getRootProps()['data-readonly'];
|
|
77
|
+
return /*#__PURE__*/ jsx(Checkbox.HiddenInput, {
|
|
78
|
+
"aria-readonly": readOnly || void 0,
|
|
79
|
+
"data-slot": "checkbox-hidden-input"
|
|
80
|
+
});
|
|
81
|
+
}
|
|
76
82
|
const Checkbox_CheckboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
77
83
|
return /*#__PURE__*/ jsx(Checkbox.Label, {
|
|
78
84
|
ref: ref,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--moduix-checkbox-gap, var(--moduix-spacing-2));
|
|
5
5
|
vertical-align: middle;
|
|
6
|
-
color: var(--moduix-checkbox-label-color, var(--moduix-color-foreground));
|
|
6
|
+
color: var(--moduix-checkbox-label-color, var(--moduix-checkbox-group-color, var(--moduix-color-foreground)));
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
}
|
|
@@ -62,13 +62,21 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.control-UQ7BTk[data-invalid][data-focus-visible] {
|
|
65
|
-
outline-color: var(--moduix-checkbox-border-color-invalid, var(--moduix-color-destructive));
|
|
65
|
+
outline-color: var(--moduix-checkbox-focus-ring-color-invalid, var(--moduix-checkbox-border-color-invalid, var(--moduix-color-destructive)));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@media (hover: hover) {
|
|
69
69
|
.control-UQ7BTk[data-state="unchecked"][data-hover]:not([data-readonly], [data-disabled]) {
|
|
70
70
|
background-color: var(--moduix-checkbox-bg-hover, var(--moduix-color-accent));
|
|
71
71
|
}
|
|
72
|
+
|
|
73
|
+
.control-UQ7BTk:is([data-state="checked"], [data-state="indeterminate"])[data-hover]:not([data-readonly], [data-disabled]) {
|
|
74
|
+
background-color: var(--moduix-checkbox-bg-checked-hover, var(--moduix-checkbox-bg-checked, var(--moduix-color-primary)));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.control-UQ7BTk:is([data-state="checked"], [data-state="indeterminate"])[data-hover]:not([data-readonly], [data-disabled])[data-invalid] {
|
|
78
|
+
background-color: var(--moduix-checkbox-bg-invalid-hover, var(--moduix-checkbox-bg-invalid, var(--moduix-color-destructive)));
|
|
79
|
+
}
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
.root-HuLdBM[data-size="xs"] .control-UQ7BTk {
|
|
@@ -121,7 +129,7 @@
|
|
|
121
129
|
}
|
|
122
130
|
|
|
123
131
|
.label-YzjPY9 {
|
|
124
|
-
color: var(--moduix-checkbox-label-color, var(--moduix-color-foreground));
|
|
132
|
+
color: var(--moduix-checkbox-label-color, var(--moduix-checkbox-group-color, var(--moduix-color-foreground)));
|
|
125
133
|
font-size: var(--moduix-checkbox-label-font-size, var(--moduix-text-sm));
|
|
126
134
|
font-weight: var(--moduix-checkbox-label-font-weight, var(--moduix-weight-medium));
|
|
127
135
|
line-height: var(--moduix-checkbox-label-line-height, var(--moduix-line-height-text-sm));
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
color: var(--moduix-clipboard-input-readonly-color, var(--moduix-input-readonly-color, var(--moduix-clipboard-input-color, var(--moduix-color-foreground))));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.input-POor1w[data-disabled] {
|
|
71
|
+
.input-POor1w:is(:disabled, [data-disabled]) {
|
|
72
72
|
pointer-events: none;
|
|
73
73
|
opacity: var(--moduix-clipboard-disabled-opacity, var(--moduix-input-disabled-opacity, var(--moduix-opacity-disabled)));
|
|
74
74
|
}
|
|
@@ -104,6 +104,8 @@
|
|
|
104
104
|
opacity
|
|
105
105
|
var(--moduix-clipboard-transition, var(--moduix-button-transition, var(--moduix-transition-default))),
|
|
106
106
|
box-shadow
|
|
107
|
+
var(--moduix-clipboard-transition, var(--moduix-button-transition, var(--moduix-transition-default))),
|
|
108
|
+
transform
|
|
107
109
|
var(--moduix-clipboard-transition, var(--moduix-button-transition, var(--moduix-transition-default)));
|
|
108
110
|
flex-shrink: 0;
|
|
109
111
|
display: inline-flex;
|
|
@@ -129,6 +131,16 @@
|
|
|
129
131
|
-1);
|
|
130
132
|
}
|
|
131
133
|
|
|
134
|
+
.trigger-dngdJp:active:not(:disabled, [data-disabled]) {
|
|
135
|
+
opacity: .94;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
139
|
+
.trigger-dngdJp:active:not(:disabled, [data-disabled]) {
|
|
140
|
+
transform: translateY(1px) scale(.985);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
132
144
|
.trigger-dngdJp:is(:disabled, [data-disabled]) {
|
|
133
145
|
pointer-events: none;
|
|
134
146
|
opacity: var(--moduix-clipboard-disabled-opacity, var(--moduix-button-disabled-opacity, var(--moduix-opacity-disabled)));
|