@moduix/react 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -173
- package/dist/components/accordion/Accordion.css +47 -47
- package/dist/components/alert/Alert.css +62 -46
- package/dist/components/angle-slider/AngleSlider.css +65 -64
- package/dist/components/aspect-ratio/AspectRatio.css +2 -2
- package/dist/components/avatar/Avatar.css +26 -26
- package/dist/components/badge/Badge.css +34 -33
- package/dist/components/bleed/Bleed.css +13 -13
- package/dist/components/breadcrumbs/Breadcrumbs.css +29 -28
- package/dist/components/button/Button.css +81 -78
- package/dist/components/card/Card.css +46 -46
- package/dist/components/carousel/Carousel.css +57 -57
- package/dist/components/checkbox/Checkbox.css +40 -40
- package/dist/components/clipboard/Clipboard.css +68 -59
- package/dist/components/close-button/CloseButton.css +17 -17
- package/dist/components/collapsible/Collapsible.css +40 -38
- package/dist/components/color-picker/ColorPicker.css +162 -151
- package/dist/components/combobox/Combobox.css +120 -130
- package/dist/components/command-palette/CommandPalette.css +173 -177
- package/dist/components/command-palette/CommandPalette.module.js +0 -1
- package/dist/components/container/Container.css +12 -12
- package/dist/components/date-input/DateInput.css +41 -39
- package/dist/components/date-picker/DatePicker.css +181 -186
- package/dist/components/dialog/Dialog.css +84 -78
- package/dist/components/drawer/Drawer.css +126 -107
- package/dist/components/editable/Editable.css +64 -60
- package/dist/components/empty/Empty.css +25 -25
- package/dist/components/field/Field.css +46 -44
- package/dist/components/fieldset/Fieldset.css +22 -22
- package/dist/components/file-upload/FileUpload.css +128 -125
- package/dist/components/floating-panel/FloatingPanel.css +114 -110
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/heading/Heading.css +26 -26
- package/dist/components/highlight/Highlight.css +8 -8
- package/dist/components/hover-card/HoverCard.css +49 -47
- package/dist/components/image/Image.css +2 -2
- package/dist/components/image-cropper/ImageCropper.css +63 -56
- package/dist/components/input/Input.css +47 -46
- package/dist/components/input-group/InputGroup.css +71 -70
- package/dist/components/kbd/Kbd.css +16 -16
- package/dist/components/lightbox/Lightbox.css +80 -77
- package/dist/components/list/List.css +32 -32
- package/dist/components/listbox/Listbox.css +121 -116
- package/dist/components/marquee/Marquee.css +16 -16
- package/dist/components/menu/Menu.css +122 -118
- package/dist/components/native-select/NativeSelect.css +48 -42
- package/dist/components/number-input/NumberInput.css +62 -60
- package/dist/components/pagination/Pagination.css +35 -34
- package/dist/components/password-input/PasswordInput.css +60 -59
- package/dist/components/pin-input/PinInput.css +35 -35
- package/dist/components/popover/Popover.css +81 -76
- package/dist/components/progress-circular/ProgressCircular.css +20 -20
- package/dist/components/progress-linear/ProgressLinear.css +29 -28
- package/dist/components/qr-code/QrCode.css +39 -35
- package/dist/components/radio-group/RadioGroup.css +48 -48
- package/dist/components/rating-group/RatingGroup.css +30 -30
- package/dist/components/scroll-area/ScrollArea.css +34 -34
- package/dist/components/segment-group/SegmentGroup.css +37 -37
- package/dist/components/select/Select.css +137 -128
- package/dist/components/select/Select.d.ts +0 -5
- package/dist/components/select/Select.js +1 -9
- package/dist/components/select/Select.module.js +0 -1
- package/dist/components/separator/Separator.css +13 -13
- package/dist/components/sidebar/Sidebar.css +143 -142
- package/dist/components/signature-pad/SignaturePad.css +51 -50
- package/dist/components/skeleton/Skeleton.css +7 -5
- package/dist/components/slider/Slider.css +61 -59
- package/dist/components/spinner/Spinner.css +12 -12
- package/dist/components/split-button/SplitButton.css +12 -12
- package/dist/components/splitter/Splitter.css +63 -62
- package/dist/components/splitter/Splitter.js +2 -2
- package/dist/components/stack/Stack.css +4 -4
- package/dist/components/stack/Stack.js +3 -3
- package/dist/components/steps/Steps.css +89 -88
- package/dist/components/swap/Swap.css +7 -7
- package/dist/components/switch/Switch.css +59 -57
- package/dist/components/table/Table.css +58 -56
- package/dist/components/tabs/Tabs.css +64 -62
- package/dist/components/tag/Tag.css +45 -45
- package/dist/components/tags-input/TagsInput.css +93 -86
- package/dist/components/text/Text.css +23 -23
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.css +27 -25
- package/dist/components/timer/Timer.css +38 -37
- package/dist/components/toast/Toast.css +94 -78
- package/dist/components/toggle/Toggle.css +66 -66
- package/dist/components/toggle-group/ToggleGroup.css +16 -16
- package/dist/components/tooltip/Tooltip.css +56 -52
- package/dist/components/tour/Tour.css +121 -117
- package/dist/components/tree-view/TreeView.css +91 -86
- package/dist/components/typeset/Typeset.css +317 -0
- package/dist/components/typeset/Typeset.d.ts +7 -0
- package/dist/components/typeset/Typeset.js +33 -0
- package/dist/components/typeset/Typeset.module.js +8 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/lib/moduix/presets/contrast.css +64 -0
- package/dist/lib/moduix/presets/dense.css +77 -0
- package/dist/lib/moduix/presets/soft.css +76 -0
- package/dist/lib/moduix/styles/reset.css +34 -1
- package/dist/lib/moduix/styles/style.css +230 -213
- package/dist/presets/contrast.d.ts +1 -0
- package/dist/presets/contrast.js +1 -0
- package/dist/presets/dense.d.ts +1 -0
- package/dist/presets/dense.js +1 -0
- package/dist/presets/soft.d.ts +1 -0
- package/dist/presets/soft.js +1 -0
- package/package.json +4 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer moduix.components {
|
|
2
2
|
._3r0tBa_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
isolation: isolate;
|
|
5
|
-
max-width: var(--segment-group-max-width, 100%);
|
|
5
|
+
max-width: var(--moduix-segment-group-max-width, 100%);
|
|
6
6
|
align-items: stretch;
|
|
7
|
-
gap: var(--segment-group-gap, var(--spacing-1));
|
|
8
|
-
padding: var(--segment-group-padding, var(--spacing-1));
|
|
9
|
-
border: var(--segment-group-border-width, var(--border-width-sm)) solid
|
|
10
|
-
var(--segment-group-border-color, var(--color-border));
|
|
11
|
-
border-radius: var(--segment-group-radius, var(--radius-lg));
|
|
12
|
-
background-color: var(--segment-group-bg, var(--color-muted));
|
|
13
|
-
color: var(--segment-group-color, var(--color-foreground));
|
|
7
|
+
gap: var(--moduix-segment-group-gap, var(--moduix-spacing-1));
|
|
8
|
+
padding: var(--moduix-segment-group-padding, var(--moduix-spacing-1));
|
|
9
|
+
border: var(--moduix-segment-group-border-width, var(--moduix-border-width-sm)) solid
|
|
10
|
+
var(--moduix-segment-group-border-color, var(--moduix-color-border));
|
|
11
|
+
border-radius: var(--moduix-segment-group-radius, var(--moduix-radius-lg));
|
|
12
|
+
background-color: var(--moduix-segment-group-bg, var(--moduix-color-muted));
|
|
13
|
+
color: var(--moduix-segment-group-color, var(--moduix-color-foreground));
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
position: relative;
|
|
16
16
|
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&[data-disabled] {
|
|
23
|
-
opacity: var(--segment-group-disabled-opacity, var(--opacity-disabled));
|
|
23
|
+
opacity: var(--moduix-segment-group-disabled-opacity, var(--moduix-opacity-disabled));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&[data-invalid] {
|
|
27
|
-
border-color: var(--segment-group-border-color-invalid, var(--color-destructive));
|
|
27
|
+
border-color: var(--moduix-segment-group-border-color-invalid, var(--moduix-color-destructive));
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
._3r0tBa_label {
|
|
32
32
|
z-index: 1;
|
|
33
|
-
color: var(--segment-group-label-color, var(--segment-group-color, var(--color-foreground)));
|
|
34
|
-
font-size: var(--segment-group-label-font-size, var(--text-sm));
|
|
35
|
-
font-weight: var(--segment-group-label-font-weight, var(--weight-semibold));
|
|
36
|
-
line-height: var(--segment-group-label-line-height, var(--line-height-text-sm));
|
|
33
|
+
color: var(--moduix-segment-group-label-color, var(--moduix-segment-group-color, var(--moduix-color-foreground)));
|
|
34
|
+
font-size: var(--moduix-segment-group-label-font-size, var(--moduix-text-sm));
|
|
35
|
+
font-weight: var(--moduix-segment-group-label-font-weight, var(--moduix-weight-semibold));
|
|
36
|
+
line-height: var(--moduix-segment-group-label-line-height, var(--moduix-line-height-text-sm));
|
|
37
37
|
user-select: none;
|
|
38
38
|
position: relative;
|
|
39
39
|
}
|
|
@@ -43,41 +43,41 @@
|
|
|
43
43
|
z-index: 1;
|
|
44
44
|
justify-content: center;
|
|
45
45
|
align-items: center;
|
|
46
|
-
gap: var(--segment-group-item-gap, var(--spacing-2));
|
|
47
|
-
min-height: var(--segment-group-item-height,
|
|
48
|
-
border-radius: var(--segment-group-item-radius, var(--radius-md));
|
|
49
|
-
padding-inline: var(--segment-group-item-padding-x,
|
|
50
|
-
color: var(--segment-group-item-color, var(--color-muted-foreground));
|
|
51
|
-
font-size: var(--segment-group-item-font-size, var(--text-sm));
|
|
52
|
-
font-weight: var(--segment-group-item-font-weight, var(--weight-medium));
|
|
53
|
-
line-height: var(--segment-group-item-line-height, var(--line-height-text-sm));
|
|
46
|
+
gap: var(--moduix-segment-group-item-gap, var(--moduix-spacing-2));
|
|
47
|
+
min-height: var(--moduix-segment-group-item-height, var(--moduix-size-sm));
|
|
48
|
+
border-radius: var(--moduix-segment-group-item-radius, var(--moduix-radius-md));
|
|
49
|
+
padding-inline: var(--moduix-segment-group-item-padding-x, var(--moduix-spacing-3-5));
|
|
50
|
+
color: var(--moduix-segment-group-item-color, var(--moduix-color-muted-foreground));
|
|
51
|
+
font-size: var(--moduix-segment-group-item-font-size, var(--moduix-text-sm));
|
|
52
|
+
font-weight: var(--moduix-segment-group-item-font-weight, var(--moduix-weight-medium));
|
|
53
|
+
line-height: var(--moduix-segment-group-item-line-height, var(--moduix-line-height-text-sm));
|
|
54
54
|
user-select: none;
|
|
55
55
|
white-space: nowrap;
|
|
56
56
|
cursor: pointer;
|
|
57
|
-
transition: color var(--segment-group-transition, var(--transition-default)),
|
|
58
|
-
opacity var(--segment-group-transition, var(--transition-default));
|
|
57
|
+
transition: color var(--moduix-segment-group-transition, var(--moduix-transition-default)),
|
|
58
|
+
opacity var(--moduix-segment-group-transition, var(--moduix-transition-default));
|
|
59
59
|
outline: 0;
|
|
60
60
|
display: inline-flex;
|
|
61
61
|
position: relative;
|
|
62
62
|
|
|
63
63
|
@media (hover: hover) {
|
|
64
64
|
&:hover:not([data-readonly], [data-disabled]) {
|
|
65
|
-
color: var(--segment-group-item-color-hover, var(--color-foreground));
|
|
65
|
+
color: var(--moduix-segment-group-item-color-hover, var(--moduix-color-foreground));
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&[data-state="checked"] {
|
|
70
|
-
color: var(--segment-group-item-color-checked, var(--color-foreground));
|
|
70
|
+
color: var(--moduix-segment-group-item-color-checked, var(--moduix-color-foreground));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&[data-focus-visible] {
|
|
74
|
-
outline: var(--segment-group-focus-ring-width, var(--border-width-sm))
|
|
75
|
-
var(--segment-group-focus-ring-color, var(--color-ring));
|
|
76
|
-
outline-offset: var(--segment-group-focus-ring-offset, var(--border-width-sm));
|
|
74
|
+
outline: var(--moduix-segment-group-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
75
|
+
solid var(--moduix-segment-group-focus-ring-color, var(--moduix-color-ring));
|
|
76
|
+
outline-offset: var(--moduix-segment-group-focus-ring-offset, var(--moduix-border-width-sm));
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&[data-invalid][data-focus-visible] {
|
|
80
|
-
outline-color: var(--segment-group-focus-ring-color-invalid, var(--color-destructive));
|
|
80
|
+
outline-color: var(--moduix-segment-group-focus-ring-color-invalid, var(--moduix-color-destructive));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&[data-readonly], &[data-disabled] {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&[data-disabled] {
|
|
88
|
-
opacity: var(--segment-group-item-disabled-opacity, var(--opacity-disabled));
|
|
88
|
+
opacity: var(--moduix-segment-group-item-disabled-opacity, var(--moduix-opacity-disabled));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
&[data-orientation="vertical"] {
|
|
@@ -104,16 +104,16 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
._3r0tBa_indicator {
|
|
107
|
-
--transition-duration: var(--segment-group-indicator-transition-duration, var(--duration-normal));
|
|
108
|
-
--transition-timing-function: var(--segment-group-indicator-transition-timing-function, var(--ease-in-out));
|
|
107
|
+
--transition-duration: var(--moduix-segment-group-indicator-transition-duration, var(--moduix-duration-normal));
|
|
108
|
+
--transition-timing-function: var(--moduix-segment-group-indicator-transition-timing-function, var(--moduix-ease-in-out));
|
|
109
109
|
z-index: 0;
|
|
110
110
|
top: var(--top);
|
|
111
111
|
left: var(--left);
|
|
112
112
|
width: var(--width);
|
|
113
113
|
height: var(--height);
|
|
114
|
-
border-radius: var(--segment-group-indicator-radius, var(--radius-md));
|
|
115
|
-
background-color: var(--segment-group-indicator-bg, var(--color-background));
|
|
116
|
-
box-shadow: var(--segment-group-indicator-shadow, var(--shadow-sm));
|
|
114
|
+
border-radius: var(--moduix-segment-group-indicator-radius, var(--moduix-radius-md));
|
|
115
|
+
background-color: var(--moduix-segment-group-indicator-bg, var(--moduix-color-background));
|
|
116
|
+
box-shadow: var(--moduix-segment-group-indicator-shadow, var(--moduix-shadow-sm));
|
|
117
117
|
pointer-events: none;
|
|
118
118
|
position: absolute;
|
|
119
119
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer moduix.components {
|
|
2
2
|
@keyframes FGbIOa_select-content-open {
|
|
3
3
|
from {
|
|
4
|
-
opacity: var(--select-content-closed-opacity, var(--popup-motion-starting-opacity, 0));
|
|
5
|
-
translate: var(--popup-motion-starting-translate-x, 0)
|
|
6
|
-
var(--popup-motion-starting-translate-y, 0);
|
|
7
|
-
transform: scale(var(--select-content-closed-scale, var(--popup-motion-starting-scale, var(--scale-popup))));
|
|
4
|
+
opacity: var(--moduix-select-content-closed-opacity, var(--moduix-popup-motion-starting-opacity, 0));
|
|
5
|
+
translate: var(--moduix-popup-motion-starting-translate-x, 0)
|
|
6
|
+
var(--moduix-popup-motion-starting-translate-y, 0);
|
|
7
|
+
transform: scale(var(--moduix-select-content-closed-scale, var(--moduix-popup-motion-starting-scale, var(--moduix-scale-popup))));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
to {
|
|
@@ -20,47 +20,48 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
to {
|
|
23
|
-
opacity: var(--select-content-closed-opacity, var(--popup-motion-ending-opacity, 0));
|
|
24
|
-
translate: var(--popup-motion-ending-translate-x, 0)
|
|
25
|
-
|
|
23
|
+
opacity: var(--moduix-select-content-closed-opacity, var(--moduix-popup-motion-ending-opacity, 0));
|
|
24
|
+
translate: var(--moduix-popup-motion-ending-translate-x, 0)
|
|
25
|
+
var(--moduix-popup-motion-ending-translate-y, 0);
|
|
26
|
+
transform: scale(var(--moduix-select-content-closed-scale, var(--moduix-popup-motion-ending-scale, var(--moduix-scale-popup))));
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.FGbIOa_root {
|
|
30
31
|
box-sizing: border-box;
|
|
31
|
-
width: var(--select-width, 14rem);
|
|
32
|
-
max-width: var(--select-max-width, 100%);
|
|
33
|
-
gap: var(--select-root-gap,
|
|
32
|
+
width: var(--moduix-select-width, 14rem);
|
|
33
|
+
max-width: var(--moduix-select-max-width, 100%);
|
|
34
|
+
gap: var(--moduix-select-root-gap, var(--moduix-spacing-1-5));
|
|
34
35
|
min-width: 0;
|
|
35
|
-
color: var(--select-color, var(--color-foreground));
|
|
36
|
+
color: var(--moduix-select-color, var(--moduix-color-foreground));
|
|
36
37
|
flex-direction: column;
|
|
37
38
|
display: flex;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.FGbIOa_label {
|
|
41
|
-
color: var(--select-label-color, var(--select-color, var(--color-foreground)));
|
|
42
|
-
font-size: var(--select-label-font-size, var(--text-sm));
|
|
43
|
-
font-weight: var(--select-label-font-weight, var(--weight-medium));
|
|
44
|
-
line-height: var(--select-label-line-height, var(--line-height-text-sm));
|
|
42
|
+
color: var(--moduix-select-label-color, var(--moduix-select-color, var(--moduix-color-foreground)));
|
|
43
|
+
font-size: var(--moduix-select-label-font-size, var(--moduix-text-sm));
|
|
44
|
+
font-weight: var(--moduix-select-label-font-weight, var(--moduix-weight-medium));
|
|
45
|
+
line-height: var(--moduix-select-label-line-height, var(--moduix-line-height-text-sm));
|
|
45
46
|
user-select: none;
|
|
46
47
|
align-items: center;
|
|
47
48
|
display: inline-flex;
|
|
48
49
|
|
|
49
50
|
&[data-disabled] {
|
|
50
|
-
opacity: var(--select-disabled-opacity, var(--opacity-disabled));
|
|
51
|
+
opacity: var(--moduix-select-disabled-opacity, var(--moduix-opacity-disabled));
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.FGbIOa_control {
|
|
55
56
|
width: 100%;
|
|
56
57
|
min-width: 0;
|
|
57
|
-
color: var(--select-color, var(--color-foreground));
|
|
58
|
+
color: var(--moduix-select-color, var(--moduix-color-foreground));
|
|
58
59
|
align-items: center;
|
|
59
60
|
display: flex;
|
|
60
61
|
position: relative;
|
|
61
62
|
|
|
62
63
|
&[data-disabled] {
|
|
63
|
-
opacity: var(--select-disabled-opacity, var(--opacity-disabled));
|
|
64
|
+
opacity: var(--moduix-select-disabled-opacity, var(--moduix-opacity-disabled));
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -68,64 +69,59 @@
|
|
|
68
69
|
box-sizing: border-box;
|
|
69
70
|
width: 100%;
|
|
70
71
|
min-width: 0;
|
|
71
|
-
height: var(--select-control-height, var(--size-
|
|
72
|
-
border: var(--select-border-width, var(--border-width-sm)) solid
|
|
73
|
-
var(--select-border-color, var(--color-border));
|
|
74
|
-
border-radius: var(--select-radius, var(--radius-md));
|
|
75
|
-
padding-inline: var(--select-trigger-padding-x-start,
|
|
76
|
-
calc(var(--select-action-offset-right,
|
|
77
|
-
var(--select-
|
|
78
|
-
|
|
72
|
+
height: var(--moduix-select-control-height, var(--moduix-size-md));
|
|
73
|
+
border: var(--moduix-select-border-width, var(--moduix-border-width-sm)) solid
|
|
74
|
+
var(--moduix-select-border-color, var(--moduix-color-border));
|
|
75
|
+
border-radius: var(--moduix-select-radius, var(--moduix-radius-md));
|
|
76
|
+
padding-inline: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5))
|
|
77
|
+
calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-2)) +
|
|
78
|
+
var(--moduix-select-action-size, var(--moduix-size-xs)) +
|
|
79
|
+
var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5)));
|
|
80
|
+
background-color: var(--moduix-select-bg, var(--moduix-color-background));
|
|
79
81
|
color: inherit;
|
|
80
82
|
font: inherit;
|
|
81
83
|
text-align: start;
|
|
82
|
-
outline: var(--select-focus-ring-width, var(--border-width-sm))
|
|
83
|
-
|
|
84
|
+
outline: var(--moduix-select-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
85
|
+
solid transparent;
|
|
86
|
+
outline-offset: calc(var(--moduix-select-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))) *
|
|
87
|
+
-1);
|
|
84
88
|
cursor: pointer;
|
|
85
89
|
user-select: none;
|
|
86
|
-
transition: background-color var(--select-transition, var(--transition-default)),
|
|
87
|
-
border-color var(--select-transition, var(--transition-default)),
|
|
88
|
-
outline-color var(--select-transition, var(--transition-default));
|
|
90
|
+
transition: background-color var(--moduix-select-transition, var(--moduix-transition-default)),
|
|
91
|
+
border-color var(--moduix-select-transition, var(--moduix-transition-default)),
|
|
92
|
+
outline-color var(--moduix-select-transition, var(--moduix-transition-default));
|
|
89
93
|
justify-content: flex-start;
|
|
90
94
|
align-items: center;
|
|
91
95
|
margin: 0;
|
|
92
96
|
display: inline-flex;
|
|
97
|
+
position: relative;
|
|
93
98
|
|
|
94
99
|
&[data-placeholder-shown] {
|
|
95
|
-
color: var(--select-placeholder-color, var(--color-muted-foreground));
|
|
100
|
+
color: var(--moduix-select-placeholder-color, var(--moduix-color-muted-foreground));
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
&[data-state="open"] {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
outline-color: var(--select-focus-ring-color, var(--color-ring));
|
|
104
|
+
border-color: var(--moduix-select-focus-ring-color, var(--moduix-color-ring));
|
|
105
|
+
outline-color: var(--moduix-select-focus-ring-color, var(--moduix-color-ring));
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
&[data-disabled], &[disabled] {
|
|
105
109
|
cursor: default;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
|
-
|
|
109
|
-
border-color: var(--select-focus-ring-color, var(--color-ring));
|
|
110
|
-
outline-color: var(--select-focus-ring-color, var(--color-ring));
|
|
112
|
+
&:focus-visible {
|
|
113
|
+
border-color: var(--moduix-select-focus-ring-color, var(--moduix-color-ring));
|
|
114
|
+
outline-color: var(--moduix-select-focus-ring-color, var(--moduix-color-ring));
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
.FGbIOa_control[data-invalid] & {
|
|
114
|
-
border-color: var(--select-invalid-color, var(--color-destructive));
|
|
115
|
-
outline-color: var(--select-invalid-color, var(--color-destructive));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.FGbIOa_control:not([data-disabled]) & {
|
|
119
|
-
@media (hover: hover) {
|
|
120
|
-
&:hover {
|
|
121
|
-
background-color: var(--select-bg-hover, var(--color-accent));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
118
|
+
border-color: var(--moduix-select-invalid-color, var(--moduix-color-destructive));
|
|
119
|
+
outline-color: var(--moduix-select-invalid-color, var(--moduix-color-destructive));
|
|
124
120
|
}
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
.FGbIOa_control:has(.FGbIOa_clearTrigger:not([hidden])) .FGbIOa_trigger {
|
|
128
|
-
padding-inline-end: var(--select-trigger-padding-x-end, 4.25rem);
|
|
124
|
+
padding-inline-end: var(--moduix-select-trigger-padding-x-end, 4.25rem);
|
|
129
125
|
}
|
|
130
126
|
|
|
131
127
|
.FGbIOa_valueText {
|
|
@@ -136,28 +132,16 @@
|
|
|
136
132
|
overflow: hidden;
|
|
137
133
|
}
|
|
138
134
|
|
|
139
|
-
.FGbIOa_indicators {
|
|
140
|
-
top: 50%;
|
|
141
|
-
right: var(--select-action-offset-right, .5rem);
|
|
142
|
-
align-items: center;
|
|
143
|
-
gap: var(--select-action-gap, .125rem);
|
|
144
|
-
pointer-events: none;
|
|
145
|
-
line-height: 0;
|
|
146
|
-
display: inline-flex;
|
|
147
|
-
position: absolute;
|
|
148
|
-
transform: translateY(-50%);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
135
|
.FGbIOa_indicator {
|
|
152
136
|
box-sizing: border-box;
|
|
153
|
-
width: var(--select-action-size,
|
|
154
|
-
height: var(--select-action-size,
|
|
155
|
-
border-radius: var(--select-action-radius, var(--radius-sm));
|
|
156
|
-
background: var(--select-action-bg, transparent);
|
|
157
|
-
color: var(--select-icon-color, var(--color-muted-foreground));
|
|
158
|
-
transition: background-color var(--select-transition, var(--transition-default)),
|
|
159
|
-
color var(--select-transition, var(--transition-default)),
|
|
160
|
-
opacity var(--select-transition, var(--transition-default));
|
|
137
|
+
width: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
138
|
+
height: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
139
|
+
border-radius: var(--moduix-select-action-radius, var(--moduix-radius-sm));
|
|
140
|
+
background: var(--moduix-select-action-bg, transparent);
|
|
141
|
+
color: var(--moduix-select-icon-color, var(--moduix-color-muted-foreground));
|
|
142
|
+
transition: background-color var(--moduix-select-transition, var(--moduix-transition-default)),
|
|
143
|
+
color var(--moduix-select-transition, var(--moduix-transition-default)),
|
|
144
|
+
opacity var(--moduix-select-transition, var(--moduix-transition-default));
|
|
161
145
|
border: 0;
|
|
162
146
|
flex-shrink: 0;
|
|
163
147
|
justify-content: center;
|
|
@@ -168,8 +152,8 @@
|
|
|
168
152
|
display: inline-flex;
|
|
169
153
|
|
|
170
154
|
& > svg {
|
|
171
|
-
width: var(--select-icon-size,
|
|
172
|
-
height: var(--select-icon-size,
|
|
155
|
+
width: var(--moduix-select-icon-size, var(--moduix-spacing-4));
|
|
156
|
+
height: var(--moduix-select-icon-size, var(--moduix-spacing-4));
|
|
173
157
|
display: block;
|
|
174
158
|
}
|
|
175
159
|
|
|
@@ -186,15 +170,30 @@
|
|
|
186
170
|
pointer-events: none;
|
|
187
171
|
}
|
|
188
172
|
|
|
173
|
+
.FGbIOa_trigger > .FGbIOa_indicator {
|
|
174
|
+
pointer-events: auto;
|
|
175
|
+
top: 50%;
|
|
176
|
+
position: absolute;
|
|
177
|
+
inset-inline-end: var(--moduix-select-action-offset-right, var(--moduix-spacing-2));
|
|
178
|
+
transform: translateY(-50%);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.FGbIOa_trigger > .FGbIOa_indicator:not(:is([data-disabled], [disabled])):hover {
|
|
182
|
+
@media (hover: hover) {
|
|
183
|
+
background-color: var(--moduix-select-action-bg-hover, var(--moduix-color-muted));
|
|
184
|
+
color: var(--moduix-select-action-color-hover, var(--moduix-color-foreground));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
189
188
|
.FGbIOa_clearTrigger {
|
|
190
|
-
--close-button-size: var(--select-action-size,
|
|
191
|
-
--close-button-icon-size: var(--select-icon-size,
|
|
192
|
-
--close-button-radius: var(--select-action-radius, var(--radius-sm));
|
|
193
|
-
--close-button-bg: var(--select-action-bg, transparent);
|
|
194
|
-
--close-button-bg-hover: var(--select-action-bg-hover, var(--color-muted));
|
|
195
|
-
--close-button-color: var(--select-icon-color, var(--color-muted-foreground));
|
|
196
|
-
--close-button-color-hover: var(--select-action-color-hover, var(--color-foreground));
|
|
197
|
-
--close-button-transition: var(--select-transition, var(--transition-default));
|
|
189
|
+
--moduix-close-button-size: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
190
|
+
--moduix-close-button-icon-size: var(--moduix-select-icon-size, var(--moduix-spacing-4));
|
|
191
|
+
--moduix-close-button-radius: var(--moduix-select-action-radius, var(--moduix-radius-sm));
|
|
192
|
+
--moduix-close-button-bg: var(--moduix-select-action-bg, transparent);
|
|
193
|
+
--moduix-close-button-bg-hover: var(--moduix-select-action-bg-hover, var(--moduix-color-muted));
|
|
194
|
+
--moduix-close-button-color: var(--moduix-select-icon-color, var(--moduix-color-muted-foreground));
|
|
195
|
+
--moduix-close-button-color-hover: var(--moduix-select-action-color-hover, var(--moduix-color-foreground));
|
|
196
|
+
--moduix-close-button-transition: var(--moduix-select-transition, var(--moduix-transition-default));
|
|
198
197
|
pointer-events: auto;
|
|
199
198
|
|
|
200
199
|
&[hidden] {
|
|
@@ -202,6 +201,15 @@
|
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
203
|
|
|
204
|
+
.FGbIOa_control > .FGbIOa_clearTrigger {
|
|
205
|
+
top: 50%;
|
|
206
|
+
position: absolute;
|
|
207
|
+
inset-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-2)) +
|
|
208
|
+
var(--moduix-select-action-size, var(--moduix-size-xs)) +
|
|
209
|
+
var(--moduix-select-action-gap, var(--moduix-spacing-0-5)));
|
|
210
|
+
transform: translateY(-50%);
|
|
211
|
+
}
|
|
212
|
+
|
|
205
213
|
.FGbIOa_positioner {
|
|
206
214
|
z-index: var(--z-index);
|
|
207
215
|
outline: 0;
|
|
@@ -209,20 +217,20 @@
|
|
|
209
217
|
|
|
210
218
|
.FGbIOa_content {
|
|
211
219
|
box-sizing: border-box;
|
|
212
|
-
z-index: calc(var(--z-popup) + var(--layer-index, 0));
|
|
220
|
+
z-index: calc(var(--moduix-z-popup) + var(--layer-index, 0));
|
|
213
221
|
min-width: var(--reference-width);
|
|
214
222
|
max-width: var(--available-width);
|
|
215
|
-
max-height: min(var(--select-content-max-height, 24rem), var(--available-height));
|
|
216
|
-
border: var(--select-content-border-width, var(--border-width-sm)) solid
|
|
217
|
-
var(--select-content-border-color, var(--color-border));
|
|
218
|
-
border-radius: var(--select-radius, var(--radius-md));
|
|
219
|
-
padding-block: var(--select-content-padding-y, var(--spacing-1));
|
|
220
|
-
background-color: var(--select-content-bg, var(--color-popover));
|
|
221
|
-
box-shadow: var(--select-content-shadow, var(--shadow-lg));
|
|
222
|
-
color: var(--select-content-color, var(--color-popover-foreground));
|
|
223
|
+
max-height: min(var(--moduix-select-content-max-height, 24rem), var(--available-height));
|
|
224
|
+
border: var(--moduix-select-content-border-width, var(--moduix-border-width-sm)) solid
|
|
225
|
+
var(--moduix-select-content-border-color, var(--moduix-color-border));
|
|
226
|
+
border-radius: var(--moduix-select-radius, var(--moduix-radius-md));
|
|
227
|
+
padding-block: var(--moduix-select-content-padding-y, var(--moduix-popup-list-padding-y, var(--moduix-spacing-1)));
|
|
228
|
+
background-color: var(--moduix-select-content-bg, var(--moduix-color-popover));
|
|
229
|
+
box-shadow: var(--moduix-select-content-shadow, var(--moduix-shadow-lg));
|
|
230
|
+
color: var(--moduix-select-content-color, var(--moduix-color-popover-foreground));
|
|
223
231
|
transform-origin: var(--transform-origin);
|
|
224
232
|
overscroll-behavior: contain;
|
|
225
|
-
scroll-padding-block: var(--select-content-padding-y, var(--spacing-1));
|
|
233
|
+
scroll-padding-block: var(--moduix-select-content-padding-y, var(--moduix-spacing-1));
|
|
226
234
|
outline: 0;
|
|
227
235
|
flex-direction: column;
|
|
228
236
|
display: flex;
|
|
@@ -230,14 +238,14 @@
|
|
|
230
238
|
|
|
231
239
|
&[data-state="open"] {
|
|
232
240
|
animation: FGbIOa_select-content-open
|
|
233
|
-
var(--select-transition, var(--popup-motion-duration, var(--duration-normal))
|
|
234
|
-
var(--popup-motion-easing, var(--ease-in-out)));
|
|
241
|
+
var(--moduix-select-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
242
|
+
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
235
243
|
}
|
|
236
244
|
|
|
237
245
|
&[data-state="closed"] {
|
|
238
246
|
animation: FGbIOa_select-content-closed
|
|
239
|
-
var(--select-transition, var(--popup-motion-duration, var(--duration-normal))
|
|
240
|
-
var(--popup-motion-easing, var(--ease-in-out)));
|
|
247
|
+
var(--moduix-select-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
248
|
+
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
241
249
|
pointer-events: none;
|
|
242
250
|
}
|
|
243
251
|
}
|
|
@@ -245,7 +253,7 @@
|
|
|
245
253
|
.FGbIOa_list {
|
|
246
254
|
overscroll-behavior: contain;
|
|
247
255
|
min-height: 0;
|
|
248
|
-
scroll-padding-block: var(--select-content-padding-y, var(--spacing-1));
|
|
256
|
+
scroll-padding-block: var(--moduix-select-content-padding-y, var(--moduix-spacing-1));
|
|
249
257
|
outline: 0;
|
|
250
258
|
flex-direction: column;
|
|
251
259
|
display: flex;
|
|
@@ -257,36 +265,37 @@
|
|
|
257
265
|
display: flex;
|
|
258
266
|
|
|
259
267
|
& + & {
|
|
260
|
-
margin-top: var(--select-item-group-gap, var(--spacing-2));
|
|
268
|
+
margin-top: var(--moduix-select-item-group-gap, var(--moduix-spacing-2));
|
|
261
269
|
}
|
|
262
270
|
}
|
|
263
271
|
|
|
264
272
|
.FGbIOa_itemGroupLabel {
|
|
265
|
-
padding-block: var(--select-item-group-label-padding-y,
|
|
266
|
-
padding-inline: var(--select-item-group-label-padding-x,
|
|
267
|
-
color: var(--select-item-group-label-color, var(--color-muted-foreground));
|
|
268
|
-
font-size: var(--select-item-group-label-font-size, var(--text-xs));
|
|
269
|
-
font-weight: var(--select-item-group-label-font-weight, var(--weight-
|
|
270
|
-
line-height: var(--select-item-group-label-line-height, var(--line-height-text-xs));
|
|
273
|
+
padding-block: var(--moduix-select-item-group-label-padding-y, var(--moduix-popup-group-label-padding-y, var(--moduix-spacing-1)));
|
|
274
|
+
padding-inline: var(--moduix-select-item-group-label-padding-x, var(--moduix-spacing-2-5));
|
|
275
|
+
color: var(--moduix-select-item-group-label-color, var(--moduix-popup-group-label-color, var(--moduix-color-muted-foreground)));
|
|
276
|
+
font-size: var(--moduix-select-item-group-label-font-size, var(--moduix-popup-group-label-font-size, var(--moduix-text-xs)));
|
|
277
|
+
font-weight: var(--moduix-select-item-group-label-font-weight, var(--moduix-popup-group-label-font-weight, var(--moduix-weight-regular)));
|
|
278
|
+
line-height: var(--moduix-select-item-group-label-line-height, var(--moduix-popup-group-label-line-height, var(--moduix-line-height-text-xs)));
|
|
271
279
|
}
|
|
272
280
|
|
|
273
281
|
.FGbIOa_item {
|
|
274
282
|
box-sizing: border-box;
|
|
275
|
-
width: calc(100% - var(--select-item-inset-x, var(--spacing-2)));
|
|
276
|
-
min-height: var(--select-item-min-height,
|
|
283
|
+
width: calc(100% - var(--moduix-select-item-inset-x, var(--moduix-spacing-2)));
|
|
284
|
+
min-height: var(--moduix-select-item-min-height, var(--moduix-popup-item-min-height, var(--moduix-size-sm)));
|
|
277
285
|
justify-content: space-between;
|
|
278
286
|
align-items: center;
|
|
279
|
-
gap: var(--select-item-gap, var(--spacing-2));
|
|
280
|
-
margin-inline: calc(var(--select-item-inset-x, var(--spacing-2)) / 2);
|
|
281
|
-
border: var(--select-item-border-width, 0) solid
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
padding-
|
|
285
|
-
|
|
286
|
-
color: var(--select-item-
|
|
287
|
+
gap: var(--moduix-select-item-gap, var(--moduix-spacing-2));
|
|
288
|
+
margin-inline: calc(var(--moduix-select-item-inset-x, var(--moduix-spacing-2)) / 2);
|
|
289
|
+
border: var(--moduix-select-item-border-width, 0) solid
|
|
290
|
+
var(--moduix-select-item-border-color, transparent);
|
|
291
|
+
border-radius: var(--moduix-select-item-radius, var(--moduix-radius-sm));
|
|
292
|
+
padding-block: var(--moduix-select-item-padding-y, var(--moduix-popup-item-padding-y, var(--moduix-spacing-1)));
|
|
293
|
+
padding-inline: var(--moduix-select-item-padding-x, var(--moduix-popup-item-padding-x-start, var(--moduix-spacing-3)));
|
|
294
|
+
background-color: var(--moduix-select-item-bg, transparent);
|
|
295
|
+
color: var(--moduix-select-item-color, var(--moduix-select-content-color, var(--moduix-color-foreground)));
|
|
287
296
|
font: inherit;
|
|
288
|
-
font-size: var(--select-item-font-size, var(--text-sm));
|
|
289
|
-
line-height: var(--select-item-line-height, var(--line-height-text-sm));
|
|
297
|
+
font-size: var(--moduix-select-item-font-size, var(--moduix-popup-item-font-size, var(--moduix-text-sm)));
|
|
298
|
+
line-height: var(--moduix-select-item-line-height, var(--moduix-popup-item-line-height, var(--moduix-line-height-text-sm)));
|
|
290
299
|
user-select: none;
|
|
291
300
|
cursor: default;
|
|
292
301
|
outline: 0;
|
|
@@ -294,18 +303,18 @@
|
|
|
294
303
|
position: relative;
|
|
295
304
|
|
|
296
305
|
&[data-highlighted] {
|
|
297
|
-
background-color: var(--select-highlight-bg, var(--color-accent));
|
|
298
|
-
color: var(--select-highlight-color, var(--color-accent-foreground));
|
|
306
|
+
background-color: var(--moduix-select-highlight-bg, var(--moduix-color-accent));
|
|
307
|
+
color: var(--moduix-select-highlight-color, var(--moduix-color-accent-foreground));
|
|
299
308
|
}
|
|
300
309
|
|
|
301
310
|
&[data-state="checked"] {
|
|
302
|
-
color: var(--select-item-checked-color, var(--select-item-color, var(--color-foreground)));
|
|
311
|
+
color: var(--moduix-select-item-checked-color, var(--moduix-select-item-color, var(--moduix-color-foreground)));
|
|
303
312
|
}
|
|
304
313
|
|
|
305
314
|
&[data-disabled] {
|
|
306
315
|
pointer-events: none;
|
|
307
|
-
color: var(--select-item-disabled-color, var(--color-muted-foreground));
|
|
308
|
-
opacity: var(--select-disabled-opacity, var(--opacity-disabled));
|
|
316
|
+
color: var(--moduix-select-item-disabled-color, var(--moduix-color-muted-foreground));
|
|
317
|
+
opacity: var(--moduix-select-disabled-opacity, var(--moduix-opacity-disabled));
|
|
309
318
|
}
|
|
310
319
|
}
|
|
311
320
|
|
|
@@ -318,23 +327,23 @@
|
|
|
318
327
|
}
|
|
319
328
|
|
|
320
329
|
.FGbIOa_itemIndicator {
|
|
321
|
-
width: var(--select-item-indicator-size,
|
|
322
|
-
height: var(--select-item-indicator-size,
|
|
323
|
-
color: var(--select-item-indicator-color, currentColor);
|
|
330
|
+
width: var(--moduix-select-item-indicator-size, var(--moduix-spacing-3-5));
|
|
331
|
+
height: var(--moduix-select-item-indicator-size, var(--moduix-spacing-3-5));
|
|
332
|
+
color: var(--moduix-select-item-indicator-color, currentColor);
|
|
324
333
|
flex-shrink: 0;
|
|
325
334
|
justify-content: center;
|
|
326
335
|
align-items: center;
|
|
327
336
|
display: inline-flex;
|
|
328
337
|
|
|
329
338
|
& > svg {
|
|
330
|
-
width: var(--select-item-indicator-icon-size,
|
|
331
|
-
height: var(--select-item-indicator-icon-size,
|
|
339
|
+
width: var(--moduix-select-item-indicator-icon-size, var(--moduix-spacing-3));
|
|
340
|
+
height: var(--moduix-select-item-indicator-icon-size, var(--moduix-spacing-3));
|
|
332
341
|
}
|
|
333
342
|
}
|
|
334
343
|
|
|
335
344
|
.FGbIOa_itemTextContent {
|
|
336
345
|
align-items: center;
|
|
337
|
-
gap: var(--select-item-text-content-gap, var(--spacing-2));
|
|
346
|
+
gap: var(--moduix-select-item-text-content-gap, var(--moduix-spacing-2));
|
|
338
347
|
vertical-align: top;
|
|
339
348
|
min-width: 0;
|
|
340
349
|
max-width: 100%;
|
|
@@ -342,9 +351,9 @@
|
|
|
342
351
|
}
|
|
343
352
|
|
|
344
353
|
.FGbIOa_itemTextIcon {
|
|
345
|
-
width: var(--select-item-text-icon-size,
|
|
346
|
-
height: var(--select-item-text-icon-size,
|
|
347
|
-
color: var(--select-item-text-icon-color, currentColor);
|
|
354
|
+
width: var(--moduix-select-item-text-icon-size, var(--moduix-spacing-4));
|
|
355
|
+
height: var(--moduix-select-item-text-icon-size, var(--moduix-spacing-4));
|
|
356
|
+
color: var(--moduix-select-item-text-icon-color, currentColor);
|
|
348
357
|
flex-shrink: 0;
|
|
349
358
|
justify-content: center;
|
|
350
359
|
align-items: center;
|
|
@@ -14,10 +14,6 @@ type SelectFieldProps = Omit<ComponentProps<typeof Select.Control>, 'asChild' |
|
|
|
14
14
|
indicator?: ReactNode;
|
|
15
15
|
placeholder?: ComponentProps<typeof Select.ValueText>['placeholder'];
|
|
16
16
|
};
|
|
17
|
-
declare function SelectIndicators({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
21
17
|
declare function SelectItemTextContent({
|
|
22
18
|
className,
|
|
23
19
|
...props
|
|
@@ -45,7 +41,6 @@ declare const Select$1: SelectRootComponent$1 & {
|
|
|
45
41
|
ValueText: import("react").ForwardRefExoticComponent<Omit<Select.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
46
42
|
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<Select.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
47
43
|
Indicator: import("react").ForwardRefExoticComponent<Omit<Select.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
48
|
-
Indicators: typeof SelectIndicators;
|
|
49
44
|
Positioner: import("react").ForwardRefExoticComponent<Omit<Select.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
50
45
|
Content: import("react").ForwardRefExoticComponent<Omit<Select.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
46
|
List: import("react").ForwardRefExoticComponent<Omit<Select.ListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -103,18 +103,11 @@ const SelectIndicator = forwardRef(function SelectIndicator({ className, childre
|
|
|
103
103
|
children: children ?? /* @__PURE__ */ jsx(ChevronUpDownIcon, {})
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
|
-
function SelectIndicators({ className, ...props }) {
|
|
107
|
-
return /* @__PURE__ */ jsx("div", {
|
|
108
|
-
"data-slot": "select-indicators",
|
|
109
|
-
className: clsx(Select_module_default.indicators, normalizeClassName(className)),
|
|
110
|
-
...props
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
106
|
const SelectField = forwardRef(function SelectField({ clearLabel, indicator, placeholder, ...props }, ref) {
|
|
114
107
|
return /* @__PURE__ */ jsxs(SelectControl, {
|
|
115
108
|
ref,
|
|
116
109
|
...props,
|
|
117
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [/* @__PURE__ */ jsxs(SelectTrigger, { children: [/* @__PURE__ */ jsx(SelectValueText, { placeholder }), /* @__PURE__ */ jsx(SelectIndicator, { children: indicator })] }), clearLabel && /* @__PURE__ */ jsx(SelectClearTrigger, { "aria-label": clearLabel })]
|
|
118
111
|
});
|
|
119
112
|
});
|
|
120
113
|
const SelectPositioner = forwardRef(function SelectPositioner({ className, ...props }, ref) {
|
|
@@ -238,7 +231,6 @@ const Select$1 = Object.assign(SelectRoot, {
|
|
|
238
231
|
ValueText: SelectValueText,
|
|
239
232
|
ClearTrigger: SelectClearTrigger,
|
|
240
233
|
Indicator: SelectIndicator,
|
|
241
|
-
Indicators: SelectIndicators,
|
|
242
234
|
Positioner: SelectPositioner,
|
|
243
235
|
Content: SelectContent,
|
|
244
236
|
List: SelectList,
|
|
@@ -5,7 +5,6 @@ var Select_module_default = {
|
|
|
5
5
|
"content": "FGbIOa_content",
|
|
6
6
|
"control": "FGbIOa_control",
|
|
7
7
|
"indicator": "FGbIOa_indicator",
|
|
8
|
-
"indicators": "FGbIOa_indicators",
|
|
9
8
|
"item": "FGbIOa_item",
|
|
10
9
|
"itemGroup": "FGbIOa_itemGroup",
|
|
11
10
|
"itemGroupLabel": "FGbIOa_itemGroupLabel",
|