@slotted/styles 0.1.0-beta.33 → 0.1.0-beta.35
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 +5 -1
- package/src/accordion/accordion.css +20 -2
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/avatar/avatar.css +1 -1
- package/src/avatar/avatar.tokens.json +1 -0
- package/src/badge/badge.css +1 -1
- package/src/badge/badge.tokens.json +1 -0
- package/src/button/button.css +168 -4
- package/src/button/button.tokens.json +5 -0
- package/src/calendar/calendar.css +131 -0
- package/src/calendar/calendar.tokens.json +10 -0
- package/src/card/card.css +63 -3
- package/src/cascader/cascader.css +13 -0
- package/src/chart/chart.css +3 -3
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +47 -0
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/collapsible/collapsible.css +174 -5
- package/src/collapsible/collapsible.tokens.json +4 -0
- package/src/combobox/combobox.css +13 -0
- package/src/command-palette/command-palette.css +10 -1
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +12 -7
- package/src/dashboard-grid/dashboard-grid.tokens.json +1 -0
- package/src/data-grid/data-grid.css +44 -5
- package/src/data-list/data-list.css +17 -11
- package/src/description-list/description-list.css +15 -1
- package/src/drawer/drawer.css +91 -0
- package/src/entity-picker/entity-picker.css +23 -1
- package/src/entity-picker/entity-picker.tokens.json +1 -0
- package/src/filter-bar/filter-bar.css +24 -0
- package/src/floating-panel/floating-panel.css +123 -0
- package/src/floating-panel/floating-panel.tokens.json +30 -0
- package/src/form/form.css +19 -16
- package/src/inline-message/inline-message.css +1 -1
- package/src/inline-message/inline-message.tokens.json +1 -0
- package/src/kbd/kbd.css +1 -1
- package/src/kbd/kbd.tokens.json +1 -0
- package/src/list/list.css +10 -1
- package/src/list/list.tokens.json +1 -0
- package/src/list-item/list-item.css +108 -7
- package/src/list-item/list-item.tokens.json +3 -0
- package/src/listbox/listbox.css +50 -2
- package/src/listbox/listbox.tokens.json +6 -0
- package/src/message/message.css +20 -0
- package/src/message/message.tokens.json +1 -0
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +13 -0
- package/src/page/page.css +58 -4
- package/src/page/page.tokens.json +7 -0
- package/src/progress-indicator/progress-indicator.css +70 -0
- package/src/progress-indicator/progress-indicator.tokens.json +3 -0
- package/src/prompt-composer/prompt-composer.css +18 -7
- package/src/radio-group/radio-group.css +50 -0
- package/src/radio-group/radio-group.tokens.json +2 -0
- package/src/rating/rating.css +1 -1
- package/src/rating/rating.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -0
- package/src/section/section.css +61 -4
- package/src/section/section.tokens.json +6 -0
- package/src/segmented-control/segmented-control.css +11 -0
- package/src/select/select.css +13 -0
- package/src/side-navigation/side-navigation.css +3 -3
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/slider/slider.css +7 -1
- package/src/slider/slider.tokens.json +1 -0
- package/src/sparkline/sparkline.css +207 -0
- package/src/sparkline/sparkline.tokens.json +10 -0
- package/src/stat-card/stat-card.css +5 -0
- package/src/status-indicator/status-indicator.css +3 -2
- package/src/switch/switch.css +49 -25
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +166 -12
- package/src/table/table.tokens.json +5 -0
- package/src/tag/tag.css +4 -1
- package/src/tag/tag.tokens.json +1 -0
- package/src/toolbar/toolbar.css +16 -2
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/top-navigation/top-navigation.css +1 -1
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/typography/typography.css +25 -0
- package/src/typography/typography.tokens.json +1 -0
package/src/tag/tag.css
CHANGED
|
@@ -132,6 +132,9 @@
|
|
|
132
132
|
*/
|
|
133
133
|
max-inline-size: 100%;
|
|
134
134
|
min-block-size: var(--_block-size);
|
|
135
|
+
/* A flex item keeps min-inline-size: auto and never shrinks below its
|
|
136
|
+
text, so the label's ellipsis would never apply in a row. */
|
|
137
|
+
min-inline-size: 0;
|
|
135
138
|
/* Written inside a sentence, a tag sits on the text's center. */
|
|
136
139
|
vertical-align: middle;
|
|
137
140
|
white-space: nowrap;
|
|
@@ -386,7 +389,7 @@
|
|
|
386
389
|
*/
|
|
387
390
|
margin-block: -0.3em;
|
|
388
391
|
padding-block: 0.3em;
|
|
389
|
-
text-box: trim-both cap alphabetic;
|
|
392
|
+
text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
|
|
390
393
|
}
|
|
391
394
|
}
|
|
392
395
|
|
package/src/tag/tag.tokens.json
CHANGED
package/src/toolbar/toolbar.css
CHANGED
|
@@ -100,10 +100,24 @@
|
|
|
100
100
|
calc(var(--slotted-focus-ring-offset, 2px) + var(--slotted-focus-ring-width, 2px))
|
|
101
101
|
);
|
|
102
102
|
|
|
103
|
+
--_frame-edge: var(--slotted-toolbar-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
104
|
+
|
|
103
105
|
background-color: var(--slotted-toolbar-background, var(--slotted-surface-raised));
|
|
104
|
-
border: var(--slotted-border-width-thin, 1px) solid
|
|
105
|
-
var(--slotted-toolbar-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
106
106
|
border-radius: var(--slotted-radius-md, 6px);
|
|
107
|
+
box-shadow: var(--slotted-toolbar-shadow, none);
|
|
108
|
+
/* The containing block of the edge. */
|
|
109
|
+
position: relative;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* The edge, drawn as a card's is (collapsible records why). */
|
|
113
|
+
[data-ui-toolbar][data-variant='outline']::before {
|
|
114
|
+
border: var(--slotted-border-width-thin, 1px) solid var(--_frame-edge);
|
|
115
|
+
border-radius: inherit;
|
|
116
|
+
content: '';
|
|
117
|
+
inset: 0;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
position: absolute;
|
|
120
|
+
z-index: 1;
|
|
107
121
|
}
|
|
108
122
|
|
|
109
123
|
/* ── Overflow ─────────────────────────────────────────────────────────── */
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
/** What is centerd is the ink rather than the font's metrics, as `badge` and `avatar` do it. */
|
|
748
748
|
@supports (text-box: trim-both cap alphabetic) {
|
|
749
749
|
[data-ui-top-navigation] [data-part-count] {
|
|
750
|
-
text-box: trim-both cap alphabetic;
|
|
750
|
+
text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
|
|
@@ -212,4 +212,29 @@
|
|
|
212
212
|
min-inline-size: 0;
|
|
213
213
|
overflow: hidden;
|
|
214
214
|
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* `textBox`: the half-leading taken off the start, the end or both edges of
|
|
218
|
+
* the box. `text-box-trim` does not inherit, so it is set on the root, and
|
|
219
|
+
* the edge is the instance's or the theme's (`--slotted-text-box-edge`), the
|
|
220
|
+
* one every family that trims its own labels reads. A browser without the
|
|
221
|
+
* property draws the normal box.
|
|
222
|
+
*/
|
|
223
|
+
@supports (text-box: trim-both cap alphabetic) {
|
|
224
|
+
[data-ui-typography][data-text-box] {
|
|
225
|
+
text-box-edge: var(--_text-box-edge, var(--slotted-text-box-edge, cap alphabetic));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
[data-ui-typography][data-text-box='trim-start'] {
|
|
229
|
+
text-box-trim: trim-start;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
[data-ui-typography][data-text-box='trim-end'] {
|
|
233
|
+
text-box-trim: trim-end;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
[data-ui-typography][data-text-box='trim-both'] {
|
|
237
|
+
text-box-trim: trim-both;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
215
240
|
}
|