@seed-design/lynx-css 0.2.0-alpha.3 → 0.2.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 +433 -258
- package/all.min.css +1 -1
- package/base.css +9 -242
- package/base.min.css +1 -1
- package/package.json +1 -1
- package/recipes/action-button.css +0 -1
- package/recipes/app-bar-main.css +67 -0
- package/recipes/app-bar-main.d.ts +36 -0
- package/recipes/app-bar-main.mjs +63 -0
- package/recipes/app-bar.css +101 -0
- package/recipes/app-bar.d.ts +32 -0
- package/recipes/app-bar.mjs +74 -0
- package/recipes/badge.css +157 -0
- package/recipes/badge.d.ts +32 -0
- package/recipes/badge.mjs +131 -0
- package/recipes/bottom-sheet-handle.css +5 -4
- package/recipes/bottom-sheet.css +3 -2
- package/recipes/checkbox-group.css +1 -1
- package/recipes/checkbox-group.d.ts +1 -3
- package/recipes/checkbox-group.mjs +2 -12
- package/recipes/checkbox.css +5 -3
- package/recipes/checkmark.css +1 -0
- package/recipes/radio-group.css +1 -1
- package/recipes/radio-group.d.ts +1 -3
- package/recipes/radio-group.mjs +2 -12
- package/recipes/radio.css +5 -3
- package/recipes/radiomark.css +1 -0
- package/recipes/switch.css +7 -5
- package/recipes/switchmark.css +6 -0
- package/recipes/tag-group-item.css +1 -0
- package/recipes/tag-group.css +6 -0
- package/recipes/tag-group.d.ts +1 -1
- package/recipes/tag-group.mjs +4 -0
- package/vars/component/chip.d.ts +21 -1
- package/vars/component/chip.mjs +21 -1
- package/vars/component/list-item.d.ts +8 -3
- package/vars/component/list-item.mjs +6 -3
- package/vars/component/menu-sheet.d.ts +2 -2
- package/vars/component/menu-sheet.mjs +2 -2
- package/vars/component/top-navigation.d.ts +0 -9
- package/vars/component/top-navigation.mjs +0 -9
- package/vars/duration.d.ts +2 -1
- package/vars/duration.mjs +2 -1
- package/vars/timing-function.d.ts +2 -1
- package/vars/timing-function.mjs +2 -1
- package/all.layered.css +0 -1953
- package/all.layered.min.css +0 -1
- package/base.layered.css +0 -865
- package/base.layered.min.css +0 -1
- package/recipes/action-button.layered.css +0 -406
- package/recipes/action-button.layered.mjs +0 -212
- package/recipes/bottom-sheet-handle.layered.css +0 -21
- package/recipes/bottom-sheet-handle.layered.mjs +0 -36
- package/recipes/bottom-sheet.layered.css +0 -106
- package/recipes/bottom-sheet.layered.mjs +0 -76
- package/recipes/checkbox-group.layered.css +0 -7
- package/recipes/checkbox-group.layered.mjs +0 -46
- package/recipes/checkbox.layered.css +0 -42
- package/recipes/checkbox.layered.mjs +0 -53
- package/recipes/checkmark.layered.css +0 -146
- package/recipes/checkmark.layered.mjs +0 -220
- package/recipes/radio-group.layered.css +0 -7
- package/recipes/radio-group.layered.mjs +0 -46
- package/recipes/radio.layered.css +0 -42
- package/recipes/radio.layered.mjs +0 -53
- package/recipes/radiomark.layered.css +0 -112
- package/recipes/radiomark.layered.mjs +0 -121
- package/recipes/switch.layered.css +0 -48
- package/recipes/switch.layered.mjs +0 -49
- package/recipes/switchmark.layered.css +0 -88
- package/recipes/switchmark.layered.mjs +0 -90
- package/recipes/tag-group-item.layered.css +0 -43
- package/recipes/tag-group-item.layered.mjs +0 -55
- package/recipes/tag-group.layered.css +0 -31
- package/recipes/tag-group.layered.mjs +0 -44
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
.seed-badge__root {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
text-align: start
|
|
7
|
+
}
|
|
8
|
+
.seed-badge__label {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
text-overflow: ellipsis;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
flex-shrink: 1;
|
|
13
|
+
max-width: 100%
|
|
14
|
+
}
|
|
15
|
+
.seed-badge__root--size_medium {
|
|
16
|
+
max-width: 7.5rem;
|
|
17
|
+
min-height: var(--seed-dimension-x5);
|
|
18
|
+
padding-left: var(--seed-dimension-x1_5);
|
|
19
|
+
padding-right: var(--seed-dimension-x1_5);
|
|
20
|
+
padding-top: var(--seed-dimension-x0_5);
|
|
21
|
+
padding-bottom: var(--seed-dimension-x0_5);
|
|
22
|
+
border-radius: var(--seed-radius-r1)
|
|
23
|
+
}
|
|
24
|
+
.seed-badge__label--size_medium {
|
|
25
|
+
font-size: var(--seed-font-size-t1);
|
|
26
|
+
line-height: var(--seed-line-height-t1)
|
|
27
|
+
}
|
|
28
|
+
.seed-badge__root--size_large {
|
|
29
|
+
max-width: 6.75rem;
|
|
30
|
+
min-height: var(--seed-dimension-x6);
|
|
31
|
+
padding-left: var(--seed-dimension-x2);
|
|
32
|
+
padding-right: var(--seed-dimension-x2);
|
|
33
|
+
padding-top: var(--seed-dimension-x1);
|
|
34
|
+
padding-bottom: var(--seed-dimension-x1);
|
|
35
|
+
border-radius: var(--seed-radius-r1_5)
|
|
36
|
+
}
|
|
37
|
+
.seed-badge__label--size_large {
|
|
38
|
+
font-size: var(--seed-font-size-t2);
|
|
39
|
+
line-height: var(--seed-line-height-t2)
|
|
40
|
+
}
|
|
41
|
+
.seed-badge__label--variant_weak {
|
|
42
|
+
font-weight: var(--seed-font-weight-medium)
|
|
43
|
+
}
|
|
44
|
+
.seed-badge__label--variant_solid {
|
|
45
|
+
font-weight: var(--seed-font-weight-bold)
|
|
46
|
+
}
|
|
47
|
+
.seed-badge__label--variant_outline {
|
|
48
|
+
font-weight: var(--seed-font-weight-bold)
|
|
49
|
+
}
|
|
50
|
+
.seed-badge__root--tone_neutral-variant_weak {
|
|
51
|
+
background-color: var(--seed-color-bg-neutral-weak)
|
|
52
|
+
}
|
|
53
|
+
.seed-badge__label--tone_neutral-variant_weak {
|
|
54
|
+
color: var(--seed-color-fg-neutral-muted)
|
|
55
|
+
}
|
|
56
|
+
.seed-badge__root--tone_neutral-variant_solid {
|
|
57
|
+
background-color: var(--seed-color-palette-gray-800)
|
|
58
|
+
}
|
|
59
|
+
.seed-badge__label--tone_neutral-variant_solid {
|
|
60
|
+
color: var(--seed-color-fg-neutral-inverted)
|
|
61
|
+
}
|
|
62
|
+
.seed-badge__root--tone_neutral-variant_outline {
|
|
63
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted)
|
|
64
|
+
}
|
|
65
|
+
.seed-badge__label--tone_neutral-variant_outline {
|
|
66
|
+
color: var(--seed-color-fg-neutral-muted)
|
|
67
|
+
}
|
|
68
|
+
.seed-badge__root--tone_brand-variant_weak {
|
|
69
|
+
background-color: var(--seed-color-bg-brand-weak)
|
|
70
|
+
}
|
|
71
|
+
.seed-badge__label--tone_brand-variant_weak {
|
|
72
|
+
color: var(--seed-color-fg-brand-contrast)
|
|
73
|
+
}
|
|
74
|
+
.seed-badge__root--tone_brand-variant_solid {
|
|
75
|
+
background-color: var(--seed-color-bg-brand-solid)
|
|
76
|
+
}
|
|
77
|
+
.seed-badge__label--tone_brand-variant_solid {
|
|
78
|
+
color: var(--seed-color-palette-static-white)
|
|
79
|
+
}
|
|
80
|
+
.seed-badge__root--tone_brand-variant_outline {
|
|
81
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-brand-weak)
|
|
82
|
+
}
|
|
83
|
+
.seed-badge__label--tone_brand-variant_outline {
|
|
84
|
+
color: var(--seed-color-fg-brand)
|
|
85
|
+
}
|
|
86
|
+
.seed-badge__root--tone_informative-variant_weak {
|
|
87
|
+
background-color: var(--seed-color-bg-informative-weak)
|
|
88
|
+
}
|
|
89
|
+
.seed-badge__label--tone_informative-variant_weak {
|
|
90
|
+
color: var(--seed-color-fg-informative-contrast)
|
|
91
|
+
}
|
|
92
|
+
.seed-badge__root--tone_informative-variant_solid {
|
|
93
|
+
background-color: var(--seed-color-bg-informative-solid)
|
|
94
|
+
}
|
|
95
|
+
.seed-badge__label--tone_informative-variant_solid {
|
|
96
|
+
color: var(--seed-color-palette-static-white)
|
|
97
|
+
}
|
|
98
|
+
.seed-badge__root--tone_informative-variant_outline {
|
|
99
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-weak)
|
|
100
|
+
}
|
|
101
|
+
.seed-badge__label--tone_informative-variant_outline {
|
|
102
|
+
color: var(--seed-color-fg-informative)
|
|
103
|
+
}
|
|
104
|
+
.seed-badge__root--tone_positive-variant_weak {
|
|
105
|
+
background-color: var(--seed-color-bg-positive-weak)
|
|
106
|
+
}
|
|
107
|
+
.seed-badge__label--tone_positive-variant_weak {
|
|
108
|
+
color: var(--seed-color-fg-positive-contrast)
|
|
109
|
+
}
|
|
110
|
+
.seed-badge__root--tone_positive-variant_solid {
|
|
111
|
+
background-color: var(--seed-color-bg-positive-solid)
|
|
112
|
+
}
|
|
113
|
+
.seed-badge__label--tone_positive-variant_solid {
|
|
114
|
+
color: var(--seed-color-palette-static-white)
|
|
115
|
+
}
|
|
116
|
+
.seed-badge__root--tone_positive-variant_outline {
|
|
117
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-positive-weak)
|
|
118
|
+
}
|
|
119
|
+
.seed-badge__label--tone_positive-variant_outline {
|
|
120
|
+
color: var(--seed-color-fg-positive)
|
|
121
|
+
}
|
|
122
|
+
.seed-badge__root--tone_warning-variant_weak {
|
|
123
|
+
background-color: var(--seed-color-bg-warning-weak)
|
|
124
|
+
}
|
|
125
|
+
.seed-badge__label--tone_warning-variant_weak {
|
|
126
|
+
color: var(--seed-color-fg-warning-contrast)
|
|
127
|
+
}
|
|
128
|
+
.seed-badge__root--tone_warning-variant_solid {
|
|
129
|
+
background-color: var(--seed-color-bg-warning-solid)
|
|
130
|
+
}
|
|
131
|
+
.seed-badge__label--tone_warning-variant_solid {
|
|
132
|
+
color: var(--seed-color-palette-static-black-alpha-900)
|
|
133
|
+
}
|
|
134
|
+
.seed-badge__root--tone_warning-variant_outline {
|
|
135
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-warning-weak)
|
|
136
|
+
}
|
|
137
|
+
.seed-badge__label--tone_warning-variant_outline {
|
|
138
|
+
color: var(--seed-color-fg-warning)
|
|
139
|
+
}
|
|
140
|
+
.seed-badge__root--tone_critical-variant_weak {
|
|
141
|
+
background-color: var(--seed-color-bg-critical-weak)
|
|
142
|
+
}
|
|
143
|
+
.seed-badge__label--tone_critical-variant_weak {
|
|
144
|
+
color: var(--seed-color-fg-critical-contrast)
|
|
145
|
+
}
|
|
146
|
+
.seed-badge__root--tone_critical-variant_solid {
|
|
147
|
+
background-color: var(--seed-color-bg-critical-solid)
|
|
148
|
+
}
|
|
149
|
+
.seed-badge__label--tone_critical-variant_solid {
|
|
150
|
+
color: var(--seed-color-palette-static-white)
|
|
151
|
+
}
|
|
152
|
+
.seed-badge__root--tone_critical-variant_outline {
|
|
153
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-critical-weak)
|
|
154
|
+
}
|
|
155
|
+
.seed-badge__label--tone_critical-variant_outline {
|
|
156
|
+
color: var(--seed-color-fg-critical)
|
|
157
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare interface BadgeVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "medium"
|
|
4
|
+
*/
|
|
5
|
+
size: "medium" | "large";
|
|
6
|
+
/**
|
|
7
|
+
* @default "solid"
|
|
8
|
+
*/
|
|
9
|
+
variant: "weak" | "solid" | "outline";
|
|
10
|
+
/**
|
|
11
|
+
* @default "neutral"
|
|
12
|
+
*/
|
|
13
|
+
tone: "neutral" | "brand" | "informative" | "positive" | "warning" | "critical";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare type BadgeVariantMap = {
|
|
17
|
+
[key in keyof BadgeVariant]: Array<BadgeVariant[key]>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare type BadgeVariantProps = Partial<BadgeVariant>;
|
|
21
|
+
|
|
22
|
+
export declare type BadgeSlotName = "root" | "label";
|
|
23
|
+
|
|
24
|
+
export declare const badgeVariantMap: BadgeVariantMap;
|
|
25
|
+
|
|
26
|
+
export declare const badge: ((
|
|
27
|
+
props?: BadgeVariantProps,
|
|
28
|
+
) => Record<BadgeSlotName, string>) & {
|
|
29
|
+
splitVariantProps: <T extends BadgeVariantProps>(
|
|
30
|
+
props: T,
|
|
31
|
+
) => [BadgeVariantProps, Omit<T, keyof BadgeVariantProps>];
|
|
32
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import './badge.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const badgeSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-badge__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"label",
|
|
11
|
+
"seed-badge__label"
|
|
12
|
+
]
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const defaultVariant = {
|
|
16
|
+
"size": "medium",
|
|
17
|
+
"variant": "solid",
|
|
18
|
+
"tone": "neutral"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const compoundVariants = [
|
|
22
|
+
{
|
|
23
|
+
"tone": "neutral",
|
|
24
|
+
"variant": "weak"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"tone": "neutral",
|
|
28
|
+
"variant": "solid"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"tone": "neutral",
|
|
32
|
+
"variant": "outline"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"tone": "brand",
|
|
36
|
+
"variant": "weak"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"tone": "brand",
|
|
40
|
+
"variant": "solid"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"tone": "brand",
|
|
44
|
+
"variant": "outline"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"tone": "informative",
|
|
48
|
+
"variant": "weak"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"tone": "informative",
|
|
52
|
+
"variant": "solid"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"tone": "informative",
|
|
56
|
+
"variant": "outline"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"tone": "positive",
|
|
60
|
+
"variant": "weak"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tone": "positive",
|
|
64
|
+
"variant": "solid"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"tone": "positive",
|
|
68
|
+
"variant": "outline"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"tone": "warning",
|
|
72
|
+
"variant": "weak"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"tone": "warning",
|
|
76
|
+
"variant": "solid"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"tone": "warning",
|
|
80
|
+
"variant": "outline"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"tone": "critical",
|
|
84
|
+
"variant": "weak"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"tone": "critical",
|
|
88
|
+
"variant": "solid"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"tone": "critical",
|
|
92
|
+
"variant": "outline"
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
export const badgeVariantMap = {
|
|
97
|
+
"size": [
|
|
98
|
+
"medium",
|
|
99
|
+
"large"
|
|
100
|
+
],
|
|
101
|
+
"variant": [
|
|
102
|
+
"weak",
|
|
103
|
+
"solid",
|
|
104
|
+
"outline"
|
|
105
|
+
],
|
|
106
|
+
"tone": [
|
|
107
|
+
"neutral",
|
|
108
|
+
"brand",
|
|
109
|
+
"informative",
|
|
110
|
+
"positive",
|
|
111
|
+
"warning",
|
|
112
|
+
"critical"
|
|
113
|
+
]
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const badgeVariantKeys = Object.keys(badgeVariantMap);
|
|
117
|
+
|
|
118
|
+
export function badge(props) {
|
|
119
|
+
return Object.fromEntries(
|
|
120
|
+
badgeSlotNames.map(([slot, className]) => {
|
|
121
|
+
return [
|
|
122
|
+
slot,
|
|
123
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
124
|
+
];
|
|
125
|
+
}),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
Object.assign(badge, { splitVariantProps: (props) => splitVariantProps(props, badgeVariantMap) });
|
|
130
|
+
|
|
131
|
+
// @recipe(seed): badge
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.seed-bottom-sheet-handle__root {
|
|
2
2
|
position: absolute;
|
|
3
|
-
top:
|
|
3
|
+
top: 50%;
|
|
4
4
|
left: 50%;
|
|
5
|
-
transform:
|
|
5
|
+
transform: translate(-50%, -50%);
|
|
6
6
|
width: 36px;
|
|
7
7
|
height: 4px;
|
|
8
8
|
background-color: var(--seed-color-palette-gray-400);
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
.seed-bottom-sheet-handle__touchArea {
|
|
12
12
|
position: absolute;
|
|
13
|
-
top:
|
|
13
|
+
top: calc(6px + 4px / 2 - 44px / 2);
|
|
14
14
|
left: 50%;
|
|
15
|
-
transform:
|
|
15
|
+
transform: translateX(-50%);
|
|
16
|
+
z-index: 1;
|
|
16
17
|
width: 44px;
|
|
17
18
|
height: 44px
|
|
18
19
|
}
|
package/recipes/bottom-sheet.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
right: 0;
|
|
8
8
|
bottom: 0;
|
|
9
9
|
left: 0;
|
|
10
|
-
--sheet-z-index:
|
|
10
|
+
--sheet-z-index: 20;
|
|
11
11
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0))
|
|
12
12
|
}
|
|
13
13
|
.seed-bottom-sheet__backdrop {
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
background: var(--seed-color-bg-layer-floating);
|
|
30
30
|
border-top-left-radius: var(--seed-radius-r6);
|
|
31
31
|
border-top-right-radius: var(--seed-radius-r6);
|
|
32
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
33
32
|
transform: translate3d(0, 100%, 0)
|
|
34
33
|
}
|
|
35
34
|
.seed-bottom-sheet__header {
|
|
@@ -58,6 +57,8 @@
|
|
|
58
57
|
.seed-bottom-sheet__body {
|
|
59
58
|
display: flex;
|
|
60
59
|
flex-direction: column;
|
|
60
|
+
flex: 1;
|
|
61
|
+
min-height: 0;
|
|
61
62
|
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
62
63
|
padding-right: var(--seed-dimension-spacing-x-global-gutter)
|
|
63
64
|
}
|
|
@@ -4,7 +4,7 @@ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs"
|
|
|
4
4
|
const checkboxGroupSlotNames = [
|
|
5
5
|
[
|
|
6
6
|
"root",
|
|
7
|
-
"seed-checkbox-
|
|
7
|
+
"seed-checkbox-group__root"
|
|
8
8
|
],
|
|
9
9
|
[
|
|
10
10
|
"text",
|
|
@@ -16,17 +16,7 @@ const defaultVariant = {};
|
|
|
16
16
|
|
|
17
17
|
const compoundVariants = [];
|
|
18
18
|
|
|
19
|
-
export const checkboxGroupVariantMap = {
|
|
20
|
-
"disabled": [
|
|
21
|
-
true
|
|
22
|
-
],
|
|
23
|
-
"loading": [
|
|
24
|
-
true
|
|
25
|
-
],
|
|
26
|
-
"checked": [
|
|
27
|
-
true
|
|
28
|
-
]
|
|
29
|
-
};
|
|
19
|
+
export const checkboxGroupVariantMap = {};
|
|
30
20
|
|
|
31
21
|
export const checkboxGroupVariantKeys = Object.keys(checkboxGroupVariantMap);
|
|
32
22
|
|
package/recipes/checkbox.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.seed-checkbox__root {
|
|
2
2
|
display: flex;
|
|
3
|
-
align-items:
|
|
3
|
+
align-items: flex-start;
|
|
4
4
|
position: relative;
|
|
5
5
|
gap: var(--seed-dimension-x2)
|
|
6
6
|
}
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
font-weight: var(--seed-font-weight-bold)
|
|
15
15
|
}
|
|
16
16
|
.seed-checkbox__root--size_medium {
|
|
17
|
-
min-height: var(--seed-dimension-x8)
|
|
17
|
+
min-height: var(--seed-dimension-x8);
|
|
18
|
+
--checkmark-margin-top: calc((var(--seed-dimension-x8) - var(--seed-dimension-x5)) / 2)
|
|
18
19
|
}
|
|
19
20
|
.seed-checkbox__label--size_medium {
|
|
20
21
|
font-size: var(--seed-font-size-t4);
|
|
21
22
|
line-height: var(--seed-line-height-t4)
|
|
22
23
|
}
|
|
23
24
|
.seed-checkbox__root--size_large {
|
|
24
|
-
min-height: var(--seed-dimension-x9)
|
|
25
|
+
min-height: var(--seed-dimension-x9);
|
|
26
|
+
--checkmark-margin-top: calc((var(--seed-dimension-x9) - var(--seed-dimension-x6)) / 2)
|
|
25
27
|
}
|
|
26
28
|
.seed-checkbox__label--size_large {
|
|
27
29
|
font-size: var(--seed-font-size-t5);
|
package/recipes/checkmark.css
CHANGED
package/recipes/radio-group.css
CHANGED
package/recipes/radio-group.d.ts
CHANGED
package/recipes/radio-group.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs"
|
|
|
4
4
|
const radioGroupSlotNames = [
|
|
5
5
|
[
|
|
6
6
|
"root",
|
|
7
|
-
"seed-radio-
|
|
7
|
+
"seed-radio-group__root"
|
|
8
8
|
],
|
|
9
9
|
[
|
|
10
10
|
"text",
|
|
@@ -16,17 +16,7 @@ const defaultVariant = {};
|
|
|
16
16
|
|
|
17
17
|
const compoundVariants = [];
|
|
18
18
|
|
|
19
|
-
export const radioGroupVariantMap = {
|
|
20
|
-
"disabled": [
|
|
21
|
-
true
|
|
22
|
-
],
|
|
23
|
-
"loading": [
|
|
24
|
-
true
|
|
25
|
-
],
|
|
26
|
-
"checked": [
|
|
27
|
-
true
|
|
28
|
-
]
|
|
29
|
-
};
|
|
19
|
+
export const radioGroupVariantMap = {};
|
|
30
20
|
|
|
31
21
|
export const radioGroupVariantKeys = Object.keys(radioGroupVariantMap);
|
|
32
22
|
|
package/recipes/radio.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.seed-radio__root {
|
|
2
2
|
display: flex;
|
|
3
|
-
align-items:
|
|
3
|
+
align-items: flex-start;
|
|
4
4
|
position: relative;
|
|
5
5
|
gap: var(--seed-dimension-x2)
|
|
6
6
|
}
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
font-weight: var(--seed-font-weight-bold)
|
|
15
15
|
}
|
|
16
16
|
.seed-radio__root--size_medium {
|
|
17
|
-
min-height: var(--seed-dimension-x8)
|
|
17
|
+
min-height: var(--seed-dimension-x8);
|
|
18
|
+
--radiomark-margin-top: calc((var(--seed-dimension-x8) - var(--seed-dimension-x5)) / 2)
|
|
18
19
|
}
|
|
19
20
|
.seed-radio__label--size_medium {
|
|
20
21
|
font-size: var(--seed-font-size-t4);
|
|
21
22
|
line-height: var(--seed-line-height-t4)
|
|
22
23
|
}
|
|
23
24
|
.seed-radio__root--size_large {
|
|
24
|
-
min-height: var(--seed-dimension-x9)
|
|
25
|
+
min-height: var(--seed-dimension-x9);
|
|
26
|
+
--radiomark-margin-top: calc((var(--seed-dimension-x9) - var(--seed-dimension-x6)) / 2)
|
|
25
27
|
}
|
|
26
28
|
.seed-radio__label--size_large {
|
|
27
29
|
font-size: var(--seed-font-size-t5);
|
package/recipes/radiomark.css
CHANGED
package/recipes/switch.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.seed-switch__root {
|
|
2
2
|
display: flex;
|
|
3
|
-
align-items:
|
|
4
|
-
justify-content: space-between;
|
|
3
|
+
align-items: flex-start;
|
|
5
4
|
position: relative
|
|
6
5
|
}
|
|
7
6
|
.seed-switch__label {
|
|
@@ -15,7 +14,8 @@
|
|
|
15
14
|
}
|
|
16
15
|
.seed-switch__label--size_16 {
|
|
17
16
|
font-size: var(--seed-font-size-t3);
|
|
18
|
-
line-height: var(--seed-line-height-t3)
|
|
17
|
+
line-height: var(--seed-line-height-t3);
|
|
18
|
+
margin-top: calc(var(--seed-dimension-x6) / 2 - var(--seed-line-height-t3) / 2)
|
|
19
19
|
}
|
|
20
20
|
.seed-switch__root--size_24 {
|
|
21
21
|
min-height: var(--seed-dimension-x6);
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
.seed-switch__label--size_24 {
|
|
25
25
|
font-size: var(--seed-font-size-t4);
|
|
26
|
-
line-height: var(--seed-line-height-t4)
|
|
26
|
+
line-height: var(--seed-line-height-t4);
|
|
27
|
+
margin-top: calc(var(--seed-dimension-x6) / 2 - var(--seed-line-height-t4) / 2)
|
|
27
28
|
}
|
|
28
29
|
.seed-switch__root--size_32 {
|
|
29
30
|
min-height: var(--seed-dimension-x8);
|
|
@@ -31,7 +32,8 @@
|
|
|
31
32
|
}
|
|
32
33
|
.seed-switch__label--size_32 {
|
|
33
34
|
font-size: var(--seed-font-size-t5);
|
|
34
|
-
line-height: var(--seed-line-height-t5)
|
|
35
|
+
line-height: var(--seed-line-height-t5);
|
|
36
|
+
margin-top: calc(var(--seed-dimension-x8) / 2 - var(--seed-line-height-t5) / 2)
|
|
35
37
|
}
|
|
36
38
|
.seed-switch__label--disabled_true {
|
|
37
39
|
opacity: 0.58
|
package/recipes/switchmark.css
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
.seed-switchmark__root--size_16 {
|
|
20
20
|
min-width: 26px;
|
|
21
21
|
min-height: 16px;
|
|
22
|
+
margin-top: calc((var(--seed-dimension-x6) - 16px) / 2);
|
|
23
|
+
margin-bottom: calc((var(--seed-dimension-x6) - 16px) / 2);
|
|
22
24
|
padding: 2px 2px
|
|
23
25
|
}
|
|
24
26
|
.seed-switchmark__thumb--size_16 {
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
.seed-switchmark__root--size_24 {
|
|
29
31
|
min-width: 38px;
|
|
30
32
|
min-height: 24px;
|
|
33
|
+
margin-top: calc((var(--seed-dimension-x6) - 24px) / 2);
|
|
34
|
+
margin-bottom: calc((var(--seed-dimension-x6) - 24px) / 2);
|
|
31
35
|
padding: 2px 2px
|
|
32
36
|
}
|
|
33
37
|
.seed-switchmark__thumb--size_24 {
|
|
@@ -37,6 +41,8 @@
|
|
|
37
41
|
.seed-switchmark__root--size_32 {
|
|
38
42
|
min-width: 52px;
|
|
39
43
|
min-height: 32px;
|
|
44
|
+
margin-top: calc((var(--seed-dimension-x8) - 32px) / 2);
|
|
45
|
+
margin-bottom: calc((var(--seed-dimension-x8) - 32px) / 2);
|
|
40
46
|
padding: 3px 3px
|
|
41
47
|
}
|
|
42
48
|
.seed-switchmark__thumb--size_32 {
|
package/recipes/tag-group.css
CHANGED
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
flex-wrap: wrap;
|
|
6
6
|
width: 100%
|
|
7
7
|
}
|
|
8
|
+
.seed-tag-group__separatorWrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex-shrink: 0
|
|
13
|
+
}
|
|
8
14
|
.seed-tag-group__separator {
|
|
9
15
|
color: var(--seed-color-palette-gray-600);
|
|
10
16
|
font-weight: var(--seed-font-weight-regular);
|
package/recipes/tag-group.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare type TagGroupVariantMap = {
|
|
|
11
11
|
|
|
12
12
|
export declare type TagGroupVariantProps = Partial<TagGroupVariant>;
|
|
13
13
|
|
|
14
|
-
export declare type TagGroupSlotName = "root" | "separator";
|
|
14
|
+
export declare type TagGroupSlotName = "root" | "separatorWrapper" | "separator";
|
|
15
15
|
|
|
16
16
|
export declare const tagGroupVariantMap: TagGroupVariantMap;
|
|
17
17
|
|
package/recipes/tag-group.mjs
CHANGED
package/vars/component/chip.d.ts
CHANGED
|
@@ -276,7 +276,27 @@ export declare const vars: {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"sizeSmallLayoutWithText": {
|
|
280
|
+
"enabled": {
|
|
281
|
+
"root": {
|
|
282
|
+
"minWidth": "44px"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"sizeMediumLayoutWithText": {
|
|
287
|
+
"enabled": {
|
|
288
|
+
"root": {
|
|
289
|
+
"minWidth": "var(--seed-dimension-x12)"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"sizeLargeLayoutWithText": {
|
|
294
|
+
"enabled": {
|
|
295
|
+
"root": {
|
|
296
|
+
"minWidth": "var(--seed-dimension-x13)"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
280
300
|
"sizeSmallLayoutIconOnly": {
|
|
281
301
|
"enabled": {
|
|
282
302
|
"root": {
|