@mekari/pixel3-theme 0.0.10-dev.0 → 0.0.11-dev.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 +90 -9
- package/dist/index.mjs +90 -9
- package/dist/recipes/date-picker.d.mts +2 -1
- package/dist/recipes/date-picker.d.ts +2 -1
- package/dist/recipes/index.d.mts +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/recipes/date-picker.ts +108 -20
- package/src/recipes/index.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -3009,13 +3009,25 @@ var datePickerSlotRecipe = (0, import_dev33.defineSlotRecipe)({
|
|
|
3009
3009
|
jsx: ["MpDatePicker", "mp-date-picker"],
|
|
3010
3010
|
slots: ["root", "popoverContent"],
|
|
3011
3011
|
base: {
|
|
3012
|
-
|
|
3012
|
+
root: {
|
|
3013
3013
|
width: "100%",
|
|
3014
3014
|
position: "relative"
|
|
3015
3015
|
},
|
|
3016
|
-
popoverContent: {
|
|
3017
|
-
|
|
3018
|
-
|
|
3016
|
+
popoverContent: {}
|
|
3017
|
+
},
|
|
3018
|
+
variants: {
|
|
3019
|
+
variant: {
|
|
3020
|
+
date: {
|
|
3021
|
+
popoverContent: {
|
|
3022
|
+
minWidth: "280px",
|
|
3023
|
+
padding: 4
|
|
3024
|
+
}
|
|
3025
|
+
},
|
|
3026
|
+
time: {
|
|
3027
|
+
popoverContent: {
|
|
3028
|
+
px: "2px"
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3019
3031
|
}
|
|
3020
3032
|
}
|
|
3021
3033
|
});
|
|
@@ -3029,14 +3041,26 @@ var calendarPanelRangeRecipe = (0, import_dev33.defineRecipe)({
|
|
|
3029
3041
|
var tableDateSlotRecipe = (0, import_dev33.defineSlotRecipe)({
|
|
3030
3042
|
className: "tableDate",
|
|
3031
3043
|
jsx: ["TableDate", "table-date"],
|
|
3032
|
-
slots: [
|
|
3044
|
+
slots: [
|
|
3045
|
+
"headerRoot",
|
|
3046
|
+
"headerLabel",
|
|
3047
|
+
"dayWrapper",
|
|
3048
|
+
"dateItemRoot",
|
|
3049
|
+
"dateItemWrapper",
|
|
3050
|
+
"shortcutLabelWrapper"
|
|
3051
|
+
],
|
|
3033
3052
|
base: {
|
|
3034
3053
|
headerRoot: { display: "flex", justifyContent: "space-between", alignItems: "center" },
|
|
3035
3054
|
headerLabel: { cursor: "pointer", fontWeight: "semiBold" },
|
|
3036
3055
|
dayWrapper: { display: "flex", marginTop: 3 },
|
|
3037
3056
|
dateItemRoot: { display: "flex", flexDirection: "column", gap: 1, marginTop: "1.5" },
|
|
3038
3057
|
dateItemWrapper: { display: "flex" },
|
|
3039
|
-
shortcutLabelWrapper: {
|
|
3058
|
+
shortcutLabelWrapper: {
|
|
3059
|
+
display: "flex",
|
|
3060
|
+
justifyContent: "center",
|
|
3061
|
+
alignItems: "center",
|
|
3062
|
+
marginTop: 3
|
|
3063
|
+
}
|
|
3040
3064
|
}
|
|
3041
3065
|
});
|
|
3042
3066
|
var tableMonthSlotRecipe = (0, import_dev33.defineSlotRecipe)({
|
|
@@ -3048,7 +3072,12 @@ var tableMonthSlotRecipe = (0, import_dev33.defineSlotRecipe)({
|
|
|
3048
3072
|
headerLabel: { cursor: "pointer", fontWeight: "semiBold" },
|
|
3049
3073
|
monthItemRoot: { display: "flex", flexDirection: "column", gap: 1, marginTop: "3" },
|
|
3050
3074
|
monthItemWrapper: { display: "grid", gridTemplateColumns: "3" },
|
|
3051
|
-
shortcutLabelWrapper: {
|
|
3075
|
+
shortcutLabelWrapper: {
|
|
3076
|
+
display: "flex",
|
|
3077
|
+
justifyContent: "center",
|
|
3078
|
+
alignItems: "center",
|
|
3079
|
+
marginTop: 3
|
|
3080
|
+
}
|
|
3052
3081
|
}
|
|
3053
3082
|
});
|
|
3054
3083
|
var tableYearSlotRecipe = (0, import_dev33.defineSlotRecipe)({
|
|
@@ -3060,7 +3089,12 @@ var tableYearSlotRecipe = (0, import_dev33.defineSlotRecipe)({
|
|
|
3060
3089
|
headerLabel: { fontWeight: "semiBold" },
|
|
3061
3090
|
yearItemRoot: { display: "flex", flexDirection: "column", gap: 1, marginTop: "3" },
|
|
3062
3091
|
yearItemWrapper: { display: "grid", gridTemplateColumns: "4" },
|
|
3063
|
-
shortcutLabelWrapper: {
|
|
3092
|
+
shortcutLabelWrapper: {
|
|
3093
|
+
display: "flex",
|
|
3094
|
+
justifyContent: "center",
|
|
3095
|
+
alignItems: "center",
|
|
3096
|
+
marginTop: 3
|
|
3097
|
+
}
|
|
3064
3098
|
}
|
|
3065
3099
|
});
|
|
3066
3100
|
var dayItemRecipe = (0, import_dev33.defineRecipe)({
|
|
@@ -3304,6 +3338,52 @@ var yearItemRecipe = (0, import_dev33.defineRecipe)({
|
|
|
3304
3338
|
},
|
|
3305
3339
|
staticCss: ["*"]
|
|
3306
3340
|
});
|
|
3341
|
+
var timeItemRecipe = (0, import_dev33.defineRecipe)({
|
|
3342
|
+
className: "timeItem",
|
|
3343
|
+
jsx: ["TimeItem", "time-item"],
|
|
3344
|
+
base: {
|
|
3345
|
+
width: "68px",
|
|
3346
|
+
height: "36px",
|
|
3347
|
+
display: "flex",
|
|
3348
|
+
flexDirection: "column",
|
|
3349
|
+
justifyContent: "center",
|
|
3350
|
+
alignItems: "center",
|
|
3351
|
+
flexShrink: 0,
|
|
3352
|
+
borderWidth: "1px",
|
|
3353
|
+
borderColor: "transparent",
|
|
3354
|
+
cursor: "pointer",
|
|
3355
|
+
_disabled: {
|
|
3356
|
+
color: "gray.400",
|
|
3357
|
+
cursor: "not-allowed",
|
|
3358
|
+
borderColor: "transparent",
|
|
3359
|
+
backgroundColor: "transparent"
|
|
3360
|
+
}
|
|
3361
|
+
},
|
|
3362
|
+
variants: {
|
|
3363
|
+
status: {
|
|
3364
|
+
disabled: {},
|
|
3365
|
+
default: {
|
|
3366
|
+
rounded: "sm",
|
|
3367
|
+
_hover: {
|
|
3368
|
+
borderColor: "gray.50",
|
|
3369
|
+
background: "gray.50"
|
|
3370
|
+
},
|
|
3371
|
+
_focus: {
|
|
3372
|
+
borderColor: "blue.400",
|
|
3373
|
+
background: "transparent",
|
|
3374
|
+
shadow: "outer"
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
selected: {
|
|
3378
|
+
rounded: "sm",
|
|
3379
|
+
borderColor: "blue.400",
|
|
3380
|
+
backgroundColor: "blue.400",
|
|
3381
|
+
color: "white"
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
},
|
|
3385
|
+
staticCss: ["*"]
|
|
3386
|
+
});
|
|
3307
3387
|
|
|
3308
3388
|
// src/recipes/carousel.ts
|
|
3309
3389
|
var import_dev34 = require("@pandacss/dev");
|
|
@@ -3613,7 +3693,8 @@ var recipes = {
|
|
|
3613
3693
|
dayItemRecipe,
|
|
3614
3694
|
dateItemRecipe,
|
|
3615
3695
|
monthItemRecipe,
|
|
3616
|
-
yearItemRecipe
|
|
3696
|
+
yearItemRecipe,
|
|
3697
|
+
timeItemRecipe
|
|
3617
3698
|
};
|
|
3618
3699
|
var slotRecipes = {
|
|
3619
3700
|
accordion,
|
package/dist/index.mjs
CHANGED
|
@@ -2983,13 +2983,25 @@ var datePickerSlotRecipe = defineSlotRecipe20({
|
|
|
2983
2983
|
jsx: ["MpDatePicker", "mp-date-picker"],
|
|
2984
2984
|
slots: ["root", "popoverContent"],
|
|
2985
2985
|
base: {
|
|
2986
|
-
|
|
2986
|
+
root: {
|
|
2987
2987
|
width: "100%",
|
|
2988
2988
|
position: "relative"
|
|
2989
2989
|
},
|
|
2990
|
-
popoverContent: {
|
|
2991
|
-
|
|
2992
|
-
|
|
2990
|
+
popoverContent: {}
|
|
2991
|
+
},
|
|
2992
|
+
variants: {
|
|
2993
|
+
variant: {
|
|
2994
|
+
date: {
|
|
2995
|
+
popoverContent: {
|
|
2996
|
+
minWidth: "280px",
|
|
2997
|
+
padding: 4
|
|
2998
|
+
}
|
|
2999
|
+
},
|
|
3000
|
+
time: {
|
|
3001
|
+
popoverContent: {
|
|
3002
|
+
px: "2px"
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
2993
3005
|
}
|
|
2994
3006
|
}
|
|
2995
3007
|
});
|
|
@@ -3003,14 +3015,26 @@ var calendarPanelRangeRecipe = defineRecipe13({
|
|
|
3003
3015
|
var tableDateSlotRecipe = defineSlotRecipe20({
|
|
3004
3016
|
className: "tableDate",
|
|
3005
3017
|
jsx: ["TableDate", "table-date"],
|
|
3006
|
-
slots: [
|
|
3018
|
+
slots: [
|
|
3019
|
+
"headerRoot",
|
|
3020
|
+
"headerLabel",
|
|
3021
|
+
"dayWrapper",
|
|
3022
|
+
"dateItemRoot",
|
|
3023
|
+
"dateItemWrapper",
|
|
3024
|
+
"shortcutLabelWrapper"
|
|
3025
|
+
],
|
|
3007
3026
|
base: {
|
|
3008
3027
|
headerRoot: { display: "flex", justifyContent: "space-between", alignItems: "center" },
|
|
3009
3028
|
headerLabel: { cursor: "pointer", fontWeight: "semiBold" },
|
|
3010
3029
|
dayWrapper: { display: "flex", marginTop: 3 },
|
|
3011
3030
|
dateItemRoot: { display: "flex", flexDirection: "column", gap: 1, marginTop: "1.5" },
|
|
3012
3031
|
dateItemWrapper: { display: "flex" },
|
|
3013
|
-
shortcutLabelWrapper: {
|
|
3032
|
+
shortcutLabelWrapper: {
|
|
3033
|
+
display: "flex",
|
|
3034
|
+
justifyContent: "center",
|
|
3035
|
+
alignItems: "center",
|
|
3036
|
+
marginTop: 3
|
|
3037
|
+
}
|
|
3014
3038
|
}
|
|
3015
3039
|
});
|
|
3016
3040
|
var tableMonthSlotRecipe = defineSlotRecipe20({
|
|
@@ -3022,7 +3046,12 @@ var tableMonthSlotRecipe = defineSlotRecipe20({
|
|
|
3022
3046
|
headerLabel: { cursor: "pointer", fontWeight: "semiBold" },
|
|
3023
3047
|
monthItemRoot: { display: "flex", flexDirection: "column", gap: 1, marginTop: "3" },
|
|
3024
3048
|
monthItemWrapper: { display: "grid", gridTemplateColumns: "3" },
|
|
3025
|
-
shortcutLabelWrapper: {
|
|
3049
|
+
shortcutLabelWrapper: {
|
|
3050
|
+
display: "flex",
|
|
3051
|
+
justifyContent: "center",
|
|
3052
|
+
alignItems: "center",
|
|
3053
|
+
marginTop: 3
|
|
3054
|
+
}
|
|
3026
3055
|
}
|
|
3027
3056
|
});
|
|
3028
3057
|
var tableYearSlotRecipe = defineSlotRecipe20({
|
|
@@ -3034,7 +3063,12 @@ var tableYearSlotRecipe = defineSlotRecipe20({
|
|
|
3034
3063
|
headerLabel: { fontWeight: "semiBold" },
|
|
3035
3064
|
yearItemRoot: { display: "flex", flexDirection: "column", gap: 1, marginTop: "3" },
|
|
3036
3065
|
yearItemWrapper: { display: "grid", gridTemplateColumns: "4" },
|
|
3037
|
-
shortcutLabelWrapper: {
|
|
3066
|
+
shortcutLabelWrapper: {
|
|
3067
|
+
display: "flex",
|
|
3068
|
+
justifyContent: "center",
|
|
3069
|
+
alignItems: "center",
|
|
3070
|
+
marginTop: 3
|
|
3071
|
+
}
|
|
3038
3072
|
}
|
|
3039
3073
|
});
|
|
3040
3074
|
var dayItemRecipe = defineRecipe13({
|
|
@@ -3278,6 +3312,52 @@ var yearItemRecipe = defineRecipe13({
|
|
|
3278
3312
|
},
|
|
3279
3313
|
staticCss: ["*"]
|
|
3280
3314
|
});
|
|
3315
|
+
var timeItemRecipe = defineRecipe13({
|
|
3316
|
+
className: "timeItem",
|
|
3317
|
+
jsx: ["TimeItem", "time-item"],
|
|
3318
|
+
base: {
|
|
3319
|
+
width: "68px",
|
|
3320
|
+
height: "36px",
|
|
3321
|
+
display: "flex",
|
|
3322
|
+
flexDirection: "column",
|
|
3323
|
+
justifyContent: "center",
|
|
3324
|
+
alignItems: "center",
|
|
3325
|
+
flexShrink: 0,
|
|
3326
|
+
borderWidth: "1px",
|
|
3327
|
+
borderColor: "transparent",
|
|
3328
|
+
cursor: "pointer",
|
|
3329
|
+
_disabled: {
|
|
3330
|
+
color: "gray.400",
|
|
3331
|
+
cursor: "not-allowed",
|
|
3332
|
+
borderColor: "transparent",
|
|
3333
|
+
backgroundColor: "transparent"
|
|
3334
|
+
}
|
|
3335
|
+
},
|
|
3336
|
+
variants: {
|
|
3337
|
+
status: {
|
|
3338
|
+
disabled: {},
|
|
3339
|
+
default: {
|
|
3340
|
+
rounded: "sm",
|
|
3341
|
+
_hover: {
|
|
3342
|
+
borderColor: "gray.50",
|
|
3343
|
+
background: "gray.50"
|
|
3344
|
+
},
|
|
3345
|
+
_focus: {
|
|
3346
|
+
borderColor: "blue.400",
|
|
3347
|
+
background: "transparent",
|
|
3348
|
+
shadow: "outer"
|
|
3349
|
+
}
|
|
3350
|
+
},
|
|
3351
|
+
selected: {
|
|
3352
|
+
rounded: "sm",
|
|
3353
|
+
borderColor: "blue.400",
|
|
3354
|
+
backgroundColor: "blue.400",
|
|
3355
|
+
color: "white"
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
staticCss: ["*"]
|
|
3360
|
+
});
|
|
3281
3361
|
|
|
3282
3362
|
// src/recipes/carousel.ts
|
|
3283
3363
|
import { defineSlotRecipe as defineSlotRecipe21 } from "@pandacss/dev";
|
|
@@ -3587,7 +3667,8 @@ var recipes = {
|
|
|
3587
3667
|
dayItemRecipe,
|
|
3588
3668
|
dateItemRecipe,
|
|
3589
3669
|
monthItemRecipe,
|
|
3590
|
-
yearItemRecipe
|
|
3670
|
+
yearItemRecipe,
|
|
3671
|
+
timeItemRecipe
|
|
3591
3672
|
};
|
|
3592
3673
|
var slotRecipes = {
|
|
3593
3674
|
accordion,
|
|
@@ -10,5 +10,6 @@ declare const dateItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVar
|
|
|
10
10
|
declare const pinbarSlotRecipe: _pandacss_dev.SlotRecipeConfig;
|
|
11
11
|
declare const monthItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
12
12
|
declare const yearItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
13
|
+
declare const timeItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
13
14
|
|
|
14
|
-
export { calendarPanelRangeRecipe, dateItemRecipe, datePickerSlotRecipe, dayItemRecipe, monthItemRecipe, pinbarSlotRecipe, tableDateSlotRecipe, tableMonthSlotRecipe, tableYearSlotRecipe, yearItemRecipe };
|
|
15
|
+
export { calendarPanelRangeRecipe, dateItemRecipe, datePickerSlotRecipe, dayItemRecipe, monthItemRecipe, pinbarSlotRecipe, tableDateSlotRecipe, tableMonthSlotRecipe, tableYearSlotRecipe, timeItemRecipe, yearItemRecipe };
|
|
@@ -10,5 +10,6 @@ declare const dateItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVar
|
|
|
10
10
|
declare const pinbarSlotRecipe: _pandacss_dev.SlotRecipeConfig;
|
|
11
11
|
declare const monthItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
12
12
|
declare const yearItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
13
|
+
declare const timeItemRecipe: _pandacss_dev.RecipeConfig<_pandacss_dev.RecipeVariantRecord>;
|
|
13
14
|
|
|
14
|
-
export { calendarPanelRangeRecipe, dateItemRecipe, datePickerSlotRecipe, dayItemRecipe, monthItemRecipe, pinbarSlotRecipe, tableDateSlotRecipe, tableMonthSlotRecipe, tableYearSlotRecipe, yearItemRecipe };
|
|
15
|
+
export { calendarPanelRangeRecipe, dateItemRecipe, datePickerSlotRecipe, dayItemRecipe, monthItemRecipe, pinbarSlotRecipe, tableDateSlotRecipe, tableMonthSlotRecipe, tableYearSlotRecipe, timeItemRecipe, yearItemRecipe };
|
package/dist/recipes/index.d.mts
CHANGED
|
@@ -28,6 +28,7 @@ declare const recipes: {
|
|
|
28
28
|
dateItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
29
29
|
monthItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
30
30
|
yearItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
31
|
+
timeItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
31
32
|
};
|
|
32
33
|
declare const slotRecipes: {
|
|
33
34
|
accordion: _pandacss_types.SlotRecipeConfig;
|
package/dist/recipes/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare const recipes: {
|
|
|
28
28
|
dateItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
29
29
|
monthItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
30
30
|
yearItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
31
|
+
timeItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
31
32
|
};
|
|
32
33
|
declare const slotRecipes: {
|
|
33
34
|
accordion: _pandacss_types.SlotRecipeConfig;
|
package/package.json
CHANGED
|
@@ -5,13 +5,25 @@ const datePickerSlotRecipe = defineSlotRecipe({
|
|
|
5
5
|
jsx: ['MpDatePicker', 'mp-date-picker'],
|
|
6
6
|
slots: ['root', 'popoverContent'],
|
|
7
7
|
base: {
|
|
8
|
-
|
|
8
|
+
root: {
|
|
9
9
|
width: '100%',
|
|
10
10
|
position: 'relative'
|
|
11
11
|
},
|
|
12
|
-
popoverContent: {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
popoverContent: {}
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
date: {
|
|
17
|
+
popoverContent: {
|
|
18
|
+
minWidth: '280px',
|
|
19
|
+
padding: 4
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
time: {
|
|
23
|
+
popoverContent: {
|
|
24
|
+
px: '2px'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
15
27
|
}
|
|
16
28
|
}
|
|
17
29
|
})
|
|
@@ -27,14 +39,26 @@ const calendarPanelRangeRecipe = defineRecipe({
|
|
|
27
39
|
const tableDateSlotRecipe = defineSlotRecipe({
|
|
28
40
|
className: 'tableDate',
|
|
29
41
|
jsx: ['TableDate', 'table-date'],
|
|
30
|
-
slots: [
|
|
42
|
+
slots: [
|
|
43
|
+
'headerRoot',
|
|
44
|
+
'headerLabel',
|
|
45
|
+
'dayWrapper',
|
|
46
|
+
'dateItemRoot',
|
|
47
|
+
'dateItemWrapper',
|
|
48
|
+
'shortcutLabelWrapper'
|
|
49
|
+
],
|
|
31
50
|
base: {
|
|
32
51
|
headerRoot: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' },
|
|
33
52
|
headerLabel: { cursor: 'pointer', fontWeight: 'semiBold' },
|
|
34
53
|
dayWrapper: { display: 'flex', marginTop: 3 },
|
|
35
54
|
dateItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '1.5' },
|
|
36
55
|
dateItemWrapper: { display: 'flex' },
|
|
37
|
-
shortcutLabelWrapper: {
|
|
56
|
+
shortcutLabelWrapper: {
|
|
57
|
+
display: 'flex',
|
|
58
|
+
justifyContent: 'center',
|
|
59
|
+
alignItems: 'center',
|
|
60
|
+
marginTop: 3
|
|
61
|
+
}
|
|
38
62
|
}
|
|
39
63
|
})
|
|
40
64
|
|
|
@@ -47,7 +71,12 @@ const tableMonthSlotRecipe = defineSlotRecipe({
|
|
|
47
71
|
headerLabel: { cursor: 'pointer', fontWeight: 'semiBold' },
|
|
48
72
|
monthItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '3' },
|
|
49
73
|
monthItemWrapper: { display: 'grid', gridTemplateColumns: '3' },
|
|
50
|
-
shortcutLabelWrapper: {
|
|
74
|
+
shortcutLabelWrapper: {
|
|
75
|
+
display: 'flex',
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
marginTop: 3
|
|
79
|
+
}
|
|
51
80
|
}
|
|
52
81
|
})
|
|
53
82
|
|
|
@@ -60,7 +89,12 @@ const tableYearSlotRecipe = defineSlotRecipe({
|
|
|
60
89
|
headerLabel: { fontWeight: 'semiBold' },
|
|
61
90
|
yearItemRoot: { display: 'flex', flexDirection: 'column', gap: 1, marginTop: '3' },
|
|
62
91
|
yearItemWrapper: { display: 'grid', gridTemplateColumns: '4' },
|
|
63
|
-
shortcutLabelWrapper: {
|
|
92
|
+
shortcutLabelWrapper: {
|
|
93
|
+
display: 'flex',
|
|
94
|
+
justifyContent: 'center',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
marginTop: 3
|
|
97
|
+
}
|
|
64
98
|
}
|
|
65
99
|
})
|
|
66
100
|
|
|
@@ -135,7 +169,7 @@ const dateItemRecipe = defineRecipe({
|
|
|
135
169
|
today: {
|
|
136
170
|
rounded: 'sm',
|
|
137
171
|
borderColor: 'orange.50',
|
|
138
|
-
backgroundColor: 'orange.50'
|
|
172
|
+
backgroundColor: 'orange.50'
|
|
139
173
|
},
|
|
140
174
|
notThisMonth: {
|
|
141
175
|
color: 'gray.600'
|
|
@@ -173,7 +207,7 @@ const dateItemRecipe = defineRecipe({
|
|
|
173
207
|
borderColor: 'blue.400',
|
|
174
208
|
background: 'blue.400',
|
|
175
209
|
color: 'white'
|
|
176
|
-
}
|
|
210
|
+
}
|
|
177
211
|
}
|
|
178
212
|
},
|
|
179
213
|
staticCss: ['*']
|
|
@@ -188,7 +222,7 @@ const pinbarSlotRecipe = defineSlotRecipe({
|
|
|
188
222
|
bottom: 0,
|
|
189
223
|
height: 1,
|
|
190
224
|
display: 'flex',
|
|
191
|
-
justifyContent: 'center'
|
|
225
|
+
justifyContent: 'center'
|
|
192
226
|
},
|
|
193
227
|
pinbar: {
|
|
194
228
|
width: 6,
|
|
@@ -248,9 +282,9 @@ const monthItemRecipe = defineRecipe({
|
|
|
248
282
|
today: {
|
|
249
283
|
rounded: 'sm',
|
|
250
284
|
borderColor: 'orange.50',
|
|
251
|
-
backgroundColor: 'orange.50'
|
|
252
|
-
}
|
|
253
|
-
}
|
|
285
|
+
backgroundColor: 'orange.50'
|
|
286
|
+
}
|
|
287
|
+
}
|
|
254
288
|
},
|
|
255
289
|
staticCss: ['*']
|
|
256
290
|
})
|
|
@@ -304,16 +338,70 @@ const yearItemRecipe = defineRecipe({
|
|
|
304
338
|
today: {
|
|
305
339
|
rounded: 'sm',
|
|
306
340
|
borderColor: 'orange.50',
|
|
307
|
-
backgroundColor: 'orange.50'
|
|
341
|
+
backgroundColor: 'orange.50'
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
staticCss: ['*']
|
|
346
|
+
})
|
|
347
|
+
|
|
348
|
+
const timeItemRecipe = defineRecipe({
|
|
349
|
+
className: 'timeItem',
|
|
350
|
+
jsx: ['TimeItem', 'time-item'],
|
|
351
|
+
base: {
|
|
352
|
+
width: '68px',
|
|
353
|
+
height: '36px',
|
|
354
|
+
display: 'flex',
|
|
355
|
+
flexDirection: 'column',
|
|
356
|
+
justifyContent: 'center',
|
|
357
|
+
alignItems: 'center',
|
|
358
|
+
flexShrink: 0,
|
|
359
|
+
borderWidth: '1px',
|
|
360
|
+
borderColor: 'transparent',
|
|
361
|
+
cursor: 'pointer',
|
|
362
|
+
_disabled: {
|
|
363
|
+
color: 'gray.400',
|
|
364
|
+
cursor: 'not-allowed',
|
|
365
|
+
borderColor: 'transparent',
|
|
366
|
+
backgroundColor: 'transparent'
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
variants: {
|
|
370
|
+
status: {
|
|
371
|
+
disabled: {},
|
|
372
|
+
default: {
|
|
373
|
+
rounded: 'sm',
|
|
374
|
+
_hover: {
|
|
375
|
+
borderColor: 'gray.50',
|
|
376
|
+
background: 'gray.50'
|
|
377
|
+
},
|
|
378
|
+
_focus: {
|
|
379
|
+
borderColor: 'blue.400',
|
|
380
|
+
background: 'transparent',
|
|
381
|
+
shadow: 'outer'
|
|
382
|
+
}
|
|
308
383
|
},
|
|
309
|
-
|
|
384
|
+
selected: {
|
|
385
|
+
rounded: 'sm',
|
|
386
|
+
borderColor: 'blue.400',
|
|
387
|
+
backgroundColor: 'blue.400',
|
|
388
|
+
color: 'white'
|
|
389
|
+
}
|
|
390
|
+
}
|
|
310
391
|
},
|
|
311
392
|
staticCss: ['*']
|
|
312
393
|
})
|
|
313
394
|
|
|
314
|
-
export {
|
|
315
|
-
datePickerSlotRecipe,
|
|
316
|
-
|
|
317
|
-
|
|
395
|
+
export {
|
|
396
|
+
datePickerSlotRecipe,
|
|
397
|
+
calendarPanelRangeRecipe,
|
|
398
|
+
tableDateSlotRecipe,
|
|
399
|
+
tableMonthSlotRecipe,
|
|
400
|
+
tableYearSlotRecipe,
|
|
401
|
+
dayItemRecipe,
|
|
402
|
+
dateItemRecipe,
|
|
403
|
+
monthItemRecipe,
|
|
404
|
+
yearItemRecipe,
|
|
405
|
+
timeItemRecipe,
|
|
318
406
|
pinbarSlotRecipe
|
|
319
407
|
}
|
package/src/recipes/index.ts
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
dateItemRecipe,
|
|
39
39
|
monthItemRecipe,
|
|
40
40
|
yearItemRecipe,
|
|
41
|
+
timeItemRecipe,
|
|
41
42
|
pinbarSlotRecipe
|
|
42
43
|
} from './date-picker'
|
|
43
44
|
import { carouselSlotRecipe } from './carousel'
|
|
@@ -79,7 +80,8 @@ export const recipes = {
|
|
|
79
80
|
dayItemRecipe,
|
|
80
81
|
dateItemRecipe,
|
|
81
82
|
monthItemRecipe,
|
|
82
|
-
yearItemRecipe
|
|
83
|
+
yearItemRecipe,
|
|
84
|
+
timeItemRecipe
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
export const slotRecipes = {
|