@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21
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/package.json +1 -1
- package/src/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +154 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +157 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +212 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +57 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -57
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +116 -118
- package/src/datetime-field/datetime-field.css +80 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +63 -63
- package/src/datetime-range-picker/datetime-range-picker.css +151 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +273 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +177 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +83 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +153 -132
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +91 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +147 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +134 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +33 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +74 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +58 -58
- package/src/time-range-picker/time-range-picker.css +128 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* `text-field` itself, so a theme can move one without the other and neither
|
|
14
14
|
* stylesheet depends on the other's selectors.
|
|
15
15
|
*/
|
|
16
|
-
[data-ui
|
|
16
|
+
[data-ui-textarea][data-part-root] {
|
|
17
17
|
/**
|
|
18
18
|
* Type, height, inline padding and glyph size come from the control
|
|
19
19
|
* scales, the only ones the theme restates per density.
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
display: block;
|
|
60
60
|
font-family: var(--slotted-control-font-family, system-ui, sans-serif);
|
|
61
61
|
font-size: var(--_font-size);
|
|
62
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
63
|
+
flex-basis: content;
|
|
62
64
|
inline-size: 100%;
|
|
63
65
|
/**
|
|
64
66
|
* The text scale's leading rather than the control's `1`. A control's line
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
[data-ui
|
|
90
|
+
[data-ui-textarea][data-part-root]::placeholder {
|
|
89
91
|
color: var(--slotted-textarea-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -96,19 +98,19 @@
|
|
|
96
98
|
* height and its own line box.
|
|
97
99
|
*/
|
|
98
100
|
|
|
99
|
-
[data-ui
|
|
101
|
+
[data-ui-textarea][data-part-root][data-size='sm'] {
|
|
100
102
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
101
103
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
102
104
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
[data-ui
|
|
107
|
+
[data-ui-textarea][data-part-root][data-size='md'] {
|
|
106
108
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
107
109
|
--_height: var(--slotted-control-height-md, 34px);
|
|
108
110
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
109
111
|
}
|
|
110
112
|
|
|
111
|
-
[data-ui
|
|
113
|
+
[data-ui-textarea][data-part-root][data-size='lg'] {
|
|
112
114
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
113
115
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
114
116
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);
|
|
@@ -121,7 +123,7 @@
|
|
|
121
123
|
* into the page, and one that shows nothing until it is used.
|
|
122
124
|
*/
|
|
123
125
|
|
|
124
|
-
[data-ui
|
|
126
|
+
[data-ui-textarea][data-part-root][data-variant='subtle'] {
|
|
125
127
|
background-color: var(
|
|
126
128
|
--slotted-textarea-subtle-background,
|
|
127
129
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -135,7 +137,7 @@
|
|
|
135
137
|
/* No edge, no lift, no ground and no corner of its own: the cell it sits in
|
|
136
138
|
is the box, the row is the ground, a cell has no corner, and the resting
|
|
137
139
|
shadow would draw the cell where there is none. */
|
|
138
|
-
[data-ui
|
|
140
|
+
[data-ui-textarea][data-part-root][data-variant='plain'] {
|
|
139
141
|
background-color: transparent;
|
|
140
142
|
border-color: transparent;
|
|
141
143
|
border-radius: var(--slotted-radius-none, 0px);
|
|
@@ -144,12 +146,12 @@
|
|
|
144
146
|
|
|
145
147
|
/** A transparent border has no system colour to be remapped to. */
|
|
146
148
|
@media (forced-colors: active) {
|
|
147
|
-
[data-ui
|
|
149
|
+
[data-ui-textarea][data-part-root][data-variant='plain'] {
|
|
148
150
|
border-color: ButtonBorder;
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
|
|
152
|
-
[data-ui
|
|
154
|
+
[data-ui-textarea][data-part-root][data-mono] {
|
|
153
155
|
font-family: var(--slotted-font-family-mono, monospace);
|
|
154
156
|
font-variant-numeric: tabular-nums;
|
|
155
157
|
}
|
|
@@ -162,11 +164,11 @@
|
|
|
162
164
|
* Horizontal resize is offered and is not the default.
|
|
163
165
|
*/
|
|
164
166
|
|
|
165
|
-
[data-ui
|
|
167
|
+
[data-ui-textarea][data-part-root][data-resize='none'] {
|
|
166
168
|
resize: none;
|
|
167
169
|
}
|
|
168
170
|
|
|
169
|
-
[data-ui
|
|
171
|
+
[data-ui-textarea][data-part-root][data-resize='both'] {
|
|
170
172
|
resize: both;
|
|
171
173
|
}
|
|
172
174
|
|
|
@@ -188,7 +190,7 @@
|
|
|
188
190
|
* Where `field-sizing` is unsupported the control keeps the block size
|
|
189
191
|
* `rows` gives it — a smaller box, not a broken one.
|
|
190
192
|
*/
|
|
191
|
-
[data-ui
|
|
193
|
+
[data-ui-textarea][data-part-root][data-auto-size] {
|
|
192
194
|
field-sizing: content;
|
|
193
195
|
max-block-size: calc(var(--_max-rows) * 1lh + var(--_scroll-frame));
|
|
194
196
|
/**
|
|
@@ -209,13 +211,13 @@
|
|
|
209
211
|
* held back for every stronger one it can meet.
|
|
210
212
|
*/
|
|
211
213
|
|
|
212
|
-
[data-ui
|
|
214
|
+
[data-ui-textarea][data-part-root]:hover:not([data-disabled]):not(:disabled):not(
|
|
213
215
|
[data-readonly]
|
|
214
216
|
):not([data-invalid]) {
|
|
215
217
|
border-color: var(--slotted-textarea-hover-border-color, var(--slotted-tone-accent-border));
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
[data-ui
|
|
220
|
+
[data-ui-textarea][data-part-root][data-variant='subtle']:hover:not([data-disabled]):not(
|
|
219
221
|
:disabled
|
|
220
222
|
):not([data-readonly]):not([data-invalid]) {
|
|
221
223
|
background-color: var(
|
|
@@ -224,7 +226,7 @@
|
|
|
224
226
|
);
|
|
225
227
|
}
|
|
226
228
|
|
|
227
|
-
[data-ui
|
|
229
|
+
[data-ui-textarea][data-part-root][data-variant='plain']:hover:not([data-disabled]):not(
|
|
228
230
|
:disabled
|
|
229
231
|
):not([data-readonly]):not([data-invalid]) {
|
|
230
232
|
background-color: var(
|
|
@@ -235,12 +237,12 @@
|
|
|
235
237
|
border-color: transparent;
|
|
236
238
|
}
|
|
237
239
|
|
|
238
|
-
[data-ui
|
|
240
|
+
[data-ui-textarea][data-part-root]:focus-visible {
|
|
239
241
|
/** Foundation geometry, focus-ring ink: the lift and the ring are one colour. */
|
|
240
242
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
241
243
|
var(--slotted-focus-ring-color, Highlight);
|
|
242
244
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
243
|
-
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
245
|
+
outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
|
|
244
246
|
}
|
|
245
247
|
|
|
246
248
|
/**
|
|
@@ -250,7 +252,7 @@
|
|
|
250
252
|
* shadow that appears only under focus is a cell that changes size when it
|
|
251
253
|
* is used.
|
|
252
254
|
*/
|
|
253
|
-
[data-ui
|
|
255
|
+
[data-ui-textarea][data-part-root][data-variant='plain']:focus-visible {
|
|
254
256
|
box-shadow: none;
|
|
255
257
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
256
258
|
}
|
|
@@ -260,7 +262,7 @@
|
|
|
260
262
|
* reads `--slotted-focus-ring-color`, so pointing that one name at the
|
|
261
263
|
* invalid colour on the element moves the outline and the shadow together.
|
|
262
264
|
*/
|
|
263
|
-
[data-ui
|
|
265
|
+
[data-ui-textarea][data-part-root][data-invalid] {
|
|
264
266
|
--slotted-focus-ring-color: var(
|
|
265
267
|
--slotted-textarea-invalid-focus-ring-color,
|
|
266
268
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
@@ -285,14 +287,14 @@
|
|
|
285
287
|
box-shadow: var(--_invalid-edge);
|
|
286
288
|
}
|
|
287
289
|
|
|
288
|
-
[data-ui
|
|
290
|
+
[data-ui-textarea][data-part-root][data-invalid]:focus-visible {
|
|
289
291
|
box-shadow:
|
|
290
292
|
var(--_invalid-edge),
|
|
291
293
|
var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
292
294
|
var(--slotted-focus-ring-color, Highlight);
|
|
293
295
|
}
|
|
294
296
|
|
|
295
|
-
[data-ui
|
|
297
|
+
[data-ui-textarea][data-part-root][data-variant='plain'][data-invalid]:focus-visible {
|
|
296
298
|
/* The ring lies inside the box here, over the border and an edge as wide as
|
|
297
299
|
it; the edge reaches past the ring. */
|
|
298
300
|
box-shadow: inset 0 0 0
|
|
@@ -309,20 +311,23 @@
|
|
|
309
311
|
* control draws its ring double, which a valid ring is not.
|
|
310
312
|
*/
|
|
311
313
|
@media (forced-colors: active) {
|
|
312
|
-
[data-ui
|
|
314
|
+
[data-ui-textarea][data-part-root][data-invalid] {
|
|
313
315
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
314
316
|
outline-offset: calc(
|
|
315
317
|
-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
|
|
316
318
|
);
|
|
317
319
|
}
|
|
318
320
|
|
|
319
|
-
[data-ui
|
|
321
|
+
[data-ui-textarea][data-part-root][data-invalid]:focus-visible {
|
|
320
322
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
321
323
|
var(--slotted-focus-ring-color, Highlight);
|
|
322
|
-
outline-offset: var(
|
|
324
|
+
outline-offset: var(
|
|
325
|
+
--slotted-control-focus-ring-offset,
|
|
326
|
+
var(--slotted-focus-ring-offset, 2px)
|
|
327
|
+
);
|
|
323
328
|
}
|
|
324
329
|
|
|
325
|
-
[data-ui
|
|
330
|
+
[data-ui-textarea][data-part-root][data-variant='plain'][data-invalid]:focus-visible {
|
|
326
331
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
327
332
|
var(--slotted-focus-ring-color, Highlight);
|
|
328
333
|
outline-offset: calc(
|
|
@@ -336,7 +341,7 @@
|
|
|
336
341
|
* has to copy is the commonest thing a read-only textarea holds, so the ink
|
|
337
342
|
* does not change at all and only the ground says the value is not theirs.
|
|
338
343
|
*/
|
|
339
|
-
[data-ui
|
|
344
|
+
[data-ui-textarea][data-part-root][data-readonly] {
|
|
340
345
|
background-color: var(
|
|
341
346
|
--slotted-textarea-readonly-background,
|
|
342
347
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -348,8 +353,8 @@
|
|
|
348
353
|
* `:disabled` beside `data-disabled`, because a disabled `fieldset` disables
|
|
349
354
|
* every control inside it and tells none of them.
|
|
350
355
|
*/
|
|
351
|
-
[data-ui
|
|
352
|
-
[data-ui
|
|
356
|
+
[data-ui-textarea][data-part-root][data-disabled],
|
|
357
|
+
[data-ui-textarea][data-part-root]:disabled {
|
|
353
358
|
background-color: var(
|
|
354
359
|
--slotted-textarea-disabled-background,
|
|
355
360
|
var(--slotted-disabled-background)
|