@seed-design/css 3.5.1 → 3.6.0
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/all.css +51 -2
- package/all.layered.css +51 -2
- package/all.layered.min.css +1 -1
- package/all.min.css +1 -1
- package/package.json +1 -1
- package/recipes/accordion.css +10 -0
- package/recipes/accordion.layered.css +8 -0
- package/recipes/bottom-sheet.css +19 -1
- package/recipes/bottom-sheet.layered.css +23 -1
- package/recipes/list-item.css +3 -0
- package/recipes/list-item.layered.css +4 -0
- package/recipes/menu-item.css +5 -0
- package/recipes/menu-item.layered.css +6 -0
- package/recipes/select-item.css +5 -0
- package/recipes/select-item.layered.css +6 -0
- package/recipes/tabs.css +3 -1
- package/recipes/tabs.d.ts +4 -0
- package/recipes/tabs.layered.css +4 -1
- package/recipes/tabs.layered.mjs +5 -0
- package/recipes/tabs.mjs +5 -0
package/package.json
CHANGED
package/recipes/accordion.css
CHANGED
|
@@ -117,6 +117,11 @@
|
|
|
117
117
|
transition-duration: var(--seed-duration-color-transition);
|
|
118
118
|
transition-timing-function: var(--seed-timing-function-easing);
|
|
119
119
|
}
|
|
120
|
+
@media (hover: hover) and (pointer: fine) {
|
|
121
|
+
.seed-accordion__trigger--variant_inline::before {
|
|
122
|
+
transition: none;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
120
125
|
@media (hover: hover) and (pointer: fine) {
|
|
121
126
|
.seed-accordion__trigger--variant_inline:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover])::before {
|
|
122
127
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
@@ -150,6 +155,11 @@
|
|
|
150
155
|
transition-duration: var(--seed-duration-color-transition);
|
|
151
156
|
transition-timing-function: var(--seed-timing-function-easing);
|
|
152
157
|
}
|
|
158
|
+
@media (hover: hover) and (pointer: fine) {
|
|
159
|
+
.seed-accordion__trigger--variant_separated::before {
|
|
160
|
+
transition: none;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
153
163
|
@media (hover: hover) and (pointer: fine) {
|
|
154
164
|
.seed-accordion__trigger--variant_separated:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover])::before {
|
|
155
165
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
@@ -135,6 +135,10 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
@media (hover: hover) and (pointer: fine) {
|
|
138
|
+
.seed-accordion__trigger--variant_inline:before {
|
|
139
|
+
transition: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
138
142
|
.seed-accordion__trigger--variant_inline:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]):before {
|
|
139
143
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
140
144
|
inset-inline: var(--seed-dimension-x1_5);
|
|
@@ -173,6 +177,10 @@
|
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
@media (hover: hover) and (pointer: fine) {
|
|
180
|
+
.seed-accordion__trigger--variant_separated:before {
|
|
181
|
+
transition: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
176
184
|
.seed-accordion__trigger--variant_separated:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]):before {
|
|
177
185
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
178
186
|
}
|
package/recipes/bottom-sheet.css
CHANGED
|
@@ -37,7 +37,13 @@
|
|
|
37
37
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
38
38
|
background: var(--seed-color-bg-layer-floating);
|
|
39
39
|
max-width: 480px;
|
|
40
|
-
max-height:
|
|
40
|
+
--seed-box-max-height-base: calc(0.9 * 100%);
|
|
41
|
+
--seed-box-max-height-sm: var(--seed-box-max-height-base, initial);
|
|
42
|
+
--seed-box-max-height-md: var(--seed-box-max-height-sm, initial);
|
|
43
|
+
--seed-box-max-height-lg: var(--seed-box-max-height-md, initial);
|
|
44
|
+
--seed-box-max-height-xl: var(--seed-box-max-height-lg, initial);
|
|
45
|
+
--seed-box-max-height: var(--seed-box-max-height-base, initial);
|
|
46
|
+
max-height: min(var(--seed-box-max-height), 100% - var(--seed-safe-area-top));
|
|
41
47
|
border-top-left-radius: var(--seed-radius-r6);
|
|
42
48
|
border-top-right-radius: var(--seed-radius-r6);
|
|
43
49
|
padding-bottom: var(--seed-safe-area-bottom);
|
|
@@ -229,6 +235,9 @@
|
|
|
229
235
|
animation-timing-function: var(--seed-timing-function-enter-expressive);
|
|
230
236
|
}
|
|
231
237
|
@media (min-width: 480px) {
|
|
238
|
+
.seed-bottom-sheet__content {
|
|
239
|
+
--seed-box-max-height: var(--seed-box-max-height-sm, initial);
|
|
240
|
+
}
|
|
232
241
|
.seed-bottom-sheet__body {
|
|
233
242
|
--seed-box-padding-x: var(--seed-box-padding-x-sm, initial);
|
|
234
243
|
--seed-box-height: var(--seed-box-height-sm, initial);
|
|
@@ -237,6 +246,9 @@
|
|
|
237
246
|
}
|
|
238
247
|
}
|
|
239
248
|
@media (min-width: 768px) {
|
|
249
|
+
.seed-bottom-sheet__content {
|
|
250
|
+
--seed-box-max-height: var(--seed-box-max-height-md, initial);
|
|
251
|
+
}
|
|
240
252
|
.seed-bottom-sheet__body {
|
|
241
253
|
--seed-box-padding-x: var(--seed-box-padding-x-md, initial);
|
|
242
254
|
--seed-box-height: var(--seed-box-height-md, initial);
|
|
@@ -245,6 +257,9 @@
|
|
|
245
257
|
}
|
|
246
258
|
}
|
|
247
259
|
@media (min-width: 1280px) {
|
|
260
|
+
.seed-bottom-sheet__content {
|
|
261
|
+
--seed-box-max-height: var(--seed-box-max-height-lg, initial);
|
|
262
|
+
}
|
|
248
263
|
.seed-bottom-sheet__body {
|
|
249
264
|
--seed-box-padding-x: var(--seed-box-padding-x-lg, initial);
|
|
250
265
|
--seed-box-height: var(--seed-box-height-lg, initial);
|
|
@@ -253,6 +268,9 @@
|
|
|
253
268
|
}
|
|
254
269
|
}
|
|
255
270
|
@media (min-width: 1440px) {
|
|
271
|
+
.seed-bottom-sheet__content {
|
|
272
|
+
--seed-box-max-height: var(--seed-box-max-height-xl, initial);
|
|
273
|
+
}
|
|
256
274
|
.seed-bottom-sheet__body {
|
|
257
275
|
--seed-box-padding-x: var(--seed-box-padding-x-xl, initial);
|
|
258
276
|
--seed-box-height: var(--seed-box-height-xl, initial);
|
|
@@ -34,8 +34,14 @@
|
|
|
34
34
|
overflow-wrap: anywhere;
|
|
35
35
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
36
36
|
background: var(--seed-color-bg-layer-floating);
|
|
37
|
+
--seed-box-max-height-base: calc(.9 * 100%);
|
|
38
|
+
--seed-box-max-height-sm: var(--seed-box-max-height-base, initial);
|
|
39
|
+
--seed-box-max-height-md: var(--seed-box-max-height-sm, initial);
|
|
40
|
+
--seed-box-max-height-lg: var(--seed-box-max-height-md, initial);
|
|
41
|
+
--seed-box-max-height-xl: var(--seed-box-max-height-lg, initial);
|
|
42
|
+
--seed-box-max-height: var(--seed-box-max-height-base, initial);
|
|
37
43
|
max-width: 480px;
|
|
38
|
-
max-height: min(
|
|
44
|
+
max-height: min(var(--seed-box-max-height), 100% - var(--seed-safe-area-top));
|
|
39
45
|
border-top-left-radius: var(--seed-radius-r6);
|
|
40
46
|
border-top-right-radius: var(--seed-radius-r6);
|
|
41
47
|
padding-bottom: var(--seed-safe-area-bottom);
|
|
@@ -260,6 +266,10 @@
|
|
|
260
266
|
}
|
|
261
267
|
|
|
262
268
|
@media (min-width: 480px) {
|
|
269
|
+
.seed-bottom-sheet__content {
|
|
270
|
+
--seed-box-max-height: var(--seed-box-max-height-sm, initial);
|
|
271
|
+
}
|
|
272
|
+
|
|
263
273
|
.seed-bottom-sheet__body {
|
|
264
274
|
--seed-box-padding-x: var(--seed-box-padding-x-sm, initial);
|
|
265
275
|
--seed-box-height: var(--seed-box-height-sm, initial);
|
|
@@ -269,6 +279,10 @@
|
|
|
269
279
|
}
|
|
270
280
|
|
|
271
281
|
@media (min-width: 768px) {
|
|
282
|
+
.seed-bottom-sheet__content {
|
|
283
|
+
--seed-box-max-height: var(--seed-box-max-height-md, initial);
|
|
284
|
+
}
|
|
285
|
+
|
|
272
286
|
.seed-bottom-sheet__body {
|
|
273
287
|
--seed-box-padding-x: var(--seed-box-padding-x-md, initial);
|
|
274
288
|
--seed-box-height: var(--seed-box-height-md, initial);
|
|
@@ -278,6 +292,10 @@
|
|
|
278
292
|
}
|
|
279
293
|
|
|
280
294
|
@media (min-width: 1280px) {
|
|
295
|
+
.seed-bottom-sheet__content {
|
|
296
|
+
--seed-box-max-height: var(--seed-box-max-height-lg, initial);
|
|
297
|
+
}
|
|
298
|
+
|
|
281
299
|
.seed-bottom-sheet__body {
|
|
282
300
|
--seed-box-padding-x: var(--seed-box-padding-x-lg, initial);
|
|
283
301
|
--seed-box-height: var(--seed-box-height-lg, initial);
|
|
@@ -287,6 +305,10 @@
|
|
|
287
305
|
}
|
|
288
306
|
|
|
289
307
|
@media (min-width: 1440px) {
|
|
308
|
+
.seed-bottom-sheet__content {
|
|
309
|
+
--seed-box-max-height: var(--seed-box-max-height-xl, initial);
|
|
310
|
+
}
|
|
311
|
+
|
|
290
312
|
.seed-bottom-sheet__body {
|
|
291
313
|
--seed-box-padding-x: var(--seed-box-padding-x-xl, initial);
|
|
292
314
|
--seed-box-height: var(--seed-box-height-xl, initial);
|
package/recipes/list-item.css
CHANGED
|
@@ -126,6 +126,9 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
@media (hover: hover) and (pointer: fine) {
|
|
129
|
+
.seed-list-item__content::before {
|
|
130
|
+
transition: none;
|
|
131
|
+
}
|
|
129
132
|
.seed-list-item__content:not(:is(:disabled, [disabled], [data-disabled]))[data-hover]::before {
|
|
130
133
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
131
134
|
inset-inline: var(--seed-dimension-x1_5);
|
|
@@ -139,6 +139,10 @@
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
@media (hover: hover) and (pointer: fine) {
|
|
142
|
+
.seed-list-item__content:before {
|
|
143
|
+
transition: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
142
146
|
.seed-list-item__content:not(:is(:disabled, [disabled], [data-disabled]))[data-hover]:before {
|
|
143
147
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
144
148
|
inset-inline: var(--seed-dimension-x1_5);
|
package/recipes/menu-item.css
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
transition-duration: var(--seed-duration-color-transition);
|
|
26
26
|
transition-timing-function: var(--seed-timing-function-easing);
|
|
27
27
|
}
|
|
28
|
+
@media (hover: hover) and (pointer: fine) {
|
|
29
|
+
.seed-menu-item__root::before {
|
|
30
|
+
transition: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
28
33
|
.seed-menu-item__root::after {
|
|
29
34
|
content: "";
|
|
30
35
|
position: absolute;
|
package/recipes/select-item.css
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
border-radius: var(--seed-radius-r3);
|
|
25
25
|
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), inset-inline-start var(--seed-duration-d3) var(--seed-timing-function-easing), inset-inline-end var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
26
26
|
}
|
|
27
|
+
@media (hover: hover) and (pointer: fine) {
|
|
28
|
+
.seed-select-item__root::before {
|
|
29
|
+
transition: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
27
32
|
.seed-select-item__root:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active])::before {
|
|
28
33
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
29
34
|
inset-inline: var(--seed-dimension-x2);
|
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
inset: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
@media (hover: hover) and (pointer: fine) {
|
|
32
|
+
.seed-select-item__root:before {
|
|
33
|
+
transition: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
.seed-select-item__root:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]):before, .seed-select-item__root:not(:is(:disabled, [disabled], [data-disabled]))[data-highlighted]:before {
|
|
32
38
|
background-color: var(--seed-color-bg-transparent-pressed);
|
|
33
39
|
inset-inline: var(--seed-dimension-x2);
|
package/recipes/tabs.css
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
display: none;
|
|
19
19
|
}
|
|
20
20
|
.seed-tabs__list {
|
|
21
|
-
background: var(--seed-color-bg-layer-default);
|
|
22
21
|
box-shadow: inset 0 -1px var(--seed-color-stroke-neutral-muted);
|
|
23
22
|
}
|
|
24
23
|
.seed-tabs__carousel {
|
|
@@ -171,6 +170,9 @@
|
|
|
171
170
|
line-height: var(--seed-line-height-t5);
|
|
172
171
|
font-weight: var(--seed-font-weight-bold);
|
|
173
172
|
}
|
|
173
|
+
.seed-tabs__list--tone_layer {
|
|
174
|
+
background: var(--seed-color-bg-layer-default);
|
|
175
|
+
}
|
|
174
176
|
.seed-tabs__root--stickyList_true {
|
|
175
177
|
position: relative;
|
|
176
178
|
}
|
package/recipes/tabs.d.ts
CHANGED
package/recipes/tabs.layered.css
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.seed-tabs__list {
|
|
25
|
-
background: var(--seed-color-bg-layer-default);
|
|
26
25
|
box-shadow: inset 0 -1px var(--seed-color-stroke-neutral-muted);
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -200,6 +199,10 @@
|
|
|
200
199
|
font-weight: var(--seed-font-weight-bold);
|
|
201
200
|
}
|
|
202
201
|
|
|
202
|
+
.seed-tabs__list--tone_layer {
|
|
203
|
+
background: var(--seed-color-bg-layer-default);
|
|
204
|
+
}
|
|
205
|
+
|
|
203
206
|
.seed-tabs__root--stickyList_true {
|
|
204
207
|
position: relative;
|
|
205
208
|
}
|
package/recipes/tabs.layered.mjs
CHANGED
|
@@ -36,6 +36,7 @@ const defaultVariant = {
|
|
|
36
36
|
"triggerLayout": "fill",
|
|
37
37
|
"contentLayout": "hug",
|
|
38
38
|
"size": "small",
|
|
39
|
+
"tone": "layer",
|
|
39
40
|
"stickyList": false,
|
|
40
41
|
"extendSafeAreaX": false
|
|
41
42
|
};
|
|
@@ -64,6 +65,10 @@ export const tabsVariantMap = {
|
|
|
64
65
|
"small",
|
|
65
66
|
"medium"
|
|
66
67
|
],
|
|
68
|
+
"tone": [
|
|
69
|
+
"layer",
|
|
70
|
+
"transparent"
|
|
71
|
+
],
|
|
67
72
|
"stickyList": [
|
|
68
73
|
true,
|
|
69
74
|
false
|
package/recipes/tabs.mjs
CHANGED
|
@@ -36,6 +36,7 @@ const defaultVariant = {
|
|
|
36
36
|
"triggerLayout": "fill",
|
|
37
37
|
"contentLayout": "hug",
|
|
38
38
|
"size": "small",
|
|
39
|
+
"tone": "layer",
|
|
39
40
|
"stickyList": false,
|
|
40
41
|
"extendSafeAreaX": false
|
|
41
42
|
};
|
|
@@ -64,6 +65,10 @@ export const tabsVariantMap = {
|
|
|
64
65
|
"small",
|
|
65
66
|
"medium"
|
|
66
67
|
],
|
|
68
|
+
"tone": [
|
|
69
|
+
"layer",
|
|
70
|
+
"transparent"
|
|
71
|
+
],
|
|
67
72
|
"stickyList": [
|
|
68
73
|
true,
|
|
69
74
|
false
|