@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.
Files changed (191) hide show
  1. package/package.json +1 -1
  2. package/src/accordion/accordion.css +10 -10
  3. package/src/action-bar/action-bar.css +45 -42
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +36 -36
  6. package/src/alert/alert.css +68 -67
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +452 -314
  9. package/src/app-shell/app-shell.tokens.json +5 -2
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +91 -99
  12. package/src/avatar/avatar.css +71 -41
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +21 -22
  15. package/src/badge/badge.css +45 -37
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +37 -37
  18. package/src/button/button.css +149 -68
  19. package/src/button/button.tokens.json +10 -0
  20. package/src/button-group/button-group.css +79 -74
  21. package/src/button-group/button-group.tokens.json +2 -0
  22. package/src/calendar/calendar.css +133 -103
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +54 -61
  25. package/src/carousel/carousel.css +150 -161
  26. package/src/cascader/cascader.css +154 -153
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +258 -248
  29. package/src/chart/chart.tokens.json +1 -0
  30. package/src/checkbox/checkbox.css +119 -124
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +81 -85
  33. package/src/collapsible/collapsible.css +72 -76
  34. package/src/color-picker/color-picker.css +83 -91
  35. package/src/column-manager/column-manager.css +106 -114
  36. package/src/combobox/combobox.css +157 -124
  37. package/src/combobox/combobox.tokens.json +2 -0
  38. package/src/command-palette/command-palette.css +103 -90
  39. package/src/command-palette/command-palette.tokens.json +1 -0
  40. package/src/container/container.css +24 -24
  41. package/src/context-menu/context-menu.css +8 -8
  42. package/src/currency-field/currency-field.css +212 -88
  43. package/src/currency-field/currency-field.tokens.json +13 -0
  44. package/src/dashboard-grid/dashboard-grid.css +184 -114
  45. package/src/data-grid/data-grid.css +535 -470
  46. package/src/data-grid/data-grid.tokens.json +4 -0
  47. package/src/data-list/data-list.css +81 -70
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +57 -52
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +75 -57
  52. package/src/date-picker/date-picker.tokens.json +1 -0
  53. package/src/date-range-picker/date-range-picker.css +116 -118
  54. package/src/datetime-field/datetime-field.css +80 -80
  55. package/src/datetime-field/datetime-field.tokens.json +1 -0
  56. package/src/datetime-picker/datetime-picker.css +63 -63
  57. package/src/datetime-range-picker/datetime-range-picker.css +151 -156
  58. package/src/description-list/description-list.css +80 -65
  59. package/src/detail-panel/detail-panel.css +86 -71
  60. package/src/detail-panel/detail-panel.tokens.json +2 -0
  61. package/src/dialog/dialog.css +376 -153
  62. package/src/dialog/dialog.tokens.json +6 -0
  63. package/src/divider/divider.css +18 -18
  64. package/src/drawer/drawer.css +513 -217
  65. package/src/drawer/drawer.tokens.json +6 -0
  66. package/src/entity-picker/entity-picker.css +273 -256
  67. package/src/entity-picker/entity-picker.tokens.json +2 -0
  68. package/src/event-calendar/event-calendar.css +343 -385
  69. package/src/field/field.css +74 -78
  70. package/src/field-group/field-group.css +22 -25
  71. package/src/filter-bar/filter-bar.css +193 -209
  72. package/src/form/form.css +34 -24
  73. package/src/form/form.tokens.json +1 -0
  74. package/src/fullscreen/fullscreen.css +24 -25
  75. package/src/grid/grid.css +28 -28
  76. package/src/highlight/highlight.css +6 -6
  77. package/src/hover-card/hover-card.css +6 -6
  78. package/src/icon/icon.css +62 -15
  79. package/src/icon/icon.tokens.json +1 -0
  80. package/src/image/image.css +39 -39
  81. package/src/import-export-center/import-export-center.css +135 -156
  82. package/src/inline/inline.css +27 -27
  83. package/src/inline-message/inline-message.css +153 -77
  84. package/src/inline-message/inline-message.tokens.json +4 -0
  85. package/src/kbd/kbd.css +48 -36
  86. package/src/kbd/kbd.tokens.json +3 -0
  87. package/src/link/link.css +36 -15
  88. package/src/link/link.tokens.json +4 -0
  89. package/src/list/list.css +44 -17
  90. package/src/list/list.tokens.json +4 -0
  91. package/src/list-item/list-item.css +80 -66
  92. package/src/list-item/list-item.tokens.json +7 -0
  93. package/src/listbox/listbox.css +56 -59
  94. package/src/loading-overlay/loading-overlay.css +75 -92
  95. package/src/markdown/markdown.css +17 -17
  96. package/src/menu/menu.css +117 -74
  97. package/src/menu/menu.tokens.json +1 -0
  98. package/src/menubar/menubar.css +13 -13
  99. package/src/message/message.css +192 -202
  100. package/src/message/message.tokens.json +5 -0
  101. package/src/message-scroller/message-scroller.css +41 -42
  102. package/src/multi-select/multi-select.css +177 -160
  103. package/src/multi-select/multi-select.tokens.json +1 -0
  104. package/src/navigation-menu/navigation-menu.css +167 -188
  105. package/src/notification-center/notification-center.css +140 -148
  106. package/src/notification-center/notification-center.tokens.json +3 -0
  107. package/src/number-field/number-field.css +83 -83
  108. package/src/number-field/number-field.tokens.json +1 -0
  109. package/src/otp-input/otp-input.css +67 -57
  110. package/src/otp-input/otp-input.tokens.json +1 -0
  111. package/src/page/page.css +39 -23
  112. package/src/page/page.tokens.json +1 -0
  113. package/src/page-header/page-header.css +339 -284
  114. package/src/page-header/page-header.tokens.json +5 -0
  115. package/src/pagination/pagination.css +68 -72
  116. package/src/popover/popover.css +73 -61
  117. package/src/popover/popover.tokens.json +1 -0
  118. package/src/progress-indicator/progress-indicator.css +169 -113
  119. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  120. package/src/prompt-composer/prompt-composer.css +251 -104
  121. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  122. package/src/prose/prose.css +71 -75
  123. package/src/radio-group/radio-group.css +98 -103
  124. package/src/rating/rating.css +136 -132
  125. package/src/rating/rating.tokens.json +1 -0
  126. package/src/result-state/result-state.css +74 -77
  127. package/src/runtime-properties.mjs +2 -0
  128. package/src/saved-views/saved-views.css +41 -47
  129. package/src/scroll-area/scroll-area.css +39 -32
  130. package/src/section/section.css +178 -43
  131. package/src/section/section.tokens.json +8 -2
  132. package/src/segmented-control/segmented-control.css +254 -97
  133. package/src/segmented-control/segmented-control.tokens.json +15 -11
  134. package/src/select/select.css +153 -132
  135. package/src/select/select.tokens.json +2 -0
  136. package/src/side-navigation/side-navigation.css +179 -182
  137. package/src/side-navigation/side-navigation.tokens.json +1 -0
  138. package/src/skeleton/skeleton.css +47 -48
  139. package/src/slider/slider.css +86 -88
  140. package/src/sparkline/sparkline.css +62 -40
  141. package/src/sparkline/sparkline.tokens.json +2 -0
  142. package/src/spinner/spinner.css +83 -180
  143. package/src/spinner/spinner.tokens.json +0 -1
  144. package/src/split-button/split-button.css +30 -31
  145. package/src/split-button/split-button.tokens.json +1 -0
  146. package/src/splitter/splitter.css +35 -35
  147. package/src/stack/stack.css +24 -24
  148. package/src/stat-card/stat-card.css +380 -241
  149. package/src/stat-card/stat-card.tokens.json +5 -0
  150. package/src/status-indicator/status-indicator.css +107 -82
  151. package/src/status-indicator/status-indicator.tokens.json +0 -3
  152. package/src/stepper/stepper.css +58 -62
  153. package/src/switch/switch.css +86 -92
  154. package/src/table/table.css +340 -175
  155. package/src/table/table.tokens.json +6 -0
  156. package/src/table-of-contents/table-of-contents.css +57 -56
  157. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  158. package/src/tabs/tabs.css +322 -289
  159. package/src/tabs/tabs.tokens.json +7 -1
  160. package/src/tag/tag.css +91 -71
  161. package/src/tag/tag.tokens.json +9 -0
  162. package/src/tags-input/tags-input.css +147 -82
  163. package/src/tags-input/tags-input.tokens.json +7 -1
  164. package/src/text-field/text-field.css +134 -136
  165. package/src/text-field/text-field.tokens.json +1 -0
  166. package/src/textarea/textarea.css +33 -28
  167. package/src/textarea/textarea.tokens.json +1 -0
  168. package/src/time-field/time-field.css +74 -69
  169. package/src/time-field/time-field.tokens.json +1 -0
  170. package/src/time-picker/time-picker.css +58 -58
  171. package/src/time-range-picker/time-range-picker.css +128 -133
  172. package/src/timeline/timeline.css +254 -266
  173. package/src/timeline/timeline.tokens.json +5 -0
  174. package/src/toast/toast.css +115 -98
  175. package/src/toast/toast.tokens.json +6 -0
  176. package/src/toggle/toggle.css +62 -25
  177. package/src/toggle/toggle.tokens.json +8 -0
  178. package/src/toggle-group/toggle-group.css +106 -60
  179. package/src/toggle-group/toggle-group.tokens.json +10 -0
  180. package/src/toolbar/toolbar.css +30 -35
  181. package/src/tooltip/tooltip.css +59 -38
  182. package/src/tooltip/tooltip.tokens.json +1 -0
  183. package/src/top-navigation/top-navigation.css +243 -259
  184. package/src/tour/tour.css +51 -60
  185. package/src/transfer/transfer.css +160 -164
  186. package/src/tree/tree.css +103 -111
  187. package/src/typography/typography.css +40 -36
  188. package/src/typography/typography.tokens.json +1 -0
  189. package/src/upload/upload.css +224 -224
  190. package/src/visually-hidden/visually-hidden.css +1 -1
  191. package/src/wizard/wizard.css +185 -197
@@ -8,6 +8,7 @@
8
8
  "--slotted-control-radius",
9
9
  "--slotted-control-transition-duration",
10
10
  "--slotted-control-transition-easing",
11
+ "--slotted-dialog-backdrop-filter",
11
12
  "--slotted-dialog-body-color",
12
13
  "--slotted-dialog-border-color",
13
14
  "--slotted-dialog-close-active-background",
@@ -17,6 +18,10 @@
17
18
  "--slotted-dialog-description-color",
18
19
  "--slotted-dialog-footer-surface",
19
20
  "--slotted-dialog-measure",
21
+ "--slotted-dialog-padding-block",
22
+ "--slotted-dialog-padding-block-sm",
23
+ "--slotted-dialog-padding-inline",
24
+ "--slotted-dialog-padding-inline-sm",
20
25
  "--slotted-dialog-radius",
21
26
  "--slotted-dialog-rule-color",
22
27
  "--slotted-dialog-scrim",
@@ -57,6 +62,7 @@
57
62
  "--slotted-text-muted",
58
63
  "--slotted-tone-accent-text",
59
64
  "--slotted-tone-danger-text",
65
+ "--slotted-tone-info-text",
60
66
  "--slotted-tone-secondary-subtle-active",
61
67
  "--slotted-tone-secondary-subtle-hover",
62
68
  "--slotted-tone-secondary-text",
@@ -11,7 +11,7 @@
11
11
  * start` is the common one — otherwise sizes the rule from its content,
12
12
  * which for a rule is nothing at all.
13
13
  */
14
- [data-ui='divider'] {
14
+ [data-ui-divider] {
15
15
  align-self: stretch;
16
16
  border: 0;
17
17
  flex-shrink: 0;
@@ -26,14 +26,14 @@
26
26
  * holds a length that has to follow the type size at the point of use. A
27
27
  * theme that wants a fixed floor sets the token.
28
28
  */
29
- [data-ui='divider']:not([data-labelled])[data-orientation='horizontal'] {
29
+ [data-ui-divider]:not([data-labelled])[data-orientation='horizontal'] {
30
30
  block-size: 0;
31
31
  border-block-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
32
32
  solid var(--slotted-divider-color, var(--slotted-border-subtle, ButtonBorder));
33
33
  min-inline-size: var(--slotted-divider-min-length, 1em);
34
34
  }
35
35
 
36
- [data-ui='divider']:not([data-labelled])[data-orientation='vertical'] {
36
+ [data-ui-divider]:not([data-labelled])[data-orientation='vertical'] {
37
37
  border-inline-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
38
38
  solid var(--slotted-divider-color, var(--slotted-border-subtle, ButtonBorder));
39
39
  inline-size: 0;
@@ -46,11 +46,11 @@
46
46
  * almost always the one inside a menu or a list built from controls, and it
47
47
  * has to line up with their text at every density.
48
48
  */
49
- [data-ui='divider'][data-inset][data-orientation='horizontal'] {
49
+ [data-ui-divider][data-inset][data-orientation='horizontal'] {
50
50
  margin-inline: var(--slotted-divider-inset, var(--slotted-control-padding-inline-md, 13px));
51
51
  }
52
52
 
53
- [data-ui='divider'][data-inset][data-orientation='vertical'] {
53
+ [data-ui-divider][data-inset][data-orientation='vertical'] {
54
54
  margin-block: var(--slotted-divider-inset, var(--slotted-control-padding-inline-md, 13px));
55
55
  }
56
56
 
@@ -60,13 +60,13 @@
60
60
  * so the DOM a consumer reads is the root and the label, and nothing else
61
61
  * becomes an accidental promise.
62
62
  */
63
- [data-ui='divider'][data-labelled] {
63
+ [data-ui-divider][data-labelled] {
64
64
  align-items: center;
65
65
  display: flex;
66
66
  gap: var(--slotted-divider-gap, var(--slotted-space-4, 0.5rem));
67
67
  }
68
68
 
69
- [data-ui='divider'][data-labelled][data-orientation='vertical'] {
69
+ [data-ui-divider][data-labelled][data-orientation='vertical'] {
70
70
  flex-direction: column;
71
71
  min-block-size: var(--slotted-divider-min-length, 1em);
72
72
  }
@@ -77,29 +77,29 @@
77
77
  * rule. Unthemed, they disappear rather than reaching for a system colour,
78
78
  * which is the right failure for decoration.
79
79
  */
80
- [data-ui='divider'][data-labelled]::before,
81
- [data-ui='divider'][data-labelled]::after {
80
+ [data-ui-divider][data-labelled]::before,
81
+ [data-ui-divider][data-labelled]::after {
82
82
  content: '';
83
83
  flex: 1 0 var(--slotted-space-5, 0.75rem);
84
84
  }
85
85
 
86
- [data-ui='divider'][data-labelled][data-orientation='horizontal']::before,
87
- [data-ui='divider'][data-labelled][data-orientation='horizontal']::after {
86
+ [data-ui-divider][data-labelled][data-orientation='horizontal']::before,
87
+ [data-ui-divider][data-labelled][data-orientation='horizontal']::after {
88
88
  block-size: 0;
89
89
  border-block-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
90
90
  solid var(--slotted-divider-color, var(--slotted-border-subtle));
91
91
  }
92
92
 
93
- [data-ui='divider'][data-labelled][data-orientation='vertical']::before,
94
- [data-ui='divider'][data-labelled][data-orientation='vertical']::after {
93
+ [data-ui-divider][data-labelled][data-orientation='vertical']::before,
94
+ [data-ui-divider][data-labelled][data-orientation='vertical']::after {
95
95
  border-inline-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
96
96
  solid var(--slotted-divider-color, var(--slotted-border-subtle));
97
97
  inline-size: 0;
98
98
  }
99
99
 
100
100
  /* A label at one end keeps one half of the rule, not a stub of the other. */
101
- [data-ui='divider'][data-labelled][data-align='start']::before,
102
- [data-ui='divider'][data-labelled][data-align='end']::after {
101
+ [data-ui-divider][data-labelled][data-align='start']::before,
102
+ [data-ui-divider][data-labelled][data-align='end']::after {
103
103
  display: none;
104
104
  }
105
105
 
@@ -109,7 +109,7 @@
109
109
  * muted text colour. It wraps before it overflows, and a single token longer
110
110
  * than the container breaks rather than pushing the rule out of the layout.
111
111
  */
112
- [data-ui='divider'] [data-part='label'] {
112
+ [data-ui-divider] [data-part-label] {
113
113
  color: var(--slotted-divider-label-color, var(--slotted-text-muted, GrayText));
114
114
  font-family: var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);
115
115
  font-size: var(--slotted-font-size-xs, 0.75rem);
@@ -121,11 +121,11 @@
121
121
  }
122
122
 
123
123
  /* A label that wraps keeps the edge it was placed against. */
124
- [data-ui='divider'][data-align='start'] [data-part='label'] {
124
+ [data-ui-divider][data-align='start'] [data-part-label] {
125
125
  text-align: start;
126
126
  }
127
127
 
128
- [data-ui='divider'][data-align='end'] [data-part='label'] {
128
+ [data-ui-divider][data-align='end'] [data-part-label] {
129
129
  text-align: end;
130
130
  }
131
131
  }