@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
package/src/recipes/avatar.ts
CHANGED
|
@@ -2,31 +2,76 @@ import { defineSlotRecipe } from '@pandacss/dev'
|
|
|
2
2
|
|
|
3
3
|
const variantColor = {
|
|
4
4
|
gray: {
|
|
5
|
-
root: {
|
|
5
|
+
root: {
|
|
6
|
+
backgroundColor: 'gray.50',
|
|
7
|
+
_nextTheme: {
|
|
8
|
+
backgroundColor: 'background.neutral.subtle'
|
|
9
|
+
}
|
|
10
|
+
}
|
|
6
11
|
},
|
|
7
12
|
sky: {
|
|
8
|
-
root: {
|
|
13
|
+
root: {
|
|
14
|
+
backgroundColor: 'sky.400',
|
|
15
|
+
_nextTheme: {
|
|
16
|
+
backgroundColor: 'chart.cat01'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
9
19
|
},
|
|
10
20
|
teal: {
|
|
11
|
-
root: {
|
|
21
|
+
root: {
|
|
22
|
+
backgroundColor: 'teal.400',
|
|
23
|
+
_nextTheme: {
|
|
24
|
+
backgroundColor: 'chart.cat02'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
12
27
|
},
|
|
13
28
|
violet: {
|
|
14
|
-
root: {
|
|
29
|
+
root: {
|
|
30
|
+
backgroundColor: 'violet.400',
|
|
31
|
+
_nextTheme: {
|
|
32
|
+
backgroundColor: 'chart.cat03'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
15
35
|
},
|
|
16
36
|
amber: {
|
|
17
|
-
root: {
|
|
37
|
+
root: {
|
|
38
|
+
backgroundColor: 'amber.400',
|
|
39
|
+
_nextTheme: {
|
|
40
|
+
backgroundColor: 'chart.cat04'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
18
43
|
},
|
|
19
44
|
rose: {
|
|
20
|
-
root: {
|
|
45
|
+
root: {
|
|
46
|
+
backgroundColor: 'rose.400',
|
|
47
|
+
_nextTheme: {
|
|
48
|
+
backgroundColor: 'chart.cat06'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
21
51
|
},
|
|
22
52
|
stone: {
|
|
23
|
-
root: {
|
|
53
|
+
root: {
|
|
54
|
+
backgroundColor: 'stone.400',
|
|
55
|
+
_nextTheme: {
|
|
56
|
+
backgroundColor: 'chart.cat05'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
24
59
|
},
|
|
25
60
|
lime: {
|
|
26
|
-
root: {
|
|
61
|
+
root: {
|
|
62
|
+
backgroundColor: 'lime.400',
|
|
63
|
+
_nextTheme: {
|
|
64
|
+
backgroundColor: 'chart.cat07'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
27
67
|
},
|
|
28
68
|
pink: {
|
|
29
|
-
root: {
|
|
69
|
+
root: {
|
|
70
|
+
backgroundColor: 'pink.400',
|
|
71
|
+
_nextTheme: {
|
|
72
|
+
backgroundColor: 'chart.cat08'
|
|
73
|
+
}
|
|
74
|
+
}
|
|
30
75
|
}
|
|
31
76
|
}
|
|
32
77
|
|
|
@@ -52,6 +97,9 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
52
97
|
cursor: 'var(--mp-avatar--cursor)',
|
|
53
98
|
_hasBorder: {
|
|
54
99
|
borderWidth: '0.125rem'
|
|
100
|
+
},
|
|
101
|
+
_nextTheme: {
|
|
102
|
+
color: 'text.inverse'
|
|
55
103
|
}
|
|
56
104
|
},
|
|
57
105
|
fallback: {
|
|
@@ -81,20 +129,20 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
81
129
|
variantColor: variantColor,
|
|
82
130
|
size: {
|
|
83
131
|
sm: {
|
|
84
|
-
root: { width: '
|
|
85
|
-
icon: { width: '
|
|
132
|
+
root: { width: '5', height: '5', fontSize: 'sm' },
|
|
133
|
+
icon: { width: '3!', height: '3!' }
|
|
86
134
|
},
|
|
87
135
|
md: {
|
|
88
|
-
root: { width: '
|
|
89
|
-
icon: { width: '
|
|
136
|
+
root: { width: '6', height: '6', fontSize: 'md' },
|
|
137
|
+
icon: { width: '4!', height: '4!' }
|
|
90
138
|
},
|
|
91
139
|
lg: {
|
|
92
|
-
root: { width: '
|
|
93
|
-
icon: { width: '
|
|
140
|
+
root: { width: '9', height: '9', fontSize: 'sm' },
|
|
141
|
+
icon: { width: '5!', height: '5!' }
|
|
94
142
|
},
|
|
95
143
|
xl: {
|
|
96
|
-
root: { width: '20', height: '20', fontSize: '
|
|
97
|
-
icon: { width: '
|
|
144
|
+
root: { width: '20', height: '20', fontSize: '32px' },
|
|
145
|
+
icon: { width: '12!', height: '12!' }
|
|
98
146
|
}
|
|
99
147
|
}
|
|
100
148
|
},
|
|
@@ -126,7 +174,12 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
126
174
|
{
|
|
127
175
|
variantColor: 'gray',
|
|
128
176
|
css: {
|
|
129
|
-
root: {
|
|
177
|
+
root: {
|
|
178
|
+
color: 'gray.600',
|
|
179
|
+
_nextTheme: {
|
|
180
|
+
color: 'text.secondary'
|
|
181
|
+
}
|
|
182
|
+
}
|
|
130
183
|
}
|
|
131
184
|
}
|
|
132
185
|
],
|
|
@@ -147,7 +200,7 @@ const avatarGroupSlotRecipe = defineSlotRecipe({
|
|
|
147
200
|
zIndex: '0'
|
|
148
201
|
},
|
|
149
202
|
excess: {
|
|
150
|
-
marginLeft: '
|
|
203
|
+
marginLeft: '1',
|
|
151
204
|
color: 'blue.400',
|
|
152
205
|
backgroundColor: 'blue.50',
|
|
153
206
|
fontWeight: 'semiBold',
|
|
@@ -156,22 +209,46 @@ const avatarGroupSlotRecipe = defineSlotRecipe({
|
|
|
156
209
|
justifyContent: 'center',
|
|
157
210
|
borderRadius: 'full',
|
|
158
211
|
userSelect: 'none',
|
|
159
|
-
cursor: 'var(--mp-avatar-group--cursor)'
|
|
212
|
+
cursor: 'var(--mp-avatar-group--cursor)',
|
|
213
|
+
_nextTheme: {
|
|
214
|
+
color: 'text.inverse',
|
|
215
|
+
backgroundColor: 'background.brand.bold',
|
|
216
|
+
}
|
|
160
217
|
}
|
|
161
218
|
},
|
|
162
219
|
variants: {
|
|
163
220
|
size: {
|
|
164
221
|
sm: {
|
|
165
|
-
|
|
222
|
+
root: {
|
|
223
|
+
'& > [data-pixel-component=MpAvatar]': {
|
|
224
|
+
width: '6.5', height: '6.5', fontSize: 'sm'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
excess: { width: '5', height: '5', fontSize: 'sm' }
|
|
166
228
|
},
|
|
167
229
|
md: {
|
|
168
|
-
|
|
230
|
+
root: {
|
|
231
|
+
'& > [data-pixel-component=MpAvatar]': {
|
|
232
|
+
width: '7', height: '7', fontSize: 'md'
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
excess: { width: '6', height: '6', fontSize: 'md' }
|
|
169
236
|
},
|
|
170
237
|
lg: {
|
|
171
|
-
|
|
238
|
+
root: {
|
|
239
|
+
'& > [data-pixel-component=MpAvatar]': {
|
|
240
|
+
width: '9.5', height: '9.5', fontSize: 'sm'
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
excess: { width: '9', height: '9', fontSize: 'sm' }
|
|
172
244
|
},
|
|
173
245
|
xl: {
|
|
174
|
-
|
|
246
|
+
root: {
|
|
247
|
+
'& > [data-pixel-component=MpAvatar]': {
|
|
248
|
+
width: '82px', height: '82px', fontSize: '32px'
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
excess: { width: '20', height: '20', fontSize: '32px' }
|
|
175
252
|
}
|
|
176
253
|
}
|
|
177
254
|
},
|
package/src/recipes/badge.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
import type { RecipeVariantRecord } from '@mekari/pixel3-styled-system/types'
|
|
2
3
|
|
|
3
|
-
const badgeRecipe = defineRecipe({
|
|
4
|
+
const badgeRecipe = defineRecipe<RecipeVariantRecord>({
|
|
4
5
|
className: 'badge',
|
|
5
6
|
jsx: ['MpBadge', 'mp-badge'],
|
|
6
7
|
base: {
|
|
@@ -15,14 +16,23 @@ const badgeRecipe = defineRecipe({
|
|
|
15
16
|
solid: {
|
|
16
17
|
color: 'white'
|
|
17
18
|
},
|
|
18
|
-
subtle: {}
|
|
19
|
+
subtle: {},
|
|
20
|
+
'additionalInformation': {},
|
|
21
|
+
'tableStatus': {},
|
|
22
|
+
indicator: {}
|
|
19
23
|
},
|
|
20
24
|
variantColor: {
|
|
21
25
|
blue: {},
|
|
22
26
|
green: {},
|
|
23
27
|
orange: {},
|
|
24
28
|
red: {},
|
|
25
|
-
gray: {}
|
|
29
|
+
gray: {},
|
|
30
|
+
|
|
31
|
+
announcement: {},
|
|
32
|
+
information: {},
|
|
33
|
+
warning: {},
|
|
34
|
+
completed: {},
|
|
35
|
+
critical: {}
|
|
26
36
|
},
|
|
27
37
|
size: {
|
|
28
38
|
sm: {
|
|
@@ -30,16 +40,12 @@ const badgeRecipe = defineRecipe({
|
|
|
30
40
|
fontWeight: 'semiBold',
|
|
31
41
|
lineHeight: '0',
|
|
32
42
|
letterSpacing: 'normal',
|
|
33
|
-
minWidth: '4',
|
|
34
|
-
height: '4'
|
|
35
43
|
},
|
|
36
44
|
md: {
|
|
37
45
|
fontSize: 'md',
|
|
38
46
|
fontWeight: 'regular',
|
|
39
47
|
lineHeight: '0',
|
|
40
48
|
letterSpacing: 'normal',
|
|
41
|
-
minWidth: '5',
|
|
42
|
-
height: '5'
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
51
|
},
|
|
@@ -47,122 +53,240 @@ const badgeRecipe = defineRecipe({
|
|
|
47
53
|
compoundVariants: [
|
|
48
54
|
// Size
|
|
49
55
|
{
|
|
50
|
-
variant: 'solid',
|
|
56
|
+
variant: ['solid', 'additionalInformation', 'tableStatus'],
|
|
51
57
|
size: 'md',
|
|
52
58
|
css: {
|
|
53
59
|
paddingX: '1.5',
|
|
54
|
-
paddingY: '0.5'
|
|
60
|
+
paddingY: '0.5',
|
|
61
|
+
minWidth: '5',
|
|
62
|
+
height: '5'
|
|
55
63
|
}
|
|
56
64
|
},
|
|
57
65
|
{
|
|
58
|
-
variant: 'solid',
|
|
66
|
+
variant: ['solid', 'additionalInformation', 'tableStatus'],
|
|
59
67
|
size: 'sm',
|
|
60
68
|
css: {
|
|
61
69
|
paddingX: '1',
|
|
62
|
-
paddingY: '0.5'
|
|
70
|
+
paddingY: '0.5',
|
|
71
|
+
minWidth: '4',
|
|
72
|
+
height: '4'
|
|
63
73
|
}
|
|
64
74
|
},
|
|
65
75
|
{
|
|
66
|
-
variant: 'subtle',
|
|
76
|
+
variant: ['subtle', 'additionalInformation', 'tableStatus'],
|
|
67
77
|
size: 'md',
|
|
68
78
|
css: {
|
|
69
79
|
paddingX: '2',
|
|
70
|
-
paddingY: '0'
|
|
80
|
+
paddingY: '0',
|
|
81
|
+
minWidth: '5',
|
|
82
|
+
height: '5'
|
|
71
83
|
}
|
|
72
84
|
},
|
|
73
85
|
{
|
|
74
|
-
variant: 'subtle',
|
|
86
|
+
variant: ['subtle', 'additionalInformation', 'tableStatus'],
|
|
75
87
|
size: 'sm',
|
|
76
88
|
css: {
|
|
77
89
|
paddingX: '1',
|
|
78
|
-
paddingY: '0'
|
|
90
|
+
paddingY: '0',
|
|
91
|
+
minWidth: '4',
|
|
92
|
+
height: '4'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
variant: 'indicator',
|
|
97
|
+
size: ['sm', 'md'],
|
|
98
|
+
css: {
|
|
99
|
+
width: '3',
|
|
100
|
+
height: '3'
|
|
79
101
|
}
|
|
80
102
|
},
|
|
81
103
|
|
|
82
|
-
// Solid
|
|
104
|
+
// Solid / Additional Information
|
|
83
105
|
{
|
|
84
|
-
variant: 'solid',
|
|
85
|
-
variantColor: 'blue',
|
|
106
|
+
variant: ['solid', 'additionalInformation'],
|
|
107
|
+
variantColor: ['blue', 'information'],
|
|
86
108
|
css: {
|
|
87
|
-
backgroundColor: 'sky.400'
|
|
109
|
+
backgroundColor: 'sky.400',
|
|
110
|
+
color: 'white',
|
|
111
|
+
_nextTheme: {
|
|
112
|
+
backgroundColor: 'background.brand.bold',
|
|
113
|
+
color: 'text.inverse'
|
|
114
|
+
}
|
|
88
115
|
}
|
|
89
116
|
},
|
|
90
117
|
{
|
|
91
|
-
variant: 'solid',
|
|
92
|
-
variantColor: 'green',
|
|
118
|
+
variant: ['solid', 'additionalInformation'],
|
|
119
|
+
variantColor: ['green', 'completed'],
|
|
93
120
|
css: {
|
|
94
|
-
backgroundColor: 'teal.400'
|
|
121
|
+
backgroundColor: 'teal.400',
|
|
122
|
+
color: 'white',
|
|
123
|
+
_nextTheme: {
|
|
124
|
+
backgroundColor: 'background.success.bold',
|
|
125
|
+
color: 'text.inverse'
|
|
126
|
+
}
|
|
95
127
|
}
|
|
96
128
|
},
|
|
97
129
|
{
|
|
98
|
-
variant: 'solid',
|
|
99
|
-
variantColor: 'orange',
|
|
130
|
+
variant: ['solid', 'additionalInformation'],
|
|
131
|
+
variantColor: ['orange', 'warning'],
|
|
100
132
|
css: {
|
|
101
|
-
backgroundColor: 'amber.400'
|
|
133
|
+
backgroundColor: 'amber.400',
|
|
134
|
+
color: 'white',
|
|
135
|
+
_nextTheme: {
|
|
136
|
+
backgroundColor: 'background.warning.bold',
|
|
137
|
+
color: 'text.warning.inverse'
|
|
138
|
+
}
|
|
102
139
|
}
|
|
103
140
|
},
|
|
104
141
|
{
|
|
105
|
-
variant: 'solid',
|
|
106
|
-
variantColor: 'red',
|
|
142
|
+
variant: ['solid', 'additionalInformation'],
|
|
143
|
+
variantColor: ['red', 'critical'],
|
|
107
144
|
css: {
|
|
108
|
-
backgroundColor: 'rose.400'
|
|
145
|
+
backgroundColor: 'rose.400',
|
|
146
|
+
color: 'white',
|
|
147
|
+
_nextTheme: {
|
|
148
|
+
backgroundColor: 'background.danger.bold',
|
|
149
|
+
color: 'text.inverse'
|
|
150
|
+
}
|
|
109
151
|
}
|
|
110
152
|
},
|
|
111
153
|
{
|
|
112
|
-
variant: 'solid',
|
|
113
|
-
variantColor: 'gray',
|
|
154
|
+
variant: ['solid', 'additionalInformation'] ,
|
|
155
|
+
variantColor: ['gray', 'announcement'],
|
|
114
156
|
css: {
|
|
115
|
-
backgroundColor: 'stone.400'
|
|
157
|
+
backgroundColor: 'stone.400',
|
|
158
|
+
color: 'white',
|
|
159
|
+
_nextTheme: {
|
|
160
|
+
backgroundColor: 'background.neutral.bold',
|
|
161
|
+
color: 'text.inverse'
|
|
162
|
+
}
|
|
116
163
|
}
|
|
117
164
|
},
|
|
118
165
|
|
|
119
|
-
// Subtle
|
|
166
|
+
// Subtle / Table Status
|
|
120
167
|
{
|
|
121
|
-
variant: ['subtle'],
|
|
122
|
-
variantColor: 'blue',
|
|
168
|
+
variant: ['subtle', 'tableStatus'],
|
|
169
|
+
variantColor: ['blue', 'information'],
|
|
123
170
|
css: {
|
|
124
171
|
backgroundColor: 'blue.50',
|
|
125
|
-
color: 'blue.700'
|
|
172
|
+
color: 'blue.700',
|
|
173
|
+
_nextTheme: {
|
|
174
|
+
backgroundColor: 'background.brand',
|
|
175
|
+
color: 'text.information'
|
|
176
|
+
}
|
|
126
177
|
}
|
|
127
178
|
},
|
|
128
179
|
{
|
|
129
|
-
variant: ['subtle'],
|
|
130
|
-
variantColor: 'green',
|
|
180
|
+
variant: ['subtle', 'tableStatus'],
|
|
181
|
+
variantColor: ['green', 'completed'],
|
|
131
182
|
css: {
|
|
132
183
|
backgroundColor: 'green.50',
|
|
133
|
-
color: 'green.700'
|
|
184
|
+
color: 'green.700',
|
|
185
|
+
_nextTheme: {
|
|
186
|
+
backgroundColor: 'background.success',
|
|
187
|
+
color: 'text.success'
|
|
188
|
+
}
|
|
134
189
|
}
|
|
135
190
|
},
|
|
136
191
|
{
|
|
137
|
-
variant: ['subtle'],
|
|
138
|
-
variantColor: 'orange',
|
|
192
|
+
variant: ['subtle', 'tableStatus'],
|
|
193
|
+
variantColor: ['orange', 'warning'],
|
|
139
194
|
css: {
|
|
140
195
|
backgroundColor: 'orange.50',
|
|
141
|
-
color: 'orange.700'
|
|
196
|
+
color: 'orange.700',
|
|
197
|
+
_nextTheme: {
|
|
198
|
+
backgroundColor: 'background.warning',
|
|
199
|
+
color: 'text.warning'
|
|
200
|
+
}
|
|
142
201
|
}
|
|
143
202
|
},
|
|
144
203
|
{
|
|
145
|
-
variant: ['subtle'],
|
|
146
|
-
variantColor: 'red',
|
|
204
|
+
variant: ['subtle', 'tableStatus'],
|
|
205
|
+
variantColor: ['red', 'critical'],
|
|
147
206
|
css: {
|
|
148
207
|
backgroundColor: 'red.50',
|
|
149
|
-
color: 'red.700'
|
|
208
|
+
color: 'red.700',
|
|
209
|
+
_nextTheme: {
|
|
210
|
+
backgroundColor: 'background.danger',
|
|
211
|
+
color: 'text.danger'
|
|
212
|
+
}
|
|
150
213
|
}
|
|
151
214
|
},
|
|
152
215
|
{
|
|
153
|
-
variant: ['subtle'],
|
|
154
|
-
variantColor: 'gray',
|
|
216
|
+
variant: ['subtle', 'tableStatus'],
|
|
217
|
+
variantColor: ['gray', 'announcement'],
|
|
155
218
|
css: {
|
|
156
219
|
backgroundColor: 'gray.50',
|
|
157
|
-
color: 'black'
|
|
220
|
+
color: 'black',
|
|
221
|
+
_nextTheme: {
|
|
222
|
+
color: 'text.default',
|
|
223
|
+
backgroundColor: 'background.neutral.subtle'
|
|
224
|
+
}
|
|
158
225
|
}
|
|
159
|
-
}
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
// Indicator
|
|
229
|
+
{
|
|
230
|
+
variant: 'indicator',
|
|
231
|
+
variantColor: ['blue', 'information'],
|
|
232
|
+
css: {
|
|
233
|
+
backgroundColor: 'sky.400',
|
|
234
|
+
_nextTheme: {
|
|
235
|
+
backgroundColor: 'icon.brand',
|
|
236
|
+
color: 'text.inverse'
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
variant: 'indicator',
|
|
242
|
+
variantColor: ['green', 'completed'],
|
|
243
|
+
css: {
|
|
244
|
+
backgroundColor: 'teal.400',
|
|
245
|
+
_nextTheme: {
|
|
246
|
+
backgroundColor: 'icon.success',
|
|
247
|
+
color: 'text.inverse'
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
variant: 'indicator',
|
|
253
|
+
variantColor: ['orange', 'warning'],
|
|
254
|
+
css: {
|
|
255
|
+
backgroundColor: 'amber.400',
|
|
256
|
+
_nextTheme: {
|
|
257
|
+
backgroundColor: 'icon.warning',
|
|
258
|
+
color: 'text.warning.inverse'
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
variant: 'indicator',
|
|
264
|
+
variantColor: ['red', 'critical'],
|
|
265
|
+
css: {
|
|
266
|
+
backgroundColor: 'rose.400',
|
|
267
|
+
_nextTheme: {
|
|
268
|
+
backgroundColor: 'icon.danger',
|
|
269
|
+
color: 'text.inverse'
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
variant: 'indicator',
|
|
275
|
+
variantColor: ['gray', 'announcement'],
|
|
276
|
+
css: {
|
|
277
|
+
backgroundColor: 'stone.400',
|
|
278
|
+
_nextTheme: {
|
|
279
|
+
color: 'text.inverse',
|
|
280
|
+
backgroundColor: 'icon.default'
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
160
284
|
],
|
|
161
285
|
|
|
162
286
|
defaultVariants: {
|
|
163
|
-
variant: '
|
|
287
|
+
variant: 'additionalInformation',
|
|
164
288
|
size: 'md',
|
|
165
|
-
variantColor: '
|
|
289
|
+
variantColor: 'information'
|
|
166
290
|
}
|
|
167
291
|
})
|
|
168
292
|
|
package/src/recipes/banner.ts
CHANGED
|
@@ -10,8 +10,8 @@ const bannerSlotRecipe = defineSlotRecipe({
|
|
|
10
10
|
position: 'relative',
|
|
11
11
|
alignItems: 'var(--mp-banner--align-items)',
|
|
12
12
|
borderRadius: 'md',
|
|
13
|
-
paddingY: '
|
|
14
|
-
paddingX: '
|
|
13
|
+
paddingY: '3',
|
|
14
|
+
paddingX: '4'
|
|
15
15
|
},
|
|
16
16
|
body: {
|
|
17
17
|
display: 'flex',
|
|
@@ -23,16 +23,36 @@ const bannerSlotRecipe = defineSlotRecipe({
|
|
|
23
23
|
variants: {
|
|
24
24
|
variant: {
|
|
25
25
|
info: {
|
|
26
|
-
root: {
|
|
26
|
+
root: {
|
|
27
|
+
backgroundColor: 'blue.50',
|
|
28
|
+
_nextTheme: {
|
|
29
|
+
backgroundColor: 'background.brand',
|
|
30
|
+
}
|
|
31
|
+
}
|
|
27
32
|
},
|
|
28
33
|
success: {
|
|
29
|
-
root: {
|
|
34
|
+
root: {
|
|
35
|
+
backgroundColor: 'green.50',
|
|
36
|
+
_nextTheme: {
|
|
37
|
+
backgroundColor: 'background.success'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
30
40
|
},
|
|
31
41
|
danger: {
|
|
32
|
-
root: {
|
|
42
|
+
root: {
|
|
43
|
+
backgroundColor: 'red.50',
|
|
44
|
+
_nextTheme: {
|
|
45
|
+
backgroundColor: 'background.danger'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
33
48
|
},
|
|
34
49
|
warning: {
|
|
35
|
-
root: {
|
|
50
|
+
root: {
|
|
51
|
+
backgroundColor: 'orange.50',
|
|
52
|
+
_nextTheme: {
|
|
53
|
+
backgroundColor: 'background.warning'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
36
56
|
}
|
|
37
57
|
}
|
|
38
58
|
},
|
|
@@ -52,8 +72,10 @@ const bannerTitleRecipe = defineRecipe({
|
|
|
52
72
|
lineHeight: 'md',
|
|
53
73
|
letterSpacing: 'normal',
|
|
54
74
|
color: 'dark',
|
|
55
|
-
|
|
56
|
-
|
|
75
|
+
marginBottom: '1',
|
|
76
|
+
_nextTheme: {
|
|
77
|
+
color: 'text.default',
|
|
78
|
+
}
|
|
57
79
|
},
|
|
58
80
|
variants: {},
|
|
59
81
|
compoundVariants: [],
|
|
@@ -69,7 +91,10 @@ const bannerDescriptionRecipe = defineRecipe({
|
|
|
69
91
|
fontWeight: 'regular',
|
|
70
92
|
lineHeight: 'md',
|
|
71
93
|
letterSpacing: 'normal',
|
|
72
|
-
color: 'dark'
|
|
94
|
+
color: 'dark',
|
|
95
|
+
_nextTheme: {
|
|
96
|
+
color: 'text.default',
|
|
97
|
+
}
|
|
73
98
|
},
|
|
74
99
|
variants: {},
|
|
75
100
|
compoundVariants: [],
|
|
@@ -106,7 +131,6 @@ const bannerLinkRecipe = defineRecipe({
|
|
|
106
131
|
base: {
|
|
107
132
|
display: 'flex',
|
|
108
133
|
gap: '4',
|
|
109
|
-
marginBottom: 'var(--mp-banner-link--margin-bottom)',
|
|
110
134
|
marginTop: 'var(--mp-banner-link--margin-top)'
|
|
111
135
|
},
|
|
112
136
|
variants: {},
|
|
@@ -119,8 +143,8 @@ const bannerCloseButtonRecipe = defineRecipe({
|
|
|
119
143
|
jsx: ['MpBannerCloseButton', 'mp-banner-close-button'],
|
|
120
144
|
base: {
|
|
121
145
|
position: 'absolute',
|
|
122
|
-
top: '
|
|
123
|
-
right: '
|
|
146
|
+
top: '3',
|
|
147
|
+
right: '4',
|
|
124
148
|
display: 'inline-flex',
|
|
125
149
|
justifyContent: 'center',
|
|
126
150
|
alignItems: 'center',
|