@deepnoid/ui 0.1.109 → 0.1.110
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/.turbo/turbo-build.log +446 -466
- package/dist/chunk-CV6IVDL6.mjs +356 -0
- package/dist/{chunk-2EECKYM4.mjs → chunk-YCLB7ZNK.mjs} +1 -1
- package/dist/{chunk-7VS6YXNB.mjs → chunk-ZWLRSZTC.mjs} +2 -2
- package/dist/components/charts/circularProgress.js +2 -2
- package/dist/components/charts/circularProgress.mjs +1 -1
- package/dist/components/charts/index.js +2 -2
- package/dist/components/charts/index.mjs +1 -1
- package/dist/components/picker/index.d.mts +4 -0
- package/dist/components/picker/index.d.ts +4 -0
- package/dist/components/{dateTimePicker/calendar.js → picker/index.js} +716 -173
- package/dist/components/{dateTimePicker/calendar.mjs → picker/index.mjs} +7 -6
- package/dist/components/picker/timePicker.d.mts +251 -0
- package/dist/components/picker/timePicker.d.ts +251 -0
- package/dist/components/{dateTimePicker/dateTimePicker.js → picker/timePicker.js} +617 -904
- package/dist/components/{dateTimePicker → picker}/timePicker.mjs +7 -6
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/table/index.mjs +3 -3
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.mjs +3 -3
- package/dist/components/toast/index.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +383 -777
- package/dist/index.mjs +41 -45
- package/package.json +1 -1
- package/dist/chunk-FWJ2ZKH6.mjs +0 -87
- package/dist/chunk-P732YGHO.mjs +0 -18
- package/dist/chunk-X5XJWJSO.mjs +0 -122
- package/dist/chunk-Y4W76B42.mjs +0 -210
- package/dist/chunk-ZSQQFMEC.mjs +0 -366
- package/dist/components/dateTimePicker/calendar.d.mts +0 -68
- package/dist/components/dateTimePicker/calendar.d.ts +0 -68
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +0 -288
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +0 -288
- package/dist/components/dateTimePicker/dateTimePicker.mjs +0 -23
- package/dist/components/dateTimePicker/index.d.mts +0 -4
- package/dist/components/dateTimePicker/index.d.ts +0 -4
- package/dist/components/dateTimePicker/index.js +0 -6040
- package/dist/components/dateTimePicker/index.mjs +0 -22
- package/dist/components/dateTimePicker/timePicker.d.mts +0 -11
- package/dist/components/dateTimePicker/timePicker.d.ts +0 -11
- package/dist/components/dateTimePicker/timePicker.js +0 -5417
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +0 -34
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +0 -34
- package/dist/components/dateTimePicker/useDateTimePicker.js +0 -117
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +0 -9
- package/dist/components/dateTimePicker/util.d.mts +0 -4
- package/dist/components/dateTimePicker/util.d.ts +0 -4
- package/dist/components/dateTimePicker/util.js +0 -42
- package/dist/components/dateTimePicker/util.mjs +0 -10
- package/dist/{chunk-75HLCORR.mjs → chunk-BG7VAVOX.mjs} +0 -0
- package/dist/{chunk-2OK3VF75.mjs → chunk-U3O7RIXM.mjs} +3 -3
- package/dist/{chunk-IQYWSATB.mjs → chunk-X67ELNP6.mjs} +3 -3
package/dist/chunk-ZSQQFMEC.mjs
DELETED
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
calendar_default
|
|
4
|
-
} from "./chunk-Y4W76B42.mjs";
|
|
5
|
-
import {
|
|
6
|
-
timePicker_default
|
|
7
|
-
} from "./chunk-X5XJWJSO.mjs";
|
|
8
|
-
import {
|
|
9
|
-
useDatePicker
|
|
10
|
-
} from "./chunk-FWJ2ZKH6.mjs";
|
|
11
|
-
import {
|
|
12
|
-
Icon_default
|
|
13
|
-
} from "./chunk-33DLD2L6.mjs";
|
|
14
|
-
import {
|
|
15
|
-
mapPropsVariants
|
|
16
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
17
|
-
import {
|
|
18
|
-
tv
|
|
19
|
-
} from "./chunk-CDXBML6O.mjs";
|
|
20
|
-
|
|
21
|
-
// src/components/dateTimePicker/dateTimePicker.tsx
|
|
22
|
-
import React, { forwardRef, useCallback, useMemo } from "react";
|
|
23
|
-
import { createPortal } from "react-dom";
|
|
24
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
-
var DatePicker = forwardRef((originalProps, ref) => {
|
|
26
|
-
const [props, variantProps] = mapPropsVariants(originalProps, dateTimePickerStyle.variantKeys);
|
|
27
|
-
const {
|
|
28
|
-
classNames,
|
|
29
|
-
label,
|
|
30
|
-
errorMessage,
|
|
31
|
-
startContent,
|
|
32
|
-
endContent,
|
|
33
|
-
type = "date",
|
|
34
|
-
value,
|
|
35
|
-
onChangeDate,
|
|
36
|
-
onChangeTime,
|
|
37
|
-
...inputProps
|
|
38
|
-
} = props;
|
|
39
|
-
const slots = useMemo(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
|
|
40
|
-
const {
|
|
41
|
-
selectedDate,
|
|
42
|
-
selectedTime,
|
|
43
|
-
targetRect,
|
|
44
|
-
popupHeight,
|
|
45
|
-
isFocusInput,
|
|
46
|
-
datePickerRef,
|
|
47
|
-
dateInputRef,
|
|
48
|
-
datePickerWrapperRef,
|
|
49
|
-
handleToggleDatePicker,
|
|
50
|
-
handleChangeDate,
|
|
51
|
-
handleChangeTime,
|
|
52
|
-
handleFocusInput,
|
|
53
|
-
handleBlueInput,
|
|
54
|
-
calculatePositionWithScroll
|
|
55
|
-
} = useDatePicker({
|
|
56
|
-
initialDate: typeof value === "string" ? new Date(value) : void 0,
|
|
57
|
-
initialTime: typeof value === "string" ? value : void 0
|
|
58
|
-
});
|
|
59
|
-
const position = targetRect ? calculatePositionWithScroll(targetRect) : null;
|
|
60
|
-
const getBaseProps = useCallback(
|
|
61
|
-
() => ({
|
|
62
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
63
|
-
}),
|
|
64
|
-
[slots, classNames]
|
|
65
|
-
);
|
|
66
|
-
const getLabelProps = useCallback(
|
|
67
|
-
() => ({
|
|
68
|
-
className: slots.label({ class: classNames == null ? void 0 : classNames.label })
|
|
69
|
-
}),
|
|
70
|
-
[slots, classNames]
|
|
71
|
-
);
|
|
72
|
-
const getInnerWrapperProps = useCallback(
|
|
73
|
-
() => ({
|
|
74
|
-
className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
|
|
75
|
-
}),
|
|
76
|
-
[slots, classNames]
|
|
77
|
-
);
|
|
78
|
-
const getInputWrapperProps = useCallback(
|
|
79
|
-
() => ({
|
|
80
|
-
className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
|
|
81
|
-
ref: datePickerRef
|
|
82
|
-
}),
|
|
83
|
-
[slots, classNames]
|
|
84
|
-
);
|
|
85
|
-
const getInputProps = useCallback(
|
|
86
|
-
() => ({
|
|
87
|
-
...inputProps,
|
|
88
|
-
ref: ref || dateInputRef,
|
|
89
|
-
className: slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
90
|
-
size: 0,
|
|
91
|
-
type,
|
|
92
|
-
value: value !== void 0 ? value : type === "date" ? selectedDate || "" : type === "time" ? selectedTime || "" : "",
|
|
93
|
-
onChange: (e) => {
|
|
94
|
-
if (type === "date") {
|
|
95
|
-
handleChangeDate(e.target.value);
|
|
96
|
-
if (onChangeDate) {
|
|
97
|
-
onChangeDate(e.target.value);
|
|
98
|
-
}
|
|
99
|
-
} else if (type === "time") {
|
|
100
|
-
handleChangeTime(e.target.value);
|
|
101
|
-
if (onChangeTime) {
|
|
102
|
-
onChangeTime(e.target.value);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
onFocus: (e) => {
|
|
107
|
-
handleFocusInput();
|
|
108
|
-
},
|
|
109
|
-
onBlur: (e) => {
|
|
110
|
-
handleBlueInput();
|
|
111
|
-
},
|
|
112
|
-
max: "9999-12-31"
|
|
113
|
-
}),
|
|
114
|
-
[inputProps, ref, dateInputRef, slots, classNames == null ? void 0 : classNames.input, selectedDate, selectedTime, type, value]
|
|
115
|
-
);
|
|
116
|
-
const getContentProps = useCallback(
|
|
117
|
-
() => ({
|
|
118
|
-
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
119
|
-
size: originalProps.size
|
|
120
|
-
}),
|
|
121
|
-
[slots, classNames, originalProps.size]
|
|
122
|
-
);
|
|
123
|
-
const getErrorMessageProps = useCallback(
|
|
124
|
-
() => ({
|
|
125
|
-
className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
|
|
126
|
-
}),
|
|
127
|
-
[slots, classNames]
|
|
128
|
-
);
|
|
129
|
-
const renderStartContent = () => {
|
|
130
|
-
if (React.isValidElement(startContent)) {
|
|
131
|
-
const existingProps = startContent.props;
|
|
132
|
-
const mergedProps = {
|
|
133
|
-
...getContentProps(),
|
|
134
|
-
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
135
|
-
};
|
|
136
|
-
return React.cloneElement(startContent, mergedProps);
|
|
137
|
-
} else {
|
|
138
|
-
const contentProps = getContentProps();
|
|
139
|
-
return /* @__PURE__ */ jsx("div", { ...contentProps, children: startContent });
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
const renderDateTimePickerIcon = () => /* @__PURE__ */ jsx("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ jsx(
|
|
143
|
-
Icon_default,
|
|
144
|
-
{
|
|
145
|
-
name: type === "time" ? "clock" : "calendar",
|
|
146
|
-
size: originalProps.size,
|
|
147
|
-
className: "cursor-pointer",
|
|
148
|
-
fill: type === "date"
|
|
149
|
-
}
|
|
150
|
-
) });
|
|
151
|
-
const renderContentWithIcon = () => {
|
|
152
|
-
if (React.isValidElement(endContent)) {
|
|
153
|
-
const existingProps = endContent.props;
|
|
154
|
-
const mergedProps = {
|
|
155
|
-
...getContentProps(),
|
|
156
|
-
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
157
|
-
};
|
|
158
|
-
return React.cloneElement(endContent, mergedProps);
|
|
159
|
-
} else if (errorMessage) {
|
|
160
|
-
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
161
|
-
return /* @__PURE__ */ jsx("div", { ...iconProps, children: /* @__PURE__ */ jsx(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
162
|
-
} else {
|
|
163
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
const renderEndContent = () => {
|
|
167
|
-
switch (type) {
|
|
168
|
-
case "date":
|
|
169
|
-
case "datetime-local":
|
|
170
|
-
case "month":
|
|
171
|
-
case "week":
|
|
172
|
-
case "time":
|
|
173
|
-
return renderDateTimePickerIcon();
|
|
174
|
-
default:
|
|
175
|
-
return renderContentWithIcon();
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
179
|
-
/* @__PURE__ */ jsxs("div", { ...getBaseProps(), children: [
|
|
180
|
-
label && /* @__PURE__ */ jsx("label", { ...getLabelProps(), children: label }),
|
|
181
|
-
/* @__PURE__ */ jsxs("div", { ...getInnerWrapperProps(), children: [
|
|
182
|
-
/* @__PURE__ */ jsxs("div", { ...getInputWrapperProps(), children: [
|
|
183
|
-
startContent && renderStartContent(),
|
|
184
|
-
/* @__PURE__ */ jsx("input", { ...getInputProps() }),
|
|
185
|
-
renderEndContent()
|
|
186
|
-
] }),
|
|
187
|
-
errorMessage && /* @__PURE__ */ jsx("p", { ...getErrorMessageProps(), children: errorMessage })
|
|
188
|
-
] })
|
|
189
|
-
] }),
|
|
190
|
-
targetRect && /* @__PURE__ */ jsx(Fragment, { children: createPortal(
|
|
191
|
-
/* @__PURE__ */ jsxs(
|
|
192
|
-
"div",
|
|
193
|
-
{
|
|
194
|
-
ref: datePickerWrapperRef,
|
|
195
|
-
style: {
|
|
196
|
-
position: "absolute",
|
|
197
|
-
top: (position == null ? void 0 : position.top) || -99999,
|
|
198
|
-
left: (position == null ? void 0 : position.left) || -99999,
|
|
199
|
-
zIndex: 1e3
|
|
200
|
-
},
|
|
201
|
-
children: [
|
|
202
|
-
type === "date" && /* @__PURE__ */ jsx(
|
|
203
|
-
calendar_default,
|
|
204
|
-
{
|
|
205
|
-
color: originalProps.color,
|
|
206
|
-
selectedDate,
|
|
207
|
-
highlightWeekend: originalProps.highlightWeekend,
|
|
208
|
-
onChangeDate: (date) => {
|
|
209
|
-
handleChangeDate(date);
|
|
210
|
-
if (onChangeDate) onChangeDate(date);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
type === "time" && /* @__PURE__ */ jsx(
|
|
215
|
-
timePicker_default,
|
|
216
|
-
{
|
|
217
|
-
color: originalProps.color,
|
|
218
|
-
selectedTime,
|
|
219
|
-
isFocusInput,
|
|
220
|
-
onChangeTime: (time) => {
|
|
221
|
-
handleChangeTime(time);
|
|
222
|
-
if (onChangeTime) onChangeTime(time);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
)
|
|
226
|
-
]
|
|
227
|
-
}
|
|
228
|
-
),
|
|
229
|
-
document.body
|
|
230
|
-
) })
|
|
231
|
-
] });
|
|
232
|
-
});
|
|
233
|
-
DatePicker.displayName = "DatePicker";
|
|
234
|
-
var dateTimePicker_default = DatePicker;
|
|
235
|
-
var dateTimePickerStyle = tv({
|
|
236
|
-
slots: {
|
|
237
|
-
base: ["group/input", "flex", "flex-col", "inline-block"],
|
|
238
|
-
label: ["flex", "items-center"],
|
|
239
|
-
innerWrapper: ["flex", "flex-col"],
|
|
240
|
-
inputWrapper: [
|
|
241
|
-
"flex",
|
|
242
|
-
"items-center",
|
|
243
|
-
"transition",
|
|
244
|
-
"duration-200",
|
|
245
|
-
"group-has-[p]/input:border-danger-main",
|
|
246
|
-
"group-has-[p]/input:bg-danger-soft"
|
|
247
|
-
],
|
|
248
|
-
input: ["w-full", "h-full", "bg-transparent", "placeholder:text-neutral-main", "focus-visible:outline-none"],
|
|
249
|
-
content: ["flex", "items-center", "select-none", "group-has-[p]/input:text-danger-main"],
|
|
250
|
-
errorMessage: ["text-danger-main"]
|
|
251
|
-
},
|
|
252
|
-
variants: {
|
|
253
|
-
variant: {
|
|
254
|
-
solid: {
|
|
255
|
-
inputWrapper: ["bg-trans-soft", "hover:bg-trans-light", "has-[:focus]:bg-trans-light"]
|
|
256
|
-
},
|
|
257
|
-
normal: {
|
|
258
|
-
inputWrapper: [
|
|
259
|
-
"bg-transparent",
|
|
260
|
-
"border",
|
|
261
|
-
"border-neutral-main",
|
|
262
|
-
"hover:bg-trans-soft",
|
|
263
|
-
"has-[:focus]:bg-trans-soft"
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
line: {
|
|
267
|
-
inputWrapper: [
|
|
268
|
-
"bg-transparent",
|
|
269
|
-
"border-b",
|
|
270
|
-
"border-neutral-main",
|
|
271
|
-
"!rounded-none",
|
|
272
|
-
"hover:bg-trans-soft",
|
|
273
|
-
"has-[:focus]:bg-trans-soft"
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
color: {
|
|
278
|
-
primary: {
|
|
279
|
-
inputWrapper: ["has-[:focus]:border-primary-main"],
|
|
280
|
-
content: ["text-primary-main"]
|
|
281
|
-
},
|
|
282
|
-
secondary: {
|
|
283
|
-
inputWrapper: ["has-[:focus]:border-secondary-main"],
|
|
284
|
-
content: ["text-secondary-main"]
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
size: {
|
|
288
|
-
sm: {
|
|
289
|
-
base: ["text-sm", "gap-[6px]"],
|
|
290
|
-
innerWrapper: ["group-has-[p]/input:gap-[6px]"],
|
|
291
|
-
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[6px]", "py-[4.5px]", "gap-[6px]"],
|
|
292
|
-
errorMessage: ["text-sm"]
|
|
293
|
-
},
|
|
294
|
-
md: {
|
|
295
|
-
base: ["text-md", "gap-[8px]"],
|
|
296
|
-
innerWrapper: ["group-has-[p]/input:gap-[8px]"],
|
|
297
|
-
inputWrapper: ["w-[240px]", "h-[30px]", "rounded-md", "px-[8px]", "py-[6.5px]", "gap-[8px]"],
|
|
298
|
-
errorMessage: ["text-md"]
|
|
299
|
-
},
|
|
300
|
-
lg: {
|
|
301
|
-
base: ["text-lg", "gap-[10px]"],
|
|
302
|
-
innerWrapper: ["group-has-[p]/input:gap-[10px]"],
|
|
303
|
-
inputWrapper: ["w-[240px]", "h-[36px]", "rounded-lg", "px-[10px]", "py-[8px]", "gap-[10px]"],
|
|
304
|
-
errorMessage: ["text-lg"]
|
|
305
|
-
},
|
|
306
|
-
xl: {
|
|
307
|
-
base: ["text-xl", "gap-[10px]"],
|
|
308
|
-
innerWrapper: ["group-has-[p]/input:gap-[10px]"],
|
|
309
|
-
inputWrapper: ["w-[240px]", "h-[36px]", "rounded-xl", "px-[10px]", "py-[8px]", "gap-[10px]"],
|
|
310
|
-
errorMessage: ["text-xl"]
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
radius: {
|
|
314
|
-
default: "",
|
|
315
|
-
none: {
|
|
316
|
-
inputWrapper: ["rounded-none"]
|
|
317
|
-
},
|
|
318
|
-
full: {
|
|
319
|
-
inputWrapper: ["rounded-full"]
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
full: {
|
|
323
|
-
true: {
|
|
324
|
-
base: ["w-full"],
|
|
325
|
-
innerWrapper: ["flex-1"],
|
|
326
|
-
inputWrapper: ["w-full"]
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
disabled: {
|
|
330
|
-
true: {
|
|
331
|
-
label: ["text-neutral-light"],
|
|
332
|
-
inputWrapper: ["bg-neutral-soft", "border-neutral-light", "pointer-events-none"],
|
|
333
|
-
input: ["text-neutral-light", "placeholder:text-neutral-light"],
|
|
334
|
-
content: ["text-neutral-light"],
|
|
335
|
-
errorMessage: ["text-danger-light"]
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
isRequired: {
|
|
339
|
-
true: {
|
|
340
|
-
label: ["after:content-['*']", "after:text-danger-main", "after:ml-0.5"]
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
defaultVariants: {
|
|
345
|
-
variant: "solid",
|
|
346
|
-
color: "primary",
|
|
347
|
-
size: "md",
|
|
348
|
-
full: false,
|
|
349
|
-
disabled: false,
|
|
350
|
-
isRequired: false
|
|
351
|
-
},
|
|
352
|
-
compoundVariants: [
|
|
353
|
-
{
|
|
354
|
-
disabled: true,
|
|
355
|
-
isRequired: true,
|
|
356
|
-
class: {
|
|
357
|
-
label: ["after:text-danger-light"]
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
]
|
|
361
|
-
});
|
|
362
|
-
|
|
363
|
-
export {
|
|
364
|
-
dateTimePicker_default,
|
|
365
|
-
dateTimePickerStyle
|
|
366
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import react__default, { ComponentProps } from 'react';
|
|
4
|
-
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
5
|
-
|
|
6
|
-
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
7
|
-
classNames?: SlotsToClasses<CalendarSlots>;
|
|
8
|
-
selectedDate?: string;
|
|
9
|
-
highlightWeekend?: boolean;
|
|
10
|
-
onChangeDate?: (date: string) => void;
|
|
11
|
-
}
|
|
12
|
-
type CalendarProps = Props & CalendarVariantProps;
|
|
13
|
-
declare const Calendar: react__default.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react__default.RefAttributes<any>>;
|
|
14
|
-
|
|
15
|
-
declare const calendarStyle: tailwind_variants.TVReturnType<{
|
|
16
|
-
variant: {
|
|
17
|
-
solid: {};
|
|
18
|
-
};
|
|
19
|
-
color: {
|
|
20
|
-
primary: {
|
|
21
|
-
date: string[];
|
|
22
|
-
};
|
|
23
|
-
secondary: {
|
|
24
|
-
date: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
base: string[];
|
|
29
|
-
dateTitle: string[];
|
|
30
|
-
date: string[];
|
|
31
|
-
}, undefined, {
|
|
32
|
-
variant: {
|
|
33
|
-
solid: {};
|
|
34
|
-
};
|
|
35
|
-
color: {
|
|
36
|
-
primary: {
|
|
37
|
-
date: string[];
|
|
38
|
-
};
|
|
39
|
-
secondary: {
|
|
40
|
-
date: string[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}, {
|
|
44
|
-
base: string[];
|
|
45
|
-
dateTitle: string[];
|
|
46
|
-
date: string[];
|
|
47
|
-
}, tailwind_variants.TVReturnType<{
|
|
48
|
-
variant: {
|
|
49
|
-
solid: {};
|
|
50
|
-
};
|
|
51
|
-
color: {
|
|
52
|
-
primary: {
|
|
53
|
-
date: string[];
|
|
54
|
-
};
|
|
55
|
-
secondary: {
|
|
56
|
-
date: string[];
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
base: string[];
|
|
61
|
-
dateTitle: string[];
|
|
62
|
-
date: string[];
|
|
63
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
64
|
-
type CalendarVariantProps = VariantProps<typeof calendarStyle>;
|
|
65
|
-
type CalendarSlots = keyof ReturnType<typeof calendarStyle>;
|
|
66
|
-
type CalendarReturnType = ReturnType<typeof calendarStyle>;
|
|
67
|
-
|
|
68
|
-
export { type CalendarProps, type CalendarReturnType, type CalendarSlots, type CalendarVariantProps, type Props, calendarStyle, Calendar as default };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import react__default, { ComponentProps } from 'react';
|
|
4
|
-
import { SlotsToClasses } from '../../utils/types.js';
|
|
5
|
-
|
|
6
|
-
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
7
|
-
classNames?: SlotsToClasses<CalendarSlots>;
|
|
8
|
-
selectedDate?: string;
|
|
9
|
-
highlightWeekend?: boolean;
|
|
10
|
-
onChangeDate?: (date: string) => void;
|
|
11
|
-
}
|
|
12
|
-
type CalendarProps = Props & CalendarVariantProps;
|
|
13
|
-
declare const Calendar: react__default.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & react__default.RefAttributes<any>>;
|
|
14
|
-
|
|
15
|
-
declare const calendarStyle: tailwind_variants.TVReturnType<{
|
|
16
|
-
variant: {
|
|
17
|
-
solid: {};
|
|
18
|
-
};
|
|
19
|
-
color: {
|
|
20
|
-
primary: {
|
|
21
|
-
date: string[];
|
|
22
|
-
};
|
|
23
|
-
secondary: {
|
|
24
|
-
date: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
base: string[];
|
|
29
|
-
dateTitle: string[];
|
|
30
|
-
date: string[];
|
|
31
|
-
}, undefined, {
|
|
32
|
-
variant: {
|
|
33
|
-
solid: {};
|
|
34
|
-
};
|
|
35
|
-
color: {
|
|
36
|
-
primary: {
|
|
37
|
-
date: string[];
|
|
38
|
-
};
|
|
39
|
-
secondary: {
|
|
40
|
-
date: string[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}, {
|
|
44
|
-
base: string[];
|
|
45
|
-
dateTitle: string[];
|
|
46
|
-
date: string[];
|
|
47
|
-
}, tailwind_variants.TVReturnType<{
|
|
48
|
-
variant: {
|
|
49
|
-
solid: {};
|
|
50
|
-
};
|
|
51
|
-
color: {
|
|
52
|
-
primary: {
|
|
53
|
-
date: string[];
|
|
54
|
-
};
|
|
55
|
-
secondary: {
|
|
56
|
-
date: string[];
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
base: string[];
|
|
61
|
-
dateTitle: string[];
|
|
62
|
-
date: string[];
|
|
63
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
64
|
-
type CalendarVariantProps = VariantProps<typeof calendarStyle>;
|
|
65
|
-
type CalendarSlots = keyof ReturnType<typeof calendarStyle>;
|
|
66
|
-
type CalendarReturnType = ReturnType<typeof calendarStyle>;
|
|
67
|
-
|
|
68
|
-
export { type CalendarProps, type CalendarReturnType, type CalendarSlots, type CalendarVariantProps, type Props, calendarStyle, Calendar as default };
|