@seed-design/css 1.0.5 → 1.0.6-alpha-20251021104301
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 +13 -7
- package/all.min.css +1 -1
- package/package.json +1 -1
- package/recipes/avatar.css +6 -0
- package/recipes/switch-mark.css +6 -7
- package/recipes/switch.css +1 -0
- package/vars/component/switch-mark.d.ts +23 -7
- package/vars/component/switch-mark.mjs +23 -7
- package/vars/component/switch.d.ts +3 -1
- package/vars/component/switch.mjs +3 -1
package/package.json
CHANGED
package/recipes/avatar.css
CHANGED
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
30
30
|
mask-repeat: no-repeat;
|
|
31
31
|
mask-composite: subtract;
|
|
32
|
+
transform: translateZ(0);
|
|
33
|
+
will-change: transform;
|
|
32
34
|
}
|
|
33
35
|
.seed-avatar__image {
|
|
34
36
|
display: block;
|
|
@@ -46,6 +48,8 @@
|
|
|
46
48
|
mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
47
49
|
mask-repeat: no-repeat;
|
|
48
50
|
mask-composite: subtract;
|
|
51
|
+
transform: translateZ(0);
|
|
52
|
+
will-change: transform;
|
|
49
53
|
}
|
|
50
54
|
.seed-avatar__image:not([data-loading-state='loaded']) {
|
|
51
55
|
display: none;
|
|
@@ -69,6 +73,8 @@
|
|
|
69
73
|
mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
70
74
|
mask-repeat: no-repeat;
|
|
71
75
|
mask-composite: subtract;
|
|
76
|
+
transform: translateZ(0);
|
|
77
|
+
will-change: transform;
|
|
72
78
|
}
|
|
73
79
|
.seed-avatar__fallback[data-loading-state='loaded'] {
|
|
74
80
|
display: none;
|
package/recipes/switch-mark.css
CHANGED
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
border-radius: var(--seed-radius-full);
|
|
6
6
|
background: var(--seed-color-palette-gray-600);
|
|
7
7
|
margin: var(--switch-mark-margin-top, 0) 0;
|
|
8
|
-
transition: background-color
|
|
8
|
+
transition: background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms, opacity var(--seed-duration-d1) var(--seed-timing-function-easing);
|
|
9
9
|
}
|
|
10
10
|
.seed-switch-mark__root:is(:disabled, [disabled], [data-disabled]) {
|
|
11
11
|
opacity: 0.38;
|
|
12
12
|
}
|
|
13
13
|
.seed-switch-mark__thumb {
|
|
14
14
|
border-radius: var(--seed-radius-full);
|
|
15
|
-
transition: transform
|
|
15
|
+
transition: transform var(--seed-duration-d3) var(--seed-timing-function-easing), background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms;
|
|
16
|
+
transform: scale(0.8);
|
|
16
17
|
}
|
|
17
18
|
.seed-switch-mark__root--tone_neutral:is(:checked, [data-checked]) {
|
|
18
19
|
background: var(--seed-color-bg-neutral-inverted);
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
height: 12px;
|
|
43
44
|
}
|
|
44
45
|
.seed-switch-mark__thumb--size_16:is(:checked, [data-checked]) {
|
|
45
|
-
transform: translateX(calc(26px - 16px));
|
|
46
|
+
transform: scale(1) translateX(calc(26px - 16px));
|
|
46
47
|
}
|
|
47
48
|
.seed-switch-mark__root--size_24 {
|
|
48
49
|
min-inline-size: 38px;
|
|
@@ -52,10 +53,9 @@
|
|
|
52
53
|
.seed-switch-mark__thumb--size_24 {
|
|
53
54
|
width: 20px;
|
|
54
55
|
height: 20px;
|
|
55
|
-
box-shadow: 0px 3px 8px 0px #00000026, 0px 1px 3px 0px #0000000f;
|
|
56
56
|
}
|
|
57
57
|
.seed-switch-mark__thumb--size_24:is(:checked, [data-checked]) {
|
|
58
|
-
transform: translateX(calc(38px - 24px));
|
|
58
|
+
transform: scale(1) translateX(calc(38px - 24px));
|
|
59
59
|
}
|
|
60
60
|
.seed-switch-mark__root--size_32 {
|
|
61
61
|
min-inline-size: 52px;
|
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
.seed-switch-mark__thumb--size_32 {
|
|
66
66
|
width: 26px;
|
|
67
67
|
height: 26px;
|
|
68
|
-
box-shadow: 0px 3px 8px 0px #00000026, 0px 1px 3px 0px #0000000f;
|
|
69
68
|
}
|
|
70
69
|
.seed-switch-mark__thumb--size_32:is(:checked, [data-checked]) {
|
|
71
|
-
transform: translateX(calc(52px - 32px));
|
|
70
|
+
transform: scale(1) translateX(calc(52px - 32px));
|
|
72
71
|
}
|
package/recipes/switch.css
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
.seed-switch__label {
|
|
15
15
|
font-weight: var(--seed-font-weight-medium);
|
|
16
16
|
color: var(--seed-color-fg-neutral);
|
|
17
|
+
transition: opacity var(--seed-duration-d1) var(--seed-timing-function-easing);
|
|
17
18
|
}
|
|
18
19
|
.seed-switch__label:is(:disabled, [disabled], [data-disabled]) {
|
|
19
20
|
opacity: 0.58;
|
|
@@ -2,16 +2,34 @@ export declare const vars: {
|
|
|
2
2
|
"base": {
|
|
3
3
|
"enabled": {
|
|
4
4
|
"root": {
|
|
5
|
+
"cornerRadius": "var(--seed-radius-full)",
|
|
5
6
|
"color": "var(--seed-color-palette-gray-600)",
|
|
6
|
-
"
|
|
7
|
+
"colorDuration": "var(--seed-duration-d1)",
|
|
8
|
+
"colorTimingFunction": "var(--seed-timing-function-easing)",
|
|
9
|
+
"colorDelay": "20ms"
|
|
7
10
|
},
|
|
8
11
|
"thumb": {
|
|
9
|
-
"cornerRadius": "var(--seed-radius-full)"
|
|
12
|
+
"cornerRadius": "var(--seed-radius-full)",
|
|
13
|
+
"scale": "0.8",
|
|
14
|
+
"scaleDuration": "var(--seed-duration-d3)",
|
|
15
|
+
"scaleTimingFunction": "var(--seed-timing-function-easing)",
|
|
16
|
+
"translateDuration": "var(--seed-duration-d3)",
|
|
17
|
+
"translateTimingFunction": "var(--seed-timing-function-easing)",
|
|
18
|
+
"colorDuration": "var(--seed-duration-d1)",
|
|
19
|
+
"colorTimingFunction": "var(--seed-timing-function-easing)",
|
|
20
|
+
"colorDelay": "20ms"
|
|
10
21
|
}
|
|
11
22
|
},
|
|
12
23
|
"disabled": {
|
|
13
24
|
"root": {
|
|
14
|
-
"opacity": "0.38"
|
|
25
|
+
"opacity": "0.38",
|
|
26
|
+
"opacityDuration": "var(--seed-duration-d1)",
|
|
27
|
+
"opacityTimingFunction": "var(--seed-timing-function-easing)"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"selected": {
|
|
31
|
+
"thumb": {
|
|
32
|
+
"scale": "1"
|
|
15
33
|
}
|
|
16
34
|
}
|
|
17
35
|
},
|
|
@@ -59,8 +77,7 @@ export declare const vars: {
|
|
|
59
77
|
},
|
|
60
78
|
"thumb": {
|
|
61
79
|
"height": "26px",
|
|
62
|
-
"width": "26px"
|
|
63
|
-
"shadow": "0px 3px 8px 0px #00000026, 0px 1px 3px 0px #0000000f"
|
|
80
|
+
"width": "26px"
|
|
64
81
|
}
|
|
65
82
|
}
|
|
66
83
|
},
|
|
@@ -74,8 +91,7 @@ export declare const vars: {
|
|
|
74
91
|
},
|
|
75
92
|
"thumb": {
|
|
76
93
|
"height": "20px",
|
|
77
|
-
"width": "20px"
|
|
78
|
-
"shadow": "0px 3px 8px 0px #00000026, 0px 1px 3px 0px #0000000f"
|
|
94
|
+
"width": "20px"
|
|
79
95
|
}
|
|
80
96
|
}
|
|
81
97
|
},
|
|
@@ -2,16 +2,34 @@ export const vars = {
|
|
|
2
2
|
"base": {
|
|
3
3
|
"enabled": {
|
|
4
4
|
"root": {
|
|
5
|
+
"cornerRadius": "var(--seed-radius-full)",
|
|
5
6
|
"color": "var(--seed-color-palette-gray-600)",
|
|
6
|
-
"
|
|
7
|
+
"colorDuration": "var(--seed-duration-d1)",
|
|
8
|
+
"colorTimingFunction": "var(--seed-timing-function-easing)",
|
|
9
|
+
"colorDelay": "20ms"
|
|
7
10
|
},
|
|
8
11
|
"thumb": {
|
|
9
|
-
"cornerRadius": "var(--seed-radius-full)"
|
|
12
|
+
"cornerRadius": "var(--seed-radius-full)",
|
|
13
|
+
"scale": "0.8",
|
|
14
|
+
"scaleDuration": "var(--seed-duration-d3)",
|
|
15
|
+
"scaleTimingFunction": "var(--seed-timing-function-easing)",
|
|
16
|
+
"translateDuration": "var(--seed-duration-d3)",
|
|
17
|
+
"translateTimingFunction": "var(--seed-timing-function-easing)",
|
|
18
|
+
"colorDuration": "var(--seed-duration-d1)",
|
|
19
|
+
"colorTimingFunction": "var(--seed-timing-function-easing)",
|
|
20
|
+
"colorDelay": "20ms"
|
|
10
21
|
}
|
|
11
22
|
},
|
|
12
23
|
"disabled": {
|
|
13
24
|
"root": {
|
|
14
|
-
"opacity": "0.38"
|
|
25
|
+
"opacity": "0.38",
|
|
26
|
+
"opacityDuration": "var(--seed-duration-d1)",
|
|
27
|
+
"opacityTimingFunction": "var(--seed-timing-function-easing)"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"selected": {
|
|
31
|
+
"thumb": {
|
|
32
|
+
"scale": "1"
|
|
15
33
|
}
|
|
16
34
|
}
|
|
17
35
|
},
|
|
@@ -59,8 +77,7 @@ export const vars = {
|
|
|
59
77
|
},
|
|
60
78
|
"thumb": {
|
|
61
79
|
"height": "26px",
|
|
62
|
-
"width": "26px"
|
|
63
|
-
"shadow": "0px 3px 8px 0px #00000026, 0px 1px 3px 0px #0000000f"
|
|
80
|
+
"width": "26px"
|
|
64
81
|
}
|
|
65
82
|
}
|
|
66
83
|
},
|
|
@@ -74,8 +91,7 @@ export const vars = {
|
|
|
74
91
|
},
|
|
75
92
|
"thumb": {
|
|
76
93
|
"height": "20px",
|
|
77
|
-
"width": "20px"
|
|
78
|
-
"shadow": "0px 3px 8px 0px #00000026, 0px 1px 3px 0px #0000000f"
|
|
94
|
+
"width": "20px"
|
|
79
95
|
}
|
|
80
96
|
}
|
|
81
97
|
},
|