@deepnoid/ui 0.1.206 → 0.1.207
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-3FOLYC6R.mjs +285 -0
- package/dist/chunk-3IBJXQTJ.mjs +42 -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 +41 -39
- 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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Panel_default,
|
|
4
|
+
TimePickerPanel
|
|
5
|
+
} from "../../../chunk-QBWQHWNV.mjs";
|
|
6
|
+
import "../../../chunk-I4YRN4UE.mjs";
|
|
7
|
+
import "../../../chunk-3IBJXQTJ.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-E3G5QXSH.mjs";
|
|
19
|
+
import "../../../chunk-5BT37SLM.mjs";
|
|
20
|
+
import "../../../chunk-U4DJHAM5.mjs";
|
|
21
|
+
import "../../../chunk-27Y6K5NK.mjs";
|
|
22
|
+
import "../../../chunk-AC6TWLRT.mjs";
|
|
23
|
+
export {
|
|
24
|
+
TimePickerPanel,
|
|
25
|
+
Panel_default as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
type WheelColumnProps = {
|
|
4
|
+
list: string[];
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (v: string) => void;
|
|
7
|
+
};
|
|
8
|
+
declare function WheelColumn({ list, value, onChange }: WheelColumnProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { WheelColumn as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
type WheelColumnProps = {
|
|
4
|
+
list: string[];
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (v: string) => void;
|
|
7
|
+
};
|
|
8
|
+
declare function WheelColumn({ list, value, onChange }: WheelColumnProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { WheelColumn as default };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/picker/timePicker/WheelColumn.tsx
|
|
22
|
+
var WheelColumn_exports = {};
|
|
23
|
+
__export(WheelColumn_exports, {
|
|
24
|
+
default: () => WheelColumn
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(WheelColumn_exports);
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
var ITEM_HEIGHT = 30;
|
|
30
|
+
var ACTIVE_HEIGHT = 34;
|
|
31
|
+
function WheelColumn({ list, value, onChange }) {
|
|
32
|
+
const ref = (0, import_react.useRef)(null);
|
|
33
|
+
const internalChangeRef = (0, import_react.useRef)(false);
|
|
34
|
+
const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
|
|
35
|
+
const scrollToIndex = (index, behavior = "smooth") => {
|
|
36
|
+
if (!ref.current) return;
|
|
37
|
+
const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
|
|
38
|
+
let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
|
|
39
|
+
if (behavior === "auto" && currentIndex !== 0) centerOffset -= 4;
|
|
40
|
+
const top = index * ITEM_HEIGHT + centerOffset;
|
|
41
|
+
ref.current.scrollTo({ top, behavior });
|
|
42
|
+
};
|
|
43
|
+
const finalizeScroll = (index) => {
|
|
44
|
+
internalChangeRef.current = true;
|
|
45
|
+
const v = list[index];
|
|
46
|
+
setCurrentIndex(index);
|
|
47
|
+
scrollToIndex(index, "smooth");
|
|
48
|
+
if (v) onChange(v);
|
|
49
|
+
};
|
|
50
|
+
const handleClick = (index) => finalizeScroll(index);
|
|
51
|
+
(0, import_react.useEffect)(() => {
|
|
52
|
+
if (!ref.current || !value) return;
|
|
53
|
+
const idx = list.indexOf(value);
|
|
54
|
+
if (idx < 0) return;
|
|
55
|
+
if (internalChangeRef.current) {
|
|
56
|
+
internalChangeRef.current = false;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
setCurrentIndex(idx);
|
|
60
|
+
scrollToIndex(idx, "auto");
|
|
61
|
+
}, [value]);
|
|
62
|
+
(0, import_react.useEffect)(() => {
|
|
63
|
+
const el = ref.current;
|
|
64
|
+
if (!el) return;
|
|
65
|
+
const handleWheel = (e) => {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
let newIndex = currentIndex;
|
|
68
|
+
if (e.deltaY > 0) {
|
|
69
|
+
newIndex = Math.min(currentIndex + 1, list.length - 1);
|
|
70
|
+
} else if (e.deltaY < 0) {
|
|
71
|
+
newIndex = Math.max(currentIndex - 1, 0);
|
|
72
|
+
}
|
|
73
|
+
finalizeScroll(newIndex);
|
|
74
|
+
};
|
|
75
|
+
el.addEventListener("wheel", handleWheel, { passive: false });
|
|
76
|
+
return () => el.removeEventListener("wheel", handleWheel);
|
|
77
|
+
}, [currentIndex, list, onChange]);
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative h-[94px] w-[40px]", children: [
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: ITEM_HEIGHT } }),
|
|
82
|
+
list.map((v, i) => {
|
|
83
|
+
const isActive = i === currentIndex;
|
|
84
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
onClick: () => handleClick(i),
|
|
88
|
+
className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
|
|
89
|
+
style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
|
|
90
|
+
children: v
|
|
91
|
+
},
|
|
92
|
+
i
|
|
93
|
+
);
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
|
|
96
|
+
] })
|
|
97
|
+
] });
|
|
98
|
+
}
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import react__default, { ComponentProps } from 'react';
|
|
4
|
-
import { SlotsToClasses } from '
|
|
4
|
+
import { SlotsToClasses } from '../../../utils/types.mjs';
|
|
5
5
|
|
|
6
6
|
interface TimePickerProps extends Omit<ComponentProps<"input">, "size" | "color" | "onChange">, VariantProps<typeof timePickerStyle> {
|
|
7
7
|
label?: string;
|
|
8
8
|
errorMessage?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
end: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
valueRange?: {
|
|
14
|
-
start: string;
|
|
15
|
-
end: string;
|
|
16
|
-
};
|
|
9
|
+
value?: string;
|
|
10
|
+
onChange: (time: string) => void;
|
|
17
11
|
classNames?: SlotsToClasses<TimePickerSlots>;
|
|
18
|
-
selectClassNames?: {
|
|
19
|
-
selectWrapper?: string;
|
|
20
|
-
optionsWrapper?: string;
|
|
21
|
-
};
|
|
22
12
|
placeholder?: string;
|
|
13
|
+
nowTitle: string;
|
|
14
|
+
confirmTitle: string;
|
|
23
15
|
}
|
|
24
16
|
declare const TimePicker: react__default.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & react__default.RefAttributes<HTMLInputElement>>;
|
|
25
17
|
|
|
26
18
|
declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
variant: {
|
|
20
|
+
solid: {
|
|
21
|
+
inputWrapper: string[];
|
|
22
|
+
readonlyWrapper: string[];
|
|
30
23
|
};
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
outline: {
|
|
25
|
+
inputWrapper: string[];
|
|
26
|
+
readonlyWrapper: string[];
|
|
27
|
+
};
|
|
28
|
+
underline: {
|
|
29
|
+
inputWrapper: string[];
|
|
30
|
+
readonlyWrapper: string[];
|
|
33
31
|
};
|
|
34
32
|
};
|
|
35
33
|
size: {
|
|
@@ -39,7 +37,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
39
37
|
wrapper: string[];
|
|
40
38
|
inputWrapper: string[];
|
|
41
39
|
input: string[];
|
|
42
|
-
icon: string[];
|
|
43
40
|
errorMessage: string[];
|
|
44
41
|
};
|
|
45
42
|
md: {
|
|
@@ -48,7 +45,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
48
45
|
wrapper: string[];
|
|
49
46
|
inputWrapper: string[];
|
|
50
47
|
input: string[];
|
|
51
|
-
icon: string[];
|
|
52
48
|
errorMessage: string[];
|
|
53
49
|
};
|
|
54
50
|
lg: {
|
|
@@ -57,7 +53,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
57
53
|
wrapper: string[];
|
|
58
54
|
inputWrapper: string[];
|
|
59
55
|
input: string[];
|
|
60
|
-
icon: string[];
|
|
61
56
|
errorMessage: string[];
|
|
62
57
|
};
|
|
63
58
|
xl: {
|
|
@@ -66,7 +61,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
66
61
|
wrapper: string[];
|
|
67
62
|
inputWrapper: string[];
|
|
68
63
|
input: string[];
|
|
69
|
-
icon: string[];
|
|
70
64
|
errorMessage: string[];
|
|
71
65
|
};
|
|
72
66
|
};
|
|
@@ -83,7 +77,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
83
77
|
label: string[];
|
|
84
78
|
inputWrapper: string[];
|
|
85
79
|
input: string[];
|
|
86
|
-
icon: string[];
|
|
87
80
|
errorMessage: string[];
|
|
88
81
|
};
|
|
89
82
|
};
|
|
@@ -93,17 +86,21 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
93
86
|
wrapper: string[];
|
|
94
87
|
inputWrapper: string[];
|
|
95
88
|
input: string[];
|
|
96
|
-
|
|
97
|
-
optionsWrapper: string[];
|
|
89
|
+
portalWrapper: string[];
|
|
98
90
|
errorMessage: string[];
|
|
99
|
-
selectWrapper: never[];
|
|
100
91
|
}, undefined, {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
92
|
+
variant: {
|
|
93
|
+
solid: {
|
|
94
|
+
inputWrapper: string[];
|
|
95
|
+
readonlyWrapper: string[];
|
|
104
96
|
};
|
|
105
|
-
|
|
106
|
-
|
|
97
|
+
outline: {
|
|
98
|
+
inputWrapper: string[];
|
|
99
|
+
readonlyWrapper: string[];
|
|
100
|
+
};
|
|
101
|
+
underline: {
|
|
102
|
+
inputWrapper: string[];
|
|
103
|
+
readonlyWrapper: string[];
|
|
107
104
|
};
|
|
108
105
|
};
|
|
109
106
|
size: {
|
|
@@ -113,7 +110,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
113
110
|
wrapper: string[];
|
|
114
111
|
inputWrapper: string[];
|
|
115
112
|
input: string[];
|
|
116
|
-
icon: string[];
|
|
117
113
|
errorMessage: string[];
|
|
118
114
|
};
|
|
119
115
|
md: {
|
|
@@ -122,7 +118,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
122
118
|
wrapper: string[];
|
|
123
119
|
inputWrapper: string[];
|
|
124
120
|
input: string[];
|
|
125
|
-
icon: string[];
|
|
126
121
|
errorMessage: string[];
|
|
127
122
|
};
|
|
128
123
|
lg: {
|
|
@@ -131,7 +126,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
131
126
|
wrapper: string[];
|
|
132
127
|
inputWrapper: string[];
|
|
133
128
|
input: string[];
|
|
134
|
-
icon: string[];
|
|
135
129
|
errorMessage: string[];
|
|
136
130
|
};
|
|
137
131
|
xl: {
|
|
@@ -140,7 +134,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
140
134
|
wrapper: string[];
|
|
141
135
|
inputWrapper: string[];
|
|
142
136
|
input: string[];
|
|
143
|
-
icon: string[];
|
|
144
137
|
errorMessage: string[];
|
|
145
138
|
};
|
|
146
139
|
};
|
|
@@ -157,7 +150,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
157
150
|
label: string[];
|
|
158
151
|
inputWrapper: string[];
|
|
159
152
|
input: string[];
|
|
160
|
-
icon: string[];
|
|
161
153
|
errorMessage: string[];
|
|
162
154
|
};
|
|
163
155
|
};
|
|
@@ -167,17 +159,21 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
167
159
|
wrapper: string[];
|
|
168
160
|
inputWrapper: string[];
|
|
169
161
|
input: string[];
|
|
170
|
-
|
|
171
|
-
optionsWrapper: string[];
|
|
162
|
+
portalWrapper: string[];
|
|
172
163
|
errorMessage: string[];
|
|
173
|
-
selectWrapper: never[];
|
|
174
164
|
}, tailwind_variants.TVReturnType<{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
165
|
+
variant: {
|
|
166
|
+
solid: {
|
|
167
|
+
inputWrapper: string[];
|
|
168
|
+
readonlyWrapper: string[];
|
|
178
169
|
};
|
|
179
|
-
|
|
180
|
-
|
|
170
|
+
outline: {
|
|
171
|
+
inputWrapper: string[];
|
|
172
|
+
readonlyWrapper: string[];
|
|
173
|
+
};
|
|
174
|
+
underline: {
|
|
175
|
+
inputWrapper: string[];
|
|
176
|
+
readonlyWrapper: string[];
|
|
181
177
|
};
|
|
182
178
|
};
|
|
183
179
|
size: {
|
|
@@ -187,7 +183,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
187
183
|
wrapper: string[];
|
|
188
184
|
inputWrapper: string[];
|
|
189
185
|
input: string[];
|
|
190
|
-
icon: string[];
|
|
191
186
|
errorMessage: string[];
|
|
192
187
|
};
|
|
193
188
|
md: {
|
|
@@ -196,7 +191,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
196
191
|
wrapper: string[];
|
|
197
192
|
inputWrapper: string[];
|
|
198
193
|
input: string[];
|
|
199
|
-
icon: string[];
|
|
200
194
|
errorMessage: string[];
|
|
201
195
|
};
|
|
202
196
|
lg: {
|
|
@@ -205,7 +199,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
205
199
|
wrapper: string[];
|
|
206
200
|
inputWrapper: string[];
|
|
207
201
|
input: string[];
|
|
208
|
-
icon: string[];
|
|
209
202
|
errorMessage: string[];
|
|
210
203
|
};
|
|
211
204
|
xl: {
|
|
@@ -214,7 +207,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
214
207
|
wrapper: string[];
|
|
215
208
|
inputWrapper: string[];
|
|
216
209
|
input: string[];
|
|
217
|
-
icon: string[];
|
|
218
210
|
errorMessage: string[];
|
|
219
211
|
};
|
|
220
212
|
};
|
|
@@ -231,7 +223,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
231
223
|
label: string[];
|
|
232
224
|
inputWrapper: string[];
|
|
233
225
|
input: string[];
|
|
234
|
-
icon: string[];
|
|
235
226
|
errorMessage: string[];
|
|
236
227
|
};
|
|
237
228
|
};
|
|
@@ -241,10 +232,8 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
241
232
|
wrapper: string[];
|
|
242
233
|
inputWrapper: string[];
|
|
243
234
|
input: string[];
|
|
244
|
-
|
|
245
|
-
optionsWrapper: string[];
|
|
235
|
+
portalWrapper: string[];
|
|
246
236
|
errorMessage: string[];
|
|
247
|
-
selectWrapper: never[];
|
|
248
237
|
}, undefined, unknown, unknown, undefined>>;
|
|
249
238
|
type TimePickerSlots = keyof ReturnType<typeof timePickerStyle>;
|
|
250
239
|
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import react__default, { ComponentProps } from 'react';
|
|
4
|
-
import { SlotsToClasses } from '
|
|
4
|
+
import { SlotsToClasses } from '../../../utils/types.js';
|
|
5
5
|
|
|
6
6
|
interface TimePickerProps extends Omit<ComponentProps<"input">, "size" | "color" | "onChange">, VariantProps<typeof timePickerStyle> {
|
|
7
7
|
label?: string;
|
|
8
8
|
errorMessage?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
end: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
valueRange?: {
|
|
14
|
-
start: string;
|
|
15
|
-
end: string;
|
|
16
|
-
};
|
|
9
|
+
value?: string;
|
|
10
|
+
onChange: (time: string) => void;
|
|
17
11
|
classNames?: SlotsToClasses<TimePickerSlots>;
|
|
18
|
-
selectClassNames?: {
|
|
19
|
-
selectWrapper?: string;
|
|
20
|
-
optionsWrapper?: string;
|
|
21
|
-
};
|
|
22
12
|
placeholder?: string;
|
|
13
|
+
nowTitle: string;
|
|
14
|
+
confirmTitle: string;
|
|
23
15
|
}
|
|
24
16
|
declare const TimePicker: react__default.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & react__default.RefAttributes<HTMLInputElement>>;
|
|
25
17
|
|
|
26
18
|
declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
variant: {
|
|
20
|
+
solid: {
|
|
21
|
+
inputWrapper: string[];
|
|
22
|
+
readonlyWrapper: string[];
|
|
30
23
|
};
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
outline: {
|
|
25
|
+
inputWrapper: string[];
|
|
26
|
+
readonlyWrapper: string[];
|
|
27
|
+
};
|
|
28
|
+
underline: {
|
|
29
|
+
inputWrapper: string[];
|
|
30
|
+
readonlyWrapper: string[];
|
|
33
31
|
};
|
|
34
32
|
};
|
|
35
33
|
size: {
|
|
@@ -39,7 +37,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
39
37
|
wrapper: string[];
|
|
40
38
|
inputWrapper: string[];
|
|
41
39
|
input: string[];
|
|
42
|
-
icon: string[];
|
|
43
40
|
errorMessage: string[];
|
|
44
41
|
};
|
|
45
42
|
md: {
|
|
@@ -48,7 +45,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
48
45
|
wrapper: string[];
|
|
49
46
|
inputWrapper: string[];
|
|
50
47
|
input: string[];
|
|
51
|
-
icon: string[];
|
|
52
48
|
errorMessage: string[];
|
|
53
49
|
};
|
|
54
50
|
lg: {
|
|
@@ -57,7 +53,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
57
53
|
wrapper: string[];
|
|
58
54
|
inputWrapper: string[];
|
|
59
55
|
input: string[];
|
|
60
|
-
icon: string[];
|
|
61
56
|
errorMessage: string[];
|
|
62
57
|
};
|
|
63
58
|
xl: {
|
|
@@ -66,7 +61,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
66
61
|
wrapper: string[];
|
|
67
62
|
inputWrapper: string[];
|
|
68
63
|
input: string[];
|
|
69
|
-
icon: string[];
|
|
70
64
|
errorMessage: string[];
|
|
71
65
|
};
|
|
72
66
|
};
|
|
@@ -83,7 +77,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
83
77
|
label: string[];
|
|
84
78
|
inputWrapper: string[];
|
|
85
79
|
input: string[];
|
|
86
|
-
icon: string[];
|
|
87
80
|
errorMessage: string[];
|
|
88
81
|
};
|
|
89
82
|
};
|
|
@@ -93,17 +86,21 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
93
86
|
wrapper: string[];
|
|
94
87
|
inputWrapper: string[];
|
|
95
88
|
input: string[];
|
|
96
|
-
|
|
97
|
-
optionsWrapper: string[];
|
|
89
|
+
portalWrapper: string[];
|
|
98
90
|
errorMessage: string[];
|
|
99
|
-
selectWrapper: never[];
|
|
100
91
|
}, undefined, {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
92
|
+
variant: {
|
|
93
|
+
solid: {
|
|
94
|
+
inputWrapper: string[];
|
|
95
|
+
readonlyWrapper: string[];
|
|
104
96
|
};
|
|
105
|
-
|
|
106
|
-
|
|
97
|
+
outline: {
|
|
98
|
+
inputWrapper: string[];
|
|
99
|
+
readonlyWrapper: string[];
|
|
100
|
+
};
|
|
101
|
+
underline: {
|
|
102
|
+
inputWrapper: string[];
|
|
103
|
+
readonlyWrapper: string[];
|
|
107
104
|
};
|
|
108
105
|
};
|
|
109
106
|
size: {
|
|
@@ -113,7 +110,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
113
110
|
wrapper: string[];
|
|
114
111
|
inputWrapper: string[];
|
|
115
112
|
input: string[];
|
|
116
|
-
icon: string[];
|
|
117
113
|
errorMessage: string[];
|
|
118
114
|
};
|
|
119
115
|
md: {
|
|
@@ -122,7 +118,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
122
118
|
wrapper: string[];
|
|
123
119
|
inputWrapper: string[];
|
|
124
120
|
input: string[];
|
|
125
|
-
icon: string[];
|
|
126
121
|
errorMessage: string[];
|
|
127
122
|
};
|
|
128
123
|
lg: {
|
|
@@ -131,7 +126,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
131
126
|
wrapper: string[];
|
|
132
127
|
inputWrapper: string[];
|
|
133
128
|
input: string[];
|
|
134
|
-
icon: string[];
|
|
135
129
|
errorMessage: string[];
|
|
136
130
|
};
|
|
137
131
|
xl: {
|
|
@@ -140,7 +134,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
140
134
|
wrapper: string[];
|
|
141
135
|
inputWrapper: string[];
|
|
142
136
|
input: string[];
|
|
143
|
-
icon: string[];
|
|
144
137
|
errorMessage: string[];
|
|
145
138
|
};
|
|
146
139
|
};
|
|
@@ -157,7 +150,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
157
150
|
label: string[];
|
|
158
151
|
inputWrapper: string[];
|
|
159
152
|
input: string[];
|
|
160
|
-
icon: string[];
|
|
161
153
|
errorMessage: string[];
|
|
162
154
|
};
|
|
163
155
|
};
|
|
@@ -167,17 +159,21 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
167
159
|
wrapper: string[];
|
|
168
160
|
inputWrapper: string[];
|
|
169
161
|
input: string[];
|
|
170
|
-
|
|
171
|
-
optionsWrapper: string[];
|
|
162
|
+
portalWrapper: string[];
|
|
172
163
|
errorMessage: string[];
|
|
173
|
-
selectWrapper: never[];
|
|
174
164
|
}, tailwind_variants.TVReturnType<{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
165
|
+
variant: {
|
|
166
|
+
solid: {
|
|
167
|
+
inputWrapper: string[];
|
|
168
|
+
readonlyWrapper: string[];
|
|
178
169
|
};
|
|
179
|
-
|
|
180
|
-
|
|
170
|
+
outline: {
|
|
171
|
+
inputWrapper: string[];
|
|
172
|
+
readonlyWrapper: string[];
|
|
173
|
+
};
|
|
174
|
+
underline: {
|
|
175
|
+
inputWrapper: string[];
|
|
176
|
+
readonlyWrapper: string[];
|
|
181
177
|
};
|
|
182
178
|
};
|
|
183
179
|
size: {
|
|
@@ -187,7 +183,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
187
183
|
wrapper: string[];
|
|
188
184
|
inputWrapper: string[];
|
|
189
185
|
input: string[];
|
|
190
|
-
icon: string[];
|
|
191
186
|
errorMessage: string[];
|
|
192
187
|
};
|
|
193
188
|
md: {
|
|
@@ -196,7 +191,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
196
191
|
wrapper: string[];
|
|
197
192
|
inputWrapper: string[];
|
|
198
193
|
input: string[];
|
|
199
|
-
icon: string[];
|
|
200
194
|
errorMessage: string[];
|
|
201
195
|
};
|
|
202
196
|
lg: {
|
|
@@ -205,7 +199,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
205
199
|
wrapper: string[];
|
|
206
200
|
inputWrapper: string[];
|
|
207
201
|
input: string[];
|
|
208
|
-
icon: string[];
|
|
209
202
|
errorMessage: string[];
|
|
210
203
|
};
|
|
211
204
|
xl: {
|
|
@@ -214,7 +207,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
214
207
|
wrapper: string[];
|
|
215
208
|
inputWrapper: string[];
|
|
216
209
|
input: string[];
|
|
217
|
-
icon: string[];
|
|
218
210
|
errorMessage: string[];
|
|
219
211
|
};
|
|
220
212
|
};
|
|
@@ -231,7 +223,6 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
231
223
|
label: string[];
|
|
232
224
|
inputWrapper: string[];
|
|
233
225
|
input: string[];
|
|
234
|
-
icon: string[];
|
|
235
226
|
errorMessage: string[];
|
|
236
227
|
};
|
|
237
228
|
};
|
|
@@ -241,10 +232,8 @@ declare const timePickerStyle: tailwind_variants.TVReturnType<{
|
|
|
241
232
|
wrapper: string[];
|
|
242
233
|
inputWrapper: string[];
|
|
243
234
|
input: string[];
|
|
244
|
-
|
|
245
|
-
optionsWrapper: string[];
|
|
235
|
+
portalWrapper: string[];
|
|
246
236
|
errorMessage: string[];
|
|
247
|
-
selectWrapper: never[];
|
|
248
237
|
}, undefined, unknown, unknown, undefined>>;
|
|
249
238
|
type TimePickerSlots = keyof ReturnType<typeof timePickerStyle>;
|
|
250
239
|
|