@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31

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 (205) hide show
  1. package/package.json +13 -1
  2. package/src/accordion/accordion.css +11 -11
  3. package/src/action-bar/action-bar.css +47 -44
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +39 -39
  6. package/src/alert/alert.css +97 -97
  7. package/src/alert/alert.tokens.json +6 -1
  8. package/src/app-shell/app-shell.css +456 -329
  9. package/src/app-shell/app-shell.tokens.json +6 -3
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +118 -114
  12. package/src/avatar/avatar.css +96 -66
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +22 -23
  15. package/src/badge/badge.css +54 -46
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +52 -52
  18. package/src/button/button.css +137 -89
  19. package/src/button/button.tokens.json +5 -0
  20. package/src/button-group/button-group.css +80 -79
  21. package/src/button-group/button-group.tokens.json +1 -0
  22. package/src/calendar/calendar.css +139 -109
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +70 -67
  25. package/src/card/card.tokens.json +1 -0
  26. package/src/carousel/carousel.css +158 -169
  27. package/src/cascader/cascader.css +161 -159
  28. package/src/cascader/cascader.tokens.json +2 -0
  29. package/src/chart/chart.css +288 -267
  30. package/src/chart/chart.tokens.json +4 -0
  31. package/src/checkbox/checkbox.css +143 -148
  32. package/src/checkbox-group/checkbox-group.css +7 -7
  33. package/src/code-block/code-block.css +85 -89
  34. package/src/collapsible/collapsible.css +81 -80
  35. package/src/collapsible/collapsible.tokens.json +1 -0
  36. package/src/color-picker/color-picker.css +106 -114
  37. package/src/column-manager/column-manager.css +111 -119
  38. package/src/combobox/combobox.css +206 -132
  39. package/src/combobox/combobox.tokens.json +4 -0
  40. package/src/command-palette/command-palette.css +155 -102
  41. package/src/command-palette/command-palette.tokens.json +2 -0
  42. package/src/container/container.css +27 -27
  43. package/src/context-menu/context-menu.css +9 -9
  44. package/src/currency-field/currency-field.css +119 -119
  45. package/src/currency-field/currency-field.tokens.json +1 -0
  46. package/src/dashboard-grid/dashboard-grid.css +204 -115
  47. package/src/data-grid/data-grid.css +598 -496
  48. package/src/data-grid/data-grid.tokens.json +5 -1
  49. package/src/data-list/data-list.css +82 -71
  50. package/src/data-list/data-list.tokens.json +2 -1
  51. package/src/date-field/date-field.css +62 -57
  52. package/src/date-field/date-field.tokens.json +1 -0
  53. package/src/date-picker/date-picker.css +117 -58
  54. package/src/date-picker/date-picker.tokens.json +5 -0
  55. package/src/date-range-picker/date-range-picker.css +157 -127
  56. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  57. package/src/datetime-field/datetime-field.css +90 -90
  58. package/src/datetime-field/datetime-field.tokens.json +1 -0
  59. package/src/datetime-picker/datetime-picker.css +123 -70
  60. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  61. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  62. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  63. package/src/description-list/description-list.css +105 -75
  64. package/src/description-list/description-list.tokens.json +1 -0
  65. package/src/detail-panel/detail-panel.css +86 -71
  66. package/src/detail-panel/detail-panel.tokens.json +2 -0
  67. package/src/dialog/dialog.css +435 -199
  68. package/src/dialog/dialog.tokens.json +9 -0
  69. package/src/divider/divider.css +20 -20
  70. package/src/drawer/drawer.css +598 -237
  71. package/src/drawer/drawer.tokens.json +14 -0
  72. package/src/entity-picker/entity-picker.css +326 -272
  73. package/src/entity-picker/entity-picker.tokens.json +4 -0
  74. package/src/event-calendar/event-calendar.css +357 -399
  75. package/src/field/field.css +106 -93
  76. package/src/field/field.tokens.json +2 -0
  77. package/src/field-group/field-group.css +43 -33
  78. package/src/field-group/field-group.tokens.json +3 -0
  79. package/src/filter-bar/filter-bar.css +200 -216
  80. package/src/form/form.css +100 -26
  81. package/src/form/form.tokens.json +6 -1
  82. package/src/fullscreen/fullscreen.css +26 -27
  83. package/src/grid/grid.css +29 -29
  84. package/src/highlight/highlight.css +11 -11
  85. package/src/hover-card/hover-card.css +9 -9
  86. package/src/icon/icon.css +67 -20
  87. package/src/icon/icon.tokens.json +1 -0
  88. package/src/image/image.css +42 -42
  89. package/src/import-export-center/import-export-center.css +147 -168
  90. package/src/import-export-center/import-export-center.tokens.json +1 -0
  91. package/src/inline/inline.css +28 -28
  92. package/src/inline-message/inline-message.css +162 -86
  93. package/src/inline-message/inline-message.tokens.json +4 -0
  94. package/src/kbd/kbd.css +62 -50
  95. package/src/kbd/kbd.tokens.json +3 -0
  96. package/src/link/link.css +54 -33
  97. package/src/link/link.tokens.json +4 -0
  98. package/src/list/list.css +23 -23
  99. package/src/list-item/list-item.css +89 -75
  100. package/src/list-item/list-item.tokens.json +7 -0
  101. package/src/listbox/listbox.css +71 -70
  102. package/src/listbox/listbox.tokens.json +0 -1
  103. package/src/loading-overlay/loading-overlay.css +86 -103
  104. package/src/markdown/markdown.css +20 -20
  105. package/src/media-viewer/media-viewer.css +790 -0
  106. package/src/media-viewer/media-viewer.tokens.json +53 -0
  107. package/src/menu/menu.css +166 -83
  108. package/src/menu/menu.tokens.json +3 -1
  109. package/src/menubar/menubar.css +16 -16
  110. package/src/message/message.css +1253 -1246
  111. package/src/message/message.tokens.json +5 -0
  112. package/src/message-scroller/message-scroller.css +323 -320
  113. package/src/multi-select/multi-select.css +233 -174
  114. package/src/multi-select/multi-select.tokens.json +3 -0
  115. package/src/navigation-menu/navigation-menu.css +170 -191
  116. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  117. package/src/notification-center/notification-center.css +155 -163
  118. package/src/notification-center/notification-center.tokens.json +4 -0
  119. package/src/number-field/number-field.css +93 -93
  120. package/src/number-field/number-field.tokens.json +1 -0
  121. package/src/otp-input/otp-input.css +74 -64
  122. package/src/otp-input/otp-input.tokens.json +1 -0
  123. package/src/page/page.css +41 -27
  124. package/src/page/page.tokens.json +1 -0
  125. package/src/page-header/page-header.css +342 -287
  126. package/src/page-header/page-header.tokens.json +6 -1
  127. package/src/pagination/pagination.css +75 -79
  128. package/src/popover/popover.css +85 -65
  129. package/src/popover/popover.tokens.json +2 -0
  130. package/src/progress-indicator/progress-indicator.css +192 -136
  131. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  132. package/src/prompt-composer/prompt-composer.css +260 -113
  133. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  134. package/src/prose/prose.css +77 -82
  135. package/src/radio-group/radio-group.css +107 -112
  136. package/src/rating/rating.css +146 -142
  137. package/src/rating/rating.tokens.json +1 -0
  138. package/src/result-state/result-state.css +95 -102
  139. package/src/result-state/result-state.tokens.json +1 -0
  140. package/src/runtime-properties.mjs +19 -6
  141. package/src/saved-views/saved-views.css +43 -49
  142. package/src/scroll-area/scroll-area.css +50 -37
  143. package/src/section/section.css +179 -44
  144. package/src/section/section.tokens.json +9 -3
  145. package/src/segmented-control/segmented-control.css +210 -133
  146. package/src/segmented-control/segmented-control.tokens.json +7 -11
  147. package/src/select/select.css +213 -149
  148. package/src/select/select.tokens.json +4 -0
  149. package/src/side-navigation/side-navigation.css +201 -198
  150. package/src/side-navigation/side-navigation.tokens.json +1 -0
  151. package/src/skeleton/skeleton.css +57 -58
  152. package/src/slider/slider.css +101 -103
  153. package/src/sparkline/sparkline.css +75 -53
  154. package/src/sparkline/sparkline.tokens.json +2 -0
  155. package/src/spinner/spinner.css +83 -180
  156. package/src/spinner/spinner.tokens.json +0 -1
  157. package/src/split-button/split-button.css +34 -35
  158. package/src/split-button/split-button.tokens.json +1 -0
  159. package/src/splitter/splitter.css +47 -48
  160. package/src/stack/stack.css +25 -25
  161. package/src/stat-card/stat-card.css +415 -245
  162. package/src/stat-card/stat-card.tokens.json +8 -0
  163. package/src/status-indicator/status-indicator.css +124 -100
  164. package/src/status-indicator/status-indicator.tokens.json +0 -3
  165. package/src/stepper/stepper.css +78 -82
  166. package/src/switch/switch.css +100 -106
  167. package/src/table/table.css +270 -198
  168. package/src/table/table.tokens.json +2 -0
  169. package/src/table-of-contents/table-of-contents.css +60 -59
  170. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  171. package/src/tabs/tabs.css +327 -294
  172. package/src/tabs/tabs.tokens.json +7 -1
  173. package/src/tag/tag.css +109 -88
  174. package/src/tag/tag.tokens.json +10 -0
  175. package/src/tags-input/tags-input.css +152 -87
  176. package/src/tags-input/tags-input.tokens.json +7 -1
  177. package/src/text-field/text-field.css +146 -148
  178. package/src/text-field/text-field.tokens.json +1 -0
  179. package/src/textarea/textarea.css +38 -33
  180. package/src/textarea/textarea.tokens.json +1 -0
  181. package/src/time-field/time-field.css +82 -77
  182. package/src/time-field/time-field.tokens.json +1 -0
  183. package/src/time-picker/time-picker.css +116 -64
  184. package/src/time-picker/time-picker.tokens.json +4 -1
  185. package/src/time-range-picker/time-range-picker.css +168 -140
  186. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  187. package/src/timeline/timeline.css +280 -292
  188. package/src/timeline/timeline.tokens.json +5 -0
  189. package/src/toast/toast.css +139 -122
  190. package/src/toast/toast.tokens.json +7 -0
  191. package/src/toggle/toggle.css +34 -38
  192. package/src/toggle-group/toggle-group.css +73 -77
  193. package/src/toolbar/toolbar.css +33 -38
  194. package/src/tooltip/tooltip.css +65 -39
  195. package/src/tooltip/tooltip.tokens.json +1 -0
  196. package/src/top-navigation/top-navigation.css +252 -268
  197. package/src/tour/tour.css +68 -74
  198. package/src/tour/tour.tokens.json +1 -0
  199. package/src/transfer/transfer.css +164 -168
  200. package/src/tree/tree.css +113 -121
  201. package/src/typography/typography.css +42 -38
  202. package/src/typography/typography.tokens.json +1 -0
  203. package/src/upload/upload.css +256 -257
  204. package/src/visually-hidden/visually-hidden.css +1 -1
  205. package/src/wizard/wizard.css +187 -199
@@ -2,8 +2,10 @@
2
2
  "--slotted-border-subtle",
3
3
  "--slotted-border-width-thin",
4
4
  "--slotted-command-palette-active",
5
+ "--slotted-command-palette-backdrop-filter",
5
6
  "--slotted-command-palette-border-color",
6
7
  "--slotted-command-palette-footer-surface",
8
+ "--slotted-command-palette-group-label-height",
7
9
  "--slotted-command-palette-highlight",
8
10
  "--slotted-command-palette-highlight-ring",
9
11
  "--slotted-command-palette-hover",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Container bounds the inline size of a region, insets it from the edge of
4
4
  * the space it was given, and places it inside that space. It paints
5
- * nothing: a layout that carried a colour would be a surface, and a surface
5
+ * nothing: a layout that carried a color would be a surface, and a surface
6
6
  * is another family's decision.
7
7
  *
8
8
  * The root lays three tracks — a start gutter, the bounded column, an end
@@ -16,7 +16,7 @@
16
16
  * read against each other in one declaration instead of restating the
17
17
  * template four times.
18
18
  */
19
- [data-ui='container'] {
19
+ [data-ui-container] {
20
20
  --_max: var(--slotted-container-content, 56rem);
21
21
  --_inset: var(--slotted-space-6, 1rem);
22
22
  --_start-track: 1fr;
@@ -48,7 +48,7 @@
48
48
  * failure WCAG SC 1.4.10 names. The column holds; what to do with the
49
49
  * overflow is the child's decision.
50
50
  */
51
- [data-ui='container'] > * {
51
+ [data-ui-container] > * {
52
52
  grid-column: content;
53
53
  min-inline-size: 0;
54
54
  }
@@ -61,7 +61,7 @@
61
61
  * page — none of which the `50% - 50vw` recipe survives. Bounded content
62
62
  * returns inside it by nesting another container.
63
63
  */
64
- [data-ui='container'] > [data-part='breakout'] {
64
+ [data-ui-container] > [data-part-breakout] {
65
65
  grid-column: full;
66
66
  }
67
67
 
@@ -82,15 +82,15 @@
82
82
  * widths: space stops at 4rem and is about separation, not extent. Three
83
83
  * values read by one family is not a scale, so they stay family tokens.
84
84
  */
85
- [data-ui='container'][data-size='measure'] {
85
+ [data-ui-container][data-size='measure'] {
86
86
  --_max: var(--slotted-container-measure, 65ch);
87
87
  }
88
88
 
89
- [data-ui='container'][data-size='content'] {
89
+ [data-ui-container][data-size='content'] {
90
90
  --_max: var(--slotted-container-content, 56rem);
91
91
  }
92
92
 
93
- [data-ui='container'][data-size='wide'] {
93
+ [data-ui-container][data-size='wide'] {
94
94
  --_max: var(--slotted-container-wide, 80rem);
95
95
  }
96
96
 
@@ -102,18 +102,18 @@
102
102
  * route was unreadable on an ultra-wide display — a line of text three
103
103
  * thousand pixels long, a form whose label and field were a screen apart.
104
104
  * 120rem is a 1920-pixel display, where `full` and `bleed` are the same
105
- * picture; past it the content stops and centres.
105
+ * picture; past it the content stops and centers.
106
106
  *
107
- * `bleed` keeps the old behaviour and has to be asked for by name: a data
107
+ * `bleed` keeps the old behavior and has to be asked for by name: a data
108
108
  * grid, a board, a canvas — content that is worth every pixel it is given,
109
109
  * and reads better at three thousand pixels than at nineteen hundred.
110
110
  * Neither removes the container: the gutters stay in both.
111
111
  */
112
- [data-ui='container'][data-size='full'] {
112
+ [data-ui-container][data-size='full'] {
113
113
  --_max: var(--slotted-container-full, 120rem);
114
114
  }
115
115
 
116
- [data-ui='container'][data-size='bleed'] {
116
+ [data-ui-container][data-size='bleed'] {
117
117
  --_max: 100%;
118
118
  }
119
119
 
@@ -124,55 +124,55 @@
124
124
  * composition decision, and a page frame that moved every time a table got
125
125
  * denser would be the page reflowing for no reason.
126
126
  */
127
- [data-ui='container'][data-inset='0'] {
127
+ [data-ui-container][data-inset='0'] {
128
128
  --_inset: 0px;
129
129
  }
130
130
 
131
- [data-ui='container'][data-inset='1'] {
131
+ [data-ui-container][data-inset='1'] {
132
132
  --_inset: var(--slotted-space-1, 0.125rem);
133
133
  }
134
134
 
135
- [data-ui='container'][data-inset='2'] {
135
+ [data-ui-container][data-inset='2'] {
136
136
  --_inset: var(--slotted-space-2, 0.25rem);
137
137
  }
138
138
 
139
- [data-ui='container'][data-inset='3'] {
139
+ [data-ui-container][data-inset='3'] {
140
140
  --_inset: var(--slotted-space-3, 0.375rem);
141
141
  }
142
142
 
143
- [data-ui='container'][data-inset='4'] {
143
+ [data-ui-container][data-inset='4'] {
144
144
  --_inset: var(--slotted-space-4, 0.5rem);
145
145
  }
146
146
 
147
- [data-ui='container'][data-inset='5'] {
147
+ [data-ui-container][data-inset='5'] {
148
148
  --_inset: var(--slotted-space-5, 0.75rem);
149
149
  }
150
150
 
151
- [data-ui='container'][data-inset='6'] {
151
+ [data-ui-container][data-inset='6'] {
152
152
  --_inset: var(--slotted-space-6, 1rem);
153
153
  }
154
154
 
155
- [data-ui='container'][data-inset='7'] {
155
+ [data-ui-container][data-inset='7'] {
156
156
  --_inset: var(--slotted-space-7, 1.25rem);
157
157
  }
158
158
 
159
- [data-ui='container'][data-inset='8'] {
159
+ [data-ui-container][data-inset='8'] {
160
160
  --_inset: var(--slotted-space-8, 1.5rem);
161
161
  }
162
162
 
163
- [data-ui='container'][data-inset='9'] {
163
+ [data-ui-container][data-inset='9'] {
164
164
  --_inset: var(--slotted-space-9, 2rem);
165
165
  }
166
166
 
167
- [data-ui='container'][data-inset='10'] {
167
+ [data-ui-container][data-inset='10'] {
168
168
  --_inset: var(--slotted-space-10, 2.5rem);
169
169
  }
170
170
 
171
- [data-ui='container'][data-inset='11'] {
171
+ [data-ui-container][data-inset='11'] {
172
172
  --_inset: var(--slotted-space-11, 3rem);
173
173
  }
174
174
 
175
- [data-ui='container'][data-inset='12'] {
175
+ [data-ui-container][data-inset='12'] {
176
176
  --_inset: var(--slotted-space-12, 4rem);
177
177
  }
178
178
 
@@ -183,16 +183,16 @@
183
183
  * direction, so a right-to-left document is the same component mirrored
184
184
  * rather than a second stylesheet.
185
185
  */
186
- [data-ui='container'][data-align='center'] {
186
+ [data-ui-container][data-align='center'] {
187
187
  --_start-track: 1fr;
188
188
  --_end-track: 1fr;
189
189
  }
190
190
 
191
- [data-ui='container'][data-align='start'] {
191
+ [data-ui-container][data-align='start'] {
192
192
  --_start-track: var(--_inset);
193
193
  }
194
194
 
195
- [data-ui='container'][data-align='end'] {
195
+ [data-ui-container][data-align='end'] {
196
196
  --_end-track: var(--_inset);
197
197
  }
198
198
  }
@@ -6,7 +6,7 @@
6
6
  * ┌─ root ─ the target ─ data-open ─ data-pressed ──────────────┐
7
7
  * │ the consumer's content: a row, a card, a canvas │
8
8
  * └──────────────────────────────────────────────────────────────┘
9
- * ┌─ [data-ui='menu'] ─ unchanged ─┐ ← anchored to the point
9
+ * ┌─ [data-ui-menu] ─ unchanged ─┐ ← anchored to the point
10
10
  *
11
11
  * The family owns this one part and no surface: the menu that opens is
12
12
  * `menu`, imported as it is, the way `menubar` holds it. Radix's context menu
@@ -20,9 +20,9 @@
20
20
  * stylesheet owns is the three moments the family adds to the region: the
21
21
  * long press, the open menu, and the browser's own menu taking over.
22
22
  */
23
- [data-ui='context-menu'] {
23
+ [data-ui-context-menu] {
24
24
  /* The mark Finder and Explorer leave on the row whose menu is showing:
25
- one line, inward, in the colour that separates two surfaces. A consumer
25
+ one line, inward, in the color that separates two surfaces. A consumer
26
26
  whose target already shows its selection sets the width to `0`. */
27
27
  --_mark-width: var(--slotted-context-menu-mark-width, var(--slotted-border-width-thin, 1px));
28
28
  --_mark-color: var(--slotted-context-menu-mark-color, var(--slotted-border-strong, CanvasText));
@@ -36,7 +36,7 @@
36
36
  * platform at `touchstart`, before any state the family writes could apply.
37
37
  */
38
38
  @media (pointer: coarse) {
39
- [data-ui='context-menu'] {
39
+ [data-ui-context-menu] {
40
40
  -webkit-touch-callout: none;
41
41
  }
42
42
  }
@@ -47,7 +47,7 @@
47
47
  * then: a target that is text stays selectable at rest, and a mouse never
48
48
  * sets the state at all.
49
49
  */
50
- [data-ui='context-menu'][data-pressed] {
50
+ [data-ui-context-menu][data-pressed] {
51
51
  -webkit-user-select: none;
52
52
  user-select: none;
53
53
  }
@@ -66,11 +66,11 @@
66
66
  * positioned at rest rather than only while open, so nothing inside the
67
67
  * region moves at the moment the menu appears.
68
68
  */
69
- [data-ui='context-menu'] {
69
+ [data-ui-context-menu] {
70
70
  position: relative;
71
71
  }
72
72
 
73
- [data-ui='context-menu']::after {
73
+ [data-ui-context-menu]::after {
74
74
  border-radius: inherit;
75
75
  box-shadow: inset 0 0 0 var(--_mark-width) transparent;
76
76
  content: '';
@@ -80,7 +80,7 @@
80
80
  transition: box-shadow var(--slotted-duration-short) var(--slotted-easing-standard);
81
81
  }
82
82
 
83
- [data-ui='context-menu'][data-open]::after {
83
+ [data-ui-context-menu][data-open]::after {
84
84
  box-shadow: inset 0 0 0 var(--_mark-width) var(--_mark-color);
85
85
  }
86
86
 
@@ -90,7 +90,7 @@
90
90
  * region the reader can see they are on. The open mark is gone by the time
91
91
  * focus returns, so the two are never drawn together.
92
92
  */
93
- [data-ui='context-menu']:focus-visible {
93
+ [data-ui-context-menu]:focus-visible {
94
94
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
95
95
  outline-offset: var(--slotted-focus-ring-offset, 2px);
96
96
  }