@seed-design/css 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/all.css +229 -214
- package/all.min.css +1 -1
- package/package.json +3 -2
- package/recipes/action-button.css +42 -40
- package/recipes/action-button.d.ts +1 -3
- package/recipes/action-button.mjs +4 -14
- package/recipes/action-chip.css +12 -10
- package/recipes/action-chip.d.ts +1 -3
- package/recipes/action-chip.mjs +4 -14
- package/recipes/action-sheet-item.css +5 -5
- package/recipes/action-sheet-item.d.ts +1 -3
- package/recipes/action-sheet-item.mjs +4 -14
- package/recipes/app-bar.css +1 -0
- package/recipes/badge.css +26 -21
- package/recipes/badge.d.ts +1 -3
- package/recipes/badge.mjs +4 -14
- package/recipes/control-chip.css +14 -12
- package/recipes/control-chip.d.ts +1 -3
- package/recipes/control-chip.mjs +4 -14
- package/recipes/extended-action-sheet-item.css +6 -6
- package/recipes/extended-action-sheet-item.d.ts +1 -3
- package/recipes/extended-action-sheet-item.mjs +4 -14
- package/recipes/extended-fab.css +12 -12
- package/recipes/extended-fab.d.ts +1 -3
- package/recipes/extended-fab.mjs +4 -14
- package/recipes/fab.css +5 -5
- package/recipes/fab.d.ts +1 -3
- package/recipes/fab.mjs +4 -14
- package/recipes/help-bubble.css +2 -2
- package/recipes/inline-banner.css +0 -1
- package/recipes/link-content.css +9 -6
- package/recipes/link-content.d.ts +1 -3
- package/recipes/link-content.mjs +4 -14
- package/recipes/manner-temp-badge.css +7 -7
- package/recipes/manner-temp-badge.d.ts +1 -3
- package/recipes/manner-temp-badge.mjs +4 -14
- package/recipes/reaction-button.css +17 -17
- package/recipes/reaction-button.d.ts +1 -3
- package/recipes/reaction-button.mjs +4 -14
- package/recipes/select-box-group.css +1 -1
- package/recipes/select-box-group.d.ts +1 -3
- package/recipes/select-box-group.mjs +4 -14
- package/recipes/skeleton.css +8 -8
- package/recipes/skeleton.d.ts +1 -3
- package/recipes/skeleton.mjs +4 -14
- package/recipes/snackbar-region.css +1 -1
- package/recipes/snackbar-region.d.ts +1 -3
- package/recipes/snackbar-region.mjs +4 -14
- package/recipes/text.css +46 -26
- package/recipes/text.d.ts +2 -4
- package/recipes/text.mjs +8 -14
- package/recipes/toggle-button.css +24 -24
- package/recipes/toggle-button.d.ts +1 -3
- package/recipes/toggle-button.mjs +4 -14
- package/vars/component/callout.d.ts +2 -5
- package/vars/component/callout.mjs +2 -5
- package/vars/component/help-bubble.d.ts +4 -1
- package/vars/component/help-bubble.mjs +4 -1
- package/vars/component/index.d.ts +2 -0
- package/vars/component/index.mjs +2 -0
- package/vars/component/inline-banner.d.ts +1 -1
- package/vars/component/inline-banner.mjs +1 -1
- package/vars/component/manner-temp.d.ts +59 -0
- package/vars/component/manner-temp.mjs +59 -0
- package/vars/component/text-button.d.ts +24 -0
- package/vars/component/text-button.mjs +24 -0
- package/vars/component/toggle-button.d.ts +4 -2
- package/vars/component/toggle-button.mjs +4 -2
- package/vars/component/typography.d.ts +36 -0
- package/vars/component/typography.mjs +36 -0
- package/recipes/visually-hidden.css +0 -11
- package/recipes/visually-hidden.d.ts +0 -21
- package/recipes/visually-hidden.mjs +0 -31
package/recipes/badge.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const badgeSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-badge__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"size": "medium",
|
|
12
5
|
"variant": "solid",
|
|
@@ -98,13 +91,10 @@ export const badgeVariantMap = {
|
|
|
98
91
|
export const badgeVariantKeys = Object.keys(badgeVariantMap);
|
|
99
92
|
|
|
100
93
|
export function badge(props) {
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
106
|
-
];
|
|
107
|
-
}),
|
|
94
|
+
return createClassName(
|
|
95
|
+
"seed-badge",
|
|
96
|
+
mergeVariants(defaultVariant, props),
|
|
97
|
+
compoundVariants,
|
|
108
98
|
);
|
|
109
99
|
}
|
|
110
100
|
|
package/recipes/control-chip.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-control-
|
|
1
|
+
.seed-control-chip {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
--seed-count-font-weight: var(--seed-font-weight-medium);
|
|
23
23
|
--seed-count-color: var(--seed-color-fg-neutral-muted);
|
|
24
24
|
}
|
|
25
|
-
.seed-control-
|
|
25
|
+
.seed-control-chip:is(:focus, [data-focus]) {
|
|
26
26
|
outline: none;
|
|
27
27
|
}
|
|
28
|
-
.seed-control-
|
|
28
|
+
.seed-control-chip:is(:active, [data-active]) {
|
|
29
29
|
background: var(--seed-color-bg-layer-default-pressed);
|
|
30
30
|
}
|
|
31
|
-
.seed-control-
|
|
31
|
+
.seed-control-chip:is(:checked, [data-checked]) {
|
|
32
32
|
box-shadow: none;
|
|
33
33
|
background: var(--seed-color-bg-neutral-solid-muted);
|
|
34
34
|
color: var(--seed-color-palette-static-white);
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
--seed-icon-color: var(--seed-color-palette-static-white);
|
|
39
39
|
--seed-count-color: var(--seed-color-palette-static-white-alpha-800);
|
|
40
40
|
}
|
|
41
|
-
.seed-control-
|
|
41
|
+
.seed-control-chip:is(:checked, [data-checked]):is(:active, [data-active]) {
|
|
42
42
|
background: var(--seed-color-bg-neutral-solid-muted-pressed);
|
|
43
43
|
}
|
|
44
|
-
.seed-control-
|
|
44
|
+
.seed-control-chip:is(:disabled, [disabled], [data-disabled]) {
|
|
45
45
|
cursor: not-allowed;
|
|
46
46
|
background: var(--seed-color-bg-disabled);
|
|
47
47
|
color: var(--seed-color-fg-disabled);
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
50
50
|
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
51
51
|
}
|
|
52
|
-
.seed-control-
|
|
52
|
+
.seed-control-chip--size_medium {
|
|
53
53
|
min-height: var(--seed-dimension-x9);
|
|
54
54
|
padding-block: var(--seed-dimension-x2);
|
|
55
55
|
gap: var(--seed-dimension-x1);
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
--seed-icon-size: var(--seed-dimension-x4);
|
|
60
60
|
--seed-count-font-size: var(--seed-font-size-t4);
|
|
61
61
|
}
|
|
62
|
-
.seed-control-
|
|
62
|
+
.seed-control-chip--size_small {
|
|
63
63
|
min-height: var(--seed-dimension-x8);
|
|
64
64
|
padding-block: var(--seed-dimension-x1_5);
|
|
65
65
|
gap: var(--seed-dimension-x1);
|
|
@@ -69,15 +69,17 @@
|
|
|
69
69
|
--seed-icon-size: var(--seed-dimension-x4);
|
|
70
70
|
--seed-count-font-size: var(--seed-font-size-t4);
|
|
71
71
|
}
|
|
72
|
-
.seed-control-
|
|
72
|
+
.seed-control-chip--layout_withText {}
|
|
73
|
+
.seed-control-chip--layout_iconOnly {}
|
|
74
|
+
.seed-control-chip--size_medium-layout_withText {
|
|
73
75
|
padding-inline: var(--seed-dimension-x3_5);
|
|
74
76
|
}
|
|
75
|
-
.seed-control-
|
|
77
|
+
.seed-control-chip--size_medium-layout_iconOnly {
|
|
76
78
|
min-width: var(--seed-dimension-x9);
|
|
77
79
|
}
|
|
78
|
-
.seed-control-
|
|
80
|
+
.seed-control-chip--size_small-layout_withText {
|
|
79
81
|
padding-inline: var(--seed-dimension-x3);
|
|
80
82
|
}
|
|
81
|
-
.seed-control-
|
|
83
|
+
.seed-control-chip--size_small-layout_iconOnly {
|
|
82
84
|
min-width: var(--seed-dimension-x8);
|
|
83
85
|
}
|
|
@@ -15,13 +15,11 @@ declare type ControlChipVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
export declare type ControlChipVariantProps = Partial<ControlChipVariant>;
|
|
17
17
|
|
|
18
|
-
export declare type ControlChipSlotName = "root";
|
|
19
|
-
|
|
20
18
|
export declare const controlChipVariantMap: ControlChipVariantMap;
|
|
21
19
|
|
|
22
20
|
export declare const controlChip: ((
|
|
23
21
|
props?: ControlChipVariantProps,
|
|
24
|
-
) =>
|
|
22
|
+
) => string) & {
|
|
25
23
|
splitVariantProps: <T extends ControlChipVariantProps>(
|
|
26
24
|
props: T,
|
|
27
25
|
) => [ControlChipVariantProps, Omit<T, keyof ControlChipVariantProps>];
|
package/recipes/control-chip.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const controlChipSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-control-chip__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"size": "medium",
|
|
12
5
|
"layout": "withText"
|
|
@@ -45,13 +38,10 @@ export const controlChipVariantMap = {
|
|
|
45
38
|
export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
|
|
46
39
|
|
|
47
40
|
export function controlChip(props) {
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
53
|
-
];
|
|
54
|
-
}),
|
|
41
|
+
return createClassName(
|
|
42
|
+
"seed-control-chip",
|
|
43
|
+
mergeVariants(defaultVariant, props),
|
|
44
|
+
compoundVariants,
|
|
55
45
|
);
|
|
56
46
|
}
|
|
57
47
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-extended-action-sheet-
|
|
1
|
+
.seed-extended-action-sheet-item {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
line-height: var(--seed-line-height-t5);
|
|
13
13
|
font-weight: var(--seed-font-weight-regular);
|
|
14
14
|
}
|
|
15
|
-
.seed-extended-action-sheet-
|
|
15
|
+
.seed-extended-action-sheet-item:is(:active, [data-active]) {
|
|
16
16
|
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
17
17
|
}
|
|
18
|
-
.seed-extended-action-sheet-
|
|
18
|
+
.seed-extended-action-sheet-item:last-child {
|
|
19
19
|
box-shadow: none;
|
|
20
20
|
}
|
|
21
|
-
.seed-extended-action-sheet-
|
|
21
|
+
.seed-extended-action-sheet-item {
|
|
22
22
|
--seed-prefix-icon-size: 22px;
|
|
23
23
|
}
|
|
24
|
-
.seed-extended-action-sheet-
|
|
24
|
+
.seed-extended-action-sheet-item--tone_neutral {
|
|
25
25
|
color: var(--seed-color-fg-neutral);
|
|
26
26
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
27
27
|
}
|
|
28
|
-
.seed-extended-action-sheet-
|
|
28
|
+
.seed-extended-action-sheet-item--tone_critical {
|
|
29
29
|
color: var(--seed-color-fg-critical);
|
|
30
30
|
--seed-prefix-icon-color: var(--seed-color-fg-critical);
|
|
31
31
|
}
|
|
@@ -11,13 +11,11 @@ declare type ExtendedActionSheetItemVariantMap = {
|
|
|
11
11
|
|
|
12
12
|
export declare type ExtendedActionSheetItemVariantProps = Partial<ExtendedActionSheetItemVariant>;
|
|
13
13
|
|
|
14
|
-
export declare type ExtendedActionSheetItemSlotName = "root";
|
|
15
|
-
|
|
16
14
|
export declare const extendedActionSheetItemVariantMap: ExtendedActionSheetItemVariantMap;
|
|
17
15
|
|
|
18
16
|
export declare const extendedActionSheetItem: ((
|
|
19
17
|
props?: ExtendedActionSheetItemVariantProps,
|
|
20
|
-
) =>
|
|
18
|
+
) => string) & {
|
|
21
19
|
splitVariantProps: <T extends ExtendedActionSheetItemVariantProps>(
|
|
22
20
|
props: T,
|
|
23
21
|
) => [ExtendedActionSheetItemVariantProps, Omit<T, keyof ExtendedActionSheetItemVariantProps>];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const extendedActionSheetItemSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-extended-action-sheet-item__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"tone": "neutral"
|
|
12
5
|
};
|
|
@@ -23,13 +16,10 @@ export const extendedActionSheetItemVariantMap = {
|
|
|
23
16
|
export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
|
|
24
17
|
|
|
25
18
|
export function extendedActionSheetItem(props) {
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
31
|
-
];
|
|
32
|
-
}),
|
|
19
|
+
return createClassName(
|
|
20
|
+
"seed-extended-action-sheet-item",
|
|
21
|
+
mergeVariants(defaultVariant, props),
|
|
22
|
+
compoundVariants,
|
|
33
23
|
);
|
|
34
24
|
}
|
|
35
25
|
|
package/recipes/extended-fab.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-extended-
|
|
1
|
+
.seed-extended-fab {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
@@ -12,37 +12,37 @@
|
|
|
12
12
|
flex-shrink: 0;
|
|
13
13
|
font-family: inherit;
|
|
14
14
|
}
|
|
15
|
-
.seed-extended-
|
|
15
|
+
.seed-extended-fab:is(:focus, [data-focus]) {
|
|
16
16
|
outline: none;
|
|
17
17
|
}
|
|
18
|
-
.seed-extended-
|
|
18
|
+
.seed-extended-fab:is(:disabled, [disabled], [data-disabled]) {
|
|
19
19
|
cursor: not-allowed;
|
|
20
20
|
}
|
|
21
|
-
.seed-extended-
|
|
21
|
+
.seed-extended-fab {
|
|
22
22
|
border-radius: var(--seed-radius-full);
|
|
23
23
|
box-shadow: 0px 2px 6px 0px #00000026;
|
|
24
24
|
}
|
|
25
|
-
.seed-extended-
|
|
25
|
+
.seed-extended-fab--variant_neutralSolid {
|
|
26
26
|
background: var(--seed-color-bg-neutral-inverted);
|
|
27
27
|
color: var(--seed-color-fg-neutral-inverted);
|
|
28
28
|
}
|
|
29
|
-
.seed-extended-
|
|
29
|
+
.seed-extended-fab--variant_neutralSolid:is(:active, [data-active]) {
|
|
30
30
|
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
31
31
|
}
|
|
32
|
-
.seed-extended-
|
|
32
|
+
.seed-extended-fab--variant_neutralSolid {
|
|
33
33
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral-inverted);
|
|
34
34
|
}
|
|
35
|
-
.seed-extended-
|
|
35
|
+
.seed-extended-fab--variant_layerFloating {
|
|
36
36
|
background: var(--seed-color-bg-layer-floating);
|
|
37
37
|
color: var(--seed-color-fg-neutral);
|
|
38
38
|
}
|
|
39
|
-
.seed-extended-
|
|
39
|
+
.seed-extended-fab--variant_layerFloating:is(:active, [data-active]) {
|
|
40
40
|
background: var(--seed-color-bg-layer-floating-pressed);
|
|
41
41
|
}
|
|
42
|
-
.seed-extended-
|
|
42
|
+
.seed-extended-fab--variant_layerFloating {
|
|
43
43
|
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
44
44
|
}
|
|
45
|
-
.seed-extended-
|
|
45
|
+
.seed-extended-fab--size_small {
|
|
46
46
|
padding-inline: var(--seed-dimension-x3_5);
|
|
47
47
|
padding-block: var(--seed-dimension-x2_5);
|
|
48
48
|
min-height: 40px;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
font-weight: var(--seed-font-weight-medium);
|
|
53
53
|
--seed-prefix-icon-size: 16px;
|
|
54
54
|
}
|
|
55
|
-
.seed-extended-
|
|
55
|
+
.seed-extended-fab--size_medium {
|
|
56
56
|
padding-inline: var(--seed-dimension-x4);
|
|
57
57
|
padding-block: var(--seed-dimension-x3);
|
|
58
58
|
min-height: 48px;
|
|
@@ -15,13 +15,11 @@ declare type ExtendedFabVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
export declare type ExtendedFabVariantProps = Partial<ExtendedFabVariant>;
|
|
17
17
|
|
|
18
|
-
export declare type ExtendedFabSlotName = "root";
|
|
19
|
-
|
|
20
18
|
export declare const extendedFabVariantMap: ExtendedFabVariantMap;
|
|
21
19
|
|
|
22
20
|
export declare const extendedFab: ((
|
|
23
21
|
props?: ExtendedFabVariantProps,
|
|
24
|
-
) =>
|
|
22
|
+
) => string) & {
|
|
25
23
|
splitVariantProps: <T extends ExtendedFabVariantProps>(
|
|
26
24
|
props: T,
|
|
27
25
|
) => [ExtendedFabVariantProps, Omit<T, keyof ExtendedFabVariantProps>];
|
package/recipes/extended-fab.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const extendedFabSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-extended-fab__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"variant": "neutralSolid",
|
|
12
5
|
"size": "medium"
|
|
@@ -28,13 +21,10 @@ export const extendedFabVariantMap = {
|
|
|
28
21
|
export const extendedFabVariantKeys = Object.keys(extendedFabVariantMap);
|
|
29
22
|
|
|
30
23
|
export function extendedFab(props) {
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
36
|
-
];
|
|
37
|
-
}),
|
|
24
|
+
return createClassName(
|
|
25
|
+
"seed-extended-fab",
|
|
26
|
+
mergeVariants(defaultVariant, props),
|
|
27
|
+
compoundVariants,
|
|
38
28
|
);
|
|
39
29
|
}
|
|
40
30
|
|
package/recipes/fab.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-
|
|
1
|
+
.seed-fab {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
font-family: inherit;
|
|
13
13
|
}
|
|
14
|
-
.seed-
|
|
14
|
+
.seed-fab:is(:focus, [data-focus]) {
|
|
15
15
|
outline: none;
|
|
16
16
|
}
|
|
17
|
-
.seed-
|
|
17
|
+
.seed-fab:is(:disabled, [disabled], [data-disabled]) {
|
|
18
18
|
cursor: not-allowed;
|
|
19
19
|
}
|
|
20
|
-
.seed-
|
|
20
|
+
.seed-fab {
|
|
21
21
|
background: var(--seed-color-bg-layer-floating);
|
|
22
22
|
border-radius: var(--seed-radius-full);
|
|
23
23
|
box-shadow: 0px 2px 6px 0px #00000026;
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
--seed-icon-size: 22px;
|
|
27
27
|
--seed-icon-color: var(--seed-color-fg-neutral);
|
|
28
28
|
}
|
|
29
|
-
.seed-
|
|
29
|
+
.seed-fab:is(:active, [data-active]) {
|
|
30
30
|
background: var(--seed-color-bg-layer-floating-pressed);
|
|
31
31
|
}
|
package/recipes/fab.d.ts
CHANGED
|
@@ -8,13 +8,11 @@ declare type FabVariantMap = {
|
|
|
8
8
|
|
|
9
9
|
export declare type FabVariantProps = Partial<FabVariant>;
|
|
10
10
|
|
|
11
|
-
export declare type FabSlotName = "root";
|
|
12
|
-
|
|
13
11
|
export declare const fabVariantMap: FabVariantMap;
|
|
14
12
|
|
|
15
13
|
export declare const fab: ((
|
|
16
14
|
props?: FabVariantProps,
|
|
17
|
-
) =>
|
|
15
|
+
) => string) & {
|
|
18
16
|
splitVariantProps: <T extends FabVariantProps>(
|
|
19
17
|
props: T,
|
|
20
18
|
) => [FabVariantProps, Omit<T, keyof FabVariantProps>];
|
package/recipes/fab.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const fabSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-fab__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {};
|
|
11
4
|
|
|
12
5
|
const compoundVariants = [];
|
|
@@ -16,13 +9,10 @@ export const fabVariantMap = {};
|
|
|
16
9
|
export const fabVariantKeys = Object.keys(fabVariantMap);
|
|
17
10
|
|
|
18
11
|
export function fab(props) {
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
24
|
-
];
|
|
25
|
-
}),
|
|
12
|
+
return createClassName(
|
|
13
|
+
"seed-fab",
|
|
14
|
+
mergeVariants(defaultVariant, props),
|
|
15
|
+
compoundVariants,
|
|
26
16
|
);
|
|
27
17
|
}
|
|
28
18
|
|
package/recipes/help-bubble.css
CHANGED
package/recipes/link-content.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-link-
|
|
1
|
+
.seed-link-content {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
cursor: pointer;
|
|
@@ -15,24 +15,27 @@
|
|
|
15
15
|
color: var(--seed-box-color);
|
|
16
16
|
--seed-suffix-icon-color: var(--seed-box-color)
|
|
17
17
|
}
|
|
18
|
-
.seed-link-
|
|
18
|
+
.seed-link-content--weight_bold {
|
|
19
19
|
font-weight: var(--seed-font-weight-bold)
|
|
20
20
|
}
|
|
21
|
-
.seed-link-
|
|
21
|
+
.seed-link-content--weight_regular {
|
|
22
22
|
font-weight: var(--seed-font-weight-regular)
|
|
23
23
|
}
|
|
24
|
-
.seed-link-
|
|
24
|
+
.seed-link-content--size_t6 {
|
|
25
25
|
font-size: var(--seed-font-size-t6);
|
|
26
26
|
line-height: var(--seed-line-height-t6);
|
|
27
|
+
gap: var(--seed-dimension-x0_5);
|
|
27
28
|
--seed-suffix-icon-size: var(--seed-dimension-x4)
|
|
28
29
|
}
|
|
29
|
-
.seed-link-
|
|
30
|
+
.seed-link-content--size_t5 {
|
|
30
31
|
font-size: var(--seed-font-size-t5);
|
|
31
32
|
line-height: var(--seed-line-height-t5);
|
|
33
|
+
gap: var(--seed-dimension-x0_5);
|
|
32
34
|
--seed-suffix-icon-size: var(--seed-dimension-x3_5)
|
|
33
35
|
}
|
|
34
|
-
.seed-link-
|
|
36
|
+
.seed-link-content--size_t4 {
|
|
35
37
|
font-size: var(--seed-font-size-t4);
|
|
36
38
|
line-height: var(--seed-line-height-t4);
|
|
39
|
+
gap: var(--seed-dimension-x0_5);
|
|
37
40
|
--seed-suffix-icon-size: var(--seed-dimension-x3)
|
|
38
41
|
}
|
|
@@ -15,13 +15,11 @@ declare type LinkContentVariantMap = {
|
|
|
15
15
|
|
|
16
16
|
export declare type LinkContentVariantProps = Partial<LinkContentVariant>;
|
|
17
17
|
|
|
18
|
-
export declare type LinkContentSlotName = "root";
|
|
19
|
-
|
|
20
18
|
export declare const linkContentVariantMap: LinkContentVariantMap;
|
|
21
19
|
|
|
22
20
|
export declare const linkContent: ((
|
|
23
21
|
props?: LinkContentVariantProps,
|
|
24
|
-
) =>
|
|
22
|
+
) => string) & {
|
|
25
23
|
splitVariantProps: <T extends LinkContentVariantProps>(
|
|
26
24
|
props: T,
|
|
27
25
|
) => [LinkContentVariantProps, Omit<T, keyof LinkContentVariantProps>];
|
package/recipes/link-content.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const linkContentSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-link-content__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"size": "t4",
|
|
12
5
|
"weight": "regular"
|
|
@@ -29,13 +22,10 @@ export const linkContentVariantMap = {
|
|
|
29
22
|
export const linkContentVariantKeys = Object.keys(linkContentVariantMap);
|
|
30
23
|
|
|
31
24
|
export function linkContent(props) {
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
37
|
-
];
|
|
38
|
-
}),
|
|
25
|
+
return createClassName(
|
|
26
|
+
"seed-link-content",
|
|
27
|
+
mergeVariants(defaultVariant, props),
|
|
28
|
+
compoundVariants,
|
|
39
29
|
);
|
|
40
30
|
}
|
|
41
31
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.seed-manner-temp-
|
|
1
|
+
.seed-manner-temp-badge {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
line-height: var(--seed-line-height-t1);
|
|
17
17
|
font-weight: var(--seed-font-weight-bold)
|
|
18
18
|
}
|
|
19
|
-
.seed-manner-temp-
|
|
19
|
+
.seed-manner-temp-badge--level_l1 {
|
|
20
20
|
background-color: var(--seed-color-manner-temp-l1-bg);
|
|
21
21
|
color: var(--seed-color-manner-temp-l1-text)
|
|
22
22
|
}
|
|
23
|
-
.seed-manner-temp-
|
|
23
|
+
.seed-manner-temp-badge--level_l2 {
|
|
24
24
|
background-color: var(--seed-color-manner-temp-l2-bg);
|
|
25
25
|
color: var(--seed-color-manner-temp-l2-text)
|
|
26
26
|
}
|
|
27
|
-
.seed-manner-temp-
|
|
27
|
+
.seed-manner-temp-badge--level_l3 {
|
|
28
28
|
background-color: var(--seed-color-manner-temp-l3-bg);
|
|
29
29
|
color: var(--seed-color-manner-temp-l3-text)
|
|
30
30
|
}
|
|
31
|
-
.seed-manner-temp-
|
|
31
|
+
.seed-manner-temp-badge--level_l4 {
|
|
32
32
|
background-color: var(--seed-color-manner-temp-l4-bg);
|
|
33
33
|
color: var(--seed-color-manner-temp-l4-text)
|
|
34
34
|
}
|
|
35
|
-
.seed-manner-temp-
|
|
35
|
+
.seed-manner-temp-badge--level_l5 {
|
|
36
36
|
background-color: var(--seed-color-manner-temp-l5-bg);
|
|
37
37
|
color: var(--seed-color-manner-temp-l5-text)
|
|
38
38
|
}
|
|
39
|
-
.seed-manner-temp-
|
|
39
|
+
.seed-manner-temp-badge--level_l6 {
|
|
40
40
|
background-color: var(--seed-color-manner-temp-l6-bg);
|
|
41
41
|
color: var(--seed-color-manner-temp-l6-text)
|
|
42
42
|
}
|
|
@@ -11,13 +11,11 @@ declare type MannerTempBadgeVariantMap = {
|
|
|
11
11
|
|
|
12
12
|
export declare type MannerTempBadgeVariantProps = Partial<MannerTempBadgeVariant>;
|
|
13
13
|
|
|
14
|
-
export declare type MannerTempBadgeSlotName = "root";
|
|
15
|
-
|
|
16
14
|
export declare const mannerTempBadgeVariantMap: MannerTempBadgeVariantMap;
|
|
17
15
|
|
|
18
16
|
export declare const mannerTempBadge: ((
|
|
19
17
|
props?: MannerTempBadgeVariantProps,
|
|
20
|
-
) =>
|
|
18
|
+
) => string) & {
|
|
21
19
|
splitVariantProps: <T extends MannerTempBadgeVariantProps>(
|
|
22
20
|
props: T,
|
|
23
21
|
) => [MannerTempBadgeVariantProps, Omit<T, keyof MannerTempBadgeVariantProps>];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const mannerTempBadgeSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-manner-temp-badge__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {
|
|
11
4
|
"level": "l1"
|
|
12
5
|
};
|
|
@@ -27,13 +20,10 @@ export const mannerTempBadgeVariantMap = {
|
|
|
27
20
|
export const mannerTempBadgeVariantKeys = Object.keys(mannerTempBadgeVariantMap);
|
|
28
21
|
|
|
29
22
|
export function mannerTempBadge(props) {
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
35
|
-
];
|
|
36
|
-
}),
|
|
23
|
+
return createClassName(
|
|
24
|
+
"seed-manner-temp-badge",
|
|
25
|
+
mergeVariants(defaultVariant, props),
|
|
26
|
+
compoundVariants,
|
|
37
27
|
);
|
|
38
28
|
}
|
|
39
29
|
|