@mekari/pixel3-theme 0.0.11 → 0.1.0
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 +586 -93
- package/dist/index.mjs +592 -99
- package/dist/recipes/accordion.d.mts +2 -2
- package/dist/recipes/accordion.d.ts +2 -2
- package/dist/recipes/autocomplete.d.mts +5 -0
- package/dist/recipes/autocomplete.d.ts +5 -0
- package/dist/recipes/color-picker.d.mts +5 -0
- package/dist/recipes/color-picker.d.ts +5 -0
- package/dist/recipes/date-picker.d.mts +2 -1
- package/dist/recipes/date-picker.d.ts +2 -1
- package/dist/recipes/index.d.mts +11 -2
- package/dist/recipes/index.d.ts +11 -2
- package/dist/recipes/slider.d.mts +5 -0
- package/dist/recipes/slider.d.ts +5 -0
- package/dist/recipes/tabs.d.mts +2 -2
- package/dist/recipes/tabs.d.ts +2 -2
- package/dist/recipes/timeline.d.mts +9 -0
- package/dist/recipes/timeline.d.ts +9 -0
- package/package.json +1 -1
- package/src/recipes/accordion.ts +40 -43
- package/src/recipes/autocomplete.ts +47 -0
- package/src/recipes/color-picker.ts +126 -0
- package/src/recipes/date-picker.ts +22 -0
- package/src/recipes/index.ts +25 -6
- package/src/recipes/slider.ts +81 -0
- package/src/recipes/tabs.ts +30 -13
- package/src/recipes/timeline.ts +211 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const sliderSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'slider',
|
|
5
|
+
jsx: ['MpSlider', 'mp-slider'],
|
|
6
|
+
slots: [
|
|
7
|
+
'root',
|
|
8
|
+
'labelWrapper',
|
|
9
|
+
'sliderWrapper',
|
|
10
|
+
'progress',
|
|
11
|
+
'slider',
|
|
12
|
+
'inputWrapper',
|
|
13
|
+
'input',
|
|
14
|
+
'legendWrapper'
|
|
15
|
+
],
|
|
16
|
+
base: {
|
|
17
|
+
root: {
|
|
18
|
+
position: 'relative',
|
|
19
|
+
width: 'full',
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'column',
|
|
22
|
+
gap: '10px'
|
|
23
|
+
},
|
|
24
|
+
labelWrapper: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'space-between'
|
|
27
|
+
},
|
|
28
|
+
sliderWrapper: {
|
|
29
|
+
position: 'relative',
|
|
30
|
+
width: 'full',
|
|
31
|
+
display: 'flex',
|
|
32
|
+
flexDirection: 'column'
|
|
33
|
+
},
|
|
34
|
+
progress: {
|
|
35
|
+
position: 'relative',
|
|
36
|
+
height: '2',
|
|
37
|
+
borderRadius: '100px'
|
|
38
|
+
},
|
|
39
|
+
slider: {
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
height: '2',
|
|
42
|
+
borderRadius: '100px'
|
|
43
|
+
},
|
|
44
|
+
inputWrapper: {
|
|
45
|
+
position: 'relative'
|
|
46
|
+
},
|
|
47
|
+
input: {
|
|
48
|
+
appearance: 'none',
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
width: 'full',
|
|
51
|
+
height: '2',
|
|
52
|
+
top: '-8px',
|
|
53
|
+
background: 'none',
|
|
54
|
+
outline: 'none',
|
|
55
|
+
|
|
56
|
+
_focusVisible: {
|
|
57
|
+
borderRadius: '100px',
|
|
58
|
+
borderWidth: '1px',
|
|
59
|
+
borderStyle: 'solid',
|
|
60
|
+
borderColor: 'blue.400',
|
|
61
|
+
boxShadow: 'focus'
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
'&::-webkit-slider-thumb': {
|
|
65
|
+
appearance: 'none',
|
|
66
|
+
width: '5',
|
|
67
|
+
height: '5',
|
|
68
|
+
borderRadius: 'full',
|
|
69
|
+
borderStyle: 'solid',
|
|
70
|
+
borderColor: 'gray.100',
|
|
71
|
+
boxShadow: 'sm',
|
|
72
|
+
filter:
|
|
73
|
+
'drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.05)) drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.10))',
|
|
74
|
+
transition: 'border-color 250ms',
|
|
75
|
+
pointerEvents: 'auto'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
export { sliderSlotRecipe }
|
package/src/recipes/tabs.ts
CHANGED
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import { defineRecipe } from '@pandacss/dev'
|
|
1
|
+
import { defineRecipe, defineSlotRecipe } from '@pandacss/dev'
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const tabListSlotRecipe = defineSlotRecipe({
|
|
4
4
|
className: 'tab-list',
|
|
5
5
|
jsx: ['MpTabList', 'mp-tab-list'],
|
|
6
|
+
slots: ['root', 'list'],
|
|
6
7
|
base: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
'&[data-border=true]': {
|
|
11
|
+
_before: {
|
|
12
|
+
content: '""',
|
|
13
|
+
height: '1px',
|
|
14
|
+
background: 'gray.100',
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
right: 0,
|
|
17
|
+
left: 0,
|
|
18
|
+
bottom: '1px'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
list: {
|
|
23
|
+
display: 'flex',
|
|
24
|
+
overflow: 'auto',
|
|
25
|
+
gap: '1.5rem',
|
|
26
|
+
fontSize: 'md',
|
|
27
|
+
color: 'gray.600',
|
|
28
|
+
marginBottom: 6,
|
|
29
|
+
padding: 0.5,
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
justifyContent: 'flex-start',
|
|
32
|
+
maxWidth: 'full'
|
|
33
|
+
}
|
|
17
34
|
}
|
|
18
35
|
})
|
|
19
36
|
|
|
@@ -201,4 +218,4 @@ const selectedBorderRecipe = defineRecipe({
|
|
|
201
218
|
}
|
|
202
219
|
})
|
|
203
220
|
|
|
204
|
-
export {
|
|
221
|
+
export { tabListSlotRecipe, tabRecipe, selectedBorderRecipe }
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const timelineSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'timeline',
|
|
5
|
+
jsx: [
|
|
6
|
+
'MpTimeline',
|
|
7
|
+
'MpTimelineBody',
|
|
8
|
+
'MpTimelineCaption',
|
|
9
|
+
'MpTimelineContent',
|
|
10
|
+
'MpTimelineItem',
|
|
11
|
+
'mp-timeline',
|
|
12
|
+
'mp-timeline-body',
|
|
13
|
+
'mp-timeline-caption',
|
|
14
|
+
'mp-timeline-content',
|
|
15
|
+
'mp-timeline-item'
|
|
16
|
+
],
|
|
17
|
+
slots: ['root', 'body', 'caption', 'content', 'item'],
|
|
18
|
+
base: {
|
|
19
|
+
root: {
|
|
20
|
+
maxWidth: 'sm'
|
|
21
|
+
},
|
|
22
|
+
body: {
|
|
23
|
+
marginLeft: '3',
|
|
24
|
+
paddingTop: '6px',
|
|
25
|
+
paddingBottom: '3',
|
|
26
|
+
width: 'full'
|
|
27
|
+
},
|
|
28
|
+
caption: {
|
|
29
|
+
fontSize: 'sm',
|
|
30
|
+
color: 'gray.400',
|
|
31
|
+
lineHeight: 'sm',
|
|
32
|
+
marginTop: '0.5'
|
|
33
|
+
},
|
|
34
|
+
content: {
|
|
35
|
+
paddingTop: 3
|
|
36
|
+
},
|
|
37
|
+
item: {
|
|
38
|
+
display: 'flex'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
const timelineDocumentSlotRecipe = defineSlotRecipe({
|
|
44
|
+
className: 'timelineDocument',
|
|
45
|
+
jsx: ['MpTimelineDocument', 'mp-timeline-document'],
|
|
46
|
+
slots: ['root', 'content', 'title', 'description', 'fileSize'],
|
|
47
|
+
base: {
|
|
48
|
+
root: {
|
|
49
|
+
display: 'flex',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
paddingX: '3',
|
|
52
|
+
paddingY: '2',
|
|
53
|
+
borderRadius: 'lg',
|
|
54
|
+
borderWidth: '1px',
|
|
55
|
+
borderColor: 'gray.100',
|
|
56
|
+
width: 'full',
|
|
57
|
+
gap: '3'
|
|
58
|
+
},
|
|
59
|
+
content: {
|
|
60
|
+
display: 'flex',
|
|
61
|
+
flexDirection: 'column',
|
|
62
|
+
},
|
|
63
|
+
title: {
|
|
64
|
+
fontSize: 'sm',
|
|
65
|
+
lineHeight: 'md',
|
|
66
|
+
fontWeight: 'regular',
|
|
67
|
+
letterSpacing: 'normal',
|
|
68
|
+
color: 'dark'
|
|
69
|
+
},
|
|
70
|
+
description: {
|
|
71
|
+
display: 'flex',
|
|
72
|
+
alignItems: 'center'
|
|
73
|
+
},
|
|
74
|
+
fileSize: {
|
|
75
|
+
fontSize: 'sm',
|
|
76
|
+
lineHeight: 'md',
|
|
77
|
+
fontWeight: 'regular',
|
|
78
|
+
letterSpacing: 'normal',
|
|
79
|
+
color: 'gray.400'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
variants: {
|
|
83
|
+
icon: {
|
|
84
|
+
true: { content: { marginLeft: '3' } },
|
|
85
|
+
false: { content: { marginLeft: '0' } }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
icon: false
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
const timelineLogSlotRecipe = defineSlotRecipe({
|
|
94
|
+
className: 'timelineLog',
|
|
95
|
+
jsx: ['MpTimelineLog', 'MpTimelineLogItem', 'mp-timeline-log', 'mp-timeline-log-item'],
|
|
96
|
+
slots: ['root', 'log', 'logText', 'logIcon', 'content', 'logItem'],
|
|
97
|
+
base: {
|
|
98
|
+
root: {
|
|
99
|
+
display: 'flex',
|
|
100
|
+
flexDirection: 'column'
|
|
101
|
+
},
|
|
102
|
+
log: {
|
|
103
|
+
display: 'flex',
|
|
104
|
+
cursor: 'pointer'
|
|
105
|
+
},
|
|
106
|
+
logText: {
|
|
107
|
+
color: 'gray.400',
|
|
108
|
+
_groupHover: {
|
|
109
|
+
color: 'blue.500'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
logIcon: {
|
|
113
|
+
color: 'gray.400',
|
|
114
|
+
_groupHover: { color: 'blue.500' }
|
|
115
|
+
},
|
|
116
|
+
content: {
|
|
117
|
+
listStyleType: 'disc',
|
|
118
|
+
paddingLeft: 5
|
|
119
|
+
},
|
|
120
|
+
logItem: {
|
|
121
|
+
color: 'gray.600'
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
const timelineSeparatorSlotRecipe = defineSlotRecipe({
|
|
127
|
+
className: 'timelineSeparetor',
|
|
128
|
+
jsx: ['MpTimelineSeparator', 'mp-timeline-separator'],
|
|
129
|
+
slots: ['root', 'topConnector', 'bottomConnector'],
|
|
130
|
+
base: {
|
|
131
|
+
root: {
|
|
132
|
+
display: 'flex',
|
|
133
|
+
flexDirection: 'column',
|
|
134
|
+
alignItems: 'center'
|
|
135
|
+
},
|
|
136
|
+
topConnector: {
|
|
137
|
+
height: '6px',
|
|
138
|
+
width: '2px',
|
|
139
|
+
backgroundColor: 'gray.100',
|
|
140
|
+
'&[data-position=first]': {
|
|
141
|
+
backgroundColor: 'transparent'
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
bottomConnector: {
|
|
145
|
+
height: '100%',
|
|
146
|
+
flexGrow: 1,
|
|
147
|
+
width: '2px',
|
|
148
|
+
roundedTop: '2px',
|
|
149
|
+
backgroundColor: 'gray.100',
|
|
150
|
+
'&[data-position=last]': {
|
|
151
|
+
backgroundColor: 'transparent'
|
|
152
|
+
},
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
const timelineAccordionSlotRecipe = defineSlotRecipe({
|
|
158
|
+
className: 'timelineAccordion',
|
|
159
|
+
jsx: ['MpTimelineAccordion', 'mp-timeline-accordion'],
|
|
160
|
+
slots: ['body', 'separator', 'icon', 'topConnector', 'bottomConnector', 'title', 'label'],
|
|
161
|
+
base: {
|
|
162
|
+
body: {
|
|
163
|
+
display: 'flex'
|
|
164
|
+
},
|
|
165
|
+
separator: {
|
|
166
|
+
display: 'flex',
|
|
167
|
+
flexDirection: 'column',
|
|
168
|
+
alignItems: 'center'
|
|
169
|
+
},
|
|
170
|
+
icon: {
|
|
171
|
+
my: 1,
|
|
172
|
+
cursor: 'pointer'
|
|
173
|
+
},
|
|
174
|
+
topConnector: {
|
|
175
|
+
height: '4px',
|
|
176
|
+
width: '2px',
|
|
177
|
+
backgroundColor: 'gray.100',
|
|
178
|
+
'&[data-position=first]': {
|
|
179
|
+
backgroundColor: 'transparent'
|
|
180
|
+
},
|
|
181
|
+
roundedBottom: 'full'
|
|
182
|
+
},
|
|
183
|
+
bottomConnector: {
|
|
184
|
+
flexGrow: 1,
|
|
185
|
+
width: '2px',
|
|
186
|
+
backgroundColor: 'gray.100',
|
|
187
|
+
'&[data-position=last]': {
|
|
188
|
+
backgroundColor: 'transparent'
|
|
189
|
+
},
|
|
190
|
+
roundedTop: 'full'
|
|
191
|
+
},
|
|
192
|
+
title: {
|
|
193
|
+
paddingTop: 1
|
|
194
|
+
},
|
|
195
|
+
label: {
|
|
196
|
+
fontSize: 'md',
|
|
197
|
+
lineHeight: 'md',
|
|
198
|
+
color: 'dark',
|
|
199
|
+
fontWeight: 'semibold',
|
|
200
|
+
letterSpacing: 'normal'
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
})
|
|
204
|
+
|
|
205
|
+
export {
|
|
206
|
+
timelineSlotRecipe,
|
|
207
|
+
timelineDocumentSlotRecipe,
|
|
208
|
+
timelineLogSlotRecipe,
|
|
209
|
+
timelineSeparatorSlotRecipe,
|
|
210
|
+
timelineAccordionSlotRecipe
|
|
211
|
+
}
|