@plexui/styles 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +28 -2
- package/dist/es/components/Accordion/Accordion.module.css +89 -0
- package/dist/es/components/Alert/Alert.module.css +210 -0
- package/dist/es/components/Avatar/Avatar.module.css +168 -0
- package/dist/es/components/Avatar/AvatarGroup.module.css +26 -0
- package/dist/es/components/Badge/Badge.module.css +196 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +59 -0
- package/dist/es/components/Button/Button.module.css +863 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +158 -0
- package/dist/es/components/Card/Card.module.css +125 -0
- package/dist/es/components/Checkbox/Checkbox.module.css +225 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +139 -0
- package/dist/es/components/DataTable/DataTable.module.css +117 -0
- package/dist/es/components/DatePicker/Calendar.module.css +271 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +295 -0
- package/dist/es/components/DateRangePicker/Trigger.module.css +25 -0
- package/dist/es/components/Dialog/Dialog.module.css +240 -0
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +116 -0
- package/dist/es/components/Field/Field.module.css +152 -0
- package/dist/es/components/FieldError/FieldError.module.css +28 -0
- package/dist/es/components/FileUpload/FileUpload.module.css +133 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +220 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +152 -0
- package/dist/es/components/Image/Image.module.css +9 -0
- package/dist/es/components/Indicator/CircularProgress.module.css +28 -0
- package/dist/es/components/Indicator/LoadingDots.module.css +35 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +41 -0
- package/dist/es/components/Input/Input.module.css +519 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +309 -0
- package/dist/es/components/Kbd/Kbd.module.css +47 -0
- package/dist/es/components/Label/Label.module.css +16 -0
- package/dist/es/components/Markdown/Markdown.module.css +233 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +297 -0
- package/dist/es/components/Menu/Menu.module.css +389 -0
- package/dist/es/components/OTPInput/OTPInput.module.css +70 -0
- package/dist/es/components/Popover/Popover.module.css +82 -0
- package/dist/es/components/Progress/Progress.module.css +34 -0
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +246 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +159 -0
- package/dist/es/components/Select/Select.module.css +341 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +558 -0
- package/dist/es/components/Separator/Separator.module.css +16 -0
- package/dist/es/components/ShimmerText/ShimmerText.module.css +43 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +913 -0
- package/dist/es/components/Skeleton/Skeleton.module.css +17 -0
- package/dist/es/components/Slider/Slider.module.css +199 -0
- package/dist/es/components/StatCard/StatCard.module.css +234 -0
- package/dist/es/components/Switch/Switch.module.css +121 -0
- package/dist/es/components/Table/Table.module.css +56 -0
- package/dist/es/components/Tabs/Tabs.module.css +688 -0
- package/dist/es/components/TagInput/TagInput.module.css +320 -0
- package/dist/es/components/TextLink/TextLink.module.css +50 -0
- package/dist/es/components/Textarea/Textarea.module.css +272 -0
- package/dist/es/components/Toast/Toast.module.css +99 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +91 -0
- package/dist/es/components/Transition/Animate.module.css +54 -0
- package/dist/es/components/Transition/AnimateLayout.module.css +101 -0
- package/dist/es/components/Transition/AnimateLayoutGroup.module.css +88 -0
- package/dist/es/components/Transition/TransitionGroup.module.css +4 -0
- package/dist/es/styles/base.css +102 -0
- package/dist/es/styles/globals.css +50 -0
- package/dist/es/styles/index.css +22 -0
- package/dist/es/styles/katex.min.css +1296 -0
- package/dist/es/styles/tailwind-utilities.css +1316 -0
- package/dist/es/styles/touch.css +71 -0
- package/dist/es/styles/variables-components.css +626 -0
- package/dist/es/styles/variables-primitive.css +327 -0
- package/dist/es/styles/variables-semantic.css +629 -0
- package/dist/es/styles/variables-tailwind-theme.css +34 -0
- package/dist/es/styles/variables-tokens-root.css +40 -0
- package/dist/es/types.js +4 -0
- package/dist/es/types.js.map +1 -0
- package/dist/es/vite/index.js +54 -0
- package/dist/es/vite/index.js.map +1 -0
- package/dist/types/types.d.ts +15 -0
- package/dist/types/vite/index.d.ts +55 -0
- package/package.json +109 -4
- package/postcss/functions.mjs +23 -0
- package/postcss/injectBreakpoints.mjs +47 -0
- package/postcss/mixins.mjs +100 -0
- package/postcss/parseLightDark.mjs +174 -0
- package/postcss/wrapModulesInLayer.mjs +21 -0
- package/postcss.config.mjs +52 -0
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
@layer components {.Container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--input-gap);
|
|
5
|
+
width: 100%;
|
|
6
|
+
border-radius: var(--input-radius);
|
|
7
|
+
color: var(--input-text-color);
|
|
8
|
+
cursor: text;
|
|
9
|
+
/* NOTE: Whenever this is not 16px on mobile, zooming occurs. */
|
|
10
|
+
font-size: var(--input-font-size);
|
|
11
|
+
font-weight: var(--font-weight-normal);
|
|
12
|
+
line-height: 1;
|
|
13
|
+
transition-duration: var(--transition-duration-basic);
|
|
14
|
+
transition-property: color, box-shadow, background-color;
|
|
15
|
+
transition-timing-function: var(--transition-ease-basic);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.Container:where([data-optically-align="start"]) {
|
|
19
|
+
margin-inline-start: calc(var(--input-gutter) * -1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.Container:where([data-optically-align="start"])[data-pill] {
|
|
23
|
+
margin-inline-start: calc(var(--input-gutter) * var(--control-gutter-pill-scaling) * -1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.Container:where([data-optically-align="end"]) {
|
|
27
|
+
margin-inline-end: calc(var(--input-gutter) * -1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.Container:where([data-optically-align="end"])[data-pill] {
|
|
31
|
+
margin-inline-end: calc(var(--input-gutter) * var(--control-gutter-pill-scaling) * -1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* =============================================
|
|
35
|
+
Outline variant
|
|
36
|
+
============================================= */
|
|
37
|
+
.Container:where([data-variant="outline"]) {
|
|
38
|
+
/* NOTE: Don't add box-model size here, as the <input> defines all height sizing */
|
|
39
|
+
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
40
|
+
}
|
|
41
|
+
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
42
|
+
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.Container:where([data-variant="outline"]):not([data-disabled])[data-focused="true"] {
|
|
47
|
+
box-shadow: 0 0 0 1px var(--input-outline-border-color-focus) inset;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.Container:where([data-variant="outline"]):not([data-disabled])[data-invalid] {
|
|
51
|
+
box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* =============================================
|
|
55
|
+
Soft variant
|
|
56
|
+
============================================= */
|
|
57
|
+
.Container:where([data-variant="soft"]) {
|
|
58
|
+
background-color: var(--input-soft-background-color);
|
|
59
|
+
}
|
|
60
|
+
.Container:where([data-variant="soft"]):not([data-disabled])[data-focused="true"] {
|
|
61
|
+
box-shadow: 0 0 0 1px var(--input-soft-border-color-focus) inset;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.Container:where([data-variant="soft"]):not([data-disabled])[data-invalid] {
|
|
65
|
+
box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* =============================================
|
|
69
|
+
Ghost variant: no border, no fill. For a field that its container
|
|
70
|
+
already frames, such as the search line at the top of a dialog
|
|
71
|
+
============================================= */
|
|
72
|
+
.Container:where([data-variant="ghost"]) {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Container:where([data-variant="ghost"]):not([data-disabled])[data-invalid] {
|
|
77
|
+
box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* =============================================
|
|
81
|
+
Invalid
|
|
82
|
+
============================================= */
|
|
83
|
+
.Container[data-invalid] ::-moz-selection {
|
|
84
|
+
background-color: var(--red-a50);
|
|
85
|
+
}
|
|
86
|
+
.Container[data-invalid] ::selection {
|
|
87
|
+
background-color: var(--red-a50);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* =============================================
|
|
91
|
+
Sizes
|
|
92
|
+
============================================= */
|
|
93
|
+
.Container:where([data-size="3xs"]) {
|
|
94
|
+
--input-size: var(--control-size-3xs);
|
|
95
|
+
--input-font-size: var(--control-font-size-sm);
|
|
96
|
+
--input-radius: var(--control-radius-sm);
|
|
97
|
+
--input-gutter: var(--control-gutter-2xs);
|
|
98
|
+
--input-gap: var(--input-gap-xs);
|
|
99
|
+
--input-adornment-offset: -1px;
|
|
100
|
+
--input-clear-size: 12px;
|
|
101
|
+
--input-clear-icon-size: 10px;
|
|
102
|
+
--input-clear-offset: -1px;
|
|
103
|
+
--input-clear-pill-offset: -2px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.Container:where([data-size="2xs"]) {
|
|
107
|
+
--input-size: var(--control-size-2xs);
|
|
108
|
+
--input-font-size: var(--control-font-size-sm);
|
|
109
|
+
--input-radius: var(--control-radius-sm);
|
|
110
|
+
--input-gutter: var(--control-gutter-xs);
|
|
111
|
+
--input-gap: var(--input-gap-xs);
|
|
112
|
+
--input-adornment-offset: -1px;
|
|
113
|
+
--input-clear-size: 14px;
|
|
114
|
+
--input-clear-icon-size: 12px;
|
|
115
|
+
--input-clear-offset: -2px;
|
|
116
|
+
--input-clear-pill-offset: -4px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.Container:where([data-size="xs"]) {
|
|
120
|
+
--input-size: var(--control-size-xs);
|
|
121
|
+
--input-font-size: var(--control-font-size-md);
|
|
122
|
+
--input-radius: var(--control-radius-sm);
|
|
123
|
+
--input-gutter: var(--control-gutter-xs);
|
|
124
|
+
--input-gap: var(--input-gap-sm);
|
|
125
|
+
--input-adornment-offset: -1px;
|
|
126
|
+
--input-clear-size: 16px;
|
|
127
|
+
--input-clear-icon-size: 12px;
|
|
128
|
+
--input-clear-offset: -2px;
|
|
129
|
+
--input-clear-pill-offset: -4px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.Container:where([data-size="sm"]) {
|
|
133
|
+
--input-size: var(--control-size-sm);
|
|
134
|
+
--input-font-size: var(--control-font-size-md);
|
|
135
|
+
--input-radius: var(--control-radius-sm);
|
|
136
|
+
--input-gutter: var(--control-gutter-sm);
|
|
137
|
+
--input-gap: var(--input-gap-md);
|
|
138
|
+
--input-adornment-offset: -1px;
|
|
139
|
+
--input-clear-size: 16px;
|
|
140
|
+
--input-clear-icon-size: 12px;
|
|
141
|
+
--input-clear-offset: -3px;
|
|
142
|
+
--input-clear-pill-offset: -6px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.Container:where([data-size="md"]) {
|
|
146
|
+
--input-size: var(--control-size-md);
|
|
147
|
+
--input-font-size: var(--control-font-size-md);
|
|
148
|
+
--input-radius: var(--control-radius-md);
|
|
149
|
+
--input-gutter: var(--control-gutter-md);
|
|
150
|
+
--input-gap: var(--input-gap-md);
|
|
151
|
+
--input-clear-size: 18px;
|
|
152
|
+
--input-clear-icon-size: 14px;
|
|
153
|
+
--input-clear-offset: -4px;
|
|
154
|
+
--input-clear-pill-offset: -7px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.Container:where([data-size="lg"]) {
|
|
158
|
+
--input-size: var(--control-size-lg);
|
|
159
|
+
--input-font-size: var(--control-font-size-md);
|
|
160
|
+
--input-radius: var(--control-radius-lg);
|
|
161
|
+
--input-gutter: var(--control-gutter-md);
|
|
162
|
+
--input-gap: var(--input-gap-md);
|
|
163
|
+
--input-clear-size: 18px;
|
|
164
|
+
--input-clear-icon-size: 14px;
|
|
165
|
+
--input-clear-offset: -5px;
|
|
166
|
+
--input-clear-pill-offset: -6px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.Container:where([data-size="xl"]) {
|
|
170
|
+
--input-size: var(--control-size-xl);
|
|
171
|
+
--input-font-size: var(--control-font-size-lg);
|
|
172
|
+
--input-radius: var(--control-radius-xl);
|
|
173
|
+
--input-gutter: var(--control-gutter-lg);
|
|
174
|
+
--input-gap: var(--input-gap-lg);
|
|
175
|
+
--input-clear-size: 18px;
|
|
176
|
+
--input-clear-icon-size: 14px;
|
|
177
|
+
--input-clear-offset: -6px;
|
|
178
|
+
--input-clear-pill-offset: -7px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.Container:where([data-size="2xl"]) {
|
|
182
|
+
--input-size: var(--control-size-2xl);
|
|
183
|
+
--input-font-size: var(--control-font-size-lg);
|
|
184
|
+
--input-radius: var(--control-radius-xl);
|
|
185
|
+
--input-gutter: var(--control-gutter-lg);
|
|
186
|
+
--input-gap: var(--input-gap-lg);
|
|
187
|
+
--input-adornment-offset: -4px;
|
|
188
|
+
--input-clear-size: 20px;
|
|
189
|
+
--input-clear-icon-size: 15px;
|
|
190
|
+
--input-clear-offset: -6px;
|
|
191
|
+
--input-clear-pill-offset: -7px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.Container:where([data-size="3xl"]) {
|
|
195
|
+
--input-size: var(--control-size-3xl);
|
|
196
|
+
--input-font-size: var(--control-font-size-lg);
|
|
197
|
+
--input-radius: var(--control-radius-xl);
|
|
198
|
+
--input-gutter: var(--control-gutter-xl);
|
|
199
|
+
--input-gap: var(--input-gap-lg);
|
|
200
|
+
--input-adornment-offset: -4px;
|
|
201
|
+
--input-clear-size: 20px;
|
|
202
|
+
--input-clear-icon-size: 15px;
|
|
203
|
+
--input-clear-offset: -6px;
|
|
204
|
+
--input-clear-pill-offset: -7px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* =============================================
|
|
208
|
+
Gutter sizes
|
|
209
|
+
============================================= */
|
|
210
|
+
.Container:where([data-gutter-size="2xs"]) {
|
|
211
|
+
--input-gutter: var(--control-gutter-2xs);
|
|
212
|
+
--input-adornment-offset: -1px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.Container:where([data-gutter-size="xs"]) {
|
|
216
|
+
--input-gutter: var(--control-gutter-xs);
|
|
217
|
+
--input-adornment-offset: -1px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.Container:where([data-gutter-size="sm"]) {
|
|
221
|
+
--input-gutter: var(--control-gutter-sm);
|
|
222
|
+
--input-adornment-offset: -2px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.Container:where([data-gutter-size="md"]) {
|
|
226
|
+
--input-gutter: var(--control-gutter-md);
|
|
227
|
+
--input-adornment-offset: -2px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.Container:where([data-gutter-size="lg"]) {
|
|
231
|
+
--input-gutter: var(--control-gutter-lg);
|
|
232
|
+
--input-adornment-offset: -2px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.Container:where([data-gutter-size="xl"]) {
|
|
236
|
+
--input-gutter: var(--control-gutter-xl);
|
|
237
|
+
--input-adornment-offset: -4px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* =============================================
|
|
241
|
+
Pill
|
|
242
|
+
============================================= */
|
|
243
|
+
.Container:where([data-pill]) {
|
|
244
|
+
--input-radius: var(--radius-full);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* =============================================
|
|
248
|
+
Disabled
|
|
249
|
+
---------------------------------------------
|
|
250
|
+
Fade the input text and the built-in Clear button, but keep the
|
|
251
|
+
Container's chrome (border, focus ring) and any AdornmentButton
|
|
252
|
+
at full opacity — AdornmentButtons often double as toggles that
|
|
253
|
+
remain interactive while the input is disabled (voice-mode switch,
|
|
254
|
+
edit-in-place, etc.).
|
|
255
|
+
============================================= */
|
|
256
|
+
.Container[data-disabled] {
|
|
257
|
+
cursor: not-allowed;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.Container[data-disabled] > .Input,
|
|
261
|
+
.Container[data-disabled] > .Clear {
|
|
262
|
+
opacity: 0.5;
|
|
263
|
+
}
|
|
264
|
+
/*
|
|
265
|
+
* When adornments are present, gutter is applied to the container instead of the input.
|
|
266
|
+
*/
|
|
267
|
+
.Container:where([data-has-start-adornment]) {
|
|
268
|
+
padding-left: var(--input-gutter);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* =============================================
|
|
272
|
+
Gutter
|
|
273
|
+
============================================= */
|
|
274
|
+
|
|
275
|
+
.Container:where([data-has-start-adornment][data-pill]) {
|
|
276
|
+
padding-left: calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.Container:where([data-has-end-adornment]) {
|
|
280
|
+
padding-right: var(--input-gutter);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.Container:where([data-has-end-adornment][data-pill]) {
|
|
284
|
+
padding-right: calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* =============================================
|
|
288
|
+
Adornments
|
|
289
|
+
============================================= */
|
|
290
|
+
.Container > :first-child:not(input) {
|
|
291
|
+
margin-left: var(--input-adornment-offset, -2px);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.Container > :last-child:not(input, .Clear, .AdornmentButton) {
|
|
295
|
+
margin-right: var(--input-adornment-offset, -2px);
|
|
296
|
+
}.Input {
|
|
297
|
+
display: block;
|
|
298
|
+
width: 100%;
|
|
299
|
+
height: var(--input-size);
|
|
300
|
+
/* `padding` is intrinsic to `.Input` when no adornments are present, for a few reasons. Autofill extensions are one such reason. */
|
|
301
|
+
padding: 0 var(--input-gutter);
|
|
302
|
+
border: 0;
|
|
303
|
+
border-radius: 0;
|
|
304
|
+
background: none;
|
|
305
|
+
box-shadow: none;
|
|
306
|
+
color: inherit;
|
|
307
|
+
font-size: inherit;
|
|
308
|
+
font-weight: inherit;
|
|
309
|
+
line-height: inherit;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.Input:focus {
|
|
313
|
+
outline: 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.Input:disabled {
|
|
317
|
+
cursor: not-allowed;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.Input::-moz-placeholder {
|
|
321
|
+
color: var(--input-placeholder-text-color);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.Input::placeholder {
|
|
325
|
+
color: var(--input-placeholder-text-color);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* Applying an animation on autofill allows us to listen for the event in JS */
|
|
329
|
+
.Input:-webkit-autofill {
|
|
330
|
+
animation: native-autofill-in 1ms;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.Input:-webkit-autofill, .Input:-webkit-autofill:focus, .Input:-webkit-autofill:hover {
|
|
334
|
+
color: var(--color-text) !important;
|
|
335
|
+
-webkit-text-fill-color: var(--color-text) !important;
|
|
336
|
+
/*
|
|
337
|
+
* Prevent all color changes by delaying their effect for a very long time
|
|
338
|
+
* We cannot beat the specificity of user-agent stylesheet declarations, so we must delay them.
|
|
339
|
+
*/
|
|
340
|
+
-webkit-transition:
|
|
341
|
+
background-color 0s 50000s,
|
|
342
|
+
box-shadow 0s 50000s,
|
|
343
|
+
filter 0s 50000s !important;
|
|
344
|
+
transition:
|
|
345
|
+
background-color 0s 50000s,
|
|
346
|
+
box-shadow 0s 50000s,
|
|
347
|
+
filter 0s 50000s !important;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.Input:-webkit-autofill-and-obscured, .Input:-webkit-autofill-strong-password, .Input:-webkit-autofill-strong-password-viewable {
|
|
351
|
+
color: var(--color-text) !important;
|
|
352
|
+
-webkit-text-fill-color: var(--color-text) !important;
|
|
353
|
+
/*
|
|
354
|
+
* Prevent all color changes by delaying their effect for a very long time
|
|
355
|
+
* We cannot beat the specificity of user-agent stylesheet declarations, so we must delay them.
|
|
356
|
+
*/
|
|
357
|
+
-webkit-transition:
|
|
358
|
+
background-color 0s 50000s,
|
|
359
|
+
box-shadow 0s 50000s,
|
|
360
|
+
filter 0s 50000s !important;
|
|
361
|
+
transition:
|
|
362
|
+
background-color 0s 50000s,
|
|
363
|
+
box-shadow 0s 50000s,
|
|
364
|
+
filter 0s 50000s !important;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* Prevent strange autofill size adjustments */
|
|
368
|
+
.Input:-webkit-autofill::first-line {
|
|
369
|
+
font-size: inherit !important;
|
|
370
|
+
-webkit-transition: font-size 0s 50000s !important;
|
|
371
|
+
transition: font-size 0s 50000s !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* Hide up/down arrows */
|
|
375
|
+
.Input[type="number"] {
|
|
376
|
+
/* Firefox */
|
|
377
|
+
-webkit-appearance: textfield;
|
|
378
|
+
-moz-appearance: textfield;
|
|
379
|
+
appearance: textfield;
|
|
380
|
+
|
|
381
|
+
/* Chrome, Safari, Edge, Opera */
|
|
382
|
+
}
|
|
383
|
+
.Input[type="number"]::-webkit-outer-spin-button,
|
|
384
|
+
.Input[type="number"]::-webkit-inner-spin-button {
|
|
385
|
+
margin: 0;
|
|
386
|
+
-webkit-appearance: none;
|
|
387
|
+
appearance: none;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* Dynamic pill spacing */
|
|
391
|
+
:where(.Container[data-pill]) .Input {
|
|
392
|
+
padding: 0 calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:where(.Container[data-has-start-adornment]) .Input {
|
|
396
|
+
padding-left: 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
:where(.Container[data-has-end-adornment]) .Input {
|
|
400
|
+
padding-right: 0;
|
|
401
|
+
}.Clear {
|
|
402
|
+
display: flex;
|
|
403
|
+
align-items: center;
|
|
404
|
+
justify-content: center;
|
|
405
|
+
flex-shrink: 0;
|
|
406
|
+
width: var(--input-clear-size);
|
|
407
|
+
height: var(--input-clear-size);
|
|
408
|
+
padding: 0;
|
|
409
|
+
border: 0;
|
|
410
|
+
border-radius: var(--radius-full);
|
|
411
|
+
margin-right: var(--input-clear-offset);
|
|
412
|
+
background-color: var(--color-background-primary-soft-alpha);
|
|
413
|
+
color: var(--color-text-primary-soft);
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
transition-duration: var(--transition-duration-basic);
|
|
416
|
+
transition-property: background-color;
|
|
417
|
+
transition-timing-function: var(--transition-ease-basic);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.Clear:hover {
|
|
421
|
+
background-color: var(--color-background-primary-soft-alpha-hover);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.Clear:active {
|
|
425
|
+
background-color: var(--color-background-primary-soft-alpha-active);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:where(.Container[data-pill]) .Clear {
|
|
429
|
+
margin-right: var(--input-clear-pill-offset);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.Clear > svg {
|
|
433
|
+
width: var(--input-clear-icon-size);
|
|
434
|
+
height: var(--input-clear-icon-size);
|
|
435
|
+
}/* AdornmentButton — public sibling of .Clear for in-input action buttons
|
|
436
|
+
(mic toggle, copy, send, etc.). Sized from the Input's own size token:
|
|
437
|
+
input height minus one spacing step each side leaves ~4px of breathing
|
|
438
|
+
room top + bottom, so a md (32px) input gets a 24px pill, an lg (36px)
|
|
439
|
+
gets 28px, etc. Radius is --radius-full so a pill input stays
|
|
440
|
+
concentric with the button. Icon fills half the button. */.AdornmentButton {
|
|
441
|
+
display: flex;
|
|
442
|
+
align-items: center;
|
|
443
|
+
justify-content: center;
|
|
444
|
+
flex-shrink: 0;
|
|
445
|
+
width: calc(var(--input-size) - calc(var(--spacing) * 2));
|
|
446
|
+
height: calc(var(--input-size) - calc(var(--spacing) * 2));
|
|
447
|
+
padding: 0;
|
|
448
|
+
border: 0;
|
|
449
|
+
border-radius: var(--radius-full);
|
|
450
|
+
/* Concentric with the input edge — leave a spacing(1) = 4px breathing
|
|
451
|
+
gap between the button's outer edge and the input's inner edge.
|
|
452
|
+
For a non-pill input that's `4 - gutter`; a pill input scales the
|
|
453
|
+
gutter by --control-gutter-pill-scaling. */
|
|
454
|
+
margin-right: calc(calc(var(--spacing) * 1) - var(--input-gutter));
|
|
455
|
+
background-color: transparent;
|
|
456
|
+
color: var(--color-text-tertiary);
|
|
457
|
+
cursor: pointer;
|
|
458
|
+
transition-duration: var(--transition-duration-basic);
|
|
459
|
+
transition-property: background-color, color;
|
|
460
|
+
transition-timing-function: var(--transition-ease-basic);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.AdornmentButton:hover {
|
|
464
|
+
background-color: var(--color-background-secondary-soft-alpha);
|
|
465
|
+
color: var(--color-text);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.AdornmentButton[aria-pressed="true"] {
|
|
469
|
+
background-color: var(--color-background-primary-soft);
|
|
470
|
+
color: var(--color-text);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.AdornmentButton[data-color="caution"][aria-pressed="true"] {
|
|
474
|
+
background-color: var(--color-background-caution-soft);
|
|
475
|
+
color: var(--color-text-caution-soft);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.AdornmentButton[data-color="danger"][aria-pressed="true"] {
|
|
479
|
+
background-color: var(--color-background-danger-soft);
|
|
480
|
+
color: var(--color-text-danger-soft);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.AdornmentButton[data-color="success"][aria-pressed="true"] {
|
|
484
|
+
background-color: var(--color-background-success-soft);
|
|
485
|
+
color: var(--color-text-success-soft);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.AdornmentButton[data-color="info"][aria-pressed="true"] {
|
|
489
|
+
background-color: var(--color-background-info-soft);
|
|
490
|
+
color: var(--color-text-info-soft);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.AdornmentButton[data-color="discovery"][aria-pressed="true"] {
|
|
494
|
+
background-color: var(--color-background-discovery-soft);
|
|
495
|
+
color: var(--color-text-discovery-soft);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.AdornmentButton:disabled {
|
|
499
|
+
cursor: not-allowed;
|
|
500
|
+
opacity: 0.5;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
:where(.Container[data-pill]) .AdornmentButton {
|
|
504
|
+
margin-right: calc(calc(var(--spacing) * 1) - var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.AdornmentButton > svg {
|
|
508
|
+
width: calc(var(--input-size) / 2);
|
|
509
|
+
height: calc(var(--input-size) / 2);
|
|
510
|
+
}@keyframes native-autofill-in {
|
|
511
|
+
0% {
|
|
512
|
+
opacity: 1;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
100% {
|
|
516
|
+
opacity: 1;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|