@moduix/react 2.7.1 → 2.8.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 +2 -2
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +12 -1
- package/dist/components/angle-slider/AngleSlider_module.css +65 -90
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +5 -5
- package/dist/components/breadcrumbs/Breadcrumbs.js +21 -19
- package/dist/components/carousel/Carousel_module.css +2 -2
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/highlight/Highlight_module.css +0 -1
- package/dist/components/json-tree-view/JsonTreeView_module.css +9 -1
- package/dist/components/marquee/Marquee_module.css +12 -14
- package/dist/components/menu/Menu.js +5 -5
- package/dist/components/native-select/NativeSelect.js +2 -0
- package/dist/components/native-select/NativeSelect_module.css +7 -7
- package/dist/components/navigation-menu/NavigationMenu_module.css +2 -2
- package/dist/components/number-input/NumberInput_module.css +4 -4
- package/dist/components/pagination/Pagination.js +4 -4
- package/dist/components/pagination/Pagination_module.css +1 -1
- package/dist/components/password-input/PasswordInput_module.css +11 -3
- package/dist/components/password-input/index.d.ts +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/popover/Popover.d.ts +2 -2
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -1
- package/dist/components/radio-group/RadioGroup.js +1 -1
- package/dist/components/radio-group/RadioGroup_module.css +1 -4
- package/dist/components/rating-group/RatingGroup.js +4 -4
- package/dist/components/rating-group/RatingGroup_module.css +2 -14
- package/dist/components/segment-group/SegmentGroup.js +1 -0
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -4
- package/dist/components/separator/Separator_module.css +6 -6
- package/dist/components/sidebar/Sidebar.js +39 -41
- package/dist/components/sidebar/Sidebar_module.css +1 -1
- package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
- package/dist/components/simple-grid/SimpleGrid.js +1 -2
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/Slider_module.css +6 -4
- package/dist/components/split-button/SplitButton_module.css +4 -1
- package/dist/components/steps/Steps_module.css +1 -1
- package/dist/components/swap/Swap.js +2 -2
- package/dist/components/swap/Swap_module.css +0 -3
- package/dist/components/switch/Switch.js +2 -2
- package/dist/components/switch/Switch_module.css +2 -2
- package/dist/components/table/Table.js +24 -24
- package/dist/components/table/Table_module.css +4 -2
- package/dist/components/tabs/Tabs.js +2 -2
- package/dist/components/tabs/Tabs_module.css +2 -2
- package/dist/components/tags-input/TagsInput_module.css +5 -4
- package/dist/components/timer/index.d.ts +1 -0
- package/dist/components/toast/Toast.module.js +2 -2
- package/dist/components/toast/Toast_module.css +4 -6
- package/dist/components/toc/Toc.js +3 -1
- package/dist/components/toc/Toc_module.css +2 -1
- package/dist/components/toggle/Toggle.js +2 -2
- package/dist/components/toggle/Toggle_module.css +3 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +1 -0
- package/dist/components/tooltip/Tooltip_module.css +1 -3
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tour/Tour.d.ts +3 -1
- package/dist/components/tour/Tour_module.css +2 -3
- package/dist/components/tour/index.d.ts +1 -0
- package/dist/components/tree-view/TreeView.d.ts +1 -1
- package/dist/components/tree-view/TreeView.js +7 -4
- package/dist/components/tree-view/TreeView_module.css +7 -5
- package/dist/components/typeset/Typeset_module.css +6 -4
- package/dist/styles/animations.css +10 -0
- package/dist/styles/style.css +2 -0
- package/package.json +1 -1
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
outline-color var(--moduix-select-transition, var(--moduix-transition-default)),
|
|
31
31
|
opacity var(--moduix-select-transition, var(--moduix-transition-default));
|
|
32
32
|
margin: 0;
|
|
33
|
-
padding-inline-start: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
33
|
+
padding-inline-start: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5));
|
|
34
34
|
padding-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-2)) +
|
|
35
|
-
var(--moduix-select-action-size, var(--moduix-
|
|
36
|
-
var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3)));
|
|
35
|
+
var(--moduix-select-action-size, var(--moduix-size-xs)) +
|
|
36
|
+
var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5)));
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.root-ZCXVuV:focus-visible {
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
.root-ZCXVuV:is([multiple], [size]:not([size="0"], [size="1"])) {
|
|
55
55
|
height: auto;
|
|
56
56
|
padding-block: var(--moduix-spacing-2);
|
|
57
|
-
padding-inline: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
57
|
+
padding-inline: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5));
|
|
58
58
|
appearance: auto;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@media (forced-colors: active) {
|
|
62
62
|
.root-ZCXVuV {
|
|
63
63
|
appearance: auto;
|
|
64
|
-
padding-inline-end: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
64
|
+
padding-inline-end: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5));
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.indicator-oW5rXf {
|
|
69
69
|
top: 50%;
|
|
70
|
-
width: var(--moduix-select-action-size, var(--moduix-
|
|
71
|
-
height: var(--moduix-select-action-size, var(--moduix-
|
|
70
|
+
width: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
71
|
+
height: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
72
72
|
border-radius: var(--moduix-select-action-radius, var(--moduix-radius-sm));
|
|
73
73
|
background: var(--moduix-select-action-bg, transparent);
|
|
74
74
|
color: var(--moduix-select-icon-color, var(--moduix-color-muted-foreground));
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
@keyframes navigation-menu-viewport-in-GyosQZ {
|
|
371
371
|
from {
|
|
372
372
|
opacity: 0;
|
|
373
|
-
transform:
|
|
373
|
+
transform: scale(var(--moduix-scale-popup));
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
to {
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
|
|
388
388
|
to {
|
|
389
389
|
opacity: 0;
|
|
390
|
-
transform:
|
|
390
|
+
transform: scale(var(--moduix-scale-popup));
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
background-color: var(--moduix-number-input-button-bg-active, var(--moduix-number-input-button-bg-hover, var(--moduix-color-accent)));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
:is(.decrementTrigger-gr_J6_, .incrementTrigger-AZRSzr):focus-visible
|
|
77
|
+
:is(.decrementTrigger-gr_J6_, .incrementTrigger-AZRSzr):focus-visible {
|
|
78
78
|
outline: var(--_number-input-focus-ring-width) solid
|
|
79
79
|
var(--moduix-number-input-focus-ring-color, var(--moduix-color-ring));
|
|
80
80
|
outline-offset: calc(var(--_number-input-focus-ring-width) * -1);
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
pointer-events: none;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
.root-J5l339[data-invalid] :is(.decrementTrigger-gr_J6_, .incrementTrigger-AZRSzr) {
|
|
89
89
|
border-color: var(--moduix-number-input-border-color-invalid, var(--moduix-color-destructive));
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
margin: 0;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.input-MggWIT:focus-visible
|
|
140
|
+
.input-MggWIT:focus-visible {
|
|
141
141
|
outline-color: var(--moduix-number-input-focus-ring-color, var(--moduix-color-ring));
|
|
142
142
|
z-index: 1;
|
|
143
143
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
border-bottom-color: var(--moduix-number-input-border-color-invalid, var(--moduix-color-destructive));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
:is(.input-MggWIT[data-invalid], .root-J5l339[data-invalid] .input-MggWIT):focus-visible
|
|
150
|
+
:is(.input-MggWIT[data-invalid], .root-J5l339[data-invalid] .input-MggWIT):focus-visible {
|
|
151
151
|
outline-color: var(--moduix-number-input-border-color-invalid, var(--moduix-color-destructive));
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -51,7 +51,7 @@ function EdgeIcon({ side }) {
|
|
|
51
51
|
const Pagination_PaginationPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
52
52
|
return /*#__PURE__*/ jsx(Pagination.PrevTrigger, {
|
|
53
53
|
ref: ref,
|
|
54
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
54
|
+
className: clsx(Pagination_module.trigger, (null == children || false === children) && Pagination_module.iconTrigger, className),
|
|
55
55
|
...props,
|
|
56
56
|
"data-slot": "pagination-prev-trigger",
|
|
57
57
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronLeftIcon, {}))
|
|
@@ -60,7 +60,7 @@ const Pagination_PaginationPrevTrigger = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
60
60
|
const Pagination_PaginationNextTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
61
61
|
return /*#__PURE__*/ jsx(Pagination.NextTrigger, {
|
|
62
62
|
ref: ref,
|
|
63
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
63
|
+
className: clsx(Pagination_module.trigger, (null == children || false === children) && Pagination_module.iconTrigger, className),
|
|
64
64
|
...props,
|
|
65
65
|
"data-slot": "pagination-next-trigger",
|
|
66
66
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronRightIcon, {}))
|
|
@@ -69,7 +69,7 @@ const Pagination_PaginationNextTrigger = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
69
69
|
const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
70
70
|
return /*#__PURE__*/ jsx(Pagination.FirstTrigger, {
|
|
71
71
|
ref: ref,
|
|
72
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
72
|
+
className: clsx(Pagination_module.trigger, (null == children || false === children) && Pagination_module.iconTrigger, className),
|
|
73
73
|
...props,
|
|
74
74
|
"data-slot": "pagination-first-trigger",
|
|
75
75
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
@@ -80,7 +80,7 @@ const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
80
80
|
const Pagination_PaginationLastTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
81
81
|
return /*#__PURE__*/ jsx(Pagination.LastTrigger, {
|
|
82
82
|
ref: ref,
|
|
83
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
83
|
+
className: clsx(Pagination_module.trigger, (null == children || false === children) && Pagination_module.iconTrigger, className),
|
|
84
84
|
...props,
|
|
85
85
|
"data-slot": "pagination-last-trigger",
|
|
86
86
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
@@ -115,8 +115,10 @@
|
|
|
115
115
|
display: inline-flex;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
@media (hover: hover) {
|
|
119
|
+
.visibilityTrigger-UlZG7F:not([data-disabled]):not([data-readonly]):hover {
|
|
120
|
+
color: var(--moduix-password-input-trigger-hover-color, var(--moduix-color-foreground));
|
|
121
|
+
}
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
.visibilityTrigger-UlZG7F:focus-visible {
|
|
@@ -143,7 +145,13 @@
|
|
|
143
145
|
height: var(--moduix-password-input-icon-size, var(--moduix-button-icon-size, var(--moduix-spacing-4)));
|
|
144
146
|
}
|
|
145
147
|
|
|
146
|
-
|
|
148
|
+
@media (hover: hover) {
|
|
149
|
+
.visibilityTrigger-UlZG7F:not([data-disabled]):not([data-readonly]):hover .indicator-ede0IZ {
|
|
150
|
+
background: var(--moduix-password-input-trigger-hover-bg, var(--moduix-color-muted));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.visibilityTrigger-UlZG7F:not([data-disabled]):not([data-readonly]):focus-visible .indicator-ede0IZ {
|
|
147
155
|
background: var(--moduix-password-input-trigger-hover-bg, var(--moduix-color-muted));
|
|
148
156
|
}
|
|
149
157
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { PasswordInput, usePasswordInput, usePasswordInputContext } from './PasswordInput.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { PasswordInput, usePasswordInput, usePasswordInputContext } from "./PasswordInput.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive, usePopover, usePopoverContext } from '@ark-ui/react/popover';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
|
-
type PopoverRootProps = ComponentProps<typeof PopoverPrimitive.Root> & OverlayPortalProps;
|
|
5
|
-
type PopoverRootProviderProps = ComponentProps<typeof PopoverPrimitive.RootProvider> & {
|
|
4
|
+
export type PopoverRootProps = ComponentProps<typeof PopoverPrimitive.Root> & OverlayPortalProps;
|
|
5
|
+
export type PopoverRootProviderProps = ComponentProps<typeof PopoverPrimitive.RootProvider> & {
|
|
6
6
|
portalRef?: OverlayPortalProps['portalRef'];
|
|
7
7
|
};
|
|
8
8
|
declare function PopoverRoot({ lazyMount, modal, portalled, portalRef, unmountOnExit, ...props }: PopoverRootProps): import("react").JSX.Element;
|
|
@@ -54,9 +54,9 @@ const RadioGroup_RadioGroupOption = /*#__PURE__*/ forwardRef(function({ children
|
|
|
54
54
|
const RadioGroup_RadioGroupItemControl = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(RadioGroup.ItemControl, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
"data-size": size,
|
|
58
57
|
className: clsx(RadioGroup_module.itemControl, className),
|
|
59
58
|
...props,
|
|
59
|
+
"data-size": size,
|
|
60
60
|
"data-slot": "radio-group-item-control"
|
|
61
61
|
});
|
|
62
62
|
});
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
|
|
35
35
|
.itemControl-l9dtE4 {
|
|
36
36
|
box-sizing: border-box;
|
|
37
|
-
appearance: none;
|
|
38
37
|
width: var(--_radio-size, 1.25rem);
|
|
39
38
|
height: var(--_radio-size, 1.25rem);
|
|
40
39
|
border: var(--moduix-radio-border-width, var(--moduix-border-width-sm)) solid
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
flex: none;
|
|
54
53
|
justify-content: center;
|
|
55
54
|
align-items: center;
|
|
56
|
-
line-height: 0;
|
|
57
55
|
display: inline-flex;
|
|
58
56
|
position: relative;
|
|
59
57
|
}
|
|
@@ -148,8 +146,7 @@
|
|
|
148
146
|
background-color: var(--moduix-radio-bg-checked, var(--moduix-color-primary));
|
|
149
147
|
opacity: var(--moduix-radio-group-indicator-opacity, .12);
|
|
150
148
|
pointer-events: none;
|
|
151
|
-
transition: var(--
|
|
152
|
-
var(--moduix-radio-transition, var(--moduix-transition-default));
|
|
149
|
+
--transition-duration: var(--moduix-duration-normal);
|
|
153
150
|
position: absolute;
|
|
154
151
|
}
|
|
155
152
|
}
|
|
@@ -8,18 +8,18 @@ import RatingGroup_module from "./RatingGroup.module.js";
|
|
|
8
8
|
const RatingGroup_RatingGroupRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
9
9
|
return /*#__PURE__*/ jsx(RatingGroup.Root, {
|
|
10
10
|
ref: ref,
|
|
11
|
-
"data-size": size,
|
|
12
11
|
className: clsx(RatingGroup_module.root, className),
|
|
13
12
|
...props,
|
|
13
|
+
"data-size": size,
|
|
14
14
|
"data-slot": "rating-group-root"
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
const RatingGroup_RatingGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
18
18
|
return /*#__PURE__*/ jsx(RatingGroup.RootProvider, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
"data-size": size,
|
|
21
20
|
className: clsx(RatingGroup_module.root, className),
|
|
22
21
|
...props,
|
|
22
|
+
"data-size": size,
|
|
23
23
|
"data-slot": "rating-group-root-provider"
|
|
24
24
|
});
|
|
25
25
|
});
|
|
@@ -51,10 +51,10 @@ const RatingGroup_RatingGroupItemIndicator = /*#__PURE__*/ forwardRef(function({
|
|
|
51
51
|
const { half, highlighted } = useRatingGroupItemContext();
|
|
52
52
|
return /*#__PURE__*/ jsx("span", {
|
|
53
53
|
ref: ref,
|
|
54
|
-
"data-half": half ? '' : void 0,
|
|
55
|
-
"data-highlighted": highlighted ? '' : void 0,
|
|
56
54
|
className: clsx(RatingGroup_module.itemIndicator, className),
|
|
57
55
|
...props,
|
|
56
|
+
"data-half": half ? '' : void 0,
|
|
57
|
+
"data-highlighted": highlighted ? '' : void 0,
|
|
58
58
|
"data-slot": "rating-group-item-indicator",
|
|
59
59
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
60
60
|
children: [
|
|
@@ -55,12 +55,8 @@
|
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
transition: color var(--moduix-rating-group-transition, var(--moduix-transition-default)),
|
|
57
57
|
opacity var(--moduix-rating-group-transition, var(--moduix-transition-default));
|
|
58
|
-
background-color: #0000;
|
|
59
|
-
border: 0;
|
|
60
58
|
justify-content: center;
|
|
61
59
|
align-items: center;
|
|
62
|
-
margin: 0;
|
|
63
|
-
padding: 0;
|
|
64
60
|
line-height: 0;
|
|
65
61
|
display: inline-flex;
|
|
66
62
|
}
|
|
@@ -73,7 +69,7 @@
|
|
|
73
69
|
pointer-events: none;
|
|
74
70
|
}
|
|
75
71
|
|
|
76
|
-
.item-KSLnDf
|
|
72
|
+
.item-KSLnDf:focus-visible {
|
|
77
73
|
outline: var(--moduix-rating-group-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
78
74
|
solid var(--moduix-rating-group-focus-ring-color, var(--moduix-color-ring));
|
|
79
75
|
outline-offset: var(--moduix-rating-group-focus-ring-offset, var(--moduix-border-width-sm));
|
|
@@ -107,15 +103,7 @@
|
|
|
107
103
|
clip-path: inset(0 100% 0 0);
|
|
108
104
|
}
|
|
109
105
|
|
|
110
|
-
.
|
|
111
|
-
clip-path: inset(0 50% 0 0);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.item-KSLnDf:not([data-highlighted]) .iconFg-SJSzOf {
|
|
115
|
-
clip-path: inset(0 100% 0 0);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.root-estfrz:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) .itemIndicator-vRie_M[data-half] .iconFg-SJSzOf, .root-estfrz:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) .item-KSLnDf[data-half] .iconFg-SJSzOf {
|
|
106
|
+
.root-estfrz:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) .itemIndicator-vRie_M[data-half] .iconFg-SJSzOf {
|
|
119
107
|
clip-path: inset(0 0 0 50%);
|
|
120
108
|
}
|
|
121
109
|
|
|
@@ -13,6 +13,7 @@ function SegmentGroup_useSegmentGroup(props) {
|
|
|
13
13
|
const field = useFieldContext();
|
|
14
14
|
const fieldset = useFieldsetContext();
|
|
15
15
|
return useSegmentGroup({
|
|
16
|
+
orientation: 'horizontal',
|
|
16
17
|
disabled: field?.disabled ?? fieldset?.disabled,
|
|
17
18
|
invalid: field?.invalid ?? fieldset?.invalid,
|
|
18
19
|
readOnly: field?.readOnly,
|
|
@@ -4,10 +4,10 @@ const Select_module = {
|
|
|
4
4
|
label: "label-WNAZBK",
|
|
5
5
|
control: "control-QCSm_x",
|
|
6
6
|
trigger: "trigger-_8XyWR",
|
|
7
|
-
clearTrigger: "clearTrigger-bA52Dh",
|
|
8
7
|
valueText: "valueText-ZjlEZ9",
|
|
9
8
|
itemText: "itemText-yYAdr3",
|
|
10
9
|
indicator: "indicator-ywAB27",
|
|
10
|
+
clearTrigger: "clearTrigger-bA52Dh",
|
|
11
11
|
positioner: "positioner-mCDY9D",
|
|
12
12
|
content: "content-fSDhut",
|
|
13
13
|
"select-content-open": "select-content-open-BbqYJQ",
|
|
@@ -103,6 +103,10 @@
|
|
|
103
103
|
color: var(--moduix-select-placeholder-color, var(--moduix-color-muted-foreground));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
.trigger-_8XyWR:not([data-placeholder-shown]) {
|
|
107
|
+
padding-inline-end: var(--moduix-select-trigger-padding-x-end, 4.25rem);
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
.trigger-_8XyWR[data-disabled], .trigger-_8XyWR[disabled] {
|
|
107
111
|
cursor: default;
|
|
108
112
|
}
|
|
@@ -117,10 +121,6 @@
|
|
|
117
121
|
outline-color: var(--moduix-select-invalid-color, var(--moduix-color-destructive));
|
|
118
122
|
}
|
|
119
123
|
|
|
120
|
-
.control-QCSm_x:has(.clearTrigger-bA52Dh:not([hidden])) .trigger-_8XyWR {
|
|
121
|
-
padding-inline-end: var(--moduix-select-trigger-padding-x-end, 4.25rem);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
124
|
.valueText-ZjlEZ9, .itemText-yYAdr3 {
|
|
125
125
|
text-overflow: ellipsis;
|
|
126
126
|
white-space: nowrap;
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.root-q9iyyK[data-size="xs"] {
|
|
12
|
-
--
|
|
12
|
+
--_separator-size-thickness: var(--moduix-separator-thickness-xs, .5px);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.root-q9iyyK[data-size="sm"] {
|
|
16
|
-
--
|
|
16
|
+
--_separator-size-thickness: var(--moduix-separator-thickness-sm, var(--moduix-border-width-sm));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.root-q9iyyK[data-size="md"] {
|
|
20
|
-
--
|
|
20
|
+
--_separator-size-thickness: var(--moduix-separator-thickness-md, var(--moduix-border-width-md));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.root-q9iyyK[data-size="lg"] {
|
|
24
|
-
--
|
|
24
|
+
--_separator-size-thickness: var(--moduix-separator-thickness-lg, 3px);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.root-q9iyyK[data-variant="dashed"] {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
.root-q9iyyK[data-orientation="horizontal"] {
|
|
36
36
|
width: var(--moduix-separator-length-horizontal, 100%);
|
|
37
|
-
border-block-start-width: var(--moduix-separator-thickness, var(--
|
|
37
|
+
border-block-start-width: var(--moduix-separator-thickness, var(--_separator-size-thickness, var(--moduix-border-width-sm)));
|
|
38
38
|
height: 0;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.root-q9iyyK[data-orientation="vertical"] {
|
|
42
42
|
width: 0;
|
|
43
43
|
height: var(--moduix-separator-length-vertical, 1em);
|
|
44
|
-
border-inline-start-width: var(--moduix-separator-thickness, var(--
|
|
44
|
+
border-inline-start-width: var(--moduix-separator-thickness, var(--_separator-size-thickness, var(--moduix-border-width-sm)));
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -142,13 +142,13 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
142
142
|
type: type,
|
|
143
143
|
"aria-label": ariaLabel,
|
|
144
144
|
"aria-expanded": !collapsed,
|
|
145
|
+
className: clsx(Sidebar_module.trigger, className),
|
|
146
|
+
onClick: handleClick,
|
|
147
|
+
...props,
|
|
145
148
|
"data-scope": "sidebar",
|
|
146
149
|
"data-part": "trigger",
|
|
147
150
|
"data-side": config.side,
|
|
148
151
|
"data-state": collapsed ? 'collapsed' : 'expanded',
|
|
149
|
-
className: clsx(Sidebar_module.trigger, className),
|
|
150
|
-
onClick: handleClick,
|
|
151
|
-
...props,
|
|
152
152
|
"data-slot": "sidebar-trigger",
|
|
153
153
|
children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
154
154
|
});
|
|
@@ -156,30 +156,30 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
156
156
|
const Sidebar_SidebarLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
157
157
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
158
158
|
ref: ref,
|
|
159
|
-
"data-scope": "sidebar",
|
|
160
|
-
"data-part": "label",
|
|
161
159
|
className: clsx(Sidebar_module.label, className),
|
|
162
160
|
...props,
|
|
161
|
+
"data-scope": "sidebar",
|
|
162
|
+
"data-part": "label",
|
|
163
163
|
"data-slot": "sidebar-label"
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
167
167
|
return /*#__PURE__*/ jsx(ark.header, {
|
|
168
168
|
ref: ref,
|
|
169
|
-
"data-scope": "sidebar",
|
|
170
|
-
"data-part": "header",
|
|
171
169
|
className: clsx(Sidebar_module.header, className),
|
|
172
170
|
...props,
|
|
171
|
+
"data-scope": "sidebar",
|
|
172
|
+
"data-part": "header",
|
|
173
173
|
"data-slot": "sidebar-header"
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
177
177
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
178
178
|
ref: ref,
|
|
179
|
-
"data-scope": "sidebar",
|
|
180
|
-
"data-part": "content",
|
|
181
179
|
className: clsx(Sidebar_module.content, className),
|
|
182
180
|
...props,
|
|
181
|
+
"data-scope": "sidebar",
|
|
182
|
+
"data-part": "content",
|
|
183
183
|
"data-slot": "sidebar-content"
|
|
184
184
|
});
|
|
185
185
|
});
|
|
@@ -187,10 +187,10 @@ const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ class
|
|
|
187
187
|
const { collapsed } = useSidebar();
|
|
188
188
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
189
189
|
ref: ref,
|
|
190
|
-
"data-scope": "sidebar",
|
|
191
|
-
"data-part": "expanded-content",
|
|
192
190
|
className: className,
|
|
193
191
|
...props,
|
|
192
|
+
"data-scope": "sidebar",
|
|
193
|
+
"data-part": "expanded-content",
|
|
194
194
|
"data-slot": "sidebar-expanded-content",
|
|
195
195
|
hidden: collapsed
|
|
196
196
|
});
|
|
@@ -199,10 +199,10 @@ const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
199
199
|
const { collapsed } = useSidebar();
|
|
200
200
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
201
201
|
ref: ref,
|
|
202
|
-
"data-scope": "sidebar",
|
|
203
|
-
"data-part": "collapsed-content",
|
|
204
202
|
className: className,
|
|
205
203
|
...props,
|
|
204
|
+
"data-scope": "sidebar",
|
|
205
|
+
"data-part": "collapsed-content",
|
|
206
206
|
"data-slot": "sidebar-collapsed-content",
|
|
207
207
|
hidden: !collapsed
|
|
208
208
|
});
|
|
@@ -210,40 +210,40 @@ const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
210
210
|
const Sidebar_SidebarFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
211
211
|
return /*#__PURE__*/ jsx(ark.footer, {
|
|
212
212
|
ref: ref,
|
|
213
|
-
"data-scope": "sidebar",
|
|
214
|
-
"data-part": "footer",
|
|
215
213
|
className: clsx(Sidebar_module.footer, className),
|
|
216
214
|
...props,
|
|
215
|
+
"data-scope": "sidebar",
|
|
216
|
+
"data-part": "footer",
|
|
217
217
|
"data-slot": "sidebar-footer"
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
220
|
const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
221
221
|
return /*#__PURE__*/ jsx(ark.section, {
|
|
222
222
|
ref: ref,
|
|
223
|
-
"data-scope": "sidebar",
|
|
224
|
-
"data-part": "group",
|
|
225
223
|
className: clsx(Sidebar_module.group, className),
|
|
226
224
|
...props,
|
|
225
|
+
"data-scope": "sidebar",
|
|
226
|
+
"data-part": "group",
|
|
227
227
|
"data-slot": "sidebar-group"
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
230
|
const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
231
231
|
return /*#__PURE__*/ jsx(ark.h3, {
|
|
232
232
|
ref: ref,
|
|
233
|
-
"data-scope": "sidebar",
|
|
234
|
-
"data-part": "group-label",
|
|
235
233
|
className: clsx(Sidebar_module.groupLabel, className),
|
|
236
234
|
...props,
|
|
235
|
+
"data-scope": "sidebar",
|
|
236
|
+
"data-part": "group-label",
|
|
237
237
|
"data-slot": "sidebar-group-label"
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
const Sidebar_SidebarGroupHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
241
241
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
242
242
|
ref: ref,
|
|
243
|
-
"data-scope": "sidebar",
|
|
244
|
-
"data-part": "group-header",
|
|
245
243
|
className: clsx(Sidebar_module.groupHeader, className),
|
|
246
244
|
...props,
|
|
245
|
+
"data-scope": "sidebar",
|
|
246
|
+
"data-part": "group-header",
|
|
247
247
|
"data-slot": "sidebar-group-header"
|
|
248
248
|
});
|
|
249
249
|
});
|
|
@@ -251,30 +251,30 @@ const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className
|
|
|
251
251
|
return /*#__PURE__*/ jsx(ark.button, {
|
|
252
252
|
ref: ref,
|
|
253
253
|
type: type,
|
|
254
|
-
"data-scope": "sidebar",
|
|
255
|
-
"data-part": "group-action",
|
|
256
254
|
className: clsx(Sidebar_module.groupAction, className),
|
|
257
255
|
...props,
|
|
256
|
+
"data-scope": "sidebar",
|
|
257
|
+
"data-part": "group-action",
|
|
258
258
|
"data-slot": "sidebar-group-action"
|
|
259
259
|
});
|
|
260
260
|
});
|
|
261
261
|
const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
262
262
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
263
263
|
ref: ref,
|
|
264
|
-
"data-scope": "sidebar",
|
|
265
|
-
"data-part": "navigation-list",
|
|
266
264
|
className: clsx(Sidebar_module.menu, className),
|
|
267
265
|
...props,
|
|
266
|
+
"data-scope": "sidebar",
|
|
267
|
+
"data-part": "navigation-list",
|
|
268
268
|
"data-slot": "sidebar-navigation-list"
|
|
269
269
|
});
|
|
270
270
|
});
|
|
271
271
|
const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
272
272
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
273
273
|
ref: ref,
|
|
274
|
-
"data-scope": "sidebar",
|
|
275
|
-
"data-part": "navigation-item",
|
|
276
274
|
className: clsx(Sidebar_module.menuItem, className),
|
|
277
275
|
...props,
|
|
276
|
+
"data-scope": "sidebar",
|
|
277
|
+
"data-part": "navigation-item",
|
|
278
278
|
"data-slot": "sidebar-navigation-item"
|
|
279
279
|
});
|
|
280
280
|
});
|
|
@@ -283,42 +283,42 @@ const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ acti
|
|
|
283
283
|
ref: ref,
|
|
284
284
|
type: type,
|
|
285
285
|
"aria-current": ariaCurrent ?? (active ? 'page' : void 0),
|
|
286
|
+
className: clsx(Sidebar_module.menuButton, className),
|
|
287
|
+
...props,
|
|
286
288
|
"data-scope": "sidebar",
|
|
287
289
|
"data-part": "navigation-button",
|
|
288
290
|
"data-active": active ? '' : void 0,
|
|
289
291
|
"data-size": size,
|
|
290
|
-
className: clsx(Sidebar_module.menuButton, className),
|
|
291
|
-
...props,
|
|
292
292
|
"data-slot": "sidebar-navigation-button"
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
const Sidebar_SidebarNavigationBadge = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
296
296
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
297
297
|
ref: ref,
|
|
298
|
-
"data-scope": "sidebar",
|
|
299
|
-
"data-part": "navigation-badge",
|
|
300
298
|
className: clsx(Sidebar_module.menuBadge, className),
|
|
301
299
|
...props,
|
|
300
|
+
"data-scope": "sidebar",
|
|
301
|
+
"data-part": "navigation-badge",
|
|
302
302
|
"data-slot": "sidebar-navigation-badge"
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
305
|
const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
306
306
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
307
307
|
ref: ref,
|
|
308
|
-
"data-scope": "sidebar",
|
|
309
|
-
"data-part": "navigation-sub-list",
|
|
310
308
|
className: clsx(Sidebar_module.menuSub, className),
|
|
311
309
|
...props,
|
|
310
|
+
"data-scope": "sidebar",
|
|
311
|
+
"data-part": "navigation-sub-list",
|
|
312
312
|
"data-slot": "sidebar-navigation-sub-list"
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
315
|
const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
316
316
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
317
317
|
ref: ref,
|
|
318
|
-
"data-scope": "sidebar",
|
|
319
|
-
"data-part": "navigation-sub-item",
|
|
320
318
|
className: clsx(Sidebar_module.menuSubItem, className),
|
|
321
319
|
...props,
|
|
320
|
+
"data-scope": "sidebar",
|
|
321
|
+
"data-part": "navigation-sub-item",
|
|
322
322
|
"data-slot": "sidebar-navigation-sub-item"
|
|
323
323
|
});
|
|
324
324
|
});
|
|
@@ -326,11 +326,11 @@ const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ a
|
|
|
326
326
|
return /*#__PURE__*/ jsx(ark.a, {
|
|
327
327
|
ref: ref,
|
|
328
328
|
"aria-current": ariaCurrent ?? (active ? 'page' : void 0),
|
|
329
|
+
className: clsx(Sidebar_module.menuSubButton, className),
|
|
330
|
+
...props,
|
|
329
331
|
"data-scope": "sidebar",
|
|
330
332
|
"data-part": "navigation-sub-button",
|
|
331
333
|
"data-active": active ? '' : void 0,
|
|
332
|
-
className: clsx(Sidebar_module.menuSubButton, className),
|
|
333
|
-
...props,
|
|
334
334
|
"data-slot": "sidebar-navigation-sub-button",
|
|
335
335
|
children: 'string' == typeof children ? /*#__PURE__*/ jsx("span", {
|
|
336
336
|
"data-slot": "sidebar-navigation-sub-label",
|
|
@@ -367,16 +367,14 @@ const Sidebar_SidebarInput = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
367
367
|
return /*#__PURE__*/ jsx(Input.Root, {
|
|
368
368
|
ref: ref,
|
|
369
369
|
className: clsx(Sidebar_module.input, className),
|
|
370
|
-
...props
|
|
371
|
-
"data-slot": "sidebar-input"
|
|
370
|
+
...props
|
|
372
371
|
});
|
|
373
372
|
});
|
|
374
373
|
const Sidebar_SidebarSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
375
374
|
return /*#__PURE__*/ jsx(Separator.Root, {
|
|
376
375
|
ref: ref,
|
|
377
376
|
className: clsx(Sidebar_module.separator, className),
|
|
378
|
-
...props
|
|
379
|
-
"data-slot": "sidebar-separator"
|
|
377
|
+
...props
|
|
380
378
|
});
|
|
381
379
|
});
|
|
382
380
|
const Sidebar = Object.assign(Sidebar_SidebarRoot, {
|