@seed-design/css 1.2.3 → 1.2.4
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 +1012 -172
- package/all.layered.css +9070 -0
- package/all.layered.min.css +1 -0
- package/all.min.css +1 -1
- package/base.css +4 -0
- package/base.layered.css +858 -0
- package/base.layered.min.css +1 -0
- package/base.min.css +1 -1
- package/package.json +11 -2
- package/recipes/action-button.css +69 -17
- package/recipes/action-button.layered.css +421 -0
- package/recipes/action-button.layered.mjs +79 -0
- package/recipes/action-chip.layered.css +84 -0
- package/recipes/action-chip.layered.mjs +51 -0
- package/recipes/action-sheet-item.layered.css +38 -0
- package/recipes/action-sheet-item.layered.mjs +29 -0
- package/recipes/action-sheet.layered.css +134 -0
- package/recipes/action-sheet.layered.mjs +60 -0
- package/recipes/app-bar-main.layered.css +165 -0
- package/recipes/app-bar-main.layered.mjs +63 -0
- package/recipes/app-bar.css +8 -0
- package/recipes/app-bar.layered.css +302 -0
- package/recipes/app-bar.layered.mjs +70 -0
- package/recipes/app-screen.layered.css +332 -0
- package/recipes/app-screen.layered.mjs +98 -0
- package/recipes/article.layered.css +12 -0
- package/recipes/article.layered.mjs +22 -0
- package/recipes/aspect-ratio.layered.css +26 -0
- package/recipes/aspect-ratio.layered.mjs +22 -0
- package/recipes/avatar-stack.layered.css +94 -0
- package/recipes/avatar-stack.layered.mjs +50 -0
- package/recipes/avatar.layered.css +222 -0
- package/recipes/avatar.layered.mjs +65 -0
- package/recipes/badge.layered.css +140 -0
- package/recipes/badge.layered.mjs +131 -0
- package/recipes/bottom-sheet-handle.css +9 -2
- package/recipes/bottom-sheet-handle.layered.css +36 -0
- package/recipes/bottom-sheet-handle.layered.mjs +36 -0
- package/recipes/bottom-sheet.css +11 -0
- package/recipes/bottom-sheet.layered.css +224 -0
- package/recipes/bottom-sheet.layered.mjs +75 -0
- package/recipes/callout.css +77 -12
- package/recipes/callout.layered.css +242 -0
- package/recipes/callout.layered.mjs +63 -0
- package/recipes/checkbox-group.layered.css +7 -0
- package/recipes/checkbox-group.layered.mjs +22 -0
- package/recipes/checkbox.layered.css +54 -0
- package/recipes/checkbox.layered.mjs +48 -0
- package/recipes/checkmark.css +61 -13
- package/recipes/checkmark.layered.css +187 -0
- package/recipes/checkmark.layered.mjs +86 -0
- package/recipes/chip-tabs.css +62 -14
- package/recipes/chip-tabs.layered.css +254 -0
- package/recipes/chip-tabs.layered.mjs +75 -0
- package/recipes/chip.css +60 -15
- package/recipes/chip.layered.css +272 -0
- package/recipes/chip.layered.mjs +80 -0
- package/recipes/contextual-floating-button.css +24 -7
- package/recipes/contextual-floating-button.layered.css +130 -0
- package/recipes/contextual-floating-button.layered.mjs +34 -0
- package/recipes/control-chip.layered.css +99 -0
- package/recipes/control-chip.layered.mjs +51 -0
- package/recipes/dialog.layered.css +111 -0
- package/recipes/dialog.layered.mjs +66 -0
- package/recipes/extended-action-sheet-item.layered.css +38 -0
- package/recipes/extended-action-sheet-item.layered.mjs +29 -0
- package/recipes/extended-action-sheet.layered.css +132 -0
- package/recipes/extended-action-sheet.layered.mjs +64 -0
- package/recipes/extended-fab.layered.css +79 -0
- package/recipes/extended-fab.layered.mjs +34 -0
- package/recipes/fab.layered.css +37 -0
- package/recipes/fab.layered.mjs +22 -0
- package/recipes/field-label.layered.css +35 -0
- package/recipes/field-label.layered.mjs +47 -0
- package/recipes/field.layered.css +81 -0
- package/recipes/field.layered.mjs +60 -0
- package/recipes/floating-action-button.css +15 -5
- package/recipes/floating-action-button.layered.css +101 -0
- package/recipes/floating-action-button.layered.mjs +47 -0
- package/recipes/help-bubble.css +8 -0
- package/recipes/help-bubble.layered.css +104 -0
- package/recipes/help-bubble.layered.mjs +60 -0
- package/recipes/identity-placeholder.css +2 -2
- package/recipes/identity-placeholder.d.ts +1 -1
- package/recipes/identity-placeholder.layered.css +22 -0
- package/recipes/identity-placeholder.layered.mjs +43 -0
- package/recipes/identity-placeholder.mjs +2 -1
- package/recipes/image-frame-icon.layered.css +8 -0
- package/recipes/image-frame-icon.layered.mjs +22 -0
- package/recipes/image-frame-indicator.layered.css +18 -0
- package/recipes/image-frame-indicator.layered.mjs +22 -0
- package/recipes/image-frame-reaction-button.css +9 -1
- package/recipes/image-frame-reaction-button.layered.css +43 -0
- package/recipes/image-frame-reaction-button.layered.mjs +22 -0
- package/recipes/image-frame.layered.css +28 -0
- package/recipes/image-frame.layered.mjs +34 -0
- package/recipes/inline-banner.layered.css +161 -0
- package/recipes/inline-banner.layered.mjs +64 -0
- package/recipes/input-button.css +27 -5
- package/recipes/input-button.layered.css +167 -0
- package/recipes/input-button.layered.mjs +64 -0
- package/recipes/link-content.layered.css +48 -0
- package/recipes/link-content.layered.mjs +35 -0
- package/recipes/list-header.layered.css +26 -0
- package/recipes/list-header.layered.mjs +29 -0
- package/recipes/list-item.css +63 -17
- package/recipes/list-item.layered.css +187 -0
- package/recipes/list-item.layered.mjs +59 -0
- package/recipes/manner-temp-badge.layered.css +72 -0
- package/recipes/manner-temp-badge.layered.mjs +37 -0
- package/recipes/manner-temp.layered.css +57 -0
- package/recipes/manner-temp.layered.mjs +37 -0
- package/recipes/menu-sheet-item.css +24 -3
- package/recipes/menu-sheet-item.layered.css +102 -0
- package/recipes/menu-sheet-item.layered.mjs +56 -0
- package/recipes/menu-sheet.css +18 -3
- package/recipes/menu-sheet.layered.css +167 -0
- package/recipes/menu-sheet.layered.mjs +74 -0
- package/recipes/notification-badge-positioner.layered.css +35 -0
- package/recipes/notification-badge-positioner.layered.mjs +51 -0
- package/recipes/notification-badge.layered.css +33 -0
- package/recipes/notification-badge.layered.mjs +29 -0
- package/recipes/page-banner.css +122 -22
- package/recipes/page-banner.layered.css +361 -0
- package/recipes/page-banner.layered.mjs +117 -0
- package/recipes/progress-circle.layered.css +52 -0
- package/recipes/progress-circle.layered.mjs +55 -0
- package/recipes/pull-to-refresh.layered.css +19 -0
- package/recipes/pull-to-refresh.layered.mjs +36 -0
- package/recipes/radio-group.layered.css +7 -0
- package/recipes/radio-group.layered.mjs +22 -0
- package/recipes/radio.layered.css +54 -0
- package/recipes/radio.layered.mjs +48 -0
- package/recipes/radiomark.css +34 -7
- package/recipes/radiomark.layered.css +132 -0
- package/recipes/radiomark.layered.mjs +48 -0
- package/recipes/reaction-button.css +24 -7
- package/recipes/reaction-button.layered.css +124 -0
- package/recipes/reaction-button.layered.mjs +29 -0
- package/recipes/scroll-fog.layered.css +27 -0
- package/recipes/scroll-fog.layered.mjs +28 -0
- package/recipes/segmented-control.css +31 -7
- package/recipes/segmented-control.layered.css +108 -0
- package/recipes/segmented-control.layered.mjs +40 -0
- package/recipes/select-box-group.layered.css +13 -0
- package/recipes/select-box-group.layered.mjs +22 -0
- package/recipes/select-box.css +19 -3
- package/recipes/select-box.layered.css +148 -0
- package/recipes/select-box.layered.mjs +63 -0
- package/recipes/selectBoxCheckmark.css +9 -2
- package/recipes/selectBoxCheckmark.layered.css +42 -0
- package/recipes/selectBoxCheckmark.layered.mjs +36 -0
- package/recipes/skeleton.layered.css +56 -0
- package/recipes/skeleton.layered.mjs +36 -0
- package/recipes/slider-marker.layered.css +54 -0
- package/recipes/slider-marker.layered.mjs +30 -0
- package/recipes/slider-tick.layered.css +25 -0
- package/recipes/slider-tick.layered.mjs +29 -0
- package/recipes/slider.css +25 -1
- package/recipes/slider.layered.css +238 -0
- package/recipes/slider.layered.mjs +68 -0
- package/recipes/snackbar-region.layered.css +18 -0
- package/recipes/snackbar-region.layered.mjs +22 -0
- package/recipes/snackbar.css +20 -1
- package/recipes/snackbar.layered.css +126 -0
- package/recipes/snackbar.layered.mjs +56 -0
- package/recipes/switch.layered.css +62 -0
- package/recipes/switch.layered.mjs +44 -0
- package/recipes/switchmark.css +9 -1
- package/recipes/switchmark.layered.css +100 -0
- package/recipes/switchmark.layered.mjs +49 -0
- package/recipes/tabs.css +9 -0
- package/recipes/tabs.layered.css +211 -0
- package/recipes/tabs.layered.mjs +78 -0
- package/recipes/tag-group-item.layered.css +98 -0
- package/recipes/tag-group-item.layered.mjs +55 -0
- package/recipes/tag-group.layered.css +58 -0
- package/recipes/tag-group.layered.mjs +62 -0
- package/recipes/text-input.css +1 -0
- package/recipes/text-input.layered.css +236 -0
- package/recipes/text-input.layered.mjs +73 -0
- package/recipes/text.layered.css +364 -0
- package/recipes/text.layered.mjs +90 -0
- package/recipes/toggle-button.css +42 -11
- package/recipes/toggle-button.layered.css +183 -0
- package/recipes/toggle-button.layered.mjs +34 -0
- package/vars/color/stroke.d.ts +2 -1
- package/vars/color/stroke.mjs +2 -1
- package/vars/component/identity-placeholder.d.ts +2 -2
- package/vars/component/identity-placeholder.mjs +2 -2
- package/vars/component/image-frame-floater.d.ts +1 -1
- package/vars/component/image-frame.d.ts +11 -17
- package/vars/component/image-frame.mjs +7 -12
- package/vars/component/index.d.ts +1 -0
- package/vars/component/index.mjs +1 -0
- package/vars/component/list-item.d.ts +1 -1
- package/vars/component/list-item.mjs +1 -1
- package/vars/component/segmented-control-indicator.d.ts +24 -0
- package/vars/component/segmented-control-indicator.mjs +24 -0
- package/vars/component/segmented-control-item.d.ts +3 -11
- package/vars/component/segmented-control-item.mjs +3 -11
- package/vars/component/segmented-control.d.ts +0 -8
- package/vars/component/segmented-control.mjs +0 -8
- package/vars/component/slider.d.ts +3 -1
- package/vars/component/slider.mjs +3 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import './input-button.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const inputButtonSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-input-button__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"value",
|
|
11
|
+
"seed-input-button__value"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"placeholder",
|
|
15
|
+
"seed-input-button__placeholder"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"button",
|
|
19
|
+
"seed-input-button__button"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"prefixText",
|
|
23
|
+
"seed-input-button__prefixText"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"prefixIcon",
|
|
27
|
+
"seed-input-button__prefixIcon"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"suffixText",
|
|
31
|
+
"seed-input-button__suffixText"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"suffixIcon",
|
|
35
|
+
"seed-input-button__suffixIcon"
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"clearButton",
|
|
39
|
+
"seed-input-button__clearButton"
|
|
40
|
+
]
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
const defaultVariant = {};
|
|
44
|
+
|
|
45
|
+
const compoundVariants = [];
|
|
46
|
+
|
|
47
|
+
export const inputButtonVariantMap = {};
|
|
48
|
+
|
|
49
|
+
export const inputButtonVariantKeys = Object.keys(inputButtonVariantMap);
|
|
50
|
+
|
|
51
|
+
export function inputButton(props) {
|
|
52
|
+
return Object.fromEntries(
|
|
53
|
+
inputButtonSlotNames.map(([slot, className]) => {
|
|
54
|
+
return [
|
|
55
|
+
slot,
|
|
56
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
57
|
+
];
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Object.assign(inputButton, { splitVariantProps: (props) => splitVariantProps(props, inputButtonVariantMap) });
|
|
63
|
+
|
|
64
|
+
// @recipe(seed): input-button
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-link-content {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
-webkit-font-smoothing: antialiased;
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
text-align: center;
|
|
8
|
+
color: var(--seed-box-color);
|
|
9
|
+
--seed-suffix-icon-color: var(--seed-box-color);
|
|
10
|
+
background-color: #0000;
|
|
11
|
+
border: none;
|
|
12
|
+
outline: none;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding-block: 0;
|
|
15
|
+
padding-inline: 0;
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.seed-link-content--weight_bold {
|
|
21
|
+
font-weight: var(--seed-font-weight-bold);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.seed-link-content--weight_regular {
|
|
25
|
+
font-weight: var(--seed-font-weight-regular);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.seed-link-content--size_t6 {
|
|
29
|
+
font-size: var(--seed-font-size-t6);
|
|
30
|
+
line-height: var(--seed-line-height-t6);
|
|
31
|
+
gap: var(--seed-dimension-x0_5);
|
|
32
|
+
--seed-suffix-icon-size: var(--seed-dimension-x4);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.seed-link-content--size_t5 {
|
|
36
|
+
font-size: var(--seed-font-size-t5);
|
|
37
|
+
line-height: var(--seed-line-height-t5);
|
|
38
|
+
gap: var(--seed-dimension-x0_5);
|
|
39
|
+
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.seed-link-content--size_t4 {
|
|
43
|
+
font-size: var(--seed-font-size-t4);
|
|
44
|
+
line-height: var(--seed-line-height-t4);
|
|
45
|
+
gap: var(--seed-dimension-x0_5);
|
|
46
|
+
--seed-suffix-icon-size: var(--seed-dimension-x3);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import './link-content.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const defaultVariant = {
|
|
5
|
+
"size": "t4",
|
|
6
|
+
"weight": "regular"
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const compoundVariants = [];
|
|
10
|
+
|
|
11
|
+
export const linkContentVariantMap = {
|
|
12
|
+
"weight": [
|
|
13
|
+
"bold",
|
|
14
|
+
"regular"
|
|
15
|
+
],
|
|
16
|
+
"size": [
|
|
17
|
+
"t6",
|
|
18
|
+
"t5",
|
|
19
|
+
"t4"
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const linkContentVariantKeys = Object.keys(linkContentVariantMap);
|
|
24
|
+
|
|
25
|
+
export function linkContent(props) {
|
|
26
|
+
return createClassName(
|
|
27
|
+
"seed-link-content",
|
|
28
|
+
mergeVariants(defaultVariant, props),
|
|
29
|
+
compoundVariants,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
Object.assign(linkContent, { splitVariantProps: (props) => splitVariantProps(props, linkContentVariantMap) });
|
|
34
|
+
|
|
35
|
+
// @recipe(seed): link-content
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-list-header {
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--seed-dimension-x2_5);
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
8
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter);
|
|
9
|
+
padding-top: var(--seed-dimension-x2);
|
|
10
|
+
padding-bottom: var(--seed-dimension-x2);
|
|
11
|
+
font-size: var(--seed-font-size-t4);
|
|
12
|
+
line-height: var(--seed-line-height-t4);
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.seed-list-header--variant_mediumWeak {
|
|
18
|
+
font-weight: var(--seed-font-weight-medium);
|
|
19
|
+
color: var(--seed-color-fg-neutral-subtle);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.seed-list-header--variant_boldSolid {
|
|
23
|
+
font-weight: var(--seed-font-weight-bold);
|
|
24
|
+
color: var(--seed-color-fg-neutral);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './list-header.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const defaultVariant = {
|
|
5
|
+
"variant": "mediumWeak"
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const compoundVariants = [];
|
|
9
|
+
|
|
10
|
+
export const listHeaderVariantMap = {
|
|
11
|
+
"variant": [
|
|
12
|
+
"mediumWeak",
|
|
13
|
+
"boldSolid"
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const listHeaderVariantKeys = Object.keys(listHeaderVariantMap);
|
|
18
|
+
|
|
19
|
+
export function listHeader(props) {
|
|
20
|
+
return createClassName(
|
|
21
|
+
"seed-list-header",
|
|
22
|
+
mergeVariants(defaultVariant, props),
|
|
23
|
+
compoundVariants,
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
Object.assign(listHeader, { splitVariantProps: (props) => splitVariantProps(props, listHeaderVariantMap) });
|
|
28
|
+
|
|
29
|
+
// @recipe(seed): list-header
|
package/recipes/list-item.css
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
flex-shrink: 0;
|
|
22
22
|
--seed-box-padding-right: var(--seed-dimension-x3);
|
|
23
23
|
padding-right: var(--seed-box-padding-right);
|
|
24
|
+
--seed-focus-ring: none;
|
|
24
25
|
--seed-icon-size: 22px;
|
|
25
26
|
--seed-icon-color: var(--seed-color-fg-neutral);
|
|
26
27
|
}
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
position: var(--seed-box-position);
|
|
36
37
|
--seed-box-gap: var(--seed-dimension-x1);
|
|
37
38
|
gap: var(--seed-box-gap);
|
|
39
|
+
--seed-focus-ring: none;
|
|
38
40
|
font-size: var(--seed-font-size-t5);
|
|
39
41
|
line-height: var(--seed-line-height-t5);
|
|
40
42
|
font-weight: var(--seed-font-weight-regular);
|
|
@@ -68,6 +70,16 @@
|
|
|
68
70
|
right: 0;
|
|
69
71
|
bottom: 0;
|
|
70
72
|
left: 0;
|
|
73
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
74
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
75
|
+
transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
76
|
+
}
|
|
77
|
+
.seed-list-item__content:is(:focus, [data-focus]) {
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
.seed-list-item__content:is(:focus-visible, [data-focus-visible])::after {
|
|
81
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
82
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
71
83
|
}
|
|
72
84
|
.seed-list-item__content::before {
|
|
73
85
|
content: '';
|
|
@@ -81,23 +93,43 @@
|
|
|
81
93
|
transition-duration: var(--seed-duration-color-transition);
|
|
82
94
|
transition-timing-function: var(--seed-timing-function-easing);
|
|
83
95
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
@media (hover: hover) {
|
|
97
|
+
.seed-list-item__content:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover])::before {
|
|
98
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
99
|
+
left: var(--seed-dimension-x1_5);
|
|
100
|
+
right: var(--seed-dimension-x1_5);
|
|
101
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@media (hover: none) {
|
|
105
|
+
.seed-list-item__content:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active])::before {
|
|
106
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
107
|
+
left: var(--seed-dimension-x1_5);
|
|
108
|
+
right: var(--seed-dimension-x1_5);
|
|
109
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@media (hover: hover) {
|
|
113
|
+
.seed-list-item__content:not(:is(:disabled, [disabled], [data-disabled]))[data-hover]::before {
|
|
114
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
115
|
+
left: var(--seed-dimension-x1_5);
|
|
116
|
+
right: var(--seed-dimension-x1_5);
|
|
117
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@media (hover: none) {
|
|
121
|
+
.seed-list-item__content:not(:is(:disabled, [disabled], [data-disabled]))[data-active]::before {
|
|
122
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
123
|
+
left: var(--seed-dimension-x1_5);
|
|
124
|
+
right: var(--seed-dimension-x1_5);
|
|
125
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
126
|
+
}
|
|
95
127
|
}
|
|
96
128
|
.seed-list-item__title {
|
|
97
129
|
flex-shrink: 0;
|
|
98
130
|
font-size: var(--seed-font-size-t5);
|
|
99
131
|
line-height: var(--seed-line-height-t5);
|
|
100
|
-
font-weight: var(--seed-font-weight-
|
|
132
|
+
font-weight: var(--seed-font-weight-regular);
|
|
101
133
|
color: var(--seed-color-fg-neutral);
|
|
102
134
|
}
|
|
103
135
|
.seed-list-item__title:is(:disabled, [disabled], [data-disabled]) {
|
|
@@ -115,9 +147,23 @@
|
|
|
115
147
|
.seed-list-item__content--highlighted_true::before {
|
|
116
148
|
background-color: var(--seed-color-bg-brand-weak);
|
|
117
149
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
150
|
+
@media (hover: hover) {
|
|
151
|
+
.seed-list-item__content--highlighted_true:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover])::before {
|
|
152
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
@media (hover: none) {
|
|
156
|
+
.seed-list-item__content--highlighted_true:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active])::before {
|
|
157
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
@media (hover: hover) {
|
|
161
|
+
.seed-list-item__content--highlighted_true:not(:is(:disabled, [disabled], [data-disabled]))[data-hover]::before {
|
|
162
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@media (hover: none) {
|
|
166
|
+
.seed-list-item__content--highlighted_true:not(:is(:disabled, [disabled], [data-disabled]))[data-active]::before {
|
|
167
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
168
|
+
}
|
|
123
169
|
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-list-item__root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
-webkit-font-smoothing: antialiased;
|
|
5
|
+
-moz-osx-font-smoothing: grayscale;
|
|
6
|
+
isolation: isolate;
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
9
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter);
|
|
10
|
+
padding-top: var(--seed-dimension-x3);
|
|
11
|
+
padding-bottom: var(--seed-dimension-x3);
|
|
12
|
+
--seed-box-align-items: center;
|
|
13
|
+
align-items: var(--seed-box-align-items);
|
|
14
|
+
border: none;
|
|
15
|
+
font-family: inherit;
|
|
16
|
+
display: flex;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.seed-list-item__prefix {
|
|
21
|
+
--seed-box-padding-right: var(--seed-dimension-x3);
|
|
22
|
+
padding-right: var(--seed-box-padding-right);
|
|
23
|
+
--seed-focus-ring: none;
|
|
24
|
+
--seed-icon-size: 22px;
|
|
25
|
+
--seed-icon-color: var(--seed-color-fg-neutral);
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.seed-list-item__prefix:is(:disabled, [disabled], [data-disabled]) {
|
|
32
|
+
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.seed-list-item__suffix {
|
|
36
|
+
--seed-box-position: initial;
|
|
37
|
+
position: var(--seed-box-position);
|
|
38
|
+
--seed-box-gap: var(--seed-dimension-x1);
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: var(--seed-box-gap);
|
|
41
|
+
--seed-focus-ring: none;
|
|
42
|
+
font-size: var(--seed-font-size-t5);
|
|
43
|
+
line-height: var(--seed-line-height-t5);
|
|
44
|
+
font-weight: var(--seed-font-weight-regular);
|
|
45
|
+
color: var(--seed-color-fg-neutral-subtle);
|
|
46
|
+
--seed-icon-size: 18px;
|
|
47
|
+
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.seed-list-item__suffix:is(:disabled, [disabled], [data-disabled]) {
|
|
53
|
+
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.seed-list-item__content {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
text-align: start;
|
|
59
|
+
--seed-box-gap: var(--seed-dimension-x0_5);
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
gap: var(--seed-box-gap);
|
|
62
|
+
--seed-box-padding-right: var(--seed-dimension-x2_5);
|
|
63
|
+
padding: 0 var(--seed-box-padding-right) 0 0;
|
|
64
|
+
background-color: #0000;
|
|
65
|
+
border: none;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
flex-grow: 1;
|
|
68
|
+
font-family: inherit;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.seed-list-item__content:after {
|
|
74
|
+
content: "";
|
|
75
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
76
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
77
|
+
transition: outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
78
|
+
position: absolute;
|
|
79
|
+
inset: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.seed-list-item__content:is(:focus, [data-focus]) {
|
|
83
|
+
outline: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.seed-list-item__content:is(:focus-visible, [data-focus-visible]):after {
|
|
87
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
88
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.seed-list-item__content:before {
|
|
92
|
+
content: "";
|
|
93
|
+
z-index: -1;
|
|
94
|
+
transition-property: background-color, left, right, border-radius;
|
|
95
|
+
transition-duration: var(--seed-duration-color-transition);
|
|
96
|
+
transition-timing-function: var(--seed-timing-function-easing);
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (hover: hover) {
|
|
102
|
+
.seed-list-item__content:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]):before {
|
|
103
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
104
|
+
left: var(--seed-dimension-x1_5);
|
|
105
|
+
right: var(--seed-dimension-x1_5);
|
|
106
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (hover: none) {
|
|
111
|
+
.seed-list-item__content:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]):before {
|
|
112
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
113
|
+
left: var(--seed-dimension-x1_5);
|
|
114
|
+
right: var(--seed-dimension-x1_5);
|
|
115
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media (hover: hover) {
|
|
120
|
+
.seed-list-item__content:not(:is(:disabled, [disabled], [data-disabled]))[data-hover]:before {
|
|
121
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
122
|
+
left: var(--seed-dimension-x1_5);
|
|
123
|
+
right: var(--seed-dimension-x1_5);
|
|
124
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (hover: none) {
|
|
129
|
+
.seed-list-item__content:not(:is(:disabled, [disabled], [data-disabled]))[data-active]:before {
|
|
130
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
131
|
+
left: var(--seed-dimension-x1_5);
|
|
132
|
+
right: var(--seed-dimension-x1_5);
|
|
133
|
+
border-radius: var(--list-item-border-radius, var(--seed-dimension-x2_5));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.seed-list-item__title {
|
|
138
|
+
font-size: var(--seed-font-size-t5);
|
|
139
|
+
line-height: var(--seed-line-height-t5);
|
|
140
|
+
font-weight: var(--seed-font-weight-regular);
|
|
141
|
+
color: var(--seed-color-fg-neutral);
|
|
142
|
+
flex-shrink: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.seed-list-item__title:is(:disabled, [disabled], [data-disabled]) {
|
|
146
|
+
color: var(--seed-color-fg-disabled);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.seed-list-item__detail {
|
|
150
|
+
font-size: var(--seed-font-size-t3);
|
|
151
|
+
line-height: var(--seed-line-height-t3);
|
|
152
|
+
font-weight: var(--seed-font-weight-regular);
|
|
153
|
+
color: var(--seed-color-fg-neutral-subtle);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.seed-list-item__detail:is(:disabled, [disabled], [data-disabled]) {
|
|
157
|
+
color: var(--seed-color-fg-disabled);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.seed-list-item__content--highlighted_true:before {
|
|
161
|
+
background-color: var(--seed-color-bg-brand-weak);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (hover: hover) {
|
|
165
|
+
.seed-list-item__content--highlighted_true:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]):before {
|
|
166
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (hover: none) {
|
|
171
|
+
.seed-list-item__content--highlighted_true:is(button, a):not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]):before {
|
|
172
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@media (hover: hover) {
|
|
177
|
+
.seed-list-item__content--highlighted_true:not(:is(:disabled, [disabled], [data-disabled]))[data-hover]:before {
|
|
178
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (hover: none) {
|
|
183
|
+
.seed-list-item__content--highlighted_true:not(:is(:disabled, [disabled], [data-disabled]))[data-active]:before {
|
|
184
|
+
background-color: var(--seed-color-bg-brand-weak-pressed);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import './list-item.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const listItemSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-list-item__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"content",
|
|
11
|
+
"seed-list-item__content"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"title",
|
|
15
|
+
"seed-list-item__title"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"detail",
|
|
19
|
+
"seed-list-item__detail"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"prefix",
|
|
23
|
+
"seed-list-item__prefix"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"suffix",
|
|
27
|
+
"seed-list-item__suffix"
|
|
28
|
+
]
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const defaultVariant = {
|
|
32
|
+
"highlighted": false
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const compoundVariants = [];
|
|
36
|
+
|
|
37
|
+
export const listItemVariantMap = {
|
|
38
|
+
"highlighted": [
|
|
39
|
+
false,
|
|
40
|
+
true
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const listItemVariantKeys = Object.keys(listItemVariantMap);
|
|
45
|
+
|
|
46
|
+
export function listItem(props) {
|
|
47
|
+
return Object.fromEntries(
|
|
48
|
+
listItemSlotNames.map(([slot, className]) => {
|
|
49
|
+
return [
|
|
50
|
+
slot,
|
|
51
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
52
|
+
];
|
|
53
|
+
}),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Object.assign(listItem, { splitVariantProps: (props) => splitVariantProps(props, listItemVariantMap) });
|
|
58
|
+
|
|
59
|
+
// @recipe(seed): list-item
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-manner-temp-badge {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
text-transform: none;
|
|
5
|
+
text-align: start;
|
|
6
|
+
-webkit-font-smoothing: antialiased;
|
|
7
|
+
-moz-osx-font-smoothing: grayscale;
|
|
8
|
+
border-radius: var(--seed-radius-full);
|
|
9
|
+
min-height: var(--seed-dimension-x5);
|
|
10
|
+
padding-left: var(--seed-dimension-x1_5);
|
|
11
|
+
padding-right: var(--seed-dimension-x1_5);
|
|
12
|
+
padding-top: var(--seed-dimension-x0_5);
|
|
13
|
+
padding-bottom: var(--seed-dimension-x0_5);
|
|
14
|
+
font-size: var(--seed-font-size-t1);
|
|
15
|
+
line-height: var(--seed-line-height-t1);
|
|
16
|
+
font-weight: var(--seed-font-weight-bold);
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.seed-manner-temp-badge--level_l1 {
|
|
24
|
+
background-color: var(--seed-color-manner-temp-l1-bg);
|
|
25
|
+
color: var(--seed-color-manner-temp-l1-text);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.seed-manner-temp-badge--level_l2 {
|
|
29
|
+
background-color: var(--seed-color-manner-temp-l2-bg);
|
|
30
|
+
color: var(--seed-color-manner-temp-l2-text);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.seed-manner-temp-badge--level_l3 {
|
|
34
|
+
background-color: var(--seed-color-manner-temp-l3-bg);
|
|
35
|
+
color: var(--seed-color-manner-temp-l3-text);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.seed-manner-temp-badge--level_l4 {
|
|
39
|
+
background-color: var(--seed-color-manner-temp-l4-bg);
|
|
40
|
+
color: var(--seed-color-manner-temp-l4-text);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.seed-manner-temp-badge--level_l5 {
|
|
44
|
+
background-color: var(--seed-color-manner-temp-l5-bg);
|
|
45
|
+
color: var(--seed-color-manner-temp-l5-text);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.seed-manner-temp-badge--level_l6 {
|
|
49
|
+
background-color: var(--seed-color-manner-temp-l6-bg);
|
|
50
|
+
color: var(--seed-color-manner-temp-l6-text);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.seed-manner-temp-badge--level_l7 {
|
|
54
|
+
background-color: var(--seed-color-manner-temp-l7-bg);
|
|
55
|
+
color: var(--seed-color-manner-temp-l7-text);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.seed-manner-temp-badge--level_l8 {
|
|
59
|
+
background-color: var(--seed-color-manner-temp-l8-bg);
|
|
60
|
+
color: var(--seed-color-manner-temp-l8-text);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.seed-manner-temp-badge--level_l9 {
|
|
64
|
+
background-color: var(--seed-color-manner-temp-l9-bg);
|
|
65
|
+
color: var(--seed-color-manner-temp-l9-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.seed-manner-temp-badge--level_l10 {
|
|
69
|
+
background-color: var(--seed-color-manner-temp-l10-bg);
|
|
70
|
+
color: var(--seed-color-manner-temp-l10-text);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import './manner-temp-badge.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const defaultVariant = {
|
|
5
|
+
"level": "l1"
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const compoundVariants = [];
|
|
9
|
+
|
|
10
|
+
export const mannerTempBadgeVariantMap = {
|
|
11
|
+
"level": [
|
|
12
|
+
"l1",
|
|
13
|
+
"l2",
|
|
14
|
+
"l3",
|
|
15
|
+
"l4",
|
|
16
|
+
"l5",
|
|
17
|
+
"l6",
|
|
18
|
+
"l7",
|
|
19
|
+
"l8",
|
|
20
|
+
"l9",
|
|
21
|
+
"l10"
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const mannerTempBadgeVariantKeys = Object.keys(mannerTempBadgeVariantMap);
|
|
26
|
+
|
|
27
|
+
export function mannerTempBadge(props) {
|
|
28
|
+
return createClassName(
|
|
29
|
+
"seed-manner-temp-badge",
|
|
30
|
+
mergeVariants(defaultVariant, props),
|
|
31
|
+
compoundVariants,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Object.assign(mannerTempBadge, { splitVariantProps: (props) => splitVariantProps(props, mannerTempBadgeVariantMap) });
|
|
36
|
+
|
|
37
|
+
// @recipe(seed): manner-temp-badge
|