@seed-design/lynx-css 0.2.0-alpha.3 → 0.2.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 +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/color/bg.d.ts +1 -1
- package/vars/component/chip.d.ts +21 -1
- package/vars/component/chip.mjs +21 -1
- package/vars/component/image-frame.d.ts +2 -2
- 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/gradient.d.ts +2 -2
- 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
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
@layer seed-components {
|
|
2
|
-
.seed-switchmark__root {
|
|
3
|
-
border-radius: var(--seed-radius-full);
|
|
4
|
-
background-color: var(--seed-color-palette-gray-600);
|
|
5
|
-
transition: background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms, opacity var(--seed-duration-d1) var(--seed-timing-function-easing);
|
|
6
|
-
display: flex;
|
|
7
|
-
position: relative;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.seed-switchmark__thumb {
|
|
11
|
-
border-radius: var(--seed-radius-full);
|
|
12
|
-
transition: transform var(--seed-duration-d3) var(--seed-timing-function-easing), background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms;
|
|
13
|
-
transform: scale(.8);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.seed-switchmark__thumb--tone_neutral {
|
|
17
|
-
background-color: var(--seed-color-fg-neutral-inverted);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.seed-switchmark__thumb--tone_brand {
|
|
21
|
-
background-color: var(--seed-color-palette-static-white);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.seed-switchmark__root--size_16 {
|
|
25
|
-
min-width: 26px;
|
|
26
|
-
min-height: 16px;
|
|
27
|
-
padding: 2px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.seed-switchmark__thumb--size_16 {
|
|
31
|
-
width: 12px;
|
|
32
|
-
height: 12px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.seed-switchmark__root--size_24 {
|
|
36
|
-
min-width: 38px;
|
|
37
|
-
min-height: 24px;
|
|
38
|
-
padding: 2px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.seed-switchmark__thumb--size_24 {
|
|
42
|
-
width: 20px;
|
|
43
|
-
height: 20px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.seed-switchmark__root--size_32 {
|
|
47
|
-
min-width: 52px;
|
|
48
|
-
min-height: 32px;
|
|
49
|
-
padding: 3px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.seed-switchmark__thumb--size_32 {
|
|
53
|
-
width: 26px;
|
|
54
|
-
height: 26px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.seed-switchmark__root--disabled_true {
|
|
58
|
-
opacity: .38;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.seed-switchmark__root--tone_brand-checked_true {
|
|
62
|
-
background-color: var(--seed-color-bg-brand-solid);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.seed-switchmark__root--tone_neutral-checked_true-disabled_false {
|
|
66
|
-
background-color: var(--seed-color-bg-neutral-inverted);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.seed-switchmark__root--tone_neutral-checked_true-disabled_true {
|
|
70
|
-
background-color: var(--seed-color-palette-gray-600);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.seed-switchmark__thumb--tone_neutral-disabled_true {
|
|
74
|
-
background-color: var(--seed-color-palette-static-black-alpha-700);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.seed-switchmark__thumb--size_32-checked_true {
|
|
78
|
-
transform: scale(1) translateX(20px);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.seed-switchmark__thumb--size_24-checked_true {
|
|
82
|
-
transform: scale(1) translateX(14px);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.seed-switchmark__thumb--size_16-checked_true {
|
|
86
|
-
transform: scale(1) translateX(10px);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import './switchmark.layered.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const switchmarkSlotNames = [
|
|
5
|
-
[
|
|
6
|
-
"root",
|
|
7
|
-
"seed-switchmark__root"
|
|
8
|
-
],
|
|
9
|
-
[
|
|
10
|
-
"thumb",
|
|
11
|
-
"seed-switchmark__thumb"
|
|
12
|
-
]
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
const defaultVariant = {
|
|
16
|
-
"tone": "brand",
|
|
17
|
-
"size": "32",
|
|
18
|
-
"checked": false,
|
|
19
|
-
"disabled": false
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const compoundVariants = [
|
|
23
|
-
{
|
|
24
|
-
"tone": "brand",
|
|
25
|
-
"checked": true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"tone": "neutral",
|
|
29
|
-
"checked": true,
|
|
30
|
-
"disabled": false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"tone": "neutral",
|
|
34
|
-
"checked": true,
|
|
35
|
-
"disabled": true
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"tone": "neutral",
|
|
39
|
-
"disabled": true
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"size": "32",
|
|
43
|
-
"checked": true
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"size": "24",
|
|
47
|
-
"checked": true
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"size": "16",
|
|
51
|
-
"checked": true
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
|
|
55
|
-
export const switchmarkVariantMap = {
|
|
56
|
-
"tone": [
|
|
57
|
-
"neutral",
|
|
58
|
-
"brand"
|
|
59
|
-
],
|
|
60
|
-
"size": [
|
|
61
|
-
"16",
|
|
62
|
-
"24",
|
|
63
|
-
"32"
|
|
64
|
-
],
|
|
65
|
-
"checked": [
|
|
66
|
-
true,
|
|
67
|
-
false
|
|
68
|
-
],
|
|
69
|
-
"disabled": [
|
|
70
|
-
true,
|
|
71
|
-
false
|
|
72
|
-
]
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const switchmarkVariantKeys = Object.keys(switchmarkVariantMap);
|
|
76
|
-
|
|
77
|
-
export function switchmark(props) {
|
|
78
|
-
return Object.fromEntries(
|
|
79
|
-
switchmarkSlotNames.map(([slot, className]) => {
|
|
80
|
-
return [
|
|
81
|
-
slot,
|
|
82
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
83
|
-
];
|
|
84
|
-
}),
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Object.assign(switchmark, { splitVariantProps: (props) => splitVariantProps(props, switchmarkVariantMap) });
|
|
89
|
-
|
|
90
|
-
// @recipe(seed): switchmark
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@layer seed-components {
|
|
2
|
-
.seed-tag-group-item__root {
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
flex-shrink: 0;
|
|
5
|
-
align-items: center;
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.seed-tag-group-item__label--size_t2 {
|
|
10
|
-
font-size: var(--seed-font-size-t2);
|
|
11
|
-
line-height: var(--seed-line-height-t2);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.seed-tag-group-item__label--size_t3 {
|
|
15
|
-
font-size: var(--seed-font-size-t3);
|
|
16
|
-
line-height: var(--seed-line-height-t3);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.seed-tag-group-item__label--size_t4 {
|
|
20
|
-
font-size: var(--seed-font-size-t4);
|
|
21
|
-
line-height: var(--seed-line-height-t4);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.seed-tag-group-item__label--weight_regular {
|
|
25
|
-
font-weight: var(--seed-font-weight-regular);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.seed-tag-group-item__label--weight_bold {
|
|
29
|
-
font-weight: var(--seed-font-weight-bold);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.seed-tag-group-item__label--tone_neutralSubtle {
|
|
33
|
-
color: var(--seed-color-fg-neutral-subtle);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.seed-tag-group-item__label--tone_neutral {
|
|
37
|
-
color: var(--seed-color-fg-neutral);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.seed-tag-group-item__label--tone_brand {
|
|
41
|
-
color: var(--seed-color-fg-brand);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import './tag-group-item.layered.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const tagGroupItemSlotNames = [
|
|
5
|
-
[
|
|
6
|
-
"root",
|
|
7
|
-
"seed-tag-group-item__root"
|
|
8
|
-
],
|
|
9
|
-
[
|
|
10
|
-
"label",
|
|
11
|
-
"seed-tag-group-item__label"
|
|
12
|
-
]
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
const defaultVariant = {
|
|
16
|
-
"size": "t2",
|
|
17
|
-
"weight": "regular",
|
|
18
|
-
"tone": "neutralSubtle"
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const compoundVariants = [];
|
|
22
|
-
|
|
23
|
-
export const tagGroupItemVariantMap = {
|
|
24
|
-
"size": [
|
|
25
|
-
"t2",
|
|
26
|
-
"t3",
|
|
27
|
-
"t4"
|
|
28
|
-
],
|
|
29
|
-
"weight": [
|
|
30
|
-
"regular",
|
|
31
|
-
"bold"
|
|
32
|
-
],
|
|
33
|
-
"tone": [
|
|
34
|
-
"neutralSubtle",
|
|
35
|
-
"neutral",
|
|
36
|
-
"brand"
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const tagGroupItemVariantKeys = Object.keys(tagGroupItemVariantMap);
|
|
41
|
-
|
|
42
|
-
export function tagGroupItem(props) {
|
|
43
|
-
return Object.fromEntries(
|
|
44
|
-
tagGroupItemSlotNames.map(([slot, className]) => {
|
|
45
|
-
return [
|
|
46
|
-
slot,
|
|
47
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
48
|
-
];
|
|
49
|
-
}),
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
Object.assign(tagGroupItem, { splitVariantProps: (props) => splitVariantProps(props, tagGroupItemVariantMap) });
|
|
54
|
-
|
|
55
|
-
// @recipe(seed): tag-group-item
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@layer seed-components {
|
|
2
|
-
.seed-tag-group__root {
|
|
3
|
-
flex-flow: wrap;
|
|
4
|
-
align-items: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.seed-tag-group__separator {
|
|
10
|
-
color: var(--seed-color-palette-gray-600);
|
|
11
|
-
font-weight: var(--seed-font-weight-regular);
|
|
12
|
-
margin-left: var(--seed-dimension-x0_5);
|
|
13
|
-
margin-right: var(--seed-dimension-x0_5);
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.seed-tag-group__separator--size_t2 {
|
|
18
|
-
font-size: var(--seed-font-size-t2);
|
|
19
|
-
line-height: var(--seed-line-height-t2);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.seed-tag-group__separator--size_t3 {
|
|
23
|
-
font-size: var(--seed-font-size-t3);
|
|
24
|
-
line-height: var(--seed-line-height-t3);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.seed-tag-group__separator--size_t4 {
|
|
28
|
-
font-size: var(--seed-font-size-t4);
|
|
29
|
-
line-height: var(--seed-line-height-t4);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import './tag-group.layered.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const tagGroupSlotNames = [
|
|
5
|
-
[
|
|
6
|
-
"root",
|
|
7
|
-
"seed-tag-group__root"
|
|
8
|
-
],
|
|
9
|
-
[
|
|
10
|
-
"separator",
|
|
11
|
-
"seed-tag-group__separator"
|
|
12
|
-
]
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
const defaultVariant = {
|
|
16
|
-
"size": "t2"
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const compoundVariants = [];
|
|
20
|
-
|
|
21
|
-
export const tagGroupVariantMap = {
|
|
22
|
-
"size": [
|
|
23
|
-
"t2",
|
|
24
|
-
"t3",
|
|
25
|
-
"t4"
|
|
26
|
-
]
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const tagGroupVariantKeys = Object.keys(tagGroupVariantMap);
|
|
30
|
-
|
|
31
|
-
export function tagGroup(props) {
|
|
32
|
-
return Object.fromEntries(
|
|
33
|
-
tagGroupSlotNames.map(([slot, className]) => {
|
|
34
|
-
return [
|
|
35
|
-
slot,
|
|
36
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
37
|
-
];
|
|
38
|
-
}),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
Object.assign(tagGroup, { splitVariantProps: (props) => splitVariantProps(props, tagGroupVariantMap) });
|
|
43
|
-
|
|
44
|
-
// @recipe(seed): tag-group
|