@mekari/pixel3-theme 0.0.1-alpha.0 → 0.0.2
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 +2803 -2082
- package/dist/index.mjs +2834 -2111
- package/dist/recipes/banner.d.mts +10 -0
- package/dist/recipes/banner.d.ts +10 -0
- package/dist/recipes/divider.d.mts +5 -0
- package/dist/recipes/divider.d.ts +5 -0
- package/dist/recipes/dropzone.d.mts +5 -0
- package/dist/recipes/dropzone.d.ts +5 -0
- package/dist/recipes/form-control.d.mts +5 -0
- package/dist/recipes/form-control.d.ts +5 -0
- package/dist/recipes/index.d.mts +13 -0
- package/dist/recipes/index.d.ts +13 -0
- package/dist/recipes/input-tag.d.mts +5 -0
- package/dist/recipes/input-tag.d.ts +5 -0
- package/dist/recipes/modal.d.mts +5 -0
- package/dist/recipes/modal.d.ts +5 -0
- package/dist/recipes/upload.d.mts +6 -0
- package/dist/recipes/upload.d.ts +6 -0
- package/dist/tokens/colors.d.mts +64 -0
- package/dist/tokens/colors.d.ts +64 -0
- package/dist/tokens/index.d.mts +71 -0
- package/dist/tokens/index.d.ts +71 -0
- package/dist/tokens/sizes.d.mts +7 -0
- package/dist/tokens/sizes.d.ts +7 -0
- package/package.json +5 -4
- package/src/breakpoints.ts +6 -0
- package/src/conditions.ts +22 -0
- package/src/global-css.ts +23 -0
- package/src/index.ts +26 -0
- package/src/keyframes.ts +15 -0
- package/src/recipes/accordion.ts +57 -0
- package/src/recipes/avatar.ts +179 -0
- package/src/recipes/badge.ts +166 -0
- package/src/recipes/banner.ts +143 -0
- package/src/recipes/button.ts +224 -0
- package/src/recipes/checkbox.ts +92 -0
- package/src/recipes/divider.ts +31 -0
- package/src/recipes/dropzone.ts +161 -0
- package/src/recipes/form-control.ts +40 -0
- package/src/recipes/icon.ts +31 -0
- package/src/recipes/index.ts +83 -0
- package/src/recipes/input-tag.ts +119 -0
- package/src/recipes/input.ts +204 -0
- package/src/recipes/modal.ts +108 -0
- package/src/recipes/popover.ts +82 -0
- package/src/recipes/progress.ts +76 -0
- package/src/recipes/radio.ts +103 -0
- package/src/recipes/select.ts +114 -0
- package/src/recipes/shared.ts +19 -0
- package/src/recipes/spinner.ts +25 -0
- package/src/recipes/table.ts +113 -0
- package/src/recipes/tabs.ts +204 -0
- package/src/recipes/tag.ts +105 -0
- package/src/recipes/text.ts +56 -0
- package/src/recipes/textarea.ts +60 -0
- package/src/recipes/toggle.ts +99 -0
- package/src/recipes/tooltip.ts +24 -0
- package/src/recipes/upload.ts +99 -0
- package/src/text-styles.ts +34 -0
- package/src/tokens/borders.ts +8 -0
- package/src/tokens/colors.ts +154 -0
- package/src/tokens/durations.ts +7 -0
- package/src/tokens/index.ts +28 -0
- package/src/tokens/opacity.ts +8 -0
- package/src/tokens/radii.ts +11 -0
- package/src/tokens/shadows.ts +40 -0
- package/src/tokens/sizes.ts +29 -0
- package/src/tokens/spacing.ts +21 -0
- package/src/tokens/typography.ts +45 -0
- package/src/tokens/z-index.ts +12 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const buttonRecipe = defineRecipe({
|
|
4
|
+
className: 'button',
|
|
5
|
+
jsx: ['MpButton', 'mp-button'],
|
|
6
|
+
base: {
|
|
7
|
+
position: 'relative',
|
|
8
|
+
display: 'inline-flex',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
alignSelf: 'start',
|
|
12
|
+
gap: '2',
|
|
13
|
+
borderWidth: '1px',
|
|
14
|
+
whiteSpace: 'nowrap',
|
|
15
|
+
userSelect: 'none',
|
|
16
|
+
appearance: 'none',
|
|
17
|
+
outline: 'none',
|
|
18
|
+
cursor: 'pointer',
|
|
19
|
+
transitionDuration: '250ms',
|
|
20
|
+
transitionProperty: 'background, border-color, color, box-shadow',
|
|
21
|
+
transitionTimingFunction: 'linear',
|
|
22
|
+
_loading: {
|
|
23
|
+
cursor: 'wait',
|
|
24
|
+
position: 'absolute',
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
width: 'full',
|
|
29
|
+
height: 'full'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
primary: {
|
|
35
|
+
color: 'white',
|
|
36
|
+
background: 'blue.400',
|
|
37
|
+
borderColor: 'blue.400',
|
|
38
|
+
_hover: {
|
|
39
|
+
background: 'blue.500',
|
|
40
|
+
borderColor: 'blue.500'
|
|
41
|
+
},
|
|
42
|
+
_active: {
|
|
43
|
+
background: 'blue.700',
|
|
44
|
+
borderColor: 'blue.700'
|
|
45
|
+
},
|
|
46
|
+
_loading: {
|
|
47
|
+
background: 'blue.400'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
secondary: {
|
|
51
|
+
color: 'blue.400',
|
|
52
|
+
background: 'white',
|
|
53
|
+
borderColor: 'gray.100',
|
|
54
|
+
_hover: {
|
|
55
|
+
background: 'gray.50',
|
|
56
|
+
borderColor: 'gray.100'
|
|
57
|
+
},
|
|
58
|
+
_active: {
|
|
59
|
+
background: 'blue.50',
|
|
60
|
+
borderColor: 'blue.50'
|
|
61
|
+
},
|
|
62
|
+
_loading: {
|
|
63
|
+
background: 'white'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
ghost: {
|
|
67
|
+
color: 'gray.600',
|
|
68
|
+
background: 'white',
|
|
69
|
+
borderColor: 'white',
|
|
70
|
+
_hover: {
|
|
71
|
+
background: 'gray.50',
|
|
72
|
+
borderColor: 'gray.50'
|
|
73
|
+
},
|
|
74
|
+
_active: {
|
|
75
|
+
background: 'gray.100',
|
|
76
|
+
borderColor: 'gray.100'
|
|
77
|
+
},
|
|
78
|
+
_loading: {
|
|
79
|
+
background: 'white'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
danger: {
|
|
83
|
+
color: 'white',
|
|
84
|
+
background: 'red.400',
|
|
85
|
+
borderColor: 'red.400',
|
|
86
|
+
_hover: {
|
|
87
|
+
background: 'red.500',
|
|
88
|
+
borderColor: 'red.500'
|
|
89
|
+
},
|
|
90
|
+
_active: {
|
|
91
|
+
background: 'red.700',
|
|
92
|
+
borderColor: 'red.700'
|
|
93
|
+
},
|
|
94
|
+
_focusVisible: {
|
|
95
|
+
borderColor: 'red.400',
|
|
96
|
+
boxShadow: '0 0 0 3px #FDECEE'
|
|
97
|
+
},
|
|
98
|
+
_loading: {
|
|
99
|
+
background: 'red.400'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
textLink: {
|
|
103
|
+
color: 'blue.400',
|
|
104
|
+
background: 'white',
|
|
105
|
+
borderColor: 'white',
|
|
106
|
+
_hover: {
|
|
107
|
+
color: 'blue.500'
|
|
108
|
+
},
|
|
109
|
+
_active: {
|
|
110
|
+
color: 'blue.700'
|
|
111
|
+
},
|
|
112
|
+
_disabled: {
|
|
113
|
+
cursor: 'not-allowed',
|
|
114
|
+
color: 'gray.400'
|
|
115
|
+
},
|
|
116
|
+
_loading: {
|
|
117
|
+
background: 'white'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
size: {
|
|
122
|
+
sm: {
|
|
123
|
+
paddingX: '2',
|
|
124
|
+
paddingY: '1',
|
|
125
|
+
borderRadius: 'sm',
|
|
126
|
+
textStyle: 'label.md',
|
|
127
|
+
fontWeight: 'regular',
|
|
128
|
+
_loading: {
|
|
129
|
+
borderRadius: 'sm'
|
|
130
|
+
},
|
|
131
|
+
_hasIcon: {
|
|
132
|
+
padding: '1 !important'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
md: {
|
|
136
|
+
paddingX: '4',
|
|
137
|
+
paddingY: '2',
|
|
138
|
+
borderRadius: 'md',
|
|
139
|
+
textStyle: 'label.md',
|
|
140
|
+
fontWeight: 'semiBold',
|
|
141
|
+
_loading: {
|
|
142
|
+
borderRadius: 'md'
|
|
143
|
+
},
|
|
144
|
+
_hasIcon: {
|
|
145
|
+
padding: '2 !important'
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
compoundVariants: [
|
|
151
|
+
{
|
|
152
|
+
variant: ['textLink'],
|
|
153
|
+
css: {
|
|
154
|
+
paddingX: '0',
|
|
155
|
+
paddingY: '0',
|
|
156
|
+
borderRadius: 'sm',
|
|
157
|
+
_focusVisible: {
|
|
158
|
+
borderColor: 'white',
|
|
159
|
+
boxShadow: 'focus'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
variant: ['ghost', 'textLink'],
|
|
165
|
+
css: {
|
|
166
|
+
fontWeight: 'regular'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
variant: ['primary', 'secondary', 'ghost'],
|
|
171
|
+
css: {
|
|
172
|
+
_focusVisible: {
|
|
173
|
+
borderColor: 'blue.400',
|
|
174
|
+
boxShadow: 'focus'
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
variant: ['primary', 'secondary', 'ghost', 'danger'],
|
|
180
|
+
css: {
|
|
181
|
+
_disabled: {
|
|
182
|
+
cursor: 'not-allowed',
|
|
183
|
+
color: 'gray.400',
|
|
184
|
+
background: 'gray.50',
|
|
185
|
+
borderColor: 'gray.50',
|
|
186
|
+
_hover: {
|
|
187
|
+
background: 'gray.50',
|
|
188
|
+
borderColor: 'gray.50'
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
defaultVariants: {
|
|
195
|
+
variant: 'primary',
|
|
196
|
+
size: 'md'
|
|
197
|
+
}
|
|
198
|
+
})
|
|
199
|
+
|
|
200
|
+
const buttonGroupRecipe = defineRecipe({
|
|
201
|
+
className: 'pixel-button-group',
|
|
202
|
+
jsx: ['MpButtonGroup'],
|
|
203
|
+
base: {
|
|
204
|
+
display: 'flex',
|
|
205
|
+
alignItems: 'center',
|
|
206
|
+
gap: 'var(--mp-button-group-spacing)',
|
|
207
|
+
'&[data-split-button=true]': {
|
|
208
|
+
gap: '0',
|
|
209
|
+
'& > [data-pixel-component=MpButton]': {
|
|
210
|
+
_first: {
|
|
211
|
+
borderTopRightRadius: 'none !important',
|
|
212
|
+
borderBottomRightRadius: 'none !important',
|
|
213
|
+
borderRight: '0 !important'
|
|
214
|
+
},
|
|
215
|
+
_last: {
|
|
216
|
+
borderTopLeftRadius: 'none !important',
|
|
217
|
+
borderBottomLeftRadius: 'none !important'
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
})
|
|
223
|
+
|
|
224
|
+
export { buttonRecipe, buttonGroupRecipe }
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const checkboxSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'checkbox',
|
|
5
|
+
jsx: ['MpCheckbox', 'mp-checkbox'],
|
|
6
|
+
slots: ['root', 'control', 'label'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
display: 'inline-flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
gap: '2',
|
|
14
|
+
cursor: 'pointer',
|
|
15
|
+
outline: 'none',
|
|
16
|
+
'&[data-has-description=true]': {
|
|
17
|
+
alignItems: 'flex-start',
|
|
18
|
+
'& .mp-checkbox__control': {
|
|
19
|
+
marginTop: '1'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
'& .mp-shared__hidden': {
|
|
23
|
+
'&:focus + .mp-checkbox__control': {
|
|
24
|
+
borderColor: 'blue.400',
|
|
25
|
+
boxShadow: 'focus'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
_hover: {
|
|
29
|
+
'& .mp-checkbox__control': {
|
|
30
|
+
borderColor: 'gray.400'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
_disabled: {
|
|
34
|
+
cursor: 'not-allowed',
|
|
35
|
+
'& .mp-checkbox__control': {
|
|
36
|
+
borderColor: 'gray.100 !important',
|
|
37
|
+
background: 'gray.50 !important',
|
|
38
|
+
boxShadow: 'none !important'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
_invalid: {
|
|
42
|
+
'& .mp-checkbox__control': {
|
|
43
|
+
borderColor: 'red.400',
|
|
44
|
+
background: 'white'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
_checked: {
|
|
48
|
+
'& .mp-checkbox__control': {
|
|
49
|
+
borderColor: 'blue.400',
|
|
50
|
+
background: 'blue.400'
|
|
51
|
+
},
|
|
52
|
+
_hover: {
|
|
53
|
+
'& .mp-checkbox__control': {
|
|
54
|
+
borderColor: 'blue.400'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
_indeterminate: {
|
|
59
|
+
'& .mp-checkbox__control': {
|
|
60
|
+
borderColor: 'blue.400',
|
|
61
|
+
background: 'blue.400'
|
|
62
|
+
},
|
|
63
|
+
_hover: {
|
|
64
|
+
'& .mp-checkbox__control': {
|
|
65
|
+
borderColor: 'blue.400'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
control: {
|
|
71
|
+
flex: 'none',
|
|
72
|
+
transitionDuration: '250ms',
|
|
73
|
+
transitionProperty: 'background, border-color, box-shadow',
|
|
74
|
+
transitionTimingFunction: 'linear',
|
|
75
|
+
position: 'relative',
|
|
76
|
+
display: 'inline-flex',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
justifyContent: 'center',
|
|
79
|
+
width: '18px',
|
|
80
|
+
height: '18px',
|
|
81
|
+
borderWidth: '2px',
|
|
82
|
+
borderColor: 'gray.100',
|
|
83
|
+
borderRadius: 'md',
|
|
84
|
+
background: 'white'
|
|
85
|
+
},
|
|
86
|
+
label: {
|
|
87
|
+
background: 'transparent'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
export { checkboxSlotRecipe }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const dividerRecipe = defineRecipe({
|
|
4
|
+
className: 'divider',
|
|
5
|
+
jsx: ['MpDivider', 'mp-divider'],
|
|
6
|
+
base: {
|
|
7
|
+
border: 0,
|
|
8
|
+
opacity: 0.6,
|
|
9
|
+
color: 'rgb(208, 214, 221)'
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
orientation: {
|
|
13
|
+
horizontal: {
|
|
14
|
+
borderBottom: '0.0625rem solid',
|
|
15
|
+
height: 'auto',
|
|
16
|
+
marginY: 2
|
|
17
|
+
},
|
|
18
|
+
vertical: {
|
|
19
|
+
borderLeft: '0.0625rem solid',
|
|
20
|
+
height: 'auto',
|
|
21
|
+
marginX: 2
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
compoundVariants: [],
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
orientation: 'horizontal'
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
export { dividerRecipe }
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const dropzoneSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'dropzone',
|
|
5
|
+
jsx: ['MpDropzone', 'mp-dropzone'],
|
|
6
|
+
slots: [
|
|
7
|
+
'root',
|
|
8
|
+
'wrapper',
|
|
9
|
+
'box',
|
|
10
|
+
'logoBox',
|
|
11
|
+
'productBox',
|
|
12
|
+
'avatarBox',
|
|
13
|
+
'overlayWrapper',
|
|
14
|
+
'overlay',
|
|
15
|
+
'preview',
|
|
16
|
+
'overlayPreview',
|
|
17
|
+
'clearButton'
|
|
18
|
+
],
|
|
19
|
+
base: {
|
|
20
|
+
root: {
|
|
21
|
+
position: 'relative',
|
|
22
|
+
width: 'full',
|
|
23
|
+
height: 'full'
|
|
24
|
+
},
|
|
25
|
+
wrapper: {
|
|
26
|
+
position: 'relative',
|
|
27
|
+
display: 'flex',
|
|
28
|
+
flexDirection: 'column',
|
|
29
|
+
justifyContent: 'center',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
width: 'full',
|
|
32
|
+
height: 'inherit',
|
|
33
|
+
minHeight: 'inherit',
|
|
34
|
+
borderWidth: '1px',
|
|
35
|
+
borderColor: 'gray.100',
|
|
36
|
+
borderRadius: 'md',
|
|
37
|
+
borderStyle: 'dashed',
|
|
38
|
+
background: 'white',
|
|
39
|
+
outline: 'none',
|
|
40
|
+
transition: 'all 250ms',
|
|
41
|
+
_hover: {
|
|
42
|
+
borderColor: 'gray.400',
|
|
43
|
+
'& [data-overlay-preview=true]': {
|
|
44
|
+
display: 'flex'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
_focusVisible: {
|
|
48
|
+
boxShadow: 'focus',
|
|
49
|
+
borderColor: 'blue.400',
|
|
50
|
+
_hover: {
|
|
51
|
+
borderColor: 'blue.400'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
_disabled: {
|
|
55
|
+
cursor: 'not-allowed',
|
|
56
|
+
background: 'gray.50!'
|
|
57
|
+
},
|
|
58
|
+
_invalid: {
|
|
59
|
+
borderColor: 'red.400',
|
|
60
|
+
backgroundColor: 'red.50!',
|
|
61
|
+
_hover: {
|
|
62
|
+
borderColor: 'red.400!'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
box: {
|
|
67
|
+
display: 'flex',
|
|
68
|
+
flexDirection: 'column',
|
|
69
|
+
alignItems: 'center',
|
|
70
|
+
justifyContent: 'center',
|
|
71
|
+
gap: '2'
|
|
72
|
+
},
|
|
73
|
+
logoBox: {
|
|
74
|
+
display: 'flex',
|
|
75
|
+
alignItems: 'center',
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
gap: '2',
|
|
78
|
+
width: 'full',
|
|
79
|
+
height: 'full',
|
|
80
|
+
borderRadius: 'inherit',
|
|
81
|
+
cursor: 'pointer'
|
|
82
|
+
},
|
|
83
|
+
productBox: {
|
|
84
|
+
display: 'flex',
|
|
85
|
+
flexDirection: 'column',
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
justifyContent: 'center',
|
|
88
|
+
gap: '2',
|
|
89
|
+
width: 'full',
|
|
90
|
+
height: 'full',
|
|
91
|
+
borderRadius: 'inherit',
|
|
92
|
+
cursor: 'pointer'
|
|
93
|
+
},
|
|
94
|
+
avatarBox: {
|
|
95
|
+
display: 'flex',
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
width: 'full',
|
|
99
|
+
height: 'full',
|
|
100
|
+
borderRadius: 'inherit',
|
|
101
|
+
cursor: 'pointer'
|
|
102
|
+
},
|
|
103
|
+
overlayWrapper: {
|
|
104
|
+
width: 'full',
|
|
105
|
+
height: 'inherit',
|
|
106
|
+
minHeight: 'inherit',
|
|
107
|
+
borderRadius: 'inherit'
|
|
108
|
+
},
|
|
109
|
+
overlay: {
|
|
110
|
+
position: 'absolute',
|
|
111
|
+
zIndex: '1',
|
|
112
|
+
display: 'flex',
|
|
113
|
+
flexDirection: 'column',
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
justifyContent: 'center',
|
|
116
|
+
gap: '2',
|
|
117
|
+
width: 'full',
|
|
118
|
+
height: 'full',
|
|
119
|
+
top: '0',
|
|
120
|
+
right: '0',
|
|
121
|
+
backdropFilter: 'blur(12px)',
|
|
122
|
+
borderRadius: 'md',
|
|
123
|
+
borderWidth: '1px',
|
|
124
|
+
borderColor: 'blue.400',
|
|
125
|
+
borderStyle: 'dashed'
|
|
126
|
+
},
|
|
127
|
+
preview: {
|
|
128
|
+
display: 'flex',
|
|
129
|
+
flexDirection: 'column',
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
justifyContent: 'center',
|
|
132
|
+
height: 'full',
|
|
133
|
+
borderRadius: 'inherit'
|
|
134
|
+
},
|
|
135
|
+
overlayPreview: {
|
|
136
|
+
display: 'none',
|
|
137
|
+
cursor: 'pointer',
|
|
138
|
+
position: 'absolute',
|
|
139
|
+
zIndex: '1',
|
|
140
|
+
width: 'full',
|
|
141
|
+
height: 'full',
|
|
142
|
+
background: 'overlay',
|
|
143
|
+
backdropFilter: 'blur(12px)',
|
|
144
|
+
borderRadius: 'inherit',
|
|
145
|
+
flexDirection: 'column',
|
|
146
|
+
justifyContent: 'center',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
gap: '2'
|
|
149
|
+
},
|
|
150
|
+
clearButton: {
|
|
151
|
+
cursor: 'pointer',
|
|
152
|
+
position: 'absolute',
|
|
153
|
+
zIndex: '2',
|
|
154
|
+
background: 'white',
|
|
155
|
+
border: '2px solid white',
|
|
156
|
+
borderRadius: 'full',
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
export { dropzoneSlotRecipe }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const formControlSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'form-control',
|
|
5
|
+
jsx: ['MpFormControl', 'mp-form-control'],
|
|
6
|
+
slots: ['root', 'label', 'required', 'helpText', 'errorMessage'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {},
|
|
9
|
+
label: {
|
|
10
|
+
fontSize: 'md',
|
|
11
|
+
fontWeight: 'semiBold',
|
|
12
|
+
marginBottom: '1',
|
|
13
|
+
textAlign: 'left',
|
|
14
|
+
verticalAlign: 'middle',
|
|
15
|
+
display: 'flex'
|
|
16
|
+
},
|
|
17
|
+
required: {
|
|
18
|
+
color: 'red.400',
|
|
19
|
+
marginLeft: '1'
|
|
20
|
+
},
|
|
21
|
+
helpText: {
|
|
22
|
+
color: 'gray.600',
|
|
23
|
+
fontSize: 'sm',
|
|
24
|
+
marginTop: '1'
|
|
25
|
+
},
|
|
26
|
+
errorMessage: {
|
|
27
|
+
color: 'red.400',
|
|
28
|
+
fontSize: 'sm',
|
|
29
|
+
marginTop: '1',
|
|
30
|
+
textAlign: 'left',
|
|
31
|
+
verticalAlign: 'middle',
|
|
32
|
+
display: 'flex'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
variants: {},
|
|
36
|
+
compoundVariants: [],
|
|
37
|
+
defaultVariants: {}
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
export { formControlSlotRecipe }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const iconRecipe = defineRecipe({
|
|
4
|
+
className: 'icon',
|
|
5
|
+
jsx: ['MpIcon', 'mp-icon'],
|
|
6
|
+
base: {
|
|
7
|
+
color: 'var(--mp-icon-color)',
|
|
8
|
+
display: 'inline-block',
|
|
9
|
+
verticalAlign: 'middle',
|
|
10
|
+
backfaceVisibility: 'hidden',
|
|
11
|
+
flexShrink: 0,
|
|
12
|
+
'&:not(:root)': {
|
|
13
|
+
overflow: 'hidden'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
sm: {
|
|
19
|
+
width: '5',
|
|
20
|
+
height: '5'
|
|
21
|
+
},
|
|
22
|
+
md: {
|
|
23
|
+
width: '6',
|
|
24
|
+
height: '6'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
size: 'md'
|
|
30
|
+
}
|
|
31
|
+
})
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { tagSlotRecipe } from './tag'
|
|
2
|
+
import { avatarSlotRecipe, avatarGroupSlotRecipe } from './avatar'
|
|
3
|
+
import { buttonRecipe, buttonGroupRecipe } from './button'
|
|
4
|
+
import { inputSlotRecipe, inputGroupSlotRecipe, inputAddonSlotRecipe } from './input'
|
|
5
|
+
import { selectSlotRecipe } from './select'
|
|
6
|
+
import { textRecipe } from './text'
|
|
7
|
+
import { iconRecipe } from './icon'
|
|
8
|
+
import { spinnerRecipe } from './spinner'
|
|
9
|
+
import { accordion } from './accordion'
|
|
10
|
+
import { popoverContentRecipe, popoverListRecipe, popoverListItemRecipe } from './popover'
|
|
11
|
+
import { badgeRecipe } from './badge'
|
|
12
|
+
import { textareaRecipe } from './textarea'
|
|
13
|
+
import { tooltipRecipe } from './tooltip'
|
|
14
|
+
import { tabListRecipe, tabRecipe, selectedBorderRecipe } from './tabs'
|
|
15
|
+
import { checkboxSlotRecipe } from './checkbox'
|
|
16
|
+
import { radioSlotRecipe } from './radio'
|
|
17
|
+
import { sharedSlotRecipe } from './shared'
|
|
18
|
+
import { toggleSlotRecipe } from './toggle'
|
|
19
|
+
import { tableRecipe, tableContainerRecipe } from './table'
|
|
20
|
+
import { progressSlotRecipe } from './progress'
|
|
21
|
+
import { formControlSlotRecipe } from './form-control'
|
|
22
|
+
import { inputTagSlotRecipe } from './input-tag'
|
|
23
|
+
import { dividerRecipe } from './divider'
|
|
24
|
+
import { modalSlotRecipe } from './modal'
|
|
25
|
+
import { uploadSlotRecipe, uploadListSlotRecipe } from './upload'
|
|
26
|
+
import { dropzoneSlotRecipe } from './dropzone'
|
|
27
|
+
|
|
28
|
+
import {
|
|
29
|
+
bannerSlotRecipe,
|
|
30
|
+
bannerTitleRecipe,
|
|
31
|
+
bannerDescriptionRecipe,
|
|
32
|
+
bannerIconSlotRecipe,
|
|
33
|
+
bannerLinkRecipe,
|
|
34
|
+
bannerCloseButtonRecipe
|
|
35
|
+
} from './banner'
|
|
36
|
+
|
|
37
|
+
export const recipes = {
|
|
38
|
+
buttonRecipe,
|
|
39
|
+
buttonGroupRecipe,
|
|
40
|
+
textRecipe,
|
|
41
|
+
iconRecipe,
|
|
42
|
+
spinnerRecipe,
|
|
43
|
+
popoverContentRecipe,
|
|
44
|
+
popoverListRecipe,
|
|
45
|
+
popoverListItemRecipe,
|
|
46
|
+
badgeRecipe,
|
|
47
|
+
textareaRecipe,
|
|
48
|
+
tooltipRecipe,
|
|
49
|
+
tabListRecipe,
|
|
50
|
+
tabRecipe,
|
|
51
|
+
selectedBorderRecipe,
|
|
52
|
+
tableRecipe,
|
|
53
|
+
tableContainerRecipe,
|
|
54
|
+
dividerRecipe,
|
|
55
|
+
bannerTitleRecipe,
|
|
56
|
+
bannerDescriptionRecipe,
|
|
57
|
+
bannerLinkRecipe,
|
|
58
|
+
bannerCloseButtonRecipe
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const slotRecipes = {
|
|
62
|
+
accordion,
|
|
63
|
+
checkboxSlotRecipe,
|
|
64
|
+
radioSlotRecipe,
|
|
65
|
+
sharedSlotRecipe,
|
|
66
|
+
progressSlotRecipe,
|
|
67
|
+
toggleSlotRecipe,
|
|
68
|
+
tagSlotRecipe,
|
|
69
|
+
inputSlotRecipe,
|
|
70
|
+
inputGroupSlotRecipe,
|
|
71
|
+
inputAddonSlotRecipe,
|
|
72
|
+
avatarSlotRecipe,
|
|
73
|
+
avatarGroupSlotRecipe,
|
|
74
|
+
selectSlotRecipe,
|
|
75
|
+
formControlSlotRecipe,
|
|
76
|
+
inputTagSlotRecipe,
|
|
77
|
+
modalSlotRecipe,
|
|
78
|
+
uploadSlotRecipe,
|
|
79
|
+
uploadListSlotRecipe,
|
|
80
|
+
dropzoneSlotRecipe,
|
|
81
|
+
bannerSlotRecipe,
|
|
82
|
+
bannerIconSlotRecipe
|
|
83
|
+
}
|