@deepnoid/ui 0.1.156 → 0.1.158
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 +198 -188
- package/dist/{chunk-6YTT5ACI.mjs → chunk-3QE57PU3.mjs} +1 -1
- package/dist/{chunk-KKHOCWXJ.mjs → chunk-3X376ACN.mjs} +1 -1
- package/dist/{chunk-URJA4W4R.mjs → chunk-46EIW6MN.mjs} +2 -2
- package/dist/chunk-7YMXOYES.mjs +449 -0
- package/dist/{chunk-2DAIOZ7N.mjs → chunk-CSG6FDBX.mjs} +2 -2
- package/dist/{chunk-WHU5VP5G.mjs → chunk-DDFJMHBC.mjs} +57 -2
- package/dist/{chunk-ZY3HNPPG.mjs → chunk-HKHVSCER.mjs} +1 -1
- package/dist/{chunk-ZNQML73F.mjs → chunk-IRJP6BF3.mjs} +2 -2
- package/dist/{chunk-HP4ARKW3.mjs → chunk-ITFEV25U.mjs} +1 -1
- package/dist/{chunk-7RG7CQQM.mjs → chunk-JKYLYL3A.mjs} +1 -1
- package/dist/{chunk-KX6WG4VG.mjs → chunk-KLBA5J2H.mjs} +1 -1
- package/dist/chunk-L5FRTUM6.mjs +100 -0
- package/dist/chunk-OLQOLLKG.mjs +1 -0
- package/dist/{chunk-LFALITPU.mjs → chunk-PXAJEOZS.mjs} +1 -1
- package/dist/{chunk-5VVNAW4E.mjs → chunk-QHETCLHO.mjs} +2 -2
- package/dist/{chunk-Q2YLULZH.mjs → chunk-R7KUEH3N.mjs} +1 -1
- package/dist/{chunk-47MQPUEY.mjs → chunk-SFGFRMWL.mjs} +1 -1
- package/dist/{chunk-4YVZ3XKA.mjs → chunk-V64PCWVW.mjs} +3 -3
- package/dist/{chunk-R2USZD77.mjs → chunk-XHCPYYMC.mjs} +1 -1
- package/dist/{chunk-UIRHCS6B.mjs → chunk-YQYO5RLZ.mjs} +1 -1
- package/dist/{chunk-ZGUTKE5H.mjs → chunk-Z7CLJYRF.mjs} +1 -1
- package/dist/components/avatar/avatar.js +57 -2
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +57 -2
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +57 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.js +57 -2
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.js +57 -2
- package/dist/components/button/button.mjs +3 -3
- package/dist/components/button/icon-button.js +57 -2
- package/dist/components/button/icon-button.mjs +3 -3
- package/dist/components/button/index.js +57 -2
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/chip/chip.js +57 -2
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +57 -2
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +57 -2
- package/dist/components/fileUpload/fileUpload.mjs +6 -6
- package/dist/components/fileUpload/index.js +57 -2
- package/dist/components/fileUpload/index.mjs +6 -6
- package/dist/components/icon/Icon.d.mts +8 -0
- package/dist/components/icon/Icon.d.ts +8 -0
- package/dist/components/icon/Icon.js +57 -2
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +57 -2
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +2 -0
- package/dist/components/icon/template.d.ts +2 -0
- package/dist/components/icon/template.js +57 -2
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +57 -2
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +57 -2
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +57 -2
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +57 -2
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +57 -2
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.js +57 -2
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +57 -2
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +57 -2
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/picker/datePicker.d.mts +35 -4
- package/dist/components/picker/datePicker.d.ts +35 -4
- package/dist/components/picker/datePicker.js +238 -49
- package/dist/components/picker/datePicker.mjs +6 -6
- package/dist/components/picker/day.d.mts +2 -2
- package/dist/components/picker/day.d.ts +2 -2
- package/dist/components/picker/index.d.mts +1 -1
- package/dist/components/picker/index.d.ts +1 -1
- package/dist/components/picker/index.js +238 -49
- package/dist/components/picker/index.mjs +8 -8
- package/dist/components/picker/timePicker.js +57 -2
- package/dist/components/picker/timePicker.mjs +4 -4
- package/dist/components/radio/index.d.mts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/select/index.js +57 -2
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.js +57 -2
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/starRating/index.d.mts +4 -0
- package/dist/components/starRating/index.d.ts +4 -0
- package/dist/components/starRating/index.js +5279 -0
- package/dist/components/starRating/index.mjs +14 -0
- package/dist/components/starRating/starRating.d.mts +60 -0
- package/dist/components/starRating/starRating.d.ts +60 -0
- package/dist/components/starRating/starRating.js +5278 -0
- package/dist/components/starRating/starRating.mjs +15 -0
- package/dist/components/table/index.js +57 -2
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.js +57 -2
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +57 -2
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.js +57 -2
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/timePicker/calendar.js +57 -2
- package/dist/components/timePicker/calendar.mjs +2 -2
- package/dist/components/toast/index.js +57 -2
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +57 -2
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +57 -2
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +57 -2
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +57 -2
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +325 -49
- package/dist/index.mjs +37 -32
- package/package.json +1 -1
- package/dist/chunk-TCURFCQ2.mjs +0 -315
|
@@ -506,8 +506,8 @@ var template = {
|
|
|
506
506
|
{
|
|
507
507
|
fillRule: "evenodd",
|
|
508
508
|
clipRule: "evenodd",
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
|
|
510
|
+
fill: "currentColor"
|
|
511
511
|
}
|
|
512
512
|
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
513
513
|
"path",
|
|
@@ -521,6 +521,41 @@ var template = {
|
|
|
521
521
|
}
|
|
522
522
|
);
|
|
523
523
|
},
|
|
524
|
+
halfStar: ({ className }) => {
|
|
525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
526
|
+
"svg",
|
|
527
|
+
{
|
|
528
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
529
|
+
width: "18",
|
|
530
|
+
height: "18",
|
|
531
|
+
viewBox: "0 0 18 18",
|
|
532
|
+
fill: "none",
|
|
533
|
+
className,
|
|
534
|
+
children: [
|
|
535
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("clipPath", { id: "half-clip", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "0", y: "0", width: "9", height: "18" }) }) }),
|
|
536
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
537
|
+
"path",
|
|
538
|
+
{
|
|
539
|
+
fillRule: "evenodd",
|
|
540
|
+
clipRule: "evenodd",
|
|
541
|
+
fill: "currentColor",
|
|
542
|
+
d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
|
|
543
|
+
clipPath: "url(#half-clip)"
|
|
544
|
+
}
|
|
545
|
+
),
|
|
546
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
547
|
+
"path",
|
|
548
|
+
{
|
|
549
|
+
d: "M8.65925 3.23957C8.68697 3.16871 8.73417 3.1081 8.79484 3.06544C8.85552 3.02278 8.92693 3 9 3C9.07306 3 9.14448 3.02278 9.20515 3.06544C9.26583 3.1081 9.31303 3.16871 9.34074 3.23957L10.7332 6.74977C10.7593 6.81546 10.8021 6.87233 10.857 6.91413C10.912 6.95594 10.9768 6.98105 11.0445 6.98672L14.6603 7.29028C14.9873 7.31775 15.1196 7.74563 14.8706 7.96883L12.1158 10.4427C12.0644 10.4888 12.026 10.5489 12.005 10.6164C11.984 10.6839 11.981 10.7561 11.9966 10.8252L12.8386 14.5236C12.8555 14.5978 12.8511 14.6756 12.8259 14.7471C12.8006 14.8187 12.7557 14.8808 12.6968 14.9257C12.6379 14.9705 12.5677 14.996 12.495 14.999C12.4222 15.002 12.3503 14.9824 12.2882 14.9425L9.19199 12.9611C9.13418 12.9241 9.06775 12.9045 9 12.9045C8.93225 12.9045 8.86581 12.9241 8.808 12.9611L5.71181 14.9432C5.64973 14.9831 5.57778 15.0027 5.50504 14.9997C5.43231 14.9967 5.36206 14.9712 5.30316 14.9263C5.24426 14.8815 5.19936 14.8194 5.17412 14.7478C5.14889 14.6763 5.14445 14.5985 5.16138 14.5243L6.00341 10.8252C6.01903 10.7561 6.01616 10.6838 5.99511 10.6164C5.97407 10.5489 5.93568 10.4888 5.88415 10.4427L3.12936 7.96883C3.07389 7.91927 3.03369 7.85357 3.01387 7.78005C2.99405 7.70652 2.9955 7.62849 3.01802 7.55583C3.04055 7.48317 3.08314 7.41915 3.1404 7.37188C3.19767 7.3246 3.26703 7.29621 3.33971 7.29028L6.95553 6.98672C7.02319 6.98105 7.08804 6.95594 7.14296 6.91413C7.19787 6.87233 7.24072 6.81546 7.26679 6.74977L8.65925 3.23957Z",
|
|
550
|
+
stroke: "currentColor",
|
|
551
|
+
strokeLinecap: "round",
|
|
552
|
+
strokeLinejoin: "round"
|
|
553
|
+
}
|
|
554
|
+
)
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
);
|
|
558
|
+
},
|
|
524
559
|
avatar: ({ className }) => {
|
|
525
560
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
526
561
|
"svg",
|
|
@@ -1946,6 +1981,26 @@ var template = {
|
|
|
1946
1981
|
}
|
|
1947
1982
|
);
|
|
1948
1983
|
},
|
|
1984
|
+
question: ({ className = "text-white" }) => {
|
|
1985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1986
|
+
"svg",
|
|
1987
|
+
{
|
|
1988
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1989
|
+
width: "24",
|
|
1990
|
+
height: "24",
|
|
1991
|
+
viewBox: "0 0 24 24",
|
|
1992
|
+
fill: "none",
|
|
1993
|
+
className,
|
|
1994
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1995
|
+
"path",
|
|
1996
|
+
{
|
|
1997
|
+
d: "M17 2.42969H7C4 2.42969 2 4.42969 2 7.42969V13.4297C2 16.4297 4 18.4297 7 18.4297V20.5597C7 21.3597 7.89 21.8397 8.55 21.3897L13 18.4297H17C20 18.4297 22 16.4297 22 13.4297V7.42969C22 4.42969 20 2.42969 17 2.42969ZM12 14.5997C11.58 14.5997 11.25 14.2597 11.25 13.8497C11.25 13.4397 11.58 13.0997 12 13.0997C12.42 13.0997 12.75 13.4397 12.75 13.8497C12.75 14.2597 12.42 14.5997 12 14.5997ZM13.26 10.4497C12.87 10.7097 12.75 10.8797 12.75 11.1597V11.3697C12.75 11.7797 12.41 12.1197 12 12.1197C11.59 12.1197 11.25 11.7797 11.25 11.3697V11.1597C11.25 9.99969 12.1 9.42969 12.42 9.20969C12.79 8.95969 12.91 8.78969 12.91 8.52969C12.91 8.02969 12.5 7.61969 12 7.61969C11.5 7.61969 11.09 8.02969 11.09 8.52969C11.09 8.93969 10.75 9.27969 10.34 9.27969C9.93 9.27969 9.59 8.93969 9.59 8.52969C9.59 7.19969 10.67 6.11969 12 6.11969C13.33 6.11969 14.41 7.19969 14.41 8.52969C14.41 9.66969 13.57 10.2397 13.26 10.4497Z",
|
|
1998
|
+
fill: "currentColor"
|
|
1999
|
+
}
|
|
2000
|
+
)
|
|
2001
|
+
}
|
|
2002
|
+
);
|
|
2003
|
+
},
|
|
1949
2004
|
// ----------------------------------- old ---------------------------------
|
|
1950
2005
|
// ** Status **
|
|
1951
2006
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -6658,12 +6713,25 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6658
6713
|
todayTitle,
|
|
6659
6714
|
cancelTitle,
|
|
6660
6715
|
confirmTitle,
|
|
6716
|
+
range = false,
|
|
6717
|
+
dualCalendar = false,
|
|
6661
6718
|
...inputProps
|
|
6662
6719
|
} = { ...props, ...variantProps };
|
|
6663
|
-
const [selectedDate, setSelectedDate] = (0, import_react7.useState)(value || "");
|
|
6664
|
-
const [
|
|
6720
|
+
const [selectedDate, setSelectedDate] = (0, import_react7.useState)(range ? "" : typeof value === "string" ? value || "" : "");
|
|
6721
|
+
const [selectedRange, setSelectedRange] = (0, import_react7.useState)({
|
|
6722
|
+
startDate: range && typeof value === "object" ? (value == null ? void 0 : value.startDate) || "" : "",
|
|
6723
|
+
endDate: range && typeof value === "object" ? (value == null ? void 0 : value.endDate) || "" : ""
|
|
6724
|
+
});
|
|
6725
|
+
const [tempSelectedDate, setTempSelectedDate] = (0, import_react7.useState)(selectedDate);
|
|
6726
|
+
const [tempSelectedRange, setTempSelectedRange] = (0, import_react7.useState)(selectedRange);
|
|
6727
|
+
const [rangeSelection, setRangeSelection] = (0, import_react7.useState)("start");
|
|
6665
6728
|
const [isPanelOpen, setIsPanelOpen] = (0, import_react7.useState)(false);
|
|
6666
|
-
const [
|
|
6729
|
+
const [leftCurrentDate, setLeftCurrentDate] = (0, import_react7.useState)(
|
|
6730
|
+
range && tempSelectedRange.startDate ? new Date(tempSelectedRange.startDate) : tempSelectedDate ? new Date(tempSelectedDate) : /* @__PURE__ */ new Date()
|
|
6731
|
+
);
|
|
6732
|
+
const [rightCurrentDate, setRightCurrentDate] = (0, import_react7.useState)(
|
|
6733
|
+
dualCalendar ? new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() + 1) : /* @__PURE__ */ new Date()
|
|
6734
|
+
);
|
|
6667
6735
|
const inputWrapperRef = (0, import_react7.useRef)(null);
|
|
6668
6736
|
const calendarWrapperRef = (0, import_react7.useRef)(null);
|
|
6669
6737
|
const [panelPos, setPanelPos] = (0, import_react7.useState)({ top: -9999, left: -9999 });
|
|
@@ -6680,7 +6748,16 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6680
6748
|
return dateString;
|
|
6681
6749
|
}
|
|
6682
6750
|
};
|
|
6683
|
-
const displayValue = (0, import_react7.useMemo)(() =>
|
|
6751
|
+
const displayValue = (0, import_react7.useMemo)(() => {
|
|
6752
|
+
if (range) {
|
|
6753
|
+
const start = formatDate(selectedRange.startDate);
|
|
6754
|
+
const end = formatDate(selectedRange.endDate);
|
|
6755
|
+
if (start && end) return `${start} ~ ${end}`;
|
|
6756
|
+
if (start) return start;
|
|
6757
|
+
return "";
|
|
6758
|
+
}
|
|
6759
|
+
return formatDate(selectedDate);
|
|
6760
|
+
}, [selectedDate, selectedRange, format, range]);
|
|
6684
6761
|
const calculatePosition = (0, import_react7.useCallback)(() => {
|
|
6685
6762
|
if (inputWrapperRef.current) {
|
|
6686
6763
|
const rect = inputWrapperRef.current.getBoundingClientRect();
|
|
@@ -6713,13 +6790,18 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6713
6790
|
};
|
|
6714
6791
|
const handleClearDate = (e) => {
|
|
6715
6792
|
e.preventDefault();
|
|
6716
|
-
|
|
6793
|
+
if (range) {
|
|
6794
|
+
setTempSelectedRange({ startDate: "", endDate: "" });
|
|
6795
|
+
setRangeSelection("start");
|
|
6796
|
+
} else {
|
|
6797
|
+
setTempSelectedDate("");
|
|
6798
|
+
}
|
|
6717
6799
|
};
|
|
6718
6800
|
const handleCalendarMouseDown = (e) => {
|
|
6719
6801
|
e.preventDefault();
|
|
6720
6802
|
if (blurTimeoutRef.current) clearTimeout(blurTimeoutRef.current);
|
|
6721
6803
|
};
|
|
6722
|
-
const getCalendarDates = (0, import_react7.useCallback)(() => {
|
|
6804
|
+
const getCalendarDates = (0, import_react7.useCallback)((currentDate) => {
|
|
6723
6805
|
const year = currentDate.getFullYear();
|
|
6724
6806
|
const month = currentDate.getMonth();
|
|
6725
6807
|
const firstDayOfMonth = new Date(year, month, 1).getDay();
|
|
@@ -6733,47 +6815,160 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6733
6815
|
const weeks = [];
|
|
6734
6816
|
for (let i = 0; i < dates.length; i += 7) weeks.push(dates.slice(i, i + 7));
|
|
6735
6817
|
return weeks;
|
|
6736
|
-
}, [
|
|
6737
|
-
const
|
|
6738
|
-
|
|
6739
|
-
|
|
6818
|
+
}, []);
|
|
6819
|
+
const handleLeftPrevMonth = () => {
|
|
6820
|
+
const newLeftDate = new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() - 1);
|
|
6821
|
+
setLeftCurrentDate(newLeftDate);
|
|
6822
|
+
if (dualCalendar) {
|
|
6823
|
+
setRightCurrentDate(new Date(newLeftDate.getFullYear(), newLeftDate.getMonth() + 1));
|
|
6824
|
+
}
|
|
6825
|
+
};
|
|
6826
|
+
const handleLeftNextMonth = () => {
|
|
6827
|
+
const newLeftDate = new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() + 1);
|
|
6828
|
+
setLeftCurrentDate(newLeftDate);
|
|
6829
|
+
if (dualCalendar) {
|
|
6830
|
+
setRightCurrentDate(new Date(newLeftDate.getFullYear(), newLeftDate.getMonth() + 1));
|
|
6831
|
+
}
|
|
6832
|
+
};
|
|
6833
|
+
const handleRightNextMonth = () => {
|
|
6834
|
+
if (!dualCalendar) return;
|
|
6835
|
+
const newRightDate = new Date(rightCurrentDate.getFullYear(), rightCurrentDate.getMonth() + 1);
|
|
6836
|
+
setRightCurrentDate(newRightDate);
|
|
6837
|
+
setLeftCurrentDate(new Date(newRightDate.getFullYear(), newRightDate.getMonth() - 1));
|
|
6838
|
+
};
|
|
6839
|
+
const handleDateSelect = (date, isCurrentMonth, currentDate) => {
|
|
6740
6840
|
if (!isCurrentMonth) return;
|
|
6741
6841
|
const selected = new Date(currentDate.getFullYear(), currentDate.getMonth(), date);
|
|
6742
6842
|
const formatted = formatDateToString(selected);
|
|
6743
|
-
|
|
6843
|
+
if (range) {
|
|
6844
|
+
if (rangeSelection === "start") {
|
|
6845
|
+
setTempSelectedRange({ startDate: formatted, endDate: "" });
|
|
6846
|
+
setRangeSelection("end");
|
|
6847
|
+
} else {
|
|
6848
|
+
const startDate = new Date(tempSelectedRange.startDate);
|
|
6849
|
+
if (selected >= startDate) {
|
|
6850
|
+
setTempSelectedRange({ ...tempSelectedRange, endDate: formatted });
|
|
6851
|
+
} else {
|
|
6852
|
+
setTempSelectedRange({ startDate: formatted, endDate: tempSelectedRange.startDate });
|
|
6853
|
+
}
|
|
6854
|
+
}
|
|
6855
|
+
} else {
|
|
6856
|
+
setTempSelectedDate(formatted);
|
|
6857
|
+
}
|
|
6744
6858
|
};
|
|
6745
6859
|
const handleSetToday = () => {
|
|
6746
6860
|
const today = /* @__PURE__ */ new Date();
|
|
6747
6861
|
const formatted = formatDateToString(today);
|
|
6748
|
-
|
|
6749
|
-
|
|
6862
|
+
if (range) {
|
|
6863
|
+
if (rangeSelection === "start") {
|
|
6864
|
+
setTempSelectedRange({ startDate: formatted, endDate: "" });
|
|
6865
|
+
setRangeSelection("end");
|
|
6866
|
+
} else {
|
|
6867
|
+
const startDate = new Date(tempSelectedRange.startDate);
|
|
6868
|
+
if (today >= startDate) {
|
|
6869
|
+
setTempSelectedRange({ ...tempSelectedRange, endDate: formatted });
|
|
6870
|
+
} else {
|
|
6871
|
+
setTempSelectedRange({ startDate: formatted, endDate: tempSelectedRange.startDate });
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
} else {
|
|
6875
|
+
setLeftCurrentDate(today);
|
|
6876
|
+
if (dualCalendar) setRightCurrentDate(new Date(today.getFullYear(), today.getMonth() + 1));
|
|
6877
|
+
setTempSelectedDate(formatted);
|
|
6878
|
+
}
|
|
6750
6879
|
};
|
|
6751
6880
|
const handleConfirmDate = () => {
|
|
6752
|
-
|
|
6753
|
-
|
|
6881
|
+
if (range) {
|
|
6882
|
+
setSelectedRange(tempSelectedRange);
|
|
6883
|
+
onChange == null ? void 0 : onChange(tempSelectedRange);
|
|
6884
|
+
} else {
|
|
6885
|
+
setSelectedDate(tempSelectedDate);
|
|
6886
|
+
onChange == null ? void 0 : onChange(tempSelectedDate);
|
|
6887
|
+
}
|
|
6754
6888
|
setIsPanelOpen(false);
|
|
6755
6889
|
};
|
|
6756
6890
|
const handleResetDate = () => {
|
|
6757
|
-
|
|
6891
|
+
if (range) {
|
|
6892
|
+
setTempSelectedRange(selectedRange);
|
|
6893
|
+
setRangeSelection("start");
|
|
6894
|
+
} else {
|
|
6895
|
+
setTempSelectedDate(selectedDate);
|
|
6896
|
+
}
|
|
6758
6897
|
setIsPanelOpen(false);
|
|
6759
6898
|
};
|
|
6760
6899
|
const getDayProps = (0, import_react7.useCallback)(
|
|
6761
|
-
(dateObj) => {
|
|
6900
|
+
(dateObj, currentDate) => {
|
|
6762
6901
|
const today = /* @__PURE__ */ new Date();
|
|
6763
6902
|
const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6903
|
+
if (range) {
|
|
6904
|
+
const startFormatted = tempSelectedRange.startDate ? formatStringToDate(tempSelectedRange.startDate) : null;
|
|
6905
|
+
const endFormatted = tempSelectedRange.endDate ? formatStringToDate(tempSelectedRange.endDate) : null;
|
|
6906
|
+
const currentFormatted = new Date(currentDate.getFullYear(), currentDate.getMonth(), dateObj.date);
|
|
6907
|
+
const isStartSelected = startFormatted && startFormatted.getDate() === dateObj.date && startFormatted.getMonth() === currentDate.getMonth() && startFormatted.getFullYear() === currentDate.getFullYear();
|
|
6908
|
+
const isEndSelected = endFormatted && endFormatted.getDate() === dateObj.date && endFormatted.getMonth() === currentDate.getMonth() && endFormatted.getFullYear() === currentDate.getFullYear();
|
|
6909
|
+
const isInRange = startFormatted && endFormatted && currentFormatted > startFormatted && currentFormatted < endFormatted;
|
|
6910
|
+
if (dateObj.currentMonth && (isStartSelected || isEndSelected)) return "selected";
|
|
6911
|
+
if (dateObj.currentMonth && isInRange) return "period";
|
|
6912
|
+
if (dateObj.currentMonth && isToday) return "today";
|
|
6913
|
+
if (!dateObj.currentMonth) return "disabled";
|
|
6914
|
+
return "default";
|
|
6915
|
+
} else {
|
|
6916
|
+
const formatted = tempSelectedDate ? formatStringToDate(tempSelectedDate) : null;
|
|
6917
|
+
const isSelected = (formatted == null ? void 0 : formatted.getDate()) === dateObj.date && formatted.getMonth() === currentDate.getMonth() && formatted.getFullYear() === currentDate.getFullYear();
|
|
6918
|
+
return dateObj.currentMonth && isSelected ? "selected" : dateObj.currentMonth && isToday ? "today" : !dateObj.currentMonth ? "disabled" : "default";
|
|
6919
|
+
}
|
|
6767
6920
|
},
|
|
6768
|
-
[tempSelectedDate,
|
|
6921
|
+
[tempSelectedDate, tempSelectedRange, range]
|
|
6769
6922
|
);
|
|
6923
|
+
const getPlaceholderText = () => {
|
|
6924
|
+
return placeholder;
|
|
6925
|
+
};
|
|
6770
6926
|
(0, import_react7.useEffect)(() => {
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6927
|
+
if (range && typeof value === "object") {
|
|
6928
|
+
setSelectedRange(value || { startDate: "", endDate: "" });
|
|
6929
|
+
setTempSelectedRange(value || { startDate: "", endDate: "" });
|
|
6930
|
+
if (value == null ? void 0 : value.startDate) setLeftCurrentDate(new Date(value.startDate));
|
|
6931
|
+
} else if (!range && typeof value === "string") {
|
|
6932
|
+
setSelectedDate(value || "");
|
|
6933
|
+
setTempSelectedDate(value || "");
|
|
6934
|
+
if (value) setLeftCurrentDate(new Date(value));
|
|
6935
|
+
}
|
|
6936
|
+
}, [value, range]);
|
|
6937
|
+
(0, import_react7.useEffect)(() => {
|
|
6938
|
+
if (dualCalendar) {
|
|
6939
|
+
setRightCurrentDate(new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() + 1));
|
|
6940
|
+
}
|
|
6941
|
+
}, [leftCurrentDate, dualCalendar]);
|
|
6942
|
+
const slots = (0, import_react7.useMemo)(() => datePickerStyle({ ...variantProps, dualCalendar }), [variantProps, dualCalendar]);
|
|
6776
6943
|
const endContent = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon_default, { name: "calendar", size, className: "cursor-pointer", fill: true, onClick: handleCalendarIconClick });
|
|
6944
|
+
const renderCalendar = (currentDate, isLeft) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-[5px]", children: [
|
|
6945
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: slots.calendarHead({ class: classNames == null ? void 0 : classNames.calendarHead }), children: dualCalendar ? isLeft ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "left", variant: "soft", color: "neutral", onClick: handleLeftPrevMonth }),
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
|
|
6948
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "w-8" })
|
|
6949
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6950
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "w-8" }),
|
|
6951
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
|
|
6952
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "right", variant: "soft", color: "neutral", onClick: handleRightNextMonth })
|
|
6953
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6954
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "left", variant: "soft", color: "neutral", onClick: handleLeftPrevMonth }),
|
|
6955
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
|
|
6956
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "right", variant: "soft", color: "neutral", onClick: handleLeftNextMonth })
|
|
6957
|
+
] }) }),
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "grid grid-cols-7", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(day_default, { variant: "text", children: day }, `${day}-${index}`)) }),
|
|
6959
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "grid grid-cols-7 gap-y-[5px] text-center", children: getCalendarDates(currentDate).map((week, weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react7.Fragment, { children: week.map((dateObj, index) => {
|
|
6960
|
+
const dayVariant = getDayProps(dateObj, currentDate);
|
|
6961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6962
|
+
day_default,
|
|
6963
|
+
{
|
|
6964
|
+
variant: dayVariant,
|
|
6965
|
+
onClick: () => handleDateSelect(dateObj.date, dateObj.currentMonth, currentDate),
|
|
6966
|
+
children: dateObj.date
|
|
6967
|
+
},
|
|
6968
|
+
index
|
|
6969
|
+
);
|
|
6970
|
+
}) }, weekIndex)) })
|
|
6971
|
+
] });
|
|
6777
6972
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6778
6973
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref: inputWrapperRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onClick: handleFocusInput, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6779
6974
|
input_default,
|
|
@@ -6782,7 +6977,7 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6782
6977
|
ref,
|
|
6783
6978
|
label,
|
|
6784
6979
|
value: displayValue,
|
|
6785
|
-
placeholder,
|
|
6980
|
+
placeholder: getPlaceholderText(),
|
|
6786
6981
|
errorMessage,
|
|
6787
6982
|
helperMessage,
|
|
6788
6983
|
size,
|
|
@@ -6815,22 +7010,12 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6815
7010
|
style: { position: "absolute", top: panelPos.top, left: panelPos.left, zIndex: 1e3 },
|
|
6816
7011
|
onMouseDown: handleCalendarMouseDown,
|
|
6817
7012
|
children: [
|
|
6818
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className:
|
|
6819
|
-
|
|
6820
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("
|
|
6821
|
-
|
|
7013
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: dualCalendar ? "flex gap-[10px]" : "flex", children: [
|
|
7014
|
+
renderCalendar(leftCurrentDate, true),
|
|
7015
|
+
dualCalendar && range && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-neutral-soft w-px self-stretch" }),
|
|
7016
|
+
dualCalendar && renderCalendar(rightCurrentDate, false)
|
|
6822
7017
|
] }),
|
|
6823
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
6824
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center", children: getCalendarDates().map((week, weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react7.Fragment, { children: week.map((dateObj, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6825
|
-
day_default,
|
|
6826
|
-
{
|
|
6827
|
-
variant: getDayProps(dateObj),
|
|
6828
|
-
onClick: () => handleDateSelect(dateObj.date, dateObj.currentMonth),
|
|
6829
|
-
children: dateObj.date
|
|
6830
|
-
},
|
|
6831
|
-
index
|
|
6832
|
-
)) }, weekIndex)) }),
|
|
6833
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex justify-between px-[10px]", children: [
|
|
7018
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex h-[30px] justify-between px-[10px]", children: [
|
|
6834
7019
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6835
7020
|
text_button_default,
|
|
6836
7021
|
{
|
|
@@ -6876,13 +7061,11 @@ var datePickerStyle = tv({
|
|
|
6876
7061
|
"rounded-xl",
|
|
6877
7062
|
"bg-body-background",
|
|
6878
7063
|
"shadow-drop-xl",
|
|
6879
|
-
"gap-[5px]",
|
|
6880
7064
|
"overflow-auto",
|
|
6881
|
-
"w-[300px]",
|
|
6882
7065
|
"select-none",
|
|
6883
7066
|
"p-[10px]"
|
|
6884
7067
|
],
|
|
6885
|
-
calendarHead: ["calendar-header", "flex", "items-center", "justify-between", "h-[40px]"],
|
|
7068
|
+
calendarHead: ["calendar-header", "flex", "items-center", "justify-between", "h-[40px]", "w-[280px]"],
|
|
6886
7069
|
inputBase: [],
|
|
6887
7070
|
inputWrapper: [],
|
|
6888
7071
|
input: [],
|
|
@@ -6894,13 +7077,19 @@ var datePickerStyle = tv({
|
|
|
6894
7077
|
color: { primary: {}, secondary: {} },
|
|
6895
7078
|
size: { sm: {}, md: {}, lg: {}, xl: {} },
|
|
6896
7079
|
full: { true: { base: ["w-full"] } },
|
|
6897
|
-
disabled: { true: { base: ["pointer-events-none"] } }
|
|
7080
|
+
disabled: { true: { base: ["pointer-events-none"] } },
|
|
7081
|
+
dualCalendar: {
|
|
7082
|
+
true: { calendarWrapper: ["w-fit", "gap-[10px]"] },
|
|
7083
|
+
false: { calendarWrapper: ["w-[300px]", "gap-[5px]"] }
|
|
7084
|
+
}
|
|
6898
7085
|
},
|
|
6899
7086
|
defaultVariants: {
|
|
6900
7087
|
color: "primary",
|
|
6901
7088
|
size: "md",
|
|
6902
7089
|
full: false,
|
|
6903
|
-
disabled: false
|
|
7090
|
+
disabled: false,
|
|
7091
|
+
range: false,
|
|
7092
|
+
dualCalendar: false
|
|
6904
7093
|
}
|
|
6905
7094
|
});
|
|
6906
7095
|
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import "../../chunk-4VWG4726.mjs";
|
|
3
3
|
import {
|
|
4
4
|
datePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-7YMXOYES.mjs";
|
|
6
6
|
import {
|
|
7
7
|
day_default
|
|
8
8
|
} from "../../chunk-4DESGO3D.mjs";
|
|
9
9
|
import {
|
|
10
10
|
timePicker_default
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-QHETCLHO.mjs";
|
|
12
12
|
import "../../chunk-QCEKPS7U.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-Z7CLJYRF.mjs";
|
|
14
14
|
import "../../chunk-FWFEKWWD.mjs";
|
|
15
15
|
import "../../chunk-2GCSFWHD.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-SFGFRMWL.mjs";
|
|
17
17
|
import "../../chunk-MY5U63QO.mjs";
|
|
18
18
|
import "../../chunk-Q364C3FI.mjs";
|
|
19
19
|
import "../../chunk-ITWKPTSD.mjs";
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-YQYO5RLZ.mjs";
|
|
21
|
+
import "../../chunk-JKYLYL3A.mjs";
|
|
22
22
|
import "../../chunk-6WSACUIB.mjs";
|
|
23
23
|
import "../../chunk-LXHUO6VM.mjs";
|
|
24
24
|
import "../../chunk-SZL743JC.mjs";
|
|
25
25
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
26
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-R7KUEH3N.mjs";
|
|
27
27
|
import "../../chunk-E3G5QXSH.mjs";
|
|
28
|
-
import "../../chunk-
|
|
28
|
+
import "../../chunk-DDFJMHBC.mjs";
|
|
29
29
|
import "../../chunk-CDXBML6O.mjs";
|
|
30
30
|
import "../../chunk-27Y6K5NK.mjs";
|
|
31
31
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -459,8 +459,8 @@ var template = {
|
|
|
459
459
|
{
|
|
460
460
|
fillRule: "evenodd",
|
|
461
461
|
clipRule: "evenodd",
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
|
|
463
|
+
fill: "currentColor"
|
|
464
464
|
}
|
|
465
465
|
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
466
466
|
"path",
|
|
@@ -474,6 +474,41 @@ var template = {
|
|
|
474
474
|
}
|
|
475
475
|
);
|
|
476
476
|
},
|
|
477
|
+
halfStar: ({ className }) => {
|
|
478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
479
|
+
"svg",
|
|
480
|
+
{
|
|
481
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
482
|
+
width: "18",
|
|
483
|
+
height: "18",
|
|
484
|
+
viewBox: "0 0 18 18",
|
|
485
|
+
fill: "none",
|
|
486
|
+
className,
|
|
487
|
+
children: [
|
|
488
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: "half-clip", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "0", y: "0", width: "9", height: "18" }) }) }),
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
490
|
+
"path",
|
|
491
|
+
{
|
|
492
|
+
fillRule: "evenodd",
|
|
493
|
+
clipRule: "evenodd",
|
|
494
|
+
fill: "currentColor",
|
|
495
|
+
d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
|
|
496
|
+
clipPath: "url(#half-clip)"
|
|
497
|
+
}
|
|
498
|
+
),
|
|
499
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
500
|
+
"path",
|
|
501
|
+
{
|
|
502
|
+
d: "M8.65925 3.23957C8.68697 3.16871 8.73417 3.1081 8.79484 3.06544C8.85552 3.02278 8.92693 3 9 3C9.07306 3 9.14448 3.02278 9.20515 3.06544C9.26583 3.1081 9.31303 3.16871 9.34074 3.23957L10.7332 6.74977C10.7593 6.81546 10.8021 6.87233 10.857 6.91413C10.912 6.95594 10.9768 6.98105 11.0445 6.98672L14.6603 7.29028C14.9873 7.31775 15.1196 7.74563 14.8706 7.96883L12.1158 10.4427C12.0644 10.4888 12.026 10.5489 12.005 10.6164C11.984 10.6839 11.981 10.7561 11.9966 10.8252L12.8386 14.5236C12.8555 14.5978 12.8511 14.6756 12.8259 14.7471C12.8006 14.8187 12.7557 14.8808 12.6968 14.9257C12.6379 14.9705 12.5677 14.996 12.495 14.999C12.4222 15.002 12.3503 14.9824 12.2882 14.9425L9.19199 12.9611C9.13418 12.9241 9.06775 12.9045 9 12.9045C8.93225 12.9045 8.86581 12.9241 8.808 12.9611L5.71181 14.9432C5.64973 14.9831 5.57778 15.0027 5.50504 14.9997C5.43231 14.9967 5.36206 14.9712 5.30316 14.9263C5.24426 14.8815 5.19936 14.8194 5.17412 14.7478C5.14889 14.6763 5.14445 14.5985 5.16138 14.5243L6.00341 10.8252C6.01903 10.7561 6.01616 10.6838 5.99511 10.6164C5.97407 10.5489 5.93568 10.4888 5.88415 10.4427L3.12936 7.96883C3.07389 7.91927 3.03369 7.85357 3.01387 7.78005C2.99405 7.70652 2.9955 7.62849 3.01802 7.55583C3.04055 7.48317 3.08314 7.41915 3.1404 7.37188C3.19767 7.3246 3.26703 7.29621 3.33971 7.29028L6.95553 6.98672C7.02319 6.98105 7.08804 6.95594 7.14296 6.91413C7.19787 6.87233 7.24072 6.81546 7.26679 6.74977L8.65925 3.23957Z",
|
|
503
|
+
stroke: "currentColor",
|
|
504
|
+
strokeLinecap: "round",
|
|
505
|
+
strokeLinejoin: "round"
|
|
506
|
+
}
|
|
507
|
+
)
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
);
|
|
511
|
+
},
|
|
477
512
|
avatar: ({ className }) => {
|
|
478
513
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
479
514
|
"svg",
|
|
@@ -1899,6 +1934,26 @@ var template = {
|
|
|
1899
1934
|
}
|
|
1900
1935
|
);
|
|
1901
1936
|
},
|
|
1937
|
+
question: ({ className = "text-white" }) => {
|
|
1938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1939
|
+
"svg",
|
|
1940
|
+
{
|
|
1941
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1942
|
+
width: "24",
|
|
1943
|
+
height: "24",
|
|
1944
|
+
viewBox: "0 0 24 24",
|
|
1945
|
+
fill: "none",
|
|
1946
|
+
className,
|
|
1947
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1948
|
+
"path",
|
|
1949
|
+
{
|
|
1950
|
+
d: "M17 2.42969H7C4 2.42969 2 4.42969 2 7.42969V13.4297C2 16.4297 4 18.4297 7 18.4297V20.5597C7 21.3597 7.89 21.8397 8.55 21.3897L13 18.4297H17C20 18.4297 22 16.4297 22 13.4297V7.42969C22 4.42969 20 2.42969 17 2.42969ZM12 14.5997C11.58 14.5997 11.25 14.2597 11.25 13.8497C11.25 13.4397 11.58 13.0997 12 13.0997C12.42 13.0997 12.75 13.4397 12.75 13.8497C12.75 14.2597 12.42 14.5997 12 14.5997ZM13.26 10.4497C12.87 10.7097 12.75 10.8797 12.75 11.1597V11.3697C12.75 11.7797 12.41 12.1197 12 12.1197C11.59 12.1197 11.25 11.7797 11.25 11.3697V11.1597C11.25 9.99969 12.1 9.42969 12.42 9.20969C12.79 8.95969 12.91 8.78969 12.91 8.52969C12.91 8.02969 12.5 7.61969 12 7.61969C11.5 7.61969 11.09 8.02969 11.09 8.52969C11.09 8.93969 10.75 9.27969 10.34 9.27969C9.93 9.27969 9.59 8.93969 9.59 8.52969C9.59 7.19969 10.67 6.11969 12 6.11969C13.33 6.11969 14.41 7.19969 14.41 8.52969C14.41 9.66969 13.57 10.2397 13.26 10.4497Z",
|
|
1951
|
+
fill: "currentColor"
|
|
1952
|
+
}
|
|
1953
|
+
)
|
|
1954
|
+
}
|
|
1955
|
+
);
|
|
1956
|
+
},
|
|
1902
1957
|
// ----------------------------------- old ---------------------------------
|
|
1903
1958
|
// ** Status **
|
|
1904
1959
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
timePickerStyle,
|
|
4
4
|
timePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-QHETCLHO.mjs";
|
|
6
6
|
import "../../chunk-QCEKPS7U.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-Z7CLJYRF.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-R7KUEH3N.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-DDFJMHBC.mjs";
|
|
12
12
|
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -460,8 +460,8 @@ var template = {
|
|
|
460
460
|
{
|
|
461
461
|
fillRule: "evenodd",
|
|
462
462
|
clipRule: "evenodd",
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
|
|
464
|
+
fill: "currentColor"
|
|
465
465
|
}
|
|
466
466
|
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
467
467
|
"path",
|
|
@@ -475,6 +475,41 @@ var template = {
|
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
477
|
},
|
|
478
|
+
halfStar: ({ className }) => {
|
|
479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
480
|
+
"svg",
|
|
481
|
+
{
|
|
482
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
483
|
+
width: "18",
|
|
484
|
+
height: "18",
|
|
485
|
+
viewBox: "0 0 18 18",
|
|
486
|
+
fill: "none",
|
|
487
|
+
className,
|
|
488
|
+
children: [
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: "half-clip", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "0", y: "0", width: "9", height: "18" }) }) }),
|
|
490
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
491
|
+
"path",
|
|
492
|
+
{
|
|
493
|
+
fillRule: "evenodd",
|
|
494
|
+
clipRule: "evenodd",
|
|
495
|
+
fill: "currentColor",
|
|
496
|
+
d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
|
|
497
|
+
clipPath: "url(#half-clip)"
|
|
498
|
+
}
|
|
499
|
+
),
|
|
500
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
501
|
+
"path",
|
|
502
|
+
{
|
|
503
|
+
d: "M8.65925 3.23957C8.68697 3.16871 8.73417 3.1081 8.79484 3.06544C8.85552 3.02278 8.92693 3 9 3C9.07306 3 9.14448 3.02278 9.20515 3.06544C9.26583 3.1081 9.31303 3.16871 9.34074 3.23957L10.7332 6.74977C10.7593 6.81546 10.8021 6.87233 10.857 6.91413C10.912 6.95594 10.9768 6.98105 11.0445 6.98672L14.6603 7.29028C14.9873 7.31775 15.1196 7.74563 14.8706 7.96883L12.1158 10.4427C12.0644 10.4888 12.026 10.5489 12.005 10.6164C11.984 10.6839 11.981 10.7561 11.9966 10.8252L12.8386 14.5236C12.8555 14.5978 12.8511 14.6756 12.8259 14.7471C12.8006 14.8187 12.7557 14.8808 12.6968 14.9257C12.6379 14.9705 12.5677 14.996 12.495 14.999C12.4222 15.002 12.3503 14.9824 12.2882 14.9425L9.19199 12.9611C9.13418 12.9241 9.06775 12.9045 9 12.9045C8.93225 12.9045 8.86581 12.9241 8.808 12.9611L5.71181 14.9432C5.64973 14.9831 5.57778 15.0027 5.50504 14.9997C5.43231 14.9967 5.36206 14.9712 5.30316 14.9263C5.24426 14.8815 5.19936 14.8194 5.17412 14.7478C5.14889 14.6763 5.14445 14.5985 5.16138 14.5243L6.00341 10.8252C6.01903 10.7561 6.01616 10.6838 5.99511 10.6164C5.97407 10.5489 5.93568 10.4888 5.88415 10.4427L3.12936 7.96883C3.07389 7.91927 3.03369 7.85357 3.01387 7.78005C2.99405 7.70652 2.9955 7.62849 3.01802 7.55583C3.04055 7.48317 3.08314 7.41915 3.1404 7.37188C3.19767 7.3246 3.26703 7.29621 3.33971 7.29028L6.95553 6.98672C7.02319 6.98105 7.08804 6.95594 7.14296 6.91413C7.19787 6.87233 7.24072 6.81546 7.26679 6.74977L8.65925 3.23957Z",
|
|
504
|
+
stroke: "currentColor",
|
|
505
|
+
strokeLinecap: "round",
|
|
506
|
+
strokeLinejoin: "round"
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
);
|
|
512
|
+
},
|
|
478
513
|
avatar: ({ className }) => {
|
|
479
514
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
480
515
|
"svg",
|
|
@@ -1900,6 +1935,26 @@ var template = {
|
|
|
1900
1935
|
}
|
|
1901
1936
|
);
|
|
1902
1937
|
},
|
|
1938
|
+
question: ({ className = "text-white" }) => {
|
|
1939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1940
|
+
"svg",
|
|
1941
|
+
{
|
|
1942
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1943
|
+
width: "24",
|
|
1944
|
+
height: "24",
|
|
1945
|
+
viewBox: "0 0 24 24",
|
|
1946
|
+
fill: "none",
|
|
1947
|
+
className,
|
|
1948
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1949
|
+
"path",
|
|
1950
|
+
{
|
|
1951
|
+
d: "M17 2.42969H7C4 2.42969 2 4.42969 2 7.42969V13.4297C2 16.4297 4 18.4297 7 18.4297V20.5597C7 21.3597 7.89 21.8397 8.55 21.3897L13 18.4297H17C20 18.4297 22 16.4297 22 13.4297V7.42969C22 4.42969 20 2.42969 17 2.42969ZM12 14.5997C11.58 14.5997 11.25 14.2597 11.25 13.8497C11.25 13.4397 11.58 13.0997 12 13.0997C12.42 13.0997 12.75 13.4397 12.75 13.8497C12.75 14.2597 12.42 14.5997 12 14.5997ZM13.26 10.4497C12.87 10.7097 12.75 10.8797 12.75 11.1597V11.3697C12.75 11.7797 12.41 12.1197 12 12.1197C11.59 12.1197 11.25 11.7797 11.25 11.3697V11.1597C11.25 9.99969 12.1 9.42969 12.42 9.20969C12.79 8.95969 12.91 8.78969 12.91 8.52969C12.91 8.02969 12.5 7.61969 12 7.61969C11.5 7.61969 11.09 8.02969 11.09 8.52969C11.09 8.93969 10.75 9.27969 10.34 9.27969C9.93 9.27969 9.59 8.93969 9.59 8.52969C9.59 7.19969 10.67 6.11969 12 6.11969C13.33 6.11969 14.41 7.19969 14.41 8.52969C14.41 9.66969 13.57 10.2397 13.26 10.4497Z",
|
|
1952
|
+
fill: "currentColor"
|
|
1953
|
+
}
|
|
1954
|
+
)
|
|
1955
|
+
}
|
|
1956
|
+
);
|
|
1957
|
+
},
|
|
1903
1958
|
// ----------------------------------- old ---------------------------------
|
|
1904
1959
|
// ** Status **
|
|
1905
1960
|
"plus-circle": ({ className, fill }) => {
|