@mekari/pixel3-theme 0.2.2-dev.5 → 0.2.2-dev.7
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/dist/index.js +60 -14
- package/dist/index.mjs +60 -14
- package/dist/semanticTokens/colors.d.mts +7 -0
- package/dist/semanticTokens/colors.d.ts +7 -0
- package/dist/semanticTokens/index.d.mts +7 -0
- package/dist/semanticTokens/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/conditions.ts +3 -2
- package/src/fonts.ts +4 -4
- package/src/global-css.ts +3 -3
- package/src/index.ts +1 -1
- package/src/recipes/avatar.ts +28 -20
- package/src/recipes/badge.ts +7 -7
- package/src/recipes/banner.ts +7 -7
- package/src/recipes/broadcast.ts +26 -26
- package/src/recipes/button.ts +4 -4
- package/src/recipes/carousel.ts +2 -6
- package/src/recipes/color-picker.ts +1 -1
- package/src/recipes/date-picker.ts +1 -1
- package/src/recipes/divider.ts +3 -3
- package/src/recipes/form-control.ts +3 -3
- package/src/recipes/input.ts +23 -23
- package/src/recipes/modal.ts +3 -3
- package/src/recipes/popover.ts +1 -1
- package/src/recipes/rich-text-editor.ts +2 -2
- package/src/recipes/segmented-control.ts +14 -13
- package/src/recipes/select.ts +9 -9
- package/src/recipes/slider.ts +16 -11
- package/src/recipes/table.ts +5 -5
- package/src/recipes/tabs.ts +2 -2
- package/src/recipes/textarea.ts +1 -1
- package/src/recipes/textlink.ts +14 -11
- package/src/recipes/timeline.ts +27 -2
- package/src/recipes/toast.ts +12 -12
- package/src/recipes/toggle.ts +1 -1
- package/src/semanticTokens/colors.ts +8 -1
- package/src/semanticTokens/index.ts +1 -1
- package/src/semanticTokens/spacing.ts +12 -12
- package/src/tokens/colors.ts +2 -2
- package/src/tokens/spacing.ts +2 -2
- package/src/tokens-next/radii.ts +1 -1
- package/src/tokens-next/shadows.ts +16 -4
- package/src/tokens-next/spacing.ts +1 -1
package/src/recipes/broadcast.ts
CHANGED
|
@@ -43,116 +43,116 @@ const broadcastSlotRecipe = defineSlotRecipe({
|
|
|
43
43
|
color: 'icon.inverse!',
|
|
44
44
|
_hover: {
|
|
45
45
|
color: 'icon.inverse!'
|
|
46
|
-
}
|
|
46
|
+
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
variants: {
|
|
51
51
|
variant: {
|
|
52
52
|
announcement: {
|
|
53
|
-
container: {
|
|
53
|
+
container: {
|
|
54
54
|
backgroundColor: 'stone.400',
|
|
55
55
|
_nextTheme: {
|
|
56
|
-
backgroundColor: 'background.neutral.bold'
|
|
56
|
+
backgroundColor: 'background.neutral.bold'
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
icon: {
|
|
59
|
+
icon: {
|
|
60
60
|
color: 'white',
|
|
61
61
|
_nextTheme: {
|
|
62
62
|
color: 'icon.inverse'
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
label: {
|
|
65
|
+
label: {
|
|
66
66
|
color: 'white',
|
|
67
67
|
_nextTheme: {
|
|
68
68
|
color: 'text.inverse'
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
textLink: {
|
|
71
|
+
textLink: {
|
|
72
72
|
color: 'white',
|
|
73
73
|
_nextTheme: {
|
|
74
74
|
color: 'text.inverse'
|
|
75
|
-
}
|
|
75
|
+
}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
information: {
|
|
79
|
-
container: {
|
|
79
|
+
container: {
|
|
80
80
|
backgroundColor: 'violet.400',
|
|
81
81
|
_nextTheme: {
|
|
82
|
-
backgroundColor: 'background.highlight.bold'
|
|
82
|
+
backgroundColor: 'background.highlight.bold'
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
icon: {
|
|
85
|
+
icon: {
|
|
86
86
|
color: 'white',
|
|
87
87
|
_nextTheme: {
|
|
88
88
|
color: 'icon.inverse.static'
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
label: {
|
|
91
|
+
label: {
|
|
92
92
|
color: 'white',
|
|
93
93
|
_nextTheme: {
|
|
94
94
|
color: 'text.inverse'
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
textLink: {
|
|
97
|
+
textLink: {
|
|
98
98
|
color: 'white',
|
|
99
99
|
_nextTheme: {
|
|
100
100
|
color: 'text.inverse'
|
|
101
|
-
}
|
|
101
|
+
}
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
important: {
|
|
105
|
-
container: {
|
|
105
|
+
container: {
|
|
106
106
|
backgroundColor: 'amber.100',
|
|
107
107
|
_nextTheme: {
|
|
108
|
-
backgroundColor: 'background.warning.bold'
|
|
108
|
+
backgroundColor: 'background.warning.bold'
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
icon: {
|
|
111
|
+
icon: {
|
|
112
112
|
color: 'dark',
|
|
113
113
|
_nextTheme: {
|
|
114
114
|
color: 'icon.warning.inverse'
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
|
-
label: {
|
|
117
|
+
label: {
|
|
118
118
|
color: 'dark',
|
|
119
119
|
_nextTheme: {
|
|
120
120
|
color: 'text.warning.inverse'
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
textLink: {
|
|
123
|
+
textLink: {
|
|
124
124
|
color: 'dark',
|
|
125
125
|
_nextTheme: {
|
|
126
126
|
color: 'text.warning.inverse'
|
|
127
|
-
}
|
|
127
|
+
}
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
critical: {
|
|
131
|
-
container: {
|
|
131
|
+
container: {
|
|
132
132
|
backgroundColor: 'rose.400',
|
|
133
133
|
_nextTheme: {
|
|
134
|
-
backgroundColor: 'background.danger.bold'
|
|
134
|
+
backgroundColor: 'background.danger.bold'
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
|
-
icon: {
|
|
137
|
+
icon: {
|
|
138
138
|
color: 'white',
|
|
139
139
|
_nextTheme: {
|
|
140
140
|
color: 'icon.inverse'
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
label: {
|
|
143
|
+
label: {
|
|
144
144
|
color: 'white',
|
|
145
145
|
_nextTheme: {
|
|
146
146
|
color: 'text.inverse'
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
textLink: {
|
|
149
|
+
textLink: {
|
|
150
150
|
color: 'white',
|
|
151
151
|
_nextTheme: {
|
|
152
152
|
color: 'text.inverse'
|
|
153
|
-
}
|
|
153
|
+
}
|
|
154
154
|
}
|
|
155
|
-
}
|
|
155
|
+
}
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
compoundVariants: [],
|
package/src/recipes/button.ts
CHANGED
|
@@ -291,7 +291,7 @@ const buttonRecipe = defineRecipe({
|
|
|
291
291
|
'[data-icon-position=right]': {
|
|
292
292
|
paddingLeft: '2',
|
|
293
293
|
paddingRight: '1.5'
|
|
294
|
-
}
|
|
294
|
+
}
|
|
295
295
|
},
|
|
296
296
|
|
|
297
297
|
_nextTheme: {
|
|
@@ -405,7 +405,7 @@ const buttonRecipe = defineRecipe({
|
|
|
405
405
|
_hasIcon: {
|
|
406
406
|
background: 'transparent',
|
|
407
407
|
borderColor: 'transparent'
|
|
408
|
-
}
|
|
408
|
+
}
|
|
409
409
|
},
|
|
410
410
|
_hasIcon: {
|
|
411
411
|
background: 'transparent',
|
|
@@ -421,12 +421,12 @@ const buttonRecipe = defineRecipe({
|
|
|
421
421
|
_hasIcon: {
|
|
422
422
|
background: 'transparent',
|
|
423
423
|
borderColor: 'transparent'
|
|
424
|
-
}
|
|
424
|
+
}
|
|
425
425
|
},
|
|
426
426
|
_hasIcon: {
|
|
427
427
|
background: 'transparent',
|
|
428
428
|
borderColor: 'transparent'
|
|
429
|
-
}
|
|
429
|
+
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
}
|
package/src/recipes/carousel.ts
CHANGED
|
@@ -3,11 +3,7 @@ import { defineSlotRecipe } from '@pandacss/dev'
|
|
|
3
3
|
const carouselSlotRecipe = defineSlotRecipe({
|
|
4
4
|
className: 'carousel',
|
|
5
5
|
jsx: ['MpCarousel', 'mp-carousel'],
|
|
6
|
-
slots: [
|
|
7
|
-
'root',
|
|
8
|
-
'buttonRight',
|
|
9
|
-
'buttonLeft'
|
|
10
|
-
],
|
|
6
|
+
slots: ['root', 'buttonRight', 'buttonLeft'],
|
|
11
7
|
base: {
|
|
12
8
|
root: {
|
|
13
9
|
display: 'block',
|
|
@@ -52,4 +48,4 @@ const carouselSlotRecipe = defineSlotRecipe({
|
|
|
52
48
|
}
|
|
53
49
|
})
|
|
54
50
|
|
|
55
|
-
export { carouselSlotRecipe }
|
|
51
|
+
export { carouselSlotRecipe }
|
package/src/recipes/divider.ts
CHANGED
|
@@ -20,7 +20,7 @@ const dividerSlotRecipe = defineSlotRecipe({
|
|
|
20
20
|
borderColor: 'gray.100',
|
|
21
21
|
color: 'gray.600',
|
|
22
22
|
_nextTheme: {
|
|
23
|
-
color: 'text.secondary'
|
|
23
|
+
color: 'text.secondary'
|
|
24
24
|
},
|
|
25
25
|
_before: {
|
|
26
26
|
content: '""',
|
|
@@ -30,7 +30,7 @@ const dividerSlotRecipe = defineSlotRecipe({
|
|
|
30
30
|
borderColor: 'gray.100',
|
|
31
31
|
_nextTheme: {
|
|
32
32
|
borderColor: 'border.default'
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
},
|
|
35
35
|
_after: {
|
|
36
36
|
content: '""',
|
|
@@ -40,7 +40,7 @@ const dividerSlotRecipe = defineSlotRecipe({
|
|
|
40
40
|
borderColor: 'gray.100',
|
|
41
41
|
_nextTheme: {
|
|
42
42
|
borderColor: 'border.default'
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -18,7 +18,7 @@ const formControlSlotRecipe = defineSlotRecipe({
|
|
|
18
18
|
color: 'red.400',
|
|
19
19
|
marginLeft: '1',
|
|
20
20
|
_nextTheme: {
|
|
21
|
-
color: 'text.danger'
|
|
21
|
+
color: 'text.danger'
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
helpText: {
|
|
@@ -26,7 +26,7 @@ const formControlSlotRecipe = defineSlotRecipe({
|
|
|
26
26
|
fontSize: 'sm',
|
|
27
27
|
marginTop: '1',
|
|
28
28
|
_nextTheme: {
|
|
29
|
-
color: 'text.secondary'
|
|
29
|
+
color: 'text.secondary'
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
errorMessage: {
|
|
@@ -37,7 +37,7 @@ const formControlSlotRecipe = defineSlotRecipe({
|
|
|
37
37
|
verticalAlign: 'middle',
|
|
38
38
|
display: 'flex',
|
|
39
39
|
_nextTheme: {
|
|
40
|
-
color: 'text.danger'
|
|
40
|
+
color: 'text.danger'
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
},
|
package/src/recipes/input.ts
CHANGED
|
@@ -19,7 +19,7 @@ const inputSlotRecipe = defineSlotRecipe({
|
|
|
19
19
|
'& > [data-pixel-component=MpInputClear]': {
|
|
20
20
|
'--mp-input--right': '12px'
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
},
|
|
24
24
|
control: {
|
|
25
25
|
minWidth: '22',
|
|
@@ -40,15 +40,15 @@ const inputSlotRecipe = defineSlotRecipe({
|
|
|
40
40
|
_isFullWidth: {
|
|
41
41
|
width: 'full'
|
|
42
42
|
},
|
|
43
|
-
_placeholder: {
|
|
44
|
-
color: 'gray.400'
|
|
43
|
+
_placeholder: {
|
|
44
|
+
color: 'gray.400'
|
|
45
45
|
},
|
|
46
46
|
_nextTheme: {
|
|
47
47
|
color: 'text.default',
|
|
48
48
|
caretColor: 'border.selected',
|
|
49
|
-
_placeholder: {
|
|
50
|
-
borderColor: 'text.placeholder'
|
|
51
|
-
}
|
|
49
|
+
_placeholder: {
|
|
50
|
+
borderColor: 'text.placeholder'
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
clear: {
|
|
@@ -69,7 +69,7 @@ const inputSlotRecipe = defineSlotRecipe({
|
|
|
69
69
|
opacity: 'var(--mp-input--opacity)'
|
|
70
70
|
},
|
|
71
71
|
_nextTheme: {
|
|
72
|
-
color: 'icon.default'
|
|
72
|
+
color: 'icon.default'
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
},
|
|
@@ -90,7 +90,7 @@ const inputSlotRecipe = defineSlotRecipe({
|
|
|
90
90
|
borderColor: 'gray.400',
|
|
91
91
|
_invalid: {
|
|
92
92
|
borderColor: 'red.400'
|
|
93
|
-
}
|
|
93
|
+
}
|
|
94
94
|
},
|
|
95
95
|
_focus: {
|
|
96
96
|
borderColor: 'blue.500',
|
|
@@ -129,13 +129,13 @@ const inputSlotRecipe = defineSlotRecipe({
|
|
|
129
129
|
borderColor: 'border.focused',
|
|
130
130
|
boxShadow: 'focus',
|
|
131
131
|
_hover: {
|
|
132
|
-
borderColor: 'border.focused'
|
|
132
|
+
borderColor: 'border.focused'
|
|
133
133
|
},
|
|
134
134
|
_invalid: {
|
|
135
135
|
borderColor: 'border.focused',
|
|
136
136
|
_hover: {
|
|
137
|
-
borderColor: 'border.focused'
|
|
138
|
-
}
|
|
137
|
+
borderColor: 'border.focused'
|
|
138
|
+
}
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
_disabled: {
|
|
@@ -144,12 +144,12 @@ const inputSlotRecipe = defineSlotRecipe({
|
|
|
144
144
|
borderColor: 'border.disabled',
|
|
145
145
|
_hover: {
|
|
146
146
|
borderColor: 'border.disabled',
|
|
147
|
-
backgroundColor: 'background.disabled'
|
|
148
|
-
}
|
|
147
|
+
backgroundColor: 'background.disabled'
|
|
148
|
+
}
|
|
149
149
|
},
|
|
150
150
|
_invalid: {
|
|
151
151
|
borderColor: 'border.danger'
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -195,7 +195,7 @@ const inputGroupSlotRecipe = defineSlotRecipe({
|
|
|
195
195
|
'&[data-with-left-addon=true]': {
|
|
196
196
|
'& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
|
|
197
197
|
paddingLeft: 'calc(var(--mp-input-offset--left) + 14px)'
|
|
198
|
-
}
|
|
198
|
+
}
|
|
199
199
|
},
|
|
200
200
|
'&[data-with-clearable=true]': {
|
|
201
201
|
'& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
|
|
@@ -208,7 +208,7 @@ const inputGroupSlotRecipe = defineSlotRecipe({
|
|
|
208
208
|
'&[data-with-left-bg-addon=true]': {
|
|
209
209
|
'& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
|
|
210
210
|
paddingLeft: 'calc(var(--mp-input-offset--left) + 14px)'
|
|
211
|
-
}
|
|
211
|
+
}
|
|
212
212
|
},
|
|
213
213
|
'&[data-with-right-addon=true]': {
|
|
214
214
|
'& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
|
|
@@ -245,7 +245,7 @@ const inputGroupSlotRecipe = defineSlotRecipe({
|
|
|
245
245
|
},
|
|
246
246
|
'&:has(input:disabled) [data-pixel-component=MpInputAddon][data-has-background=true]': {
|
|
247
247
|
backgroundColor: 'background.neutral.subtle.pressed'
|
|
248
|
-
}
|
|
248
|
+
}
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
},
|
|
@@ -268,11 +268,11 @@ const inputAddonSlotRecipe = defineSlotRecipe({
|
|
|
268
268
|
zIndex: '2',
|
|
269
269
|
transition: 'all 250ms',
|
|
270
270
|
_hasBackground: {
|
|
271
|
-
backgroundColor: 'gray.50'
|
|
271
|
+
backgroundColor: 'gray.50'
|
|
272
272
|
},
|
|
273
273
|
_nextTheme: {
|
|
274
274
|
_hasBackground: {
|
|
275
|
-
backgroundColor: 'background.neutral.subtle'
|
|
275
|
+
backgroundColor: 'background.neutral.subtle'
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -304,12 +304,12 @@ const inputAddonSlotRecipe = defineSlotRecipe({
|
|
|
304
304
|
height: '6.5',
|
|
305
305
|
borderRadius: '2xs',
|
|
306
306
|
_hasBackground: {
|
|
307
|
-
_placementLeft: {
|
|
307
|
+
_placementLeft: {
|
|
308
308
|
left: '0.5',
|
|
309
309
|
minWidth: '24px',
|
|
310
310
|
justifyContent: 'center'
|
|
311
311
|
},
|
|
312
|
-
_placementRight: {
|
|
312
|
+
_placementRight: {
|
|
313
313
|
right: '0.5',
|
|
314
314
|
minWidth: '24px',
|
|
315
315
|
justifyContent: 'center'
|
|
@@ -322,12 +322,12 @@ const inputAddonSlotRecipe = defineSlotRecipe({
|
|
|
322
322
|
height: '32px',
|
|
323
323
|
borderRadius: 'sm',
|
|
324
324
|
_hasBackground: {
|
|
325
|
-
_placementLeft: {
|
|
325
|
+
_placementLeft: {
|
|
326
326
|
left: '3px',
|
|
327
327
|
minWidth: '32px',
|
|
328
328
|
justifyContent: 'center'
|
|
329
329
|
},
|
|
330
|
-
_placementRight: {
|
|
330
|
+
_placementRight: {
|
|
331
331
|
right: '3px',
|
|
332
332
|
minWidth: '32px',
|
|
333
333
|
justifyContent: 'center'
|
package/src/recipes/modal.ts
CHANGED
|
@@ -55,7 +55,7 @@ export const modalSlotRecipe = defineSlotRecipe({
|
|
|
55
55
|
borderColor: 'border.bold',
|
|
56
56
|
color: 'text.default',
|
|
57
57
|
'&[data-modal-type="drawer"]': {
|
|
58
|
-
borderColor: 'border.default'
|
|
58
|
+
borderColor: 'border.default'
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
|
@@ -78,7 +78,7 @@ export const modalSlotRecipe = defineSlotRecipe({
|
|
|
78
78
|
},
|
|
79
79
|
'&[data-modal-presentation="drawer"]': {
|
|
80
80
|
borderTopLeftRadius: 'none',
|
|
81
|
-
borderTopRightRadius: 'none'
|
|
81
|
+
borderTopRightRadius: 'none'
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
closeButton: {
|
|
@@ -130,7 +130,7 @@ export const modalSlotRecipe = defineSlotRecipe({
|
|
|
130
130
|
borderRadius: 'md'
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
}
|
|
133
|
+
}
|
|
134
134
|
},
|
|
135
135
|
|
|
136
136
|
defaultVariants: {
|
package/src/recipes/popover.ts
CHANGED
|
@@ -59,7 +59,7 @@ const richTextEditorSlotRecipe = defineSlotRecipe({
|
|
|
59
59
|
},
|
|
60
60
|
_nextTheme: {
|
|
61
61
|
color: 'icon.default'
|
|
62
|
-
}
|
|
62
|
+
}
|
|
63
63
|
},
|
|
64
64
|
'& button.mp-popover-list-item': {
|
|
65
65
|
padding: '0',
|
|
@@ -134,7 +134,7 @@ const RTEStyleProviderRecipe = defineRecipe({
|
|
|
134
134
|
cursor: 'pointer',
|
|
135
135
|
textDecoration: 'underline',
|
|
136
136
|
_hover: {
|
|
137
|
-
color: 'blue.500'
|
|
137
|
+
color: 'blue.500'
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
'& ol, ul': {
|
|
@@ -20,7 +20,7 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
20
20
|
outline: '0px solid transparent',
|
|
21
21
|
padding: '1',
|
|
22
22
|
_nextTheme: {
|
|
23
|
-
borderColor: 'border.form'
|
|
23
|
+
borderColor: 'border.form'
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
item: {
|
|
@@ -57,7 +57,7 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
57
57
|
color: 'text.secondary',
|
|
58
58
|
backgroundColor: 'background.neutral.hovered',
|
|
59
59
|
'& > svg': {
|
|
60
|
-
color: 'icon.default'
|
|
60
|
+
color: 'icon.default'
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
},
|
|
@@ -68,7 +68,7 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
68
68
|
color: 'text.selected',
|
|
69
69
|
backgroundColor: 'background.brand.selected',
|
|
70
70
|
'& > svg': {
|
|
71
|
-
color: 'icon.selected'
|
|
71
|
+
color: 'icon.selected'
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
@@ -79,7 +79,7 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
79
79
|
color: 'text.disabled',
|
|
80
80
|
backgroundColor: 'background.disabled',
|
|
81
81
|
'& > svg': {
|
|
82
|
-
color: 'icon.disabled'
|
|
82
|
+
color: 'icon.disabled'
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
},
|
|
@@ -87,14 +87,15 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
87
87
|
{
|
|
88
88
|
color: 'blue.700'
|
|
89
89
|
},
|
|
90
|
-
'input[type=radio]:checked:focus-visible + &, input[type=radio][aria-checked=mixed]:focus-visible + &':
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
'input[type=radio]:checked:focus-visible + &, input[type=radio][aria-checked=mixed]:focus-visible + &':
|
|
91
|
+
{
|
|
92
|
+
color: 'blue.700',
|
|
93
|
+
boxShadow: 'outer',
|
|
94
|
+
_nextTheme: {
|
|
95
|
+
color: 'text.selected',
|
|
96
|
+
boxShadow: '0 0 0 2px {colors.border.focused}'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
98
99
|
'input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &':
|
|
99
100
|
{
|
|
100
101
|
color: 'gray.400',
|
|
@@ -108,7 +109,7 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
108
109
|
_nextTheme: {
|
|
109
110
|
color: 'text.secondary',
|
|
110
111
|
'& > svg': {
|
|
111
|
-
color: 'icon.default'
|
|
112
|
+
color: 'icon.default'
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
},
|
package/src/recipes/select.ts
CHANGED
|
@@ -55,8 +55,8 @@ const selectSlotRecipe = defineSlotRecipe({
|
|
|
55
55
|
_isFullWidth: {
|
|
56
56
|
width: 'full'
|
|
57
57
|
},
|
|
58
|
-
_placeholder: {
|
|
59
|
-
color: 'gray.400'
|
|
58
|
+
_placeholder: {
|
|
59
|
+
color: 'gray.400'
|
|
60
60
|
},
|
|
61
61
|
_nextTheme: {
|
|
62
62
|
backgroundColor: 'background.neutral',
|
|
@@ -72,13 +72,13 @@ const selectSlotRecipe = defineSlotRecipe({
|
|
|
72
72
|
borderColor: 'border.focused',
|
|
73
73
|
boxShadow: 'focus',
|
|
74
74
|
_hover: {
|
|
75
|
-
borderColor: 'border.focused'
|
|
75
|
+
borderColor: 'border.focused'
|
|
76
76
|
},
|
|
77
77
|
_invalid: {
|
|
78
78
|
borderColor: 'border.focused',
|
|
79
79
|
_hover: {
|
|
80
|
-
borderColor: 'border.focused'
|
|
81
|
-
}
|
|
80
|
+
borderColor: 'border.focused'
|
|
81
|
+
}
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
_disabled: {
|
|
@@ -87,14 +87,14 @@ const selectSlotRecipe = defineSlotRecipe({
|
|
|
87
87
|
borderColor: 'border.disabled',
|
|
88
88
|
_hover: {
|
|
89
89
|
borderColor: 'border.disabled',
|
|
90
|
-
backgroundColor: 'background.disabled'
|
|
91
|
-
}
|
|
90
|
+
backgroundColor: 'background.disabled'
|
|
91
|
+
}
|
|
92
92
|
},
|
|
93
93
|
_invalid: {
|
|
94
94
|
borderColor: 'border.danger'
|
|
95
95
|
},
|
|
96
|
-
_placeholder: {
|
|
97
|
-
borderColor: 'text.placeholder'
|
|
96
|
+
_placeholder: {
|
|
97
|
+
borderColor: 'text.placeholder'
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
},
|
package/src/recipes/slider.ts
CHANGED
|
@@ -21,7 +21,7 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
21
21
|
flexDirection: 'column',
|
|
22
22
|
gap: '10px'
|
|
23
23
|
},
|
|
24
|
-
labelWrapper: {
|
|
24
|
+
labelWrapper: {
|
|
25
25
|
display: 'flex',
|
|
26
26
|
justifyContent: 'space-between'
|
|
27
27
|
},
|
|
@@ -61,18 +61,20 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
61
61
|
boxShadow: 'focus',
|
|
62
62
|
|
|
63
63
|
_nextTheme: {
|
|
64
|
-
borderColor
|
|
65
|
-
boxShadow: 'focus'
|
|
66
|
-
}
|
|
64
|
+
borderColor: 'border.focused',
|
|
65
|
+
boxShadow: 'focus'
|
|
66
|
+
}
|
|
67
67
|
},
|
|
68
68
|
|
|
69
69
|
_disabled: {
|
|
70
70
|
'&::-webkit-slider-thumb': {
|
|
71
71
|
cursor: 'not-allowed',
|
|
72
|
-
background:
|
|
73
|
-
|
|
72
|
+
background:
|
|
73
|
+
'radial-gradient(circle, var(--mp-colors-gray-100) 40%, var(--mp-colors-white) 50%)',
|
|
74
|
+
|
|
74
75
|
_nextTheme: {
|
|
75
|
-
background:
|
|
76
|
+
background:
|
|
77
|
+
'radial-gradient(circle, var(--mp-colors-icon-disabled) 40%, var(--mp-colors-background-neutral) 50%)'
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
},
|
|
@@ -80,7 +82,7 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
80
82
|
'&[minpressed=true], &[maxpressed=true]': {
|
|
81
83
|
'&::-webkit-slider-thumb': {
|
|
82
84
|
borderColor: 'blue.400',
|
|
83
|
-
|
|
85
|
+
|
|
84
86
|
_nextTheme: {
|
|
85
87
|
borderColor: 'border.brand'
|
|
86
88
|
}
|
|
@@ -96,9 +98,11 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
96
98
|
borderRadius: 'full',
|
|
97
99
|
borderStyle: 'solid',
|
|
98
100
|
borderColor: 'gray.100',
|
|
99
|
-
background:
|
|
101
|
+
background:
|
|
102
|
+
'radial-gradient(circle, var(--mp-colors-blue-400) 40%, var(--mp-colors-white) 50%)',
|
|
100
103
|
boxShadow: 'sm',
|
|
101
|
-
filter:
|
|
104
|
+
filter:
|
|
105
|
+
'drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.05)) drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.10))',
|
|
102
106
|
transition: 'border-color 250ms',
|
|
103
107
|
|
|
104
108
|
_hover: {
|
|
@@ -111,7 +115,8 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
111
115
|
|
|
112
116
|
_nextTheme: {
|
|
113
117
|
borderColor: 'border.default',
|
|
114
|
-
background:
|
|
118
|
+
background:
|
|
119
|
+
'radial-gradient(circle, var(--mp-colors-border-brand) 40%, var(--mp-colors-background-neutral) 50%)'
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
122
|
}
|