@mekari/pixel3-theme 0.2.1 → 0.2.2-dev.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/dist/conditions.d.mts +4 -1
- package/dist/conditions.d.ts +4 -1
- package/dist/index.js +3423 -606
- package/dist/index.mjs +3382 -565
- package/dist/recipes/airene-button.d.mts +5 -0
- package/dist/recipes/airene-button.d.ts +5 -0
- package/dist/recipes/index.d.mts +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/semanticTokens/colors.d.mts +892 -0
- package/dist/semanticTokens/colors.d.ts +892 -0
- package/dist/semanticTokens/index.d.mts +951 -0
- package/dist/semanticTokens/index.d.ts +951 -0
- package/dist/semanticTokens/spacing.d.mts +59 -0
- package/dist/semanticTokens/spacing.d.ts +59 -0
- package/dist/tokens/borders.d.mts +2 -2
- package/dist/tokens/borders.d.ts +2 -2
- package/dist/tokens/colors.d.mts +40 -34
- package/dist/tokens/colors.d.ts +40 -34
- package/dist/tokens/index.d.mts +62 -35
- package/dist/tokens/index.d.ts +62 -35
- package/dist/tokens/radii.d.mts +5 -0
- package/dist/tokens/radii.d.ts +5 -0
- package/dist/tokens/spacing.d.mts +16 -0
- package/dist/tokens/spacing.d.ts +16 -0
- package/dist/tokens-next/borders.d.mts +22 -0
- package/dist/tokens-next/borders.d.ts +22 -0
- package/dist/tokens-next/colors.d.mts +444 -0
- package/dist/tokens-next/colors.d.ts +444 -0
- package/dist/tokens-next/index.d.mts +775 -0
- package/dist/tokens-next/index.d.ts +775 -0
- package/dist/tokens-next/radii.d.mts +26 -0
- package/dist/tokens-next/radii.d.ts +26 -0
- package/dist/tokens-next/shadows.d.mts +28 -0
- package/dist/tokens-next/shadows.d.ts +28 -0
- package/dist/tokens-next/spacing.d.mts +51 -0
- package/dist/tokens-next/spacing.d.ts +51 -0
- package/package.json +3 -2
- package/src/conditions.ts +6 -4
- package/src/global-css.ts +4 -0
- package/src/index.ts +15 -2
- package/src/keyframes.ts +5 -0
- package/src/recipes/accordion.ts +60 -10
- package/src/recipes/airene-button.ts +120 -0
- package/src/recipes/autocomplete.ts +6 -1
- package/src/recipes/avatar.ts +101 -24
- package/src/recipes/badge.ts +174 -50
- package/src/recipes/banner.ts +36 -12
- package/src/recipes/broadcast.ts +78 -12
- package/src/recipes/button.ts +239 -11
- package/src/recipes/carousel.ts +5 -0
- package/src/recipes/chart.ts +10 -5
- package/src/recipes/checkbox.ts +72 -15
- package/src/recipes/color-picker.ts +74 -23
- package/src/recipes/date-picker.ts +165 -31
- package/src/recipes/divider.ts +5 -1
- package/src/recipes/dropzone.ts +80 -8
- package/src/recipes/form-control.ts +12 -3
- package/src/recipes/icon.ts +3 -1
- package/src/recipes/index.ts +3 -1
- package/src/recipes/input-tag.ts +48 -8
- package/src/recipes/input.ts +105 -18
- package/src/recipes/modal.ts +38 -10
- package/src/recipes/popover.ts +28 -9
- package/src/recipes/progress.ts +9 -2
- package/src/recipes/radio.ts +56 -23
- package/src/recipes/rich-text-editor.ts +32 -6
- package/src/recipes/segmented-control.ts +48 -8
- package/src/recipes/select.ts +42 -0
- package/src/recipes/slider.ts +46 -6
- package/src/recipes/table.ts +26 -11
- package/src/recipes/tabs.ts +36 -4
- package/src/recipes/tag.ts +44 -14
- package/src/recipes/text.ts +0 -1
- package/src/recipes/textarea.ts +0 -46
- package/src/recipes/timeline.ts +42 -8
- package/src/recipes/toast.ts +21 -5
- package/src/recipes/toggle.ts +63 -13
- package/src/recipes/tooltip.ts +6 -1
- package/src/recipes/upload.ts +51 -16
- package/src/semanticTokens/colors.ts +893 -0
- package/src/semanticTokens/index.ts +8 -0
- package/src/semanticTokens/spacing.ts +59 -0
- package/src/text-styles.ts +1 -1
- package/src/tokens/borders.ts +1 -1
- package/src/tokens/colors.ts +19 -23
- package/src/tokens/index.ts +2 -2
- package/src/tokens/radii.ts +5 -5
- package/src/tokens/spacing.ts +17 -17
- package/src/tokens-next/borders.ts +10 -0
- package/src/tokens-next/colors.ts +172 -0
- package/src/tokens-next/index.ts +32 -0
- package/src/tokens-next/radii.ts +10 -0
- package/src/tokens-next/shadows.ts +28 -0
- package/src/tokens-next/spacing.ts +16 -0
|
@@ -28,29 +28,86 @@ const colorPickerSlotRecipe = defineSlotRecipe({
|
|
|
28
28
|
gap: '2'
|
|
29
29
|
},
|
|
30
30
|
popoverTrigger: {
|
|
31
|
-
display: 'flex',
|
|
32
|
-
alignItems: 'center',
|
|
33
31
|
cursor: 'pointer',
|
|
34
32
|
position: 'relative',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
display: 'flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
borderWidth: '1px',
|
|
36
|
+
borderColor: 'gray.100',
|
|
38
37
|
borderRadius: 'md',
|
|
39
|
-
|
|
38
|
+
backgroundColor: 'white',
|
|
39
|
+
paddingTop: '1.5',
|
|
40
|
+
paddingBottom: '1.5',
|
|
41
|
+
paddingLeft: '3',
|
|
42
|
+
paddingRight: '4',
|
|
43
|
+
transition: 'all 250ms',
|
|
44
|
+
outline: 'none',
|
|
45
|
+
_nextTheme: {
|
|
46
|
+
borderRadius: 'md',
|
|
47
|
+
borderColor: 'border.form',
|
|
48
|
+
background: 'background.neutral'
|
|
49
|
+
},
|
|
50
|
+
_hover: {
|
|
51
|
+
borderColor: 'gray.400',
|
|
52
|
+
_nextTheme: {
|
|
53
|
+
borderColor: 'border.form',
|
|
54
|
+
background: 'background.neutral.hovered'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
40
57
|
_focus: {
|
|
41
|
-
boxShadow: '
|
|
42
|
-
borderColor: 'blue.400
|
|
43
|
-
|
|
58
|
+
boxShadow: 'focus',
|
|
59
|
+
borderColor: 'blue.400',
|
|
60
|
+
_nextTheme: {
|
|
61
|
+
boxShadow: 'focus',
|
|
62
|
+
borderColor: 'border.focused'
|
|
63
|
+
},
|
|
64
|
+
_hover: {
|
|
65
|
+
borderColor: 'blue.400',
|
|
66
|
+
_nextTheme: {
|
|
67
|
+
borderColor: 'border.focused'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
_disabled: {
|
|
72
|
+
cursor: 'not-allowed',
|
|
73
|
+
background: 'gray.50',
|
|
74
|
+
_nextTheme: {
|
|
75
|
+
background: 'background.disabled',
|
|
76
|
+
borderColor: 'border.disabled'
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
_hover: {
|
|
80
|
+
_nextTheme: {
|
|
81
|
+
background: 'background.disabled',
|
|
82
|
+
borderColor: 'border.disabled'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
_invalid: {
|
|
87
|
+
borderColor: 'red.400',
|
|
88
|
+
_nextTheme: {
|
|
89
|
+
borderColor: 'border.danger'
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
_hover: {
|
|
93
|
+
borderColor: 'red.400',
|
|
94
|
+
_nextTheme: {
|
|
95
|
+
borderColor: 'border.danger'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
44
98
|
}
|
|
45
99
|
},
|
|
46
100
|
boxColor: {
|
|
47
101
|
flex: 'none',
|
|
48
102
|
width: '6',
|
|
49
103
|
height: '6',
|
|
104
|
+
mr: '2',
|
|
50
105
|
borderWidth: '1px',
|
|
51
106
|
borderColor: 'gray.50',
|
|
52
107
|
borderRadius: 'sm',
|
|
53
|
-
|
|
108
|
+
_nextTheme: {
|
|
109
|
+
borderColor: 'border.default'
|
|
110
|
+
}
|
|
54
111
|
},
|
|
55
112
|
inputTrigger: {
|
|
56
113
|
margin: '-12px',
|
|
@@ -64,26 +121,20 @@ const colorPickerSlotRecipe = defineSlotRecipe({
|
|
|
64
121
|
outline: 'none'
|
|
65
122
|
}
|
|
66
123
|
},
|
|
67
|
-
popoverContent: {
|
|
68
|
-
bg: 'white',
|
|
69
|
-
rounded: 'md',
|
|
70
|
-
shadow: 'lg',
|
|
71
|
-
borderWidth: '1px',
|
|
72
|
-
borderColor: 'gray.400'
|
|
73
|
-
},
|
|
124
|
+
popoverContent: {},
|
|
74
125
|
wrapperAdvance: {
|
|
75
|
-
display: 'flex',
|
|
76
|
-
flexDirection: 'column',
|
|
77
126
|
position: 'relative',
|
|
78
127
|
width: '280px',
|
|
128
|
+
display: 'flex',
|
|
129
|
+
flexDirection: 'column',
|
|
79
130
|
padding: '3',
|
|
80
131
|
gap: '3'
|
|
81
132
|
},
|
|
82
133
|
wrapperBasic: {
|
|
83
|
-
display: 'flex',
|
|
84
|
-
flexDirection: 'column',
|
|
85
134
|
position: 'relative',
|
|
86
135
|
width: '188px',
|
|
136
|
+
display: 'flex',
|
|
137
|
+
flexDirection: 'column',
|
|
87
138
|
padding: '3',
|
|
88
139
|
gap: '3'
|
|
89
140
|
},
|
|
@@ -103,10 +154,10 @@ const colorPickerSlotRecipe = defineSlotRecipe({
|
|
|
103
154
|
gap: '2'
|
|
104
155
|
},
|
|
105
156
|
boxPreset: {
|
|
157
|
+
position: 'relative',
|
|
106
158
|
display: 'flex',
|
|
107
159
|
flexDirection: 'column',
|
|
108
160
|
gap: '2',
|
|
109
|
-
position: 'relative'
|
|
110
161
|
},
|
|
111
162
|
wrapperPreset: {
|
|
112
163
|
position: 'relative',
|
|
@@ -118,7 +169,7 @@ const colorPickerSlotRecipe = defineSlotRecipe({
|
|
|
118
169
|
position: 'relative',
|
|
119
170
|
display: 'flex',
|
|
120
171
|
flexWrap: 'wrap',
|
|
121
|
-
gap: '
|
|
172
|
+
gap: '1'
|
|
122
173
|
}
|
|
123
174
|
}
|
|
124
175
|
})
|
|
@@ -52,7 +52,7 @@ const timePanelSlotRecipe = defineSlotRecipe({
|
|
|
52
52
|
height: '224px',
|
|
53
53
|
overflowY: 'scroll',
|
|
54
54
|
overflowX: 'hidden',
|
|
55
|
-
py: '10px'
|
|
55
|
+
py: '10px'
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
})
|
|
@@ -70,7 +70,11 @@ const tableDateSlotRecipe = defineSlotRecipe({
|
|
|
70
70
|
],
|
|
71
71
|
base: {
|
|
72
72
|
headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
|
|
73
|
-
headerLabel: {
|
|
73
|
+
headerLabel: {
|
|
74
|
+
cursor: 'pointer',
|
|
75
|
+
fontWeight: 'semiBold',
|
|
76
|
+
_nextTheme: { color: 'text.default' }
|
|
77
|
+
},
|
|
74
78
|
dayWrapper: { display: 'flex', marginTop: 3 },
|
|
75
79
|
dateItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '1.5' },
|
|
76
80
|
dateItemWrapper: { display: 'flex' },
|
|
@@ -89,7 +93,11 @@ const tableMonthSlotRecipe = defineSlotRecipe({
|
|
|
89
93
|
slots: ['headerRoot', 'headerLabel', 'monthItemRoot', 'monthItemWrapper', 'shortcutLabelWrapper'],
|
|
90
94
|
base: {
|
|
91
95
|
headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
|
|
92
|
-
headerLabel: {
|
|
96
|
+
headerLabel: {
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
fontWeight: 'semiBold',
|
|
99
|
+
_nextTheme: { color: 'text.default' }
|
|
100
|
+
},
|
|
93
101
|
monthItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '3' },
|
|
94
102
|
monthItemWrapper: { display: 'grid', gridTemplateColumns: '3' },
|
|
95
103
|
shortcutLabelWrapper: {
|
|
@@ -107,7 +115,10 @@ const tableYearSlotRecipe = defineSlotRecipe({
|
|
|
107
115
|
slots: ['headerRoot', 'headerLabel', 'yearItemRoot', 'yearItemWrapper', 'shortcutLabelWrapper'],
|
|
108
116
|
base: {
|
|
109
117
|
headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
|
|
110
|
-
headerLabel: {
|
|
118
|
+
headerLabel: {
|
|
119
|
+
fontWeight: 'semiBold',
|
|
120
|
+
_nextTheme: { color: 'text.default' }
|
|
121
|
+
},
|
|
111
122
|
yearItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '3' },
|
|
112
123
|
yearItemWrapper: { display: 'grid', gridTemplateColumns: '4' },
|
|
113
124
|
shortcutLabelWrapper: {
|
|
@@ -135,7 +146,10 @@ const dayItemRecipe = defineRecipe({
|
|
|
135
146
|
cursor: 'pointer',
|
|
136
147
|
color: 'gray.600',
|
|
137
148
|
fontSize: 'sm',
|
|
138
|
-
textAlign: 'center'
|
|
149
|
+
textAlign: 'center',
|
|
150
|
+
_nextTheme: {
|
|
151
|
+
color: 'text.default'
|
|
152
|
+
}
|
|
139
153
|
}
|
|
140
154
|
})
|
|
141
155
|
|
|
@@ -160,7 +174,13 @@ const dateItemRecipe = defineRecipe({
|
|
|
160
174
|
color: 'gray.400',
|
|
161
175
|
cursor: 'not-allowed',
|
|
162
176
|
borderColor: 'transparent',
|
|
163
|
-
backgroundColor: 'transparent'
|
|
177
|
+
backgroundColor: 'transparent',
|
|
178
|
+
_nextTheme: {
|
|
179
|
+
color: 'text.disabled'
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
_nextTheme: {
|
|
183
|
+
color: 'text.default'
|
|
164
184
|
}
|
|
165
185
|
},
|
|
166
186
|
variants: {
|
|
@@ -169,31 +189,55 @@ const dateItemRecipe = defineRecipe({
|
|
|
169
189
|
rounded: 'sm',
|
|
170
190
|
_hover: {
|
|
171
191
|
borderColor: 'gray.50',
|
|
172
|
-
background: 'gray.50'
|
|
192
|
+
background: 'gray.50',
|
|
193
|
+
_nextTheme: {
|
|
194
|
+
borderColor: 'background.neutral.hovered',
|
|
195
|
+
background: 'background.neutral.hovered'
|
|
196
|
+
}
|
|
173
197
|
},
|
|
174
198
|
_focus: {
|
|
175
199
|
borderColor: 'blue.400',
|
|
176
200
|
background: 'transparent',
|
|
177
|
-
shadow: 'outer'
|
|
201
|
+
shadow: 'outer',
|
|
202
|
+
_nextTheme: {
|
|
203
|
+
borderColor: 'border.focused'
|
|
204
|
+
}
|
|
178
205
|
}
|
|
179
206
|
},
|
|
180
207
|
selected: {
|
|
181
208
|
rounded: 'sm',
|
|
182
209
|
borderColor: 'blue.400',
|
|
183
210
|
backgroundColor: 'blue.400',
|
|
184
|
-
color: 'white'
|
|
211
|
+
color: 'white',
|
|
212
|
+
_nextTheme: {
|
|
213
|
+
borderColor: 'background.brand.bold.selected',
|
|
214
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
215
|
+
color: 'text.inverse'
|
|
216
|
+
}
|
|
185
217
|
},
|
|
186
218
|
range: {
|
|
187
219
|
borderColor: 'ice.50',
|
|
188
|
-
backgroundColor: 'ice.50'
|
|
220
|
+
backgroundColor: 'ice.50',
|
|
221
|
+
_nextTheme: {
|
|
222
|
+
borderColor: 'background.brand.selected',
|
|
223
|
+
backgroundColor: 'background.brand.selected'
|
|
224
|
+
}
|
|
189
225
|
},
|
|
190
226
|
today: {
|
|
191
227
|
rounded: 'sm',
|
|
192
228
|
borderColor: 'orange.50',
|
|
193
|
-
backgroundColor: 'orange.50'
|
|
229
|
+
backgroundColor: 'orange.50',
|
|
230
|
+
_nextTheme: {
|
|
231
|
+
borderColor: 'background.warning.bold',
|
|
232
|
+
backgroundColor: 'background.warning.bold',
|
|
233
|
+
color: 'text.warning.inverse'
|
|
234
|
+
}
|
|
194
235
|
},
|
|
195
236
|
notThisMonth: {
|
|
196
|
-
color: 'gray.600'
|
|
237
|
+
color: 'gray.600',
|
|
238
|
+
_nextTheme: {
|
|
239
|
+
color: 'text.disabled'
|
|
240
|
+
}
|
|
197
241
|
},
|
|
198
242
|
disabled: {},
|
|
199
243
|
|
|
@@ -201,33 +245,60 @@ const dateItemRecipe = defineRecipe({
|
|
|
201
245
|
weekHoveredStart: {
|
|
202
246
|
roundedLeft: 'sm',
|
|
203
247
|
borderColor: 'gray.50',
|
|
204
|
-
background: 'gray.50'
|
|
248
|
+
background: 'gray.50',
|
|
249
|
+
_nextTheme: {
|
|
250
|
+
borderColor: 'background.neutral.hovered',
|
|
251
|
+
background: 'background.neutral.hovered'
|
|
252
|
+
}
|
|
205
253
|
},
|
|
206
254
|
weekHoveredMiddle: {
|
|
207
255
|
borderColor: 'gray.50',
|
|
208
|
-
background: 'gray.50'
|
|
256
|
+
background: 'gray.50',
|
|
257
|
+
_nextTheme: {
|
|
258
|
+
borderColor: 'background.neutral.hovered',
|
|
259
|
+
background: 'background.neutral.hovered'
|
|
260
|
+
}
|
|
209
261
|
},
|
|
210
262
|
weekHoveredEnd: {
|
|
211
263
|
roundedRight: 'sm',
|
|
212
264
|
borderColor: 'gray.50',
|
|
213
|
-
background: 'gray.50'
|
|
265
|
+
background: 'gray.50',
|
|
266
|
+
_nextTheme: {
|
|
267
|
+
borderColor: 'background.neutral.hovered',
|
|
268
|
+
background: 'background.neutral.hovered'
|
|
269
|
+
}
|
|
214
270
|
},
|
|
215
271
|
weekSelectedStart: {
|
|
216
272
|
roundedLeft: 'sm',
|
|
217
273
|
borderColor: 'blue.400',
|
|
218
274
|
background: 'blue.400',
|
|
219
|
-
color: 'white'
|
|
275
|
+
color: 'white',
|
|
276
|
+
_nextTheme: {
|
|
277
|
+
borderColor: 'background.brand.bold.selected',
|
|
278
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
279
|
+
color: 'text.inverse'
|
|
280
|
+
}
|
|
220
281
|
},
|
|
221
282
|
weekSelectedMiddle: {
|
|
222
283
|
borderColor: 'blue.400',
|
|
223
284
|
background: 'blue.400',
|
|
224
|
-
color: 'white'
|
|
285
|
+
color: 'white',
|
|
286
|
+
_nextTheme: {
|
|
287
|
+
borderColor: 'background.brand.bold.selected',
|
|
288
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
289
|
+
color: 'text.inverse'
|
|
290
|
+
}
|
|
225
291
|
},
|
|
226
292
|
weekSelectedEnd: {
|
|
227
293
|
roundedRight: 'sm',
|
|
228
294
|
borderColor: 'blue.400',
|
|
229
295
|
background: 'blue.400',
|
|
230
|
-
color: 'white'
|
|
296
|
+
color: 'white',
|
|
297
|
+
_nextTheme: {
|
|
298
|
+
borderColor: 'background.brand.bold.selected',
|
|
299
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
300
|
+
color: 'text.inverse'
|
|
301
|
+
}
|
|
231
302
|
}
|
|
232
303
|
}
|
|
233
304
|
},
|
|
@@ -273,6 +344,9 @@ const monthItemRecipe = defineRecipe({
|
|
|
273
344
|
cursor: 'not-allowed',
|
|
274
345
|
borderColor: 'transparent',
|
|
275
346
|
backgroundColor: 'transparent'
|
|
347
|
+
},
|
|
348
|
+
_nextTheme: {
|
|
349
|
+
color: 'text.default'
|
|
276
350
|
}
|
|
277
351
|
},
|
|
278
352
|
variants: {
|
|
@@ -282,28 +356,49 @@ const monthItemRecipe = defineRecipe({
|
|
|
282
356
|
rounded: 'sm',
|
|
283
357
|
_hover: {
|
|
284
358
|
borderColor: 'gray.50',
|
|
285
|
-
background: 'gray.50'
|
|
359
|
+
background: 'gray.50',
|
|
360
|
+
_nextTheme: {
|
|
361
|
+
borderColor: 'background.neutral.hovered',
|
|
362
|
+
background: 'background.neutral.hovered'
|
|
363
|
+
}
|
|
286
364
|
},
|
|
287
365
|
_focus: {
|
|
288
366
|
borderColor: 'blue.400',
|
|
289
367
|
background: 'transparent',
|
|
290
|
-
shadow: 'outer'
|
|
368
|
+
shadow: 'outer',
|
|
369
|
+
_nextTheme: {
|
|
370
|
+
borderColor: 'border.focused'
|
|
371
|
+
}
|
|
291
372
|
}
|
|
292
373
|
},
|
|
293
374
|
selected: {
|
|
294
375
|
rounded: 'sm',
|
|
295
376
|
borderColor: 'blue.400',
|
|
296
377
|
backgroundColor: 'blue.400',
|
|
297
|
-
color: 'white'
|
|
378
|
+
color: 'white',
|
|
379
|
+
_nextTheme: {
|
|
380
|
+
borderColor: 'background.brand.bold.selected',
|
|
381
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
382
|
+
color: 'text.inverse'
|
|
383
|
+
}
|
|
298
384
|
},
|
|
299
385
|
range: {
|
|
300
386
|
borderColor: 'ice.50',
|
|
301
|
-
backgroundColor: 'ice.50'
|
|
387
|
+
backgroundColor: 'ice.50',
|
|
388
|
+
_nextTheme: {
|
|
389
|
+
borderColor: 'background.brand.selected',
|
|
390
|
+
backgroundColor: 'background.brand.selected'
|
|
391
|
+
}
|
|
302
392
|
},
|
|
303
393
|
today: {
|
|
304
394
|
rounded: 'sm',
|
|
305
395
|
borderColor: 'orange.50',
|
|
306
|
-
backgroundColor: 'orange.50'
|
|
396
|
+
backgroundColor: 'orange.50',
|
|
397
|
+
_nextTheme: {
|
|
398
|
+
borderColor: 'background.warning.bold',
|
|
399
|
+
backgroundColor: 'background.warning.bold',
|
|
400
|
+
color: 'text.warning.inverse'
|
|
401
|
+
}
|
|
307
402
|
}
|
|
308
403
|
}
|
|
309
404
|
},
|
|
@@ -329,6 +424,9 @@ const yearItemRecipe = defineRecipe({
|
|
|
329
424
|
cursor: 'not-allowed',
|
|
330
425
|
borderColor: 'transparent',
|
|
331
426
|
backgroundColor: 'transparent'
|
|
427
|
+
},
|
|
428
|
+
_nextTheme: {
|
|
429
|
+
color: 'text.default'
|
|
332
430
|
}
|
|
333
431
|
},
|
|
334
432
|
variants: {
|
|
@@ -338,28 +436,49 @@ const yearItemRecipe = defineRecipe({
|
|
|
338
436
|
rounded: 'sm',
|
|
339
437
|
_hover: {
|
|
340
438
|
borderColor: 'gray.50',
|
|
341
|
-
background: 'gray.50'
|
|
439
|
+
background: 'gray.50',
|
|
440
|
+
_nextTheme: {
|
|
441
|
+
borderColor: 'background.neutral.hovered',
|
|
442
|
+
background: 'background.neutral.hovered'
|
|
443
|
+
}
|
|
342
444
|
},
|
|
343
445
|
_focus: {
|
|
344
446
|
borderColor: 'blue.400',
|
|
345
447
|
background: 'transparent',
|
|
346
|
-
shadow: 'outer'
|
|
448
|
+
shadow: 'outer',
|
|
449
|
+
_nextTheme: {
|
|
450
|
+
borderColor: 'border.focused'
|
|
451
|
+
}
|
|
347
452
|
}
|
|
348
453
|
},
|
|
349
454
|
selected: {
|
|
350
455
|
rounded: 'sm',
|
|
351
456
|
borderColor: 'blue.400',
|
|
352
457
|
backgroundColor: 'blue.400',
|
|
353
|
-
color: 'white'
|
|
458
|
+
color: 'white',
|
|
459
|
+
_nextTheme: {
|
|
460
|
+
borderColor: 'background.brand.bold.selected',
|
|
461
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
462
|
+
color: 'text.inverse'
|
|
463
|
+
}
|
|
354
464
|
},
|
|
355
465
|
range: {
|
|
356
466
|
borderColor: 'ice.50',
|
|
357
|
-
backgroundColor: 'ice.50'
|
|
467
|
+
backgroundColor: 'ice.50',
|
|
468
|
+
_nextTheme: {
|
|
469
|
+
borderColor: 'background.brand.selected',
|
|
470
|
+
backgroundColor: 'background.brand.selected'
|
|
471
|
+
}
|
|
358
472
|
},
|
|
359
473
|
today: {
|
|
360
474
|
rounded: 'sm',
|
|
361
475
|
borderColor: 'orange.50',
|
|
362
|
-
backgroundColor: 'orange.50'
|
|
476
|
+
backgroundColor: 'orange.50',
|
|
477
|
+
_nextTheme: {
|
|
478
|
+
borderColor: 'background.warning.bold',
|
|
479
|
+
backgroundColor: 'background.warning.bold',
|
|
480
|
+
color: 'text.warning.inverse'
|
|
481
|
+
}
|
|
363
482
|
}
|
|
364
483
|
}
|
|
365
484
|
},
|
|
@@ -385,6 +504,9 @@ const timeItemRecipe = defineRecipe({
|
|
|
385
504
|
cursor: 'not-allowed',
|
|
386
505
|
borderColor: 'transparent',
|
|
387
506
|
backgroundColor: 'transparent'
|
|
507
|
+
},
|
|
508
|
+
_nextTheme: {
|
|
509
|
+
color: 'text.default'
|
|
388
510
|
}
|
|
389
511
|
},
|
|
390
512
|
variants: {
|
|
@@ -394,19 +516,31 @@ const timeItemRecipe = defineRecipe({
|
|
|
394
516
|
rounded: 'sm',
|
|
395
517
|
_hover: {
|
|
396
518
|
borderColor: 'gray.50',
|
|
397
|
-
background: 'gray.50'
|
|
519
|
+
background: 'gray.50',
|
|
520
|
+
_nextTheme: {
|
|
521
|
+
borderColor: 'background.neutral.hovered',
|
|
522
|
+
background: 'background.neutral.hovered'
|
|
523
|
+
}
|
|
398
524
|
},
|
|
399
525
|
_focus: {
|
|
400
526
|
borderColor: 'blue.400',
|
|
401
527
|
background: 'transparent',
|
|
402
|
-
shadow: 'outer'
|
|
528
|
+
shadow: 'outer',
|
|
529
|
+
_nextTheme: {
|
|
530
|
+
borderColor: 'border.focused'
|
|
531
|
+
}
|
|
403
532
|
}
|
|
404
533
|
},
|
|
405
534
|
selected: {
|
|
406
535
|
rounded: 'sm',
|
|
407
536
|
borderColor: 'blue.400',
|
|
408
537
|
backgroundColor: 'blue.400',
|
|
409
|
-
color: 'white'
|
|
538
|
+
color: 'white',
|
|
539
|
+
_nextTheme: {
|
|
540
|
+
borderColor: 'background.brand.bold.selected',
|
|
541
|
+
backgroundColor: 'background.brand.bold.selected',
|
|
542
|
+
color: 'text.inverse'
|
|
543
|
+
}
|
|
410
544
|
}
|
|
411
545
|
}
|
|
412
546
|
},
|
package/src/recipes/divider.ts
CHANGED
package/src/recipes/dropzone.ts
CHANGED
|
@@ -35,31 +35,80 @@ const dropzoneSlotRecipe = defineSlotRecipe({
|
|
|
35
35
|
borderColor: 'gray.100',
|
|
36
36
|
borderRadius: 'md',
|
|
37
37
|
borderStyle: 'dashed',
|
|
38
|
-
background: '
|
|
38
|
+
background: 'background',
|
|
39
39
|
outline: 'none',
|
|
40
40
|
transition: 'all 250ms',
|
|
41
|
+
'&[data-variant=avatar]': {
|
|
42
|
+
borderRadius: 'full'
|
|
43
|
+
},
|
|
44
|
+
'&[data-variant=default]': {
|
|
45
|
+
background: 'white'
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
_nextTheme: {
|
|
49
|
+
borderRadius: 'md',
|
|
50
|
+
borderColor: 'border.default',
|
|
51
|
+
background: 'background.neutral.subtle',
|
|
52
|
+
'&[data-variant=avatar]': {
|
|
53
|
+
borderRadius: 'full'
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
'&[data-variant=default]': {
|
|
57
|
+
background: 'background.neutral'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
41
60
|
_hover: {
|
|
42
61
|
borderColor: 'gray.400',
|
|
43
62
|
'& [data-overlay-preview=true]': {
|
|
44
63
|
display: 'flex'
|
|
64
|
+
},
|
|
65
|
+
_nextTheme: {
|
|
66
|
+
borderColor: 'border.default',
|
|
67
|
+
background: 'background.neutral.hovered'
|
|
45
68
|
}
|
|
46
69
|
},
|
|
47
|
-
|
|
70
|
+
_focus: {
|
|
48
71
|
boxShadow: 'focus',
|
|
49
72
|
borderColor: 'blue.400',
|
|
73
|
+
_nextTheme: {
|
|
74
|
+
boxShadow: 'none',
|
|
75
|
+
borderColor: 'border.focused'
|
|
76
|
+
},
|
|
50
77
|
_hover: {
|
|
51
|
-
borderColor: 'blue.400'
|
|
78
|
+
borderColor: 'blue.400',
|
|
79
|
+
_nextTheme: {
|
|
80
|
+
borderColor: 'border.focused'
|
|
81
|
+
}
|
|
52
82
|
}
|
|
53
83
|
},
|
|
54
84
|
_disabled: {
|
|
55
85
|
cursor: 'not-allowed',
|
|
56
|
-
background: 'gray.50!'
|
|
86
|
+
background: 'gray.50!',
|
|
87
|
+
_nextTheme: {
|
|
88
|
+
background: 'background.disabled!',
|
|
89
|
+
borderColor: 'border.disabled'
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
_hover: {
|
|
93
|
+
_nextTheme: {
|
|
94
|
+
background: 'background.disabled!',
|
|
95
|
+
borderColor: 'border.disabled'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
57
98
|
},
|
|
58
99
|
_invalid: {
|
|
59
100
|
borderColor: 'red.400',
|
|
60
|
-
|
|
101
|
+
background: 'red.50!',
|
|
102
|
+
_nextTheme: {
|
|
103
|
+
borderColor: 'border.danger',
|
|
104
|
+
background: 'background.danger'
|
|
105
|
+
},
|
|
61
106
|
_hover: {
|
|
62
|
-
borderColor: 'red.400!'
|
|
107
|
+
borderColor: 'red.400!',
|
|
108
|
+
_nextTheme: {
|
|
109
|
+
borderColor: 'border.danger',
|
|
110
|
+
background: 'background.danger'
|
|
111
|
+
}
|
|
63
112
|
}
|
|
64
113
|
}
|
|
65
114
|
},
|
|
@@ -122,7 +171,19 @@ const dropzoneSlotRecipe = defineSlotRecipe({
|
|
|
122
171
|
borderRadius: 'md',
|
|
123
172
|
borderWidth: '1px',
|
|
124
173
|
borderColor: 'blue.400',
|
|
125
|
-
borderStyle: 'dashed'
|
|
174
|
+
borderStyle: 'dashed',
|
|
175
|
+
background: 'overlay',
|
|
176
|
+
'&[data-overlay=white]': {
|
|
177
|
+
background: 'whiteAlpha.300'
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
_nextTheme: {
|
|
181
|
+
borderColor: 'border.brand',
|
|
182
|
+
background: 'background.overlay.dark', // force overlay dark since this variant is black
|
|
183
|
+
'&[data-overlay=white]': {
|
|
184
|
+
background: 'background.overlay.light' // force overlay light since this variant is white
|
|
185
|
+
}
|
|
186
|
+
}
|
|
126
187
|
},
|
|
127
188
|
preview: {
|
|
128
189
|
display: 'flex',
|
|
@@ -152,8 +213,19 @@ const dropzoneSlotRecipe = defineSlotRecipe({
|
|
|
152
213
|
position: 'absolute',
|
|
153
214
|
zIndex: '2',
|
|
154
215
|
background: 'white',
|
|
155
|
-
|
|
216
|
+
borderWidth: '2px',
|
|
217
|
+
borderColor: 'white',
|
|
156
218
|
borderRadius: 'full',
|
|
219
|
+
top: '-10px',
|
|
220
|
+
right: '-10px',
|
|
221
|
+
'&[data-variant=avatar]': {
|
|
222
|
+
top: '-4px',
|
|
223
|
+
right: '-4px'
|
|
224
|
+
},
|
|
225
|
+
_nextTheme: {
|
|
226
|
+
background: 'background.neutral',
|
|
227
|
+
borderColor: 'background.neutral'
|
|
228
|
+
}
|
|
157
229
|
}
|
|
158
230
|
}
|
|
159
231
|
})
|
|
@@ -16,12 +16,18 @@ const formControlSlotRecipe = defineSlotRecipe({
|
|
|
16
16
|
},
|
|
17
17
|
required: {
|
|
18
18
|
color: 'red.400',
|
|
19
|
-
marginLeft: '1'
|
|
19
|
+
marginLeft: '1',
|
|
20
|
+
_nextTheme: {
|
|
21
|
+
color: 'text.danger',
|
|
22
|
+
}
|
|
20
23
|
},
|
|
21
24
|
helpText: {
|
|
22
25
|
color: 'gray.600',
|
|
23
26
|
fontSize: 'sm',
|
|
24
|
-
marginTop: '1'
|
|
27
|
+
marginTop: '1',
|
|
28
|
+
_nextTheme: {
|
|
29
|
+
color: 'text.secondary',
|
|
30
|
+
}
|
|
25
31
|
},
|
|
26
32
|
errorMessage: {
|
|
27
33
|
color: 'red.400',
|
|
@@ -29,7 +35,10 @@ const formControlSlotRecipe = defineSlotRecipe({
|
|
|
29
35
|
marginTop: '1',
|
|
30
36
|
textAlign: 'left',
|
|
31
37
|
verticalAlign: 'middle',
|
|
32
|
-
display: 'flex'
|
|
38
|
+
display: 'flex',
|
|
39
|
+
_nextTheme: {
|
|
40
|
+
color: 'text.danger',
|
|
41
|
+
}
|
|
33
42
|
}
|
|
34
43
|
},
|
|
35
44
|
variants: {},
|