@deepnoid/ui 0.1.156 → 0.1.157
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 +161 -161
- package/dist/{chunk-KKHOCWXJ.mjs → chunk-5KOTQEFC.mjs} +1 -1
- package/dist/{chunk-UIRHCS6B.mjs → chunk-73NBUI4Y.mjs} +1 -1
- package/dist/{chunk-2DAIOZ7N.mjs → chunk-ACFDUCPL.mjs} +2 -2
- package/dist/{chunk-47MQPUEY.mjs → chunk-BFC4VP3B.mjs} +1 -1
- package/dist/{chunk-6YTT5ACI.mjs → chunk-DQ3ZRNX4.mjs} +1 -1
- package/dist/{chunk-7RG7CQQM.mjs → chunk-DSEF7GGB.mjs} +1 -1
- package/dist/{chunk-R2USZD77.mjs → chunk-HLWNJLRZ.mjs} +1 -1
- package/dist/{chunk-URJA4W4R.mjs → chunk-IN6M25YL.mjs} +2 -2
- package/dist/{chunk-ZY3HNPPG.mjs → chunk-JJAPJQUD.mjs} +1 -1
- package/dist/{chunk-Q2YLULZH.mjs → chunk-LBJN5TAP.mjs} +1 -1
- package/dist/{chunk-ZNQML73F.mjs → chunk-MGGBCCZL.mjs} +2 -2
- package/dist/{chunk-HP4ARKW3.mjs → chunk-NB45YSED.mjs} +1 -1
- package/dist/{chunk-LFALITPU.mjs → chunk-PO4H65C3.mjs} +1 -1
- package/dist/{chunk-KX6WG4VG.mjs → chunk-QJUPHJN6.mjs} +1 -1
- package/dist/{chunk-ZGUTKE5H.mjs → chunk-SHI7P4DQ.mjs} +1 -1
- package/dist/{chunk-5VVNAW4E.mjs → chunk-T6V6BJOT.mjs} +2 -2
- package/dist/chunk-T7IJB3N4.mjs +449 -0
- package/dist/{chunk-WHU5VP5G.mjs → chunk-VUMESK5D.mjs} +20 -0
- package/dist/{chunk-4YVZ3XKA.mjs → chunk-ZUAOUHWS.mjs} +3 -3
- package/dist/components/avatar/avatar.js +20 -0
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +20 -0
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +20 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.js +20 -0
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.js +20 -0
- package/dist/components/button/button.mjs +3 -3
- package/dist/components/button/icon-button.js +20 -0
- package/dist/components/button/icon-button.mjs +3 -3
- package/dist/components/button/index.js +20 -0
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/chip/chip.js +20 -0
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +20 -0
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +20 -0
- package/dist/components/fileUpload/fileUpload.mjs +6 -6
- package/dist/components/fileUpload/index.js +20 -0
- package/dist/components/fileUpload/index.mjs +6 -6
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +20 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +20 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +20 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +20 -0
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +20 -0
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +20 -0
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +20 -0
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +20 -0
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.js +20 -0
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +20 -0
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +20 -0
- 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 +201 -47
- package/dist/components/picker/datePicker.mjs +6 -6
- package/dist/components/picker/index.d.mts +1 -1
- package/dist/components/picker/index.d.ts +1 -1
- package/dist/components/picker/index.js +201 -47
- package/dist/components/picker/index.mjs +8 -8
- package/dist/components/picker/timePicker.js +20 -0
- 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 +20 -0
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.js +20 -0
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +20 -0
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table-body.js +20 -0
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +20 -0
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.js +20 -0
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/timePicker/calendar.js +20 -0
- package/dist/components/timePicker/calendar.mjs +2 -2
- package/dist/components/toast/index.js +20 -0
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +20 -0
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +20 -0
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +20 -0
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +20 -0
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +201 -47
- package/dist/index.mjs +19 -19
- package/package.json +1 -1
- package/dist/chunk-TCURFCQ2.mjs +0 -315
|
@@ -1946,6 +1946,26 @@ var template = {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
);
|
|
1948
1948
|
},
|
|
1949
|
+
question: ({ className = "text-white" }) => {
|
|
1950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1951
|
+
"svg",
|
|
1952
|
+
{
|
|
1953
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1954
|
+
width: "24",
|
|
1955
|
+
height: "24",
|
|
1956
|
+
viewBox: "0 0 24 24",
|
|
1957
|
+
fill: "none",
|
|
1958
|
+
className,
|
|
1959
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1960
|
+
"path",
|
|
1961
|
+
{
|
|
1962
|
+
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",
|
|
1963
|
+
fill: "currentColor"
|
|
1964
|
+
}
|
|
1965
|
+
)
|
|
1966
|
+
}
|
|
1967
|
+
);
|
|
1968
|
+
},
|
|
1949
1969
|
// ----------------------------------- old ---------------------------------
|
|
1950
1970
|
// ** Status **
|
|
1951
1971
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -6658,12 +6678,25 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6658
6678
|
todayTitle,
|
|
6659
6679
|
cancelTitle,
|
|
6660
6680
|
confirmTitle,
|
|
6681
|
+
range = false,
|
|
6682
|
+
dualCalendar = false,
|
|
6661
6683
|
...inputProps
|
|
6662
6684
|
} = { ...props, ...variantProps };
|
|
6663
|
-
const [selectedDate, setSelectedDate] = (0, import_react7.useState)(value || "");
|
|
6664
|
-
const [
|
|
6685
|
+
const [selectedDate, setSelectedDate] = (0, import_react7.useState)(range ? "" : typeof value === "string" ? value || "" : "");
|
|
6686
|
+
const [selectedRange, setSelectedRange] = (0, import_react7.useState)({
|
|
6687
|
+
startDate: range && typeof value === "object" ? (value == null ? void 0 : value.startDate) || "" : "",
|
|
6688
|
+
endDate: range && typeof value === "object" ? (value == null ? void 0 : value.endDate) || "" : ""
|
|
6689
|
+
});
|
|
6690
|
+
const [tempSelectedDate, setTempSelectedDate] = (0, import_react7.useState)(selectedDate);
|
|
6691
|
+
const [tempSelectedRange, setTempSelectedRange] = (0, import_react7.useState)(selectedRange);
|
|
6692
|
+
const [rangeSelection, setRangeSelection] = (0, import_react7.useState)("start");
|
|
6665
6693
|
const [isPanelOpen, setIsPanelOpen] = (0, import_react7.useState)(false);
|
|
6666
|
-
const [
|
|
6694
|
+
const [leftCurrentDate, setLeftCurrentDate] = (0, import_react7.useState)(
|
|
6695
|
+
range && tempSelectedRange.startDate ? new Date(tempSelectedRange.startDate) : tempSelectedDate ? new Date(tempSelectedDate) : /* @__PURE__ */ new Date()
|
|
6696
|
+
);
|
|
6697
|
+
const [rightCurrentDate, setRightCurrentDate] = (0, import_react7.useState)(
|
|
6698
|
+
dualCalendar ? new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() + 1) : /* @__PURE__ */ new Date()
|
|
6699
|
+
);
|
|
6667
6700
|
const inputWrapperRef = (0, import_react7.useRef)(null);
|
|
6668
6701
|
const calendarWrapperRef = (0, import_react7.useRef)(null);
|
|
6669
6702
|
const [panelPos, setPanelPos] = (0, import_react7.useState)({ top: -9999, left: -9999 });
|
|
@@ -6680,7 +6713,16 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6680
6713
|
return dateString;
|
|
6681
6714
|
}
|
|
6682
6715
|
};
|
|
6683
|
-
const displayValue = (0, import_react7.useMemo)(() =>
|
|
6716
|
+
const displayValue = (0, import_react7.useMemo)(() => {
|
|
6717
|
+
if (range) {
|
|
6718
|
+
const start = formatDate(selectedRange.startDate);
|
|
6719
|
+
const end = formatDate(selectedRange.endDate);
|
|
6720
|
+
if (start && end) return `${start} ~ ${end}`;
|
|
6721
|
+
if (start) return start;
|
|
6722
|
+
return "";
|
|
6723
|
+
}
|
|
6724
|
+
return formatDate(selectedDate);
|
|
6725
|
+
}, [selectedDate, selectedRange, format, range]);
|
|
6684
6726
|
const calculatePosition = (0, import_react7.useCallback)(() => {
|
|
6685
6727
|
if (inputWrapperRef.current) {
|
|
6686
6728
|
const rect = inputWrapperRef.current.getBoundingClientRect();
|
|
@@ -6713,13 +6755,18 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6713
6755
|
};
|
|
6714
6756
|
const handleClearDate = (e) => {
|
|
6715
6757
|
e.preventDefault();
|
|
6716
|
-
|
|
6758
|
+
if (range) {
|
|
6759
|
+
setTempSelectedRange({ startDate: "", endDate: "" });
|
|
6760
|
+
setRangeSelection("start");
|
|
6761
|
+
} else {
|
|
6762
|
+
setTempSelectedDate("");
|
|
6763
|
+
}
|
|
6717
6764
|
};
|
|
6718
6765
|
const handleCalendarMouseDown = (e) => {
|
|
6719
6766
|
e.preventDefault();
|
|
6720
6767
|
if (blurTimeoutRef.current) clearTimeout(blurTimeoutRef.current);
|
|
6721
6768
|
};
|
|
6722
|
-
const getCalendarDates = (0, import_react7.useCallback)(() => {
|
|
6769
|
+
const getCalendarDates = (0, import_react7.useCallback)((currentDate) => {
|
|
6723
6770
|
const year = currentDate.getFullYear();
|
|
6724
6771
|
const month = currentDate.getMonth();
|
|
6725
6772
|
const firstDayOfMonth = new Date(year, month, 1).getDay();
|
|
@@ -6733,47 +6780,160 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6733
6780
|
const weeks = [];
|
|
6734
6781
|
for (let i = 0; i < dates.length; i += 7) weeks.push(dates.slice(i, i + 7));
|
|
6735
6782
|
return weeks;
|
|
6736
|
-
}, [
|
|
6737
|
-
const
|
|
6738
|
-
|
|
6739
|
-
|
|
6783
|
+
}, []);
|
|
6784
|
+
const handleLeftPrevMonth = () => {
|
|
6785
|
+
const newLeftDate = new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() - 1);
|
|
6786
|
+
setLeftCurrentDate(newLeftDate);
|
|
6787
|
+
if (dualCalendar) {
|
|
6788
|
+
setRightCurrentDate(new Date(newLeftDate.getFullYear(), newLeftDate.getMonth() + 1));
|
|
6789
|
+
}
|
|
6790
|
+
};
|
|
6791
|
+
const handleLeftNextMonth = () => {
|
|
6792
|
+
const newLeftDate = new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() + 1);
|
|
6793
|
+
setLeftCurrentDate(newLeftDate);
|
|
6794
|
+
if (dualCalendar) {
|
|
6795
|
+
setRightCurrentDate(new Date(newLeftDate.getFullYear(), newLeftDate.getMonth() + 1));
|
|
6796
|
+
}
|
|
6797
|
+
};
|
|
6798
|
+
const handleRightNextMonth = () => {
|
|
6799
|
+
if (!dualCalendar) return;
|
|
6800
|
+
const newRightDate = new Date(rightCurrentDate.getFullYear(), rightCurrentDate.getMonth() + 1);
|
|
6801
|
+
setRightCurrentDate(newRightDate);
|
|
6802
|
+
setLeftCurrentDate(new Date(newRightDate.getFullYear(), newRightDate.getMonth() - 1));
|
|
6803
|
+
};
|
|
6804
|
+
const handleDateSelect = (date, isCurrentMonth, currentDate) => {
|
|
6740
6805
|
if (!isCurrentMonth) return;
|
|
6741
6806
|
const selected = new Date(currentDate.getFullYear(), currentDate.getMonth(), date);
|
|
6742
6807
|
const formatted = formatDateToString(selected);
|
|
6743
|
-
|
|
6808
|
+
if (range) {
|
|
6809
|
+
if (rangeSelection === "start") {
|
|
6810
|
+
setTempSelectedRange({ startDate: formatted, endDate: "" });
|
|
6811
|
+
setRangeSelection("end");
|
|
6812
|
+
} else {
|
|
6813
|
+
const startDate = new Date(tempSelectedRange.startDate);
|
|
6814
|
+
if (selected >= startDate) {
|
|
6815
|
+
setTempSelectedRange({ ...tempSelectedRange, endDate: formatted });
|
|
6816
|
+
} else {
|
|
6817
|
+
setTempSelectedRange({ startDate: formatted, endDate: tempSelectedRange.startDate });
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6820
|
+
} else {
|
|
6821
|
+
setTempSelectedDate(formatted);
|
|
6822
|
+
}
|
|
6744
6823
|
};
|
|
6745
6824
|
const handleSetToday = () => {
|
|
6746
6825
|
const today = /* @__PURE__ */ new Date();
|
|
6747
6826
|
const formatted = formatDateToString(today);
|
|
6748
|
-
|
|
6749
|
-
|
|
6827
|
+
if (range) {
|
|
6828
|
+
if (rangeSelection === "start") {
|
|
6829
|
+
setTempSelectedRange({ startDate: formatted, endDate: "" });
|
|
6830
|
+
setRangeSelection("end");
|
|
6831
|
+
} else {
|
|
6832
|
+
const startDate = new Date(tempSelectedRange.startDate);
|
|
6833
|
+
if (today >= startDate) {
|
|
6834
|
+
setTempSelectedRange({ ...tempSelectedRange, endDate: formatted });
|
|
6835
|
+
} else {
|
|
6836
|
+
setTempSelectedRange({ startDate: formatted, endDate: tempSelectedRange.startDate });
|
|
6837
|
+
}
|
|
6838
|
+
}
|
|
6839
|
+
} else {
|
|
6840
|
+
setLeftCurrentDate(today);
|
|
6841
|
+
if (dualCalendar) setRightCurrentDate(new Date(today.getFullYear(), today.getMonth() + 1));
|
|
6842
|
+
setTempSelectedDate(formatted);
|
|
6843
|
+
}
|
|
6750
6844
|
};
|
|
6751
6845
|
const handleConfirmDate = () => {
|
|
6752
|
-
|
|
6753
|
-
|
|
6846
|
+
if (range) {
|
|
6847
|
+
setSelectedRange(tempSelectedRange);
|
|
6848
|
+
onChange == null ? void 0 : onChange(tempSelectedRange);
|
|
6849
|
+
} else {
|
|
6850
|
+
setSelectedDate(tempSelectedDate);
|
|
6851
|
+
onChange == null ? void 0 : onChange(tempSelectedDate);
|
|
6852
|
+
}
|
|
6754
6853
|
setIsPanelOpen(false);
|
|
6755
6854
|
};
|
|
6756
6855
|
const handleResetDate = () => {
|
|
6757
|
-
|
|
6856
|
+
if (range) {
|
|
6857
|
+
setTempSelectedRange(selectedRange);
|
|
6858
|
+
setRangeSelection("start");
|
|
6859
|
+
} else {
|
|
6860
|
+
setTempSelectedDate(selectedDate);
|
|
6861
|
+
}
|
|
6758
6862
|
setIsPanelOpen(false);
|
|
6759
6863
|
};
|
|
6760
6864
|
const getDayProps = (0, import_react7.useCallback)(
|
|
6761
|
-
(dateObj) => {
|
|
6865
|
+
(dateObj, currentDate) => {
|
|
6762
6866
|
const today = /* @__PURE__ */ new Date();
|
|
6763
6867
|
const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6868
|
+
if (range) {
|
|
6869
|
+
const startFormatted = tempSelectedRange.startDate ? formatStringToDate(tempSelectedRange.startDate) : null;
|
|
6870
|
+
const endFormatted = tempSelectedRange.endDate ? formatStringToDate(tempSelectedRange.endDate) : null;
|
|
6871
|
+
const currentFormatted = new Date(currentDate.getFullYear(), currentDate.getMonth(), dateObj.date);
|
|
6872
|
+
const isStartSelected = startFormatted && startFormatted.getDate() === dateObj.date && startFormatted.getMonth() === currentDate.getMonth() && startFormatted.getFullYear() === currentDate.getFullYear();
|
|
6873
|
+
const isEndSelected = endFormatted && endFormatted.getDate() === dateObj.date && endFormatted.getMonth() === currentDate.getMonth() && endFormatted.getFullYear() === currentDate.getFullYear();
|
|
6874
|
+
const isInRange = startFormatted && endFormatted && currentFormatted > startFormatted && currentFormatted < endFormatted;
|
|
6875
|
+
if (dateObj.currentMonth && (isStartSelected || isEndSelected)) return "selected";
|
|
6876
|
+
if (dateObj.currentMonth && isInRange) return "period";
|
|
6877
|
+
if (dateObj.currentMonth && isToday) return "today";
|
|
6878
|
+
if (!dateObj.currentMonth) return "disabled";
|
|
6879
|
+
return "default";
|
|
6880
|
+
} else {
|
|
6881
|
+
const formatted = tempSelectedDate ? formatStringToDate(tempSelectedDate) : null;
|
|
6882
|
+
const isSelected = (formatted == null ? void 0 : formatted.getDate()) === dateObj.date && formatted.getMonth() === currentDate.getMonth() && formatted.getFullYear() === currentDate.getFullYear();
|
|
6883
|
+
return dateObj.currentMonth && isSelected ? "selected" : dateObj.currentMonth && isToday ? "today" : !dateObj.currentMonth ? "disabled" : "default";
|
|
6884
|
+
}
|
|
6767
6885
|
},
|
|
6768
|
-
[tempSelectedDate,
|
|
6886
|
+
[tempSelectedDate, tempSelectedRange, range]
|
|
6769
6887
|
);
|
|
6888
|
+
const getPlaceholderText = () => {
|
|
6889
|
+
return placeholder;
|
|
6890
|
+
};
|
|
6891
|
+
(0, import_react7.useEffect)(() => {
|
|
6892
|
+
if (range && typeof value === "object") {
|
|
6893
|
+
setSelectedRange(value || { startDate: "", endDate: "" });
|
|
6894
|
+
setTempSelectedRange(value || { startDate: "", endDate: "" });
|
|
6895
|
+
if (value == null ? void 0 : value.startDate) setLeftCurrentDate(new Date(value.startDate));
|
|
6896
|
+
} else if (!range && typeof value === "string") {
|
|
6897
|
+
setSelectedDate(value || "");
|
|
6898
|
+
setTempSelectedDate(value || "");
|
|
6899
|
+
if (value) setLeftCurrentDate(new Date(value));
|
|
6900
|
+
}
|
|
6901
|
+
}, [value, range]);
|
|
6770
6902
|
(0, import_react7.useEffect)(() => {
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
}, [
|
|
6775
|
-
const slots = (0, import_react7.useMemo)(() => datePickerStyle({ ...variantProps }), [variantProps]);
|
|
6903
|
+
if (dualCalendar) {
|
|
6904
|
+
setRightCurrentDate(new Date(leftCurrentDate.getFullYear(), leftCurrentDate.getMonth() + 1));
|
|
6905
|
+
}
|
|
6906
|
+
}, [leftCurrentDate, dualCalendar]);
|
|
6907
|
+
const slots = (0, import_react7.useMemo)(() => datePickerStyle({ ...variantProps, dualCalendar }), [variantProps, dualCalendar]);
|
|
6776
6908
|
const endContent = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon_default, { name: "calendar", size, className: "cursor-pointer", fill: true, onClick: handleCalendarIconClick });
|
|
6909
|
+
const renderCalendar = (currentDate, isLeft) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-[5px]", children: [
|
|
6910
|
+
/* @__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: [
|
|
6911
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "left", variant: "soft", color: "neutral", onClick: handleLeftPrevMonth }),
|
|
6912
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
|
|
6913
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "w-8" })
|
|
6914
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6915
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "w-8" }),
|
|
6916
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
|
|
6917
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "right", variant: "soft", color: "neutral", onClick: handleRightNextMonth })
|
|
6918
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6919
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "left", variant: "soft", color: "neutral", onClick: handleLeftPrevMonth }),
|
|
6920
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
|
|
6921
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(icon_button_default, { name: "right", variant: "soft", color: "neutral", onClick: handleLeftNextMonth })
|
|
6922
|
+
] }) }),
|
|
6923
|
+
/* @__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}`)) }),
|
|
6924
|
+
/* @__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) => {
|
|
6925
|
+
const dayVariant = getDayProps(dateObj, currentDate);
|
|
6926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6927
|
+
day_default,
|
|
6928
|
+
{
|
|
6929
|
+
variant: dayVariant,
|
|
6930
|
+
onClick: () => handleDateSelect(dateObj.date, dateObj.currentMonth, currentDate),
|
|
6931
|
+
children: dateObj.date
|
|
6932
|
+
},
|
|
6933
|
+
index
|
|
6934
|
+
);
|
|
6935
|
+
}) }, weekIndex)) })
|
|
6936
|
+
] });
|
|
6777
6937
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
6778
6938
|
/* @__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
6939
|
input_default,
|
|
@@ -6782,7 +6942,7 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6782
6942
|
ref,
|
|
6783
6943
|
label,
|
|
6784
6944
|
value: displayValue,
|
|
6785
|
-
placeholder,
|
|
6945
|
+
placeholder: getPlaceholderText(),
|
|
6786
6946
|
errorMessage,
|
|
6787
6947
|
helperMessage,
|
|
6788
6948
|
size,
|
|
@@ -6815,22 +6975,12 @@ var DatePicker = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
6815
6975
|
style: { position: "absolute", top: panelPos.top, left: panelPos.left, zIndex: 1e3 },
|
|
6816
6976
|
onMouseDown: handleCalendarMouseDown,
|
|
6817
6977
|
children: [
|
|
6818
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className:
|
|
6819
|
-
|
|
6820
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("
|
|
6821
|
-
|
|
6978
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: dualCalendar ? "flex gap-[10px]" : "flex", children: [
|
|
6979
|
+
renderCalendar(leftCurrentDate, true),
|
|
6980
|
+
dualCalendar && range && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-neutral-soft w-px self-stretch" }),
|
|
6981
|
+
dualCalendar && renderCalendar(rightCurrentDate, false)
|
|
6822
6982
|
] }),
|
|
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: [
|
|
6983
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex h-[30px] justify-between px-[10px]", children: [
|
|
6834
6984
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6835
6985
|
text_button_default,
|
|
6836
6986
|
{
|
|
@@ -6876,13 +7026,11 @@ var datePickerStyle = tv({
|
|
|
6876
7026
|
"rounded-xl",
|
|
6877
7027
|
"bg-body-background",
|
|
6878
7028
|
"shadow-drop-xl",
|
|
6879
|
-
"gap-[5px]",
|
|
6880
7029
|
"overflow-auto",
|
|
6881
|
-
"w-[300px]",
|
|
6882
7030
|
"select-none",
|
|
6883
7031
|
"p-[10px]"
|
|
6884
7032
|
],
|
|
6885
|
-
calendarHead: ["calendar-header", "flex", "items-center", "justify-between", "h-[40px]"],
|
|
7033
|
+
calendarHead: ["calendar-header", "flex", "items-center", "justify-between", "h-[40px]", "w-[280px]"],
|
|
6886
7034
|
inputBase: [],
|
|
6887
7035
|
inputWrapper: [],
|
|
6888
7036
|
input: [],
|
|
@@ -6894,13 +7042,19 @@ var datePickerStyle = tv({
|
|
|
6894
7042
|
color: { primary: {}, secondary: {} },
|
|
6895
7043
|
size: { sm: {}, md: {}, lg: {}, xl: {} },
|
|
6896
7044
|
full: { true: { base: ["w-full"] } },
|
|
6897
|
-
disabled: { true: { base: ["pointer-events-none"] } }
|
|
7045
|
+
disabled: { true: { base: ["pointer-events-none"] } },
|
|
7046
|
+
dualCalendar: {
|
|
7047
|
+
true: { calendarWrapper: ["w-fit", "gap-[10px]"] },
|
|
7048
|
+
false: { calendarWrapper: ["w-[300px]", "gap-[5px]"] }
|
|
7049
|
+
}
|
|
6898
7050
|
},
|
|
6899
7051
|
defaultVariants: {
|
|
6900
7052
|
color: "primary",
|
|
6901
7053
|
size: "md",
|
|
6902
7054
|
full: false,
|
|
6903
|
-
disabled: false
|
|
7055
|
+
disabled: false,
|
|
7056
|
+
range: false,
|
|
7057
|
+
dualCalendar: false
|
|
6904
7058
|
}
|
|
6905
7059
|
});
|
|
6906
7060
|
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import "../../chunk-4VWG4726.mjs";
|
|
3
3
|
import {
|
|
4
4
|
datePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-T7IJB3N4.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-T6V6BJOT.mjs";
|
|
12
12
|
import "../../chunk-QCEKPS7U.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-SHI7P4DQ.mjs";
|
|
14
14
|
import "../../chunk-FWFEKWWD.mjs";
|
|
15
15
|
import "../../chunk-2GCSFWHD.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-BFC4VP3B.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-73NBUI4Y.mjs";
|
|
21
|
+
import "../../chunk-DSEF7GGB.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-LBJN5TAP.mjs";
|
|
27
27
|
import "../../chunk-E3G5QXSH.mjs";
|
|
28
|
-
import "../../chunk-
|
|
28
|
+
import "../../chunk-VUMESK5D.mjs";
|
|
29
29
|
import "../../chunk-CDXBML6O.mjs";
|
|
30
30
|
import "../../chunk-27Y6K5NK.mjs";
|
|
31
31
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -1899,6 +1899,26 @@ var template = {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
);
|
|
1901
1901
|
},
|
|
1902
|
+
question: ({ className = "text-white" }) => {
|
|
1903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1904
|
+
"svg",
|
|
1905
|
+
{
|
|
1906
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1907
|
+
width: "24",
|
|
1908
|
+
height: "24",
|
|
1909
|
+
viewBox: "0 0 24 24",
|
|
1910
|
+
fill: "none",
|
|
1911
|
+
className,
|
|
1912
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1913
|
+
"path",
|
|
1914
|
+
{
|
|
1915
|
+
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",
|
|
1916
|
+
fill: "currentColor"
|
|
1917
|
+
}
|
|
1918
|
+
)
|
|
1919
|
+
}
|
|
1920
|
+
);
|
|
1921
|
+
},
|
|
1902
1922
|
// ----------------------------------- old ---------------------------------
|
|
1903
1923
|
// ** Status **
|
|
1904
1924
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
timePickerStyle,
|
|
4
4
|
timePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-T6V6BJOT.mjs";
|
|
6
6
|
import "../../chunk-QCEKPS7U.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-SHI7P4DQ.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-LBJN5TAP.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-VUMESK5D.mjs";
|
|
12
12
|
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -1900,6 +1900,26 @@ var template = {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
1902
|
},
|
|
1903
|
+
question: ({ className = "text-white" }) => {
|
|
1904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1905
|
+
"svg",
|
|
1906
|
+
{
|
|
1907
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1908
|
+
width: "24",
|
|
1909
|
+
height: "24",
|
|
1910
|
+
viewBox: "0 0 24 24",
|
|
1911
|
+
fill: "none",
|
|
1912
|
+
className,
|
|
1913
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1914
|
+
"path",
|
|
1915
|
+
{
|
|
1916
|
+
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",
|
|
1917
|
+
fill: "currentColor"
|
|
1918
|
+
}
|
|
1919
|
+
)
|
|
1920
|
+
}
|
|
1921
|
+
);
|
|
1922
|
+
},
|
|
1903
1923
|
// ----------------------------------- old ---------------------------------
|
|
1904
1924
|
// ** Status **
|
|
1905
1925
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-QCEKPS7U.mjs";
|
|
3
3
|
import {
|
|
4
4
|
select_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-SHI7P4DQ.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-LBJN5TAP.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-VUMESK5D.mjs";
|
|
10
10
|
import "../../chunk-CDXBML6O.mjs";
|
|
11
11
|
import "../../chunk-27Y6K5NK.mjs";
|
|
12
12
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -1898,6 +1898,26 @@ var template = {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
);
|
|
1900
1900
|
},
|
|
1901
|
+
question: ({ className = "text-white" }) => {
|
|
1902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1903
|
+
"svg",
|
|
1904
|
+
{
|
|
1905
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1906
|
+
width: "24",
|
|
1907
|
+
height: "24",
|
|
1908
|
+
viewBox: "0 0 24 24",
|
|
1909
|
+
fill: "none",
|
|
1910
|
+
className,
|
|
1911
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1912
|
+
"path",
|
|
1913
|
+
{
|
|
1914
|
+
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",
|
|
1915
|
+
fill: "currentColor"
|
|
1916
|
+
}
|
|
1917
|
+
)
|
|
1918
|
+
}
|
|
1919
|
+
);
|
|
1920
|
+
},
|
|
1901
1921
|
// ----------------------------------- old ---------------------------------
|
|
1902
1922
|
// ** Status **
|
|
1903
1923
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-SHI7P4DQ.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-LBJN5TAP.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-VUMESK5D.mjs";
|
|
9
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -2296,6 +2296,26 @@ var template = {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
);
|
|
2298
2298
|
},
|
|
2299
|
+
question: ({ className = "text-white" }) => {
|
|
2300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2301
|
+
"svg",
|
|
2302
|
+
{
|
|
2303
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2304
|
+
width: "24",
|
|
2305
|
+
height: "24",
|
|
2306
|
+
viewBox: "0 0 24 24",
|
|
2307
|
+
fill: "none",
|
|
2308
|
+
className,
|
|
2309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2310
|
+
"path",
|
|
2311
|
+
{
|
|
2312
|
+
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",
|
|
2313
|
+
fill: "currentColor"
|
|
2314
|
+
}
|
|
2315
|
+
)
|
|
2316
|
+
}
|
|
2317
|
+
);
|
|
2318
|
+
},
|
|
2299
2319
|
// ----------------------------------- old ---------------------------------
|
|
2300
2320
|
// ** Status **
|
|
2301
2321
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import "../../chunk-DX3KXNP6.mjs";
|
|
3
3
|
import {
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-JJAPJQUD.mjs";
|
|
6
6
|
import {
|
|
7
7
|
definition_table_default
|
|
8
8
|
} from "../../chunk-JZMJ5UMR.mjs";
|
|
9
9
|
import "../../chunk-7B7LRG5J.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-MGGBCCZL.mjs";
|
|
11
11
|
import "../../chunk-F3HENRVM.mjs";
|
|
12
12
|
import "../../chunk-2GCSFWHD.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-BFC4VP3B.mjs";
|
|
14
14
|
import "../../chunk-DQRAFUDA.mjs";
|
|
15
15
|
import "../../chunk-EWS3FESG.mjs";
|
|
16
16
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
17
17
|
import "../../chunk-H6JGLPPF.mjs";
|
|
18
18
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-LBJN5TAP.mjs";
|
|
20
20
|
import "../../chunk-E3G5QXSH.mjs";
|
|
21
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-VUMESK5D.mjs";
|
|
22
22
|
import "../../chunk-CDXBML6O.mjs";
|
|
23
23
|
import "../../chunk-27Y6K5NK.mjs";
|
|
24
24
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -2227,6 +2227,26 @@ var template = {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
);
|
|
2229
2229
|
},
|
|
2230
|
+
question: ({ className = "text-white" }) => {
|
|
2231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2232
|
+
"svg",
|
|
2233
|
+
{
|
|
2234
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2235
|
+
width: "24",
|
|
2236
|
+
height: "24",
|
|
2237
|
+
viewBox: "0 0 24 24",
|
|
2238
|
+
fill: "none",
|
|
2239
|
+
className,
|
|
2240
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2241
|
+
"path",
|
|
2242
|
+
{
|
|
2243
|
+
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",
|
|
2244
|
+
fill: "currentColor"
|
|
2245
|
+
}
|
|
2246
|
+
)
|
|
2247
|
+
}
|
|
2248
|
+
);
|
|
2249
|
+
},
|
|
2230
2250
|
// ----------------------------------- old ---------------------------------
|
|
2231
2251
|
// ** Status **
|
|
2232
2252
|
"plus-circle": ({ className, fill }) => {
|