@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-toggle-
|
|
1
|
+
.seed-toggle-button {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
@@ -9,29 +9,29 @@
|
|
|
9
9
|
-webkit-font-smoothing: antialiased;
|
|
10
10
|
-moz-osx-font-smoothing: grayscale;
|
|
11
11
|
text-decoration: none;
|
|
12
|
-
font-family: inherit;
|
|
13
12
|
flex-shrink: 0;
|
|
14
|
-
font-
|
|
13
|
+
font-family: inherit;
|
|
15
14
|
}
|
|
16
|
-
.seed-toggle-
|
|
15
|
+
.seed-toggle-button:is(:focus, [data-focus]) {
|
|
17
16
|
outline: none;
|
|
18
17
|
}
|
|
19
|
-
.seed-toggle-
|
|
18
|
+
.seed-toggle-button:is(:disabled, [disabled], [data-disabled]) {
|
|
20
19
|
cursor: not-allowed;
|
|
21
20
|
}
|
|
22
|
-
.seed-toggle-
|
|
21
|
+
.seed-toggle-button {
|
|
23
22
|
transition: background-color var(--seed-duration-d4) var(--seed-timing-function-easing);
|
|
23
|
+
font-weight: var(--seed-font-weight-bold);
|
|
24
24
|
}
|
|
25
|
-
.seed-toggle-
|
|
25
|
+
.seed-toggle-button--variant_brandSolid {
|
|
26
26
|
background: var(--seed-color-bg-brand-solid);
|
|
27
27
|
color: var(--seed-color-palette-static-white);
|
|
28
28
|
--track-color: var(--seed-color-palette-static-white-alpha-200);
|
|
29
29
|
--range-color: var(--seed-color-palette-static-white);
|
|
30
30
|
}
|
|
31
|
-
.seed-toggle-
|
|
31
|
+
.seed-toggle-button--variant_brandSolid:is(:active, [data-active]) {
|
|
32
32
|
background: var(--seed-color-bg-brand-solid-pressed);
|
|
33
33
|
}
|
|
34
|
-
.seed-toggle-
|
|
34
|
+
.seed-toggle-button--variant_brandSolid:is([aria-pressed=true], [data-pressed]) {
|
|
35
35
|
background: var(--seed-color-bg-neutral-weak);
|
|
36
36
|
color: var(--seed-color-fg-neutral);
|
|
37
37
|
--track-color: var(--seed-color-palette-gray-500);
|
|
@@ -39,35 +39,35 @@
|
|
|
39
39
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
40
40
|
--seed-suffix-icon-color: var(--seed-color-fg-neutral);
|
|
41
41
|
}
|
|
42
|
-
.seed-toggle-
|
|
42
|
+
.seed-toggle-button--variant_brandSolid:is([aria-pressed=true], [data-pressed]):is(:active, [data-active]) {
|
|
43
43
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
44
44
|
}
|
|
45
|
-
.seed-toggle-
|
|
45
|
+
.seed-toggle-button--variant_brandSolid:is(:disabled, [disabled], [data-disabled]) {
|
|
46
46
|
background: var(--seed-color-bg-disabled);
|
|
47
47
|
color: var(--seed-color-fg-disabled);
|
|
48
48
|
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
49
49
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
50
50
|
}
|
|
51
|
-
.seed-toggle-
|
|
51
|
+
.seed-toggle-button--variant_brandSolid[data-loading] {
|
|
52
52
|
background: var(--seed-color-bg-brand-solid-pressed);
|
|
53
53
|
}
|
|
54
|
-
.seed-toggle-
|
|
54
|
+
.seed-toggle-button--variant_brandSolid:is([aria-pressed=true], [data-pressed])[data-loading] {
|
|
55
55
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
56
56
|
}
|
|
57
|
-
.seed-toggle-
|
|
57
|
+
.seed-toggle-button--variant_brandSolid {
|
|
58
58
|
--seed-prefix-icon-color: var(--seed-color-palette-static-white);
|
|
59
59
|
--seed-suffix-icon-color: var(--seed-color-palette-static-white);
|
|
60
60
|
}
|
|
61
|
-
.seed-toggle-
|
|
61
|
+
.seed-toggle-button--variant_neutralWeak {
|
|
62
62
|
background: var(--seed-color-bg-neutral-weak);
|
|
63
63
|
color: var(--seed-color-fg-neutral);
|
|
64
64
|
--track-color: var(--seed-color-palette-gray-500);
|
|
65
65
|
--range-color: var(--seed-color-fg-neutral);
|
|
66
66
|
}
|
|
67
|
-
.seed-toggle-
|
|
67
|
+
.seed-toggle-button--variant_neutralWeak:is(:active, [data-active]) {
|
|
68
68
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
69
69
|
}
|
|
70
|
-
.seed-toggle-
|
|
70
|
+
.seed-toggle-button--variant_neutralWeak:is([aria-pressed=true], [data-pressed]) {
|
|
71
71
|
background: var(--seed-color-bg-neutral-weak);
|
|
72
72
|
color: var(--seed-color-fg-neutral);
|
|
73
73
|
--track-color: var(--seed-color-palette-gray-500);
|
|
@@ -75,26 +75,26 @@
|
|
|
75
75
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
76
76
|
--seed-suffix-icon-color: var(--seed-color-fg-neutral);
|
|
77
77
|
}
|
|
78
|
-
.seed-toggle-
|
|
78
|
+
.seed-toggle-button--variant_neutralWeak:is([aria-pressed=true], [data-pressed]):is(:active, [data-active]) {
|
|
79
79
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
80
80
|
}
|
|
81
|
-
.seed-toggle-
|
|
81
|
+
.seed-toggle-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
|
}
|
|
87
|
-
.seed-toggle-
|
|
87
|
+
.seed-toggle-button--variant_neutralWeak[data-loading] {
|
|
88
88
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
89
89
|
}
|
|
90
|
-
.seed-toggle-
|
|
90
|
+
.seed-toggle-button--variant_neutralWeak:is([aria-pressed=true], [data-pressed])[data-loading] {
|
|
91
91
|
background: var(--seed-color-bg-neutral-weak-pressed);
|
|
92
92
|
}
|
|
93
|
-
.seed-toggle-
|
|
93
|
+
.seed-toggle-button--variant_neutralWeak {
|
|
94
94
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
95
95
|
--seed-suffix-icon-color: var(--seed-color-fg-neutral);
|
|
96
96
|
}
|
|
97
|
-
.seed-toggle-
|
|
97
|
+
.seed-toggle-button--size_xsmall {
|
|
98
98
|
height: var(--seed-dimension-x8);
|
|
99
99
|
border-radius: var(--seed-radius-full);
|
|
100
100
|
gap: var(--seed-dimension-x1);
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
--seed-prefix-icon-size: var(--seed-dimension-x3_5);
|
|
107
107
|
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
108
108
|
}
|
|
109
|
-
.seed-toggle-
|
|
109
|
+
.seed-toggle-button--size_small {
|
|
110
110
|
height: var(--seed-dimension-x9);
|
|
111
111
|
border-radius: var(--seed-radius-full);
|
|
112
112
|
gap: var(--seed-dimension-x1);
|
|
@@ -15,13 +15,11 @@ declare type ToggleButtonVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
export declare type ToggleButtonVariantProps = Partial<ToggleButtonVariant>;
|
|
17
17
|
|
|
18
|
-
export declare type ToggleButtonSlotName = "root";
|
|
19
|
-
|
|
20
18
|
export declare const toggleButtonVariantMap: ToggleButtonVariantMap;
|
|
21
19
|
|
|
22
20
|
export declare const toggleButton: ((
|
|
23
21
|
props?: ToggleButtonVariantProps,
|
|
24
|
-
) =>
|
|
22
|
+
) => string) & {
|
|
25
23
|
splitVariantProps: <T extends ToggleButtonVariantProps>(
|
|
26
24
|
props: T,
|
|
27
25
|
) => [ToggleButtonVariantProps, Omit<T, keyof ToggleButtonVariantProps>];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const toggleButtonSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-toggle-button__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"variant": "brandSolid",
|
|
12
5
|
"size": "small"
|
|
@@ -28,13 +21,10 @@ export const toggleButtonVariantMap = {
|
|
|
28
21
|
export const toggleButtonVariantKeys = Object.keys(toggleButtonVariantMap);
|
|
29
22
|
|
|
30
23
|
export function toggleButton(props) {
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
36
|
-
];
|
|
37
|
-
}),
|
|
24
|
+
return createClassName(
|
|
25
|
+
"seed-toggle-button",
|
|
26
|
+
mergeVariants(defaultVariant, props),
|
|
27
|
+
compoundVariants,
|
|
38
28
|
);
|
|
39
29
|
}
|
|
40
30
|
|
|
@@ -24,14 +24,11 @@ export declare const vars: {
|
|
|
24
24
|
"link": {
|
|
25
25
|
"fontSize": "var(--seed-font-size-t4)",
|
|
26
26
|
"lineHeight": "var(--seed-line-height-t4)",
|
|
27
|
-
"fontWeight": "var(--seed-font-weight-regular)"
|
|
28
|
-
"height": "var(--seed-dimension-x10)",
|
|
29
|
-
"marginLeft": "var(--seed-dimension-x4)"
|
|
27
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
30
28
|
},
|
|
31
29
|
"suffixIcon": {
|
|
32
30
|
"size": "var(--seed-dimension-x4)",
|
|
33
|
-
"targetSize": "var(--seed-dimension-x10)"
|
|
34
|
-
"marginLeft": "var(--seed-dimension-x4)"
|
|
31
|
+
"targetSize": "var(--seed-dimension-x10)"
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
34
|
},
|
|
@@ -24,14 +24,11 @@ export const vars = {
|
|
|
24
24
|
"link": {
|
|
25
25
|
"fontSize": "var(--seed-font-size-t4)",
|
|
26
26
|
"lineHeight": "var(--seed-line-height-t4)",
|
|
27
|
-
"fontWeight": "var(--seed-font-weight-regular)"
|
|
28
|
-
"height": "var(--seed-dimension-x10)",
|
|
29
|
-
"marginLeft": "var(--seed-dimension-x4)"
|
|
27
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
30
28
|
},
|
|
31
29
|
"suffixIcon": {
|
|
32
30
|
"size": "var(--seed-dimension-x4)",
|
|
33
|
-
"targetSize": "var(--seed-dimension-x10)"
|
|
34
|
-
"marginLeft": "var(--seed-dimension-x4)"
|
|
31
|
+
"targetSize": "var(--seed-dimension-x10)"
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
34
|
},
|
|
@@ -9,7 +9,10 @@ export declare const vars: {
|
|
|
9
9
|
},
|
|
10
10
|
"arrow": {
|
|
11
11
|
"color": "var(--seed-color-bg-neutral-solid)",
|
|
12
|
-
"
|
|
12
|
+
"width": "12px",
|
|
13
|
+
"height": "8px",
|
|
14
|
+
"cornerRadius": "2px",
|
|
15
|
+
"gutter": "4px"
|
|
13
16
|
},
|
|
14
17
|
"title": {
|
|
15
18
|
"color": "var(--seed-color-palette-static-white)",
|
|
@@ -9,7 +9,10 @@ export const vars = {
|
|
|
9
9
|
},
|
|
10
10
|
"arrow": {
|
|
11
11
|
"color": "var(--seed-color-bg-neutral-solid)",
|
|
12
|
-
"
|
|
12
|
+
"width": "12px",
|
|
13
|
+
"height": "8px",
|
|
14
|
+
"cornerRadius": "2px",
|
|
15
|
+
"gutter": "4px"
|
|
13
16
|
},
|
|
14
17
|
"title": {
|
|
15
18
|
"color": "var(--seed-color-palette-static-white)",
|
|
@@ -23,6 +23,7 @@ export { vars as identityPlaceholder } from "./identity-placeholder";
|
|
|
23
23
|
export { vars as inlineBanner } from "./inline-banner";
|
|
24
24
|
export { vars as linkContent } from "./link-content";
|
|
25
25
|
export { vars as mannerTempBadge } from "./manner-temp-badge";
|
|
26
|
+
export { vars as mannerTemp } from "./manner-temp";
|
|
26
27
|
export { vars as progressCircle } from "./progress-circle";
|
|
27
28
|
export { vars as radio } from "./radio";
|
|
28
29
|
export { vars as reactionButton } from "./reaction-button";
|
|
@@ -34,6 +35,7 @@ export { vars as snackbar } from "./snackbar";
|
|
|
34
35
|
export { vars as switch } from "./switch";
|
|
35
36
|
export { vars as tab } from "./tab";
|
|
36
37
|
export { vars as tablist } from "./tablist";
|
|
38
|
+
export { vars as textButton } from "./text-button";
|
|
37
39
|
export { vars as textField } from "./text-field";
|
|
38
40
|
export { vars as toggleButton } from "./toggle-button";
|
|
39
41
|
export { vars as topNavigation } from "./top-navigation";
|
package/vars/component/index.mjs
CHANGED
|
@@ -23,6 +23,7 @@ export { vars as identityPlaceholder } from "./identity-placeholder.mjs";
|
|
|
23
23
|
export { vars as inlineBanner } from "./inline-banner.mjs";
|
|
24
24
|
export { vars as linkContent } from "./link-content.mjs";
|
|
25
25
|
export { vars as mannerTempBadge } from "./manner-temp-badge.mjs";
|
|
26
|
+
export { vars as mannerTemp } from "./manner-temp.mjs";
|
|
26
27
|
export { vars as progressCircle } from "./progress-circle.mjs";
|
|
27
28
|
export { vars as radio } from "./radio.mjs";
|
|
28
29
|
export { vars as reactionButton } from "./reaction-button.mjs";
|
|
@@ -34,6 +35,7 @@ export { vars as snackbar } from "./snackbar.mjs";
|
|
|
34
35
|
export { vars as switch } from "./switch.mjs";
|
|
35
36
|
export { vars as tab } from "./tab.mjs";
|
|
36
37
|
export { vars as tablist } from "./tablist.mjs";
|
|
38
|
+
export { vars as textButton } from "./text-button.mjs";
|
|
37
39
|
export { vars as textField } from "./text-field.mjs";
|
|
38
40
|
export { vars as toggleButton } from "./toggle-button.mjs";
|
|
39
41
|
export { vars as topNavigation } from "./top-navigation.mjs";
|
|
@@ -21,7 +21,7 @@ export declare const vars: {
|
|
|
21
21
|
"fontWeight": "var(--seed-font-weight-medium)"
|
|
22
22
|
},
|
|
23
23
|
"link": {
|
|
24
|
-
"
|
|
24
|
+
"targetHeight": "var(--seed-dimension-x10)",
|
|
25
25
|
"fontSize": "var(--seed-font-size-t2)",
|
|
26
26
|
"lineHeight": "var(--seed-line-height-t2)",
|
|
27
27
|
"fontWeight": "var(--seed-font-weight-regular)",
|
|
@@ -21,7 +21,7 @@ export const vars = {
|
|
|
21
21
|
"fontWeight": "var(--seed-font-weight-medium)"
|
|
22
22
|
},
|
|
23
23
|
"link": {
|
|
24
|
-
"
|
|
24
|
+
"targetHeight": "var(--seed-dimension-x10)",
|
|
25
25
|
"fontSize": "var(--seed-font-size-t2)",
|
|
26
26
|
"lineHeight": "var(--seed-line-height-t2)",
|
|
27
27
|
"fontWeight": "var(--seed-font-weight-regular)",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const vars: {
|
|
2
|
+
"base": {
|
|
3
|
+
"enabled": {
|
|
4
|
+
"root": {
|
|
5
|
+
"gap": "var(--seed-dimension-x1)"
|
|
6
|
+
},
|
|
7
|
+
"label": {
|
|
8
|
+
"fontSize": "var(--seed-font-size-t5)",
|
|
9
|
+
"lineHeight": "var(--seed-line-height-t5)",
|
|
10
|
+
"fontWeight": "var(--seed-font-weight-bold)"
|
|
11
|
+
},
|
|
12
|
+
"emote": {
|
|
13
|
+
"size": "var(--seed-dimension-x6)"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"levelL1": {
|
|
18
|
+
"enabled": {
|
|
19
|
+
"label": {
|
|
20
|
+
"color": "var(--seed-color-manner-temp-l1-text)"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"levelL2": {
|
|
25
|
+
"enabled": {
|
|
26
|
+
"label": {
|
|
27
|
+
"color": "var(--seed-color-manner-temp-l2-text)"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"levelL3": {
|
|
32
|
+
"enabled": {
|
|
33
|
+
"label": {
|
|
34
|
+
"color": "var(--seed-color-manner-temp-l3-text)"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"levelL4": {
|
|
39
|
+
"enabled": {
|
|
40
|
+
"label": {
|
|
41
|
+
"color": "var(--seed-color-manner-temp-l4-text)"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"levelL5": {
|
|
46
|
+
"enabled": {
|
|
47
|
+
"label": {
|
|
48
|
+
"color": "var(--seed-color-manner-temp-l5-text)"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"levelL6": {
|
|
53
|
+
"enabled": {
|
|
54
|
+
"label": {
|
|
55
|
+
"color": "var(--seed-color-manner-temp-l6-text)"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export const vars = {
|
|
2
|
+
"base": {
|
|
3
|
+
"enabled": {
|
|
4
|
+
"root": {
|
|
5
|
+
"gap": "var(--seed-dimension-x1)"
|
|
6
|
+
},
|
|
7
|
+
"label": {
|
|
8
|
+
"fontSize": "var(--seed-font-size-t5)",
|
|
9
|
+
"lineHeight": "var(--seed-line-height-t5)",
|
|
10
|
+
"fontWeight": "var(--seed-font-weight-bold)"
|
|
11
|
+
},
|
|
12
|
+
"emote": {
|
|
13
|
+
"size": "var(--seed-dimension-x6)"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"levelL1": {
|
|
18
|
+
"enabled": {
|
|
19
|
+
"label": {
|
|
20
|
+
"color": "var(--seed-color-manner-temp-l1-text)"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"levelL2": {
|
|
25
|
+
"enabled": {
|
|
26
|
+
"label": {
|
|
27
|
+
"color": "var(--seed-color-manner-temp-l2-text)"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"levelL3": {
|
|
32
|
+
"enabled": {
|
|
33
|
+
"label": {
|
|
34
|
+
"color": "var(--seed-color-manner-temp-l3-text)"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"levelL4": {
|
|
39
|
+
"enabled": {
|
|
40
|
+
"label": {
|
|
41
|
+
"color": "var(--seed-color-manner-temp-l4-text)"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"levelL5": {
|
|
46
|
+
"enabled": {
|
|
47
|
+
"label": {
|
|
48
|
+
"color": "var(--seed-color-manner-temp-l5-text)"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"levelL6": {
|
|
53
|
+
"enabled": {
|
|
54
|
+
"label": {
|
|
55
|
+
"color": "var(--seed-color-manner-temp-l6-text)"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const vars: {
|
|
2
|
+
"base": {
|
|
3
|
+
"enabled": {
|
|
4
|
+
"root": {
|
|
5
|
+
"minHeight": "var(--seed-dimension-x9)",
|
|
6
|
+
"gap": "var(--seed-dimension-x1)",
|
|
7
|
+
"paddingX": "var(--seed-dimension-x3_5)",
|
|
8
|
+
"paddingY": "var(--seed-dimension-x2)",
|
|
9
|
+
"cornerRadius": "var(--seed-radius-r2)"
|
|
10
|
+
},
|
|
11
|
+
"label": {
|
|
12
|
+
"color": "var(--seed-color-fg-neutral-muted)",
|
|
13
|
+
"fontSize": "var(--seed-font-size-t4)",
|
|
14
|
+
"lineHeight": "var(--seed-line-height-t4)",
|
|
15
|
+
"fontWeight": "var(--seed-font-weight-bold)"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"pressed": {
|
|
19
|
+
"root": {
|
|
20
|
+
"color": "var(--seed-color-bg-layer-default-pressed)"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const vars = {
|
|
2
|
+
"base": {
|
|
3
|
+
"enabled": {
|
|
4
|
+
"root": {
|
|
5
|
+
"minHeight": "var(--seed-dimension-x9)",
|
|
6
|
+
"gap": "var(--seed-dimension-x1)",
|
|
7
|
+
"paddingX": "var(--seed-dimension-x3_5)",
|
|
8
|
+
"paddingY": "var(--seed-dimension-x2)",
|
|
9
|
+
"cornerRadius": "var(--seed-radius-r2)"
|
|
10
|
+
},
|
|
11
|
+
"label": {
|
|
12
|
+
"color": "var(--seed-color-fg-neutral-muted)",
|
|
13
|
+
"fontSize": "var(--seed-font-size-t4)",
|
|
14
|
+
"lineHeight": "var(--seed-line-height-t4)",
|
|
15
|
+
"fontWeight": "var(--seed-font-weight-bold)"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"pressed": {
|
|
19
|
+
"root": {
|
|
20
|
+
"color": "var(--seed-color-bg-layer-default-pressed)"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -170,7 +170,8 @@ export declare const vars: {
|
|
|
170
170
|
"size": "var(--seed-dimension-x3_5)"
|
|
171
171
|
},
|
|
172
172
|
"label": {
|
|
173
|
-
"fontSize": "var(--seed-font-size-t4)"
|
|
173
|
+
"fontSize": "var(--seed-font-size-t4)",
|
|
174
|
+
"lineHeight": "var(--seed-line-height-t4)"
|
|
174
175
|
},
|
|
175
176
|
"progressCircle": {
|
|
176
177
|
"size": "14px",
|
|
@@ -194,7 +195,8 @@ export declare const vars: {
|
|
|
194
195
|
"size": "var(--seed-dimension-x3_5)"
|
|
195
196
|
},
|
|
196
197
|
"label": {
|
|
197
|
-
"fontSize": "var(--seed-font-size-t4)"
|
|
198
|
+
"fontSize": "var(--seed-font-size-t4)",
|
|
199
|
+
"lineHeight": "var(--seed-line-height-t4)"
|
|
198
200
|
},
|
|
199
201
|
"progressCircle": {
|
|
200
202
|
"size": "14px",
|
|
@@ -170,7 +170,8 @@ export const vars = {
|
|
|
170
170
|
"size": "var(--seed-dimension-x3_5)"
|
|
171
171
|
},
|
|
172
172
|
"label": {
|
|
173
|
-
"fontSize": "var(--seed-font-size-t4)"
|
|
173
|
+
"fontSize": "var(--seed-font-size-t4)",
|
|
174
|
+
"lineHeight": "var(--seed-line-height-t4)"
|
|
174
175
|
},
|
|
175
176
|
"progressCircle": {
|
|
176
177
|
"size": "14px",
|
|
@@ -194,7 +195,8 @@ export const vars = {
|
|
|
194
195
|
"size": "var(--seed-dimension-x3_5)"
|
|
195
196
|
},
|
|
196
197
|
"label": {
|
|
197
|
-
"fontSize": "var(--seed-font-size-t4)"
|
|
198
|
+
"fontSize": "var(--seed-font-size-t4)",
|
|
199
|
+
"lineHeight": "var(--seed-line-height-t4)"
|
|
198
200
|
},
|
|
199
201
|
"progressCircle": {
|
|
200
202
|
"size": "14px",
|
|
@@ -152,6 +152,24 @@ export declare const vars: {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
+
"textStyleT6Regular": {
|
|
156
|
+
"enabled": {
|
|
157
|
+
"root": {
|
|
158
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
159
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
160
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"textStyleT6Medium": {
|
|
165
|
+
"enabled": {
|
|
166
|
+
"root": {
|
|
167
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
168
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
169
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
155
173
|
"textStyleT6Bold": {
|
|
156
174
|
"enabled": {
|
|
157
175
|
"root": {
|
|
@@ -161,6 +179,24 @@ export declare const vars: {
|
|
|
161
179
|
}
|
|
162
180
|
}
|
|
163
181
|
},
|
|
182
|
+
"textStyleT7Regular": {
|
|
183
|
+
"enabled": {
|
|
184
|
+
"root": {
|
|
185
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
186
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
187
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"textStyleT7Medium": {
|
|
192
|
+
"enabled": {
|
|
193
|
+
"root": {
|
|
194
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
195
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
196
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
164
200
|
"textStyleT7Bold": {
|
|
165
201
|
"enabled": {
|
|
166
202
|
"root": {
|
|
@@ -152,6 +152,24 @@ export const vars = {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
+
"textStyleT6Regular": {
|
|
156
|
+
"enabled": {
|
|
157
|
+
"root": {
|
|
158
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
159
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
160
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"textStyleT6Medium": {
|
|
165
|
+
"enabled": {
|
|
166
|
+
"root": {
|
|
167
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
168
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
169
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
155
173
|
"textStyleT6Bold": {
|
|
156
174
|
"enabled": {
|
|
157
175
|
"root": {
|
|
@@ -161,6 +179,24 @@ export const vars = {
|
|
|
161
179
|
}
|
|
162
180
|
}
|
|
163
181
|
},
|
|
182
|
+
"textStyleT7Regular": {
|
|
183
|
+
"enabled": {
|
|
184
|
+
"root": {
|
|
185
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
186
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
187
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"textStyleT7Medium": {
|
|
192
|
+
"enabled": {
|
|
193
|
+
"root": {
|
|
194
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
195
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
196
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
164
200
|
"textStyleT7Bold": {
|
|
165
201
|
"enabled": {
|
|
166
202
|
"root": {
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare interface VisuallyHiddenVariant {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare type VisuallyHiddenVariantMap = {
|
|
6
|
-
[key in keyof VisuallyHiddenVariant]: Array<VisuallyHiddenVariant[key]>;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export declare type VisuallyHiddenVariantProps = Partial<VisuallyHiddenVariant>;
|
|
10
|
-
|
|
11
|
-
export declare type VisuallyHiddenSlotName = "root";
|
|
12
|
-
|
|
13
|
-
export declare const visuallyHiddenVariantMap: VisuallyHiddenVariantMap;
|
|
14
|
-
|
|
15
|
-
export declare const visuallyHidden: ((
|
|
16
|
-
props?: VisuallyHiddenVariantProps,
|
|
17
|
-
) => Record<VisuallyHiddenSlotName, string>) & {
|
|
18
|
-
splitVariantProps: <T extends VisuallyHiddenVariantProps>(
|
|
19
|
-
props: T,
|
|
20
|
-
) => [VisuallyHiddenVariantProps, Omit<T, keyof VisuallyHiddenVariantProps>];
|
|
21
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
|
-
|
|
3
|
-
const visuallyHiddenSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-visually-hidden__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
const defaultVariant = {};
|
|
11
|
-
|
|
12
|
-
const compoundVariants = [];
|
|
13
|
-
|
|
14
|
-
export const visuallyHiddenVariantMap = {};
|
|
15
|
-
|
|
16
|
-
export const visuallyHiddenVariantKeys = Object.keys(visuallyHiddenVariantMap);
|
|
17
|
-
|
|
18
|
-
export function visuallyHidden(props) {
|
|
19
|
-
return Object.fromEntries(
|
|
20
|
-
visuallyHiddenSlotNames.map(([slot, className]) => {
|
|
21
|
-
return [
|
|
22
|
-
slot,
|
|
23
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
24
|
-
];
|
|
25
|
-
}),
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
Object.assign(visuallyHidden, { splitVariantProps: (props) => splitVariantProps(props, visuallyHiddenVariantMap) });
|
|
30
|
-
|
|
31
|
-
// @recipe(seed): visually-hidden
|