@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
package/recipes/checkmark.css
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
flex: none;
|
|
5
5
|
margin-top: var(--checkmark-margin-top, 0);
|
|
6
|
-
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
6
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
7
|
+
outline: var(--seed-focus-ring, var(--seed-dimension-x0_5) solid transparent);
|
|
8
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
9
|
+
}
|
|
10
|
+
.seed-checkmark__root:is(:focus-visible, [data-focus-visible]) {
|
|
11
|
+
outline: var(--seed-focus-ring, var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring));
|
|
12
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
7
13
|
}
|
|
8
14
|
.seed-checkmark__icon {
|
|
9
15
|
display: none;
|
|
@@ -25,8 +31,15 @@
|
|
|
25
31
|
.seed-checkmark__root--variant_square:is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
26
32
|
border-width: 0;
|
|
27
33
|
}
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
.seed-checkmark__root--variant_square:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]) {
|
|
36
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@media (hover: none) {
|
|
40
|
+
.seed-checkmark__root--variant_square:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
|
|
41
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
42
|
+
}
|
|
30
43
|
}
|
|
31
44
|
.seed-checkmark__root--variant_square:is(:disabled, [disabled], [data-disabled]) {
|
|
32
45
|
background: var(--seed-color-bg-disabled);
|
|
@@ -38,8 +51,15 @@
|
|
|
38
51
|
.seed-checkmark__icon--variant_square:is(:disabled, [disabled], [data-disabled]):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
39
52
|
color: var(--seed-color-fg-disabled);
|
|
40
53
|
}
|
|
41
|
-
|
|
42
|
-
|
|
54
|
+
@media (hover: hover) {
|
|
55
|
+
.seed-checkmark__root--variant_ghost:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]) {
|
|
56
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@media (hover: none) {
|
|
60
|
+
.seed-checkmark__root--variant_ghost:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
|
|
61
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
62
|
+
}
|
|
43
63
|
}
|
|
44
64
|
.seed-checkmark__icon--variant_ghost {
|
|
45
65
|
display: block;
|
|
@@ -65,8 +85,15 @@
|
|
|
65
85
|
.seed-checkmark__root--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
66
86
|
background: var(--seed-color-bg-neutral-inverted);
|
|
67
87
|
}
|
|
68
|
-
|
|
69
|
-
|
|
88
|
+
@media (hover: hover) {
|
|
89
|
+
.seed-checkmark__root--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
90
|
+
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@media (hover: none) {
|
|
94
|
+
.seed-checkmark__root--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
95
|
+
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
96
|
+
}
|
|
70
97
|
}
|
|
71
98
|
.seed-checkmark__icon--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
72
99
|
color: var(--seed-color-fg-neutral-inverted);
|
|
@@ -74,20 +101,41 @@
|
|
|
74
101
|
.seed-checkmark__root--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
75
102
|
background: var(--seed-color-bg-brand-solid);
|
|
76
103
|
}
|
|
77
|
-
|
|
78
|
-
|
|
104
|
+
@media (hover: hover) {
|
|
105
|
+
.seed-checkmark__root--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
106
|
+
background: var(--seed-color-bg-brand-solid-pressed);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
@media (hover: none) {
|
|
110
|
+
.seed-checkmark__root--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
111
|
+
background: var(--seed-color-bg-brand-solid-pressed);
|
|
112
|
+
}
|
|
79
113
|
}
|
|
80
114
|
.seed-checkmark__icon--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
81
115
|
color: var(--seed-color-palette-static-white);
|
|
82
116
|
}
|
|
83
|
-
|
|
84
|
-
|
|
117
|
+
@media (hover: hover) {
|
|
118
|
+
.seed-checkmark__root--variant_ghost-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
119
|
+
background: var(--seed-color-palette-gray-200);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
@media (hover: none) {
|
|
123
|
+
.seed-checkmark__root--variant_ghost-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
124
|
+
background: var(--seed-color-palette-gray-200);
|
|
125
|
+
}
|
|
85
126
|
}
|
|
86
127
|
.seed-checkmark__icon--variant_ghost-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
87
128
|
color: var(--seed-color-fg-neutral);
|
|
88
129
|
}
|
|
89
|
-
|
|
90
|
-
|
|
130
|
+
@media (hover: hover) {
|
|
131
|
+
.seed-checkmark__root--variant_ghost-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
132
|
+
background: var(--seed-color-palette-carrot-200);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
@media (hover: none) {
|
|
136
|
+
.seed-checkmark__root--variant_ghost-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
137
|
+
background: var(--seed-color-palette-carrot-200);
|
|
138
|
+
}
|
|
91
139
|
}
|
|
92
140
|
.seed-checkmark__icon--variant_ghost-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
93
141
|
color: var(--seed-color-fg-brand);
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-checkmark__root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
margin-top: var(--checkmark-margin-top, 0);
|
|
5
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
6
|
+
outline: var(--seed-focus-ring, var(--seed-dimension-x0_5) solid transparent);
|
|
7
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
8
|
+
flex: none;
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.seed-checkmark__root:is(:focus-visible, [data-focus-visible]) {
|
|
13
|
+
outline: var(--seed-focus-ring, var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring));
|
|
14
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.seed-checkmark__icon {
|
|
18
|
+
content: "";
|
|
19
|
+
text-align: center;
|
|
20
|
+
overflow: initial;
|
|
21
|
+
margin: auto;
|
|
22
|
+
display: none;
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.seed-checkmark__root--variant_square {
|
|
28
|
+
border-style: solid;
|
|
29
|
+
border-width: 1px;
|
|
30
|
+
border-color: var(--seed-color-stroke-neutral-weak);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.seed-checkmark__root--variant_square:is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
34
|
+
border-width: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (hover: hover) {
|
|
38
|
+
.seed-checkmark__root--variant_square:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]) {
|
|
39
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (hover: none) {
|
|
44
|
+
.seed-checkmark__root--variant_square:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
|
|
45
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.seed-checkmark__root--variant_square:is(:disabled, [disabled], [data-disabled]) {
|
|
50
|
+
background: var(--seed-color-bg-disabled);
|
|
51
|
+
border-color: var(--seed-color-stroke-neutral-muted);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.seed-checkmark__icon--variant_square:is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.seed-checkmark__icon--variant_square:is(:disabled, [disabled], [data-disabled]):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
59
|
+
color: var(--seed-color-fg-disabled);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (hover: hover) {
|
|
63
|
+
.seed-checkmark__root--variant_ghost:not(:is(:disabled, [disabled], [data-disabled])):is(:hover, [data-hover]) {
|
|
64
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (hover: none) {
|
|
69
|
+
.seed-checkmark__root--variant_ghost:not(:is(:disabled, [disabled], [data-disabled])):is(:active, [data-active]) {
|
|
70
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.seed-checkmark__icon--variant_ghost {
|
|
75
|
+
color: var(--seed-color-fg-placeholder);
|
|
76
|
+
transition: color var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
77
|
+
display: block;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.seed-checkmark__icon--variant_ghost:is(:disabled, [disabled], [data-disabled]), .seed-checkmark__icon--variant_ghost:is(:disabled, [disabled], [data-disabled]):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
81
|
+
color: var(--seed-color-fg-disabled);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.seed-checkmark__root--size_large {
|
|
85
|
+
border-radius: var(--seed-radius-r1);
|
|
86
|
+
width: var(--seed-dimension-x6);
|
|
87
|
+
height: var(--seed-dimension-x6);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.seed-checkmark__root--size_medium {
|
|
91
|
+
border-radius: var(--seed-radius-r1);
|
|
92
|
+
width: var(--seed-dimension-x5);
|
|
93
|
+
height: var(--seed-dimension-x5);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.seed-checkmark__root--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
97
|
+
background: var(--seed-color-bg-neutral-inverted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (hover: hover) {
|
|
101
|
+
.seed-checkmark__root--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
102
|
+
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (hover: none) {
|
|
107
|
+
.seed-checkmark__root--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
108
|
+
background: var(--seed-color-bg-neutral-inverted-pressed);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.seed-checkmark__icon--variant_square-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
113
|
+
color: var(--seed-color-fg-neutral-inverted);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.seed-checkmark__root--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
117
|
+
background: var(--seed-color-bg-brand-solid);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (hover: hover) {
|
|
121
|
+
.seed-checkmark__root--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
122
|
+
background: var(--seed-color-bg-brand-solid-pressed);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (hover: none) {
|
|
127
|
+
.seed-checkmark__root--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
128
|
+
background: var(--seed-color-bg-brand-solid-pressed);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.seed-checkmark__icon--variant_square-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
133
|
+
color: var(--seed-color-palette-static-white);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media (hover: hover) {
|
|
137
|
+
.seed-checkmark__root--variant_ghost-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
138
|
+
background: var(--seed-color-palette-gray-200);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (hover: none) {
|
|
143
|
+
.seed-checkmark__root--variant_ghost-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
144
|
+
background: var(--seed-color-palette-gray-200);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.seed-checkmark__icon--variant_ghost-tone_neutral:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
149
|
+
color: var(--seed-color-fg-neutral);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (hover: hover) {
|
|
153
|
+
.seed-checkmark__root--variant_ghost-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:hover, [data-hover]) {
|
|
154
|
+
background: var(--seed-color-palette-carrot-200);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media (hover: none) {
|
|
159
|
+
.seed-checkmark__root--variant_ghost-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]):is(:active, [data-active]) {
|
|
160
|
+
background: var(--seed-color-palette-carrot-200);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.seed-checkmark__icon--variant_ghost-tone_brand:not(:is(:disabled, [disabled], [data-disabled])):is(:checked, :indeterminate, [data-checked], [data-indeterminate]) {
|
|
165
|
+
color: var(--seed-color-fg-brand);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.seed-checkmark__icon--size_medium-variant_ghost {
|
|
169
|
+
width: 14px;
|
|
170
|
+
height: 14px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.seed-checkmark__icon--size_large-variant_ghost {
|
|
174
|
+
width: 18px;
|
|
175
|
+
height: 18px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.seed-checkmark__icon--size_medium-variant_square {
|
|
179
|
+
width: 12px;
|
|
180
|
+
height: 12px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.seed-checkmark__icon--size_large-variant_square {
|
|
184
|
+
width: 14px;
|
|
185
|
+
height: 14px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import './checkmark.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const checkmarkSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-checkmark__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"icon",
|
|
11
|
+
"seed-checkmark__icon"
|
|
12
|
+
]
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const defaultVariant = {
|
|
16
|
+
"variant": "square",
|
|
17
|
+
"tone": "brand",
|
|
18
|
+
"size": "medium"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const compoundVariants = [
|
|
22
|
+
{
|
|
23
|
+
"variant": "square",
|
|
24
|
+
"tone": "neutral"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"variant": "square",
|
|
28
|
+
"tone": "brand"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"variant": "ghost",
|
|
32
|
+
"tone": "neutral"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"variant": "ghost",
|
|
36
|
+
"tone": "brand"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"size": "medium",
|
|
40
|
+
"variant": "ghost"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"size": "large",
|
|
44
|
+
"variant": "ghost"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"size": "medium",
|
|
48
|
+
"variant": "square"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"size": "large",
|
|
52
|
+
"variant": "square"
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
export const checkmarkVariantMap = {
|
|
57
|
+
"variant": [
|
|
58
|
+
"square",
|
|
59
|
+
"ghost"
|
|
60
|
+
],
|
|
61
|
+
"tone": [
|
|
62
|
+
"neutral",
|
|
63
|
+
"brand"
|
|
64
|
+
],
|
|
65
|
+
"size": [
|
|
66
|
+
"large",
|
|
67
|
+
"medium"
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const checkmarkVariantKeys = Object.keys(checkmarkVariantMap);
|
|
72
|
+
|
|
73
|
+
export function checkmark(props) {
|
|
74
|
+
return Object.fromEntries(
|
|
75
|
+
checkmarkSlotNames.map(([slot, className]) => {
|
|
76
|
+
return [
|
|
77
|
+
slot,
|
|
78
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
79
|
+
];
|
|
80
|
+
}),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
Object.assign(checkmark, { splitVariantProps: (props) => splitVariantProps(props, checkmarkVariantMap) });
|
|
85
|
+
|
|
86
|
+
// @recipe(seed): checkmark
|
package/recipes/chip-tabs.css
CHANGED
|
@@ -49,7 +49,13 @@
|
|
|
49
49
|
padding-top: var(--seed-dimension-x2);
|
|
50
50
|
padding-bottom: var(--seed-dimension-x2);
|
|
51
51
|
font-weight: var(--seed-font-weight-medium);
|
|
52
|
-
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
52
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
53
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
54
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
55
|
+
}
|
|
56
|
+
.seed-chip-tabs__trigger:is(:focus-visible, [data-focus-visible]) {
|
|
57
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
58
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
53
59
|
}
|
|
54
60
|
.seed-chip-tabs__list--size_medium {
|
|
55
61
|
gap: 8px;
|
|
@@ -77,11 +83,25 @@
|
|
|
77
83
|
background-color: var(--seed-color-bg-neutral-inverted);
|
|
78
84
|
color: var(--seed-color-fg-neutral-inverted);
|
|
79
85
|
}
|
|
80
|
-
|
|
81
|
-
|
|
86
|
+
@media (hover: hover) {
|
|
87
|
+
.seed-chip-tabs__trigger--variant_neutralSolid:is(:hover, [data-hover]) {
|
|
88
|
+
background-color: var(--seed-color-bg-neutral-weak-alpha-pressed);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@media (hover: none) {
|
|
92
|
+
.seed-chip-tabs__trigger--variant_neutralSolid:is(:active, [data-active]) {
|
|
93
|
+
background-color: var(--seed-color-bg-neutral-weak-alpha-pressed);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
@media (hover: hover) {
|
|
97
|
+
.seed-chip-tabs__trigger--variant_neutralSolid:is([aria-selected=true], [data-selected]):is(:hover, [data-hover]) {
|
|
98
|
+
background-color: var(--seed-color-bg-neutral-inverted-pressed);
|
|
99
|
+
}
|
|
82
100
|
}
|
|
83
|
-
|
|
84
|
-
|
|
101
|
+
@media (hover: none) {
|
|
102
|
+
.seed-chip-tabs__trigger--variant_neutralSolid:is([aria-selected=true], [data-selected]):is(:active, [data-active]) {
|
|
103
|
+
background-color: var(--seed-color-bg-neutral-inverted-pressed);
|
|
104
|
+
}
|
|
85
105
|
}
|
|
86
106
|
.seed-chip-tabs__trigger--variant_neutralSolid:is(:disabled, [disabled], [data-disabled]) {
|
|
87
107
|
cursor: not-allowed;
|
|
@@ -101,11 +121,25 @@
|
|
|
101
121
|
border-color: transparent;
|
|
102
122
|
color: var(--seed-color-fg-neutral-inverted);
|
|
103
123
|
}
|
|
104
|
-
|
|
105
|
-
|
|
124
|
+
@media (hover: hover) {
|
|
125
|
+
.seed-chip-tabs__trigger--variant_neutralOutline:is(:hover, [data-hover]) {
|
|
126
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
127
|
+
}
|
|
106
128
|
}
|
|
107
|
-
|
|
108
|
-
|
|
129
|
+
@media (hover: none) {
|
|
130
|
+
.seed-chip-tabs__trigger--variant_neutralOutline:is(:active, [data-active]) {
|
|
131
|
+
background-color: var(--seed-color-bg-transparent-pressed);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
@media (hover: hover) {
|
|
135
|
+
.seed-chip-tabs__trigger--variant_neutralOutline:is([aria-selected=true], [data-selected]):is(:hover, [data-hover]) {
|
|
136
|
+
background-color: var(--seed-color-bg-neutral-inverted-pressed);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
@media (hover: none) {
|
|
140
|
+
.seed-chip-tabs__trigger--variant_neutralOutline:is([aria-selected=true], [data-selected]):is(:active, [data-active]) {
|
|
141
|
+
background-color: var(--seed-color-bg-neutral-inverted-pressed);
|
|
142
|
+
}
|
|
109
143
|
}
|
|
110
144
|
.seed-chip-tabs__trigger--variant_neutralOutline:is(:disabled, [disabled], [data-disabled]) {
|
|
111
145
|
cursor: not-allowed;
|
|
@@ -123,11 +157,25 @@
|
|
|
123
157
|
background-color: var(--seed-color-bg-brand-solid);
|
|
124
158
|
color: var(--seed-color-palette-static-white);
|
|
125
159
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
160
|
+
@media (hover: hover) {
|
|
161
|
+
.seed-chip-tabs__trigger--variant_brandSolid:is(:hover, [data-hover]) {
|
|
162
|
+
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@media (hover: none) {
|
|
166
|
+
.seed-chip-tabs__trigger--variant_brandSolid:is(:active, [data-active]) {
|
|
167
|
+
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
@media (hover: hover) {
|
|
171
|
+
.seed-chip-tabs__trigger--variant_brandSolid:is([aria-selected=true], [data-selected]):is(:hover, [data-hover]) {
|
|
172
|
+
background-color: var(--seed-color-bg-brand-solid-pressed);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
@media (hover: none) {
|
|
176
|
+
.seed-chip-tabs__trigger--variant_brandSolid:is([aria-selected=true], [data-selected]):is(:active, [data-active]) {
|
|
177
|
+
background-color: var(--seed-color-bg-brand-solid-pressed);
|
|
178
|
+
}
|
|
131
179
|
}
|
|
132
180
|
.seed-chip-tabs__trigger--variant_brandSolid:is(:disabled, [disabled], [data-disabled]) {
|
|
133
181
|
cursor: not-allowed;
|