@seed-design/css 0.0.4 → 0.0.6
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/README.md +2 -0
- package/all.css +229 -214
- package/all.min.css +1 -1
- package/package.json +3 -2
- package/recipes/action-button.css +42 -40
- package/recipes/action-button.d.ts +1 -3
- package/recipes/action-button.mjs +4 -14
- package/recipes/action-chip.css +12 -10
- package/recipes/action-chip.d.ts +1 -3
- package/recipes/action-chip.mjs +4 -14
- package/recipes/action-sheet-item.css +5 -5
- package/recipes/action-sheet-item.d.ts +1 -3
- package/recipes/action-sheet-item.mjs +4 -14
- package/recipes/app-bar.css +1 -0
- package/recipes/badge.css +26 -21
- package/recipes/badge.d.ts +1 -3
- package/recipes/badge.mjs +4 -14
- package/recipes/control-chip.css +14 -12
- package/recipes/control-chip.d.ts +1 -3
- package/recipes/control-chip.mjs +4 -14
- package/recipes/extended-action-sheet-item.css +6 -6
- package/recipes/extended-action-sheet-item.d.ts +1 -3
- package/recipes/extended-action-sheet-item.mjs +4 -14
- package/recipes/extended-fab.css +12 -12
- package/recipes/extended-fab.d.ts +1 -3
- package/recipes/extended-fab.mjs +4 -14
- package/recipes/fab.css +5 -5
- package/recipes/fab.d.ts +1 -3
- package/recipes/fab.mjs +4 -14
- package/recipes/help-bubble.css +2 -2
- package/recipes/inline-banner.css +0 -1
- package/recipes/link-content.css +9 -6
- package/recipes/link-content.d.ts +1 -3
- package/recipes/link-content.mjs +4 -14
- package/recipes/manner-temp-badge.css +7 -7
- package/recipes/manner-temp-badge.d.ts +1 -3
- package/recipes/manner-temp-badge.mjs +4 -14
- package/recipes/reaction-button.css +17 -17
- package/recipes/reaction-button.d.ts +1 -3
- package/recipes/reaction-button.mjs +4 -14
- package/recipes/select-box-group.css +1 -1
- package/recipes/select-box-group.d.ts +1 -3
- package/recipes/select-box-group.mjs +4 -14
- package/recipes/skeleton.css +8 -8
- package/recipes/skeleton.d.ts +1 -3
- package/recipes/skeleton.mjs +4 -14
- package/recipes/snackbar-region.css +1 -1
- package/recipes/snackbar-region.d.ts +1 -3
- package/recipes/snackbar-region.mjs +4 -14
- package/recipes/text.css +46 -26
- package/recipes/text.d.ts +2 -4
- package/recipes/text.mjs +8 -14
- package/recipes/toggle-button.css +24 -24
- package/recipes/toggle-button.d.ts +1 -3
- package/recipes/toggle-button.mjs +4 -14
- package/vars/component/callout.d.ts +2 -5
- package/vars/component/callout.mjs +2 -5
- package/vars/component/help-bubble.d.ts +4 -1
- package/vars/component/help-bubble.mjs +4 -1
- package/vars/component/index.d.ts +2 -0
- package/vars/component/index.mjs +2 -0
- package/vars/component/inline-banner.d.ts +1 -1
- package/vars/component/inline-banner.mjs +1 -1
- package/vars/component/manner-temp.d.ts +59 -0
- package/vars/component/manner-temp.mjs +59 -0
- package/vars/component/text-button.d.ts +24 -0
- package/vars/component/text-button.mjs +24 -0
- package/vars/component/toggle-button.d.ts +4 -2
- package/vars/component/toggle-button.mjs +4 -2
- package/vars/component/typography.d.ts +36 -0
- package/vars/component/typography.mjs +36 -0
- package/recipes/visually-hidden.css +0 -11
- package/recipes/visually-hidden.d.ts +0 -21
- package/recipes/visually-hidden.mjs +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/css",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"*.css"
|
|
56
56
|
],
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@seed-design/qvism-preset": "0.0.0"
|
|
58
|
+
"@seed-design/qvism-preset": "0.0.0",
|
|
59
|
+
"@seed-design/qvism-cli": "0.0.0"
|
|
59
60
|
},
|
|
60
61
|
"publishConfig": {
|
|
61
62
|
"access": "public"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-action-
|
|
1
|
+
.seed-action-button {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
flex-shrink: 0;
|
|
13
13
|
font-family: inherit;
|
|
14
14
|
}
|
|
15
|
-
.seed-action-
|
|
15
|
+
.seed-action-button:is(:focus, [data-focus]) {
|
|
16
16
|
outline: none;
|
|
17
17
|
}
|
|
18
|
-
.seed-action-
|
|
18
|
+
.seed-action-button:is(:disabled, [disabled], [data-disabled]) {
|
|
19
19
|
cursor: not-allowed;
|
|
20
20
|
}
|
|
21
|
-
.seed-action-
|
|
21
|
+
.seed-action-button {
|
|
22
22
|
transition: background-color var(--seed-duration-d4) var(--seed-timing-function-easing);
|
|
23
23
|
font-weight: var(--seed-font-weight-bold);
|
|
24
24
|
}
|
|
25
|
-
.seed-action-
|
|
25
|
+
.seed-action-button--variant_brandSolid {
|
|
26
26
|
background: var(--seed-color-bg-brand-solid);
|
|
27
27
|
color: var(--seed-color-palette-static-white);
|
|
28
28
|
--seed-prefix-icon-color: var(--seed-color-palette-static-white);
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
--track-color: var(--seed-color-palette-static-white-alpha-200);
|
|
32
32
|
--range-color: var(--seed-color-palette-static-white);
|
|
33
33
|
}
|
|
34
|
-
.seed-action-
|
|
34
|
+
.seed-action-button--variant_brandSolid:is(:active, [data-active]) {
|
|
35
35
|
background: var(--seed-color-bg-brand-solid-pressed);
|
|
36
36
|
}
|
|
37
|
-
.seed-action-
|
|
37
|
+
.seed-action-button--variant_brandSolid:is(:disabled, [disabled], [data-disabled]) {
|
|
38
38
|
background: var(--seed-color-bg-disabled);
|
|
39
39
|
color: var(--seed-color-fg-disabled);
|
|
40
40
|
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
41
41
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
42
42
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
43
43
|
}
|
|
44
|
-
.seed-action-
|
|
44
|
+
.seed-action-button--variant_brandSolid[data-loading] {
|
|
45
45
|
background: var(--seed-color-bg-brand-solid-pressed);
|
|
46
46
|
}
|
|
47
|
-
.seed-action-
|
|
47
|
+
.seed-action-button--variant_neutralSolid {
|
|
48
48
|
background: var(--seed-color-bg-neutral-inverted);
|
|
49
49
|
color: var(--seed-color-fg-neutral-inverted);
|
|
50
50
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral-inverted);
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
--track-color: var(--seed-color-palette-static-white-alpha-200);
|
|
54
54
|
--range-color: var(--seed-color-palette-static-white);
|
|
55
55
|
}
|
|
56
|
-
.seed-action-
|
|
56
|
+
.seed-action-button--variant_neutralSolid:is(:active, [data-active]) {
|
|
57
57
|
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
58
58
|
}
|
|
59
|
-
.seed-action-
|
|
59
|
+
.seed-action-button--variant_neutralSolid:is(:disabled, [disabled], [data-disabled]) {
|
|
60
60
|
background: var(--seed-color-bg-disabled);
|
|
61
61
|
color: var(--seed-color-fg-disabled);
|
|
62
62
|
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
63
63
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
64
64
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
65
65
|
}
|
|
66
|
-
.seed-action-
|
|
66
|
+
.seed-action-button--variant_neutralSolid[data-loading] {
|
|
67
67
|
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
68
68
|
}
|
|
69
|
-
.seed-action-
|
|
69
|
+
.seed-action-button--variant_neutralWeak {
|
|
70
70
|
background: var(--seed-color-bg-neutral-weak);
|
|
71
71
|
color: var(--seed-color-fg-neutral);
|
|
72
72
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
@@ -75,20 +75,20 @@
|
|
|
75
75
|
--track-color: var(--seed-color-palette-gray-500);
|
|
76
76
|
--range-color: var(--seed-color-fg-neutral);
|
|
77
77
|
}
|
|
78
|
-
.seed-action-
|
|
78
|
+
.seed-action-button--variant_neutralWeak:is(:active, [data-active]) {
|
|
79
79
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
80
80
|
}
|
|
81
|
-
.seed-action-
|
|
81
|
+
.seed-action-button--variant_neutralWeak:is(:disabled, [disabled], [data-disabled]) {
|
|
82
82
|
background: var(--seed-color-bg-disabled);
|
|
83
83
|
color: var(--seed-color-fg-disabled);
|
|
84
84
|
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
85
85
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
86
86
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
87
87
|
}
|
|
88
|
-
.seed-action-
|
|
88
|
+
.seed-action-button--variant_neutralWeak[data-loading] {
|
|
89
89
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
90
90
|
}
|
|
91
|
-
.seed-action-
|
|
91
|
+
.seed-action-button--variant_criticalSolid {
|
|
92
92
|
background: var(--seed-color-bg-critical-solid);
|
|
93
93
|
color: var(--seed-color-palette-static-white);
|
|
94
94
|
--seed-prefix-icon-color: var(--seed-color-palette-static-white);
|
|
@@ -97,20 +97,20 @@
|
|
|
97
97
|
--track-color: var(--seed-color-palette-static-white-alpha-200);
|
|
98
98
|
--range-color: var(--seed-color-palette-static-white);
|
|
99
99
|
}
|
|
100
|
-
.seed-action-
|
|
100
|
+
.seed-action-button--variant_criticalSolid:is(:active, [data-active]) {
|
|
101
101
|
background: var(--seed-color-bg-critical-solid-pressed);
|
|
102
102
|
}
|
|
103
|
-
.seed-action-
|
|
103
|
+
.seed-action-button--variant_criticalSolid:is(:disabled, [disabled], [data-disabled]) {
|
|
104
104
|
background: var(--seed-color-bg-disabled);
|
|
105
105
|
color: var(--seed-color-fg-disabled);
|
|
106
106
|
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
107
107
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
108
108
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
109
109
|
}
|
|
110
|
-
.seed-action-
|
|
110
|
+
.seed-action-button--variant_criticalSolid[data-loading] {
|
|
111
111
|
background: var(--seed-color-bg-critical-solid-pressed);
|
|
112
112
|
}
|
|
113
|
-
.seed-action-
|
|
113
|
+
.seed-action-button--variant_brandOutline {
|
|
114
114
|
border-style: solid;
|
|
115
115
|
background: var(--seed-color-bg-layer-default);
|
|
116
116
|
border-width: 1px;
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
--track-color: var(--seed-color-palette-carrot-200);
|
|
123
123
|
--range-color: var(--seed-color-bg-brand-solid);
|
|
124
124
|
}
|
|
125
|
-
.seed-action-
|
|
125
|
+
.seed-action-button--variant_brandOutline:is(:active, [data-active]) {
|
|
126
126
|
background: var(--seed-color-bg-layer-default-pressed);
|
|
127
127
|
}
|
|
128
|
-
.seed-action-
|
|
128
|
+
.seed-action-button--variant_brandOutline:is(:disabled, [disabled], [data-disabled]) {
|
|
129
129
|
background: var(--seed-color-bg-layer-default);
|
|
130
130
|
border-color: var(--seed-color-stroke-neutral);
|
|
131
131
|
color: var(--seed-color-fg-disabled);
|
|
@@ -133,10 +133,10 @@
|
|
|
133
133
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
134
134
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
135
135
|
}
|
|
136
|
-
.seed-action-
|
|
136
|
+
.seed-action-button--variant_brandOutline[data-loading] {
|
|
137
137
|
background: var(--seed-color-bg-layer-default);
|
|
138
138
|
}
|
|
139
|
-
.seed-action-
|
|
139
|
+
.seed-action-button--variant_neutralOutline {
|
|
140
140
|
border-style: solid;
|
|
141
141
|
background: var(--seed-color-bg-layer-default);
|
|
142
142
|
border-width: 1px;
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
--track-color: var(--seed-color-palette-gray-500);
|
|
149
149
|
--range-color: var(--seed-color-fg-neutral);
|
|
150
150
|
}
|
|
151
|
-
.seed-action-
|
|
151
|
+
.seed-action-button--variant_neutralOutline:is(:active, [data-active]) {
|
|
152
152
|
background: var(--seed-color-bg-layer-default-pressed);
|
|
153
153
|
}
|
|
154
|
-
.seed-action-
|
|
154
|
+
.seed-action-button--variant_neutralOutline:is(:disabled, [disabled], [data-disabled]) {
|
|
155
155
|
background: var(--seed-color-bg-layer-default);
|
|
156
156
|
border-color: var(--seed-color-stroke-neutral);
|
|
157
157
|
color: var(--seed-color-fg-disabled);
|
|
@@ -159,10 +159,10 @@
|
|
|
159
159
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
160
160
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
161
161
|
}
|
|
162
|
-
.seed-action-
|
|
162
|
+
.seed-action-button--variant_neutralOutline[data-loading] {
|
|
163
163
|
background: var(--seed-color-bg-layer-default);
|
|
164
164
|
}
|
|
165
|
-
.seed-action-
|
|
165
|
+
.seed-action-button--size_xsmall {
|
|
166
166
|
height: var(--seed-dimension-x8);
|
|
167
167
|
border-radius: var(--seed-radius-full);
|
|
168
168
|
--size: 14px;
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
172
172
|
--seed-icon-size: var(--seed-dimension-x3_5);
|
|
173
173
|
}
|
|
174
|
-
.seed-action-
|
|
174
|
+
.seed-action-button--size_small {
|
|
175
175
|
height: var(--seed-dimension-x9);
|
|
176
176
|
border-radius: var(--seed-radius-r2);
|
|
177
177
|
--size: 14px;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
181
181
|
--seed-icon-size: var(--seed-dimension-x4);
|
|
182
182
|
}
|
|
183
|
-
.seed-action-
|
|
183
|
+
.seed-action-button--size_medium {
|
|
184
184
|
height: var(--seed-dimension-x10);
|
|
185
185
|
border-radius: var(--seed-radius-r2);
|
|
186
186
|
--size: 16px;
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
--seed-suffix-icon-size: var(--seed-dimension-x4);
|
|
190
190
|
--seed-icon-size: 18px;
|
|
191
191
|
}
|
|
192
|
-
.seed-action-
|
|
192
|
+
.seed-action-button--size_large {
|
|
193
193
|
height: var(--seed-dimension-x13);
|
|
194
194
|
border-radius: var(--seed-radius-r3);
|
|
195
195
|
--size: 18px;
|
|
@@ -198,46 +198,48 @@
|
|
|
198
198
|
--seed-suffix-icon-size: 22px;
|
|
199
199
|
--seed-icon-size: 22px;
|
|
200
200
|
}
|
|
201
|
-
.seed-action-
|
|
201
|
+
.seed-action-button--layout_withText {}
|
|
202
|
+
.seed-action-button--layout_iconOnly {}
|
|
203
|
+
.seed-action-button--size_xsmall-layout_withText {
|
|
202
204
|
gap: var(--seed-dimension-x1);
|
|
203
205
|
padding-inline: var(--seed-dimension-x3_5);
|
|
204
206
|
padding-block: var(--seed-dimension-x1_5);
|
|
205
207
|
font-size: var(--seed-font-size-t4);
|
|
206
208
|
}
|
|
207
|
-
.seed-action-
|
|
209
|
+
.seed-action-button--size_xsmall-layout_iconOnly {
|
|
208
210
|
min-width: var(--seed-dimension-x8);
|
|
209
211
|
padding-inline: var(--seed-dimension-x1_5);
|
|
210
212
|
padding-block: var(--seed-dimension-x1_5);
|
|
211
213
|
}
|
|
212
|
-
.seed-action-
|
|
214
|
+
.seed-action-button--size_small-layout_withText {
|
|
213
215
|
gap: var(--seed-dimension-x1);
|
|
214
216
|
padding-inline: var(--seed-dimension-x3_5);
|
|
215
217
|
padding-block: var(--seed-dimension-x2);
|
|
216
218
|
font-size: var(--seed-font-size-t4);
|
|
217
219
|
}
|
|
218
|
-
.seed-action-
|
|
220
|
+
.seed-action-button--size_small-layout_iconOnly {
|
|
219
221
|
min-width: var(--seed-dimension-x9);
|
|
220
222
|
padding-inline: var(--seed-dimension-x2);
|
|
221
223
|
padding-block: var(--seed-dimension-x2);
|
|
222
224
|
}
|
|
223
|
-
.seed-action-
|
|
225
|
+
.seed-action-button--size_medium-layout_withText {
|
|
224
226
|
gap: var(--seed-dimension-x1);
|
|
225
227
|
padding-inline: var(--seed-dimension-x4);
|
|
226
228
|
padding-block: var(--seed-dimension-x2_5);
|
|
227
229
|
font-size: var(--seed-font-size-t4);
|
|
228
230
|
}
|
|
229
|
-
.seed-action-
|
|
231
|
+
.seed-action-button--size_medium-layout_iconOnly {
|
|
230
232
|
min-width: var(--seed-dimension-x10);
|
|
231
233
|
padding-inline: var(--seed-dimension-x2_5);
|
|
232
234
|
padding-block: var(--seed-dimension-x2_5);
|
|
233
235
|
}
|
|
234
|
-
.seed-action-
|
|
236
|
+
.seed-action-button--size_large-layout_withText {
|
|
235
237
|
gap: var(--seed-dimension-x2);
|
|
236
238
|
padding-inline: var(--seed-dimension-x5);
|
|
237
239
|
padding-block: var(--seed-dimension-x3_5);
|
|
238
240
|
font-size: var(--seed-font-size-t6);
|
|
239
241
|
}
|
|
240
|
-
.seed-action-
|
|
242
|
+
.seed-action-button--size_large-layout_iconOnly {
|
|
241
243
|
min-width: var(--seed-dimension-x13);
|
|
242
244
|
padding-inline: var(--seed-dimension-x3_5);
|
|
243
245
|
padding-block: var(--seed-dimension-x3_5);
|
|
@@ -19,13 +19,11 @@ declare type ActionButtonVariantMap = {
|
|
|
19
19
|
|
|
20
20
|
export declare type ActionButtonVariantProps = Partial<ActionButtonVariant>;
|
|
21
21
|
|
|
22
|
-
export declare type ActionButtonSlotName = "root";
|
|
23
|
-
|
|
24
22
|
export declare const actionButtonVariantMap: ActionButtonVariantMap;
|
|
25
23
|
|
|
26
24
|
export declare const actionButton: ((
|
|
27
25
|
props?: ActionButtonVariantProps,
|
|
28
|
-
) =>
|
|
26
|
+
) => string) & {
|
|
29
27
|
splitVariantProps: <T extends ActionButtonVariantProps>(
|
|
30
28
|
props: T,
|
|
31
29
|
) => [ActionButtonVariantProps, Omit<T, keyof ActionButtonVariantProps>];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const actionButtonSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-action-button__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"variant": "brandSolid",
|
|
12
5
|
"size": "medium",
|
|
@@ -72,13 +65,10 @@ export const actionButtonVariantMap = {
|
|
|
72
65
|
export const actionButtonVariantKeys = Object.keys(actionButtonVariantMap);
|
|
73
66
|
|
|
74
67
|
export function actionButton(props) {
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
80
|
-
];
|
|
81
|
-
}),
|
|
68
|
+
return createClassName(
|
|
69
|
+
"seed-action-button",
|
|
70
|
+
mergeVariants(defaultVariant, props),
|
|
71
|
+
compoundVariants,
|
|
82
72
|
);
|
|
83
73
|
}
|
|
84
74
|
|
package/recipes/action-chip.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-action-
|
|
1
|
+
.seed-action-chip {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
--seed-count-font-weight: var(--seed-font-weight-medium);
|
|
24
24
|
--seed-count-color: var(--seed-color-fg-neutral-muted);
|
|
25
25
|
}
|
|
26
|
-
.seed-action-
|
|
26
|
+
.seed-action-chip:is(:active, [data-active]) {
|
|
27
27
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
28
28
|
}
|
|
29
|
-
.seed-action-
|
|
29
|
+
.seed-action-chip:is(:focus, [data-focus]) {
|
|
30
30
|
outline: none;
|
|
31
31
|
}
|
|
32
|
-
.seed-action-
|
|
32
|
+
.seed-action-chip:is(:disabled, [disabled], [data-disabled]) {
|
|
33
33
|
background: var(--seed-color-bg-disabled);
|
|
34
34
|
color: var(--seed-color-fg-disabled);
|
|
35
35
|
cursor: not-allowed;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
38
38
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
39
39
|
}
|
|
40
|
-
.seed-action-
|
|
40
|
+
.seed-action-chip--size_medium {
|
|
41
41
|
min-height: var(--seed-dimension-x9);
|
|
42
42
|
padding-block: var(--seed-dimension-x2);
|
|
43
43
|
gap: var(--seed-dimension-x1);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
48
48
|
--seed-icon-size: var(--seed-dimension-x4);
|
|
49
49
|
}
|
|
50
|
-
.seed-action-
|
|
50
|
+
.seed-action-chip--size_small {
|
|
51
51
|
min-height: var(--seed-dimension-x8);
|
|
52
52
|
padding-block: var(--seed-dimension-x1_5);
|
|
53
53
|
gap: var(--seed-dimension-x1);
|
|
@@ -57,15 +57,17 @@
|
|
|
57
57
|
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
58
58
|
--seed-icon-size: var(--seed-dimension-x4);
|
|
59
59
|
}
|
|
60
|
-
.seed-action-
|
|
60
|
+
.seed-action-chip--layout_withText {}
|
|
61
|
+
.seed-action-chip--layout_iconOnly {}
|
|
62
|
+
.seed-action-chip--size_medium-layout_withText {
|
|
61
63
|
padding-inline: var(--seed-dimension-x3_5);
|
|
62
64
|
}
|
|
63
|
-
.seed-action-
|
|
65
|
+
.seed-action-chip--size_medium-layout_iconOnly {
|
|
64
66
|
min-width: var(--seed-dimension-x9);
|
|
65
67
|
}
|
|
66
|
-
.seed-action-
|
|
68
|
+
.seed-action-chip--size_small-layout_withText {
|
|
67
69
|
padding-inline: var(--seed-dimension-x3);
|
|
68
70
|
}
|
|
69
|
-
.seed-action-
|
|
71
|
+
.seed-action-chip--size_small-layout_iconOnly {
|
|
70
72
|
min-width: var(--seed-dimension-x8);
|
|
71
73
|
}
|
package/recipes/action-chip.d.ts
CHANGED
|
@@ -15,13 +15,11 @@ declare type ActionChipVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
export declare type ActionChipVariantProps = Partial<ActionChipVariant>;
|
|
17
17
|
|
|
18
|
-
export declare type ActionChipSlotName = "root";
|
|
19
|
-
|
|
20
18
|
export declare const actionChipVariantMap: ActionChipVariantMap;
|
|
21
19
|
|
|
22
20
|
export declare const actionChip: ((
|
|
23
21
|
props?: ActionChipVariantProps,
|
|
24
|
-
) =>
|
|
22
|
+
) => string) & {
|
|
25
23
|
splitVariantProps: <T extends ActionChipVariantProps>(
|
|
26
24
|
props: T,
|
|
27
25
|
) => [ActionChipVariantProps, Omit<T, keyof ActionChipVariantProps>];
|
package/recipes/action-chip.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const actionChipSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-action-chip__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"size": "medium",
|
|
12
5
|
"layout": "withText"
|
|
@@ -45,13 +38,10 @@ export const actionChipVariantMap = {
|
|
|
45
38
|
export const actionChipVariantKeys = Object.keys(actionChipVariantMap);
|
|
46
39
|
|
|
47
40
|
export function actionChip(props) {
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
53
|
-
];
|
|
54
|
-
}),
|
|
41
|
+
return createClassName(
|
|
42
|
+
"seed-action-chip",
|
|
43
|
+
mergeVariants(defaultVariant, props),
|
|
44
|
+
compoundVariants,
|
|
55
45
|
);
|
|
56
46
|
}
|
|
57
47
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-action-sheet-
|
|
1
|
+
.seed-action-sheet-item {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
line-height: var(--seed-line-height-t5);
|
|
12
12
|
font-weight: var(--seed-font-weight-regular);
|
|
13
13
|
}
|
|
14
|
-
.seed-action-sheet-
|
|
14
|
+
.seed-action-sheet-item:is(:active, [data-active]) {
|
|
15
15
|
background-color: var(--seed-color-bg-layer-floating-pressed);
|
|
16
16
|
}
|
|
17
|
-
.seed-action-sheet-
|
|
17
|
+
.seed-action-sheet-item:after {
|
|
18
18
|
content: '';
|
|
19
19
|
display: block;
|
|
20
20
|
position: absolute;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
height: 1px;
|
|
25
25
|
background: var(--seed-color-stroke-neutral);
|
|
26
26
|
}
|
|
27
|
-
.seed-action-sheet-
|
|
27
|
+
.seed-action-sheet-item--tone_neutral {
|
|
28
28
|
color: var(--seed-color-fg-neutral);
|
|
29
29
|
}
|
|
30
|
-
.seed-action-sheet-
|
|
30
|
+
.seed-action-sheet-item--tone_critical {
|
|
31
31
|
color: var(--seed-color-fg-critical);
|
|
32
32
|
}
|
|
@@ -11,13 +11,11 @@ declare type ActionSheetItemVariantMap = {
|
|
|
11
11
|
|
|
12
12
|
export declare type ActionSheetItemVariantProps = Partial<ActionSheetItemVariant>;
|
|
13
13
|
|
|
14
|
-
export declare type ActionSheetItemSlotName = "root";
|
|
15
|
-
|
|
16
14
|
export declare const actionSheetItemVariantMap: ActionSheetItemVariantMap;
|
|
17
15
|
|
|
18
16
|
export declare const actionSheetItem: ((
|
|
19
17
|
props?: ActionSheetItemVariantProps,
|
|
20
|
-
) =>
|
|
18
|
+
) => string) & {
|
|
21
19
|
splitVariantProps: <T extends ActionSheetItemVariantProps>(
|
|
22
20
|
props: T,
|
|
23
21
|
) => [ActionSheetItemVariantProps, Omit<T, keyof ActionSheetItemVariantProps>];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const actionSheetItemSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-action-sheet-item__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"tone": "neutral"
|
|
12
5
|
};
|
|
@@ -23,13 +16,10 @@ export const actionSheetItemVariantMap = {
|
|
|
23
16
|
export const actionSheetItemVariantKeys = Object.keys(actionSheetItemVariantMap);
|
|
24
17
|
|
|
25
18
|
export function actionSheetItem(props) {
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
31
|
-
];
|
|
32
|
-
}),
|
|
19
|
+
return createClassName(
|
|
20
|
+
"seed-action-sheet-item",
|
|
21
|
+
mergeVariants(defaultVariant, props),
|
|
22
|
+
compoundVariants,
|
|
33
23
|
);
|
|
34
24
|
}
|
|
35
25
|
|
package/recipes/app-bar.css
CHANGED
package/recipes/badge.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-
|
|
1
|
+
.seed-badge {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
-moz-osx-font-smoothing: grayscale;
|
|
10
10
|
text-decoration: none
|
|
11
11
|
}
|
|
12
|
-
.seed-
|
|
12
|
+
.seed-badge--size_medium {
|
|
13
13
|
min-height: var(--seed-dimension-x5);
|
|
14
14
|
padding-inline: var(--seed-dimension-x1_5);
|
|
15
15
|
padding-block: var(--seed-dimension-x0_5);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-size: var(--seed-font-size-t1);
|
|
18
18
|
line-height: var(--seed-line-height-t1)
|
|
19
19
|
}
|
|
20
|
-
.seed-
|
|
20
|
+
.seed-badge--size_large {
|
|
21
21
|
min-height: var(--seed-dimension-x6);
|
|
22
22
|
padding-inline: var(--seed-dimension-x2);
|
|
23
23
|
padding-block: var(--seed-dimension-x1);
|
|
@@ -25,72 +25,77 @@
|
|
|
25
25
|
font-size: var(--seed-font-size-t2);
|
|
26
26
|
line-height: var(--seed-line-height-t2)
|
|
27
27
|
}
|
|
28
|
-
.seed-
|
|
28
|
+
.seed-badge--variant_weak {
|
|
29
29
|
font-weight: var(--seed-font-weight-medium)
|
|
30
30
|
}
|
|
31
|
-
.seed-
|
|
31
|
+
.seed-badge--variant_solid {
|
|
32
32
|
font-weight: var(--seed-font-weight-bold)
|
|
33
33
|
}
|
|
34
|
-
.seed-
|
|
34
|
+
.seed-badge--variant_outline {
|
|
35
35
|
font-weight: var(--seed-font-weight-bold)
|
|
36
36
|
}
|
|
37
|
-
.seed-
|
|
37
|
+
.seed-badge--tone_neutral {}
|
|
38
|
+
.seed-badge--tone_brand {}
|
|
39
|
+
.seed-badge--tone_informative {}
|
|
40
|
+
.seed-badge--tone_positive {}
|
|
41
|
+
.seed-badge--tone_critical {}
|
|
42
|
+
.seed-badge--tone_neutral-variant_weak {
|
|
38
43
|
background-color: var(--seed-color-bg-neutral-weak);
|
|
39
44
|
color: var(--seed-color-fg-neutral-muted)
|
|
40
45
|
}
|
|
41
|
-
.seed-
|
|
46
|
+
.seed-badge--tone_neutral-variant_solid {
|
|
42
47
|
background-color: var(--seed-color-palette-gray-800);
|
|
43
48
|
color: var(--seed-color-fg-neutral-inverted)
|
|
44
49
|
}
|
|
45
|
-
.seed-
|
|
50
|
+
.seed-badge--tone_neutral-variant_outline {
|
|
46
51
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral);
|
|
47
52
|
color: var(--seed-color-fg-neutral-muted)
|
|
48
53
|
}
|
|
49
|
-
.seed-
|
|
54
|
+
.seed-badge--tone_brand-variant_weak {
|
|
50
55
|
background-color: var(--seed-color-palette-carrot-100);
|
|
51
56
|
color: var(--seed-color-palette-carrot-900)
|
|
52
57
|
}
|
|
53
|
-
.seed-
|
|
58
|
+
.seed-badge--tone_brand-variant_solid {
|
|
54
59
|
background-color: var(--seed-color-bg-brand-solid);
|
|
55
60
|
color: var(--seed-color-palette-static-white)
|
|
56
61
|
}
|
|
57
|
-
.seed-
|
|
62
|
+
.seed-badge--tone_brand-variant_outline {
|
|
58
63
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-brand);
|
|
59
64
|
color: var(--seed-color-fg-brand)
|
|
60
65
|
}
|
|
61
|
-
.seed-
|
|
66
|
+
.seed-badge--tone_informative-variant_weak {
|
|
62
67
|
background-color: var(--seed-color-bg-informative-weak);
|
|
63
68
|
color: var(--seed-color-fg-informative-contrast)
|
|
64
69
|
}
|
|
65
|
-
.seed-
|
|
70
|
+
.seed-badge--tone_informative-variant_solid {
|
|
66
71
|
background-color: var(--seed-color-bg-informative-solid);
|
|
67
72
|
color: var(--seed-color-palette-static-white)
|
|
68
73
|
}
|
|
69
|
-
.seed-
|
|
74
|
+
.seed-badge--tone_informative-variant_outline {
|
|
70
75
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative);
|
|
71
76
|
color: var(--seed-color-fg-informative)
|
|
72
77
|
}
|
|
73
|
-
.seed-
|
|
78
|
+
.seed-badge--tone_positive-variant_weak {
|
|
74
79
|
background-color: var(--seed-color-bg-positive-weak);
|
|
75
80
|
color: var(--seed-color-fg-positive-contrast)
|
|
76
81
|
}
|
|
77
|
-
.seed-
|
|
82
|
+
.seed-badge--tone_positive-variant_solid {
|
|
78
83
|
background-color: var(--seed-color-bg-positive-solid);
|
|
79
84
|
color: var(--seed-color-palette-static-white)
|
|
80
85
|
}
|
|
81
|
-
.seed-
|
|
86
|
+
.seed-badge--tone_positive-variant_outline {
|
|
82
87
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-positive);
|
|
83
88
|
color: var(--seed-color-fg-positive)
|
|
84
89
|
}
|
|
85
|
-
.seed-
|
|
90
|
+
.seed-badge--tone_critical-variant_weak {
|
|
86
91
|
background-color: var(--seed-color-bg-critical-weak);
|
|
87
92
|
color: var(--seed-color-fg-critical-contrast)
|
|
88
93
|
}
|
|
89
|
-
.seed-
|
|
94
|
+
.seed-badge--tone_critical-variant_solid {
|
|
90
95
|
background-color: var(--seed-color-bg-critical-solid);
|
|
91
96
|
color: var(--seed-color-palette-static-white)
|
|
92
97
|
}
|
|
93
|
-
.seed-
|
|
98
|
+
.seed-badge--tone_critical-variant_outline {
|
|
94
99
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-critical);
|
|
95
100
|
color: var(--seed-color-fg-critical)
|
|
96
101
|
}
|
package/recipes/badge.d.ts
CHANGED
|
@@ -19,13 +19,11 @@ declare type BadgeVariantMap = {
|
|
|
19
19
|
|
|
20
20
|
export declare type BadgeVariantProps = Partial<BadgeVariant>;
|
|
21
21
|
|
|
22
|
-
export declare type BadgeSlotName = "root";
|
|
23
|
-
|
|
24
22
|
export declare const badgeVariantMap: BadgeVariantMap;
|
|
25
23
|
|
|
26
24
|
export declare const badge: ((
|
|
27
25
|
props?: BadgeVariantProps,
|
|
28
|
-
) =>
|
|
26
|
+
) => string) & {
|
|
29
27
|
splitVariantProps: <T extends BadgeVariantProps>(
|
|
30
28
|
props: T,
|
|
31
29
|
) => [BadgeVariantProps, Omit<T, keyof BadgeVariantProps>];
|