@slotted/styles 0.1.0-beta.39 → 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.
- package/package.json +5 -1
- package/src/aspect-ratio/aspect-ratio.css +15 -14
- package/src/badge/badge.css +3 -0
- package/src/calendar/calendar.css +210 -171
- package/src/calendar/calendar.tokens.json +17 -2
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/date-picker/date-picker.css +5 -302
- package/src/date-picker/date-picker.tokens.json +1 -26
- package/src/date-range-picker/date-range-picker.css +4 -490
- package/src/date-range-picker/date-range-picker.tokens.json +1 -41
- package/src/datetime-picker/datetime-picker.css +23 -738
- package/src/datetime-picker/datetime-picker.tokens.json +1 -53
- package/src/datetime-range-picker/datetime-range-picker.css +6 -959
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -71
- package/src/grid/grid.css +3 -2
- package/src/inline/inline.css +1 -1
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/progress-indicator/progress-indicator.css +3 -2
- package/src/skeleton/skeleton.css +19 -0
- package/src/stack/stack.css +1 -1
- package/src/time-picker/time-picker.css +4 -545
- package/src/time-picker/time-picker.tokens.json +1 -41
- package/src/time-range-picker/time-range-picker.css +5 -875
- package/src/time-range-picker/time-range-picker.tokens.json +1 -70
- package/src/tree/tree.css +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slotted/styles",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.40",
|
|
4
4
|
"description": "Per-family stylesheets of Slotted, bundled by the React and Angular bindings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"slotted",
|
|
@@ -71,6 +71,8 @@
|
|
|
71
71
|
"./carousel/tokens.json": "./src/carousel/carousel.tokens.json",
|
|
72
72
|
"./checkbox/checkbox.css": "./src/checkbox/checkbox.css",
|
|
73
73
|
"./checkbox/tokens.json": "./src/checkbox/checkbox.tokens.json",
|
|
74
|
+
"./clock/clock.css": "./src/clock/clock.css",
|
|
75
|
+
"./clock/tokens.json": "./src/clock/clock.tokens.json",
|
|
74
76
|
"./code-block/code-block.css": "./src/code-block/code-block.css",
|
|
75
77
|
"./code-block/tokens.json": "./src/code-block/code-block.tokens.json",
|
|
76
78
|
"./collapsible/collapsible.css": "./src/collapsible/collapsible.css",
|
|
@@ -185,6 +187,8 @@
|
|
|
185
187
|
"./page-header/tokens.json": "./src/page-header/page-header.tokens.json",
|
|
186
188
|
"./pagination/pagination.css": "./src/pagination/pagination.css",
|
|
187
189
|
"./pagination/tokens.json": "./src/pagination/pagination.tokens.json",
|
|
190
|
+
"./picker-panel/picker-panel.css": "./src/picker-panel/picker-panel.css",
|
|
191
|
+
"./picker-panel/tokens.json": "./src/picker-panel/picker-panel.tokens.json",
|
|
188
192
|
"./popover/popover.css": "./src/popover/popover.css",
|
|
189
193
|
"./popover/tokens.json": "./src/popover/popover.tokens.json",
|
|
190
194
|
"./progress-indicator/progress-indicator.css": "./src/progress-indicator/progress-indicator.css",
|
|
@@ -21,11 +21,10 @@
|
|
|
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:
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
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
29
|
[data-ui-aspect-ratio][data-part-root] {
|
|
31
30
|
/**
|
|
@@ -48,8 +47,10 @@
|
|
|
48
47
|
display: grid;
|
|
49
48
|
grid-template-columns: minmax(0, 1fr);
|
|
50
49
|
grid-template-rows: 1fr;
|
|
51
|
-
/*
|
|
52
|
-
|
|
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
|
|
|
@@ -110,19 +111,19 @@
|
|
|
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
|
-
* `
|
|
114
|
-
*
|
|
115
|
-
* the
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* replaced element has nothing to say about the frame's
|
|
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
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
129
|
[data-ui-aspect-ratio][data-part-root] > :is(img, video) {
|
package/src/badge/badge.css
CHANGED
|
@@ -395,6 +395,9 @@
|
|
|
395
395
|
display: inline-flex;
|
|
396
396
|
position: relative;
|
|
397
397
|
vertical-align: middle;
|
|
398
|
+
/* The corner is the host's: a flex or grid parent stretches an auto size. */
|
|
399
|
+
block-size: fit-content;
|
|
400
|
+
inline-size: fit-content;
|
|
398
401
|
}
|
|
399
402
|
|
|
400
403
|
[data-ui-badge][data-part-anchor]:dir(rtl) {
|