@seed-design/lynx-css 0.8.1 → 0.9.0
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 +885 -87
- package/all.min.css +1 -1
- package/package.json +1 -1
- package/recipes/accordion.css +174 -0
- package/recipes/accordion.d.ts +40 -0
- package/recipes/accordion.mjs +116 -0
- package/recipes/bottom-sheet.css +1 -0
- package/recipes/callout.css +190 -0
- package/recipes/callout.d.ts +28 -0
- package/recipes/callout.mjs +101 -0
- package/recipes/checkmark.css +46 -14
- package/recipes/checkmark.d.ts +1 -1
- package/recipes/checkmark.mjs +46 -21
- package/recipes/chip.css +239 -0
- package/recipes/chip.d.ts +44 -0
- package/recipes/chip.mjs +153 -0
- package/recipes/tabs.css +136 -0
- package/recipes/tabs.d.ts +39 -0
- package/recipes/tabs.mjs +103 -0
- package/vars/component/accordion-item.d.ts +1 -1
- package/vars/component/accordion-item.mjs +1 -1
- package/vars/component/action-button.d.ts +1 -23
- package/vars/component/action-button.mjs +1 -23
- package/vars/component/bottom-sheet.d.ts +1 -1
- package/vars/component/bottom-sheet.mjs +1 -1
- package/vars/component/callout-close-button.d.ts +81 -0
- package/vars/component/callout-close-button.mjs +63 -0
- package/vars/component/callout.d.ts +1 -2
- package/vars/component/callout.mjs +1 -2
- package/vars/component/checkbox.d.ts +3 -0
- package/vars/component/help-bubble.d.ts +1 -0
- package/vars/component/help-bubble.mjs +1 -0
- package/vars/component/index.d.ts +6 -1
- package/vars/component/index.mjs +6 -1
- package/vars/component/list-item.d.ts +2 -6
- package/vars/component/list-item.mjs +2 -5
- package/vars/component/page-banner-close-button.d.ts +133 -0
- package/vars/component/page-banner-close-button.mjs +99 -0
- package/vars/component/page-banner.d.ts +0 -1
- package/vars/component/page-banner.mjs +0 -1
- package/vars/component/pagination-button.d.ts +33 -0
- package/vars/component/pagination-button.mjs +33 -0
- package/vars/component/pagination-page-item.d.ts +54 -0
- package/vars/component/pagination-page-item.mjs +54 -0
- package/vars/component/radio.d.ts +3 -0
- package/vars/component/select-box.d.ts +2 -2
- package/vars/component/select-box.mjs +2 -2
- package/vars/component/snackbar.d.ts +1 -1
- package/vars/component/snackbar.mjs +1 -1
- package/vars/component/switch.d.ts +3 -0
- package/vars/component/switchmark.d.ts +2 -0
- package/vars/component/wheel-picker.d.ts +72 -0
- package/vars/component/wheel-picker.mjs +72 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import './accordion.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const accordionSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-accordion__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"item",
|
|
11
|
+
"seed-accordion__item"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"header",
|
|
15
|
+
"seed-accordion__header"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"trigger",
|
|
19
|
+
"seed-accordion__trigger"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"pressedOverlay",
|
|
23
|
+
"seed-accordion__pressedOverlay"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"prefix",
|
|
27
|
+
"seed-accordion__prefix"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"body",
|
|
31
|
+
"seed-accordion__body"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"title",
|
|
35
|
+
"seed-accordion__title"
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"description",
|
|
39
|
+
"seed-accordion__description"
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
"suffixIcon",
|
|
43
|
+
"seed-accordion__suffixIcon"
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
"content",
|
|
47
|
+
"seed-accordion__content"
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
"contentInner",
|
|
51
|
+
"seed-accordion__contentInner"
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
"divider",
|
|
55
|
+
"seed-accordion__divider"
|
|
56
|
+
]
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
const defaultVariant = {
|
|
60
|
+
"variant": "inline",
|
|
61
|
+
"size": "medium",
|
|
62
|
+
"open": false,
|
|
63
|
+
"pressed": false,
|
|
64
|
+
"disabled": false
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const compoundVariants = [
|
|
68
|
+
{
|
|
69
|
+
"variant": "separated",
|
|
70
|
+
"size": "medium"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"variant": "separated",
|
|
74
|
+
"size": "large"
|
|
75
|
+
}
|
|
76
|
+
];
|
|
77
|
+
|
|
78
|
+
export const accordionVariantMap = {
|
|
79
|
+
"variant": [
|
|
80
|
+
"inline",
|
|
81
|
+
"separated"
|
|
82
|
+
],
|
|
83
|
+
"size": [
|
|
84
|
+
"medium",
|
|
85
|
+
"large"
|
|
86
|
+
],
|
|
87
|
+
"open": [
|
|
88
|
+
true,
|
|
89
|
+
false
|
|
90
|
+
],
|
|
91
|
+
"pressed": [
|
|
92
|
+
true,
|
|
93
|
+
false
|
|
94
|
+
],
|
|
95
|
+
"disabled": [
|
|
96
|
+
true,
|
|
97
|
+
false
|
|
98
|
+
]
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export const accordionVariantKeys = Object.keys(accordionVariantMap);
|
|
102
|
+
|
|
103
|
+
export function accordion(props) {
|
|
104
|
+
return Object.fromEntries(
|
|
105
|
+
accordionSlotNames.map(([slot, className]) => {
|
|
106
|
+
return [
|
|
107
|
+
slot,
|
|
108
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
109
|
+
];
|
|
110
|
+
}),
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
Object.assign(accordion, { splitVariantProps: (props) => splitVariantProps(props, accordionVariantMap) });
|
|
115
|
+
|
|
116
|
+
// @recipe(seed): accordion
|
package/recipes/bottom-sheet.css
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
29
29
|
background: var(--seed-color-bg-layer-floating);
|
|
30
|
+
max-width: 480px;
|
|
30
31
|
border-top-left-radius: var(--seed-radius-r6);
|
|
31
32
|
border-top-right-radius: var(--seed-radius-r6);
|
|
32
33
|
transform: translate3d(0, 100%, 0)
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
.seed-callout__root {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: 50px;
|
|
7
|
+
padding-left: var(--seed-dimension-x3_5);
|
|
8
|
+
padding-right: var(--seed-dimension-x3_5);
|
|
9
|
+
padding-top: var(--seed-dimension-x3_5);
|
|
10
|
+
padding-bottom: var(--seed-dimension-x3_5);
|
|
11
|
+
gap: var(--seed-dimension-x3);
|
|
12
|
+
border-radius: var(--seed-radius-r2_5)
|
|
13
|
+
}
|
|
14
|
+
.seed-callout__content {
|
|
15
|
+
flex-grow: 1;
|
|
16
|
+
flex-shrink: 1;
|
|
17
|
+
line-height: var(--seed-line-height-t4)
|
|
18
|
+
}
|
|
19
|
+
.seed-callout__title {
|
|
20
|
+
font-size: var(--seed-font-size-t4);
|
|
21
|
+
line-height: var(--seed-line-height-t4);
|
|
22
|
+
font-weight: var(--seed-font-weight-bold)
|
|
23
|
+
}
|
|
24
|
+
.seed-callout__description {
|
|
25
|
+
font-size: var(--seed-font-size-t4);
|
|
26
|
+
line-height: var(--seed-line-height-t4);
|
|
27
|
+
font-weight: var(--seed-font-weight-regular)
|
|
28
|
+
}
|
|
29
|
+
.seed-callout__link {
|
|
30
|
+
font-size: var(--seed-font-size-t4);
|
|
31
|
+
line-height: var(--seed-line-height-t4);
|
|
32
|
+
font-weight: var(--seed-font-weight-regular);
|
|
33
|
+
border-bottom-width: 1px;
|
|
34
|
+
border-bottom-style: solid
|
|
35
|
+
}
|
|
36
|
+
.seed-callout__closeButton {
|
|
37
|
+
flex-grow: 0;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
margin-top: calc((undefined - var(--seed-dimension-x4)) * -0.5);
|
|
44
|
+
margin-right: calc((undefined - var(--seed-dimension-x4)) * -0.5);
|
|
45
|
+
margin-bottom: calc((undefined - var(--seed-dimension-x4)) * -0.5);
|
|
46
|
+
margin-left: calc((undefined - var(--seed-dimension-x4)) * -0.5);
|
|
47
|
+
border-radius: var(--seed-radius-r2_5)
|
|
48
|
+
}
|
|
49
|
+
.seed-callout__prefixIcon {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
width: var(--seed-dimension-x4);
|
|
52
|
+
height: var(--seed-dimension-x4)
|
|
53
|
+
}
|
|
54
|
+
.seed-callout__suffixIcon {
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
width: var(--seed-dimension-x4);
|
|
57
|
+
height: var(--seed-dimension-x4)
|
|
58
|
+
}
|
|
59
|
+
.seed-callout__root--tone_neutral {
|
|
60
|
+
background-color: var(--seed-color-bg-neutral-weak)
|
|
61
|
+
}
|
|
62
|
+
.seed-callout__title--tone_neutral {
|
|
63
|
+
color: var(--seed-color-fg-neutral)
|
|
64
|
+
}
|
|
65
|
+
.seed-callout__description--tone_neutral {
|
|
66
|
+
color: var(--seed-color-fg-neutral)
|
|
67
|
+
}
|
|
68
|
+
.seed-callout__link--tone_neutral {
|
|
69
|
+
color: var(--seed-color-fg-neutral);
|
|
70
|
+
border-bottom-color: var(--seed-color-fg-neutral)
|
|
71
|
+
}
|
|
72
|
+
.seed-callout__prefixIcon--tone_neutral {
|
|
73
|
+
color: var(--seed-color-fg-neutral)
|
|
74
|
+
}
|
|
75
|
+
.seed-callout__suffixIcon--tone_neutral {
|
|
76
|
+
color: var(--seed-color-fg-neutral)
|
|
77
|
+
}
|
|
78
|
+
.seed-callout__root--tone_informative {
|
|
79
|
+
background-color: var(--seed-color-bg-informative-weak)
|
|
80
|
+
}
|
|
81
|
+
.seed-callout__title--tone_informative {
|
|
82
|
+
color: var(--seed-color-fg-informative-contrast)
|
|
83
|
+
}
|
|
84
|
+
.seed-callout__description--tone_informative {
|
|
85
|
+
color: var(--seed-color-fg-informative-contrast)
|
|
86
|
+
}
|
|
87
|
+
.seed-callout__link--tone_informative {
|
|
88
|
+
color: var(--seed-color-fg-informative-contrast);
|
|
89
|
+
border-bottom-color: var(--seed-color-fg-informative-contrast)
|
|
90
|
+
}
|
|
91
|
+
.seed-callout__prefixIcon--tone_informative {
|
|
92
|
+
color: var(--seed-color-fg-informative-contrast)
|
|
93
|
+
}
|
|
94
|
+
.seed-callout__suffixIcon--tone_informative {
|
|
95
|
+
color: var(--seed-color-fg-informative-contrast)
|
|
96
|
+
}
|
|
97
|
+
.seed-callout__root--tone_positive {
|
|
98
|
+
background-color: var(--seed-color-bg-positive-weak)
|
|
99
|
+
}
|
|
100
|
+
.seed-callout__title--tone_positive {
|
|
101
|
+
color: var(--seed-color-fg-positive-contrast)
|
|
102
|
+
}
|
|
103
|
+
.seed-callout__description--tone_positive {
|
|
104
|
+
color: var(--seed-color-fg-positive-contrast)
|
|
105
|
+
}
|
|
106
|
+
.seed-callout__link--tone_positive {
|
|
107
|
+
color: var(--seed-color-fg-positive-contrast);
|
|
108
|
+
border-bottom-color: var(--seed-color-fg-positive-contrast)
|
|
109
|
+
}
|
|
110
|
+
.seed-callout__prefixIcon--tone_positive {
|
|
111
|
+
color: var(--seed-color-fg-positive-contrast)
|
|
112
|
+
}
|
|
113
|
+
.seed-callout__suffixIcon--tone_positive {
|
|
114
|
+
color: var(--seed-color-fg-positive-contrast)
|
|
115
|
+
}
|
|
116
|
+
.seed-callout__root--tone_warning {
|
|
117
|
+
background-color: var(--seed-color-bg-warning-weak)
|
|
118
|
+
}
|
|
119
|
+
.seed-callout__title--tone_warning {
|
|
120
|
+
color: var(--seed-color-fg-warning-contrast)
|
|
121
|
+
}
|
|
122
|
+
.seed-callout__description--tone_warning {
|
|
123
|
+
color: var(--seed-color-fg-warning-contrast)
|
|
124
|
+
}
|
|
125
|
+
.seed-callout__link--tone_warning {
|
|
126
|
+
color: var(--seed-color-fg-warning-contrast);
|
|
127
|
+
border-bottom-color: var(--seed-color-fg-warning-contrast)
|
|
128
|
+
}
|
|
129
|
+
.seed-callout__prefixIcon--tone_warning {
|
|
130
|
+
color: var(--seed-color-fg-warning-contrast)
|
|
131
|
+
}
|
|
132
|
+
.seed-callout__suffixIcon--tone_warning {
|
|
133
|
+
color: var(--seed-color-fg-warning-contrast)
|
|
134
|
+
}
|
|
135
|
+
.seed-callout__root--tone_critical {
|
|
136
|
+
background-color: var(--seed-color-bg-critical-weak)
|
|
137
|
+
}
|
|
138
|
+
.seed-callout__title--tone_critical {
|
|
139
|
+
color: var(--seed-color-fg-critical-contrast)
|
|
140
|
+
}
|
|
141
|
+
.seed-callout__description--tone_critical {
|
|
142
|
+
color: var(--seed-color-fg-critical-contrast)
|
|
143
|
+
}
|
|
144
|
+
.seed-callout__link--tone_critical {
|
|
145
|
+
color: var(--seed-color-fg-critical-contrast);
|
|
146
|
+
border-bottom-color: var(--seed-color-fg-critical-contrast)
|
|
147
|
+
}
|
|
148
|
+
.seed-callout__prefixIcon--tone_critical {
|
|
149
|
+
color: var(--seed-color-fg-critical-contrast)
|
|
150
|
+
}
|
|
151
|
+
.seed-callout__suffixIcon--tone_critical {
|
|
152
|
+
color: var(--seed-color-fg-critical-contrast)
|
|
153
|
+
}
|
|
154
|
+
.seed-callout__root--tone_magic {
|
|
155
|
+
background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic))
|
|
156
|
+
}
|
|
157
|
+
.seed-callout__title--tone_magic {
|
|
158
|
+
color: var(--seed-color-fg-neutral)
|
|
159
|
+
}
|
|
160
|
+
.seed-callout__description--tone_magic {
|
|
161
|
+
color: var(--seed-color-fg-neutral)
|
|
162
|
+
}
|
|
163
|
+
.seed-callout__link--tone_magic {
|
|
164
|
+
color: var(--seed-color-fg-neutral);
|
|
165
|
+
border-bottom-color: var(--seed-color-fg-neutral)
|
|
166
|
+
}
|
|
167
|
+
.seed-callout__prefixIcon--tone_magic {
|
|
168
|
+
color: var(--seed-color-fg-neutral)
|
|
169
|
+
}
|
|
170
|
+
.seed-callout__suffixIcon--tone_magic {
|
|
171
|
+
color: var(--seed-color-fg-neutral)
|
|
172
|
+
}
|
|
173
|
+
.seed-callout__root--tone_neutral-pressed_true {
|
|
174
|
+
background-color: var(--seed-color-bg-neutral-weak-pressed)
|
|
175
|
+
}
|
|
176
|
+
.seed-callout__root--tone_informative-pressed_true {
|
|
177
|
+
background-color: var(--seed-color-bg-informative-weak-pressed)
|
|
178
|
+
}
|
|
179
|
+
.seed-callout__root--tone_positive-pressed_true {
|
|
180
|
+
background-color: var(--seed-color-bg-positive-weak-pressed)
|
|
181
|
+
}
|
|
182
|
+
.seed-callout__root--tone_warning-pressed_true {
|
|
183
|
+
background-color: var(--seed-color-bg-warning-weak-pressed)
|
|
184
|
+
}
|
|
185
|
+
.seed-callout__root--tone_critical-pressed_true {
|
|
186
|
+
background-color: var(--seed-color-bg-critical-weak-pressed)
|
|
187
|
+
}
|
|
188
|
+
.seed-callout__root--tone_magic-pressed_true {
|
|
189
|
+
background-image: linear-gradient(88deg, var(--seed-gradient-glow-magic-pressed))
|
|
190
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare interface CalloutVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "neutral"
|
|
4
|
+
*/
|
|
5
|
+
tone: "neutral" | "informative" | "positive" | "warning" | "critical" | "magic";
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
pressed: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare type CalloutVariantMap = {
|
|
13
|
+
[key in keyof CalloutVariant]: Array<CalloutVariant[key]>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare type CalloutVariantProps = Partial<CalloutVariant>;
|
|
17
|
+
|
|
18
|
+
export declare type CalloutSlotName = "root" | "content" | "title" | "description" | "link" | "closeButton" | "prefixIcon" | "suffixIcon";
|
|
19
|
+
|
|
20
|
+
export declare const calloutVariantMap: CalloutVariantMap;
|
|
21
|
+
|
|
22
|
+
export declare const callout: ((
|
|
23
|
+
props?: CalloutVariantProps,
|
|
24
|
+
) => Record<CalloutSlotName, string>) & {
|
|
25
|
+
splitVariantProps: <T extends CalloutVariantProps>(
|
|
26
|
+
props: T,
|
|
27
|
+
) => [CalloutVariantProps, Omit<T, keyof CalloutVariantProps>];
|
|
28
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import './callout.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const calloutSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-callout__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"content",
|
|
11
|
+
"seed-callout__content"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"title",
|
|
15
|
+
"seed-callout__title"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"description",
|
|
19
|
+
"seed-callout__description"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"link",
|
|
23
|
+
"seed-callout__link"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"closeButton",
|
|
27
|
+
"seed-callout__closeButton"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"prefixIcon",
|
|
31
|
+
"seed-callout__prefixIcon"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"suffixIcon",
|
|
35
|
+
"seed-callout__suffixIcon"
|
|
36
|
+
]
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const defaultVariant = {
|
|
40
|
+
"tone": "neutral",
|
|
41
|
+
"pressed": false
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const compoundVariants = [
|
|
45
|
+
{
|
|
46
|
+
"tone": "neutral",
|
|
47
|
+
"pressed": true
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"tone": "informative",
|
|
51
|
+
"pressed": true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"tone": "positive",
|
|
55
|
+
"pressed": true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"tone": "warning",
|
|
59
|
+
"pressed": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"tone": "critical",
|
|
63
|
+
"pressed": true
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"tone": "magic",
|
|
67
|
+
"pressed": true
|
|
68
|
+
}
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
export const calloutVariantMap = {
|
|
72
|
+
"tone": [
|
|
73
|
+
"neutral",
|
|
74
|
+
"informative",
|
|
75
|
+
"positive",
|
|
76
|
+
"warning",
|
|
77
|
+
"critical",
|
|
78
|
+
"magic"
|
|
79
|
+
],
|
|
80
|
+
"pressed": [
|
|
81
|
+
true,
|
|
82
|
+
false
|
|
83
|
+
]
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const calloutVariantKeys = Object.keys(calloutVariantMap);
|
|
87
|
+
|
|
88
|
+
export function callout(props) {
|
|
89
|
+
return Object.fromEntries(
|
|
90
|
+
calloutSlotNames.map(([slot, className]) => {
|
|
91
|
+
return [
|
|
92
|
+
slot,
|
|
93
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
94
|
+
];
|
|
95
|
+
}),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
Object.assign(callout, { splitVariantProps: (props) => splitVariantProps(props, calloutVariantMap) });
|
|
100
|
+
|
|
101
|
+
// @recipe(seed): callout
|
package/recipes/checkmark.css
CHANGED
|
@@ -4,8 +4,16 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
flex: none;
|
|
7
|
-
margin-top: var(--checkmark-margin-top, 0)
|
|
8
|
-
|
|
7
|
+
margin-top: var(--checkmark-margin-top, 0)
|
|
8
|
+
}
|
|
9
|
+
.seed-checkmark__background {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
opacity: 0;
|
|
16
|
+
transition: opacity var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
9
17
|
}
|
|
10
18
|
.seed-checkmark__icon {
|
|
11
19
|
position: absolute
|
|
@@ -13,22 +21,31 @@
|
|
|
13
21
|
.seed-checkmark__root--variant_square {
|
|
14
22
|
border-width: 1px;
|
|
15
23
|
border-style: solid;
|
|
16
|
-
border-color: var(--seed-color-stroke-neutral-weak)
|
|
24
|
+
border-color: var(--seed-color-stroke-neutral-weak);
|
|
25
|
+
transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
26
|
+
}
|
|
27
|
+
.seed-checkmark__background--variant_ghost {
|
|
28
|
+
background-color: var(--seed-color-bg-transparent-pressed)
|
|
17
29
|
}
|
|
18
30
|
.seed-checkmark__icon--variant_ghost {
|
|
19
|
-
color: var(--seed-color-fg-placeholder)
|
|
20
|
-
transition: color var(--seed-duration-color-transition) var(--seed-timing-function-easing)
|
|
31
|
+
color: var(--seed-color-fg-placeholder)
|
|
21
32
|
}
|
|
22
33
|
.seed-checkmark__root--size_medium {
|
|
23
34
|
width: var(--seed-dimension-x5);
|
|
24
35
|
height: var(--seed-dimension-x5);
|
|
25
36
|
border-radius: var(--seed-radius-r1)
|
|
26
37
|
}
|
|
38
|
+
.seed-checkmark__background--size_medium {
|
|
39
|
+
border-radius: var(--seed-radius-r1)
|
|
40
|
+
}
|
|
27
41
|
.seed-checkmark__root--size_large {
|
|
28
42
|
width: var(--seed-dimension-x6);
|
|
29
43
|
height: var(--seed-dimension-x6);
|
|
30
44
|
border-radius: var(--seed-radius-r1)
|
|
31
45
|
}
|
|
46
|
+
.seed-checkmark__background--size_large {
|
|
47
|
+
border-radius: var(--seed-radius-r1)
|
|
48
|
+
}
|
|
32
49
|
.seed-checkmark__icon--variant_square-size_medium {
|
|
33
50
|
width: 12px;
|
|
34
51
|
height: 12px
|
|
@@ -93,18 +110,42 @@
|
|
|
93
110
|
.seed-checkmark__icon--variant_square-indeterminate_true-disabled_true {
|
|
94
111
|
color: var(--seed-color-fg-disabled)
|
|
95
112
|
}
|
|
113
|
+
.seed-checkmark__background--variant_ghost-tone_brand-checked_true {
|
|
114
|
+
background-color: var(--seed-color-palette-carrot-200)
|
|
115
|
+
}
|
|
116
|
+
.seed-checkmark__background--variant_ghost-tone_neutral-checked_true {
|
|
117
|
+
background-color: var(--seed-color-palette-gray-200)
|
|
118
|
+
}
|
|
119
|
+
.seed-checkmark__background--variant_ghost-tone_brand-indeterminate_true {
|
|
120
|
+
background-color: var(--seed-color-palette-carrot-200)
|
|
121
|
+
}
|
|
122
|
+
.seed-checkmark__background--variant_ghost-tone_neutral-indeterminate_true {
|
|
123
|
+
background-color: var(--seed-color-palette-gray-200)
|
|
124
|
+
}
|
|
96
125
|
.seed-checkmark__icon--variant_ghost-tone_brand-checked_true-disabled_false {
|
|
97
126
|
color: var(--seed-color-fg-brand)
|
|
98
127
|
}
|
|
99
128
|
.seed-checkmark__icon--variant_ghost-tone_neutral-checked_true-disabled_false {
|
|
100
129
|
color: var(--seed-color-fg-neutral)
|
|
101
130
|
}
|
|
131
|
+
.seed-checkmark__icon--variant_ghost-tone_brand-indeterminate_true-disabled_false {
|
|
132
|
+
color: var(--seed-color-fg-brand)
|
|
133
|
+
}
|
|
134
|
+
.seed-checkmark__icon--variant_ghost-tone_neutral-indeterminate_true-disabled_false {
|
|
135
|
+
color: var(--seed-color-fg-neutral)
|
|
136
|
+
}
|
|
102
137
|
.seed-checkmark__icon--variant_ghost-disabled_true {
|
|
103
138
|
color: var(--seed-color-fg-disabled)
|
|
104
139
|
}
|
|
105
140
|
.seed-checkmark__icon--variant_ghost-checked_true-disabled_true {
|
|
106
141
|
color: var(--seed-color-fg-disabled)
|
|
107
142
|
}
|
|
143
|
+
.seed-checkmark__icon--variant_ghost-indeterminate_true-disabled_true {
|
|
144
|
+
color: var(--seed-color-fg-disabled)
|
|
145
|
+
}
|
|
146
|
+
.seed-checkmark__background--variant_ghost-pressed_true-disabled_false {
|
|
147
|
+
opacity: 1
|
|
148
|
+
}
|
|
108
149
|
.seed-checkmark__root--variant_square-pressed_true-checked_false-indeterminate_false-disabled_false {
|
|
109
150
|
background-color: var(--seed-color-bg-transparent-pressed)
|
|
110
151
|
}
|
|
@@ -119,13 +160,4 @@
|
|
|
119
160
|
}
|
|
120
161
|
.seed-checkmark__root--variant_square-tone_neutral-pressed_true-indeterminate_true-disabled_false {
|
|
121
162
|
background-color: var(--seed-color-bg-neutral-inverted-pressed)
|
|
122
|
-
}
|
|
123
|
-
.seed-checkmark__root--variant_ghost-pressed_true-checked_false-indeterminate_false-disabled_false {
|
|
124
|
-
background-color: var(--seed-color-bg-transparent-pressed)
|
|
125
|
-
}
|
|
126
|
-
.seed-checkmark__root--variant_ghost-tone_brand-pressed_true-checked_true-disabled_false {
|
|
127
|
-
background-color: var(--seed-color-palette-carrot-200)
|
|
128
|
-
}
|
|
129
|
-
.seed-checkmark__root--variant_ghost-tone_neutral-pressed_true-checked_true-disabled_false {
|
|
130
|
-
background-color: var(--seed-color-palette-gray-200)
|
|
131
163
|
}
|
package/recipes/checkmark.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare type CheckmarkVariantMap = {
|
|
|
35
35
|
|
|
36
36
|
export declare type CheckmarkVariantProps = Partial<CheckmarkVariant>;
|
|
37
37
|
|
|
38
|
-
export declare type CheckmarkSlotName = "root" | "icon";
|
|
38
|
+
export declare type CheckmarkSlotName = "root" | "background" | "icon";
|
|
39
39
|
|
|
40
40
|
export declare const checkmarkVariantMap: CheckmarkVariantMap;
|
|
41
41
|
|
package/recipes/checkmark.mjs
CHANGED
|
@@ -6,6 +6,10 @@ const checkmarkSlotNames = [
|
|
|
6
6
|
"root",
|
|
7
7
|
"seed-checkmark__root"
|
|
8
8
|
],
|
|
9
|
+
[
|
|
10
|
+
"background",
|
|
11
|
+
"seed-checkmark__background"
|
|
12
|
+
],
|
|
9
13
|
[
|
|
10
14
|
"icon",
|
|
11
15
|
"seed-checkmark__icon"
|
|
@@ -92,6 +96,26 @@ const compoundVariants = [
|
|
|
92
96
|
"indeterminate": true,
|
|
93
97
|
"disabled": true
|
|
94
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"variant": "ghost",
|
|
101
|
+
"tone": "brand",
|
|
102
|
+
"checked": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"variant": "ghost",
|
|
106
|
+
"tone": "neutral",
|
|
107
|
+
"checked": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"variant": "ghost",
|
|
111
|
+
"tone": "brand",
|
|
112
|
+
"indeterminate": true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"variant": "ghost",
|
|
116
|
+
"tone": "neutral",
|
|
117
|
+
"indeterminate": true
|
|
118
|
+
},
|
|
95
119
|
{
|
|
96
120
|
"variant": "ghost",
|
|
97
121
|
"tone": "brand",
|
|
@@ -104,6 +128,18 @@ const compoundVariants = [
|
|
|
104
128
|
"checked": true,
|
|
105
129
|
"disabled": false
|
|
106
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"variant": "ghost",
|
|
133
|
+
"tone": "brand",
|
|
134
|
+
"indeterminate": true,
|
|
135
|
+
"disabled": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"variant": "ghost",
|
|
139
|
+
"tone": "neutral",
|
|
140
|
+
"indeterminate": true,
|
|
141
|
+
"disabled": false
|
|
142
|
+
},
|
|
107
143
|
{
|
|
108
144
|
"variant": "ghost",
|
|
109
145
|
"disabled": true
|
|
@@ -113,6 +149,16 @@ const compoundVariants = [
|
|
|
113
149
|
"checked": true,
|
|
114
150
|
"disabled": true
|
|
115
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"variant": "ghost",
|
|
154
|
+
"indeterminate": true,
|
|
155
|
+
"disabled": true
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"variant": "ghost",
|
|
159
|
+
"pressed": true,
|
|
160
|
+
"disabled": false
|
|
161
|
+
},
|
|
116
162
|
{
|
|
117
163
|
"variant": "square",
|
|
118
164
|
"pressed": true,
|
|
@@ -147,27 +193,6 @@ const compoundVariants = [
|
|
|
147
193
|
"pressed": true,
|
|
148
194
|
"indeterminate": true,
|
|
149
195
|
"disabled": false
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"variant": "ghost",
|
|
153
|
-
"pressed": true,
|
|
154
|
-
"checked": false,
|
|
155
|
-
"indeterminate": false,
|
|
156
|
-
"disabled": false
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"variant": "ghost",
|
|
160
|
-
"tone": "brand",
|
|
161
|
-
"pressed": true,
|
|
162
|
-
"checked": true,
|
|
163
|
-
"disabled": false
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"variant": "ghost",
|
|
167
|
-
"tone": "neutral",
|
|
168
|
-
"pressed": true,
|
|
169
|
-
"checked": true,
|
|
170
|
-
"disabled": false
|
|
171
196
|
}
|
|
172
197
|
];
|
|
173
198
|
|