@slotted/styles 0.1.0-beta.8 → 0.1.0-beta.9
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 +31 -32
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +35 -35
- package/src/app-shell/app-shell.css +280 -299
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +41 -41
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +37 -37
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +88 -69
- package/src/button-group/button-group.css +69 -73
- package/src/calendar/calendar.css +93 -103
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +147 -151
- package/src/chart/chart.css +225 -240
- 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 +69 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +99 -101
- package/src/command-palette/command-palette.css +84 -90
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +99 -104
- package/src/dashboard-grid/dashboard-grid.css +104 -107
- package/src/data-grid/data-grid.css +458 -456
- package/src/data-grid/data-grid.tokens.json +2 -0
- package/src/data-list/data-list.css +67 -69
- package/src/date-field/date-field.css +50 -50
- package/src/date-picker/date-picker.css +40 -42
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +73 -78
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +61 -64
- package/src/detail-panel/detail-panel.css +70 -70
- package/src/dialog/dialog.css +300 -148
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +186 -209
- package/src/entity-picker/entity-picker.css +220 -239
- 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 +21 -24
- 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 +15 -15
- 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 +28 -28
- package/src/kbd/kbd.css +26 -26
- package/src/link/link.css +15 -15
- package/src/list/list.css +20 -20
- package/src/list-item/list-item.css +66 -66
- 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 +63 -65
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +174 -202
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +131 -137
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +134 -148
- package/src/number-field/number-field.css +76 -81
- package/src/otp-input/otp-input.css +48 -48
- package/src/page/page.css +23 -23
- package/src/page-header/page-header.css +219 -280
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +40 -49
- package/src/progress-indicator/progress-indicator.css +85 -90
- package/src/prompt-composer/prompt-composer.css +94 -99
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +132 -132
- package/src/result-state/result-state.css +74 -77
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +32 -35
- package/src/section/section.css +16 -16
- package/src/segmented-control/segmented-control.css +77 -79
- package/src/select/select.css +113 -115
- package/src/side-navigation/side-navigation.css +170 -180
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +32 -32
- package/src/spinner/spinner.css +4 -4
- package/src/split-button/split-button.css +26 -31
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +102 -103
- package/src/status-indicator/status-indicator.css +28 -28
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +189 -198
- package/src/table-of-contents/table-of-contents.css +51 -54
- package/src/tabs/tabs.css +143 -162
- package/src/tag/tag.css +67 -71
- package/src/tags-input/tags-input.css +124 -74
- package/src/tags-input/tags-input.tokens.json +6 -1
- package/src/text-field/text-field.css +108 -126
- package/src/textarea/textarea.css +26 -26
- package/src/time-field/time-field.css +67 -67
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +244 -266
- package/src/toast/toast.css +81 -90
- package/src/toggle/toggle.css +29 -33
- package/src/toggle-group/toggle-group.css +67 -71
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +26 -26
- 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 +36 -36
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* rule `link` arrived at after painting hover with a fill role; a trail is
|
|
13
13
|
* text for the same reason a link is.
|
|
14
14
|
*/
|
|
15
|
-
[data-ui
|
|
15
|
+
[data-ui-breadcrumb] {
|
|
16
16
|
--_rest: var(--slotted-breadcrumb-color, var(--slotted-text-muted, GrayText));
|
|
17
17
|
--_strong: var(--slotted-breadcrumb-color-current, var(--slotted-text, CanvasText));
|
|
18
18
|
--_hover: var(
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
* inline gap because two wrapped lines of one type size need less air between
|
|
60
60
|
* them than two words do beside each other.
|
|
61
61
|
*/
|
|
62
|
-
[data-ui
|
|
62
|
+
[data-ui-breadcrumb] [data-part-list] {
|
|
63
63
|
align-items: center;
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-wrap: wrap;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
[data-ui
|
|
82
|
+
[data-ui-breadcrumb] [data-part-item] {
|
|
83
83
|
align-items: center;
|
|
84
84
|
column-gap: var(--_gap);
|
|
85
85
|
display: flex;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
* crumb rendered and the collapse did nothing at all. The capture is what
|
|
105
105
|
* said so; both bindings write the attribute and neither could have known.
|
|
106
106
|
*/
|
|
107
|
-
[data-ui
|
|
107
|
+
[data-ui-breadcrumb] [data-part-item][hidden] {
|
|
108
108
|
display: none;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
* frame of a drag, and the ellipsis returns in the same frame to the place
|
|
121
121
|
* the crumbs leave.
|
|
122
122
|
*/
|
|
123
|
-
[data-ui
|
|
123
|
+
[data-ui-breadcrumb][data-expanded] [data-part-item] {
|
|
124
124
|
transition: opacity var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
@starting-style {
|
|
128
|
-
[data-ui
|
|
128
|
+
[data-ui-breadcrumb][data-expanded] [data-part-item] {
|
|
129
129
|
opacity: 0;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
* it distinguishes the one crumb being addressed from the seven beside it.
|
|
140
140
|
*/
|
|
141
141
|
|
|
142
|
-
[data-ui
|
|
142
|
+
[data-ui-breadcrumb] :is([data-part-link], [data-part-page], [data-part-trigger]) {
|
|
143
143
|
border-radius: var(--slotted-breadcrumb-radius, var(--slotted-control-radius, 4px));
|
|
144
144
|
display: block;
|
|
145
145
|
/**
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
white-space: nowrap;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
[data-ui
|
|
168
|
+
[data-ui-breadcrumb] [data-part-link] {
|
|
169
169
|
color: inherit;
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
* the pointer, and a chevron after the label that says a list opens here
|
|
176
176
|
* rather than a page. It keeps the line's height; the menu is the consumer's.
|
|
177
177
|
*/
|
|
178
|
-
[data-ui
|
|
178
|
+
[data-ui-breadcrumb] [data-part-trigger] {
|
|
179
179
|
appearance: none;
|
|
180
180
|
background-color: transparent;
|
|
181
181
|
border: 0;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/* The switcher of the page the reader is on is still the page. */
|
|
190
|
-
[data-ui
|
|
190
|
+
[data-ui-breadcrumb] [data-part-trigger][aria-current='page'] {
|
|
191
191
|
color: var(--_strong);
|
|
192
192
|
font-weight: var(--slotted-breadcrumb-page-weight, var(--slotted-font-weight-medium, 500));
|
|
193
193
|
}
|
|
@@ -201,26 +201,26 @@
|
|
|
201
201
|
* An atomic inline box takes no underline, so the hover rule marks the words
|
|
202
202
|
* and not the glyph.
|
|
203
203
|
*/
|
|
204
|
-
[data-ui
|
|
205
|
-
:is([data-part
|
|
206
|
-
> :is([data-ui
|
|
204
|
+
[data-ui-breadcrumb]
|
|
205
|
+
:is([data-part-link], [data-part-page], [data-part-trigger])
|
|
206
|
+
> :is([data-ui-icon], [data-ui-avatar]) {
|
|
207
207
|
margin-inline-end: var(--slotted-breadcrumb-content-gap, var(--slotted-space-3, 6px));
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
[data-ui
|
|
211
|
-
:is([data-part
|
|
212
|
-
> [data-ui
|
|
210
|
+
[data-ui-breadcrumb]
|
|
211
|
+
:is([data-part-link], [data-part-page], [data-part-trigger])
|
|
212
|
+
> [data-ui-badge] {
|
|
213
213
|
margin-inline-start: var(--slotted-breadcrumb-content-gap, var(--slotted-space-3, 6px));
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
/* The switcher's chevron is its last element, after the label. */
|
|
217
|
-
[data-ui
|
|
217
|
+
[data-ui-breadcrumb] [data-part-trigger] > [data-ui-icon]:last-child {
|
|
218
218
|
margin-inline: var(--slotted-space-2, 4px) 0;
|
|
219
219
|
transition: rotate var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
/* The chevron turns while the menu it opened is up, and back when it closes. */
|
|
223
|
-
[data-ui
|
|
223
|
+
[data-ui-breadcrumb] [data-part-trigger][data-open] > [data-ui-icon]:last-child {
|
|
224
224
|
rotate: 180deg;
|
|
225
225
|
}
|
|
226
226
|
|
|
@@ -230,19 +230,19 @@
|
|
|
230
230
|
* weight is on the one crumb that never moves, so nothing beside it shifts
|
|
231
231
|
* when the pointer arrives.
|
|
232
232
|
*/
|
|
233
|
-
[data-ui
|
|
233
|
+
[data-ui-breadcrumb] [data-part-page] {
|
|
234
234
|
color: var(--_strong);
|
|
235
235
|
font-weight: var(--slotted-breadcrumb-page-weight, var(--slotted-font-weight-medium, 500));
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
[data-ui
|
|
238
|
+
[data-ui-breadcrumb] :is([data-part-link], [data-part-trigger]):not([data-disabled]):hover {
|
|
239
239
|
color: var(--_hover);
|
|
240
240
|
text-decoration-color: currentColor;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/* An open switcher holds the pressed colour for as long as its menu is up. */
|
|
244
|
-
[data-ui
|
|
245
|
-
:is([data-part
|
|
244
|
+
[data-ui-breadcrumb]
|
|
245
|
+
:is([data-part-link], [data-part-trigger]):not([data-disabled]):is(:active, [data-open]) {
|
|
246
246
|
color: var(--_strong);
|
|
247
247
|
/* Without the pointer over it an open switcher would read as the page:
|
|
248
248
|
same colour, no mark. The underline says which crumb the menu is from. */
|
|
@@ -254,12 +254,12 @@
|
|
|
254
254
|
* brings only the underline, and a press — or the menu it opened — steps the
|
|
255
255
|
* label back to the hover mix. Hover and press still differ, as on a link.
|
|
256
256
|
*/
|
|
257
|
-
[data-ui
|
|
257
|
+
[data-ui-breadcrumb] [data-part-trigger][aria-current='page']:not([data-disabled]):hover {
|
|
258
258
|
color: var(--_strong);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
[data-ui
|
|
262
|
-
[data-part
|
|
261
|
+
[data-ui-breadcrumb]
|
|
262
|
+
[data-part-trigger][aria-current='page']:not([data-disabled]):is(:active, [data-open]) {
|
|
263
263
|
color: var(--_hover);
|
|
264
264
|
}
|
|
265
265
|
|
|
@@ -273,13 +273,13 @@
|
|
|
273
273
|
* box, so a ring drawn outside crossed both separators — at two pixels out,
|
|
274
274
|
* and on its own edge at dense.
|
|
275
275
|
*/
|
|
276
|
-
[data-ui
|
|
276
|
+
[data-ui-breadcrumb] :is([data-part-link], [data-part-trigger]):focus-visible {
|
|
277
277
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
278
278
|
outline-offset: var(--slotted-breadcrumb-focus-ring-offset, 1px);
|
|
279
279
|
text-decoration-color: currentColor;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
[data-ui
|
|
282
|
+
[data-ui-breadcrumb] [data-part-ellipsis]:focus-visible {
|
|
283
283
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
284
284
|
outline-offset: var(
|
|
285
285
|
--slotted-breadcrumb-ellipsis-focus-ring-offset,
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
* with children shows the children and the empty one shows the rule.
|
|
301
301
|
*/
|
|
302
302
|
|
|
303
|
-
[data-ui
|
|
303
|
+
[data-ui-breadcrumb] [data-part-separator] {
|
|
304
304
|
align-items: center;
|
|
305
305
|
color: var(--_separator);
|
|
306
306
|
display: flex;
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
justify-content: center;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
[data-ui
|
|
311
|
+
[data-ui-breadcrumb] [data-part-separator]:empty {
|
|
312
312
|
background-color: currentColor;
|
|
313
313
|
/* Rounded, so a rule of `0.9em` ends on a whole pixel: 12 at 13px, 11 dense. */
|
|
314
314
|
block-size: round(nearest, var(--slotted-breadcrumb-separator-length, 0.9em), 1px);
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
* trail itself runs the other way. `:dir()` rather than an ancestor `[dir]`,
|
|
326
326
|
* so a trail inside a left-to-right island leans the way that island reads.
|
|
327
327
|
*/
|
|
328
|
-
[data-ui
|
|
328
|
+
[data-ui-breadcrumb] [data-part-separator]:empty:dir(rtl) {
|
|
329
329
|
rotate: calc(-1 * var(--slotted-breadcrumb-separator-skew, 20deg));
|
|
330
330
|
}
|
|
331
331
|
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
* reader hears is a count rather than three dots.
|
|
360
360
|
*/
|
|
361
361
|
|
|
362
|
-
[data-ui
|
|
362
|
+
[data-ui-breadcrumb] [data-part-ellipsis] {
|
|
363
363
|
--slotted-icon-size: var(--_icon-size);
|
|
364
364
|
|
|
365
365
|
align-items: center;
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
/* The halo that completes the target where the line is shorter than it. */
|
|
397
|
-
[data-ui
|
|
397
|
+
[data-ui-breadcrumb] [data-part-ellipsis]::after {
|
|
398
398
|
content: '';
|
|
399
399
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
400
400
|
position: absolute;
|
|
@@ -403,17 +403,17 @@
|
|
|
403
403
|
/* On a finger the halo reaches the comfortable size in both axes; the box
|
|
404
404
|
keeps the line's height, so the trail does not grow. */
|
|
405
405
|
@media (pointer: coarse) {
|
|
406
|
-
[data-ui
|
|
406
|
+
[data-ui-breadcrumb] [data-part-ellipsis]::after {
|
|
407
407
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
/* The ground moves under the pointer and nothing else does (R2). */
|
|
412
|
-
[data-ui
|
|
412
|
+
[data-ui-breadcrumb] [data-part-ellipsis]:not([data-disabled]):hover {
|
|
413
413
|
background-color: var(--slotted-breadcrumb-ellipsis-background-hover, var(--_ellipsis-hover));
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
[data-ui
|
|
416
|
+
[data-ui-breadcrumb] [data-part-ellipsis]:not([data-disabled]):active {
|
|
417
417
|
background-color: var(--slotted-breadcrumb-ellipsis-background-active, var(--_ellipsis-active));
|
|
418
418
|
}
|
|
419
419
|
|
|
@@ -430,11 +430,11 @@
|
|
|
430
430
|
*/
|
|
431
431
|
|
|
432
432
|
@media (forced-colors: active) {
|
|
433
|
-
[data-ui
|
|
433
|
+
[data-ui-breadcrumb] [data-part-separator]:empty {
|
|
434
434
|
background-color: GrayText;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
[data-ui
|
|
437
|
+
[data-ui-breadcrumb] [data-part-ellipsis] {
|
|
438
438
|
border: var(--slotted-border-width-thin, 1px) solid ButtonBorder;
|
|
439
439
|
}
|
|
440
440
|
}
|