@slotted/styles 0.1.0-beta.7 → 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.
Files changed (128) hide show
  1. package/package.json +1 -1
  2. package/src/accordion/accordion.css +10 -10
  3. package/src/action-bar/action-bar.css +31 -32
  4. package/src/action-sheet/action-sheet.css +36 -36
  5. package/src/alert/alert.css +35 -35
  6. package/src/app-shell/app-shell.css +280 -299
  7. package/src/aspect-ratio/aspect-ratio.css +9 -9
  8. package/src/attachment/attachment.css +91 -99
  9. package/src/avatar/avatar.css +41 -41
  10. package/src/avatar-group/avatar-group.css +21 -22
  11. package/src/badge/badge.css +37 -37
  12. package/src/breadcrumb/breadcrumb.css +37 -37
  13. package/src/button/button.css +88 -69
  14. package/src/button-group/button-group.css +69 -73
  15. package/src/calendar/calendar.css +93 -103
  16. package/src/card/card.css +54 -61
  17. package/src/carousel/carousel.css +150 -161
  18. package/src/cascader/cascader.css +147 -151
  19. package/src/chart/chart.css +225 -240
  20. package/src/checkbox/checkbox.css +119 -124
  21. package/src/checkbox-group/checkbox-group.css +7 -7
  22. package/src/code-block/code-block.css +81 -85
  23. package/src/collapsible/collapsible.css +69 -76
  24. package/src/color-picker/color-picker.css +83 -91
  25. package/src/column-manager/column-manager.css +106 -114
  26. package/src/combobox/combobox.css +99 -101
  27. package/src/command-palette/command-palette.css +84 -90
  28. package/src/container/container.css +24 -24
  29. package/src/context-menu/context-menu.css +8 -8
  30. package/src/currency-field/currency-field.css +99 -104
  31. package/src/dashboard-grid/dashboard-grid.css +104 -107
  32. package/src/data-grid/data-grid.css +458 -456
  33. package/src/data-grid/data-grid.tokens.json +2 -0
  34. package/src/data-list/data-list.css +67 -69
  35. package/src/date-field/date-field.css +50 -50
  36. package/src/date-picker/date-picker.css +40 -42
  37. package/src/date-range-picker/date-range-picker.css +114 -118
  38. package/src/datetime-field/datetime-field.css +73 -78
  39. package/src/datetime-picker/datetime-picker.css +61 -63
  40. package/src/datetime-range-picker/datetime-range-picker.css +149 -156
  41. package/src/description-list/description-list.css +61 -64
  42. package/src/detail-panel/detail-panel.css +70 -70
  43. package/src/dialog/dialog.css +312 -148
  44. package/src/divider/divider.css +18 -18
  45. package/src/drawer/drawer.css +186 -209
  46. package/src/entity-picker/entity-picker.css +220 -239
  47. package/src/event-calendar/event-calendar.css +343 -385
  48. package/src/field/field.css +74 -78
  49. package/src/field-group/field-group.css +22 -25
  50. package/src/filter-bar/filter-bar.css +193 -209
  51. package/src/form/form.css +21 -24
  52. package/src/fullscreen/fullscreen.css +24 -25
  53. package/src/grid/grid.css +28 -28
  54. package/src/highlight/highlight.css +6 -6
  55. package/src/hover-card/hover-card.css +6 -6
  56. package/src/icon/icon.css +15 -15
  57. package/src/image/image.css +39 -39
  58. package/src/import-export-center/import-export-center.css +135 -156
  59. package/src/inline/inline.css +27 -27
  60. package/src/inline-message/inline-message.css +28 -28
  61. package/src/kbd/kbd.css +26 -26
  62. package/src/link/link.css +15 -15
  63. package/src/list/list.css +20 -20
  64. package/src/list-item/list-item.css +66 -66
  65. package/src/listbox/listbox.css +56 -59
  66. package/src/loading-overlay/loading-overlay.css +75 -92
  67. package/src/markdown/markdown.css +17 -17
  68. package/src/menu/menu.css +63 -65
  69. package/src/menubar/menubar.css +13 -13
  70. package/src/message/message.css +174 -202
  71. package/src/message-scroller/message-scroller.css +41 -42
  72. package/src/multi-select/multi-select.css +131 -137
  73. package/src/navigation-menu/navigation-menu.css +167 -188
  74. package/src/notification-center/notification-center.css +134 -148
  75. package/src/number-field/number-field.css +76 -81
  76. package/src/otp-input/otp-input.css +48 -48
  77. package/src/page/page.css +23 -23
  78. package/src/page-header/page-header.css +219 -280
  79. package/src/pagination/pagination.css +68 -72
  80. package/src/popover/popover.css +40 -49
  81. package/src/progress-indicator/progress-indicator.css +85 -90
  82. package/src/prompt-composer/prompt-composer.css +94 -99
  83. package/src/prose/prose.css +71 -75
  84. package/src/radio-group/radio-group.css +98 -103
  85. package/src/rating/rating.css +132 -132
  86. package/src/result-state/result-state.css +74 -77
  87. package/src/saved-views/saved-views.css +41 -47
  88. package/src/scroll-area/scroll-area.css +32 -35
  89. package/src/section/section.css +16 -16
  90. package/src/segmented-control/segmented-control.css +77 -79
  91. package/src/select/select.css +113 -115
  92. package/src/side-navigation/side-navigation.css +170 -180
  93. package/src/skeleton/skeleton.css +47 -48
  94. package/src/slider/slider.css +86 -88
  95. package/src/sparkline/sparkline.css +32 -32
  96. package/src/spinner/spinner.css +4 -4
  97. package/src/split-button/split-button.css +26 -31
  98. package/src/splitter/splitter.css +35 -35
  99. package/src/stack/stack.css +24 -24
  100. package/src/stat-card/stat-card.css +102 -103
  101. package/src/status-indicator/status-indicator.css +28 -28
  102. package/src/stepper/stepper.css +58 -62
  103. package/src/switch/switch.css +86 -92
  104. package/src/table/table.css +189 -198
  105. package/src/table-of-contents/table-of-contents.css +51 -54
  106. package/src/tabs/tabs.css +157 -172
  107. package/src/tag/tag.css +67 -71
  108. package/src/tags-input/tags-input.css +124 -74
  109. package/src/tags-input/tags-input.tokens.json +6 -1
  110. package/src/text-field/text-field.css +108 -126
  111. package/src/textarea/textarea.css +26 -26
  112. package/src/time-field/time-field.css +67 -67
  113. package/src/time-picker/time-picker.css +56 -58
  114. package/src/time-range-picker/time-range-picker.css +126 -133
  115. package/src/timeline/timeline.css +244 -266
  116. package/src/toast/toast.css +81 -90
  117. package/src/toggle/toggle.css +29 -33
  118. package/src/toggle-group/toggle-group.css +67 -71
  119. package/src/toolbar/toolbar.css +30 -35
  120. package/src/tooltip/tooltip.css +26 -26
  121. package/src/top-navigation/top-navigation.css +243 -259
  122. package/src/tour/tour.css +51 -60
  123. package/src/transfer/transfer.css +160 -164
  124. package/src/tree/tree.css +103 -111
  125. package/src/typography/typography.css +36 -36
  126. package/src/upload/upload.css +224 -224
  127. package/src/visually-hidden/visually-hidden.css +1 -1
  128. package/src/wizard/wizard.css +185 -197
@@ -20,7 +20,7 @@
20
20
  * actions stacks and stretches when the box is narrow, and a page banner
21
21
  * puts its actions back on the message's own line when the box is wide.
22
22
  */
23
- [data-ui='alert'][data-part='root'] {
23
+ [data-ui-alert][data-part-root] {
24
24
  /**
25
25
  * The tone's five roles, defaulted to `accent` so an alert with no stated
26
26
  * tone is an informational one. Each tone below restates the same five;
@@ -216,7 +216,7 @@
216
216
  * holds its place until the fade is over rather than snapping out from
217
217
  * under the content below.
218
218
  */
219
- [data-ui='alert'][data-part='root'][hidden] {
219
+ [data-ui-alert][data-part-root][hidden] {
220
220
  display: none;
221
221
  opacity: 0;
222
222
  transition:
@@ -235,7 +235,7 @@
235
235
  * marks the moment it does. It travels the path the exit takes, in reverse.
236
236
  */
237
237
  @starting-style {
238
- [data-ui='alert'][data-part='root']:is([data-live='polite'], [data-live='assertive']) {
238
+ [data-ui-alert][data-part-root]:is([data-live='polite'], [data-live='assertive']) {
239
239
  opacity: 0;
240
240
  translate: 0 calc(-1 * var(--slotted-space-2, 0.25rem));
241
241
  }
@@ -255,7 +255,7 @@
255
255
  * circle, the triangle and the crossed circle are what is left.
256
256
  */
257
257
 
258
- [data-ui='alert'][data-part='root'][data-tone='accent'] {
258
+ [data-ui-alert][data-part-root][data-tone='accent'] {
259
259
  --_solid: var(--slotted-tone-accent-solid);
260
260
  --_on-solid: var(--slotted-tone-accent-on-solid);
261
261
  --_surface: var(--slotted-tone-accent-surface);
@@ -263,7 +263,7 @@
263
263
  --_text: var(--slotted-tone-accent-text);
264
264
  }
265
265
 
266
- [data-ui='alert'][data-part='root'][data-tone='secondary'] {
266
+ [data-ui-alert][data-part-root][data-tone='secondary'] {
267
267
  --_solid: var(--slotted-tone-secondary-solid);
268
268
  --_on-solid: var(--slotted-tone-secondary-on-solid);
269
269
  --_surface: var(--slotted-tone-secondary-surface);
@@ -271,7 +271,7 @@
271
271
  --_text: var(--slotted-tone-secondary-text);
272
272
  }
273
273
 
274
- [data-ui='alert'][data-part='root'][data-tone='success'] {
274
+ [data-ui-alert][data-part-root][data-tone='success'] {
275
275
  --_solid: var(--slotted-tone-success-solid);
276
276
  --_on-solid: var(--slotted-tone-success-on-solid);
277
277
  --_surface: var(--slotted-tone-success-surface);
@@ -279,7 +279,7 @@
279
279
  --_text: var(--slotted-tone-success-text);
280
280
  }
281
281
 
282
- [data-ui='alert'][data-part='root'][data-tone='warning'] {
282
+ [data-ui-alert][data-part-root][data-tone='warning'] {
283
283
  --_solid: var(--slotted-tone-warning-solid);
284
284
  --_on-solid: var(--slotted-tone-warning-on-solid);
285
285
  --_surface: var(--slotted-tone-warning-surface);
@@ -287,7 +287,7 @@
287
287
  --_text: var(--slotted-tone-warning-text);
288
288
  }
289
289
 
290
- [data-ui='alert'][data-part='root'][data-tone='danger'] {
290
+ [data-ui-alert][data-part-root][data-tone='danger'] {
291
291
  --_solid: var(--slotted-tone-danger-solid);
292
292
  --_on-solid: var(--slotted-tone-danger-on-solid);
293
293
  --_surface: var(--slotted-tone-danger-surface);
@@ -313,7 +313,7 @@
313
313
  * is a run of coloured text with no box around it — the finding `kbd`
314
314
  * recorded about its own soft variant.
315
315
  */
316
- [data-ui='alert'][data-part='root'][data-variant='soft'] {
316
+ [data-ui-alert][data-part-root][data-variant='soft'] {
317
317
  background-color: var(--_surface);
318
318
  border-color: var(--_border);
319
319
  }
@@ -332,7 +332,7 @@
332
332
  * reads again. `soft` and `solid` survive the inverted surface only because
333
333
  * they repaint the ground before they write on it.
334
334
  */
335
- [data-ui='alert'][data-part='root'][data-variant='outline'] {
335
+ [data-ui-alert][data-part-root][data-variant='outline'] {
336
336
  background-color: transparent;
337
337
  border-color: var(--_border);
338
338
  }
@@ -343,7 +343,7 @@
343
343
  * `solid-active` in every scheme, so the whole box — words, mark and dismiss
344
344
  * control — takes it.
345
345
  */
346
- [data-ui='alert'][data-part='root'][data-variant='solid'] {
346
+ [data-ui-alert][data-part-root][data-variant='solid'] {
347
347
  background-color: var(--_solid);
348
348
  border-color: var(--_solid);
349
349
  color: var(--_on-solid);
@@ -357,7 +357,7 @@
357
357
  */
358
358
 
359
359
  /** Beside the thing it is about — a field group, a table row, a card. */
360
- [data-ui='alert'][data-part='root'][data-reach='inline'] {
360
+ [data-ui-alert][data-part-root][data-reach='inline'] {
361
361
  --_font-size: var(--slotted-control-font-size-sm, 12px);
362
362
  --_description-font-size: var(--slotted-control-font-size-sm, 12px);
363
363
  --_glyph-size: var(--slotted-control-icon-size-sm, 14px);
@@ -377,7 +377,7 @@
377
377
  * The title steps up while the description stays where it was, which is the
378
378
  * one place in the family where the two type sizes differ.
379
379
  */
380
- [data-ui='alert'][data-part='root'][data-reach='page'] {
380
+ [data-ui-alert][data-part-root][data-reach='page'] {
381
381
  --_font-size: var(--slotted-control-font-size-lg, 14px);
382
382
  --_glyph-size: var(--slotted-control-icon-size-lg, 18px);
383
383
  --_inner-size: var(--slotted-control-inner-size-lg, 28px);
@@ -396,7 +396,7 @@
396
396
  }
397
397
 
398
398
  /** A solid page banner has no edge to lose, so it keeps all four. */
399
- [data-ui='alert'][data-part='root'][data-reach='page'][data-variant='solid'] {
399
+ [data-ui-alert][data-part-root][data-reach='page'][data-variant='solid'] {
400
400
  border-block-start-width: var(--_border-width);
401
401
  border-inline-width: var(--_border-width);
402
402
  }
@@ -437,7 +437,7 @@
437
437
  * A mark the page supplies instead of the tone's takes the same box and its
438
438
  * place on the first line, centred in it.
439
439
  */
440
- [data-ui='alert'] > [data-part='icon'] {
440
+ [data-ui-alert] > [data-part-icon] {
441
441
  --slotted-icon-size: calc(var(--_mark-size) * 12 / 11);
442
442
 
443
443
  align-items: center;
@@ -464,7 +464,7 @@
464
464
  * to be clamped too, or an unbreakable word in the title sizes the track to
465
465
  * itself and the words run past the box that holds them.
466
466
  */
467
- [data-ui='alert'] > [data-part='content'] {
467
+ [data-ui-alert] > [data-part-content] {
468
468
  /* The other half of the mark's baseline group: see the mark above. */
469
469
  align-self: baseline;
470
470
  display: grid;
@@ -490,7 +490,7 @@
490
490
  * in a column narrower than the word, which at this type size is a column
491
491
  * too narrow for the message anyway.
492
492
  */
493
- [data-ui='alert'] [data-part='title'] {
493
+ [data-ui-alert] [data-part-title] {
494
494
  /* A title rendered as a heading keeps the root's type rather than the
495
495
  user agent's `1.17em`: the mark is `1em` of the root, and a 15-pixel
496
496
  title beside a 13-pixel mark put the mark a pixel above its capitals. */
@@ -509,7 +509,7 @@
509
509
  overflow-wrap: anywhere;
510
510
  }
511
511
 
512
- [data-ui='alert'] [data-part='description'] {
512
+ [data-ui-alert] [data-part-description] {
513
513
  font-size: var(--_description-font-size);
514
514
  /* Its own line, rounded against its own size: a page banner's description
515
515
  is set a step below its title, and inheriting the title's 22 pixels
@@ -528,7 +528,7 @@
528
528
  * they are outside the live region: a reader hearing the message is not read
529
529
  * the labels of two buttons in the middle of it.
530
530
  */
531
- [data-ui='alert'] > [data-part='actions'] {
531
+ [data-ui-alert] > [data-part-actions] {
532
532
  align-items: center;
533
533
  display: flex;
534
534
  flex-wrap: wrap;
@@ -557,7 +557,7 @@
557
557
  * under it than over it. With both margins the control's margin box is
558
558
  * exactly one line, and the inset above the message equals the inset below.
559
559
  */
560
- [data-ui='alert'] > [data-part='dismiss'] {
560
+ [data-ui-alert] > [data-part-dismiss] {
561
561
  /* The cross is the binding's `Glyph` in an `icon` box at the glyph size
562
562
  the formula for this box reads. */
563
563
  --slotted-icon-size: var(--_glyph-size);
@@ -597,15 +597,15 @@
597
597
  * the reason it exists: a control the browser has already refused must not
598
598
  * answer a pointer.
599
599
  */
600
- [data-ui='alert'] > [data-part='dismiss']:enabled:hover {
600
+ [data-ui-alert] > [data-part-dismiss]:enabled:hover {
601
601
  background-color: var(--_state-hover);
602
602
  }
603
603
 
604
- [data-ui='alert'] > [data-part='dismiss']:enabled:active {
604
+ [data-ui-alert] > [data-part-dismiss]:enabled:active {
605
605
  background-color: var(--_state-active);
606
606
  }
607
607
 
608
- [data-ui='alert'] > [data-part='dismiss']:disabled {
608
+ [data-ui-alert] > [data-part-dismiss]:disabled {
609
609
  color: var(--slotted-disabled-foreground);
610
610
  cursor: default;
611
611
  }
@@ -614,11 +614,11 @@
614
614
  is the one a mouse sees: a transparent box centred on the control reaches
615
615
  44 pixels, and the ground and the ring stay square. */
616
616
  @media (pointer: coarse) {
617
- [data-ui='alert'] > [data-part='dismiss'] {
617
+ [data-ui-alert] > [data-part-dismiss] {
618
618
  position: relative;
619
619
  }
620
620
 
621
- [data-ui='alert'] > [data-part='dismiss']::after {
621
+ [data-ui-alert] > [data-part-dismiss]::after {
622
622
  content: '';
623
623
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
624
624
  position: absolute;
@@ -635,7 +635,7 @@
635
635
  * keyboard focus — but a page that deliberately sends focus to a message
636
636
  * must not send it somewhere invisible.
637
637
  */
638
- [data-ui='alert'] > [data-part='dismiss']:focus-visible {
638
+ [data-ui-alert] > [data-part-dismiss]:focus-visible {
639
639
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
640
640
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
641
641
  }
@@ -649,11 +649,11 @@
649
649
  * ring-width wide just inside it, in the ink its own words are written in,
650
650
  * so the ring is read against that halo rather than against the fill.
651
651
  */
652
- [data-ui='alert'][data-variant='solid'] > [data-part='dismiss']:focus-visible {
652
+ [data-ui-alert][data-variant='solid'] > [data-part-dismiss]:focus-visible {
653
653
  box-shadow: inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid);
654
654
  }
655
655
 
656
- [data-ui='alert'][data-part='root']:focus-visible {
656
+ [data-ui-alert][data-part-root]:focus-visible {
657
657
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
658
658
  outline-offset: var(--slotted-focus-ring-offset, 2px);
659
659
  }
@@ -673,7 +673,7 @@
673
673
  * exists to check.
674
674
  */
675
675
  @container slotted-alert (max-width: 22rem) {
676
- [data-ui='alert'] > [data-part='actions'] {
676
+ [data-ui-alert] > [data-part-actions] {
677
677
  /**
678
678
  * Stacked, and each control still its own width. Stretching them is what
679
679
  * the mobile banners in the field do, and it takes a decision that is not
@@ -694,7 +694,7 @@
694
694
  * however wide the window is.
695
695
  */
696
696
  @container slotted-alert (min-width: 40rem) {
697
- [data-ui='alert'][data-reach='page'] > [data-part='actions'] {
697
+ [data-ui-alert][data-reach='page'] > [data-part-actions] {
698
698
  align-self: center;
699
699
  grid-column: 3;
700
700
  grid-row: 1;
@@ -711,7 +711,7 @@
711
711
  * box, and the negative bottom margin left behind pulled the control's
712
712
  * centre below the action's by half its overhang.
713
713
  */
714
- [data-ui='alert'][data-reach='page'] > [data-part='dismiss'] {
714
+ [data-ui-alert][data-reach='page'] > [data-part-dismiss] {
715
715
  align-self: center;
716
716
  grid-column: 4;
717
717
  margin-block: 0;
@@ -741,7 +741,7 @@
741
741
  * danger fill, not a system colour, was forced to `Canvas` and took its
742
742
  * edge with it.
743
743
  */
744
- [data-ui='alert'][data-part='root'][data-variant] {
744
+ [data-ui-alert][data-part-root][data-variant] {
745
745
  background-color: Canvas;
746
746
  border-color: CanvasText;
747
747
  color: CanvasText;
@@ -751,12 +751,12 @@
751
751
  * The control's glyph is stroked in `currentcolor`, so giving the control a
752
752
  * system colour repaints the mark with it.
753
753
  */
754
- [data-ui='alert'] > [data-part='dismiss'] {
754
+ [data-ui-alert] > [data-part-dismiss] {
755
755
  color: CanvasText;
756
756
  }
757
757
 
758
- [data-ui='alert'] > [data-part='dismiss']:enabled:hover,
759
- [data-ui='alert'] > [data-part='dismiss']:enabled:active {
758
+ [data-ui-alert] > [data-part-dismiss]:enabled:hover,
759
+ [data-ui-alert] > [data-part-dismiss]:enabled:active {
760
760
  background-color: Highlight;
761
761
  color: HighlightText;
762
762
  }