@moduix/react 2.1.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 +13 -14
- 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 -34
- package/dist/components/bleed/Bleed.css +13 -13
- package/dist/components/breadcrumbs/Breadcrumbs.css +28 -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 +155 -151
- package/dist/components/combobox/Combobox.css +118 -115
- package/dist/components/command-palette/CommandPalette.css +172 -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 -40
- package/dist/components/date-picker/DatePicker.css +174 -172
- package/dist/components/dialog/Dialog.css +84 -79
- package/dist/components/drawer/Drawer.css +126 -108
- package/dist/components/editable/Editable.css +63 -61
- package/dist/components/empty/Empty.css +25 -25
- package/dist/components/field/Field.css +45 -45
- 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/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 -60
- package/dist/components/input/Input.css +46 -45
- 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 +120 -117
- package/dist/components/marquee/Marquee.css +16 -16
- package/dist/components/menu/Menu.css +121 -120
- package/dist/components/native-select/NativeSelect.css +42 -41
- package/dist/components/number-input/NumberInput.css +59 -56
- 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 -77
- 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 +118 -126
- package/dist/components/select/Select.d.ts +0 -5
- package/dist/components/select/Select.js +0 -8
- package/dist/components/select/Select.module.js +0 -1
- package/dist/components/separator/Separator.css +13 -13
- package/dist/components/sidebar/Sidebar.css +142 -142
- package/dist/components/signature-pad/SignaturePad.css +50 -50
- package/dist/components/skeleton/Skeleton.css +7 -5
- package/dist/components/slider/Slider.css +61 -61
- 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 -89
- 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 +92 -86
- package/dist/components/text/Text.css +23 -23
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.css +27 -26
- package/dist/components/timer/Timer.css +38 -37
- package/dist/components/toast/Toast.css +94 -79
- package/dist/components/toggle/Toggle.css +66 -66
- package/dist/components/toggle-group/ToggleGroup.css +16 -16
- package/dist/components/tooltip/Tooltip.css +56 -53
- package/dist/components/tour/Tour.css +121 -117
- package/dist/components/tree-view/TreeView.css +88 -86
- package/dist/components/typeset/Typeset.css +61 -61
- package/dist/lib/moduix/presets/contrast.css +59 -60
- package/dist/lib/moduix/presets/dense.css +72 -73
- package/dist/lib/moduix/presets/soft.css +71 -72
- package/dist/lib/moduix/styles/reset.css +1 -1
- package/dist/lib/moduix/styles/style.css +230 -226
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer moduix.components {
|
|
2
2
|
._uVP9W_trigger, ._uVP9W_closeTrigger {
|
|
3
3
|
box-sizing: border-box;
|
|
4
|
-
min-height: var(--drawer-control-height, var(--size-md));
|
|
5
|
-
padding: var(--drawer-control-padding-y, var(--spacing-1))
|
|
6
|
-
var(--drawer-control-padding-x, var(--spacing-3-5));
|
|
7
|
-
border: var(--drawer-control-border-width, var(--border-width-sm)) solid
|
|
8
|
-
var(--drawer-control-border-color, var(--color-border));
|
|
9
|
-
border-radius: var(--drawer-control-radius, var(--radius-md));
|
|
10
|
-
background-color: var(--drawer-control-bg, var(--color-background));
|
|
11
|
-
color: var(--drawer-control-color, var(--color-foreground));
|
|
4
|
+
min-height: var(--moduix-drawer-control-height, var(--moduix-size-md));
|
|
5
|
+
padding: var(--moduix-drawer-control-padding-y, var(--moduix-spacing-1))
|
|
6
|
+
var(--moduix-drawer-control-padding-x, var(--moduix-spacing-3-5));
|
|
7
|
+
border: var(--moduix-drawer-control-border-width, var(--moduix-border-width-sm)) solid
|
|
8
|
+
var(--moduix-drawer-control-border-color, var(--moduix-color-border));
|
|
9
|
+
border-radius: var(--moduix-drawer-control-radius, var(--moduix-radius-md));
|
|
10
|
+
background-color: var(--moduix-drawer-control-bg, var(--moduix-color-background));
|
|
11
|
+
color: var(--moduix-drawer-control-color, var(--moduix-color-foreground));
|
|
12
12
|
font: inherit;
|
|
13
|
-
font-size: var(--drawer-control-font-size, var(--text-md));
|
|
14
|
-
line-height: var(--drawer-control-line-height, var(--line-height-text-md));
|
|
13
|
+
font-size: var(--moduix-drawer-control-font-size, var(--moduix-text-md));
|
|
14
|
+
line-height: var(--moduix-drawer-control-line-height, var(--moduix-line-height-text-md));
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
user-select: none;
|
|
17
|
-
transition: background-color var(--transition-default),
|
|
18
|
-
border-color var(--transition-default),
|
|
19
|
-
color var(--transition-default);
|
|
17
|
+
transition: background-color var(--moduix-transition-default),
|
|
18
|
+
border-color var(--moduix-transition-default),
|
|
19
|
+
color var(--moduix-transition-default);
|
|
20
20
|
justify-content: center;
|
|
21
21
|
align-items: center;
|
|
22
22
|
margin: 0;
|
|
@@ -24,40 +24,44 @@
|
|
|
24
24
|
|
|
25
25
|
@media (hover: hover) {
|
|
26
26
|
&:hover {
|
|
27
|
-
background-color: var(--drawer-control-bg-hover, var(--color-accent));
|
|
27
|
+
background-color: var(--moduix-drawer-control-bg-hover, var(--moduix-color-accent));
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&:focus-visible {
|
|
32
|
-
outline: var(--drawer-focus-ring-width, var(--drawer-control-border-width, var(--border-width-sm)))
|
|
33
|
-
solid var(--drawer-focus-ring-color, var(--color-ring));
|
|
34
|
-
outline-offset: calc(var(--drawer-focus-ring-width, var(--drawer-control-border-width, var(--border-width-sm))) *
|
|
32
|
+
outline: var(--moduix-drawer-focus-ring-width, var(--moduix-drawer-control-border-width, var(--moduix-border-width-sm)))
|
|
33
|
+
solid var(--moduix-drawer-focus-ring-color, var(--moduix-color-ring));
|
|
34
|
+
outline-offset: calc(var(--moduix-drawer-focus-ring-width, var(--moduix-drawer-control-border-width, var(--moduix-border-width-sm))) *
|
|
35
35
|
-1);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&[data-disabled], &[disabled] {
|
|
39
39
|
pointer-events: none;
|
|
40
|
-
opacity: var(--opacity-disabled);
|
|
40
|
+
opacity: var(--moduix-opacity-disabled);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
._uVP9W_backdrop {
|
|
45
|
-
z-index: calc(var(--z-backdrop) + var(--layer-index, 0));
|
|
46
|
-
background-color: var(--drawer-backdrop-bg, var(--backdrop-bg, var(--color-overlay)));
|
|
45
|
+
z-index: calc(var(--moduix-z-backdrop) + var(--layer-index, 0));
|
|
46
|
+
background-color: var(--moduix-drawer-backdrop-bg, var(--moduix-backdrop-bg, var(--moduix-color-overlay)));
|
|
47
47
|
min-height: 100dvh;
|
|
48
|
-
backdrop-filter: var(--backdrop-filter, blur(var(--drawer-backdrop-blur, 4px)));
|
|
48
|
+
backdrop-filter: var(--moduix-backdrop-filter, blur(var(--moduix-drawer-backdrop-blur, 4px)));
|
|
49
49
|
opacity: calc(1 - var(--drawer-swipe-progress, 0));
|
|
50
|
-
transition: opacity calc(var(--drawer-swipe-strength, 1) * var(--duration-slower))
|
|
51
|
-
|
|
50
|
+
transition: opacity calc(var(--drawer-swipe-strength, 1) * var(--moduix-duration-slower))
|
|
51
|
+
var(--moduix-ease-out),
|
|
52
|
+
backdrop-filter calc(var(--drawer-swipe-strength, 1) * var(--moduix-duration-slower))
|
|
53
|
+
var(--moduix-ease-out);
|
|
52
54
|
position: fixed;
|
|
53
55
|
inset: 0;
|
|
54
56
|
|
|
55
57
|
&[data-state="open"] {
|
|
56
|
-
animation: _uVP9W_drawer-backdrop-in
|
|
58
|
+
animation: _uVP9W_drawer-backdrop-in
|
|
59
|
+
var(--moduix-drawer-backdrop-transition, var(--moduix-transition-spring));
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
&[data-state="closed"] {
|
|
60
|
-
animation: _uVP9W_drawer-backdrop-out
|
|
63
|
+
animation: _uVP9W_drawer-backdrop-out
|
|
64
|
+
var(--moduix-drawer-backdrop-transition, var(--moduix-transition-spring));
|
|
61
65
|
animation-fill-mode: forwards;
|
|
62
66
|
}
|
|
63
67
|
|
|
@@ -72,9 +76,9 @@
|
|
|
72
76
|
|
|
73
77
|
._uVP9W_positioner {
|
|
74
78
|
box-sizing: border-box;
|
|
75
|
-
z-index: calc(var(--z-modal) + var(--layer-index, 0));
|
|
79
|
+
z-index: calc(var(--moduix-z-modal) + var(--layer-index, 0));
|
|
76
80
|
overscroll-behavior: contain;
|
|
77
|
-
padding: var(--drawer-positioner-padding, 0);
|
|
81
|
+
padding: var(--moduix-drawer-positioner-padding, 0);
|
|
78
82
|
justify-content: center;
|
|
79
83
|
align-items: flex-end;
|
|
80
84
|
display: flex;
|
|
@@ -104,25 +108,31 @@
|
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
._uVP9W_content {
|
|
107
|
-
--drawer-bleed: var(--drawer-bleed-size, var(--size-xl));
|
|
111
|
+
--moduix-drawer-bleed: var(--moduix-drawer-bleed-size, var(--moduix-size-xl));
|
|
108
112
|
box-sizing: border-box;
|
|
109
|
-
width: min(var(--drawer-width, 100%), 100vw);
|
|
110
|
-
height: var(--drawer-size, 100%);
|
|
111
|
-
max-height: var(--drawer-max-height, 80dvh);
|
|
112
|
-
padding: var(--drawer-padding-y, var(--spacing-2))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
width: min(var(--moduix-drawer-width, 100%), 100vw);
|
|
114
|
+
height: var(--moduix-drawer-size, 100%);
|
|
115
|
+
max-height: var(--moduix-drawer-max-height, 80dvh);
|
|
116
|
+
padding: var(--moduix-drawer-padding-y, var(--moduix-spacing-2))
|
|
117
|
+
var(--moduix-drawer-padding-x, var(--moduix-spacing-6))
|
|
118
|
+
calc(var(--moduix-drawer-padding-y, var(--moduix-spacing-4)) + env(safe-area-inset-bottom, 0px));
|
|
119
|
+
border: var(--moduix-drawer-border-width, var(--moduix-border-width-sm)) solid
|
|
120
|
+
var(--moduix-drawer-border-color, var(--moduix-color-border));
|
|
121
|
+
border-radius: var(--moduix-drawer-radius, var(--moduix-radius-xl))
|
|
122
|
+
var(--moduix-drawer-radius, var(--moduix-radius-xl)) 0 0;
|
|
123
|
+
background-color: var(--moduix-drawer-bg, var(--moduix-color-popover));
|
|
124
|
+
color: var(--moduix-drawer-color, var(--moduix-color-popover-foreground));
|
|
125
|
+
box-shadow: var(--moduix-drawer-shadow, var(--moduix-shadow-lg));
|
|
120
126
|
overscroll-behavior: contain;
|
|
121
127
|
transform-origin: bottom;
|
|
122
|
-
transition: transform calc(var(--drawer-swipe-strength, 1) * var(--duration-slower))
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
transition: transform calc(var(--drawer-swipe-strength, 1) * var(--moduix-duration-slower))
|
|
129
|
+
var(--moduix-ease-out),
|
|
130
|
+
height calc(var(--drawer-swipe-strength, 1) * var(--moduix-duration-slower))
|
|
131
|
+
var(--moduix-ease-out),
|
|
132
|
+
scale
|
|
133
|
+
var(--moduix-drawer-nested-transition, var(--moduix-drawer-transition, var(--moduix-transition-spring))),
|
|
134
|
+
translate
|
|
135
|
+
var(--moduix-drawer-nested-transition, var(--moduix-drawer-transition, var(--moduix-transition-spring)));
|
|
126
136
|
outline: 0;
|
|
127
137
|
flex-direction: column;
|
|
128
138
|
display: flex;
|
|
@@ -132,7 +142,7 @@
|
|
|
132
142
|
|
|
133
143
|
&:after {
|
|
134
144
|
inset-inline: 0;
|
|
135
|
-
height: var(--drawer-bleed);
|
|
145
|
+
height: var(--moduix-drawer-bleed);
|
|
136
146
|
background-color: inherit;
|
|
137
147
|
content: "";
|
|
138
148
|
pointer-events: none;
|
|
@@ -141,11 +151,13 @@
|
|
|
141
151
|
}
|
|
142
152
|
|
|
143
153
|
&[data-state="open"] {
|
|
144
|
-
animation: _uVP9W_drawer-content-in-down
|
|
154
|
+
animation: _uVP9W_drawer-content-in-down
|
|
155
|
+
var(--moduix-drawer-transition, var(--moduix-transition-spring));
|
|
145
156
|
}
|
|
146
157
|
|
|
147
158
|
&[data-state="closed"] {
|
|
148
|
-
animation: _uVP9W_drawer-content-out-down
|
|
159
|
+
animation: _uVP9W_drawer-content-out-down
|
|
160
|
+
var(--moduix-drawer-transition, var(--moduix-transition-spring));
|
|
149
161
|
animation-fill-mode: forwards;
|
|
150
162
|
}
|
|
151
163
|
|
|
@@ -159,10 +171,10 @@
|
|
|
159
171
|
|
|
160
172
|
&[data-swipe-direction="up"] {
|
|
161
173
|
transform-origin: top;
|
|
162
|
-
padding-top: calc(var(--drawer-padding-y, var(--spacing-4)) + env(safe-area-inset-top, 0px));
|
|
163
|
-
padding-bottom: var(--drawer-padding-y, var(--spacing-4));
|
|
164
|
-
border-radius: 0 0 var(--drawer-radius, var(--radius-xl))
|
|
165
|
-
var(--drawer-radius, var(--radius-xl));
|
|
174
|
+
padding-top: calc(var(--moduix-drawer-padding-y, var(--moduix-spacing-4)) + env(safe-area-inset-top, 0px));
|
|
175
|
+
padding-bottom: var(--moduix-drawer-padding-y, var(--moduix-spacing-4));
|
|
176
|
+
border-radius: 0 0 var(--moduix-drawer-radius, var(--moduix-radius-xl))
|
|
177
|
+
var(--moduix-drawer-radius, var(--moduix-radius-xl));
|
|
166
178
|
|
|
167
179
|
&:after {
|
|
168
180
|
top: auto;
|
|
@@ -179,15 +191,16 @@
|
|
|
179
191
|
}
|
|
180
192
|
|
|
181
193
|
&[data-swipe-direction="left"], &[data-swipe-direction="right"] {
|
|
182
|
-
width: min(var(--drawer-side-width, 22rem), calc(100vw - var(--spacing-8)));
|
|
183
|
-
height: var(--drawer-side-height, 100%);
|
|
194
|
+
width: min(var(--moduix-drawer-side-width, 22rem), calc(100vw - var(--moduix-spacing-8)));
|
|
195
|
+
height: var(--moduix-drawer-side-height, 100%);
|
|
184
196
|
max-height: none;
|
|
185
|
-
padding: var(--drawer-padding-y, var(--
|
|
197
|
+
padding: var(--moduix-drawer-padding-y, var(--moduix-spacing-6))
|
|
198
|
+
var(--moduix-drawer-padding-x, var(--moduix-spacing-6));
|
|
186
199
|
|
|
187
200
|
&:after {
|
|
188
201
|
inset-block: 0;
|
|
189
202
|
inset-inline: auto;
|
|
190
|
-
width: var(--drawer-bleed);
|
|
203
|
+
width: var(--moduix-drawer-bleed);
|
|
191
204
|
height: auto;
|
|
192
205
|
top: 0;
|
|
193
206
|
}
|
|
@@ -195,8 +208,8 @@
|
|
|
195
208
|
|
|
196
209
|
&[data-swipe-direction="left"] {
|
|
197
210
|
transform-origin: 0;
|
|
198
|
-
border-radius: 0 var(--drawer-radius, var(--
|
|
199
|
-
0;
|
|
211
|
+
border-radius: 0 var(--moduix-drawer-radius, var(--moduix-radius-xl))
|
|
212
|
+
var(--moduix-drawer-radius, var(--moduix-radius-xl)) 0;
|
|
200
213
|
|
|
201
214
|
&:after {
|
|
202
215
|
right: 100%;
|
|
@@ -213,8 +226,8 @@
|
|
|
213
226
|
|
|
214
227
|
&[data-swipe-direction="right"] {
|
|
215
228
|
transform-origin: 100%;
|
|
216
|
-
border-radius: var(--drawer-radius, var(--radius-xl)) 0 0
|
|
217
|
-
var(--drawer-radius, var(--radius-xl));
|
|
229
|
+
border-radius: var(--moduix-drawer-radius, var(--moduix-radius-xl)) 0 0
|
|
230
|
+
var(--moduix-drawer-radius, var(--moduix-radius-xl));
|
|
218
231
|
|
|
219
232
|
&:after {
|
|
220
233
|
left: 100%;
|
|
@@ -230,33 +243,37 @@
|
|
|
230
243
|
}
|
|
231
244
|
|
|
232
245
|
&[data-nested-drawer-open] {
|
|
233
|
-
scale: calc(1 - var(--drawer-nested-scale-step, .05) * var(--nested-drawers, 0));
|
|
246
|
+
scale: calc(1 - var(--moduix-drawer-nested-scale-step, .05) * var(--nested-drawers, 0));
|
|
234
247
|
}
|
|
235
248
|
|
|
236
249
|
&[data-swipe-direction="down"][data-nested-drawer-open] {
|
|
237
250
|
translate: 0
|
|
238
|
-
calc(-1 * var(--drawer-nested-translate-step, var(--spacing-10)) *
|
|
251
|
+
calc(-1 * var(--moduix-drawer-nested-translate-step, var(--moduix-spacing-10)) *
|
|
252
|
+
var(--nested-drawers, 0));
|
|
239
253
|
}
|
|
240
254
|
|
|
241
255
|
&[data-swipe-direction="up"][data-nested-drawer-open] {
|
|
242
256
|
translate: 0
|
|
243
|
-
calc(var(--drawer-nested-translate-step, var(--spacing-10)) *
|
|
257
|
+
calc(var(--moduix-drawer-nested-translate-step, var(--moduix-spacing-10)) *
|
|
258
|
+
var(--nested-drawers, 0));
|
|
244
259
|
}
|
|
245
260
|
|
|
246
261
|
&[data-swipe-direction="left"][data-nested-drawer-open] {
|
|
247
|
-
translate: calc(var(--drawer-nested-translate-step, var(--spacing-10)) *
|
|
262
|
+
translate: calc(var(--moduix-drawer-nested-translate-step, var(--moduix-spacing-10)) *
|
|
263
|
+
var(--nested-drawers, 0))
|
|
248
264
|
0;
|
|
249
265
|
}
|
|
250
266
|
|
|
251
267
|
&[data-swipe-direction="right"][data-nested-drawer-open] {
|
|
252
|
-
translate: calc(-1 * var(--drawer-nested-translate-step, var(--spacing-10)) *
|
|
268
|
+
translate: calc(-1 * var(--moduix-drawer-nested-translate-step, var(--moduix-spacing-10)) *
|
|
269
|
+
var(--nested-drawers, 0))
|
|
253
270
|
0;
|
|
254
271
|
}
|
|
255
272
|
}
|
|
256
273
|
|
|
257
274
|
._uVP9W_grabber {
|
|
258
275
|
width: 100%;
|
|
259
|
-
padding: var(--drawer-grabber-padding, var(--spacing-3)) 0;
|
|
276
|
+
padding: var(--moduix-drawer-grabber-padding, var(--moduix-spacing-3)) 0;
|
|
260
277
|
cursor: grab;
|
|
261
278
|
user-select: none;
|
|
262
279
|
flex-shrink: 0;
|
|
@@ -274,24 +291,24 @@
|
|
|
274
291
|
}
|
|
275
292
|
|
|
276
293
|
._uVP9W_grabberIndicator {
|
|
277
|
-
width: var(--drawer-grabber-indicator-width, 3rem);
|
|
278
|
-
height: var(--drawer-grabber-indicator-height, .25rem);
|
|
279
|
-
border-radius: var(--drawer-grabber-indicator-radius, var(--radius-full));
|
|
280
|
-
background-color: var(--drawer-grabber-indicator-bg, var(--color-muted-foreground));
|
|
281
|
-
opacity: var(--drawer-grabber-indicator-opacity, .45);
|
|
282
|
-
transition: background-color var(--transition-default),
|
|
283
|
-
opacity var(--transition-default);
|
|
294
|
+
width: var(--moduix-drawer-grabber-indicator-width, 3rem);
|
|
295
|
+
height: var(--moduix-drawer-grabber-indicator-height, .25rem);
|
|
296
|
+
border-radius: var(--moduix-drawer-grabber-indicator-radius, var(--moduix-radius-full));
|
|
297
|
+
background-color: var(--moduix-drawer-grabber-indicator-bg, var(--moduix-color-muted-foreground));
|
|
298
|
+
opacity: var(--moduix-drawer-grabber-indicator-opacity, .45);
|
|
299
|
+
transition: background-color var(--moduix-transition-default),
|
|
300
|
+
opacity var(--moduix-transition-default);
|
|
284
301
|
|
|
285
302
|
@media (hover: hover) {
|
|
286
303
|
._uVP9W_grabber:hover & {
|
|
287
|
-
opacity: var(--drawer-grabber-indicator-opacity-hover, .7);
|
|
304
|
+
opacity: var(--moduix-drawer-grabber-indicator-opacity-hover, .7);
|
|
288
305
|
}
|
|
289
306
|
}
|
|
290
307
|
}
|
|
291
308
|
|
|
292
309
|
._uVP9W_header {
|
|
293
310
|
align-items: start;
|
|
294
|
-
gap: var(--drawer-header-gap, var(--spacing-1));
|
|
311
|
+
gap: var(--moduix-drawer-header-gap, var(--moduix-spacing-1));
|
|
295
312
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
296
313
|
display: grid;
|
|
297
314
|
|
|
@@ -310,17 +327,17 @@
|
|
|
310
327
|
}
|
|
311
328
|
|
|
312
329
|
._uVP9W_title {
|
|
313
|
-
color: var(--drawer-title-color, var(--drawer-color, var(--color-popover-foreground)));
|
|
314
|
-
font-size: var(--drawer-title-font-size, var(--text-lg));
|
|
315
|
-
font-weight: var(--drawer-title-font-weight, var(--weight-semibold));
|
|
316
|
-
line-height: var(--drawer-title-line-height, var(--line-height-text-lg));
|
|
330
|
+
color: var(--moduix-drawer-title-color, var(--moduix-drawer-color, var(--moduix-color-popover-foreground)));
|
|
331
|
+
font-size: var(--moduix-drawer-title-font-size, var(--moduix-text-lg));
|
|
332
|
+
font-weight: var(--moduix-drawer-title-font-weight, var(--moduix-weight-semibold));
|
|
333
|
+
line-height: var(--moduix-drawer-title-line-height, var(--moduix-line-height-text-lg));
|
|
317
334
|
margin: 0;
|
|
318
335
|
}
|
|
319
336
|
|
|
320
337
|
._uVP9W_description, ._uVP9W_body {
|
|
321
|
-
color: var(--drawer-description-color, var(--color-muted-foreground));
|
|
322
|
-
font-size: var(--drawer-description-font-size, var(--text-md));
|
|
323
|
-
line-height: var(--drawer-description-line-height, var(--line-height-text-md));
|
|
338
|
+
color: var(--moduix-drawer-description-color, var(--moduix-color-muted-foreground));
|
|
339
|
+
font-size: var(--moduix-drawer-description-font-size, var(--moduix-text-md));
|
|
340
|
+
line-height: var(--moduix-drawer-description-line-height, var(--moduix-line-height-text-md));
|
|
324
341
|
}
|
|
325
342
|
|
|
326
343
|
._uVP9W_description {
|
|
@@ -329,56 +346,56 @@
|
|
|
329
346
|
|
|
330
347
|
._uVP9W_body {
|
|
331
348
|
min-height: 0;
|
|
332
|
-
margin-top: var(--drawer-body-margin-top, var(--spacing-4));
|
|
349
|
+
margin-top: var(--moduix-drawer-body-margin-top, var(--moduix-spacing-4));
|
|
333
350
|
overflow-y: auto;
|
|
334
351
|
}
|
|
335
352
|
|
|
336
353
|
._uVP9W_footer {
|
|
337
354
|
justify-content: flex-end;
|
|
338
|
-
gap: var(--drawer-footer-gap, var(--spacing-2));
|
|
339
|
-
margin-top: var(--drawer-footer-margin-top, var(--spacing-6));
|
|
355
|
+
gap: var(--moduix-drawer-footer-gap, var(--moduix-spacing-2));
|
|
356
|
+
margin-top: var(--moduix-drawer-footer-margin-top, var(--moduix-spacing-6));
|
|
340
357
|
display: flex;
|
|
341
358
|
}
|
|
342
359
|
|
|
343
360
|
._uVP9W_closeIcon {
|
|
344
|
-
--close-button-size: var(--drawer-close-icon-size, var(--spacing-7));
|
|
345
|
-
--close-button-radius: var(--drawer-close-icon-radius, var(--radius-md));
|
|
346
|
-
--close-button-color: var(--drawer-close-icon-color, var(--drawer-description-color, var(--color-muted-foreground)));
|
|
347
|
-
--close-button-color-hover: var(--drawer-close-icon-color-hover, var(--drawer-color, var(--color-popover-foreground)));
|
|
348
|
-
--close-button-bg: var(--drawer-close-icon-bg, transparent);
|
|
349
|
-
--close-button-bg-hover: var(--drawer-close-icon-bg-hover, var(--color-accent));
|
|
350
|
-
--close-button-focus-ring-color: var(--drawer-close-icon-focus-ring-color, var(--drawer-focus-ring-color, var(--color-ring)));
|
|
351
|
-
--close-button-icon-size: var(--drawer-close-icon-glyph-size, var(--spacing-3));
|
|
361
|
+
--moduix-close-button-size: var(--moduix-drawer-close-icon-size, var(--moduix-spacing-7));
|
|
362
|
+
--moduix-close-button-radius: var(--moduix-drawer-close-icon-radius, var(--moduix-radius-md));
|
|
363
|
+
--moduix-close-button-color: var(--moduix-drawer-close-icon-color, var(--moduix-drawer-description-color, var(--moduix-color-muted-foreground)));
|
|
364
|
+
--moduix-close-button-color-hover: var(--moduix-drawer-close-icon-color-hover, var(--moduix-drawer-color, var(--moduix-color-popover-foreground)));
|
|
365
|
+
--moduix-close-button-bg: var(--moduix-drawer-close-icon-bg, transparent);
|
|
366
|
+
--moduix-close-button-bg-hover: var(--moduix-drawer-close-icon-bg-hover, var(--moduix-color-accent));
|
|
367
|
+
--moduix-close-button-focus-ring-color: var(--moduix-drawer-close-icon-focus-ring-color, var(--moduix-drawer-focus-ring-color, var(--moduix-color-ring)));
|
|
368
|
+
--moduix-close-button-icon-size: var(--moduix-drawer-close-icon-glyph-size, var(--moduix-spacing-3));
|
|
352
369
|
}
|
|
353
370
|
|
|
354
371
|
._uVP9W_swipeArea {
|
|
355
|
-
z-index: var(--z-modal);
|
|
372
|
+
z-index: var(--moduix-z-modal);
|
|
356
373
|
touch-action: none;
|
|
357
374
|
position: fixed;
|
|
358
375
|
|
|
359
376
|
&[data-swipe-direction="up"] {
|
|
360
|
-
height: var(--drawer-swipe-area-size, var(--spacing-10));
|
|
377
|
+
height: var(--moduix-drawer-swipe-area-size, var(--moduix-spacing-10));
|
|
361
378
|
bottom: 0;
|
|
362
379
|
left: 0;
|
|
363
380
|
right: 0;
|
|
364
381
|
}
|
|
365
382
|
|
|
366
383
|
&[data-swipe-direction="down"] {
|
|
367
|
-
height: var(--drawer-swipe-area-size, var(--spacing-10));
|
|
384
|
+
height: var(--moduix-drawer-swipe-area-size, var(--moduix-spacing-10));
|
|
368
385
|
top: 0;
|
|
369
386
|
left: 0;
|
|
370
387
|
right: 0;
|
|
371
388
|
}
|
|
372
389
|
|
|
373
390
|
&[data-swipe-direction="left"] {
|
|
374
|
-
width: var(--drawer-swipe-area-size, var(--spacing-10));
|
|
391
|
+
width: var(--moduix-drawer-swipe-area-size, var(--moduix-spacing-10));
|
|
375
392
|
top: 0;
|
|
376
393
|
bottom: 0;
|
|
377
394
|
right: 0;
|
|
378
395
|
}
|
|
379
396
|
|
|
380
397
|
&[data-swipe-direction="right"] {
|
|
381
|
-
width: var(--drawer-swipe-area-size, var(--spacing-10));
|
|
398
|
+
width: var(--moduix-drawer-swipe-area-size, var(--moduix-spacing-10));
|
|
382
399
|
top: 0;
|
|
383
400
|
bottom: 0;
|
|
384
401
|
left: 0;
|
|
@@ -390,32 +407,33 @@
|
|
|
390
407
|
}
|
|
391
408
|
|
|
392
409
|
._uVP9W_indentBackground {
|
|
393
|
-
background: var(--drawer-indent-background-bg, var(--color-foreground));
|
|
394
|
-
opacity: var(--drawer-indent-background-opacity, 0);
|
|
410
|
+
background: var(--moduix-drawer-indent-background-bg, var(--moduix-color-foreground));
|
|
411
|
+
opacity: var(--moduix-drawer-indent-background-opacity, 0);
|
|
395
412
|
pointer-events: none;
|
|
396
|
-
transition: opacity var(--drawer-indent-transition, var(--transition-spring));
|
|
413
|
+
transition: opacity var(--moduix-drawer-indent-transition, var(--moduix-transition-spring));
|
|
397
414
|
position: absolute;
|
|
398
415
|
inset: 0;
|
|
399
416
|
|
|
400
417
|
&[data-active] {
|
|
401
|
-
opacity: calc(var(--drawer-indent-background-opacity-active, 1) *
|
|
418
|
+
opacity: calc(var(--moduix-drawer-indent-background-opacity-active, 1) *
|
|
419
|
+
(1 - var(--drawer-swipe-progress, 0)));
|
|
402
420
|
}
|
|
403
421
|
}
|
|
404
422
|
|
|
405
423
|
._uVP9W_indent {
|
|
406
424
|
transform-origin: top;
|
|
407
|
-
transition: transform var(--drawer-indent-transition, var(--transition-spring)),
|
|
408
|
-
border-radius var(--drawer-indent-transition, var(--transition-spring));
|
|
425
|
+
transition: transform var(--moduix-drawer-indent-transition, var(--moduix-transition-spring)),
|
|
426
|
+
border-radius var(--moduix-drawer-indent-transition, var(--moduix-transition-spring));
|
|
409
427
|
position: relative;
|
|
410
428
|
transform: translateY(0) scale(1);
|
|
411
429
|
|
|
412
430
|
&[data-active] {
|
|
413
|
-
border-radius: var(--drawer-indent-radius-active, var(--radius-lg))
|
|
414
|
-
var(--drawer-indent-radius-active, var(--radius-lg)) 0 0;
|
|
415
|
-
transform: translateY(calc(var(--drawer-indent-translate-y-active, var(--spacing-2)) *
|
|
431
|
+
border-radius: var(--moduix-drawer-indent-radius-active, var(--moduix-radius-lg))
|
|
432
|
+
var(--moduix-drawer-indent-radius-active, var(--moduix-radius-lg)) 0 0;
|
|
433
|
+
transform: translateY(calc(var(--moduix-drawer-indent-translate-y-active, var(--moduix-spacing-2)) *
|
|
416
434
|
(1 - var(--drawer-swipe-progress, 0))))
|
|
417
|
-
scale(calc(var(--drawer-indent-scale-active, .97) +
|
|
418
|
-
(1 - var(--drawer-indent-scale-active, .97)) * var(--drawer-swipe-progress, 0)));
|
|
435
|
+
scale(calc(var(--moduix-drawer-indent-scale-active, .97) +
|
|
436
|
+
(1 - var(--moduix-drawer-indent-scale-active, .97)) * var(--drawer-swipe-progress, 0)));
|
|
419
437
|
}
|
|
420
438
|
}
|
|
421
439
|
|