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