@seed-design/lynx-css 0.14.2 → 1.0.1
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 +1078 -373
- package/all.min.css +1 -1
- package/base.css +10 -0
- package/base.min.css +1 -1
- package/package.json +1 -1
- package/recipes/alert-dialog.css +11 -0
- package/recipes/alert-dialog.d.ts +1 -1
- package/recipes/alert-dialog.mjs +8 -0
- package/recipes/app-bar.css +7 -3
- package/recipes/attachment-input-item.css +7 -0
- package/recipes/attachment-input.css +2 -1
- package/recipes/avatar-stack.css +69 -0
- package/recipes/avatar-stack.d.ts +24 -0
- package/recipes/avatar-stack.mjs +55 -0
- package/recipes/avatar.css +257 -0
- package/recipes/avatar.d.ts +28 -0
- package/recipes/avatar.mjs +82 -0
- package/recipes/badge.css +22 -23
- package/recipes/badge.d.ts +0 -4
- package/recipes/badge.mjs +1 -14
- package/recipes/bottom-sheet.css +33 -2
- package/recipes/bottom-sheet.d.ts +5 -1
- package/recipes/bottom-sheet.mjs +28 -2
- package/recipes/callout.css +1 -8
- package/recipes/checkbox.css +7 -1
- package/recipes/checkmark.css +17 -26
- package/recipes/checkmark.d.ts +1 -5
- package/recipes/checkmark.mjs +7 -60
- package/recipes/chip-tabs.css +12 -7
- package/recipes/chip.css +16 -11
- package/recipes/content-placeholder.css +29 -0
- package/recipes/content-placeholder.d.ts +21 -0
- package/recipes/content-placeholder.mjs +44 -0
- package/recipes/dialog.css +4 -2
- package/recipes/{input-button.css → field-button.css} +49 -49
- package/recipes/field-button.d.ts +40 -0
- package/recipes/{input-button.mjs → field-button.mjs} +20 -20
- package/recipes/floating-action-button.css +15 -8
- package/recipes/image-frame-icon.css +8 -0
- package/recipes/image-frame-icon.d.ts +19 -0
- package/recipes/image-frame-icon.mjs +22 -0
- package/recipes/image-frame-indicator.css +17 -0
- package/recipes/image-frame-indicator.d.ts +21 -0
- package/recipes/image-frame-indicator.mjs +36 -0
- package/recipes/image-frame-reaction-button.css +20 -0
- package/recipes/image-frame-reaction-button.d.ts +21 -0
- package/recipes/image-frame-reaction-button.mjs +40 -0
- package/recipes/image-frame.css +87 -0
- package/recipes/image-frame.d.ts +32 -0
- package/recipes/image-frame.mjs +72 -0
- package/recipes/list-item.css +0 -4
- package/recipes/list-item.d.ts +1 -1
- package/recipes/list-item.mjs +0 -4
- package/recipes/menu-sheet-item.css +5 -1
- package/recipes/menu-sheet.css +5 -0
- package/recipes/menu-sheet.d.ts +1 -1
- package/recipes/menu-sheet.mjs +4 -0
- package/recipes/menu.css +1 -13
- package/recipes/menu.d.ts +1 -1
- package/recipes/menu.mjs +0 -4
- package/recipes/progress-circle.css +61 -4
- package/recipes/progress-circle.d.ts +1 -1
- package/recipes/progress-circle.mjs +1 -0
- package/recipes/pull-to-refresh.css +14 -0
- package/recipes/pull-to-refresh.d.ts +21 -0
- package/recipes/pull-to-refresh.mjs +40 -0
- package/recipes/reaction-button.css +19 -19
- package/recipes/reaction-button.d.ts +0 -4
- package/recipes/reaction-button.mjs +0 -11
- package/recipes/scroll-fog.css +4 -17
- package/recipes/scroll-fog.d.ts +1 -1
- package/recipes/scroll-fog.mjs +0 -8
- package/recipes/segmented-control.css +24 -14
- package/recipes/segmented-control.d.ts +4 -4
- package/recipes/segmented-control.mjs +8 -8
- package/recipes/select-box-checkmark.css +4 -7
- package/recipes/select-box.css +10 -4
- package/recipes/select-item.css +13 -2
- package/recipes/select-item.d.ts +1 -1
- package/recipes/select-item.mjs +4 -0
- package/recipes/select-trigger.css +13 -2
- package/recipes/select-trigger.d.ts +1 -1
- package/recipes/select-trigger.mjs +4 -0
- package/recipes/select.css +1 -13
- package/recipes/select.d.ts +1 -1
- package/recipes/select.mjs +0 -4
- package/recipes/slider-marker.css +2 -2
- package/recipes/slider-tick.css +1 -1
- package/recipes/slider.css +2 -5
- package/recipes/tabs.css +11 -11
- package/recipes/wheel-picker.css +151 -0
- package/recipes/wheel-picker.d.ts +32 -0
- package/recipes/wheel-picker.mjs +90 -0
- package/recipes/input-button.d.ts +0 -40
package/recipes/bottom-sheet.mjs
CHANGED
|
@@ -22,6 +22,14 @@ const bottomSheetSlotNames = [
|
|
|
22
22
|
"body",
|
|
23
23
|
"seed-bottom-sheet__body"
|
|
24
24
|
],
|
|
25
|
+
[
|
|
26
|
+
"scrollArea",
|
|
27
|
+
"seed-bottom-sheet__scrollArea"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"scrollContent",
|
|
31
|
+
"seed-bottom-sheet__scrollContent"
|
|
32
|
+
],
|
|
25
33
|
[
|
|
26
34
|
"footer",
|
|
27
35
|
"seed-bottom-sheet__footer"
|
|
@@ -37,15 +45,29 @@ const bottomSheetSlotNames = [
|
|
|
37
45
|
[
|
|
38
46
|
"closeButton",
|
|
39
47
|
"seed-bottom-sheet__closeButton"
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
"closeButtonIcon",
|
|
51
|
+
"seed-bottom-sheet__closeButtonIcon"
|
|
40
52
|
]
|
|
41
53
|
];
|
|
42
54
|
|
|
43
55
|
const defaultVariant = {
|
|
44
56
|
"headerAlign": "left",
|
|
45
|
-
"skipAnimation": false
|
|
57
|
+
"skipAnimation": false,
|
|
58
|
+
"closeButton": false
|
|
46
59
|
};
|
|
47
60
|
|
|
48
|
-
const compoundVariants = [
|
|
61
|
+
const compoundVariants = [
|
|
62
|
+
{
|
|
63
|
+
"headerAlign": "left",
|
|
64
|
+
"closeButton": true
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"headerAlign": "center",
|
|
68
|
+
"closeButton": true
|
|
69
|
+
}
|
|
70
|
+
];
|
|
49
71
|
|
|
50
72
|
export const bottomSheetVariantMap = {
|
|
51
73
|
"headerAlign": [
|
|
@@ -55,6 +77,10 @@ export const bottomSheetVariantMap = {
|
|
|
55
77
|
"skipAnimation": [
|
|
56
78
|
true,
|
|
57
79
|
false
|
|
80
|
+
],
|
|
81
|
+
"closeButton": [
|
|
82
|
+
true,
|
|
83
|
+
false
|
|
58
84
|
]
|
|
59
85
|
};
|
|
60
86
|
|
package/recipes/callout.css
CHANGED
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
font-size: var(--seed-font-size-t4);
|
|
31
31
|
line-height: var(--seed-line-height-t4);
|
|
32
32
|
font-weight: var(--seed-font-weight-regular);
|
|
33
|
-
|
|
34
|
-
border-bottom-style: solid;
|
|
33
|
+
text-decoration: underline;
|
|
35
34
|
}
|
|
36
35
|
.seed-callout__closeButton {
|
|
37
36
|
flex-grow: 0;
|
|
@@ -74,7 +73,6 @@
|
|
|
74
73
|
}
|
|
75
74
|
.seed-callout__link--tone_neutral {
|
|
76
75
|
color: var(--seed-color-fg-neutral);
|
|
77
|
-
border-bottom-color: var(--seed-color-fg-neutral);
|
|
78
76
|
}
|
|
79
77
|
.seed-callout__prefixIcon--tone_neutral {
|
|
80
78
|
color: var(--seed-color-fg-neutral);
|
|
@@ -93,7 +91,6 @@
|
|
|
93
91
|
}
|
|
94
92
|
.seed-callout__link--tone_informative {
|
|
95
93
|
color: var(--seed-color-fg-informative-contrast);
|
|
96
|
-
border-bottom-color: var(--seed-color-fg-informative-contrast);
|
|
97
94
|
}
|
|
98
95
|
.seed-callout__prefixIcon--tone_informative {
|
|
99
96
|
color: var(--seed-color-fg-informative-contrast);
|
|
@@ -112,7 +109,6 @@
|
|
|
112
109
|
}
|
|
113
110
|
.seed-callout__link--tone_positive {
|
|
114
111
|
color: var(--seed-color-fg-positive-contrast);
|
|
115
|
-
border-bottom-color: var(--seed-color-fg-positive-contrast);
|
|
116
112
|
}
|
|
117
113
|
.seed-callout__prefixIcon--tone_positive {
|
|
118
114
|
color: var(--seed-color-fg-positive-contrast);
|
|
@@ -131,7 +127,6 @@
|
|
|
131
127
|
}
|
|
132
128
|
.seed-callout__link--tone_warning {
|
|
133
129
|
color: var(--seed-color-fg-warning-contrast);
|
|
134
|
-
border-bottom-color: var(--seed-color-fg-warning-contrast);
|
|
135
130
|
}
|
|
136
131
|
.seed-callout__prefixIcon--tone_warning {
|
|
137
132
|
color: var(--seed-color-fg-warning-contrast);
|
|
@@ -150,7 +145,6 @@
|
|
|
150
145
|
}
|
|
151
146
|
.seed-callout__link--tone_critical {
|
|
152
147
|
color: var(--seed-color-fg-critical-contrast);
|
|
153
|
-
border-bottom-color: var(--seed-color-fg-critical-contrast);
|
|
154
148
|
}
|
|
155
149
|
.seed-callout__prefixIcon--tone_critical {
|
|
156
150
|
color: var(--seed-color-fg-critical-contrast);
|
|
@@ -169,7 +163,6 @@
|
|
|
169
163
|
}
|
|
170
164
|
.seed-callout__link--tone_magic {
|
|
171
165
|
color: var(--seed-color-fg-neutral);
|
|
172
|
-
border-bottom-color: var(--seed-color-fg-neutral);
|
|
173
166
|
}
|
|
174
167
|
.seed-callout__prefixIcon--tone_magic {
|
|
175
168
|
color: var(--seed-color-fg-neutral);
|
package/recipes/checkbox.css
CHANGED
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
.seed-checkbox__root--disabled_false:active .seed-checkmark__root {
|
|
42
42
|
background-color: var(--seed-checkmark-pressed-color)
|
|
43
43
|
}
|
|
44
|
-
.seed-checkbox__root--disabled_false:active .seed-checkmark__background {
|
|
44
|
+
.seed-checkbox__root--disabled_false:active .seed-checkmark__background--checked_false.seed-checkmark__background--indeterminate_false {
|
|
45
|
+
opacity: 1
|
|
46
|
+
}
|
|
47
|
+
.seed-checkbox__root--disabled_false:active .seed-checkmark__selectedBackground--checked_true {
|
|
48
|
+
opacity: 1
|
|
49
|
+
}
|
|
50
|
+
.seed-checkbox__root--disabled_false:active .seed-checkmark__selectedBackground--indeterminate_true {
|
|
45
51
|
opacity: 1
|
|
46
52
|
}
|
package/recipes/checkmark.css
CHANGED
|
@@ -14,6 +14,15 @@
|
|
|
14
14
|
opacity: 0;
|
|
15
15
|
transition: opacity var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
16
16
|
}
|
|
17
|
+
.seed-checkmark__selectedBackground {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
transition: opacity var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
25
|
+
}
|
|
17
26
|
.seed-checkmark__icon {
|
|
18
27
|
position: absolute
|
|
19
28
|
}
|
|
@@ -38,6 +47,9 @@
|
|
|
38
47
|
.seed-checkmark__background--size_medium {
|
|
39
48
|
border-radius: var(--seed-radius-r1)
|
|
40
49
|
}
|
|
50
|
+
.seed-checkmark__selectedBackground--size_medium {
|
|
51
|
+
border-radius: var(--seed-radius-r1)
|
|
52
|
+
}
|
|
41
53
|
.seed-checkmark__root--size_large {
|
|
42
54
|
width: var(--seed-dimension-x6);
|
|
43
55
|
height: var(--seed-dimension-x6);
|
|
@@ -46,6 +58,9 @@
|
|
|
46
58
|
.seed-checkmark__background--size_large {
|
|
47
59
|
border-radius: var(--seed-radius-r1)
|
|
48
60
|
}
|
|
61
|
+
.seed-checkmark__selectedBackground--size_large {
|
|
62
|
+
border-radius: var(--seed-radius-r1)
|
|
63
|
+
}
|
|
49
64
|
.seed-checkmark__icon--variant_square-size_medium {
|
|
50
65
|
width: 12px;
|
|
51
66
|
height: 12px
|
|
@@ -114,16 +129,10 @@
|
|
|
114
129
|
.seed-checkmark__icon--variant_square-indeterminate_true-disabled_true {
|
|
115
130
|
color: var(--seed-color-fg-disabled)
|
|
116
131
|
}
|
|
117
|
-
.seed-
|
|
132
|
+
.seed-checkmark__selectedBackground--variant_ghost-tone_brand {
|
|
118
133
|
background-color: var(--seed-color-palette-carrot-200)
|
|
119
134
|
}
|
|
120
|
-
.seed-
|
|
121
|
-
background-color: var(--seed-color-palette-gray-200)
|
|
122
|
-
}
|
|
123
|
-
.seed-checkmark__background--variant_ghost-tone_brand-indeterminate_true {
|
|
124
|
-
background-color: var(--seed-color-palette-carrot-200)
|
|
125
|
-
}
|
|
126
|
-
.seed-checkmark__background--variant_ghost-tone_neutral-indeterminate_true {
|
|
135
|
+
.seed-checkmark__selectedBackground--variant_ghost-tone_neutral {
|
|
127
136
|
background-color: var(--seed-color-palette-gray-200)
|
|
128
137
|
}
|
|
129
138
|
.seed-checkmark__icon--variant_ghost-tone_brand-checked_true-disabled_false {
|
|
@@ -146,22 +155,4 @@
|
|
|
146
155
|
}
|
|
147
156
|
.seed-checkmark__icon--variant_ghost-indeterminate_true-disabled_true {
|
|
148
157
|
color: var(--seed-color-fg-disabled)
|
|
149
|
-
}
|
|
150
|
-
.seed-checkmark__background--variant_ghost-pressed_true-disabled_false {
|
|
151
|
-
opacity: 1
|
|
152
|
-
}
|
|
153
|
-
.seed-checkmark__root--variant_square-pressed_true-checked_false-indeterminate_false-disabled_false {
|
|
154
|
-
background-color: var(--seed-color-bg-transparent-pressed)
|
|
155
|
-
}
|
|
156
|
-
.seed-checkmark__root--variant_square-tone_brand-pressed_true-checked_true-disabled_false {
|
|
157
|
-
background-color: var(--seed-color-bg-brand-solid-pressed)
|
|
158
|
-
}
|
|
159
|
-
.seed-checkmark__root--variant_square-tone_neutral-pressed_true-checked_true-disabled_false {
|
|
160
|
-
background-color: var(--seed-color-bg-neutral-solid-pressed)
|
|
161
|
-
}
|
|
162
|
-
.seed-checkmark__root--variant_square-tone_brand-pressed_true-indeterminate_true-disabled_false {
|
|
163
|
-
background-color: var(--seed-color-bg-brand-solid-pressed)
|
|
164
|
-
}
|
|
165
|
-
.seed-checkmark__root--variant_square-tone_neutral-pressed_true-indeterminate_true-disabled_false {
|
|
166
|
-
background-color: var(--seed-color-bg-neutral-solid-pressed)
|
|
167
158
|
}
|
package/recipes/checkmark.d.ts
CHANGED
|
@@ -23,10 +23,6 @@ declare interface CheckmarkVariant {
|
|
|
23
23
|
* @default false
|
|
24
24
|
*/
|
|
25
25
|
indeterminate: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
pressed: boolean;
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
declare type CheckmarkVariantMap = {
|
|
@@ -35,7 +31,7 @@ declare type CheckmarkVariantMap = {
|
|
|
35
31
|
|
|
36
32
|
export declare type CheckmarkVariantProps = Partial<CheckmarkVariant>;
|
|
37
33
|
|
|
38
|
-
export declare type CheckmarkSlotName = "root" | "background" | "icon";
|
|
34
|
+
export declare type CheckmarkSlotName = "root" | "background" | "selectedBackground" | "icon";
|
|
39
35
|
|
|
40
36
|
export declare const checkmarkVariantMap: CheckmarkVariantMap;
|
|
41
37
|
|
package/recipes/checkmark.mjs
CHANGED
|
@@ -10,6 +10,10 @@ const checkmarkSlotNames = [
|
|
|
10
10
|
"background",
|
|
11
11
|
"seed-checkmark__background"
|
|
12
12
|
],
|
|
13
|
+
[
|
|
14
|
+
"selectedBackground",
|
|
15
|
+
"seed-checkmark__selectedBackground"
|
|
16
|
+
],
|
|
13
17
|
[
|
|
14
18
|
"icon",
|
|
15
19
|
"seed-checkmark__icon"
|
|
@@ -22,8 +26,7 @@ const defaultVariant = {
|
|
|
22
26
|
"size": "medium",
|
|
23
27
|
"checked": false,
|
|
24
28
|
"disabled": false,
|
|
25
|
-
"indeterminate": false
|
|
26
|
-
"pressed": false
|
|
29
|
+
"indeterminate": false
|
|
27
30
|
};
|
|
28
31
|
|
|
29
32
|
const compoundVariants = [
|
|
@@ -98,23 +101,11 @@ const compoundVariants = [
|
|
|
98
101
|
},
|
|
99
102
|
{
|
|
100
103
|
"variant": "ghost",
|
|
101
|
-
"tone": "brand"
|
|
102
|
-
"checked": true
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"variant": "ghost",
|
|
106
|
-
"tone": "neutral",
|
|
107
|
-
"checked": true
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"variant": "ghost",
|
|
111
|
-
"tone": "brand",
|
|
112
|
-
"indeterminate": true
|
|
104
|
+
"tone": "brand"
|
|
113
105
|
},
|
|
114
106
|
{
|
|
115
107
|
"variant": "ghost",
|
|
116
|
-
"tone": "neutral"
|
|
117
|
-
"indeterminate": true
|
|
108
|
+
"tone": "neutral"
|
|
118
109
|
},
|
|
119
110
|
{
|
|
120
111
|
"variant": "ghost",
|
|
@@ -153,46 +144,6 @@ const compoundVariants = [
|
|
|
153
144
|
"variant": "ghost",
|
|
154
145
|
"indeterminate": true,
|
|
155
146
|
"disabled": true
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"variant": "ghost",
|
|
159
|
-
"pressed": true,
|
|
160
|
-
"disabled": false
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"variant": "square",
|
|
164
|
-
"pressed": true,
|
|
165
|
-
"checked": false,
|
|
166
|
-
"indeterminate": false,
|
|
167
|
-
"disabled": false
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"variant": "square",
|
|
171
|
-
"tone": "brand",
|
|
172
|
-
"pressed": true,
|
|
173
|
-
"checked": true,
|
|
174
|
-
"disabled": false
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"variant": "square",
|
|
178
|
-
"tone": "neutral",
|
|
179
|
-
"pressed": true,
|
|
180
|
-
"checked": true,
|
|
181
|
-
"disabled": false
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"variant": "square",
|
|
185
|
-
"tone": "brand",
|
|
186
|
-
"pressed": true,
|
|
187
|
-
"indeterminate": true,
|
|
188
|
-
"disabled": false
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"variant": "square",
|
|
192
|
-
"tone": "neutral",
|
|
193
|
-
"pressed": true,
|
|
194
|
-
"indeterminate": true,
|
|
195
|
-
"disabled": false
|
|
196
147
|
}
|
|
197
148
|
];
|
|
198
149
|
|
|
@@ -220,10 +171,6 @@ export const checkmarkVariantMap = {
|
|
|
220
171
|
"indeterminate": [
|
|
221
172
|
true,
|
|
222
173
|
false
|
|
223
|
-
],
|
|
224
|
-
"pressed": [
|
|
225
|
-
true,
|
|
226
|
-
false
|
|
227
174
|
]
|
|
228
175
|
};
|
|
229
176
|
|
package/recipes/chip-tabs.css
CHANGED
|
@@ -22,8 +22,12 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
flex-shrink: 0;
|
|
24
24
|
gap: var(--seed-dimension-x1_5);
|
|
25
|
+
--seed-chip-tabs-stroke-width: 0px;
|
|
26
|
+
border-width: var(--seed-chip-tabs-stroke-width);
|
|
27
|
+
border-style: solid;
|
|
28
|
+
border-color: transparent;
|
|
25
29
|
border-radius: var(--seed-radius-full);
|
|
26
|
-
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing),
|
|
30
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), border-color var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
27
31
|
}
|
|
28
32
|
.seed-chip-tabs__triggerLabel {
|
|
29
33
|
display: flex;
|
|
@@ -48,8 +52,8 @@
|
|
|
48
52
|
.seed-chip-tabs__trigger--size_medium {
|
|
49
53
|
min-height: 36px;
|
|
50
54
|
min-width: var(--seed-dimension-x12);
|
|
51
|
-
padding-left: calc(var(--seed-dimension-x2) + var(--seed-dimension-x1_5));
|
|
52
|
-
padding-right: calc(var(--seed-dimension-x2) + var(--seed-dimension-x1_5))
|
|
55
|
+
padding-left: calc(var(--seed-dimension-x2) + var(--seed-dimension-x1_5) - var(--seed-chip-tabs-stroke-width));
|
|
56
|
+
padding-right: calc(var(--seed-dimension-x2) + var(--seed-dimension-x1_5) - var(--seed-chip-tabs-stroke-width))
|
|
53
57
|
}
|
|
54
58
|
.seed-chip-tabs__triggerLabel--size_medium {
|
|
55
59
|
font-size: var(--seed-font-size-t4);
|
|
@@ -58,8 +62,8 @@
|
|
|
58
62
|
.seed-chip-tabs__trigger--size_large {
|
|
59
63
|
min-height: 40px;
|
|
60
64
|
min-width: var(--seed-dimension-x13);
|
|
61
|
-
padding-left: calc(var(--seed-dimension-x2_5) + var(--seed-dimension-x1_5));
|
|
62
|
-
padding-right: calc(var(--seed-dimension-x2_5) + var(--seed-dimension-x1_5))
|
|
65
|
+
padding-left: calc(var(--seed-dimension-x2_5) + var(--seed-dimension-x1_5) - var(--seed-chip-tabs-stroke-width));
|
|
66
|
+
padding-right: calc(var(--seed-dimension-x2_5) + var(--seed-dimension-x1_5) - var(--seed-chip-tabs-stroke-width))
|
|
63
67
|
}
|
|
64
68
|
.seed-chip-tabs__triggerLabel--size_large {
|
|
65
69
|
font-size: var(--seed-font-size-t4);
|
|
@@ -73,7 +77,8 @@
|
|
|
73
77
|
}
|
|
74
78
|
.seed-chip-tabs__trigger--variant_neutralOutline {
|
|
75
79
|
background-color: var(--seed-color-bg-transparent);
|
|
76
|
-
|
|
80
|
+
--seed-chip-tabs-stroke-width: 1px;
|
|
81
|
+
border-color: var(--seed-color-stroke-neutral-muted)
|
|
77
82
|
}
|
|
78
83
|
.seed-chip-tabs__triggerLabel--variant_neutralOutline {
|
|
79
84
|
color: var(--seed-color-fg-neutral)
|
|
@@ -108,7 +113,7 @@
|
|
|
108
113
|
}
|
|
109
114
|
.seed-chip-tabs__trigger--variant_neutralOutline-selected_true {
|
|
110
115
|
background-color: var(--seed-color-bg-neutral-solid);
|
|
111
|
-
|
|
116
|
+
border-color: transparent
|
|
112
117
|
}
|
|
113
118
|
.seed-chip-tabs__triggerLabel--variant_neutralOutline-selected_true {
|
|
114
119
|
color: var(--seed-color-fg-on-neutral-solid)
|
package/recipes/chip.css
CHANGED
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
justify-content: center;
|
|
6
6
|
align-items: center;
|
|
7
7
|
flex-shrink: 0;
|
|
8
|
-
|
|
8
|
+
--seed-chip-stroke-width: 0px;
|
|
9
|
+
border-width: var(--seed-chip-stroke-width);
|
|
10
|
+
border-style: solid;
|
|
11
|
+
border-color: transparent;
|
|
9
12
|
border-radius: var(--seed-radius-full);
|
|
10
|
-
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), color var(--seed-duration-color-transition) var(--seed-timing-function-easing), border-color var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
13
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), color var(--seed-duration-color-transition) var(--seed-timing-function-easing), border-color var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
11
14
|
}
|
|
12
15
|
.seed-chip__label {
|
|
13
16
|
display: flex;
|
|
@@ -57,7 +60,8 @@
|
|
|
57
60
|
}
|
|
58
61
|
.seed-chip__root--variant_outlineStrong {
|
|
59
62
|
background: var(--seed-color-bg-transparent);
|
|
60
|
-
|
|
63
|
+
--seed-chip-stroke-width: 1px;
|
|
64
|
+
border-color: var(--seed-color-stroke-neutral-muted)
|
|
61
65
|
}
|
|
62
66
|
.seed-chip__label--variant_outlineStrong {
|
|
63
67
|
color: var(--seed-color-fg-neutral)
|
|
@@ -73,7 +77,8 @@
|
|
|
73
77
|
}
|
|
74
78
|
.seed-chip__root--variant_outlineWeak {
|
|
75
79
|
background: var(--seed-color-bg-transparent);
|
|
76
|
-
|
|
80
|
+
--seed-chip-stroke-width: 1px;
|
|
81
|
+
border-color: var(--seed-color-stroke-neutral-muted)
|
|
77
82
|
}
|
|
78
83
|
.seed-chip__label--variant_outlineWeak {
|
|
79
84
|
color: var(--seed-color-fg-neutral)
|
|
@@ -89,8 +94,8 @@
|
|
|
89
94
|
}
|
|
90
95
|
.seed-chip__root--size_small {
|
|
91
96
|
height: 32px;
|
|
92
|
-
padding-left: var(--seed-dimension-x1_5);
|
|
93
|
-
padding-right: var(--seed-dimension-x1_5)
|
|
97
|
+
padding-left: calc(var(--seed-dimension-x1_5) - var(--seed-chip-stroke-width));
|
|
98
|
+
padding-right: calc(var(--seed-dimension-x1_5) - var(--seed-chip-stroke-width))
|
|
94
99
|
}
|
|
95
100
|
.seed-chip__label--size_small {
|
|
96
101
|
font-size: var(--seed-font-size-t4);
|
|
@@ -114,8 +119,8 @@
|
|
|
114
119
|
}
|
|
115
120
|
.seed-chip__root--size_medium {
|
|
116
121
|
height: 36px;
|
|
117
|
-
padding-left: var(--seed-dimension-x2);
|
|
118
|
-
padding-right: var(--seed-dimension-x2)
|
|
122
|
+
padding-left: calc(var(--seed-dimension-x2) - var(--seed-chip-stroke-width));
|
|
123
|
+
padding-right: calc(var(--seed-dimension-x2) - var(--seed-chip-stroke-width))
|
|
119
124
|
}
|
|
120
125
|
.seed-chip__label--size_medium {
|
|
121
126
|
font-size: var(--seed-font-size-t4);
|
|
@@ -139,8 +144,8 @@
|
|
|
139
144
|
}
|
|
140
145
|
.seed-chip__root--size_large {
|
|
141
146
|
height: 40px;
|
|
142
|
-
padding-left: var(--seed-dimension-x2_5);
|
|
143
|
-
padding-right: var(--seed-dimension-x2_5)
|
|
147
|
+
padding-left: calc(var(--seed-dimension-x2_5) - var(--seed-chip-stroke-width));
|
|
148
|
+
padding-right: calc(var(--seed-dimension-x2_5) - var(--seed-chip-stroke-width))
|
|
144
149
|
}
|
|
145
150
|
.seed-chip__label--size_large {
|
|
146
151
|
font-size: var(--seed-font-size-t4);
|
|
@@ -216,7 +221,7 @@
|
|
|
216
221
|
}
|
|
217
222
|
.seed-chip__root--variant_outlineWeak-selected_true {
|
|
218
223
|
background: var(--seed-color-bg-neutral-weak);
|
|
219
|
-
|
|
224
|
+
border-color: var(--seed-color-stroke-neutral-contrast)
|
|
220
225
|
}
|
|
221
226
|
.seed-chip__root--variant_solid-pressed_true-selected_false {
|
|
222
227
|
background: var(--seed-color-bg-neutral-weak-alpha-pressed)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.seed-content-placeholder__root {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: var(--seed-color-palette-gray-200)
|
|
10
|
+
}
|
|
11
|
+
.seed-content-placeholder__asset {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
height: calc(0.5 * 100%);
|
|
16
|
+
min-width: var(--seed-dimension-x4);
|
|
17
|
+
max-width: 160px;
|
|
18
|
+
aspect-ratio: 1 / 1
|
|
19
|
+
}
|
|
20
|
+
.seed-content-placeholder__presetLight {
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
display: var(--seed-content-placeholder-preset-light-display, flex)
|
|
24
|
+
}
|
|
25
|
+
.seed-content-placeholder__presetDark {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: var(--seed-content-placeholder-preset-dark-display, none)
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface ContentPlaceholderVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type ContentPlaceholderVariantMap = {
|
|
6
|
+
[key in keyof ContentPlaceholderVariant]: Array<ContentPlaceholderVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type ContentPlaceholderVariantProps = Partial<ContentPlaceholderVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type ContentPlaceholderSlotName = "root" | "asset" | "presetLight" | "presetDark";
|
|
12
|
+
|
|
13
|
+
export declare const contentPlaceholderVariantMap: ContentPlaceholderVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const contentPlaceholder: ((
|
|
16
|
+
props?: ContentPlaceholderVariantProps,
|
|
17
|
+
) => Record<ContentPlaceholderSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends ContentPlaceholderVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [ContentPlaceholderVariantProps, Omit<T, keyof ContentPlaceholderVariantProps>];
|
|
21
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import './content-placeholder.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const contentPlaceholderSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-content-placeholder__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"asset",
|
|
11
|
+
"seed-content-placeholder__asset"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"presetLight",
|
|
15
|
+
"seed-content-placeholder__presetLight"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"presetDark",
|
|
19
|
+
"seed-content-placeholder__presetDark"
|
|
20
|
+
]
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const defaultVariant = {};
|
|
24
|
+
|
|
25
|
+
const compoundVariants = [];
|
|
26
|
+
|
|
27
|
+
export const contentPlaceholderVariantMap = {};
|
|
28
|
+
|
|
29
|
+
export const contentPlaceholderVariantKeys = Object.keys(contentPlaceholderVariantMap);
|
|
30
|
+
|
|
31
|
+
export function contentPlaceholder(props) {
|
|
32
|
+
return Object.fromEntries(
|
|
33
|
+
contentPlaceholderSlotNames.map(([slot, className]) => {
|
|
34
|
+
return [
|
|
35
|
+
slot,
|
|
36
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
37
|
+
];
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Object.assign(contentPlaceholder, { splitVariantProps: (props) => splitVariantProps(props, contentPlaceholderVariantMap) });
|
|
43
|
+
|
|
44
|
+
// @recipe(seed): content-placeholder
|
package/recipes/dialog.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.seed-dialog__positioner {
|
|
2
2
|
position: fixed;
|
|
3
3
|
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
4
5
|
justify-content: center;
|
|
5
6
|
align-items: center;
|
|
6
7
|
top: 0;
|
|
@@ -35,9 +36,10 @@
|
|
|
35
36
|
position: relative;
|
|
36
37
|
display: flex;
|
|
37
38
|
flex-direction: column;
|
|
38
|
-
flex:
|
|
39
|
+
flex-shrink: 1;
|
|
40
|
+
min-height: 0;
|
|
39
41
|
box-sizing: border-box;
|
|
40
|
-
width: calc(0.9 *
|
|
42
|
+
width: calc(0.9 * 100%);
|
|
41
43
|
max-height: calc(0.8 * 100vh);
|
|
42
44
|
opacity: 0;
|
|
43
45
|
transform: scale(1.3);
|