@mekari/pixel3-theme 0.0.8 → 0.0.9-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.
@@ -0,0 +1,320 @@
1
+ import { defineSlotRecipe, defineRecipe } from '@pandacss/dev'
2
+
3
+ const datePickerSlotRecipe = defineSlotRecipe({
4
+ className: 'datepicker',
5
+ jsx: ['MpDatePicker', 'mp-date-picker'],
6
+ slots: ['root', 'popoverContent'],
7
+ base: {
8
+ 'root': {
9
+ width: '100%',
10
+ position: 'relative'
11
+ },
12
+ popoverContent: {
13
+ minWidth: '280px',
14
+ padding: 4,
15
+ }
16
+ }
17
+ })
18
+
19
+ const calendarPanelRangeRecipe = defineRecipe({
20
+ className: 'calendarPanelRange',
21
+ base: {
22
+ display: 'grid',
23
+ gap: 4,
24
+ gridTemplateColumns: '2'
25
+ }
26
+ })
27
+
28
+ const tableDateSlotRecipe = defineSlotRecipe({
29
+ className: 'tableDate',
30
+ jsx: ['TableDate', 'table-date'],
31
+ slots: ['headerRoot', 'headerLabel', 'dayWrapper', 'dateItemRoot', 'dateItemWrapper', 'shortcutLabelWrapper'],
32
+ base: {
33
+ headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
34
+ headerLabel: { cursor: 'pointer', fontWeight: 'semiBold' },
35
+ dayWrapper: { display: 'flex', marginTop: 3 },
36
+ dateItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '1.5' },
37
+ dateItemWrapper: { display: 'flex' },
38
+ shortcutLabelWrapper: { display: 'flex', justifyContent: 'center', alignItems: 'center', marginTop: 3 }
39
+ }
40
+ })
41
+
42
+ const tableMonthSlotRecipe = defineSlotRecipe({
43
+ className: 'tableMonth',
44
+ jsx: ['TableMonth', 'table-month'],
45
+ slots: ['headerRoot', 'headerLabel', 'monthItemRoot', 'monthItemWrapper', 'shortcutLabelWrapper'],
46
+ base: {
47
+ headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
48
+ headerLabel: { cursor: 'pointer', fontWeight: 'semiBold' },
49
+ monthItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '3' },
50
+ monthItemWrapper: { display: 'grid', gridTemplateColumns: '3' },
51
+ shortcutLabelWrapper: { display: 'flex', justifyContent: 'center', alignItems: 'center', marginTop: 3 }
52
+ }
53
+ })
54
+
55
+ const tableYearSlotRecipe = defineSlotRecipe({
56
+ className: 'tableYear',
57
+ jsx: ['TableYear', 'table-year'],
58
+ slots: ['headerRoot', 'headerLabel', 'yearItemRoot', 'yearItemWrapper', 'shortcutLabelWrapper'],
59
+ base: {
60
+ headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
61
+ headerLabel: { fontWeight: 'semiBold' },
62
+ yearItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '3' },
63
+ yearItemWrapper: { display: 'grid', gridTemplateColumns: '4' },
64
+ shortcutLabelWrapper: { display: 'flex', justifyContent: 'center', alignItems: 'center', marginTop: 3 }
65
+ }
66
+ })
67
+
68
+ const dayItemRecipe = defineRecipe({
69
+ className: 'day',
70
+ jsx: ['Day', 'day'],
71
+ base: {
72
+ width: '36px',
73
+ height: '36px',
74
+ display: 'flex',
75
+ flexDirection: 'column',
76
+ justifyContent: 'center',
77
+ alignItems: 'center',
78
+ flexShrink: 0,
79
+ borderWidth: '1px',
80
+ borderColor: 'transparent',
81
+ cursor: 'pointer',
82
+ color: 'gray.600',
83
+ fontSize: 'sm',
84
+ textAlign: 'center'
85
+ }
86
+ })
87
+
88
+ const dateItemRecipe = defineRecipe({
89
+ className: 'dateItem',
90
+ jsx: ['DateItem', 'date-item', 'Date', 'date'],
91
+ base: {
92
+ position: 'relative',
93
+ width: '36px',
94
+ height: '36px',
95
+ display: 'flex',
96
+ flexDirection: 'column',
97
+ justifyContent: 'center',
98
+ alignItems: 'center',
99
+ flexShrink: 0,
100
+ borderWidth: '1px',
101
+ borderColor: 'transparent',
102
+ cursor: 'pointer',
103
+ fontSize: 'md',
104
+ transition: 'box-shadow 300ms',
105
+ _disabled: {
106
+ color: 'gray.400',
107
+ cursor: 'not-allowed',
108
+ borderColor: 'transparent',
109
+ backgroundColor: 'transparent'
110
+ }
111
+ },
112
+ variants: {
113
+ status: {
114
+ default: {
115
+ rounded: 'sm',
116
+ _hover: {
117
+ borderColor: 'gray.50',
118
+ background: 'gray.50'
119
+ },
120
+ _focus: {
121
+ borderColor: 'blue.400',
122
+ background: 'transparent',
123
+ shadow: 'outer'
124
+ }
125
+ },
126
+ selected: {
127
+ rounded: 'sm',
128
+ borderColor: 'blue.400',
129
+ backgroundColor: 'blue.400',
130
+ color: 'white'
131
+ },
132
+ range: {
133
+ borderColor: 'ice.50',
134
+ backgroundColor: 'ice.50'
135
+ },
136
+ today: {
137
+ rounded: 'sm',
138
+ borderColor: 'orange.50',
139
+ backgroundColor: 'orange.50',
140
+ },
141
+ notThisMonth: {
142
+ color: 'gray.600'
143
+ },
144
+ disabled: {},
145
+
146
+ // Week
147
+ weekHoveredStart: {
148
+ roundedLeft: 'sm',
149
+ borderColor: 'gray.50',
150
+ background: 'gray.50'
151
+ },
152
+ weekHoveredMiddle: {
153
+ borderColor: 'gray.50',
154
+ background: 'gray.50'
155
+ },
156
+ weekHoveredEnd: {
157
+ roundedRight: 'sm',
158
+ borderColor: 'gray.50',
159
+ background: 'gray.50'
160
+ },
161
+ weekSelectedStart: {
162
+ roundedLeft: 'sm',
163
+ borderColor: 'blue.400',
164
+ background: 'blue.400',
165
+ color: 'white'
166
+ },
167
+ weekSelectedMiddle: {
168
+ borderColor: 'blue.400',
169
+ background: 'blue.400',
170
+ color: 'white'
171
+ },
172
+ weekSelectedEnd: {
173
+ roundedRight: 'sm',
174
+ borderColor: 'blue.400',
175
+ background: 'blue.400',
176
+ color: 'white'
177
+ },
178
+ }
179
+ },
180
+ staticCss: ['*']
181
+ })
182
+
183
+ const pinbarSlotRecipe = defineSlotRecipe({
184
+ className: 'pinbar',
185
+ slots: ['root', 'pinbar'],
186
+ base: {
187
+ root: {
188
+ position: 'absolute',
189
+ bottom: 0,
190
+ height: 1,
191
+ display: 'flex',
192
+ justifyContent: 'center',
193
+ },
194
+ pinbar: {
195
+ width: 6,
196
+ height: 1,
197
+ borderRadius: '2px',
198
+ background: 'orange.500'
199
+ }
200
+ }
201
+ })
202
+
203
+ const monthItemRecipe = defineRecipe({
204
+ className: 'monthItem',
205
+ jsx: ['MonthItem', 'month-item'],
206
+ base: {
207
+ width: 'full',
208
+ height: '36px',
209
+ display: 'flex',
210
+ flexDirection: 'column',
211
+ justifyContent: 'center',
212
+ alignItems: 'center',
213
+ flexShrink: 0,
214
+ borderWidth: '1px',
215
+ borderColor: 'transparent',
216
+ cursor: 'pointer',
217
+ _disabled: {
218
+ color: 'gray.400',
219
+ cursor: 'not-allowed',
220
+ borderColor: 'transparent',
221
+ backgroundColor: 'transparent'
222
+ }
223
+ },
224
+ variants: {
225
+ status: {
226
+ disabled: {},
227
+ default: {
228
+ rounded: 'sm',
229
+ _hover: {
230
+ borderColor: 'gray.50',
231
+ background: 'gray.50'
232
+ },
233
+ _focus: {
234
+ borderColor: 'blue.400',
235
+ background: 'transparent',
236
+ shadow: 'outer'
237
+ }
238
+ },
239
+ selected: {
240
+ rounded: 'sm',
241
+ borderColor: 'blue.400',
242
+ backgroundColor: 'blue.400',
243
+ color: 'white'
244
+ },
245
+ range: {
246
+ borderColor: 'ice.50',
247
+ backgroundColor: 'ice.50'
248
+ },
249
+ today: {
250
+ rounded: 'sm',
251
+ borderColor: 'orange.50',
252
+ backgroundColor: 'orange.50',
253
+ },
254
+ },
255
+ },
256
+ staticCss: ['*']
257
+ })
258
+
259
+ const yearItemRecipe = defineRecipe({
260
+ className: 'yearItem',
261
+ jsx: ['YearItem', 'year-item'],
262
+ base: {
263
+ width: 'full',
264
+ height: '36px',
265
+ display: 'flex',
266
+ flexDirection: 'column',
267
+ justifyContent: 'center',
268
+ alignItems: 'center',
269
+ flexShrink: 0,
270
+ borderWidth: '1px',
271
+ borderColor: 'transparent',
272
+ cursor: 'pointer',
273
+ _disabled: {
274
+ color: 'gray.400',
275
+ cursor: 'not-allowed',
276
+ borderColor: 'transparent',
277
+ backgroundColor: 'transparent'
278
+ }
279
+ },
280
+ variants: {
281
+ status: {
282
+ disabled: {},
283
+ default: {
284
+ rounded: 'sm',
285
+ _hover: {
286
+ borderColor: 'gray.50',
287
+ background: 'gray.50'
288
+ },
289
+ _focus: {
290
+ borderColor: 'blue.400',
291
+ background: 'transparent',
292
+ shadow: 'outer'
293
+ }
294
+ },
295
+ selected: {
296
+ rounded: 'sm',
297
+ borderColor: 'blue.400',
298
+ backgroundColor: 'blue.400',
299
+ color: 'white'
300
+ },
301
+ range: {
302
+ borderColor: 'ice.50',
303
+ backgroundColor: 'ice.50'
304
+ },
305
+ today: {
306
+ rounded: 'sm',
307
+ borderColor: 'orange.50',
308
+ backgroundColor: 'orange.50',
309
+ },
310
+ },
311
+ },
312
+ staticCss: ['*']
313
+ })
314
+
315
+ export {
316
+ datePickerSlotRecipe, calendarPanelRangeRecipe,
317
+ tableDateSlotRecipe, tableMonthSlotRecipe, tableYearSlotRecipe,
318
+ dayItemRecipe , dateItemRecipe, monthItemRecipe, yearItemRecipe,
319
+ pinbarSlotRecipe
320
+ }
@@ -28,6 +28,19 @@ import { segmentedControlSlotRecipe } from './segmented-control'
28
28
  import { toastSlotRecipe } from './toast'
29
29
  import { broadcastSlotRecipe } from './broadcast'
30
30
  import { richTextEditorSlotRecipe, RTEStyleProviderRecipe } from './rich-text-editor'
31
+ import {
32
+ datePickerSlotRecipe,
33
+ calendarPanelRangeRecipe,
34
+ tableDateSlotRecipe,
35
+ tableMonthSlotRecipe,
36
+ tableYearSlotRecipe,
37
+ dayItemRecipe,
38
+ dateItemRecipe,
39
+ monthItemRecipe,
40
+ yearItemRecipe,
41
+ pinbarSlotRecipe
42
+ } from './date-picker'
43
+ import { carouselSlotRecipe } from './carousel'
31
44
 
32
45
  import {
33
46
  bannerSlotRecipe,
@@ -60,7 +73,12 @@ export const recipes = {
60
73
  bannerDescriptionRecipe,
61
74
  bannerLinkRecipe,
62
75
  bannerCloseButtonRecipe,
63
- RTEStyleProviderRecipe
76
+ RTEStyleProviderRecipe,
77
+ calendarPanelRangeRecipe,
78
+ dayItemRecipe,
79
+ dateItemRecipe,
80
+ monthItemRecipe,
81
+ yearItemRecipe
64
82
  }
65
83
 
66
84
  export const slotRecipes = {
@@ -88,5 +106,11 @@ export const slotRecipes = {
88
106
  segmentedControlSlotRecipe,
89
107
  toastSlotRecipe,
90
108
  broadcastSlotRecipe,
91
- richTextEditorSlotRecipe
109
+ richTextEditorSlotRecipe,
110
+ datePickerSlotRecipe,
111
+ tableDateSlotRecipe,
112
+ tableMonthSlotRecipe,
113
+ tableYearSlotRecipe,
114
+ pinbarSlotRecipe,
115
+ carouselSlotRecipe
92
116
  }