@sytechui/calendar 2.2.32
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/LICENSE +21 -0
- package/README.md +24 -0
- package/dist/calendar-base.d.mts +23 -0
- package/dist/calendar-base.d.ts +23 -0
- package/dist/calendar-base.js +604 -0
- package/dist/calendar-base.mjs +17 -0
- package/dist/calendar-cell.d.mts +18 -0
- package/dist/calendar-cell.d.ts +18 -0
- package/dist/calendar-cell.js +97 -0
- package/dist/calendar-cell.mjs +7 -0
- package/dist/calendar-context.d.mts +19 -0
- package/dist/calendar-context.d.ts +19 -0
- package/dist/calendar-context.js +38 -0
- package/dist/calendar-context.mjs +9 -0
- package/dist/calendar-header.d.mts +14 -0
- package/dist/calendar-header.d.ts +14 -0
- package/dist/calendar-header.js +156 -0
- package/dist/calendar-header.mjs +10 -0
- package/dist/calendar-month.d.mts +13 -0
- package/dist/calendar-month.d.ts +13 -0
- package/dist/calendar-month.js +226 -0
- package/dist/calendar-month.mjs +10 -0
- package/dist/calendar-picker.d.mts +12 -0
- package/dist/calendar-picker.d.ts +12 -0
- package/dist/calendar-picker.js +83 -0
- package/dist/calendar-picker.mjs +9 -0
- package/dist/calendar-transitions.d.mts +10 -0
- package/dist/calendar-transitions.d.ts +10 -0
- package/dist/calendar-transitions.js +48 -0
- package/dist/calendar-transitions.mjs +9 -0
- package/dist/calendar.d.mts +24 -0
- package/dist/calendar.d.ts +24 -0
- package/dist/calendar.js +876 -0
- package/dist/calendar.mjs +20 -0
- package/dist/chevron-down.d.mts +6 -0
- package/dist/chevron-down.d.ts +6 -0
- package/dist/chevron-down.js +54 -0
- package/dist/chevron-down.mjs +7 -0
- package/dist/chevron-left.d.mts +6 -0
- package/dist/chevron-left.d.ts +6 -0
- package/dist/chevron-left.js +54 -0
- package/dist/chevron-left.mjs +7 -0
- package/dist/chevron-right.d.mts +6 -0
- package/dist/chevron-right.d.ts +6 -0
- package/dist/chevron-right.js +54 -0
- package/dist/chevron-right.mjs +7 -0
- package/dist/chunk-5CY7DCRB.mjs +24 -0
- package/dist/chunk-AJXW2JXW.mjs +23 -0
- package/dist/chunk-BEC3B3UO.mjs +23 -0
- package/dist/chunk-CPBF6DM2.mjs +120 -0
- package/dist/chunk-DN6I5LXB.mjs +125 -0
- package/dist/chunk-H34OUI62.mjs +157 -0
- package/dist/chunk-HUKPVIZ5.mjs +31 -0
- package/dist/chunk-IDU5RSFL.mjs +93 -0
- package/dist/chunk-IFK7FCNU.mjs +42 -0
- package/dist/chunk-JJRY4BYN.mjs +31 -0
- package/dist/chunk-JQFIYCMS.mjs +19 -0
- package/dist/chunk-MCZLP73P.mjs +14 -0
- package/dist/chunk-MDGP3JHC.mjs +74 -0
- package/dist/chunk-MUYVZHWM.mjs +31 -0
- package/dist/chunk-OEB7VI2R.mjs +125 -0
- package/dist/chunk-ZJZG3P2K.mjs +181 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1020 -0
- package/dist/index.mjs +36 -0
- package/dist/range-calendar.d.mts +24 -0
- package/dist/range-calendar.d.ts +24 -0
- package/dist/range-calendar.js +876 -0
- package/dist/range-calendar.mjs +20 -0
- package/dist/use-calendar-base.d.mts +1224 -0
- package/dist/use-calendar-base.d.ts +1224 -0
- package/dist/use-calendar-base.js +174 -0
- package/dist/use-calendar-base.mjs +7 -0
- package/dist/use-calendar-picker.d.mts +482 -0
- package/dist/use-calendar-picker.d.ts +482 -0
- package/dist/use-calendar-picker.js +49 -0
- package/dist/use-calendar-picker.mjs +8 -0
- package/dist/use-calendar.d.mts +494 -0
- package/dist/use-calendar.d.ts +494 -0
- package/dist/use-calendar.js +293 -0
- package/dist/use-calendar.mjs +8 -0
- package/dist/use-range-calendar.d.mts +498 -0
- package/dist/use-range-calendar.d.ts +498 -0
- package/dist/use-range-calendar.js +293 -0
- package/dist/use-range-calendar.mjs +8 -0
- package/dist/utils.d.mts +7 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +59 -0
- package/dist/utils.mjs +33 -0
- package/package.json +74 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import * as _sytechui_theme from '@sytechui/theme';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import * as _sytechui_system from '@sytechui/system';
|
|
5
|
+
import { DateValue, AriaCalendarProps } from '@react-types/calendar';
|
|
6
|
+
import { CalendarState } from '@react-stately/calendar';
|
|
7
|
+
import { UseCalendarBaseProps, ContextType } from './use-calendar-base.mjs';
|
|
8
|
+
import { CalendarBaseProps } from './calendar-base.mjs';
|
|
9
|
+
import '@react-types/shared';
|
|
10
|
+
import '@sytechui/system/src/types';
|
|
11
|
+
import '@internationalized/date';
|
|
12
|
+
import '@react-aria/calendar';
|
|
13
|
+
import '@react-types/button';
|
|
14
|
+
import '@sytechui/button';
|
|
15
|
+
import '@sytechui/react-utils';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
|
|
18
|
+
type UseCalendarProps<T extends DateValue> = UseCalendarBaseProps & AriaCalendarProps<T>;
|
|
19
|
+
declare function useCalendar<T extends DateValue>({ buttonPickerProps: buttonPickerPropsProp, className, ...originalProps }: UseCalendarProps<T>): {
|
|
20
|
+
Component: _sytechui_system.As<any>;
|
|
21
|
+
children: react.ReactNode;
|
|
22
|
+
domRef: react.RefObject<HTMLDivElement>;
|
|
23
|
+
context: ContextType<CalendarState>;
|
|
24
|
+
state: CalendarState;
|
|
25
|
+
slots: {
|
|
26
|
+
base: (slotProps?: ({
|
|
27
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
28
|
+
showShadow?: boolean | undefined;
|
|
29
|
+
hideDisabledDates?: boolean | undefined;
|
|
30
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
31
|
+
isRTL?: boolean | undefined;
|
|
32
|
+
isRange?: boolean | undefined;
|
|
33
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
34
|
+
disableAnimation?: boolean | undefined;
|
|
35
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
36
|
+
prevButton: (slotProps?: ({
|
|
37
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
38
|
+
showShadow?: boolean | undefined;
|
|
39
|
+
hideDisabledDates?: boolean | undefined;
|
|
40
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
41
|
+
isRTL?: boolean | undefined;
|
|
42
|
+
isRange?: boolean | undefined;
|
|
43
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
44
|
+
disableAnimation?: boolean | undefined;
|
|
45
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
46
|
+
nextButton: (slotProps?: ({
|
|
47
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
48
|
+
showShadow?: boolean | undefined;
|
|
49
|
+
hideDisabledDates?: boolean | undefined;
|
|
50
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
51
|
+
isRTL?: boolean | undefined;
|
|
52
|
+
isRange?: boolean | undefined;
|
|
53
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
54
|
+
disableAnimation?: boolean | undefined;
|
|
55
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
56
|
+
headerWrapper: (slotProps?: ({
|
|
57
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
58
|
+
showShadow?: boolean | undefined;
|
|
59
|
+
hideDisabledDates?: boolean | undefined;
|
|
60
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
61
|
+
isRTL?: boolean | undefined;
|
|
62
|
+
isRange?: boolean | undefined;
|
|
63
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
64
|
+
disableAnimation?: boolean | undefined;
|
|
65
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
66
|
+
header: (slotProps?: ({
|
|
67
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
68
|
+
showShadow?: boolean | undefined;
|
|
69
|
+
hideDisabledDates?: boolean | undefined;
|
|
70
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
71
|
+
isRTL?: boolean | undefined;
|
|
72
|
+
isRange?: boolean | undefined;
|
|
73
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
74
|
+
disableAnimation?: boolean | undefined;
|
|
75
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
76
|
+
title: (slotProps?: ({
|
|
77
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
78
|
+
showShadow?: boolean | undefined;
|
|
79
|
+
hideDisabledDates?: boolean | undefined;
|
|
80
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
81
|
+
isRTL?: boolean | undefined;
|
|
82
|
+
isRange?: boolean | undefined;
|
|
83
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
84
|
+
disableAnimation?: boolean | undefined;
|
|
85
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
86
|
+
content: (slotProps?: ({
|
|
87
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
88
|
+
showShadow?: boolean | undefined;
|
|
89
|
+
hideDisabledDates?: boolean | undefined;
|
|
90
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
91
|
+
isRTL?: boolean | undefined;
|
|
92
|
+
isRange?: boolean | undefined;
|
|
93
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
94
|
+
disableAnimation?: boolean | undefined;
|
|
95
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
96
|
+
gridWrapper: (slotProps?: ({
|
|
97
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
98
|
+
showShadow?: boolean | undefined;
|
|
99
|
+
hideDisabledDates?: boolean | undefined;
|
|
100
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
101
|
+
isRTL?: boolean | undefined;
|
|
102
|
+
isRange?: boolean | undefined;
|
|
103
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
104
|
+
disableAnimation?: boolean | undefined;
|
|
105
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
106
|
+
grid: (slotProps?: ({
|
|
107
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
108
|
+
showShadow?: boolean | undefined;
|
|
109
|
+
hideDisabledDates?: boolean | undefined;
|
|
110
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
111
|
+
isRTL?: boolean | undefined;
|
|
112
|
+
isRange?: boolean | undefined;
|
|
113
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
114
|
+
disableAnimation?: boolean | undefined;
|
|
115
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
116
|
+
gridHeader: (slotProps?: ({
|
|
117
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
118
|
+
showShadow?: boolean | undefined;
|
|
119
|
+
hideDisabledDates?: boolean | undefined;
|
|
120
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
121
|
+
isRTL?: boolean | undefined;
|
|
122
|
+
isRange?: boolean | undefined;
|
|
123
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
124
|
+
disableAnimation?: boolean | undefined;
|
|
125
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
126
|
+
gridHeaderRow: (slotProps?: ({
|
|
127
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
128
|
+
showShadow?: boolean | undefined;
|
|
129
|
+
hideDisabledDates?: boolean | undefined;
|
|
130
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
131
|
+
isRTL?: boolean | undefined;
|
|
132
|
+
isRange?: boolean | undefined;
|
|
133
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
134
|
+
disableAnimation?: boolean | undefined;
|
|
135
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
136
|
+
gridHeaderCell: (slotProps?: ({
|
|
137
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
138
|
+
showShadow?: boolean | undefined;
|
|
139
|
+
hideDisabledDates?: boolean | undefined;
|
|
140
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
141
|
+
isRTL?: boolean | undefined;
|
|
142
|
+
isRange?: boolean | undefined;
|
|
143
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
144
|
+
disableAnimation?: boolean | undefined;
|
|
145
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
146
|
+
gridBody: (slotProps?: ({
|
|
147
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
148
|
+
showShadow?: boolean | undefined;
|
|
149
|
+
hideDisabledDates?: boolean | undefined;
|
|
150
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
151
|
+
isRTL?: boolean | undefined;
|
|
152
|
+
isRange?: boolean | undefined;
|
|
153
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
154
|
+
disableAnimation?: boolean | undefined;
|
|
155
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
156
|
+
gridBodyRow: (slotProps?: ({
|
|
157
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
158
|
+
showShadow?: boolean | undefined;
|
|
159
|
+
hideDisabledDates?: boolean | undefined;
|
|
160
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
161
|
+
isRTL?: boolean | undefined;
|
|
162
|
+
isRange?: boolean | undefined;
|
|
163
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
164
|
+
disableAnimation?: boolean | undefined;
|
|
165
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
166
|
+
cell: (slotProps?: ({
|
|
167
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
168
|
+
showShadow?: boolean | undefined;
|
|
169
|
+
hideDisabledDates?: boolean | undefined;
|
|
170
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
171
|
+
isRTL?: boolean | undefined;
|
|
172
|
+
isRange?: boolean | undefined;
|
|
173
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
174
|
+
disableAnimation?: boolean | undefined;
|
|
175
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
176
|
+
cellButton: (slotProps?: ({
|
|
177
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
178
|
+
showShadow?: boolean | undefined;
|
|
179
|
+
hideDisabledDates?: boolean | undefined;
|
|
180
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
181
|
+
isRTL?: boolean | undefined;
|
|
182
|
+
isRange?: boolean | undefined;
|
|
183
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
184
|
+
disableAnimation?: boolean | undefined;
|
|
185
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
186
|
+
pickerWrapper: (slotProps?: ({
|
|
187
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
188
|
+
showShadow?: boolean | undefined;
|
|
189
|
+
hideDisabledDates?: boolean | undefined;
|
|
190
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
191
|
+
isRTL?: boolean | undefined;
|
|
192
|
+
isRange?: boolean | undefined;
|
|
193
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
194
|
+
disableAnimation?: boolean | undefined;
|
|
195
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
196
|
+
pickerMonthList: (slotProps?: ({
|
|
197
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
198
|
+
showShadow?: boolean | undefined;
|
|
199
|
+
hideDisabledDates?: boolean | undefined;
|
|
200
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
201
|
+
isRTL?: boolean | undefined;
|
|
202
|
+
isRange?: boolean | undefined;
|
|
203
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
204
|
+
disableAnimation?: boolean | undefined;
|
|
205
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
206
|
+
pickerYearList: (slotProps?: ({
|
|
207
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
208
|
+
showShadow?: boolean | undefined;
|
|
209
|
+
hideDisabledDates?: boolean | undefined;
|
|
210
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
211
|
+
isRTL?: boolean | undefined;
|
|
212
|
+
isRange?: boolean | undefined;
|
|
213
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
214
|
+
disableAnimation?: boolean | undefined;
|
|
215
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
216
|
+
pickerHighlight: (slotProps?: ({
|
|
217
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
218
|
+
showShadow?: boolean | undefined;
|
|
219
|
+
hideDisabledDates?: boolean | undefined;
|
|
220
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
221
|
+
isRTL?: boolean | undefined;
|
|
222
|
+
isRange?: boolean | undefined;
|
|
223
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
224
|
+
disableAnimation?: boolean | undefined;
|
|
225
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
226
|
+
pickerItem: (slotProps?: ({
|
|
227
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
228
|
+
showShadow?: boolean | undefined;
|
|
229
|
+
hideDisabledDates?: boolean | undefined;
|
|
230
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
231
|
+
isRTL?: boolean | undefined;
|
|
232
|
+
isRange?: boolean | undefined;
|
|
233
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
234
|
+
disableAnimation?: boolean | undefined;
|
|
235
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
236
|
+
helperWrapper: (slotProps?: ({
|
|
237
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
238
|
+
showShadow?: boolean | undefined;
|
|
239
|
+
hideDisabledDates?: boolean | undefined;
|
|
240
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
241
|
+
isRTL?: boolean | undefined;
|
|
242
|
+
isRange?: boolean | undefined;
|
|
243
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
244
|
+
disableAnimation?: boolean | undefined;
|
|
245
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
246
|
+
errorMessage: (slotProps?: ({
|
|
247
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
248
|
+
showShadow?: boolean | undefined;
|
|
249
|
+
hideDisabledDates?: boolean | undefined;
|
|
250
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
251
|
+
isRTL?: boolean | undefined;
|
|
252
|
+
isRange?: boolean | undefined;
|
|
253
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
254
|
+
disableAnimation?: boolean | undefined;
|
|
255
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
256
|
+
} & {
|
|
257
|
+
base: (slotProps?: ({
|
|
258
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
259
|
+
showShadow?: boolean | undefined;
|
|
260
|
+
hideDisabledDates?: boolean | undefined;
|
|
261
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
262
|
+
isRTL?: boolean | undefined;
|
|
263
|
+
isRange?: boolean | undefined;
|
|
264
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
265
|
+
disableAnimation?: boolean | undefined;
|
|
266
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
267
|
+
prevButton: (slotProps?: ({
|
|
268
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
269
|
+
showShadow?: boolean | undefined;
|
|
270
|
+
hideDisabledDates?: boolean | undefined;
|
|
271
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
272
|
+
isRTL?: boolean | undefined;
|
|
273
|
+
isRange?: boolean | undefined;
|
|
274
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
275
|
+
disableAnimation?: boolean | undefined;
|
|
276
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
277
|
+
nextButton: (slotProps?: ({
|
|
278
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
279
|
+
showShadow?: boolean | undefined;
|
|
280
|
+
hideDisabledDates?: boolean | undefined;
|
|
281
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
282
|
+
isRTL?: boolean | undefined;
|
|
283
|
+
isRange?: boolean | undefined;
|
|
284
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
285
|
+
disableAnimation?: boolean | undefined;
|
|
286
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
287
|
+
headerWrapper: (slotProps?: ({
|
|
288
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
289
|
+
showShadow?: boolean | undefined;
|
|
290
|
+
hideDisabledDates?: boolean | undefined;
|
|
291
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
292
|
+
isRTL?: boolean | undefined;
|
|
293
|
+
isRange?: boolean | undefined;
|
|
294
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
295
|
+
disableAnimation?: boolean | undefined;
|
|
296
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
297
|
+
header: (slotProps?: ({
|
|
298
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
299
|
+
showShadow?: boolean | undefined;
|
|
300
|
+
hideDisabledDates?: boolean | undefined;
|
|
301
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
302
|
+
isRTL?: boolean | undefined;
|
|
303
|
+
isRange?: boolean | undefined;
|
|
304
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
305
|
+
disableAnimation?: boolean | undefined;
|
|
306
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
307
|
+
title: (slotProps?: ({
|
|
308
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
309
|
+
showShadow?: boolean | undefined;
|
|
310
|
+
hideDisabledDates?: boolean | undefined;
|
|
311
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
312
|
+
isRTL?: boolean | undefined;
|
|
313
|
+
isRange?: boolean | undefined;
|
|
314
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
315
|
+
disableAnimation?: boolean | undefined;
|
|
316
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
317
|
+
content: (slotProps?: ({
|
|
318
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
319
|
+
showShadow?: boolean | undefined;
|
|
320
|
+
hideDisabledDates?: boolean | undefined;
|
|
321
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
322
|
+
isRTL?: boolean | undefined;
|
|
323
|
+
isRange?: boolean | undefined;
|
|
324
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
325
|
+
disableAnimation?: boolean | undefined;
|
|
326
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
327
|
+
gridWrapper: (slotProps?: ({
|
|
328
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
329
|
+
showShadow?: boolean | undefined;
|
|
330
|
+
hideDisabledDates?: boolean | undefined;
|
|
331
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
332
|
+
isRTL?: boolean | undefined;
|
|
333
|
+
isRange?: boolean | undefined;
|
|
334
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
335
|
+
disableAnimation?: boolean | undefined;
|
|
336
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
337
|
+
grid: (slotProps?: ({
|
|
338
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
339
|
+
showShadow?: boolean | undefined;
|
|
340
|
+
hideDisabledDates?: boolean | undefined;
|
|
341
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
342
|
+
isRTL?: boolean | undefined;
|
|
343
|
+
isRange?: boolean | undefined;
|
|
344
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
345
|
+
disableAnimation?: boolean | undefined;
|
|
346
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
347
|
+
gridHeader: (slotProps?: ({
|
|
348
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
349
|
+
showShadow?: boolean | undefined;
|
|
350
|
+
hideDisabledDates?: boolean | undefined;
|
|
351
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
352
|
+
isRTL?: boolean | undefined;
|
|
353
|
+
isRange?: boolean | undefined;
|
|
354
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
355
|
+
disableAnimation?: boolean | undefined;
|
|
356
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
357
|
+
gridHeaderRow: (slotProps?: ({
|
|
358
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
359
|
+
showShadow?: boolean | undefined;
|
|
360
|
+
hideDisabledDates?: boolean | undefined;
|
|
361
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
362
|
+
isRTL?: boolean | undefined;
|
|
363
|
+
isRange?: boolean | undefined;
|
|
364
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
365
|
+
disableAnimation?: boolean | undefined;
|
|
366
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
367
|
+
gridHeaderCell: (slotProps?: ({
|
|
368
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
369
|
+
showShadow?: boolean | undefined;
|
|
370
|
+
hideDisabledDates?: boolean | undefined;
|
|
371
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
372
|
+
isRTL?: boolean | undefined;
|
|
373
|
+
isRange?: boolean | undefined;
|
|
374
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
375
|
+
disableAnimation?: boolean | undefined;
|
|
376
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
377
|
+
gridBody: (slotProps?: ({
|
|
378
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
379
|
+
showShadow?: boolean | undefined;
|
|
380
|
+
hideDisabledDates?: boolean | undefined;
|
|
381
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
382
|
+
isRTL?: boolean | undefined;
|
|
383
|
+
isRange?: boolean | undefined;
|
|
384
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
385
|
+
disableAnimation?: boolean | undefined;
|
|
386
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
387
|
+
gridBodyRow: (slotProps?: ({
|
|
388
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
389
|
+
showShadow?: boolean | undefined;
|
|
390
|
+
hideDisabledDates?: boolean | undefined;
|
|
391
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
392
|
+
isRTL?: boolean | undefined;
|
|
393
|
+
isRange?: boolean | undefined;
|
|
394
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
395
|
+
disableAnimation?: boolean | undefined;
|
|
396
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
397
|
+
cell: (slotProps?: ({
|
|
398
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
399
|
+
showShadow?: boolean | undefined;
|
|
400
|
+
hideDisabledDates?: boolean | undefined;
|
|
401
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
402
|
+
isRTL?: boolean | undefined;
|
|
403
|
+
isRange?: boolean | undefined;
|
|
404
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
405
|
+
disableAnimation?: boolean | undefined;
|
|
406
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
407
|
+
cellButton: (slotProps?: ({
|
|
408
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
409
|
+
showShadow?: boolean | undefined;
|
|
410
|
+
hideDisabledDates?: boolean | undefined;
|
|
411
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
412
|
+
isRTL?: boolean | undefined;
|
|
413
|
+
isRange?: boolean | undefined;
|
|
414
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
415
|
+
disableAnimation?: boolean | undefined;
|
|
416
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
417
|
+
pickerWrapper: (slotProps?: ({
|
|
418
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
419
|
+
showShadow?: boolean | undefined;
|
|
420
|
+
hideDisabledDates?: boolean | undefined;
|
|
421
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
422
|
+
isRTL?: boolean | undefined;
|
|
423
|
+
isRange?: boolean | undefined;
|
|
424
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
425
|
+
disableAnimation?: boolean | undefined;
|
|
426
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
427
|
+
pickerMonthList: (slotProps?: ({
|
|
428
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
429
|
+
showShadow?: boolean | undefined;
|
|
430
|
+
hideDisabledDates?: boolean | undefined;
|
|
431
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
432
|
+
isRTL?: boolean | undefined;
|
|
433
|
+
isRange?: boolean | undefined;
|
|
434
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
435
|
+
disableAnimation?: boolean | undefined;
|
|
436
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
437
|
+
pickerYearList: (slotProps?: ({
|
|
438
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
439
|
+
showShadow?: boolean | undefined;
|
|
440
|
+
hideDisabledDates?: boolean | undefined;
|
|
441
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
442
|
+
isRTL?: boolean | undefined;
|
|
443
|
+
isRange?: boolean | undefined;
|
|
444
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
445
|
+
disableAnimation?: boolean | undefined;
|
|
446
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
447
|
+
pickerHighlight: (slotProps?: ({
|
|
448
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
449
|
+
showShadow?: boolean | undefined;
|
|
450
|
+
hideDisabledDates?: boolean | undefined;
|
|
451
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
452
|
+
isRTL?: boolean | undefined;
|
|
453
|
+
isRange?: boolean | undefined;
|
|
454
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
455
|
+
disableAnimation?: boolean | undefined;
|
|
456
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
457
|
+
pickerItem: (slotProps?: ({
|
|
458
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
459
|
+
showShadow?: boolean | undefined;
|
|
460
|
+
hideDisabledDates?: boolean | undefined;
|
|
461
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
462
|
+
isRTL?: boolean | undefined;
|
|
463
|
+
isRange?: boolean | undefined;
|
|
464
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
465
|
+
disableAnimation?: boolean | undefined;
|
|
466
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
467
|
+
helperWrapper: (slotProps?: ({
|
|
468
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
469
|
+
showShadow?: boolean | undefined;
|
|
470
|
+
hideDisabledDates?: boolean | undefined;
|
|
471
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
472
|
+
isRTL?: boolean | undefined;
|
|
473
|
+
isRange?: boolean | undefined;
|
|
474
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
475
|
+
disableAnimation?: boolean | undefined;
|
|
476
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
477
|
+
errorMessage: (slotProps?: ({
|
|
478
|
+
color?: "primary" | "foreground" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
479
|
+
showShadow?: boolean | undefined;
|
|
480
|
+
hideDisabledDates?: boolean | undefined;
|
|
481
|
+
showMonthAndYearPickers?: boolean | undefined;
|
|
482
|
+
isRTL?: boolean | undefined;
|
|
483
|
+
isRange?: boolean | undefined;
|
|
484
|
+
isHeaderWrapperExpanded?: boolean | undefined;
|
|
485
|
+
disableAnimation?: boolean | undefined;
|
|
486
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
487
|
+
} & {};
|
|
488
|
+
title: string;
|
|
489
|
+
classNames: _sytechui_theme.SlotsToClasses<"header" | "title" | "content" | "gridWrapper" | "grid" | "gridHeader" | "gridHeaderRow" | "gridHeaderCell" | "gridBody" | "gridBodyRow" | "cell" | "pickerWrapper" | "pickerMonthList" | "pickerYearList" | "pickerHighlight" | "helperWrapper" | "errorMessage" | "base" | "prevButton" | "nextButton" | "headerWrapper" | "cellButton" | "pickerItem"> | undefined;
|
|
490
|
+
getBaseCalendarProps: (props?: {}) => CalendarBaseProps;
|
|
491
|
+
};
|
|
492
|
+
type UseCalendarReturn = ReturnType<typeof useCalendar>;
|
|
493
|
+
|
|
494
|
+
export { type UseCalendarProps, type UseCalendarReturn, useCalendar };
|