@deepnoid/ui 0.1.206 → 0.1.208
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 +494 -484
- package/dist/chunk-3IBJXQTJ.mjs +42 -0
- package/dist/chunk-4TAZM6EF.mjs +285 -0
- package/dist/chunk-I4YRN4UE.mjs +79 -0
- package/dist/{chunk-BTO7MP5N.mjs → chunk-JPNMYMDN.mjs} +4 -4
- package/dist/chunk-QBWQHWNV.mjs +81 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/button/button.mjs +1 -1
- package/dist/components/button/icon-button.mjs +1 -1
- package/dist/components/button/index.mjs +1 -1
- package/dist/components/chip/chip.mjs +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/fileUpload/fileUpload.mjs +1 -1
- package/dist/components/fileUpload/index.mjs +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input/input.mjs +1 -1
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +4 -4
- package/dist/components/modal/modal.mjs +4 -4
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/picker/datePicker.mjs +3 -3
- package/dist/components/picker/index.d.mts +1 -1
- package/dist/components/picker/index.d.ts +1 -1
- package/dist/components/picker/index.js +266 -679
- package/dist/components/picker/index.mjs +8 -8
- package/dist/components/picker/timePicker/Panel.d.mts +11 -0
- package/dist/components/picker/timePicker/Panel.d.ts +11 -0
- package/dist/components/picker/timePicker/Panel.js +740 -0
- package/dist/components/picker/timePicker/Panel.mjs +26 -0
- package/dist/components/picker/timePicker/WheelColumn.d.mts +10 -0
- package/dist/components/picker/timePicker/WheelColumn.d.ts +10 -0
- package/dist/components/picker/timePicker/WheelColumn.js +98 -0
- package/dist/components/picker/timePicker/WheelColumn.mjs +8 -0
- package/dist/components/picker/{timePicker.d.ts → timePicker/index.d.mts} +41 -52
- package/dist/components/picker/{timePicker.d.mts → timePicker/index.d.ts} +41 -52
- package/dist/components/picker/{timePicker.js → timePicker/index.js} +702 -1003
- package/dist/components/picker/timePicker/index.mjs +29 -0
- package/dist/components/picker/utils.d.mts +11 -1
- package/dist/components/picker/utils.d.ts +11 -1
- package/dist/components/picker/utils.js +28 -2
- package/dist/components/picker/utils.mjs +7 -3
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/starRating/index.mjs +1 -1
- package/dist/components/starRating/starRating.mjs +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.mjs +1 -1
- package/dist/components/timePicker/calendar.mjs +2 -2
- package/dist/components/timePicker/useDateTimePicker.mjs +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toast/toast.mjs +1 -1
- package/dist/components/toast/use-toast.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +479 -397
- package/dist/index.mjs +40 -38
- package/package.json +1 -1
- package/dist/chunk-COGGK5Q6.mjs +0 -365
- package/dist/chunk-FWFEKWWD.mjs +0 -18
- package/dist/components/picker/timePicker.mjs +0 -26
- package/dist/{chunk-IG7QEXDU.mjs → chunk-D72ILS4A.mjs} +3 -3
- package/dist/{chunk-YO4PZXCM.mjs → chunk-K3M3QEEV.mjs} +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-RRAZM5D3.mjs";
|
|
3
|
-
import {
|
|
4
|
-
textarea_default
|
|
5
|
-
} from "./chunk-Q22PRT24.mjs";
|
|
6
2
|
import "./chunk-HIE2YRGA.mjs";
|
|
7
3
|
import {
|
|
8
4
|
tooltip_default
|
|
@@ -13,10 +9,10 @@ import "./chunk-MBLZYQCN.mjs";
|
|
|
13
9
|
import {
|
|
14
10
|
tree_default
|
|
15
11
|
} from "./chunk-F6BQCZ54.mjs";
|
|
16
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-RRAZM5D3.mjs";
|
|
17
13
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
14
|
+
textarea_default
|
|
15
|
+
} from "./chunk-Q22PRT24.mjs";
|
|
20
16
|
import "./chunk-LUWGOKLG.mjs";
|
|
21
17
|
import {
|
|
22
18
|
ToastProvider,
|
|
@@ -26,10 +22,6 @@ import "./chunk-ZOTHPHXA.mjs";
|
|
|
26
22
|
import {
|
|
27
23
|
toast_default
|
|
28
24
|
} from "./chunk-4F7SIDZB.mjs";
|
|
29
|
-
import "./chunk-LVFI2NOH.mjs";
|
|
30
|
-
import {
|
|
31
|
-
switch_default
|
|
32
|
-
} from "./chunk-AGE57VDD.mjs";
|
|
33
25
|
import "./chunk-DX3KXNP6.mjs";
|
|
34
26
|
import {
|
|
35
27
|
definition_table_default
|
|
@@ -37,6 +29,14 @@ import {
|
|
|
37
29
|
import {
|
|
38
30
|
table_default
|
|
39
31
|
} from "./chunk-W3V4SZV5.mjs";
|
|
32
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
33
|
+
import {
|
|
34
|
+
tabs_default
|
|
35
|
+
} from "./chunk-DW3BX4M2.mjs";
|
|
36
|
+
import "./chunk-QCEKPS7U.mjs";
|
|
37
|
+
import {
|
|
38
|
+
select_default
|
|
39
|
+
} from "./chunk-K2RW5KLO.mjs";
|
|
40
40
|
import "./chunk-MZ76AA76.mjs";
|
|
41
41
|
import {
|
|
42
42
|
skeleton_default
|
|
@@ -45,46 +45,48 @@ import "./chunk-OLQOLLKG.mjs";
|
|
|
45
45
|
import {
|
|
46
46
|
starRating_default
|
|
47
47
|
} from "./chunk-OX4T7OBC.mjs";
|
|
48
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
49
|
+
import {
|
|
50
|
+
switch_default
|
|
51
|
+
} from "./chunk-AGE57VDD.mjs";
|
|
48
52
|
import "./chunk-TPFN22HR.mjs";
|
|
49
53
|
import {
|
|
50
54
|
radio_default
|
|
51
55
|
} from "./chunk-RNMD44IQ.mjs";
|
|
56
|
+
import "./chunk-4VWG4726.mjs";
|
|
57
|
+
import {
|
|
58
|
+
timePicker_default
|
|
59
|
+
} from "./chunk-4TAZM6EF.mjs";
|
|
60
|
+
import "./chunk-QBWQHWNV.mjs";
|
|
61
|
+
import "./chunk-I4YRN4UE.mjs";
|
|
52
62
|
import "./chunk-7B7LRG5J.mjs";
|
|
53
63
|
import {
|
|
54
64
|
pagination_default
|
|
55
65
|
} from "./chunk-VVCSY7DG.mjs";
|
|
56
66
|
import "./chunk-F3HENRVM.mjs";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import {
|
|
59
|
-
datePicker_default
|
|
60
|
-
} from "./chunk-BTO7MP5N.mjs";
|
|
61
|
-
import "./chunk-FWFEKWWD.mjs";
|
|
62
|
-
import {
|
|
63
|
-
day_default
|
|
64
|
-
} from "./chunk-XZYQFBCT.mjs";
|
|
65
|
-
import {
|
|
66
|
-
timePicker_default
|
|
67
|
-
} from "./chunk-COGGK5Q6.mjs";
|
|
68
|
-
import "./chunk-QCEKPS7U.mjs";
|
|
67
|
+
import "./chunk-DJOG6Z35.mjs";
|
|
69
68
|
import {
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
69
|
+
modal_default
|
|
70
|
+
} from "./chunk-D72ILS4A.mjs";
|
|
72
71
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
73
72
|
import {
|
|
74
73
|
list_default
|
|
75
74
|
} from "./chunk-NGRGAY42.mjs";
|
|
76
75
|
import {
|
|
77
76
|
listItem_default
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-DJOG6Z35.mjs";
|
|
80
|
-
import {
|
|
81
|
-
modal_default
|
|
82
|
-
} from "./chunk-IG7QEXDU.mjs";
|
|
83
|
-
import "./chunk-QZ3LVYJW.mjs";
|
|
77
|
+
} from "./chunk-K3M3QEEV.mjs";
|
|
84
78
|
import "./chunk-32GA3YW4.mjs";
|
|
85
79
|
import {
|
|
86
80
|
drawer_default
|
|
87
81
|
} from "./chunk-45Y7ANPK.mjs";
|
|
82
|
+
import {
|
|
83
|
+
datePicker_default
|
|
84
|
+
} from "./chunk-JPNMYMDN.mjs";
|
|
85
|
+
import {
|
|
86
|
+
day_default
|
|
87
|
+
} from "./chunk-XZYQFBCT.mjs";
|
|
88
|
+
import "./chunk-3IBJXQTJ.mjs";
|
|
89
|
+
import "./chunk-QZ3LVYJW.mjs";
|
|
88
90
|
import "./chunk-MGEWSREV.mjs";
|
|
89
91
|
import {
|
|
90
92
|
chip_default
|
|
@@ -125,10 +127,10 @@ import {
|
|
|
125
127
|
import {
|
|
126
128
|
checkbox_default
|
|
127
129
|
} from "./chunk-OEIEALIP.mjs";
|
|
128
|
-
import "./chunk-
|
|
130
|
+
import "./chunk-SE5TU755.mjs";
|
|
129
131
|
import {
|
|
130
|
-
|
|
131
|
-
} from "./chunk-
|
|
132
|
+
backdrop_default
|
|
133
|
+
} from "./chunk-IH3BJRTV.mjs";
|
|
132
134
|
import "./chunk-KYIODWXL.mjs";
|
|
133
135
|
import {
|
|
134
136
|
breadcrumb_default
|
|
@@ -154,7 +156,6 @@ import {
|
|
|
154
156
|
Icon_default,
|
|
155
157
|
iconTemplate
|
|
156
158
|
} from "./chunk-YEYUS6DW.mjs";
|
|
157
|
-
import "./chunk-5BT37SLM.mjs";
|
|
158
159
|
import "./chunk-NMSDSEBD.mjs";
|
|
159
160
|
import {
|
|
160
161
|
accordion_default
|
|
@@ -163,10 +164,11 @@ import {
|
|
|
163
164
|
accordionItem_default
|
|
164
165
|
} from "./chunk-NTNF5T5I.mjs";
|
|
165
166
|
import "./chunk-E3G5QXSH.mjs";
|
|
166
|
-
import "./chunk-
|
|
167
|
+
import "./chunk-7DLOYKVC.mjs";
|
|
167
168
|
import {
|
|
168
|
-
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
avatar_default
|
|
170
|
+
} from "./chunk-JQ5C2U5I.mjs";
|
|
171
|
+
import "./chunk-5BT37SLM.mjs";
|
|
170
172
|
import {
|
|
171
173
|
deepnoidUi,
|
|
172
174
|
tv
|
package/package.json
CHANGED
package/dist/chunk-COGGK5Q6.mjs
DELETED
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
select_default
|
|
4
|
-
} from "./chunk-K2RW5KLO.mjs";
|
|
5
|
-
import {
|
|
6
|
-
Icon_default
|
|
7
|
-
} from "./chunk-YEYUS6DW.mjs";
|
|
8
|
-
import {
|
|
9
|
-
mapPropsVariants
|
|
10
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
-
import {
|
|
12
|
-
tv
|
|
13
|
-
} from "./chunk-U4DJHAM5.mjs";
|
|
14
|
-
import {
|
|
15
|
-
clsx
|
|
16
|
-
} from "./chunk-27Y6K5NK.mjs";
|
|
17
|
-
|
|
18
|
-
// src/components/picker/timePicker.tsx
|
|
19
|
-
import { forwardRef, useCallback, useMemo, useState, useRef } from "react";
|
|
20
|
-
import { createPortal } from "react-dom";
|
|
21
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
var TimePicker = forwardRef((originalProps, ref) => {
|
|
23
|
-
const [props, variantProps] = mapPropsVariants(originalProps, timePickerStyle.variantKeys);
|
|
24
|
-
const {
|
|
25
|
-
classNames,
|
|
26
|
-
label,
|
|
27
|
-
errorMessage,
|
|
28
|
-
valueRange,
|
|
29
|
-
onChangeRange,
|
|
30
|
-
size,
|
|
31
|
-
selectClassNames,
|
|
32
|
-
placeholder = "",
|
|
33
|
-
...inputProps
|
|
34
|
-
} = props;
|
|
35
|
-
const [selectedRange, setSelectedRange] = useState(
|
|
36
|
-
valueRange || { start: "", end: "" }
|
|
37
|
-
);
|
|
38
|
-
const [isPanelOpen, setIsPanelOpen] = useState(false);
|
|
39
|
-
const inputWrapperRef = useRef(null);
|
|
40
|
-
const panelWrapperRef = useRef(null);
|
|
41
|
-
const [panelPos, setPanelPos] = useState({ top: -9999, left: -9999 });
|
|
42
|
-
const displayValue = useMemo(() => {
|
|
43
|
-
if (selectedRange.start && selectedRange.end) {
|
|
44
|
-
return `${selectedRange.start} ~ ${selectedRange.end}`;
|
|
45
|
-
}
|
|
46
|
-
return "";
|
|
47
|
-
}, [selectedRange]);
|
|
48
|
-
const calculatePosition = useCallback(() => {
|
|
49
|
-
if (inputWrapperRef.current) {
|
|
50
|
-
const rect = inputWrapperRef.current.getBoundingClientRect();
|
|
51
|
-
setPanelPos({ top: rect.bottom + window.scrollY + 6, left: rect.left + window.scrollX });
|
|
52
|
-
}
|
|
53
|
-
}, []);
|
|
54
|
-
const handleFocusInput = () => {
|
|
55
|
-
calculatePosition();
|
|
56
|
-
setIsPanelOpen(true);
|
|
57
|
-
};
|
|
58
|
-
const handleInputBlur = () => {
|
|
59
|
-
setTimeout(() => setIsPanelOpen(false), 150);
|
|
60
|
-
};
|
|
61
|
-
const handleInputKeyDown = (e) => {
|
|
62
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
63
|
-
e.preventDefault();
|
|
64
|
-
calculatePosition();
|
|
65
|
-
setIsPanelOpen((prev) => !prev);
|
|
66
|
-
} else if (e.key === "Escape") {
|
|
67
|
-
setIsPanelOpen(false);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const slots = useMemo(() => timePickerStyle({ ...variantProps }), [variantProps]);
|
|
71
|
-
const renderHourOptions = () => {
|
|
72
|
-
return Array.from({ length: 24 }, (_, i) => {
|
|
73
|
-
const value = String(i).padStart(2, "0");
|
|
74
|
-
return { label: value, value };
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
const renderMinuteOptions = () => {
|
|
78
|
-
return Array.from({ length: 60 }, (_, i) => {
|
|
79
|
-
const value = String(i).padStart(2, "0");
|
|
80
|
-
return { label: value, value };
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
const defaultSelectClassNames = {
|
|
84
|
-
selectWrapper: "!w-[80px]",
|
|
85
|
-
optionsWrapper: "max-h-[300px]"
|
|
86
|
-
};
|
|
87
|
-
const handleRangeChange = (type, option) => {
|
|
88
|
-
const [shRaw, smRaw] = selectedRange.start.split(":");
|
|
89
|
-
const [ehRaw, emRaw] = selectedRange.end.split(":");
|
|
90
|
-
const sh = (shRaw != null ? shRaw : "00").padStart(2, "0");
|
|
91
|
-
const sm = (smRaw != null ? smRaw : "00").padStart(2, "0");
|
|
92
|
-
const eh = (ehRaw != null ? ehRaw : "00").padStart(2, "0");
|
|
93
|
-
const em = (emRaw != null ? emRaw : "00").padStart(2, "0");
|
|
94
|
-
const range = {
|
|
95
|
-
start: `${type === "startHour" ? option.value : sh}:${type === "startMinute" ? option.value : sm}`,
|
|
96
|
-
end: `${type === "endHour" ? option.value : eh}:${type === "endMinute" ? option.value : em}`
|
|
97
|
-
};
|
|
98
|
-
setSelectedRange(range);
|
|
99
|
-
onChangeRange == null ? void 0 : onChangeRange(range);
|
|
100
|
-
};
|
|
101
|
-
const mergedSelectClassNames = {
|
|
102
|
-
selectWrapper: (selectClassNames == null ? void 0 : selectClassNames.selectWrapper) || defaultSelectClassNames.selectWrapper,
|
|
103
|
-
optionsWrapper: (selectClassNames == null ? void 0 : selectClassNames.optionsWrapper) || defaultSelectClassNames.optionsWrapper
|
|
104
|
-
};
|
|
105
|
-
const getSelectValue = (timeString, part) => {
|
|
106
|
-
if (!timeString) return "00";
|
|
107
|
-
const [hour, minute] = timeString.split(":");
|
|
108
|
-
return part === "hour" ? hour || "00" : minute || "00";
|
|
109
|
-
};
|
|
110
|
-
const handleClearRange = () => {
|
|
111
|
-
const emptyRange = { start: "", end: "" };
|
|
112
|
-
setSelectedRange(emptyRange);
|
|
113
|
-
onChangeRange == null ? void 0 : onChangeRange(emptyRange);
|
|
114
|
-
};
|
|
115
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
116
|
-
/* @__PURE__ */ jsxs("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
117
|
-
label && /* @__PURE__ */ jsx("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
118
|
-
/* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
119
|
-
/* @__PURE__ */ jsxs("div", { ref: inputWrapperRef, className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }), children: [
|
|
120
|
-
/* @__PURE__ */ jsx(
|
|
121
|
-
"input",
|
|
122
|
-
{
|
|
123
|
-
...inputProps,
|
|
124
|
-
ref,
|
|
125
|
-
className: slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
126
|
-
type: "text",
|
|
127
|
-
value: displayValue,
|
|
128
|
-
placeholder,
|
|
129
|
-
readOnly: true,
|
|
130
|
-
onFocus: handleFocusInput,
|
|
131
|
-
onBlur: handleInputBlur,
|
|
132
|
-
onKeyDown: handleInputKeyDown
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ jsxs("div", { className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }), children: [
|
|
136
|
-
displayValue && /* @__PURE__ */ jsx(
|
|
137
|
-
Icon_default,
|
|
138
|
-
{
|
|
139
|
-
name: "close",
|
|
140
|
-
className: "text-neutral-light hover:text-neutral-main mr-[5px] cursor-pointer",
|
|
141
|
-
onClick: (e) => {
|
|
142
|
-
e.stopPropagation();
|
|
143
|
-
handleClearRange();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
/* @__PURE__ */ jsx(
|
|
148
|
-
Icon_default,
|
|
149
|
-
{
|
|
150
|
-
name: "clock",
|
|
151
|
-
className: "cursor-pointer",
|
|
152
|
-
onClick: () => {
|
|
153
|
-
calculatePosition();
|
|
154
|
-
setIsPanelOpen((v) => !v);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
)
|
|
158
|
-
] })
|
|
159
|
-
] }),
|
|
160
|
-
errorMessage && /* @__PURE__ */ jsx("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
161
|
-
] })
|
|
162
|
-
] }),
|
|
163
|
-
isPanelOpen && createPortal(
|
|
164
|
-
/* @__PURE__ */ jsx(
|
|
165
|
-
"div",
|
|
166
|
-
{
|
|
167
|
-
ref: panelWrapperRef,
|
|
168
|
-
className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
|
|
169
|
-
style: {
|
|
170
|
-
position: "absolute",
|
|
171
|
-
top: panelPos.top,
|
|
172
|
-
left: panelPos.left,
|
|
173
|
-
zIndex: 1e3
|
|
174
|
-
},
|
|
175
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
176
|
-
children: /* @__PURE__ */ jsxs("div", { className: "bg-body-background text-neutral-main flex items-center gap-[5px] p-[10px]", children: [
|
|
177
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[5px]", children: [
|
|
178
|
-
/* @__PURE__ */ jsx(
|
|
179
|
-
select_default,
|
|
180
|
-
{
|
|
181
|
-
options: renderHourOptions(),
|
|
182
|
-
value: getSelectValue(selectedRange.start, "hour"),
|
|
183
|
-
onChange: (options) => {
|
|
184
|
-
if (options[0]) handleRangeChange("startHour", options[0]);
|
|
185
|
-
},
|
|
186
|
-
classNames: mergedSelectClassNames
|
|
187
|
-
}
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ jsx("span", { children: ":" }),
|
|
190
|
-
/* @__PURE__ */ jsx(
|
|
191
|
-
select_default,
|
|
192
|
-
{
|
|
193
|
-
options: renderMinuteOptions(),
|
|
194
|
-
value: getSelectValue(selectedRange.start, "minute"),
|
|
195
|
-
onChange: (options) => {
|
|
196
|
-
if (options[0]) handleRangeChange("startMinute", options[0]);
|
|
197
|
-
},
|
|
198
|
-
classNames: mergedSelectClassNames
|
|
199
|
-
}
|
|
200
|
-
)
|
|
201
|
-
] }),
|
|
202
|
-
/* @__PURE__ */ jsx("span", { children: "~" }),
|
|
203
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[5px]", children: [
|
|
204
|
-
/* @__PURE__ */ jsx(
|
|
205
|
-
select_default,
|
|
206
|
-
{
|
|
207
|
-
options: renderHourOptions(),
|
|
208
|
-
value: getSelectValue(selectedRange.end, "hour"),
|
|
209
|
-
onChange: (options) => {
|
|
210
|
-
if (options[0]) handleRangeChange("endHour", options[0]);
|
|
211
|
-
},
|
|
212
|
-
classNames: mergedSelectClassNames
|
|
213
|
-
}
|
|
214
|
-
),
|
|
215
|
-
/* @__PURE__ */ jsx("span", { children: ":" }),
|
|
216
|
-
/* @__PURE__ */ jsx(
|
|
217
|
-
select_default,
|
|
218
|
-
{
|
|
219
|
-
options: renderMinuteOptions(),
|
|
220
|
-
value: getSelectValue(selectedRange.end, "minute"),
|
|
221
|
-
onChange: (options) => {
|
|
222
|
-
if (options[0]) handleRangeChange("endMinute", options[0]);
|
|
223
|
-
},
|
|
224
|
-
classNames: mergedSelectClassNames
|
|
225
|
-
}
|
|
226
|
-
)
|
|
227
|
-
] })
|
|
228
|
-
] })
|
|
229
|
-
}
|
|
230
|
-
),
|
|
231
|
-
document.body
|
|
232
|
-
)
|
|
233
|
-
] });
|
|
234
|
-
});
|
|
235
|
-
TimePicker.displayName = "TimePicker";
|
|
236
|
-
var timePicker_default = TimePicker;
|
|
237
|
-
var timePickerStyle = tv({
|
|
238
|
-
slots: {
|
|
239
|
-
base: ["group/timepicker", "flex", "flex-col"],
|
|
240
|
-
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
241
|
-
wrapper: ["flex", "flex-col"],
|
|
242
|
-
inputWrapper: [
|
|
243
|
-
"flex",
|
|
244
|
-
"items-center",
|
|
245
|
-
"justify-between",
|
|
246
|
-
"border",
|
|
247
|
-
"cursor-pointer",
|
|
248
|
-
"text-neutral-main",
|
|
249
|
-
"hover:bg-trans-soft",
|
|
250
|
-
"group-has-[p.error]/timepicker:border-danger-main",
|
|
251
|
-
"group-has-[p.error]/timepicker:bg-danger-soft",
|
|
252
|
-
"group-has-[p.error]/timepicker:text-danger-main",
|
|
253
|
-
"group-has-[p.error]/timepicker:hover:bg-danger-soft"
|
|
254
|
-
],
|
|
255
|
-
input: [
|
|
256
|
-
"bg-transparent",
|
|
257
|
-
"w-full",
|
|
258
|
-
"outline-none",
|
|
259
|
-
"placeholder:text-neutral-main",
|
|
260
|
-
"text-body-foreground",
|
|
261
|
-
"group-has-[p.error]/timepicker:text-danger-main",
|
|
262
|
-
"group-has-[p.error]/timepicker:placeholder:text-danger-main",
|
|
263
|
-
"cursor-pointer"
|
|
264
|
-
],
|
|
265
|
-
icon: [
|
|
266
|
-
"flex",
|
|
267
|
-
"items-center",
|
|
268
|
-
"select-none",
|
|
269
|
-
"text-body-foreground",
|
|
270
|
-
"group-has-[p.error]/timepicker:text-danger-main"
|
|
271
|
-
],
|
|
272
|
-
optionsWrapper: ["border", "rounded", "bg-body-background", "shadow", "overflow-auto"],
|
|
273
|
-
errorMessage: ["text-danger-main", "text-sm"],
|
|
274
|
-
selectWrapper: []
|
|
275
|
-
},
|
|
276
|
-
variants: {
|
|
277
|
-
color: {
|
|
278
|
-
primary: {
|
|
279
|
-
icon: ["text-primary-main"]
|
|
280
|
-
},
|
|
281
|
-
secondary: {
|
|
282
|
-
icon: ["text-secondary-main"]
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
size: {
|
|
286
|
-
sm: {
|
|
287
|
-
base: ["text-sm", "gap-[4px]"],
|
|
288
|
-
label: ["text-sm"],
|
|
289
|
-
wrapper: ["gap-[4px]"],
|
|
290
|
-
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
|
|
291
|
-
input: ["text-sm"],
|
|
292
|
-
icon: ["text-sm"],
|
|
293
|
-
errorMessage: ["text-sm"]
|
|
294
|
-
},
|
|
295
|
-
md: {
|
|
296
|
-
base: ["text-md", "gap-[6px]"],
|
|
297
|
-
label: ["text-md"],
|
|
298
|
-
wrapper: ["gap-[6px]"],
|
|
299
|
-
inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
|
|
300
|
-
input: ["text-md"],
|
|
301
|
-
icon: ["text-md"],
|
|
302
|
-
errorMessage: ["text-sm"]
|
|
303
|
-
},
|
|
304
|
-
lg: {
|
|
305
|
-
base: ["text-lg", "gap-[8px]"],
|
|
306
|
-
label: ["text-lg"],
|
|
307
|
-
wrapper: ["gap-[8px]"],
|
|
308
|
-
inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
|
|
309
|
-
input: ["text-lg"],
|
|
310
|
-
icon: ["text-lg"],
|
|
311
|
-
errorMessage: ["text-md"]
|
|
312
|
-
},
|
|
313
|
-
xl: {
|
|
314
|
-
base: ["text-xl", "gap-[10px]"],
|
|
315
|
-
label: ["text-xl"],
|
|
316
|
-
wrapper: ["gap-[10px]"],
|
|
317
|
-
inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]"],
|
|
318
|
-
input: ["text-xl"],
|
|
319
|
-
icon: ["text-xl"],
|
|
320
|
-
errorMessage: ["text-md"]
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
full: {
|
|
324
|
-
true: {
|
|
325
|
-
base: ["w-full"],
|
|
326
|
-
wrapper: ["w-full"],
|
|
327
|
-
inputWrapper: ["w-full"]
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
disabled: {
|
|
331
|
-
true: {
|
|
332
|
-
base: ["pointer-events-none"],
|
|
333
|
-
label: ["text-neutral-light"],
|
|
334
|
-
inputWrapper: [
|
|
335
|
-
"bg-neutral-soft",
|
|
336
|
-
"border-neutral-light",
|
|
337
|
-
"group-has-[p.error]/timepicker:text-danger-light",
|
|
338
|
-
"group-has-[p.error]/timepicker:bg-danger-soft",
|
|
339
|
-
"group-has-[p.error]/timepicker:border-danger-light",
|
|
340
|
-
"cursor-not-allowed"
|
|
341
|
-
],
|
|
342
|
-
input: [
|
|
343
|
-
"text-neutral-light",
|
|
344
|
-
"placeholder:text-neutral-light",
|
|
345
|
-
"group-has-[p.error]/timepicker:text-danger-light",
|
|
346
|
-
"group-has-[p.error]/timepicker:placeholder:text-danger-light",
|
|
347
|
-
"cursor-not-allowed"
|
|
348
|
-
],
|
|
349
|
-
icon: ["text-neutral-light"],
|
|
350
|
-
errorMessage: ["text-danger-light"]
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
defaultVariants: {
|
|
355
|
-
color: "primary",
|
|
356
|
-
size: "md",
|
|
357
|
-
full: false,
|
|
358
|
-
disabled: false
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
export {
|
|
363
|
-
timePicker_default,
|
|
364
|
-
timePickerStyle
|
|
365
|
-
};
|
package/dist/chunk-FWFEKWWD.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/picker/utils.ts
|
|
4
|
-
var formatDateToString = (date) => {
|
|
5
|
-
const year = date.getFullYear();
|
|
6
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
7
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
8
|
-
return `${year}-${month}-${day}`;
|
|
9
|
-
};
|
|
10
|
-
var formatStringToDate = (date) => {
|
|
11
|
-
const formattedDate = new Date(date);
|
|
12
|
-
return formattedDate;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
formatDateToString,
|
|
17
|
-
formatStringToDate
|
|
18
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
timePickerStyle,
|
|
4
|
-
timePicker_default
|
|
5
|
-
} from "../../chunk-COGGK5Q6.mjs";
|
|
6
|
-
import "../../chunk-QCEKPS7U.mjs";
|
|
7
|
-
import "../../chunk-K2RW5KLO.mjs";
|
|
8
|
-
import "../../chunk-MY5U63QO.mjs";
|
|
9
|
-
import "../../chunk-4LUASWAN.mjs";
|
|
10
|
-
import "../../chunk-5VTYO3RF.mjs";
|
|
11
|
-
import "../../chunk-FFUZAOFL.mjs";
|
|
12
|
-
import "../../chunk-TB2DOWSM.mjs";
|
|
13
|
-
import "../../chunk-6WSACUIB.mjs";
|
|
14
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
15
|
-
import "../../chunk-SZL743JC.mjs";
|
|
16
|
-
import "../../chunk-ZYIIXWVY.mjs";
|
|
17
|
-
import "../../chunk-YEYUS6DW.mjs";
|
|
18
|
-
import "../../chunk-5BT37SLM.mjs";
|
|
19
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
20
|
-
import "../../chunk-U4DJHAM5.mjs";
|
|
21
|
-
import "../../chunk-27Y6K5NK.mjs";
|
|
22
|
-
import "../../chunk-AC6TWLRT.mjs";
|
|
23
|
-
export {
|
|
24
|
-
timePicker_default as default,
|
|
25
|
-
timePickerStyle
|
|
26
|
-
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
backdrop_default
|
|
4
|
+
} from "./chunk-IH3BJRTV.mjs";
|
|
2
5
|
import {
|
|
3
6
|
button_default
|
|
4
7
|
} from "./chunk-FFUZAOFL.mjs";
|
|
@@ -8,9 +11,6 @@ import {
|
|
|
8
11
|
import {
|
|
9
12
|
mapPropsVariants
|
|
10
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
-
import {
|
|
12
|
-
backdrop_default
|
|
13
|
-
} from "./chunk-IH3BJRTV.mjs";
|
|
14
14
|
import {
|
|
15
15
|
tv
|
|
16
16
|
} from "./chunk-U4DJHAM5.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
avatar_default
|
|
4
|
-
} from "./chunk-JQ5C2U5I.mjs";
|
|
5
2
|
import {
|
|
6
3
|
Icon_default
|
|
7
4
|
} from "./chunk-YEYUS6DW.mjs";
|
|
8
5
|
import {
|
|
9
6
|
mapPropsVariants
|
|
10
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
+
import {
|
|
9
|
+
avatar_default
|
|
10
|
+
} from "./chunk-JQ5C2U5I.mjs";
|
|
11
11
|
import {
|
|
12
12
|
tv
|
|
13
13
|
} from "./chunk-U4DJHAM5.mjs";
|