@mekari/pixel3-date-picker 0.0.1-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.
Files changed (103) hide show
  1. package/dist/calendar-panel.d.mts +231 -0
  2. package/dist/calendar-panel.d.ts +231 -0
  3. package/dist/calendar-panel.js +1498 -0
  4. package/dist/calendar-panel.mjs +25 -0
  5. package/dist/chunk-26Y3AVJW.mjs +115 -0
  6. package/dist/chunk-3VROFGJH.mjs +34 -0
  7. package/dist/chunk-3YYRUEIF.mjs +257 -0
  8. package/dist/chunk-5PISTT2K.mjs +131 -0
  9. package/dist/chunk-AGAA7XTC.mjs +20 -0
  10. package/dist/chunk-EJCSF5VR.mjs +492 -0
  11. package/dist/chunk-EQWT6VDG.mjs +34 -0
  12. package/dist/chunk-FTR7OMCT.mjs +0 -0
  13. package/dist/chunk-HJ4V3PM6.mjs +125 -0
  14. package/dist/chunk-J5BK7Z2U.mjs +46 -0
  15. package/dist/chunk-JZ2KFYWF.mjs +127 -0
  16. package/dist/chunk-LVCRFE25.mjs +153 -0
  17. package/dist/chunk-NIUQXHGQ.mjs +56 -0
  18. package/dist/chunk-NVULZQVI.mjs +119 -0
  19. package/dist/chunk-OY5PVQH5.mjs +31 -0
  20. package/dist/chunk-Q3Z5ZITX.mjs +155 -0
  21. package/dist/chunk-QZ7VFGWC.mjs +6 -0
  22. package/dist/chunk-V36XV4LV.mjs +129 -0
  23. package/dist/chunk-V6D6W7RO.mjs +0 -0
  24. package/dist/chunk-VACMCDOZ.mjs +8 -0
  25. package/dist/components/calendar/index.d.mts +11 -0
  26. package/dist/components/calendar/index.d.ts +11 -0
  27. package/dist/components/calendar/index.js +548 -0
  28. package/dist/components/calendar/index.mjs +23 -0
  29. package/dist/components/calendar/table-date.d.mts +97 -0
  30. package/dist/components/calendar/table-date.d.ts +97 -0
  31. package/dist/components/calendar/table-date.js +305 -0
  32. package/dist/components/calendar/table-date.mjs +13 -0
  33. package/dist/components/calendar/table-month.d.mts +90 -0
  34. package/dist/components/calendar/table-month.d.ts +90 -0
  35. package/dist/components/calendar/table-month.js +294 -0
  36. package/dist/components/calendar/table-month.mjs +14 -0
  37. package/dist/components/calendar/table-year.d.mts +71 -0
  38. package/dist/components/calendar/table-year.d.ts +71 -0
  39. package/dist/components/calendar/table-year.js +288 -0
  40. package/dist/components/calendar/table-year.mjs +14 -0
  41. package/dist/components/parts/date.d.mts +38 -0
  42. package/dist/components/parts/date.d.ts +38 -0
  43. package/dist/components/parts/date.js +70 -0
  44. package/dist/components/parts/date.mjs +7 -0
  45. package/dist/components/parts/day.d.mts +6 -0
  46. package/dist/components/parts/day.d.ts +6 -0
  47. package/dist/components/parts/day.js +44 -0
  48. package/dist/components/parts/day.mjs +7 -0
  49. package/dist/components/parts/index.d.mts +9 -0
  50. package/dist/components/parts/index.d.ts +9 -0
  51. package/dist/components/parts/index.js +157 -0
  52. package/dist/components/parts/index.mjs +20 -0
  53. package/dist/components/parts/month.d.mts +29 -0
  54. package/dist/components/parts/month.d.ts +29 -0
  55. package/dist/components/parts/month.js +58 -0
  56. package/dist/components/parts/month.mjs +7 -0
  57. package/dist/components/parts/year.d.mts +29 -0
  58. package/dist/components/parts/year.d.ts +29 -0
  59. package/dist/components/parts/year.js +58 -0
  60. package/dist/components/parts/year.mjs +7 -0
  61. package/dist/composables/useCalendar.d.mts +90 -0
  62. package/dist/composables/useCalendar.d.ts +90 -0
  63. package/dist/composables/useCalendar.js +184 -0
  64. package/dist/composables/useCalendar.mjs +8 -0
  65. package/dist/composables/useCalendarRange.d.mts +277 -0
  66. package/dist/composables/useCalendarRange.d.ts +277 -0
  67. package/dist/composables/useCalendarRange.js +160 -0
  68. package/dist/composables/useCalendarRange.mjs +8 -0
  69. package/dist/date-picker.d.mts +237 -0
  70. package/dist/date-picker.d.ts +237 -0
  71. package/dist/date-picker.js +1851 -0
  72. package/dist/date-picker.mjs +25 -0
  73. package/dist/index.d.mts +3 -0
  74. package/dist/index.d.ts +3 -0
  75. package/dist/index.js +1853 -0
  76. package/dist/index.mjs +25 -0
  77. package/dist/metafile-cjs.json +1 -0
  78. package/dist/metafile-esm.json +1 -0
  79. package/dist/modules/date-picker.context.d.mts +20 -0
  80. package/dist/modules/date-picker.context.d.ts +20 -0
  81. package/dist/modules/date-picker.context.js +33 -0
  82. package/dist/modules/date-picker.context.mjs +9 -0
  83. package/dist/modules/date-picker.hooks.d.mts +53 -0
  84. package/dist/modules/date-picker.hooks.d.ts +53 -0
  85. package/dist/modules/date-picker.hooks.js +337 -0
  86. package/dist/modules/date-picker.hooks.mjs +10 -0
  87. package/dist/modules/date-picker.locales.d.mts +27 -0
  88. package/dist/modules/date-picker.locales.d.ts +27 -0
  89. package/dist/modules/date-picker.locales.js +84 -0
  90. package/dist/modules/date-picker.locales.mjs +8 -0
  91. package/dist/modules/date-picker.props.d.mts +217 -0
  92. package/dist/modules/date-picker.props.d.ts +217 -0
  93. package/dist/modules/date-picker.props.js +181 -0
  94. package/dist/modules/date-picker.props.mjs +11 -0
  95. package/dist/utils/base.d.mts +20 -0
  96. package/dist/utils/base.d.ts +20 -0
  97. package/dist/utils/base.js +80 -0
  98. package/dist/utils/base.mjs +13 -0
  99. package/dist/utils/date.d.mts +19 -0
  100. package/dist/utils/date.d.ts +19 -0
  101. package/dist/utils/date.js +147 -0
  102. package/dist/utils/date.mjs +29 -0
  103. package/package.json +49 -0
@@ -0,0 +1,97 @@
1
+ import * as vue from 'vue';
2
+ import { PropType } from 'vue';
3
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
4
+ import { DateVariants } from '../parts/date.js';
5
+ import '@mekari/pixel3-styled-system/types';
6
+ import '@mekari/pixel3-styled-system/css';
7
+ import '@mekari/pixel3-styled-system/recipes';
8
+
9
+ declare const TableDate: vue.DefineComponent<{
10
+ days: {
11
+ type: PropType<string[]>;
12
+ default: () => never[];
13
+ };
14
+ dates: {
15
+ type: PropType<Date[]>;
16
+ default: () => never[];
17
+ };
18
+ headerLabel: {
19
+ type: PropType<string>;
20
+ default: string;
21
+ };
22
+ shortcutLabel: {
23
+ type: PropType<string>;
24
+ default: string;
25
+ };
26
+ getDateStatus: {
27
+ type: PropType<(date: Date) => {
28
+ status: DateVariants['status'];
29
+ isDisabled: boolean;
30
+ isShowPinbar: boolean;
31
+ }>;
32
+ default: () => void;
33
+ };
34
+ isShowShortcut: {
35
+ type: PropType<boolean>;
36
+ };
37
+ isRange: {
38
+ type: PropType<boolean>;
39
+ };
40
+ isHideNotThisMonthDate: {
41
+ type: PropType<boolean>;
42
+ };
43
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("mouseEnter" | "mouseLeave" | "changePanel" | "next" | "previous" | "select" | "clickHeaderLabel")[], "mouseEnter" | "mouseLeave" | "changePanel" | "next" | "previous" | "select" | "clickHeaderLabel", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
44
+ days: {
45
+ type: PropType<string[]>;
46
+ default: () => never[];
47
+ };
48
+ dates: {
49
+ type: PropType<Date[]>;
50
+ default: () => never[];
51
+ };
52
+ headerLabel: {
53
+ type: PropType<string>;
54
+ default: string;
55
+ };
56
+ shortcutLabel: {
57
+ type: PropType<string>;
58
+ default: string;
59
+ };
60
+ getDateStatus: {
61
+ type: PropType<(date: Date) => {
62
+ status: DateVariants['status'];
63
+ isDisabled: boolean;
64
+ isShowPinbar: boolean;
65
+ }>;
66
+ default: () => void;
67
+ };
68
+ isShowShortcut: {
69
+ type: PropType<boolean>;
70
+ };
71
+ isRange: {
72
+ type: PropType<boolean>;
73
+ };
74
+ isHideNotThisMonthDate: {
75
+ type: PropType<boolean>;
76
+ };
77
+ }>> & {
78
+ onMouseEnter?: ((...args: any[]) => any) | undefined;
79
+ onMouseLeave?: ((...args: any[]) => any) | undefined;
80
+ onChangePanel?: ((...args: any[]) => any) | undefined;
81
+ onNext?: ((...args: any[]) => any) | undefined;
82
+ onPrevious?: ((...args: any[]) => any) | undefined;
83
+ onSelect?: ((...args: any[]) => any) | undefined;
84
+ onClickHeaderLabel?: ((...args: any[]) => any) | undefined;
85
+ }, {
86
+ getDateStatus: (date: Date) => {
87
+ status: DateVariants['status'];
88
+ isDisabled: boolean;
89
+ isShowPinbar: boolean;
90
+ };
91
+ days: string[];
92
+ dates: Date[];
93
+ headerLabel: string;
94
+ shortcutLabel: string;
95
+ }, {}>;
96
+
97
+ export { TableDate };
@@ -0,0 +1,305 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/calendar/table-date.tsx
22
+ var table_date_exports = {};
23
+ __export(table_date_exports, {
24
+ TableDate: () => TableDate
25
+ });
26
+ module.exports = __toCommonJS(table_date_exports);
27
+ var import_vue9 = require("vue");
28
+ var import_vue10 = require("vue");
29
+ var import_pixel3_button = require("@mekari/pixel3-button");
30
+
31
+ // src/components/parts/date.tsx
32
+ var import_vue = require("vue");
33
+ var import_vue2 = require("vue");
34
+ var import_recipes = require("@mekari/pixel3-styled-system/recipes");
35
+ var Date2 = (0, import_vue2.defineComponent)({
36
+ name: "Date",
37
+ props: {
38
+ status: {
39
+ type: String
40
+ },
41
+ isDisabled: {
42
+ type: Boolean,
43
+ default: false
44
+ },
45
+ isShowPinbar: {
46
+ type: Boolean,
47
+ default: false
48
+ }
49
+ },
50
+ setup(props, {
51
+ slots
52
+ }) {
53
+ return () => {
54
+ const dateItemClasses = (0, import_recipes.dateItemRecipe)({
55
+ status: props.status
56
+ });
57
+ const {
58
+ root,
59
+ pinbar
60
+ } = (0, import_recipes.pinbarSlotRecipe)();
61
+ return (0, import_vue.createVNode)("button", {
62
+ "disabled": props.isDisabled,
63
+ "data-status": props.status,
64
+ "class": dateItemClasses
65
+ }, [slots.default(), props.isShowPinbar && (0, import_vue.createVNode)("div", {
66
+ "class": root
67
+ }, [(0, import_vue.createVNode)("div", {
68
+ "class": pinbar
69
+ }, null)])]);
70
+ };
71
+ }
72
+ });
73
+
74
+ // src/components/parts/day.tsx
75
+ var import_vue3 = require("vue");
76
+ var import_vue4 = require("vue");
77
+ var import_recipes2 = require("@mekari/pixel3-styled-system/recipes");
78
+ var Day = (0, import_vue4.defineComponent)({
79
+ name: "Day",
80
+ setup(props, {
81
+ slots
82
+ }) {
83
+ return () => {
84
+ return (0, import_vue3.createVNode)("div", {
85
+ "class": (0, import_recipes2.dayItemRecipe)()
86
+ }, [slots.default()]);
87
+ };
88
+ }
89
+ });
90
+
91
+ // src/components/parts/month.tsx
92
+ var import_vue5 = require("vue");
93
+ var import_vue6 = require("vue");
94
+ var import_recipes3 = require("@mekari/pixel3-styled-system/recipes");
95
+ var Month = (0, import_vue6.defineComponent)({
96
+ name: "Month",
97
+ props: {
98
+ status: {
99
+ type: String
100
+ },
101
+ isDisabled: {
102
+ type: Boolean,
103
+ default: false
104
+ }
105
+ },
106
+ setup(props, {
107
+ slots
108
+ }) {
109
+ return () => {
110
+ const classes = (0, import_recipes3.monthItemRecipe)({
111
+ status: props.status
112
+ });
113
+ return (0, import_vue5.createVNode)("button", {
114
+ "disabled": props.isDisabled,
115
+ "data-status": props.status,
116
+ "class": classes
117
+ }, [slots.default()]);
118
+ };
119
+ }
120
+ });
121
+
122
+ // src/components/parts/year.tsx
123
+ var import_vue7 = require("vue");
124
+ var import_vue8 = require("vue");
125
+ var import_recipes4 = require("@mekari/pixel3-styled-system/recipes");
126
+ var YearItem = (0, import_vue8.defineComponent)({
127
+ name: "YearItem",
128
+ props: {
129
+ status: {
130
+ type: String
131
+ },
132
+ isDisabled: {
133
+ type: Boolean,
134
+ default: false
135
+ }
136
+ },
137
+ setup(props, {
138
+ slots
139
+ }) {
140
+ return () => {
141
+ const classes = (0, import_recipes4.yearItemRecipe)({
142
+ status: props.status
143
+ });
144
+ return (0, import_vue7.createVNode)("button", {
145
+ "disabled": props.isDisabled,
146
+ "data-status": props.status,
147
+ "class": classes
148
+ }, [slots.default()]);
149
+ };
150
+ }
151
+ });
152
+
153
+ // src/utils/base.ts
154
+ function chunk(arr, size) {
155
+ if (!Array.isArray(arr)) {
156
+ return [];
157
+ }
158
+ const result = [];
159
+ const len = arr.length;
160
+ let i = 0;
161
+ size = size || len;
162
+ while (i < len) {
163
+ result.push(arr.slice(i, i += size));
164
+ }
165
+ return result;
166
+ }
167
+ __name(chunk, "chunk");
168
+
169
+ // src/components/calendar/table-date.tsx
170
+ var import_recipes5 = require("@mekari/pixel3-styled-system/recipes");
171
+ var TableDate = (0, import_vue10.defineComponent)({
172
+ name: "TableDate",
173
+ props: {
174
+ days: {
175
+ type: Array,
176
+ default: () => []
177
+ },
178
+ dates: {
179
+ type: Array,
180
+ default: () => []
181
+ },
182
+ headerLabel: {
183
+ type: String,
184
+ default: ""
185
+ },
186
+ shortcutLabel: {
187
+ type: String,
188
+ default: ""
189
+ },
190
+ getDateStatus: {
191
+ type: Function,
192
+ default: () => {
193
+ }
194
+ },
195
+ isShowShortcut: {
196
+ type: Boolean
197
+ },
198
+ isRange: {
199
+ type: Boolean
200
+ },
201
+ isHideNotThisMonthDate: {
202
+ type: Boolean
203
+ }
204
+ },
205
+ emits: ["next", "previous", "changePanel", "select", "clickHeaderLabel", "mouseEnter", "mouseLeave"],
206
+ setup(props, {
207
+ emit
208
+ }) {
209
+ const {
210
+ headerRoot,
211
+ headerLabel,
212
+ dayWrapper,
213
+ dateItemRoot,
214
+ dateItemWrapper,
215
+ shortcutLabelWrapper
216
+ } = (0, import_recipes5.tableDateSlotRecipe)();
217
+ const getDates = (0, import_vue10.computed)(() => {
218
+ return chunk(props.dates, 7);
219
+ });
220
+ function onNextButton() {
221
+ emit("next");
222
+ }
223
+ __name(onNextButton, "onNextButton");
224
+ function onPreviousButton() {
225
+ emit("previous");
226
+ }
227
+ __name(onPreviousButton, "onPreviousButton");
228
+ function onSelectDate(date) {
229
+ emit("select", date);
230
+ }
231
+ __name(onSelectDate, "onSelectDate");
232
+ function onSelectToday() {
233
+ const today = /* @__PURE__ */ new Date();
234
+ onSelectDate(today);
235
+ }
236
+ __name(onSelectToday, "onSelectToday");
237
+ function getDateAttrs(date) {
238
+ const {
239
+ status,
240
+ isDisabled,
241
+ isShowPinbar
242
+ } = props.getDateStatus(date);
243
+ return {
244
+ status: isDisabled ? "disabled" : status,
245
+ isDisabled,
246
+ isShowPinbar,
247
+ onClick: () => onSelectDate(date),
248
+ onMouseenter: () => {
249
+ emit("mouseEnter", date);
250
+ },
251
+ onMouseleave: () => {
252
+ emit("mouseLeave");
253
+ },
254
+ style: {
255
+ visibility: props.isHideNotThisMonthDate && status === "notThisMonth" ? "hidden" : ""
256
+ }
257
+ };
258
+ }
259
+ __name(getDateAttrs, "getDateAttrs");
260
+ return () => {
261
+ return (0, import_vue9.createVNode)("div", null, [(0, import_vue9.createVNode)("div", {
262
+ "data-pixel-parts": "Header",
263
+ "class": headerRoot
264
+ }, [(0, import_vue9.createVNode)(import_pixel3_button.MpButton, {
265
+ "left-icon": "chevrons-left",
266
+ "variant": "ghost",
267
+ "size": "sm",
268
+ "onClick": onPreviousButton
269
+ }, null), (0, import_vue9.createVNode)("button", {
270
+ "class": headerLabel,
271
+ "onClick": () => emit("clickHeaderLabel")
272
+ }, [props.headerLabel]), (0, import_vue9.createVNode)(import_pixel3_button.MpButton, {
273
+ "right-icon": "chevrons-right",
274
+ "variant": "ghost",
275
+ "size": "sm",
276
+ "onClick": onNextButton
277
+ }, null)]), (0, import_vue9.createVNode)("div", {
278
+ "data-pixel-parts": "Content",
279
+ "class": dayWrapper
280
+ }, [props.days.map((day) => (0, import_vue9.createVNode)(Day, null, {
281
+ default: () => [(0, import_vue9.createTextVNode)(" "), day, (0, import_vue9.createTextVNode)(" ")]
282
+ }))]), (0, import_vue9.createVNode)("div", {
283
+ "data-pixel-parts": "Content",
284
+ "class": dateItemRoot
285
+ }, [getDates.value.map((dates, index) => (0, import_vue9.createVNode)("div", {
286
+ "class": dateItemWrapper,
287
+ "data-row-index": index
288
+ }, [dates.map((date) => (0, import_vue9.createVNode)(Date2, getDateAttrs(date), {
289
+ default: () => [(0, import_vue9.createTextVNode)(" "), date.getDate(), (0, import_vue9.createTextVNode)(" ")]
290
+ }))]))]), props.isShowShortcut && (0, import_vue9.createVNode)("div", {
291
+ "data-pixel-parts": "Shortcut",
292
+ "class": shortcutLabelWrapper
293
+ }, [(0, import_vue9.createVNode)(import_pixel3_button.MpButton, {
294
+ "variant": "ghost",
295
+ "onClick": onSelectToday
296
+ }, {
297
+ default: () => [props.shortcutLabel]
298
+ })])]);
299
+ };
300
+ }
301
+ });
302
+ // Annotate the CommonJS export names for ESM import in node:
303
+ 0 && (module.exports = {
304
+ TableDate
305
+ });
@@ -0,0 +1,13 @@
1
+ import {
2
+ TableDate
3
+ } from "../../chunk-LVCRFE25.mjs";
4
+ import "../../chunk-FTR7OMCT.mjs";
5
+ import "../../chunk-AGAA7XTC.mjs";
6
+ import "../../chunk-3VROFGJH.mjs";
7
+ import "../../chunk-EQWT6VDG.mjs";
8
+ import "../../chunk-J5BK7Z2U.mjs";
9
+ import "../../chunk-NIUQXHGQ.mjs";
10
+ import "../../chunk-QZ7VFGWC.mjs";
11
+ export {
12
+ TableDate
13
+ };
@@ -0,0 +1,90 @@
1
+ import * as vue from 'vue';
2
+ import { PropType } from 'vue';
3
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
4
+ import { MonthVariants } from '../parts/month.mjs';
5
+ import '@mekari/pixel3-styled-system/types';
6
+ import '@mekari/pixel3-styled-system/css';
7
+ import '@mekari/pixel3-styled-system/recipes';
8
+
9
+ declare const TableMonth: vue.DefineComponent<{
10
+ calendar: {
11
+ type: DateConstructor;
12
+ default: () => Date;
13
+ };
14
+ months: {
15
+ type: PropType<{
16
+ text: string;
17
+ month: number;
18
+ }[]>;
19
+ default: () => never[];
20
+ };
21
+ headerLabel: {
22
+ type: PropType<string>;
23
+ default: string;
24
+ };
25
+ shortcutLabel: {
26
+ type: PropType<string>;
27
+ default: string;
28
+ };
29
+ getMonthStatus: {
30
+ type: PropType<(date: number, year: number) => {
31
+ status: MonthVariants['status'];
32
+ isDisabled: boolean;
33
+ }>;
34
+ default: () => void;
35
+ };
36
+ isShowShortcut: {
37
+ type: PropType<boolean>;
38
+ };
39
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("mouseEnter" | "mouseLeave" | "next" | "previous" | "select" | "clickHeaderLabel")[], "mouseEnter" | "mouseLeave" | "next" | "previous" | "select" | "clickHeaderLabel", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
40
+ calendar: {
41
+ type: DateConstructor;
42
+ default: () => Date;
43
+ };
44
+ months: {
45
+ type: PropType<{
46
+ text: string;
47
+ month: number;
48
+ }[]>;
49
+ default: () => never[];
50
+ };
51
+ headerLabel: {
52
+ type: PropType<string>;
53
+ default: string;
54
+ };
55
+ shortcutLabel: {
56
+ type: PropType<string>;
57
+ default: string;
58
+ };
59
+ getMonthStatus: {
60
+ type: PropType<(date: number, year: number) => {
61
+ status: MonthVariants['status'];
62
+ isDisabled: boolean;
63
+ }>;
64
+ default: () => void;
65
+ };
66
+ isShowShortcut: {
67
+ type: PropType<boolean>;
68
+ };
69
+ }>> & {
70
+ onMouseEnter?: ((...args: any[]) => any) | undefined;
71
+ onMouseLeave?: ((...args: any[]) => any) | undefined;
72
+ onNext?: ((...args: any[]) => any) | undefined;
73
+ onPrevious?: ((...args: any[]) => any) | undefined;
74
+ onSelect?: ((...args: any[]) => any) | undefined;
75
+ onClickHeaderLabel?: ((...args: any[]) => any) | undefined;
76
+ }, {
77
+ calendar: Date;
78
+ getMonthStatus: (date: number, year: number) => {
79
+ status: MonthVariants['status'];
80
+ isDisabled: boolean;
81
+ };
82
+ months: {
83
+ text: string;
84
+ month: number;
85
+ }[];
86
+ headerLabel: string;
87
+ shortcutLabel: string;
88
+ }, {}>;
89
+
90
+ export { TableMonth };
@@ -0,0 +1,90 @@
1
+ import * as vue from 'vue';
2
+ import { PropType } from 'vue';
3
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
4
+ import { MonthVariants } from '../parts/month.js';
5
+ import '@mekari/pixel3-styled-system/types';
6
+ import '@mekari/pixel3-styled-system/css';
7
+ import '@mekari/pixel3-styled-system/recipes';
8
+
9
+ declare const TableMonth: vue.DefineComponent<{
10
+ calendar: {
11
+ type: DateConstructor;
12
+ default: () => Date;
13
+ };
14
+ months: {
15
+ type: PropType<{
16
+ text: string;
17
+ month: number;
18
+ }[]>;
19
+ default: () => never[];
20
+ };
21
+ headerLabel: {
22
+ type: PropType<string>;
23
+ default: string;
24
+ };
25
+ shortcutLabel: {
26
+ type: PropType<string>;
27
+ default: string;
28
+ };
29
+ getMonthStatus: {
30
+ type: PropType<(date: number, year: number) => {
31
+ status: MonthVariants['status'];
32
+ isDisabled: boolean;
33
+ }>;
34
+ default: () => void;
35
+ };
36
+ isShowShortcut: {
37
+ type: PropType<boolean>;
38
+ };
39
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("mouseEnter" | "mouseLeave" | "next" | "previous" | "select" | "clickHeaderLabel")[], "mouseEnter" | "mouseLeave" | "next" | "previous" | "select" | "clickHeaderLabel", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
40
+ calendar: {
41
+ type: DateConstructor;
42
+ default: () => Date;
43
+ };
44
+ months: {
45
+ type: PropType<{
46
+ text: string;
47
+ month: number;
48
+ }[]>;
49
+ default: () => never[];
50
+ };
51
+ headerLabel: {
52
+ type: PropType<string>;
53
+ default: string;
54
+ };
55
+ shortcutLabel: {
56
+ type: PropType<string>;
57
+ default: string;
58
+ };
59
+ getMonthStatus: {
60
+ type: PropType<(date: number, year: number) => {
61
+ status: MonthVariants['status'];
62
+ isDisabled: boolean;
63
+ }>;
64
+ default: () => void;
65
+ };
66
+ isShowShortcut: {
67
+ type: PropType<boolean>;
68
+ };
69
+ }>> & {
70
+ onMouseEnter?: ((...args: any[]) => any) | undefined;
71
+ onMouseLeave?: ((...args: any[]) => any) | undefined;
72
+ onNext?: ((...args: any[]) => any) | undefined;
73
+ onPrevious?: ((...args: any[]) => any) | undefined;
74
+ onSelect?: ((...args: any[]) => any) | undefined;
75
+ onClickHeaderLabel?: ((...args: any[]) => any) | undefined;
76
+ }, {
77
+ calendar: Date;
78
+ getMonthStatus: (date: number, year: number) => {
79
+ status: MonthVariants['status'];
80
+ isDisabled: boolean;
81
+ };
82
+ months: {
83
+ text: string;
84
+ month: number;
85
+ }[];
86
+ headerLabel: string;
87
+ shortcutLabel: string;
88
+ }, {}>;
89
+
90
+ export { TableMonth };