@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40

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 (221) hide show
  1. package/package.json +21 -1
  2. package/src/accordion/accordion.css +31 -13
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/action-bar/action-bar.css +47 -44
  5. package/src/action-bar/action-bar.tokens.json +1 -0
  6. package/src/action-sheet/action-sheet.css +39 -39
  7. package/src/alert/alert.css +97 -97
  8. package/src/alert/alert.tokens.json +6 -1
  9. package/src/app-shell/app-shell.css +472 -342
  10. package/src/app-shell/app-shell.tokens.json +6 -3
  11. package/src/aspect-ratio/aspect-ratio.css +24 -23
  12. package/src/attachment/attachment.css +118 -114
  13. package/src/avatar/avatar.css +97 -67
  14. package/src/avatar/avatar.tokens.json +8 -0
  15. package/src/avatar-group/avatar-group.css +22 -23
  16. package/src/badge/badge.css +58 -47
  17. package/src/badge/badge.tokens.json +6 -0
  18. package/src/breadcrumb/breadcrumb.css +52 -52
  19. package/src/button/button.css +408 -93
  20. package/src/button/button.tokens.json +13 -0
  21. package/src/button-group/button-group.css +80 -79
  22. package/src/button-group/button-group.tokens.json +1 -0
  23. package/src/calendar/calendar.css +594 -267
  24. package/src/calendar/calendar.tokens.json +35 -3
  25. package/src/card/card.css +133 -70
  26. package/src/card/card.tokens.json +1 -0
  27. package/src/carousel/carousel.css +158 -169
  28. package/src/cascader/cascader.css +174 -159
  29. package/src/cascader/cascader.tokens.json +2 -0
  30. package/src/chart/chart.css +300 -271
  31. package/src/chart/chart.tokens.json +5 -0
  32. package/src/checkbox/checkbox.css +190 -148
  33. package/src/checkbox/checkbox.tokens.json +4 -0
  34. package/src/checkbox-group/checkbox-group.css +7 -7
  35. package/src/clock/clock.css +246 -0
  36. package/src/clock/clock.tokens.json +44 -0
  37. package/src/code-block/code-block.css +85 -89
  38. package/src/collapsible/collapsible.css +273 -85
  39. package/src/collapsible/collapsible.tokens.json +6 -0
  40. package/src/color-picker/color-picker.css +106 -114
  41. package/src/column-manager/column-manager.css +111 -119
  42. package/src/combobox/combobox.css +219 -132
  43. package/src/combobox/combobox.tokens.json +4 -0
  44. package/src/command-palette/command-palette.css +214 -102
  45. package/src/command-palette/command-palette.tokens.json +4 -0
  46. package/src/container/container.css +27 -27
  47. package/src/context-menu/context-menu.css +9 -9
  48. package/src/currency-field/currency-field.css +119 -119
  49. package/src/currency-field/currency-field.tokens.json +1 -0
  50. package/src/dashboard-grid/dashboard-grid.css +231 -115
  51. package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
  52. package/src/data-grid/data-grid.css +637 -496
  53. package/src/data-grid/data-grid.tokens.json +5 -1
  54. package/src/data-list/data-list.css +93 -76
  55. package/src/data-list/data-list.tokens.json +2 -1
  56. package/src/date-field/date-field.css +62 -57
  57. package/src/date-field/date-field.tokens.json +1 -0
  58. package/src/date-picker/date-picker.css +31 -269
  59. package/src/date-picker/date-picker.tokens.json +1 -21
  60. package/src/date-range-picker/date-range-picker.css +72 -528
  61. package/src/date-range-picker/date-range-picker.tokens.json +1 -37
  62. package/src/datetime-field/datetime-field.css +90 -90
  63. package/src/datetime-field/datetime-field.tokens.json +1 -0
  64. package/src/datetime-picker/datetime-picker.css +49 -711
  65. package/src/datetime-picker/datetime-picker.tokens.json +1 -50
  66. package/src/datetime-range-picker/datetime-range-picker.css +60 -985
  67. package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
  68. package/src/description-list/description-list.css +120 -76
  69. package/src/description-list/description-list.tokens.json +1 -0
  70. package/src/detail-panel/detail-panel.css +86 -71
  71. package/src/detail-panel/detail-panel.tokens.json +2 -0
  72. package/src/dialog/dialog.css +462 -199
  73. package/src/dialog/dialog.tokens.json +10 -0
  74. package/src/divider/divider.css +20 -20
  75. package/src/drawer/drawer.css +736 -237
  76. package/src/drawer/drawer.tokens.json +15 -0
  77. package/src/entity-picker/entity-picker.css +402 -272
  78. package/src/entity-picker/entity-picker.tokens.json +6 -0
  79. package/src/event-calendar/event-calendar.css +357 -399
  80. package/src/field/field.css +106 -93
  81. package/src/field/field.tokens.json +2 -0
  82. package/src/field-group/field-group.css +58 -38
  83. package/src/field-group/field-group.tokens.json +3 -0
  84. package/src/filter-bar/filter-bar.css +224 -216
  85. package/src/floating-panel/floating-panel.css +147 -0
  86. package/src/floating-panel/floating-panel.tokens.json +32 -0
  87. package/src/form/form.css +103 -26
  88. package/src/form/form.tokens.json +6 -1
  89. package/src/fullscreen/fullscreen.css +26 -27
  90. package/src/grid/grid.css +32 -31
  91. package/src/highlight/highlight.css +11 -11
  92. package/src/hover-card/hover-card.css +9 -9
  93. package/src/icon/icon.css +67 -20
  94. package/src/icon/icon.tokens.json +1 -0
  95. package/src/image/image.css +42 -42
  96. package/src/import-export-center/import-export-center.css +147 -168
  97. package/src/import-export-center/import-export-center.tokens.json +1 -0
  98. package/src/inline/inline.css +29 -29
  99. package/src/inline-message/inline-message.css +162 -86
  100. package/src/inline-message/inline-message.tokens.json +5 -0
  101. package/src/kbd/kbd.css +63 -51
  102. package/src/kbd/kbd.tokens.json +4 -0
  103. package/src/link/link.css +54 -33
  104. package/src/link/link.tokens.json +4 -0
  105. package/src/list/list.css +55 -24
  106. package/src/list/list.tokens.json +2 -0
  107. package/src/list-item/list-item.css +195 -80
  108. package/src/list-item/list-item.tokens.json +10 -0
  109. package/src/listbox/listbox.css +121 -72
  110. package/src/listbox/listbox.tokens.json +6 -1
  111. package/src/loading-overlay/loading-overlay.css +86 -103
  112. package/src/markdown/markdown.css +20 -20
  113. package/src/media-viewer/media-viewer.css +790 -0
  114. package/src/media-viewer/media-viewer.tokens.json +53 -0
  115. package/src/menu/menu.css +166 -83
  116. package/src/menu/menu.tokens.json +3 -1
  117. package/src/menubar/menubar.css +16 -16
  118. package/src/message/message.css +1296 -1243
  119. package/src/message/message.tokens.json +14 -0
  120. package/src/message-scroller/message-scroller.css +323 -320
  121. package/src/meter/meter.css +136 -0
  122. package/src/meter/meter.tokens.json +23 -0
  123. package/src/multi-select/multi-select.css +246 -174
  124. package/src/multi-select/multi-select.tokens.json +3 -0
  125. package/src/navigation-menu/navigation-menu.css +170 -191
  126. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  127. package/src/notification-center/notification-center.css +155 -163
  128. package/src/notification-center/notification-center.tokens.json +4 -0
  129. package/src/number-field/number-field.css +93 -93
  130. package/src/number-field/number-field.tokens.json +1 -0
  131. package/src/otp-input/otp-input.css +74 -64
  132. package/src/otp-input/otp-input.tokens.json +1 -0
  133. package/src/page/page.css +109 -31
  134. package/src/page/page.tokens.json +8 -0
  135. package/src/page-header/page-header.css +342 -287
  136. package/src/page-header/page-header.tokens.json +6 -1
  137. package/src/pagination/pagination.css +75 -79
  138. package/src/picker-panel/picker-panel.css +1074 -0
  139. package/src/picker-panel/picker-panel.tokens.json +77 -0
  140. package/src/popover/popover.css +85 -65
  141. package/src/popover/popover.tokens.json +2 -0
  142. package/src/progress-indicator/progress-indicator.css +194 -137
  143. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  144. package/src/prompt-composer/prompt-composer.css +274 -116
  145. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  146. package/src/prose/prose.css +77 -82
  147. package/src/radio-group/radio-group.css +107 -112
  148. package/src/rating/rating.css +147 -143
  149. package/src/rating/rating.tokens.json +2 -0
  150. package/src/result-state/result-state.css +95 -102
  151. package/src/result-state/result-state.tokens.json +1 -0
  152. package/src/runtime-properties.mjs +44 -6
  153. package/src/saved-views/saved-views.css +43 -49
  154. package/src/scroll-area/scroll-area.css +50 -37
  155. package/src/section/section.css +311 -46
  156. package/src/section/section.tokens.json +13 -1
  157. package/src/segmented-control/segmented-control.css +221 -133
  158. package/src/segmented-control/segmented-control.tokens.json +7 -11
  159. package/src/select/select.css +226 -149
  160. package/src/select/select.tokens.json +4 -0
  161. package/src/side-navigation/side-navigation.css +204 -201
  162. package/src/side-navigation/side-navigation.tokens.json +2 -0
  163. package/src/skeleton/skeleton.css +76 -58
  164. package/src/slider/slider.css +108 -104
  165. package/src/slider/slider.tokens.json +1 -0
  166. package/src/sparkline/sparkline.css +75 -53
  167. package/src/sparkline/sparkline.tokens.json +2 -0
  168. package/src/spinner/spinner.css +83 -180
  169. package/src/spinner/spinner.tokens.json +0 -1
  170. package/src/split-button/split-button.css +34 -35
  171. package/src/split-button/split-button.tokens.json +1 -0
  172. package/src/splitter/splitter.css +47 -48
  173. package/src/stack/stack.css +26 -26
  174. package/src/stat-card/stat-card.css +420 -245
  175. package/src/stat-card/stat-card.tokens.json +8 -0
  176. package/src/status-indicator/status-indicator.css +126 -101
  177. package/src/status-indicator/status-indicator.tokens.json +0 -3
  178. package/src/stepper/stepper.css +78 -82
  179. package/src/switch/switch.css +143 -125
  180. package/src/switch/switch.tokens.json +4 -0
  181. package/src/table/table.css +653 -222
  182. package/src/table/table.tokens.json +10 -0
  183. package/src/table-of-contents/table-of-contents.css +60 -59
  184. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  185. package/src/tabs/tabs.css +327 -294
  186. package/src/tabs/tabs.tokens.json +7 -1
  187. package/src/tag/tag.css +113 -89
  188. package/src/tag/tag.tokens.json +11 -0
  189. package/src/tags-input/tags-input.css +152 -87
  190. package/src/tags-input/tags-input.tokens.json +7 -1
  191. package/src/text-field/text-field.css +146 -148
  192. package/src/text-field/text-field.tokens.json +1 -0
  193. package/src/textarea/textarea.css +38 -33
  194. package/src/textarea/textarea.tokens.json +1 -0
  195. package/src/time-field/time-field.css +82 -77
  196. package/src/time-field/time-field.tokens.json +1 -0
  197. package/src/time-picker/time-picker.css +30 -519
  198. package/src/time-picker/time-picker.tokens.json +1 -38
  199. package/src/time-range-picker/time-range-picker.css +53 -895
  200. package/src/time-range-picker/time-range-picker.tokens.json +1 -66
  201. package/src/timeline/timeline.css +280 -292
  202. package/src/timeline/timeline.tokens.json +5 -0
  203. package/src/toast/toast.css +139 -122
  204. package/src/toast/toast.tokens.json +7 -0
  205. package/src/toggle/toggle.css +34 -38
  206. package/src/toggle-group/toggle-group.css +73 -77
  207. package/src/toolbar/toolbar.css +49 -40
  208. package/src/toolbar/toolbar.tokens.json +2 -1
  209. package/src/tooltip/tooltip.css +95 -39
  210. package/src/tooltip/tooltip.tokens.json +1 -0
  211. package/src/top-navigation/top-navigation.css +253 -269
  212. package/src/top-navigation/top-navigation.tokens.json +1 -0
  213. package/src/tour/tour.css +68 -74
  214. package/src/tour/tour.tokens.json +1 -0
  215. package/src/transfer/transfer.css +164 -168
  216. package/src/tree/tree.css +118 -122
  217. package/src/typography/typography.css +67 -38
  218. package/src/typography/typography.tokens.json +2 -0
  219. package/src/upload/upload.css +256 -257
  220. package/src/visually-hidden/visually-hidden.css +1 -1
  221. package/src/wizard/wizard.css +187 -199
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-action-gap",
2
3
  "--slotted-app-shell-aside-color",
3
4
  "--slotted-app-shell-aside-extent",
4
5
  "--slotted-app-shell-aside-size-lg",
@@ -29,7 +30,6 @@
29
30
  "--slotted-app-shell-nav-surface",
30
31
  "--slotted-app-shell-radius",
31
32
  "--slotted-app-shell-rail-size",
32
- "--slotted-app-shell-resizer-color",
33
33
  "--slotted-app-shell-row-inset-size",
34
34
  "--slotted-app-shell-row-mark-size",
35
35
  "--slotted-app-shell-row-text-line-height",
@@ -40,13 +40,11 @@
40
40
  "--slotted-app-shell-tone-surface",
41
41
  "--slotted-border-strong",
42
42
  "--slotted-border-subtle",
43
- "--slotted-border-width-thick",
44
43
  "--slotted-border-width-thin",
45
44
  "--slotted-control-font-size-md",
46
45
  "--slotted-control-font-size-sm",
47
46
  "--slotted-control-gap-lg",
48
47
  "--slotted-control-gap-md",
49
- "--slotted-control-gap-sm",
50
48
  "--slotted-control-height-lg",
51
49
  "--slotted-control-height-md",
52
50
  "--slotted-control-icon-size-md",
@@ -66,16 +64,21 @@
66
64
  "--slotted-font-weight-semibold",
67
65
  "--slotted-line-height-sm",
68
66
  "--slotted-radius-lg",
67
+ "--slotted-radius-sm",
69
68
  "--slotted-scrim",
70
69
  "--slotted-shadow-lg",
71
70
  "--slotted-shadow-md",
72
71
  "--slotted-shadow-xs",
73
72
  "--slotted-space-1",
73
+ "--slotted-space-12",
74
74
  "--slotted-space-2",
75
75
  "--slotted-space-3",
76
76
  "--slotted-space-4",
77
77
  "--slotted-space-5",
78
78
  "--slotted-space-6",
79
+ "--slotted-space-9",
80
+ "--slotted-splitter-line-active-color",
81
+ "--slotted-splitter-line-color",
79
82
  "--slotted-surface",
80
83
  "--slotted-surface-sunken",
81
84
  "--slotted-target-min",
@@ -21,13 +21,12 @@
21
21
  * clipped and nothing escapes: the frame reserves, and it never crops. The
22
22
  * crop is `image`'s decision, taken with `fit`.
23
23
  *
24
- * A replaced child contributes nothing to that minimum: css-sizing-3 §5.2.1
25
- * resolves a cyclic percentage on a replaced element against zero for the
26
- * min-content contribution, so a 4000-pixel photograph at `block-size: 100%`
27
- * does not grow the frame to 4000 pixels. Only content with a height of its
28
- * own — text, a control, a card — can.
24
+ * A replaced child contributes nothing to that minimum: its size is
25
+ * contained, so a 4000-pixel photograph does not grow the frame to 4000
26
+ * pixels. Only content with a height of its own — text, a control, a card —
27
+ * can.
29
28
  */
30
- [data-ui='aspect-ratio'][data-part='root'] {
29
+ [data-ui-aspect-ratio][data-part-root] {
31
30
  /**
32
31
  * The proportion, as the public token. A named ratio writes it below; a
33
32
  * number the consumer stated is written on the instance, as `w / h`, and
@@ -48,8 +47,10 @@
48
47
  display: grid;
49
48
  grid-template-columns: minmax(0, 1fr);
50
49
  grid-template-rows: 1fr;
51
- /* The width the container gives, and never more. */
52
- max-inline-size: 100%;
50
+ /* No inline maximum: through the ratio it becomes a block maximum, and in
51
+ a flex column that held the frame at its ratio around taller content.
52
+ The width stays the container's because no child contributes one of
53
+ its own beyond the content it holds. */
53
54
  min-inline-size: 0;
54
55
  }
55
56
 
@@ -61,23 +62,23 @@
61
62
  * the decision reads in the DOM. Written as the public token so a theme
62
63
  * that disagrees about what `wide` means retunes it in one place.
63
64
  */
64
- [data-ui='aspect-ratio'][data-part='root'][data-ratio='square'] {
65
+ [data-ui-aspect-ratio][data-part-root][data-ratio='square'] {
65
66
  --slotted-aspect-ratio: 1 / 1;
66
67
  }
67
68
 
68
- [data-ui='aspect-ratio'][data-part='root'][data-ratio='landscape'] {
69
+ [data-ui-aspect-ratio][data-part-root][data-ratio='landscape'] {
69
70
  --slotted-aspect-ratio: 4 / 3;
70
71
  }
71
72
 
72
- [data-ui='aspect-ratio'][data-part='root'][data-ratio='portrait'] {
73
+ [data-ui-aspect-ratio][data-part-root][data-ratio='portrait'] {
73
74
  --slotted-aspect-ratio: 3 / 4;
74
75
  }
75
76
 
76
- [data-ui='aspect-ratio'][data-part='root'][data-ratio='video'] {
77
+ [data-ui-aspect-ratio][data-part-root][data-ratio='video'] {
77
78
  --slotted-aspect-ratio: 16 / 9;
78
79
  }
79
80
 
80
- [data-ui='aspect-ratio'][data-part='root'][data-ratio='wide'] {
81
+ [data-ui-aspect-ratio][data-part-root][data-ratio='wide'] {
81
82
  --slotted-aspect-ratio: 21 / 9;
82
83
  }
83
84
 
@@ -94,7 +95,7 @@
94
95
  * shrink with the frame; the block minimum is left alone on purpose, so a
95
96
  * child taller than the ratio still grows the box.
96
97
  */
97
- [data-ui='aspect-ratio'][data-part='root'] > * {
98
+ [data-ui-aspect-ratio][data-part-root] > * {
98
99
  grid-area: 1 / 1;
99
100
  min-inline-size: 0;
100
101
  }
@@ -110,22 +111,22 @@
110
111
  * `picture` is in the list so its `img` sees a definite box to be 100 %
111
112
  * of; an `iframe` and a `canvas` take the size and have no `object-fit`.
112
113
  *
113
- * `min-block-size: 0` is what keeps the frame at its ratio around a
114
- * photograph. A grid item's automatic minimum is content-based, and while
115
- * the row is being sized the percentage height is treated as `auto`, so
116
- * the item asked for its natural height and a 4:3 photograph grew a 16:9
117
- * frame to 4:3 (measured in the first capture of the `media` scene). A
118
- * replaced element has nothing to say about the frame's height; the text
114
+ * `contain: size` is what keeps the frame at its ratio around a photograph.
115
+ * While the row is being sized the percentage height is treated as `auto`,
116
+ * so the item asked for its natural height and a 4:3 photograph grew a 16:9
117
+ * frame to 4:3 (measured in the first capture of the `media` scene); its
118
+ * natural width widened a frame that had no width of its own the same way.
119
+ * A replaced element has nothing to say about the frame's size; the text
119
120
  * child above keeps its automatic minimum, and the growth rule with it.
120
121
  */
121
- [data-ui='aspect-ratio'][data-part='root'] > :is(img, video, canvas, svg, iframe, picture) {
122
+ [data-ui-aspect-ratio][data-part-root] > :is(img, video, canvas, svg, iframe, picture) {
122
123
  block-size: 100%;
124
+ contain: size;
123
125
  display: block;
124
126
  inline-size: 100%;
125
- min-block-size: 0;
126
127
  }
127
128
 
128
- [data-ui='aspect-ratio'][data-part='root'] > :is(img, video) {
129
+ [data-ui-aspect-ratio][data-part-root] > :is(img, video) {
129
130
  object-fit: contain;
130
131
  }
131
132
  }