@deepnoid/ui 0.0.89 → 0.0.91
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/chunk-75HLCORR.mjs +1 -0
- package/dist/chunk-D5GGG7IO.mjs +122 -0
- package/dist/{chunk-FPCP4OOL.mjs → chunk-EDEV4IK4.mjs} +3 -3
- package/dist/chunk-FWJ2ZKH6.mjs +87 -0
- package/dist/chunk-HHYPMVLY.mjs +359 -0
- package/dist/{chunk-HFVZFUC3.mjs → chunk-L7P6OBUX.mjs} +1 -1
- package/dist/chunk-P732YGHO.mjs +18 -0
- package/dist/{chunk-MOINJECK.mjs → chunk-S3O52LLG.mjs} +1 -2
- package/dist/chunk-WX32MAKV.mjs +219 -0
- package/dist/components/accordion/accordion.d.mts +2 -2
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +2 -2
- package/dist/components/accordion/accordionItem.d.ts +2 -2
- package/dist/components/button/button-group.d.mts +2 -2
- package/dist/components/button/button-group.d.ts +2 -2
- package/dist/components/button/button-group.test.mjs +3 -3
- package/dist/components/button/button.d.mts +2 -2
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.test.mjs +3 -3
- package/dist/components/card/card.d.mts +2 -2
- package/dist/components/card/card.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.mts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.test.mjs +3 -3
- package/dist/components/dateTimePicker/calendar.d.mts +118 -0
- package/dist/components/dateTimePicker/calendar.d.ts +118 -0
- package/dist/components/dateTimePicker/calendar.js +3854 -0
- package/dist/components/dateTimePicker/calendar.mjs +16 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +445 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +445 -0
- package/dist/components/dateTimePicker/dateTimePicker.js +4540 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +22 -0
- package/dist/components/dateTimePicker/index.d.mts +5 -0
- package/dist/components/dateTimePicker/index.d.ts +5 -0
- package/dist/components/dateTimePicker/index.js +4541 -0
- package/dist/components/dateTimePicker/index.mjs +21 -0
- package/dist/components/dateTimePicker/timePicker.d.mts +11 -0
- package/dist/components/dateTimePicker/timePicker.d.ts +11 -0
- package/dist/components/dateTimePicker/timePicker.js +345 -0
- package/dist/components/dateTimePicker/timePicker.mjs +13 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +34 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +34 -0
- package/dist/components/dateTimePicker/useDateTimePicker.js +117 -0
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +9 -0
- package/dist/components/dateTimePicker/util.d.mts +4 -0
- package/dist/components/dateTimePicker/util.d.ts +4 -0
- package/dist/components/dateTimePicker/util.js +42 -0
- package/dist/components/dateTimePicker/util.mjs +10 -0
- package/dist/components/input/input.d.mts +2 -2
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/input/input.test.mjs +1 -1
- package/dist/components/list/index.js +3 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/list/list.d.mts +2 -2
- package/dist/components/list/list.d.ts +2 -2
- package/dist/components/list/listItem.d.mts +3 -3
- package/dist/components/list/listItem.d.ts +3 -3
- package/dist/components/list/listItem.js +3 -3
- package/dist/components/list/listItem.mjs +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.mjs +1 -1
- package/dist/components/modal/modal.d.mts +2 -2
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/modal/modal.mjs +1 -1
- package/dist/components/modal/modal.test.js +1 -1
- package/dist/components/modal/modal.test.mjs +2 -2
- package/dist/components/pagination/pagination.d.mts +2 -2
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/progress/progress.d.mts +2 -2
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/radio/radio.d.mts +2 -2
- package/dist/components/radio/radio.d.ts +2 -2
- package/dist/components/select/select.d.mts +2 -2
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.test.mjs +3 -3
- package/dist/components/select/useSelect.d.mts +3 -3
- package/dist/components/select/useSelect.d.ts +3 -3
- package/dist/components/slider/slider.d.mts +2 -2
- package/dist/components/slider/slider.d.ts +2 -2
- package/dist/components/switch/index.js +1 -2
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +2 -2
- package/dist/components/switch/switch.d.ts +2 -2
- package/dist/components/switch/switch.js +1 -2
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +1 -2
- package/dist/components/switch/switch.test.mjs +1 -1
- package/dist/components/table/table-body.d.mts +2 -2
- package/dist/components/table/table-body.d.ts +2 -2
- package/dist/components/table/table.d.mts +5 -5
- package/dist/components/table/table.d.ts +5 -5
- package/dist/components/tabs/tabs.d.mts +2 -2
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tabs/tabs.test.mjs +3 -3
- package/dist/components/textarea/textarea.d.mts +2 -2
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/textarea/textarea.test.mjs +1 -1
- package/dist/components/toast/toast.d.mts +2 -2
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/tooltip/index.d.mts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.mts +3 -3
- package/dist/components/tooltip/tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip.test.mjs +3 -3
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +751 -6
- package/dist/index.mjs +62 -43
- package/dist/{tooltip-utils-DCKA5gnI.d.ts → tooltip-utils-CrCabndd.d.mts} +2 -2
- package/dist/{tooltip-utils-DCKA5gnI.d.mts → tooltip-utils-CrCabndd.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
formatDateToString,
|
|
4
|
+
formatStringToDate
|
|
5
|
+
} from "./chunk-P732YGHO.mjs";
|
|
6
|
+
import {
|
|
7
|
+
Icon_default
|
|
8
|
+
} from "./chunk-LCI6RPWE.mjs";
|
|
9
|
+
import {
|
|
10
|
+
mapPropsVariants
|
|
11
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
12
|
+
import {
|
|
13
|
+
tv
|
|
14
|
+
} from "./chunk-J725QONZ.mjs";
|
|
15
|
+
|
|
16
|
+
// src/components/dateTimePicker/calendar.tsx
|
|
17
|
+
import React, {
|
|
18
|
+
forwardRef,
|
|
19
|
+
useCallback,
|
|
20
|
+
useMemo,
|
|
21
|
+
useState,
|
|
22
|
+
useImperativeHandle,
|
|
23
|
+
useEffect
|
|
24
|
+
} from "react";
|
|
25
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
var Calendar = forwardRef((originalProps, ref) => {
|
|
27
|
+
const [props, variantProps] = mapPropsVariants(originalProps, calendarStyle.variantKeys);
|
|
28
|
+
const { selectedDate, classNames, highlightWeekend = true, onChangeDate, ...inputProps } = props;
|
|
29
|
+
const [currentDate, setCurrentDate] = useState(selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date());
|
|
30
|
+
const daysOfWeek = ["S", "M", "T", "W", "T", "F", "S"];
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (selectedDate) {
|
|
33
|
+
setCurrentDate(new Date(selectedDate));
|
|
34
|
+
}
|
|
35
|
+
}, [selectedDate]);
|
|
36
|
+
const getCalendarDates = useCallback(() => {
|
|
37
|
+
const year = currentDate.getFullYear();
|
|
38
|
+
const month = currentDate.getMonth();
|
|
39
|
+
const firstDayOfMonth = new Date(year, month, 1).getDay();
|
|
40
|
+
const lastDateOfMonth = new Date(year, month + 1, 0).getDate();
|
|
41
|
+
const lastDateOfPrevMonth = new Date(year, month, 0).getDate();
|
|
42
|
+
let dates = [];
|
|
43
|
+
for (let i = firstDayOfMonth - 1; i >= 0; i--) {
|
|
44
|
+
dates.push({
|
|
45
|
+
date: lastDateOfPrevMonth - i,
|
|
46
|
+
currentMonth: false
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
for (let date = 1; date <= lastDateOfMonth; date++) {
|
|
50
|
+
dates.push({
|
|
51
|
+
date,
|
|
52
|
+
currentMonth: true
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
const remainingDays = 42 - dates.length;
|
|
56
|
+
for (let i = 1; i <= remainingDays; i++) {
|
|
57
|
+
dates.push({
|
|
58
|
+
date: i,
|
|
59
|
+
currentMonth: false
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
const weeks = [];
|
|
63
|
+
for (let i = 0; i < dates.length; i += 7) {
|
|
64
|
+
weeks.push(dates.slice(i, i + 7));
|
|
65
|
+
}
|
|
66
|
+
return weeks;
|
|
67
|
+
}, [currentDate]);
|
|
68
|
+
const handlePrevMonth = () => {
|
|
69
|
+
setCurrentDate(new Date(currentDate.getFullYear(), currentDate.getMonth() - 1));
|
|
70
|
+
};
|
|
71
|
+
const handleNextMonth = () => {
|
|
72
|
+
setCurrentDate(new Date(currentDate.getFullYear(), currentDate.getMonth() + 1));
|
|
73
|
+
};
|
|
74
|
+
const handleDateSelect = (date, isCurrentMonth) => {
|
|
75
|
+
if (!isCurrentMonth) return;
|
|
76
|
+
if (onChangeDate) {
|
|
77
|
+
const selected = new Date(currentDate.getFullYear(), currentDate.getMonth(), date);
|
|
78
|
+
const formatted = formatDateToString(selected);
|
|
79
|
+
onChangeDate(formatted);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
useImperativeHandle(ref, () => ({
|
|
83
|
+
getSelectedDate: () => selectedDate
|
|
84
|
+
}));
|
|
85
|
+
const slots = useMemo(() => calendarStyle({ ...variantProps }), [variantProps]);
|
|
86
|
+
const getBaseProps = useCallback(
|
|
87
|
+
() => ({
|
|
88
|
+
className: `${slots.base({ class: classNames == null ? void 0 : classNames.base })}`
|
|
89
|
+
}),
|
|
90
|
+
[slots, classNames]
|
|
91
|
+
);
|
|
92
|
+
const getDateTitleProps = useCallback(
|
|
93
|
+
(index) => {
|
|
94
|
+
return {
|
|
95
|
+
className: `${slots.dateTitle({
|
|
96
|
+
class: classNames == null ? void 0 : classNames.date
|
|
97
|
+
})}`,
|
|
98
|
+
"data-saturday": highlightWeekend && index === 6,
|
|
99
|
+
"data-sunday": highlightWeekend && index === 0
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
[slots, classNames, highlightWeekend]
|
|
103
|
+
);
|
|
104
|
+
const getDateProps = useCallback(
|
|
105
|
+
(dateObj) => {
|
|
106
|
+
const today = /* @__PURE__ */ new Date();
|
|
107
|
+
const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
|
|
108
|
+
const formatted = selectedDate ? formatStringToDate(selectedDate) : "";
|
|
109
|
+
const isSelected = formatted ? formatted.getDate() === dateObj.date && formatted.getMonth() === currentDate.getMonth() && formatted.getFullYear() === currentDate.getFullYear() : false;
|
|
110
|
+
const dayOfWeek = new Date(currentDate.getFullYear(), currentDate.getMonth(), dateObj.date).getDay();
|
|
111
|
+
return {
|
|
112
|
+
className: `${slots.date({
|
|
113
|
+
class: classNames == null ? void 0 : classNames.date
|
|
114
|
+
})}`,
|
|
115
|
+
"data-today": dateObj.currentMonth && isToday,
|
|
116
|
+
"data-selected": dateObj.currentMonth && isSelected,
|
|
117
|
+
"data-disabled": !dateObj.currentMonth,
|
|
118
|
+
"data-saturday": highlightWeekend && dayOfWeek === 6,
|
|
119
|
+
"data-sunday": highlightWeekend && dayOfWeek === 0,
|
|
120
|
+
onClick: () => handleDateSelect(dateObj.date, dateObj.currentMonth)
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
[slots, classNames, selectedDate, currentDate, highlightWeekend]
|
|
124
|
+
);
|
|
125
|
+
const calendarDates = getCalendarDates();
|
|
126
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { ...getBaseProps(), children: [
|
|
127
|
+
/* @__PURE__ */ jsxs("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
|
|
128
|
+
/* @__PURE__ */ jsx(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
|
|
129
|
+
/* @__PURE__ */ jsx("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
|
|
130
|
+
/* @__PURE__ */ jsx(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
|
|
133
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
|
|
134
|
+
const hasCurrentMonthDates = week.some((dateObj) => dateObj.currentMonth);
|
|
135
|
+
if (!hasCurrentMonthDates) return null;
|
|
136
|
+
return /* @__PURE__ */ jsx(React.Fragment, { children: week.map((dateObj, index) => {
|
|
137
|
+
return /* @__PURE__ */ jsx("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
|
|
138
|
+
}) }, weekIndex);
|
|
139
|
+
}) })
|
|
140
|
+
] }) });
|
|
141
|
+
});
|
|
142
|
+
Calendar.displayName = "Calendar";
|
|
143
|
+
var calendar_default = Calendar;
|
|
144
|
+
var calendarStyle = tv({
|
|
145
|
+
slots: {
|
|
146
|
+
base: [
|
|
147
|
+
"flex",
|
|
148
|
+
"flex-col",
|
|
149
|
+
"w-[240px]",
|
|
150
|
+
"border",
|
|
151
|
+
"border-neutral-main",
|
|
152
|
+
"bg-background",
|
|
153
|
+
"rounded-md",
|
|
154
|
+
"p-4",
|
|
155
|
+
"shadow-lg",
|
|
156
|
+
"select-none"
|
|
157
|
+
],
|
|
158
|
+
dateTitle: ["text-sm", "font-[500]", "data-[saturday=true]:text-[#1E7EEE]", "data-[sunday=true]:text-[#FF4684]"],
|
|
159
|
+
date: [
|
|
160
|
+
"flex",
|
|
161
|
+
"justify-center",
|
|
162
|
+
"items-center",
|
|
163
|
+
"h-[25px]",
|
|
164
|
+
"text-sm",
|
|
165
|
+
"rounded-full",
|
|
166
|
+
"cursor-pointer",
|
|
167
|
+
"data-[today=true]:border",
|
|
168
|
+
"data-[today=true]:border-foreground",
|
|
169
|
+
"data-[saturday=true]:text-[#1E7EEE]",
|
|
170
|
+
"data-[saturday=true]:!border-[#1E7EEE]",
|
|
171
|
+
"data-[sunday=true]:text-[#FF4684]",
|
|
172
|
+
"data-[sunday=true]:!border-[#FF4684]",
|
|
173
|
+
"data-[selected=true]:!text-white",
|
|
174
|
+
"data-[selected=true]:border-none",
|
|
175
|
+
"data-[disabled=true]:!text-neutral-main",
|
|
176
|
+
"data-[disabled=true]:cursor-default",
|
|
177
|
+
"data-[disabled=true]:hover:bg-transparent"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
variants: {
|
|
181
|
+
variant: {
|
|
182
|
+
solid: {}
|
|
183
|
+
},
|
|
184
|
+
color: {
|
|
185
|
+
primary: {
|
|
186
|
+
date: [
|
|
187
|
+
"hover:text-primary-main",
|
|
188
|
+
"hover:bg-primary-soft",
|
|
189
|
+
"data-[selected=true]:!border-primary-main",
|
|
190
|
+
"data-[selected=true]:bg-primary-main"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
secondary: {
|
|
194
|
+
date: [
|
|
195
|
+
"hover:text-secondary-main",
|
|
196
|
+
"hover:bg-secondary-soft",
|
|
197
|
+
"data-[selected=true]:!border-secondary-main",
|
|
198
|
+
"data-[selected=true]:bg-secondary-main"
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
defaultVariants: {
|
|
204
|
+
variant: "solid",
|
|
205
|
+
color: "primary"
|
|
206
|
+
},
|
|
207
|
+
compoundVariants: [
|
|
208
|
+
{
|
|
209
|
+
isDisabled: true,
|
|
210
|
+
isRequired: true,
|
|
211
|
+
class: {}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
export {
|
|
217
|
+
calendar_default,
|
|
218
|
+
calendarStyle
|
|
219
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
@@ -11,7 +11,7 @@ interface Props {
|
|
|
11
11
|
selectionIndex?: number;
|
|
12
12
|
}
|
|
13
13
|
type AccordionProps = Props & AccordionVariantProps;
|
|
14
|
-
declare const Accordion:
|
|
14
|
+
declare const Accordion: React__default.ForwardRefExoticComponent<Props & AccordionVariantProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
|
|
16
16
|
declare const accordion: tailwind_variants.TVReturnType<{
|
|
17
17
|
variant: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
@@ -11,7 +11,7 @@ interface Props {
|
|
|
11
11
|
selectionIndex?: number;
|
|
12
12
|
}
|
|
13
13
|
type AccordionProps = Props & AccordionVariantProps;
|
|
14
|
-
declare const Accordion:
|
|
14
|
+
declare const Accordion: React__default.ForwardRefExoticComponent<Props & AccordionVariantProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
|
|
16
16
|
declare const accordion: tailwind_variants.TVReturnType<{
|
|
17
17
|
variant: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
accordion_default
|
|
4
|
-
} from "../../chunk-SWR7E3NU.mjs";
|
|
5
2
|
import {
|
|
6
3
|
render
|
|
7
4
|
} from "../../chunk-FNPWLOGV.mjs";
|
|
5
|
+
import {
|
|
6
|
+
accordion_default
|
|
7
|
+
} from "../../chunk-SWR7E3NU.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
9
|
import "../../chunk-J725QONZ.mjs";
|
|
10
10
|
import "../../chunk-IZ6II3QA.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { ReactNode, ReactElement } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
@@ -20,7 +20,7 @@ interface Props {
|
|
|
20
20
|
onToggle?: () => void;
|
|
21
21
|
}
|
|
22
22
|
type AccordionItemProps = Props & AccordionItemVariantProps;
|
|
23
|
-
declare const AccordionItem:
|
|
23
|
+
declare const AccordionItem: React__default.ForwardRefExoticComponent<Props & AccordionItemVariantProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
|
|
25
25
|
declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
26
26
|
variant: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { ReactNode, ReactElement } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
@@ -20,7 +20,7 @@ interface Props {
|
|
|
20
20
|
onToggle?: () => void;
|
|
21
21
|
}
|
|
22
22
|
type AccordionItemProps = Props & AccordionItemVariantProps;
|
|
23
|
-
declare const AccordionItem:
|
|
23
|
+
declare const AccordionItem: React__default.ForwardRefExoticComponent<Props & AccordionItemVariantProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
|
|
25
25
|
declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
26
26
|
variant: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ButtonGroupProps {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -9,6 +9,6 @@ interface ButtonGroupProps {
|
|
|
9
9
|
fullWidth?: boolean;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const ButtonGroup:
|
|
12
|
+
declare const ButtonGroup: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
|
|
14
14
|
export { type ButtonGroupProps, ButtonGroup as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ButtonGroupProps {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -9,6 +9,6 @@ interface ButtonGroupProps {
|
|
|
9
9
|
fullWidth?: boolean;
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const ButtonGroup:
|
|
12
|
+
declare const ButtonGroup: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
|
|
14
14
|
export { type ButtonGroupProps, ButtonGroup as default };
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
button_group_default
|
|
7
7
|
} from "../../chunk-NGQ3MK2J.mjs";
|
|
8
|
-
import {
|
|
9
|
-
render
|
|
10
|
-
} from "../../chunk-FNPWLOGV.mjs";
|
|
11
8
|
import {
|
|
12
9
|
button_default
|
|
13
10
|
} from "../../chunk-UR64ZUAU.mjs";
|
|
11
|
+
import {
|
|
12
|
+
render
|
|
13
|
+
} from "../../chunk-FNPWLOGV.mjs";
|
|
14
14
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
15
|
import "../../chunk-LCI6RPWE.mjs";
|
|
16
16
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
7
|
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -11,7 +11,7 @@ interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
11
|
classNames?: SlotsToClasses<ButtonSlots>;
|
|
12
12
|
}
|
|
13
13
|
type ButtonProps = Props & ButtonVariantProps;
|
|
14
|
-
declare const Button:
|
|
14
|
+
declare const Button: React__default.ForwardRefExoticComponent<Props & ButtonVariantProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
|
|
16
16
|
declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
17
17
|
variant: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
7
|
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -11,7 +11,7 @@ interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
11
|
classNames?: SlotsToClasses<ButtonSlots>;
|
|
12
12
|
}
|
|
13
13
|
type ButtonProps = Props & ButtonVariantProps;
|
|
14
|
-
declare const Button:
|
|
14
|
+
declare const Button: React__default.ForwardRefExoticComponent<Props & ButtonVariantProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
|
|
16
16
|
declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
17
17
|
variant: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-H7BLXC5M.mjs";
|
|
3
|
+
import {
|
|
4
|
+
button_default
|
|
5
|
+
} from "../../chunk-UR64ZUAU.mjs";
|
|
3
6
|
import {
|
|
4
7
|
act,
|
|
5
8
|
render
|
|
6
9
|
} from "../../chunk-FNPWLOGV.mjs";
|
|
7
|
-
import {
|
|
8
|
-
button_default
|
|
9
|
-
} from "../../chunk-UR64ZUAU.mjs";
|
|
10
10
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
11
11
|
import "../../chunk-LCI6RPWE.mjs";
|
|
12
12
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ interface Props {
|
|
|
12
12
|
classNames?: SlotsToClasses<CardSlots>;
|
|
13
13
|
}
|
|
14
14
|
type CardProps = Props & CardVariantProps;
|
|
15
|
-
declare const Card:
|
|
15
|
+
declare const Card: React.ForwardRefExoticComponent<Props & CardVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
|
|
17
17
|
declare const card: tailwind_variants.TVReturnType<{
|
|
18
18
|
variant: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ interface Props {
|
|
|
12
12
|
classNames?: SlotsToClasses<CardSlots>;
|
|
13
13
|
}
|
|
14
14
|
type CardProps = Props & CardVariantProps;
|
|
15
|
-
declare const Card:
|
|
15
|
+
declare const Card: React.ForwardRefExoticComponent<Props & CardVariantProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
|
|
17
17
|
declare const card: tailwind_variants.TVReturnType<{
|
|
18
18
|
variant: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React$1 from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ type CheckboxProps = Props & CheckboxVariantProps;
|
|
|
13
13
|
type CheckboxVariantProps = VariantProps<typeof checkbox>;
|
|
14
14
|
type CheckboxSlots = keyof ReturnType<typeof checkbox>;
|
|
15
15
|
type CheckboxReturnType = ReturnType<typeof checkbox>;
|
|
16
|
-
declare const CheckBox:
|
|
16
|
+
declare const CheckBox: React$1.ForwardRefExoticComponent<Props & CheckboxVariantProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
|
|
18
18
|
declare const checkbox: tailwind_variants.TVReturnType<{
|
|
19
19
|
color: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React$1 from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ type CheckboxProps = Props & CheckboxVariantProps;
|
|
|
13
13
|
type CheckboxVariantProps = VariantProps<typeof checkbox>;
|
|
14
14
|
type CheckboxSlots = keyof ReturnType<typeof checkbox>;
|
|
15
15
|
type CheckboxReturnType = ReturnType<typeof checkbox>;
|
|
16
|
-
declare const CheckBox:
|
|
16
|
+
declare const CheckBox: React$1.ForwardRefExoticComponent<Props & CheckboxVariantProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
|
|
18
18
|
declare const checkbox: tailwind_variants.TVReturnType<{
|
|
19
19
|
color: {
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
import React__default, { ComponentProps } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
|
|
7
|
+
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
8
|
+
classNames?: SlotsToClasses<CalendarSlots>;
|
|
9
|
+
selectedDate?: string;
|
|
10
|
+
highlightWeekend?: boolean;
|
|
11
|
+
onChangeDate?: (date: string) => void;
|
|
12
|
+
}
|
|
13
|
+
type CalendarProps = Props & CalendarVariantProps;
|
|
14
|
+
declare const Calendar: React__default.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & React__default.RefAttributes<any>>;
|
|
15
|
+
|
|
16
|
+
declare const calendarStyle: tailwind_variants.TVReturnType<{
|
|
17
|
+
variant: {
|
|
18
|
+
solid: {};
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
primary: {
|
|
22
|
+
date: string[];
|
|
23
|
+
};
|
|
24
|
+
secondary: {
|
|
25
|
+
date: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
base: string[];
|
|
30
|
+
dateTitle: string[];
|
|
31
|
+
date: string[];
|
|
32
|
+
}, undefined, {
|
|
33
|
+
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
34
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
35
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
} & tailwind_variants_dist_config.TWMConfig & {
|
|
38
|
+
twMergeConfig: {
|
|
39
|
+
classGroups: {
|
|
40
|
+
fontSize: {
|
|
41
|
+
text: string[];
|
|
42
|
+
}[];
|
|
43
|
+
borderRadius: {
|
|
44
|
+
rounded: string[];
|
|
45
|
+
}[];
|
|
46
|
+
boxShadow: {
|
|
47
|
+
shadow: string[];
|
|
48
|
+
}[];
|
|
49
|
+
padding: {
|
|
50
|
+
p: string[];
|
|
51
|
+
}[];
|
|
52
|
+
gap: {
|
|
53
|
+
gap: string[];
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
variant: {
|
|
59
|
+
solid: {};
|
|
60
|
+
};
|
|
61
|
+
color: {
|
|
62
|
+
primary: {
|
|
63
|
+
date: string[];
|
|
64
|
+
};
|
|
65
|
+
secondary: {
|
|
66
|
+
date: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
base: string[];
|
|
71
|
+
dateTitle: string[];
|
|
72
|
+
date: string[];
|
|
73
|
+
}, tailwind_variants.TVReturnType<{
|
|
74
|
+
variant: {
|
|
75
|
+
solid: {};
|
|
76
|
+
};
|
|
77
|
+
color: {
|
|
78
|
+
primary: {
|
|
79
|
+
date: string[];
|
|
80
|
+
};
|
|
81
|
+
secondary: {
|
|
82
|
+
date: string[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
base: string[];
|
|
87
|
+
dateTitle: string[];
|
|
88
|
+
date: string[];
|
|
89
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
90
|
+
variant: {
|
|
91
|
+
solid: {};
|
|
92
|
+
};
|
|
93
|
+
color: {
|
|
94
|
+
primary: {
|
|
95
|
+
date: string[];
|
|
96
|
+
};
|
|
97
|
+
secondary: {
|
|
98
|
+
date: string[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
variant: {
|
|
103
|
+
solid: {};
|
|
104
|
+
};
|
|
105
|
+
color: {
|
|
106
|
+
primary: {
|
|
107
|
+
date: string[];
|
|
108
|
+
};
|
|
109
|
+
secondary: {
|
|
110
|
+
date: string[];
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}>, unknown, unknown, undefined>>;
|
|
114
|
+
type CalendarVariantProps = VariantProps<typeof calendarStyle>;
|
|
115
|
+
type CalendarSlots = keyof ReturnType<typeof calendarStyle>;
|
|
116
|
+
type CalendarReturnType = ReturnType<typeof calendarStyle>;
|
|
117
|
+
|
|
118
|
+
export { type CalendarProps, type CalendarReturnType, type CalendarSlots, type CalendarVariantProps, type Props, calendarStyle, Calendar as default };
|