@vygruppen/spor-react 13.0.3 → 13.1.1
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/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +24 -0
- package/dist/index.cjs +509 -427
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +178 -177
- package/dist/index.d.ts +178 -177
- package/dist/index.mjs +509 -426
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -10
- package/src/alert/AlertIcon.tsx +2 -2
- package/src/alert/ServiceAlert.tsx +2 -1
- package/src/calendar/CalendarCell.tsx +4 -4
- package/src/datepicker/CalendarHeader.tsx +1 -1
- package/src/dialog/Drawer.tsx +1 -1
- package/src/input/CardSelect.tsx +4 -4
- package/src/input/Combobox.tsx +1 -1
- package/src/input/Field.tsx +1 -1
- package/src/input/Menu.tsx +9 -5
- package/src/input/Popover.tsx +9 -7
- package/src/linjetag/LineIcon.tsx +1 -1
- package/src/loader/ColorInlineLoader.tsx +2 -1
- package/src/loader/ColorSpinner.tsx +2 -1
- package/src/loader/ContentLoader.tsx +2 -1
- package/src/loader/DarkFullScreenLoader.tsx +2 -1
- package/src/loader/DarkInlineLoader.tsx +2 -1
- package/src/loader/DarkSpinner.tsx +2 -1
- package/src/loader/LightFullScreenLoader.tsx +2 -1
- package/src/loader/LightInlineLoader.tsx +2 -1
- package/src/loader/LightSpinner.tsx +2 -1
- package/src/loader/Lottie.tsx +3 -2
- package/src/loader/text.ts +15 -0
- package/src/stepper/StepperStep.tsx +2 -2
- package/src/theme/recipes/badge.ts +120 -48
- package/src/theme/recipes/button.ts +22 -22
- package/src/theme/recipes/close-button.ts +2 -2
- package/src/theme/recipes/input.ts +9 -9
- package/src/theme/recipes/link.ts +1 -1
- package/src/theme/recipes/pressable-card.ts +12 -12
- package/src/theme/recipes/skeleton.ts +1 -1
- package/src/theme/recipes/static-card.ts +8 -8
- package/src/theme/semantic-tokens/colors.ts +1 -1
- package/src/theme/slot-recipes/accordion.ts +10 -10
- package/src/theme/slot-recipes/alert-expandable.ts +35 -35
- package/src/theme/slot-recipes/alert-service.ts +10 -10
- package/src/theme/slot-recipes/alert.ts +11 -11
- package/src/theme/slot-recipes/autocomplete.ts +5 -5
- package/src/theme/slot-recipes/breadcrumb.ts +4 -4
- package/src/theme/slot-recipes/checkbox.ts +11 -17
- package/src/theme/slot-recipes/choice-chip.ts +21 -21
- package/src/theme/slot-recipes/datepicker.ts +29 -29
- package/src/theme/slot-recipes/field.ts +3 -3
- package/src/theme/slot-recipes/floating-action-button.ts +14 -14
- package/src/theme/slot-recipes/input-chip.ts +10 -10
- package/src/theme/slot-recipes/listbox.ts +9 -9
- package/src/theme/slot-recipes/media-controller-button.ts +9 -9
- package/src/theme/slot-recipes/menu.ts +7 -7
- package/src/theme/slot-recipes/numeric-stepper.ts +4 -4
- package/src/theme/slot-recipes/pagination.ts +4 -4
- package/src/theme/slot-recipes/popover.ts +4 -4
- package/src/theme/slot-recipes/progress-bar.ts +2 -2
- package/src/theme/slot-recipes/progress-indicator.ts +1 -1
- package/src/theme/slot-recipes/radio-card.ts +11 -11
- package/src/theme/slot-recipes/radio.ts +5 -5
- package/src/theme/slot-recipes/select.ts +16 -16
- package/src/theme/slot-recipes/stepper.ts +5 -5
- package/src/theme/slot-recipes/switch.ts +6 -6
- package/src/theme/slot-recipes/table.ts +2 -2
- package/src/theme/slot-recipes/tabs.ts +18 -18
- package/src/theme/slot-recipes/toast.ts +3 -3
|
@@ -11,59 +11,59 @@ export const badgeRecipie = defineRecipe({
|
|
|
11
11
|
variants: {
|
|
12
12
|
colorPalette: {
|
|
13
13
|
neutral: {
|
|
14
|
-
backgroundColor: "
|
|
15
|
-
color: "
|
|
14
|
+
backgroundColor: "surface",
|
|
15
|
+
color: "text",
|
|
16
16
|
"& svg": {
|
|
17
|
-
color: "
|
|
17
|
+
color: "icon",
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
grey: {
|
|
21
|
-
backgroundColor: "
|
|
22
|
-
color: "
|
|
21
|
+
backgroundColor: "surface.neutral",
|
|
22
|
+
color: "text.neutral",
|
|
23
23
|
"& svg": {
|
|
24
|
-
color: "
|
|
24
|
+
color: "icon.neutral",
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
green: {
|
|
28
|
-
backgroundColor: "
|
|
29
|
-
color: "
|
|
28
|
+
backgroundColor: "surface.success",
|
|
29
|
+
color: "text.success",
|
|
30
30
|
"& svg": {
|
|
31
|
-
color: "
|
|
31
|
+
color: "icon.success",
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
blue: {
|
|
35
|
-
backgroundColor: "
|
|
36
|
-
color: "
|
|
35
|
+
backgroundColor: "surface.info",
|
|
36
|
+
color: "text.info",
|
|
37
37
|
"& svg": {
|
|
38
|
-
color: "
|
|
38
|
+
color: "icon.info",
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
cream: {
|
|
42
|
-
backgroundColor: "
|
|
43
|
-
color: "
|
|
42
|
+
backgroundColor: "surface.warning",
|
|
43
|
+
color: "text.warning",
|
|
44
44
|
"& svg": {
|
|
45
|
-
color: "
|
|
45
|
+
color: "icon.warning",
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
yellow: {
|
|
49
|
-
backgroundColor: "
|
|
50
|
-
color: "
|
|
49
|
+
backgroundColor: "surface.notice",
|
|
50
|
+
color: "text.notice",
|
|
51
51
|
"& svg": {
|
|
52
|
-
color: "
|
|
52
|
+
color: "icon.notice",
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
orange: {
|
|
56
|
-
backgroundColor: "
|
|
57
|
-
color: "
|
|
56
|
+
backgroundColor: "surface.caution",
|
|
57
|
+
color: "text.caution",
|
|
58
58
|
"& svg": {
|
|
59
|
-
color: "
|
|
59
|
+
color: "icon.caution",
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
red: {
|
|
63
|
-
backgroundColor: "
|
|
64
|
-
color: "
|
|
63
|
+
backgroundColor: "surface.critical",
|
|
64
|
+
color: "text.critical",
|
|
65
65
|
"& svg": {
|
|
66
|
-
color: "
|
|
66
|
+
color: "icon.critical",
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
},
|
|
@@ -108,10 +108,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
108
108
|
colorPalette: "blue",
|
|
109
109
|
inverted: true,
|
|
110
110
|
css: {
|
|
111
|
-
backgroundColor:
|
|
112
|
-
|
|
111
|
+
backgroundColor: {
|
|
112
|
+
_light: "darkBlue",
|
|
113
|
+
_dark: "lightBlue",
|
|
114
|
+
},
|
|
115
|
+
color: {
|
|
116
|
+
_light: "icyBlue",
|
|
117
|
+
_dark: "royal",
|
|
118
|
+
},
|
|
113
119
|
"& svg": {
|
|
114
|
-
color:
|
|
120
|
+
color: {
|
|
121
|
+
_light: "royal",
|
|
122
|
+
_dark: "icyBlue",
|
|
123
|
+
},
|
|
115
124
|
},
|
|
116
125
|
},
|
|
117
126
|
},
|
|
@@ -119,10 +128,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
119
128
|
colorPalette: "green",
|
|
120
129
|
inverted: true,
|
|
121
130
|
css: {
|
|
122
|
-
backgroundColor:
|
|
123
|
-
|
|
131
|
+
backgroundColor: {
|
|
132
|
+
_light: "darkTeal",
|
|
133
|
+
_dark: "seaMist",
|
|
134
|
+
},
|
|
135
|
+
color: {
|
|
136
|
+
_light: "mint",
|
|
137
|
+
_dark: "jungle",
|
|
138
|
+
},
|
|
124
139
|
"& svg": {
|
|
125
|
-
color:
|
|
140
|
+
color: {
|
|
141
|
+
_light: "mint",
|
|
142
|
+
_dark: "jungle",
|
|
143
|
+
},
|
|
126
144
|
},
|
|
127
145
|
},
|
|
128
146
|
},
|
|
@@ -130,10 +148,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
130
148
|
colorPalette: "grey",
|
|
131
149
|
inverted: true,
|
|
132
150
|
css: {
|
|
133
|
-
backgroundColor:
|
|
134
|
-
|
|
151
|
+
backgroundColor: {
|
|
152
|
+
_light: "carbon",
|
|
153
|
+
_dark: "platinum",
|
|
154
|
+
},
|
|
155
|
+
color: {
|
|
156
|
+
_light: "white",
|
|
157
|
+
_dark: "darkGrey",
|
|
158
|
+
},
|
|
135
159
|
"& svg": {
|
|
136
|
-
color:
|
|
160
|
+
color: {
|
|
161
|
+
_light: "white",
|
|
162
|
+
_dark: "darkGrey",
|
|
163
|
+
},
|
|
137
164
|
},
|
|
138
165
|
},
|
|
139
166
|
},
|
|
@@ -142,10 +169,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
142
169
|
colorPalette: "cream",
|
|
143
170
|
inverted: true,
|
|
144
171
|
css: {
|
|
145
|
-
backgroundColor:
|
|
146
|
-
|
|
172
|
+
backgroundColor: {
|
|
173
|
+
_light: "coffee",
|
|
174
|
+
_dark: "blonde",
|
|
175
|
+
},
|
|
176
|
+
color: {
|
|
177
|
+
_light: "cornsilk",
|
|
178
|
+
_dark: "coffee",
|
|
179
|
+
},
|
|
147
180
|
"& svg": {
|
|
148
|
-
color:
|
|
181
|
+
color: {
|
|
182
|
+
_light: "cornsilk",
|
|
183
|
+
_dark: "coffee",
|
|
184
|
+
},
|
|
149
185
|
},
|
|
150
186
|
},
|
|
151
187
|
},
|
|
@@ -153,10 +189,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
153
189
|
colorPalette: "yellow",
|
|
154
190
|
inverted: true,
|
|
155
191
|
css: {
|
|
156
|
-
backgroundColor:
|
|
157
|
-
|
|
192
|
+
backgroundColor: {
|
|
193
|
+
_light: "bronze",
|
|
194
|
+
_dark: "banana",
|
|
195
|
+
},
|
|
196
|
+
color: {
|
|
197
|
+
_light: "cornsilk",
|
|
198
|
+
_dark: "coffee",
|
|
199
|
+
},
|
|
158
200
|
"& svg": {
|
|
159
|
-
color:
|
|
201
|
+
color: {
|
|
202
|
+
_light: "cornsilk",
|
|
203
|
+
_dark: "coffee",
|
|
204
|
+
},
|
|
160
205
|
},
|
|
161
206
|
},
|
|
162
207
|
},
|
|
@@ -164,10 +209,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
164
209
|
colorPalette: "orange",
|
|
165
210
|
inverted: true,
|
|
166
211
|
css: {
|
|
167
|
-
backgroundColor:
|
|
168
|
-
|
|
212
|
+
backgroundColor: {
|
|
213
|
+
_light: "wood",
|
|
214
|
+
_dark: "champagne",
|
|
215
|
+
},
|
|
216
|
+
color: {
|
|
217
|
+
_light: "bisque",
|
|
218
|
+
_dark: "wood",
|
|
219
|
+
},
|
|
169
220
|
"& svg": {
|
|
170
|
-
color:
|
|
221
|
+
color: {
|
|
222
|
+
_light: "bisque",
|
|
223
|
+
_dark: "wood",
|
|
224
|
+
},
|
|
171
225
|
},
|
|
172
226
|
},
|
|
173
227
|
},
|
|
@@ -175,10 +229,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
175
229
|
colorPalette: "red",
|
|
176
230
|
inverted: true,
|
|
177
231
|
css: {
|
|
178
|
-
backgroundColor:
|
|
179
|
-
|
|
232
|
+
backgroundColor: {
|
|
233
|
+
_light: "burgundy",
|
|
234
|
+
_dark: "lightRed",
|
|
235
|
+
},
|
|
236
|
+
color: {
|
|
237
|
+
_light: "pink",
|
|
238
|
+
_dark: "maroon",
|
|
239
|
+
},
|
|
180
240
|
"& svg": {
|
|
181
|
-
color:
|
|
241
|
+
color: {
|
|
242
|
+
_light: "pink",
|
|
243
|
+
_dark: "maroon",
|
|
244
|
+
},
|
|
182
245
|
},
|
|
183
246
|
},
|
|
184
247
|
},
|
|
@@ -187,10 +250,19 @@ export const badgeRecipie = defineRecipe({
|
|
|
187
250
|
colorPalette: "neutral",
|
|
188
251
|
inverted: true,
|
|
189
252
|
css: {
|
|
190
|
-
backgroundColor:
|
|
191
|
-
|
|
253
|
+
backgroundColor: {
|
|
254
|
+
_light: "ink",
|
|
255
|
+
_dark: "white",
|
|
256
|
+
},
|
|
257
|
+
color: {
|
|
258
|
+
_light: "white",
|
|
259
|
+
_dark: "darkGrey",
|
|
260
|
+
},
|
|
192
261
|
"& svg": {
|
|
193
|
-
color:
|
|
262
|
+
color: {
|
|
263
|
+
_light: "white",
|
|
264
|
+
_dark: "darkGrey",
|
|
265
|
+
},
|
|
194
266
|
},
|
|
195
267
|
},
|
|
196
268
|
},
|
|
@@ -29,40 +29,40 @@ export const buttonRecipe = defineRecipe({
|
|
|
29
29
|
variants: {
|
|
30
30
|
variant: {
|
|
31
31
|
primary: {
|
|
32
|
-
background: "brand
|
|
33
|
-
color: "brand
|
|
32
|
+
background: "surface.brand",
|
|
33
|
+
color: "text.brand",
|
|
34
34
|
fontWeight: "bold",
|
|
35
35
|
_hover: {
|
|
36
|
-
background: "brand.
|
|
36
|
+
background: "surface.brand.hover",
|
|
37
37
|
_active: {
|
|
38
|
-
background: "brand.
|
|
38
|
+
background: "surface.brand.active",
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
secondary: {
|
|
43
|
-
background: "accent
|
|
44
|
-
color: "accent
|
|
43
|
+
background: "surface.accent",
|
|
44
|
+
color: "text.accent",
|
|
45
45
|
fontWeight: "bold",
|
|
46
46
|
_hover: {
|
|
47
|
-
background: "accent.
|
|
47
|
+
background: "surface.accent.hover",
|
|
48
48
|
_active: {
|
|
49
|
-
background: "accent.
|
|
49
|
+
background: "surface.accent.active",
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
53
|
tertiary: {
|
|
54
|
-
color: "core
|
|
54
|
+
color: "text.core",
|
|
55
55
|
outline: "solid",
|
|
56
56
|
fontWeight: "normal",
|
|
57
57
|
outlineWidth: tokens.size.stroke.sm,
|
|
58
|
-
outlineColor: "core
|
|
58
|
+
outlineColor: "outline.core",
|
|
59
59
|
_hover: {
|
|
60
60
|
outlineWidth: tokens.size.stroke.md,
|
|
61
|
-
outlineColor: "core.
|
|
61
|
+
outlineColor: "outline.core.hover",
|
|
62
62
|
_active: {
|
|
63
|
-
background: "core.
|
|
63
|
+
background: "surface.core.active",
|
|
64
64
|
outlineWidth: tokens.size.stroke.sm,
|
|
65
|
-
outlineColor: "core
|
|
65
|
+
outlineColor: "outline.core",
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
_focus: {
|
|
@@ -70,30 +70,30 @@ export const buttonRecipe = defineRecipe({
|
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
72
|
ghost: {
|
|
73
|
-
color: "ghost
|
|
73
|
+
color: "text.ghost",
|
|
74
74
|
fontWeight: "bold",
|
|
75
75
|
_hover: {
|
|
76
|
-
background: "ghost.
|
|
76
|
+
background: "surface.ghost.hover",
|
|
77
77
|
_active: {
|
|
78
|
-
background: "ghost.
|
|
78
|
+
background: "surface.ghost.active",
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
82
|
floating: {
|
|
83
|
-
color: "floating
|
|
84
|
-
background: "floating
|
|
83
|
+
color: "text.floating",
|
|
84
|
+
background: "surface.floating",
|
|
85
85
|
fontWeight: "bold",
|
|
86
86
|
border: "sm",
|
|
87
|
-
borderColor: "floating
|
|
87
|
+
borderColor: "outline.floating",
|
|
88
88
|
boxShadow:
|
|
89
89
|
"0px 1px 3px 0px var(--spor-colors-surface-disabled, rgba(0, 0, 0, 0.10))",
|
|
90
90
|
_hover: {
|
|
91
|
-
borderColor: "floating.
|
|
91
|
+
borderColor: "outline.floating.hover",
|
|
92
92
|
|
|
93
93
|
_active: {
|
|
94
|
-
background: "core.
|
|
94
|
+
background: "surface.core.active",
|
|
95
95
|
boxShadow: "none",
|
|
96
|
-
borderColor: "floating
|
|
96
|
+
borderColor: "outline.floating",
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
99
|
},
|
|
@@ -9,12 +9,12 @@ export const closeButtonRecipe = defineRecipe({
|
|
|
9
9
|
color: "text",
|
|
10
10
|
fontWeight: "normal",
|
|
11
11
|
_hover: {
|
|
12
|
-
background: "ghost.
|
|
12
|
+
background: "surface.ghost.hover",
|
|
13
13
|
_disabled: {
|
|
14
14
|
color: "icon.disabled",
|
|
15
15
|
},
|
|
16
16
|
_active: {
|
|
17
|
-
background: "ghost.
|
|
17
|
+
background: "surface.ghost.active",
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
},
|
|
@@ -37,7 +37,7 @@ export const inputRecipe = defineRecipe({
|
|
|
37
37
|
},
|
|
38
38
|
_hover: {
|
|
39
39
|
outline: "2px solid",
|
|
40
|
-
outlineColor: "core
|
|
40
|
+
outlineColor: "outline.core",
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
},
|
|
@@ -46,14 +46,14 @@ export const inputRecipe = defineRecipe({
|
|
|
46
46
|
core: {
|
|
47
47
|
backgroundColor: "transparent",
|
|
48
48
|
outline: "1px solid",
|
|
49
|
-
outlineColor: "core
|
|
49
|
+
outlineColor: "outline.core",
|
|
50
50
|
_hover: {
|
|
51
51
|
outline: "2px solid",
|
|
52
|
-
outlineColor: "core.
|
|
52
|
+
outlineColor: "outline.core.hover",
|
|
53
53
|
_active: {
|
|
54
54
|
outline: "1px solid",
|
|
55
55
|
outlineColor: "outline.disabled",
|
|
56
|
-
backgroundColor: "core.
|
|
56
|
+
backgroundColor: "surface.core.active",
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
_focus: {
|
|
@@ -63,18 +63,18 @@ export const inputRecipe = defineRecipe({
|
|
|
63
63
|
},
|
|
64
64
|
floating: {
|
|
65
65
|
boxShadow: "sm",
|
|
66
|
-
bg: "floating
|
|
66
|
+
bg: "surface.floating",
|
|
67
67
|
outline: "1px solid",
|
|
68
|
-
outlineColor: "floating
|
|
68
|
+
outlineColor: "outline.floating",
|
|
69
69
|
|
|
70
70
|
_hover: {
|
|
71
71
|
outline: "1px solid",
|
|
72
|
-
outlineColor: "floating.
|
|
72
|
+
outlineColor: "outline.floating.hover",
|
|
73
73
|
},
|
|
74
74
|
_active: {
|
|
75
75
|
outline: "1px solid",
|
|
76
|
-
outlineColor: "
|
|
77
|
-
backgroundColor: "floating.
|
|
76
|
+
outlineColor: "outline.neutral",
|
|
77
|
+
backgroundColor: "surface.floating.active",
|
|
78
78
|
},
|
|
79
79
|
|
|
80
80
|
focus: {
|
|
@@ -30,33 +30,33 @@ export const pressableCardRecipe = defineRecipe({
|
|
|
30
30
|
shadowColor: "surface.disabled",
|
|
31
31
|
|
|
32
32
|
border: "sm",
|
|
33
|
-
borderColor: "floating
|
|
33
|
+
borderColor: "outline.floating",
|
|
34
34
|
|
|
35
|
-
backgroundColor: "floating
|
|
35
|
+
backgroundColor: "surface.floating",
|
|
36
36
|
_hover: {
|
|
37
37
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
38
|
-
backgroundColor: "floating.
|
|
38
|
+
backgroundColor: "surface.floating.hover",
|
|
39
39
|
|
|
40
|
-
borderColor: "floating.
|
|
40
|
+
borderColor: "outline.floating.hover",
|
|
41
41
|
|
|
42
42
|
_active: {
|
|
43
43
|
boxShadow: "none",
|
|
44
|
-
backgroundColor: "floating.
|
|
45
|
-
borderColor: "
|
|
44
|
+
backgroundColor: "surface.floating.active",
|
|
45
|
+
borderColor: "outline.neutral",
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
core: {
|
|
50
|
-
outlineColor: "core
|
|
50
|
+
outlineColor: "outline.core",
|
|
51
51
|
outlineWidth: tokens.size.stroke.sm,
|
|
52
52
|
outlineStyle: "solid",
|
|
53
53
|
|
|
54
54
|
_hover: {
|
|
55
|
-
outlineColor: "core.
|
|
55
|
+
outlineColor: "outline.core.hover",
|
|
56
56
|
outlineWidth: tokens.size.stroke.md,
|
|
57
57
|
outlineStyle: "solid",
|
|
58
58
|
_active: {
|
|
59
|
-
backgroundColor: "core.
|
|
59
|
+
backgroundColor: "surface.core.active",
|
|
60
60
|
outlineWidth: tokens.size.stroke.sm,
|
|
61
61
|
},
|
|
62
62
|
},
|
|
@@ -64,13 +64,13 @@ export const pressableCardRecipe = defineRecipe({
|
|
|
64
64
|
accent: {
|
|
65
65
|
boxShadow: "0px 1px 3px 0px var(--shadow-color)",
|
|
66
66
|
shadowColor: "surface.disabled",
|
|
67
|
-
background: "
|
|
67
|
+
background: "surface.success",
|
|
68
68
|
_hover: {
|
|
69
|
-
background: "
|
|
69
|
+
background: "surface.success.hover",
|
|
70
70
|
|
|
71
71
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
72
72
|
_active: {
|
|
73
|
-
background: "
|
|
73
|
+
background: "surface.success.active",
|
|
74
74
|
boxShadow: "none",
|
|
75
75
|
},
|
|
76
76
|
},
|
|
@@ -7,29 +7,29 @@ export const staticCardRecipe = defineRecipe({
|
|
|
7
7
|
variants: {
|
|
8
8
|
colorPalette: {
|
|
9
9
|
white: {
|
|
10
|
-
backgroundColor: "surface
|
|
10
|
+
backgroundColor: "surface",
|
|
11
11
|
color: "text",
|
|
12
12
|
},
|
|
13
13
|
grey: {
|
|
14
|
-
backgroundColor: "surface.
|
|
14
|
+
backgroundColor: "surface.neutral",
|
|
15
15
|
},
|
|
16
16
|
yellow: {
|
|
17
|
-
backgroundColor: "surface.
|
|
17
|
+
backgroundColor: "surface.warning",
|
|
18
18
|
},
|
|
19
19
|
darkYellow: {
|
|
20
|
-
backgroundColor: "surface.
|
|
20
|
+
backgroundColor: "surface.notice",
|
|
21
21
|
},
|
|
22
22
|
red: {
|
|
23
|
-
backgroundColor: "surface.
|
|
23
|
+
backgroundColor: "surface.critical",
|
|
24
24
|
},
|
|
25
25
|
green: {
|
|
26
|
-
backgroundColor: "surface.
|
|
26
|
+
backgroundColor: "surface.success",
|
|
27
27
|
},
|
|
28
28
|
blue: {
|
|
29
|
-
backgroundColor: "surface.
|
|
29
|
+
backgroundColor: "surface.info",
|
|
30
30
|
},
|
|
31
31
|
orange: {
|
|
32
|
-
backgroundColor: "surface.
|
|
32
|
+
backgroundColor: "surface.caution",
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
},
|
|
@@ -18,7 +18,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
18
18
|
borderRadius: "sm",
|
|
19
19
|
display: "flex",
|
|
20
20
|
justifyContent: "space-between",
|
|
21
|
-
color: "core
|
|
21
|
+
color: "text.core",
|
|
22
22
|
textAlign: "left",
|
|
23
23
|
width: "full",
|
|
24
24
|
alignItems: "center",
|
|
@@ -75,10 +75,10 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
75
75
|
},
|
|
76
76
|
itemTrigger: {
|
|
77
77
|
"&:hover": {
|
|
78
|
-
background: "ghost.
|
|
78
|
+
background: "surface.ghost.hover",
|
|
79
79
|
},
|
|
80
80
|
"&:active": {
|
|
81
|
-
backgroundColor: "ghost.
|
|
81
|
+
backgroundColor: "surface.ghost.active",
|
|
82
82
|
},
|
|
83
83
|
},
|
|
84
84
|
},
|
|
@@ -86,7 +86,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
86
86
|
item: {
|
|
87
87
|
outline: "solid",
|
|
88
88
|
outlineWidth: tokens.size.stroke.sm,
|
|
89
|
-
outlineColor: "core
|
|
89
|
+
outlineColor: "outline.core",
|
|
90
90
|
},
|
|
91
91
|
itemTrigger: {
|
|
92
92
|
_expanded: {
|
|
@@ -94,13 +94,13 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
94
94
|
},
|
|
95
95
|
"&:hover": {
|
|
96
96
|
outlineWidth: tokens.size.stroke.md,
|
|
97
|
-
outlineColor: "core
|
|
97
|
+
outlineColor: "outline.core",
|
|
98
98
|
outline: "2px solid",
|
|
99
99
|
|
|
100
100
|
outlineOffset: 0,
|
|
101
101
|
},
|
|
102
102
|
"&:active": {
|
|
103
|
-
backgroundColor: "core.
|
|
103
|
+
backgroundColor: "surface.core.active",
|
|
104
104
|
outlineWidth: tokens.size.stroke.sm,
|
|
105
105
|
outline: "none",
|
|
106
106
|
},
|
|
@@ -113,7 +113,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
113
113
|
item: {
|
|
114
114
|
borderRadius: "none",
|
|
115
115
|
borderBottom: "1px solid",
|
|
116
|
-
borderBottomColor: "
|
|
116
|
+
borderBottomColor: "outline.neutral",
|
|
117
117
|
},
|
|
118
118
|
},
|
|
119
119
|
floating: {
|
|
@@ -121,7 +121,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
121
121
|
outline: "1px solid",
|
|
122
122
|
outlineWidth: tokens.size.stroke.sm,
|
|
123
123
|
boxShadow: "sm",
|
|
124
|
-
outlineColor: "floating
|
|
124
|
+
outlineColor: "outline.floating",
|
|
125
125
|
},
|
|
126
126
|
itemTrigger: {
|
|
127
127
|
_expanded: {
|
|
@@ -130,12 +130,12 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
130
130
|
"&:hover": {
|
|
131
131
|
outlineWidth: tokens.size.stroke.md,
|
|
132
132
|
outline: "1px solid",
|
|
133
|
-
outlineColor: "floating.
|
|
133
|
+
outlineColor: "outline.floating.hover",
|
|
134
134
|
|
|
135
135
|
outlineOffset: 1,
|
|
136
136
|
},
|
|
137
137
|
"&:active": {
|
|
138
|
-
backgroundColor: "floating.
|
|
138
|
+
backgroundColor: "surface.floating.active",
|
|
139
139
|
outlineWidth: tokens.size.stroke.sm,
|
|
140
140
|
outline: "none",
|
|
141
141
|
},
|