@seed-design/css 3.5.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/css",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -113,10 +113,15 @@
113
113
  position: absolute;
114
114
  inset: 0;
115
115
  z-index: -1;
116
- transition-property: background-color, inset-inline, border-radius;
116
+ transition-property: background-color, inset-inline-start, inset-inline-end, border-radius;
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);
@@ -131,6 +136,11 @@
131
136
  border-radius: var(--seed-dimension-x2_5);
132
137
  }
133
138
  }
139
+ @media (prefers-reduced-motion: reduce) {
140
+ .seed-accordion__trigger--variant_inline::before {
141
+ transition: none;
142
+ }
143
+ }
134
144
  .seed-accordion__item--variant_separated {
135
145
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-weak);
136
146
  border-radius: var(--seed-radius-r3);
@@ -145,6 +155,11 @@
145
155
  transition-duration: var(--seed-duration-color-transition);
146
156
  transition-timing-function: var(--seed-timing-function-easing);
147
157
  }
158
+ @media (hover: hover) and (pointer: fine) {
159
+ .seed-accordion__trigger--variant_separated::before {
160
+ transition: none;
161
+ }
162
+ }
148
163
  @media (hover: hover) and (pointer: fine) {
149
164
  .seed-accordion__trigger--variant_separated:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover])::before {
150
165
  background-color: var(--seed-color-bg-transparent-pressed);
@@ -127,7 +127,7 @@
127
127
  .seed-accordion__trigger--variant_inline:before {
128
128
  content: "";
129
129
  z-index: -1;
130
- transition-property: background-color, inset-inline, border-radius;
130
+ transition-property: background-color, inset-inline-start, inset-inline-end, border-radius;
131
131
  transition-duration: var(--seed-duration-color-transition);
132
132
  transition-timing-function: var(--seed-timing-function-easing);
133
133
  position: absolute;
@@ -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);
@@ -150,6 +154,12 @@
150
154
  }
151
155
  }
152
156
 
157
+ @media (prefers-reduced-motion: reduce) {
158
+ .seed-accordion__trigger--variant_inline:before {
159
+ transition: none;
160
+ }
161
+ }
162
+
153
163
  .seed-accordion__item--variant_separated {
154
164
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-weak);
155
165
  border-radius: var(--seed-radius-r3);
@@ -167,6 +177,10 @@
167
177
  }
168
178
 
169
179
  @media (hover: hover) and (pointer: fine) {
180
+ .seed-accordion__trigger--variant_separated:before {
181
+ transition: none;
182
+ }
183
+
170
184
  .seed-accordion__trigger--variant_separated:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]):before {
171
185
  background-color: var(--seed-color-bg-transparent-pressed);
172
186
  }
@@ -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: min(0.9 * 100%, 100% - var(--seed-safe-area-top));
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(.9 * 100%, 100% - var(--seed-safe-area-top));
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);
@@ -107,7 +107,7 @@
107
107
  position: absolute;
108
108
  inset: 0;
109
109
  z-index: -1;
110
- transition-property: background-color, inset-inline, border-radius;
110
+ transition-property: background-color, inset-inline-start, inset-inline-end, border-radius;
111
111
  transition-duration: var(--seed-duration-color-transition);
112
112
  transition-timing-function: var(--seed-timing-function-easing);
113
113
  }
@@ -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 +142,11 @@
139
142
  border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
140
143
  }
141
144
  }
145
+ @media (prefers-reduced-motion: reduce) {
146
+ .seed-list-item__content::before {
147
+ transition: none;
148
+ }
149
+ }
142
150
  .seed-list-item__title {
143
151
  flex-shrink: 0;
144
152
  font-size: var(--seed-font-size-t5);
@@ -115,7 +115,7 @@
115
115
  .seed-list-item__content:before {
116
116
  content: "";
117
117
  z-index: -1;
118
- transition-property: background-color, inset-inline, border-radius;
118
+ transition-property: background-color, inset-inline-start, inset-inline-end, border-radius;
119
119
  transition-duration: var(--seed-duration-color-transition);
120
120
  transition-timing-function: var(--seed-timing-function-easing);
121
121
  position: absolute;
@@ -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);
@@ -154,6 +158,12 @@
154
158
  }
155
159
  }
156
160
 
161
+ @media (prefers-reduced-motion: reduce) {
162
+ .seed-list-item__content:before {
163
+ transition: none;
164
+ }
165
+ }
166
+
157
167
  .seed-list-item__title {
158
168
  font-size: var(--seed-font-size-t5);
159
169
  line-height: var(--seed-line-height-t5);
@@ -21,10 +21,15 @@
21
21
  position: absolute;
22
22
  inset: 0;
23
23
  z-index: -1;
24
- transition-property: background-color, inset-inline, border-radius;
24
+ transition-property: background-color, inset-inline-start, inset-inline-end, border-radius;
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;
@@ -49,6 +54,11 @@
49
54
  border-radius: var(--seed-radius-r3);
50
55
  }
51
56
  }
57
+ @media (prefers-reduced-motion: reduce) {
58
+ .seed-menu-item__root::before {
59
+ transition: none;
60
+ }
61
+ }
52
62
  .seed-menu-item__root:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
53
63
  --seed-content-scale: var(--seed-feedback-scale);
54
64
  }
@@ -22,13 +22,19 @@
22
22
  .seed-menu-item__root:before {
23
23
  content: "";
24
24
  z-index: -1;
25
- transition-property: background-color, inset-inline, border-radius;
25
+ transition-property: background-color, inset-inline-start, inset-inline-end, border-radius;
26
26
  transition-duration: var(--seed-duration-color-transition);
27
27
  transition-timing-function: var(--seed-timing-function-easing);
28
28
  position: absolute;
29
29
  inset: 0;
30
30
  }
31
31
 
32
+ @media (hover: hover) and (pointer: fine) {
33
+ .seed-menu-item__root:before {
34
+ transition: none;
35
+ }
36
+ }
37
+
32
38
  .seed-menu-item__root:after {
33
39
  content: "";
34
40
  inset-block: 0;
@@ -56,6 +62,12 @@
56
62
  }
57
63
  }
58
64
 
65
+ @media (prefers-reduced-motion: reduce) {
66
+ .seed-menu-item__root:before {
67
+ transition: none;
68
+ }
69
+ }
70
+
59
71
  .seed-menu-item__root:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
60
72
  --seed-content-scale: var(--seed-feedback-scale);
61
73
  }
@@ -22,7 +22,12 @@
22
22
  inset: 0;
23
23
  z-index: -1;
24
24
  border-radius: var(--seed-radius-r3);
25
- transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), inset-inline var(--seed-duration-d3) var(--seed-timing-function-easing);
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
+ }
27
+ @media (hover: hover) and (pointer: fine) {
28
+ .seed-select-item__root::before {
29
+ transition: none;
30
+ }
26
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);
@@ -32,6 +37,11 @@
32
37
  background-color: var(--seed-color-bg-transparent-pressed);
33
38
  inset-inline: var(--seed-dimension-x2);
34
39
  }
40
+ @media (prefers-reduced-motion: reduce) {
41
+ .seed-select-item__root::before {
42
+ transition: none;
43
+ }
44
+ }
35
45
  .seed-select-item__root:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
36
46
  --seed-content-scale: var(--seed-feedback-scale);
37
47
  }
@@ -23,16 +23,28 @@
23
23
  content: "";
24
24
  z-index: -1;
25
25
  border-radius: var(--seed-radius-r3);
26
- transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), inset-inline var(--seed-duration-d3) var(--seed-timing-function-easing);
26
+ 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);
27
27
  position: absolute;
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);
34
40
  }
35
41
 
42
+ @media (prefers-reduced-motion: reduce) {
43
+ .seed-select-item__root:before {
44
+ transition: none;
45
+ }
46
+ }
47
+
36
48
  .seed-select-item__root:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
37
49
  --seed-content-scale: var(--seed-feedback-scale);
38
50
  }
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
@@ -11,6 +11,10 @@ declare interface TabsVariant {
11
11
  * @default "small"
12
12
  */
13
13
  size: "small" | "medium";
14
+ /**
15
+ * @default "layer"
16
+ */
17
+ tone: "layer" | "transparent";
14
18
  /**
15
19
  * @default false
16
20
  */
@@ -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
  }
@@ -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