@mekari/pixel3-theme 0.2.2-dev.4 → 0.2.2-dev.6
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 +285 -71
- package/dist/index.mjs +237 -23
- package/dist/recipes/index.d.mts +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/textlink.d.mts +5 -0
- package/dist/recipes/textlink.d.ts +5 -0
- 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/airene-button.ts +1 -1
- package/src/recipes/autocomplete.ts +23 -9
- 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 +45 -19
- package/src/recipes/button.ts +7 -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/index.ts +3 -1
- package/src/recipes/input.ts +23 -23
- package/src/recipes/modal.ts +3 -3
- package/src/recipes/popover.ts +4 -3
- 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/tag.ts +2 -1
- package/src/recipes/textarea.ts +1 -1
- package/src/recipes/textlink.ts +105 -0
- package/src/recipes/timeline.ts +31 -4
- package/src/recipes/toast.ts +29 -9
- 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/typography.ts +1 -1
- 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/avatar.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { defineSlotRecipe } from '@pandacss/dev'
|
|
|
2
2
|
|
|
3
3
|
const variantColor = {
|
|
4
4
|
gray: {
|
|
5
|
-
root: {
|
|
5
|
+
root: {
|
|
6
6
|
backgroundColor: 'gray.50',
|
|
7
7
|
_nextTheme: {
|
|
8
8
|
backgroundColor: 'background.neutral.subtle'
|
|
@@ -10,7 +10,7 @@ const variantColor = {
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
sky: {
|
|
13
|
-
root: {
|
|
13
|
+
root: {
|
|
14
14
|
backgroundColor: 'sky.400',
|
|
15
15
|
_nextTheme: {
|
|
16
16
|
backgroundColor: 'chart.cat01'
|
|
@@ -18,7 +18,7 @@ const variantColor = {
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
teal: {
|
|
21
|
-
root: {
|
|
21
|
+
root: {
|
|
22
22
|
backgroundColor: 'teal.400',
|
|
23
23
|
_nextTheme: {
|
|
24
24
|
backgroundColor: 'chart.cat02'
|
|
@@ -26,15 +26,15 @@ const variantColor = {
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
violet: {
|
|
29
|
-
root: {
|
|
29
|
+
root: {
|
|
30
30
|
backgroundColor: 'violet.400',
|
|
31
31
|
_nextTheme: {
|
|
32
32
|
backgroundColor: 'chart.cat03'
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
amber: {
|
|
37
|
-
root: {
|
|
37
|
+
root: {
|
|
38
38
|
backgroundColor: 'amber.400',
|
|
39
39
|
_nextTheme: {
|
|
40
40
|
backgroundColor: 'chart.cat04'
|
|
@@ -42,7 +42,7 @@ const variantColor = {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
rose: {
|
|
45
|
-
root: {
|
|
45
|
+
root: {
|
|
46
46
|
backgroundColor: 'rose.400',
|
|
47
47
|
_nextTheme: {
|
|
48
48
|
backgroundColor: 'chart.cat06'
|
|
@@ -50,7 +50,7 @@ const variantColor = {
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
stone: {
|
|
53
|
-
root: {
|
|
53
|
+
root: {
|
|
54
54
|
backgroundColor: 'stone.400',
|
|
55
55
|
_nextTheme: {
|
|
56
56
|
backgroundColor: 'chart.cat05'
|
|
@@ -58,7 +58,7 @@ const variantColor = {
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
lime: {
|
|
61
|
-
root: {
|
|
61
|
+
root: {
|
|
62
62
|
backgroundColor: 'lime.400',
|
|
63
63
|
_nextTheme: {
|
|
64
64
|
backgroundColor: 'chart.cat07'
|
|
@@ -66,7 +66,7 @@ const variantColor = {
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
pink: {
|
|
69
|
-
root: {
|
|
69
|
+
root: {
|
|
70
70
|
backgroundColor: 'pink.400',
|
|
71
71
|
_nextTheme: {
|
|
72
72
|
backgroundColor: 'chart.cat08'
|
|
@@ -174,7 +174,7 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
174
174
|
{
|
|
175
175
|
variantColor: 'gray',
|
|
176
176
|
css: {
|
|
177
|
-
root: {
|
|
177
|
+
root: {
|
|
178
178
|
color: 'gray.600',
|
|
179
179
|
_nextTheme: {
|
|
180
180
|
color: 'text.secondary'
|
|
@@ -212,40 +212,48 @@ const avatarGroupSlotRecipe = defineSlotRecipe({
|
|
|
212
212
|
cursor: 'var(--mp-avatar-group--cursor)',
|
|
213
213
|
_nextTheme: {
|
|
214
214
|
color: 'text.inverse',
|
|
215
|
-
backgroundColor: 'background.brand.bold'
|
|
215
|
+
backgroundColor: 'background.brand.bold'
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
variants: {
|
|
220
220
|
size: {
|
|
221
221
|
sm: {
|
|
222
|
-
root: {
|
|
222
|
+
root: {
|
|
223
223
|
'& > [data-pixel-component=MpAvatar]': {
|
|
224
|
-
width: '6.5',
|
|
224
|
+
width: '6.5',
|
|
225
|
+
height: '6.5',
|
|
226
|
+
fontSize: 'sm'
|
|
225
227
|
}
|
|
226
228
|
},
|
|
227
229
|
excess: { width: '5', height: '5', fontSize: 'sm' }
|
|
228
230
|
},
|
|
229
231
|
md: {
|
|
230
|
-
root: {
|
|
232
|
+
root: {
|
|
231
233
|
'& > [data-pixel-component=MpAvatar]': {
|
|
232
|
-
width: '7',
|
|
234
|
+
width: '7',
|
|
235
|
+
height: '7',
|
|
236
|
+
fontSize: 'md'
|
|
233
237
|
}
|
|
234
238
|
},
|
|
235
239
|
excess: { width: '6', height: '6', fontSize: 'md' }
|
|
236
240
|
},
|
|
237
241
|
lg: {
|
|
238
|
-
root: {
|
|
242
|
+
root: {
|
|
239
243
|
'& > [data-pixel-component=MpAvatar]': {
|
|
240
|
-
width: '9.5',
|
|
244
|
+
width: '9.5',
|
|
245
|
+
height: '9.5',
|
|
246
|
+
fontSize: 'sm'
|
|
241
247
|
}
|
|
242
248
|
},
|
|
243
249
|
excess: { width: '9', height: '9', fontSize: 'sm' }
|
|
244
250
|
},
|
|
245
251
|
xl: {
|
|
246
|
-
root: {
|
|
252
|
+
root: {
|
|
247
253
|
'& > [data-pixel-component=MpAvatar]': {
|
|
248
|
-
width: '82px',
|
|
254
|
+
width: '82px',
|
|
255
|
+
height: '82px',
|
|
256
|
+
fontSize: '32px'
|
|
249
257
|
}
|
|
250
258
|
},
|
|
251
259
|
excess: { width: '20', height: '20', fontSize: '32px' }
|
package/src/recipes/badge.ts
CHANGED
|
@@ -8,7 +8,7 @@ const badgeRecipe = defineRecipe<RecipeVariantRecord>({
|
|
|
8
8
|
display: 'inline-flex',
|
|
9
9
|
alignItems: 'center',
|
|
10
10
|
justifyContent: 'center',
|
|
11
|
-
borderRadius: '999px'
|
|
11
|
+
borderRadius: '999px'
|
|
12
12
|
},
|
|
13
13
|
|
|
14
14
|
variants: {
|
|
@@ -17,8 +17,8 @@ const badgeRecipe = defineRecipe<RecipeVariantRecord>({
|
|
|
17
17
|
color: 'white'
|
|
18
18
|
},
|
|
19
19
|
subtle: {},
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
additionalInformation: {},
|
|
21
|
+
tableStatus: {},
|
|
22
22
|
indicator: {}
|
|
23
23
|
},
|
|
24
24
|
variantColor: {
|
|
@@ -39,13 +39,13 @@ const badgeRecipe = defineRecipe<RecipeVariantRecord>({
|
|
|
39
39
|
fontSize: 'xs',
|
|
40
40
|
fontWeight: 'semiBold',
|
|
41
41
|
lineHeight: '0',
|
|
42
|
-
letterSpacing: 'normal'
|
|
42
|
+
letterSpacing: 'normal'
|
|
43
43
|
},
|
|
44
44
|
md: {
|
|
45
45
|
fontSize: 'md',
|
|
46
46
|
fontWeight: 'regular',
|
|
47
47
|
lineHeight: '0',
|
|
48
|
-
letterSpacing: 'normal'
|
|
48
|
+
letterSpacing: 'normal'
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
},
|
|
@@ -151,7 +151,7 @@ const badgeRecipe = defineRecipe<RecipeVariantRecord>({
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
variant: ['solid', 'additionalInformation']
|
|
154
|
+
variant: ['solid', 'additionalInformation'],
|
|
155
155
|
variantColor: ['gray', 'announcement'],
|
|
156
156
|
css: {
|
|
157
157
|
backgroundColor: 'stone.400',
|
|
@@ -280,7 +280,7 @@ const badgeRecipe = defineRecipe<RecipeVariantRecord>({
|
|
|
280
280
|
backgroundColor: 'icon.default'
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
}
|
|
283
|
+
}
|
|
284
284
|
],
|
|
285
285
|
|
|
286
286
|
defaultVariants: {
|
package/src/recipes/banner.ts
CHANGED
|
@@ -23,15 +23,15 @@ const bannerSlotRecipe = defineSlotRecipe({
|
|
|
23
23
|
variants: {
|
|
24
24
|
variant: {
|
|
25
25
|
info: {
|
|
26
|
-
root: {
|
|
26
|
+
root: {
|
|
27
27
|
backgroundColor: 'blue.50',
|
|
28
28
|
_nextTheme: {
|
|
29
|
-
backgroundColor: 'background.brand'
|
|
29
|
+
backgroundColor: 'background.brand'
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
success: {
|
|
34
|
-
root: {
|
|
34
|
+
root: {
|
|
35
35
|
backgroundColor: 'green.50',
|
|
36
36
|
_nextTheme: {
|
|
37
37
|
backgroundColor: 'background.success'
|
|
@@ -39,7 +39,7 @@ const bannerSlotRecipe = defineSlotRecipe({
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
danger: {
|
|
42
|
-
root: {
|
|
42
|
+
root: {
|
|
43
43
|
backgroundColor: 'red.50',
|
|
44
44
|
_nextTheme: {
|
|
45
45
|
backgroundColor: 'background.danger'
|
|
@@ -47,7 +47,7 @@ const bannerSlotRecipe = defineSlotRecipe({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
warning: {
|
|
50
|
-
root: {
|
|
50
|
+
root: {
|
|
51
51
|
backgroundColor: 'orange.50',
|
|
52
52
|
_nextTheme: {
|
|
53
53
|
backgroundColor: 'background.warning'
|
|
@@ -74,7 +74,7 @@ const bannerTitleRecipe = defineRecipe({
|
|
|
74
74
|
color: 'dark',
|
|
75
75
|
marginBottom: '1',
|
|
76
76
|
_nextTheme: {
|
|
77
|
-
color: 'text.default'
|
|
77
|
+
color: 'text.default'
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
variants: {},
|
|
@@ -93,7 +93,7 @@ const bannerDescriptionRecipe = defineRecipe({
|
|
|
93
93
|
letterSpacing: 'normal',
|
|
94
94
|
color: 'dark',
|
|
95
95
|
_nextTheme: {
|
|
96
|
-
color: 'text.default'
|
|
96
|
+
color: 'text.default'
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
variants: {},
|
package/src/recipes/broadcast.ts
CHANGED
|
@@ -43,88 +43,114 @@ 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
|
+
}
|
|
129
|
+
},
|
|
130
|
+
critical: {
|
|
131
|
+
container: {
|
|
132
|
+
backgroundColor: 'rose.400',
|
|
133
|
+
_nextTheme: {
|
|
134
|
+
backgroundColor: 'background.danger.bold'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
icon: {
|
|
138
|
+
color: 'white',
|
|
139
|
+
_nextTheme: {
|
|
140
|
+
color: 'icon.inverse'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
label: {
|
|
144
|
+
color: 'white',
|
|
145
|
+
_nextTheme: {
|
|
146
|
+
color: 'text.inverse'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
textLink: {
|
|
150
|
+
color: 'white',
|
|
151
|
+
_nextTheme: {
|
|
152
|
+
color: 'text.inverse'
|
|
153
|
+
}
|
|
128
154
|
}
|
|
129
155
|
}
|
|
130
156
|
}
|
package/src/recipes/button.ts
CHANGED
|
@@ -20,6 +20,9 @@ const buttonRecipe = defineRecipe({
|
|
|
20
20
|
transitionDuration: '250ms',
|
|
21
21
|
transitionProperty: 'background, border-color, color, box-shadow',
|
|
22
22
|
transitionTimingFunction: 'linear',
|
|
23
|
+
_isFullWidth: {
|
|
24
|
+
width: 'full'
|
|
25
|
+
},
|
|
23
26
|
_loading: {
|
|
24
27
|
cursor: 'wait',
|
|
25
28
|
position: 'absolute',
|
|
@@ -288,7 +291,7 @@ const buttonRecipe = defineRecipe({
|
|
|
288
291
|
'[data-icon-position=right]': {
|
|
289
292
|
paddingLeft: '2',
|
|
290
293
|
paddingRight: '1.5'
|
|
291
|
-
}
|
|
294
|
+
}
|
|
292
295
|
},
|
|
293
296
|
|
|
294
297
|
_nextTheme: {
|
|
@@ -402,7 +405,7 @@ const buttonRecipe = defineRecipe({
|
|
|
402
405
|
_hasIcon: {
|
|
403
406
|
background: 'transparent',
|
|
404
407
|
borderColor: 'transparent'
|
|
405
|
-
}
|
|
408
|
+
}
|
|
406
409
|
},
|
|
407
410
|
_hasIcon: {
|
|
408
411
|
background: 'transparent',
|
|
@@ -418,12 +421,12 @@ const buttonRecipe = defineRecipe({
|
|
|
418
421
|
_hasIcon: {
|
|
419
422
|
background: 'transparent',
|
|
420
423
|
borderColor: 'transparent'
|
|
421
|
-
}
|
|
424
|
+
}
|
|
422
425
|
},
|
|
423
426
|
_hasIcon: {
|
|
424
427
|
background: 'transparent',
|
|
425
428
|
borderColor: 'transparent'
|
|
426
|
-
}
|
|
429
|
+
}
|
|
427
430
|
}
|
|
428
431
|
}
|
|
429
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/index.ts
CHANGED
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
import { colorPickerSlotRecipe } from './color-picker'
|
|
65
65
|
import { sliderSlotRecipe } from './slider'
|
|
66
66
|
import { tourSlotRecipe } from './tour'
|
|
67
|
+
import { textlinkRecipe } from './textlink'
|
|
67
68
|
|
|
68
69
|
export const recipes = {
|
|
69
70
|
buttonRecipe,
|
|
@@ -91,7 +92,8 @@ export const recipes = {
|
|
|
91
92
|
dateItemRecipe,
|
|
92
93
|
monthItemRecipe,
|
|
93
94
|
yearItemRecipe,
|
|
94
|
-
timeItemRecipe
|
|
95
|
+
timeItemRecipe,
|
|
96
|
+
textlinkRecipe
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
export const slotRecipes = {
|
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'
|