@deepnoid/ui 0.0.104 → 0.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DSBSLSJW.mjs → chunk-KCBBBRSF.mjs} +11 -1
- package/dist/{chunk-YZTGM3A3.mjs → chunk-U74WK5VI.mjs} +1 -1
- package/dist/components/dateTimePicker/dateTimePicker.mjs +3 -3
- package/dist/components/dateTimePicker/index.mjs +3 -3
- package/dist/components/select/index.mjs +2 -2
- package/dist/components/select/select.mjs +2 -2
- package/dist/components/select/select.test.mjs +2 -2
- package/dist/components/tooltip/index.js +11 -1
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +11 -1
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tooltip/tooltip.test.js +11 -1
- package/dist/components/tooltip/tooltip.test.mjs +2 -2
- package/dist/components/tooltip/useTooltip.js +11 -1
- package/dist/components/tooltip/useTooltip.mjs +1 -1
- package/dist/index.js +11 -1
- package/dist/index.mjs +28 -28
- package/package.json +1 -1
- package/dist/{chunk-JN7EGKJL.mjs → chunk-2BCJZILI.mjs} +3 -3
- package/dist/{chunk-TSMVRGDO.mjs → chunk-466PGIGU.mjs} +3 -3
|
@@ -20,7 +20,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
20
20
|
right: targetRect.right + scrollX,
|
|
21
21
|
bottom: targetRect.bottom + scrollY
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
|
|
24
|
+
if (tooltipY < 0) {
|
|
25
|
+
tooltipY = adjustedTargetRect.bottom + offset;
|
|
26
|
+
} else if (tooltipY + height > window.innerHeight) {
|
|
27
|
+
tooltipY = adjustedTargetRect.top - height - offset;
|
|
28
|
+
}
|
|
29
|
+
if (tooltipX < 0) {
|
|
30
|
+
tooltipX = adjustedTargetRect.left;
|
|
31
|
+
} else if (tooltipX + width > window.innerWidth) {
|
|
32
|
+
tooltipX = adjustedTargetRect.right - width;
|
|
33
|
+
}
|
|
24
34
|
setTooltipPosition({ x: tooltipX, y: tooltipY });
|
|
25
35
|
}
|
|
26
36
|
}, [placement, offset, targetRect]);
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
dateTimePickerStyle,
|
|
4
4
|
dateTimePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-FWJ2ZKH6.mjs";
|
|
5
|
+
} from "../../chunk-466PGIGU.mjs";
|
|
7
6
|
import "../../chunk-FDKT4IBP.mjs";
|
|
8
|
-
import "../../chunk-P732YGHO.mjs";
|
|
9
7
|
import "../../chunk-BCN5F2MN.mjs";
|
|
10
8
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
11
9
|
import "../../chunk-EYY4CRRR.mjs";
|
|
12
10
|
import "../../chunk-V77MALL4.mjs";
|
|
11
|
+
import "../../chunk-FWJ2ZKH6.mjs";
|
|
12
|
+
import "../../chunk-P732YGHO.mjs";
|
|
13
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
14
14
|
import "../../chunk-LCI6RPWE.mjs";
|
|
15
15
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import "../../chunk-75HLCORR.mjs";
|
|
3
3
|
import {
|
|
4
4
|
dateTimePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-FWJ2ZKH6.mjs";
|
|
5
|
+
} from "../../chunk-466PGIGU.mjs";
|
|
7
6
|
import "../../chunk-FDKT4IBP.mjs";
|
|
8
|
-
import "../../chunk-P732YGHO.mjs";
|
|
9
7
|
import "../../chunk-BCN5F2MN.mjs";
|
|
10
8
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
11
9
|
import "../../chunk-EYY4CRRR.mjs";
|
|
12
10
|
import "../../chunk-V77MALL4.mjs";
|
|
11
|
+
import "../../chunk-FWJ2ZKH6.mjs";
|
|
12
|
+
import "../../chunk-P732YGHO.mjs";
|
|
13
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
14
14
|
import "../../chunk-LCI6RPWE.mjs";
|
|
15
15
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-QCEKPS7U.mjs";
|
|
3
3
|
import {
|
|
4
4
|
select_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-RZZWHI6O.mjs";
|
|
5
|
+
} from "../../chunk-2BCJZILI.mjs";
|
|
7
6
|
import "../../chunk-S3QS5B7F.mjs";
|
|
7
|
+
import "../../chunk-RZZWHI6O.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-LCI6RPWE.mjs";
|
|
10
10
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-RZZWHI6O.mjs";
|
|
4
|
+
} from "../../chunk-2BCJZILI.mjs";
|
|
6
5
|
import "../../chunk-S3QS5B7F.mjs";
|
|
6
|
+
import "../../chunk-RZZWHI6O.mjs";
|
|
7
7
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
8
|
import "../../chunk-LCI6RPWE.mjs";
|
|
9
9
|
import "../../chunk-IOCRFIQF.mjs";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "../../chunk-S4DTK5GI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
select_default
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-RZZWHI6O.mjs";
|
|
7
|
+
} from "../../chunk-2BCJZILI.mjs";
|
|
9
8
|
import "../../chunk-S3QS5B7F.mjs";
|
|
9
|
+
import "../../chunk-RZZWHI6O.mjs";
|
|
10
10
|
import {
|
|
11
11
|
act,
|
|
12
12
|
render
|
|
@@ -143,7 +143,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
143
143
|
right: targetRect.right + scrollX,
|
|
144
144
|
bottom: targetRect.bottom + scrollY
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
|
|
147
|
+
if (tooltipY < 0) {
|
|
148
|
+
tooltipY = adjustedTargetRect.bottom + offset;
|
|
149
|
+
} else if (tooltipY + height > window.innerHeight) {
|
|
150
|
+
tooltipY = adjustedTargetRect.top - height - offset;
|
|
151
|
+
}
|
|
152
|
+
if (tooltipX < 0) {
|
|
153
|
+
tooltipX = adjustedTargetRect.left;
|
|
154
|
+
} else if (tooltipX + width > window.innerWidth) {
|
|
155
|
+
tooltipX = adjustedTargetRect.right - width;
|
|
156
|
+
}
|
|
147
157
|
setTooltipPosition({ x: tooltipX, y: tooltipY });
|
|
148
158
|
}
|
|
149
159
|
}, [placement, offset, targetRect]);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../../chunk-HIE2YRGA.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tooltip_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-U74WK5VI.mjs";
|
|
6
|
+
import "../../chunk-KCBBBRSF.mjs";
|
|
7
7
|
import "../../chunk-ODMRJXLJ.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
9
|
import "../../chunk-J725QONZ.mjs";
|
|
@@ -141,7 +141,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
141
141
|
right: targetRect.right + scrollX,
|
|
142
142
|
bottom: targetRect.bottom + scrollY
|
|
143
143
|
};
|
|
144
|
-
|
|
144
|
+
let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
|
|
145
|
+
if (tooltipY < 0) {
|
|
146
|
+
tooltipY = adjustedTargetRect.bottom + offset;
|
|
147
|
+
} else if (tooltipY + height > window.innerHeight) {
|
|
148
|
+
tooltipY = adjustedTargetRect.top - height - offset;
|
|
149
|
+
}
|
|
150
|
+
if (tooltipX < 0) {
|
|
151
|
+
tooltipX = adjustedTargetRect.left;
|
|
152
|
+
} else if (tooltipX + width > window.innerWidth) {
|
|
153
|
+
tooltipX = adjustedTargetRect.right - width;
|
|
154
|
+
}
|
|
145
155
|
setTooltipPosition({ x: tooltipX, y: tooltipY });
|
|
146
156
|
}
|
|
147
157
|
}, [placement, offset, targetRect]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tooltip_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-U74WK5VI.mjs";
|
|
5
|
+
import "../../chunk-KCBBBRSF.mjs";
|
|
6
6
|
import "../../chunk-ODMRJXLJ.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
8
|
import "../../chunk-J725QONZ.mjs";
|
|
@@ -12988,7 +12988,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
12988
12988
|
right: targetRect.right + scrollX,
|
|
12989
12989
|
bottom: targetRect.bottom + scrollY
|
|
12990
12990
|
};
|
|
12991
|
-
|
|
12991
|
+
let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
|
|
12992
|
+
if (tooltipY < 0) {
|
|
12993
|
+
tooltipY = adjustedTargetRect.bottom + offset;
|
|
12994
|
+
} else if (tooltipY + height > window.innerHeight) {
|
|
12995
|
+
tooltipY = adjustedTargetRect.top - height - offset;
|
|
12996
|
+
}
|
|
12997
|
+
if (tooltipX < 0) {
|
|
12998
|
+
tooltipX = adjustedTargetRect.left;
|
|
12999
|
+
} else if (tooltipX + width > window.innerWidth) {
|
|
13000
|
+
tooltipX = adjustedTargetRect.right - width;
|
|
13001
|
+
}
|
|
12992
13002
|
setTooltipPosition({ x: tooltipX, y: tooltipY });
|
|
12993
13003
|
}
|
|
12994
13004
|
}, [placement, offset, targetRect]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tooltip_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-U74WK5VI.mjs";
|
|
5
|
+
import "../../chunk-KCBBBRSF.mjs";
|
|
6
6
|
import "../../chunk-ODMRJXLJ.mjs";
|
|
7
7
|
import "../../chunk-VUYUQGLF.mjs";
|
|
8
8
|
import "../../chunk-NGQ3MK2J.mjs";
|
|
@@ -98,7 +98,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
98
98
|
right: targetRect.right + scrollX,
|
|
99
99
|
bottom: targetRect.bottom + scrollY
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
|
|
102
|
+
if (tooltipY < 0) {
|
|
103
|
+
tooltipY = adjustedTargetRect.bottom + offset;
|
|
104
|
+
} else if (tooltipY + height > window.innerHeight) {
|
|
105
|
+
tooltipY = adjustedTargetRect.top - height - offset;
|
|
106
|
+
}
|
|
107
|
+
if (tooltipX < 0) {
|
|
108
|
+
tooltipX = adjustedTargetRect.left;
|
|
109
|
+
} else if (tooltipX + width > window.innerWidth) {
|
|
110
|
+
tooltipX = adjustedTargetRect.right - width;
|
|
111
|
+
}
|
|
102
112
|
setTooltipPosition({ x: tooltipX, y: tooltipY });
|
|
103
113
|
}
|
|
104
114
|
}, [placement, offset, targetRect]);
|
package/dist/index.js
CHANGED
|
@@ -7091,7 +7091,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
|
|
|
7091
7091
|
right: targetRect.right + scrollX,
|
|
7092
7092
|
bottom: targetRect.bottom + scrollY
|
|
7093
7093
|
};
|
|
7094
|
-
|
|
7094
|
+
let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
|
|
7095
|
+
if (tooltipY < 0) {
|
|
7096
|
+
tooltipY = adjustedTargetRect.bottom + offset;
|
|
7097
|
+
} else if (tooltipY + height > window.innerHeight) {
|
|
7098
|
+
tooltipY = adjustedTargetRect.top - height - offset;
|
|
7099
|
+
}
|
|
7100
|
+
if (tooltipX < 0) {
|
|
7101
|
+
tooltipX = adjustedTargetRect.left;
|
|
7102
|
+
} else if (tooltipX + width > window.innerWidth) {
|
|
7103
|
+
tooltipX = adjustedTargetRect.right - width;
|
|
7104
|
+
}
|
|
7095
7105
|
setTooltipPosition({ x: tooltipX, y: tooltipY });
|
|
7096
7106
|
}
|
|
7097
7107
|
}, [placement, offset, targetRect]);
|
package/dist/index.mjs
CHANGED
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
import "./chunk-HIE2YRGA.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tooltip_default
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-U74WK5VI.mjs";
|
|
6
|
+
import "./chunk-KCBBBRSF.mjs";
|
|
7
7
|
import "./chunk-ODMRJXLJ.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import
|
|
10
|
+
tabs_default
|
|
11
|
+
} from "./chunk-KRI5IALM.mjs";
|
|
12
|
+
import "./chunk-RRAZM5D3.mjs";
|
|
13
|
+
import {
|
|
14
|
+
textarea_default
|
|
15
|
+
} from "./chunk-OJ2OEI5B.mjs";
|
|
14
16
|
import "./chunk-LUWGOKLG.mjs";
|
|
15
17
|
import {
|
|
16
18
|
ToastProvider,
|
|
@@ -20,28 +22,26 @@ import "./chunk-ZOTHPHXA.mjs";
|
|
|
20
22
|
import {
|
|
21
23
|
toast_default
|
|
22
24
|
} from "./chunk-PXUBPWKU.mjs";
|
|
23
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
24
|
-
import {
|
|
25
|
-
tabs_default
|
|
26
|
-
} from "./chunk-KRI5IALM.mjs";
|
|
27
|
-
import "./chunk-RRAZM5D3.mjs";
|
|
28
|
-
import {
|
|
29
|
-
textarea_default
|
|
30
|
-
} from "./chunk-OJ2OEI5B.mjs";
|
|
31
25
|
import "./chunk-MV2WCFK7.mjs";
|
|
32
26
|
import {
|
|
33
27
|
slider_default
|
|
34
28
|
} from "./chunk-A3RWT3JJ.mjs";
|
|
35
|
-
import "./chunk-LVFI2NOH.mjs";
|
|
36
|
-
import {
|
|
37
|
-
switch_default
|
|
38
|
-
} from "./chunk-S3O52LLG.mjs";
|
|
39
29
|
import "./chunk-2UUH2MBF.mjs";
|
|
40
30
|
import {
|
|
41
31
|
table_default
|
|
42
32
|
} from "./chunk-R2E7UZZO.mjs";
|
|
43
33
|
import "./chunk-VWD26TIQ.mjs";
|
|
44
34
|
import "./chunk-PO3ADNA5.mjs";
|
|
35
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
36
|
+
import {
|
|
37
|
+
switch_default
|
|
38
|
+
} from "./chunk-S3O52LLG.mjs";
|
|
39
|
+
import "./chunk-QCEKPS7U.mjs";
|
|
40
|
+
import {
|
|
41
|
+
select_default
|
|
42
|
+
} from "./chunk-2BCJZILI.mjs";
|
|
43
|
+
import "./chunk-S3QS5B7F.mjs";
|
|
44
|
+
import "./chunk-RZZWHI6O.mjs";
|
|
45
45
|
import "./chunk-7VOQKIIK.mjs";
|
|
46
46
|
import {
|
|
47
47
|
progress_default
|
|
@@ -59,22 +59,17 @@ import {
|
|
|
59
59
|
pagination_default
|
|
60
60
|
} from "./chunk-UZL66GNP.mjs";
|
|
61
61
|
import "./chunk-F3HENRVM.mjs";
|
|
62
|
+
import "./chunk-QZ3LVYJW.mjs";
|
|
62
63
|
import "./chunk-2GCSFWHD.mjs";
|
|
63
64
|
import {
|
|
64
65
|
input_default
|
|
65
66
|
} from "./chunk-ZNEEYSIK.mjs";
|
|
66
|
-
import "./chunk-QZ3LVYJW.mjs";
|
|
67
67
|
import "./chunk-HAOK24MK.mjs";
|
|
68
|
-
import {
|
|
69
|
-
card_default
|
|
70
|
-
} from "./chunk-2ALY3PH5.mjs";
|
|
71
68
|
import "./chunk-75HLCORR.mjs";
|
|
72
69
|
import {
|
|
73
70
|
dateTimePicker_default
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-FWJ2ZKH6.mjs";
|
|
71
|
+
} from "./chunk-466PGIGU.mjs";
|
|
76
72
|
import "./chunk-FDKT4IBP.mjs";
|
|
77
|
-
import "./chunk-P732YGHO.mjs";
|
|
78
73
|
import "./chunk-BCN5F2MN.mjs";
|
|
79
74
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
80
75
|
import {
|
|
@@ -83,6 +78,11 @@ import {
|
|
|
83
78
|
import {
|
|
84
79
|
listItem_default
|
|
85
80
|
} from "./chunk-V77MALL4.mjs";
|
|
81
|
+
import "./chunk-FWJ2ZKH6.mjs";
|
|
82
|
+
import "./chunk-P732YGHO.mjs";
|
|
83
|
+
import {
|
|
84
|
+
checkbox_default
|
|
85
|
+
} from "./chunk-ANYPMQH4.mjs";
|
|
86
86
|
import "./chunk-NMSDSEBD.mjs";
|
|
87
87
|
import "./chunk-VUYUQGLF.mjs";
|
|
88
88
|
import {
|
|
@@ -92,8 +92,8 @@ import {
|
|
|
92
92
|
button_default
|
|
93
93
|
} from "./chunk-UR64ZUAU.mjs";
|
|
94
94
|
import {
|
|
95
|
-
|
|
96
|
-
} from "./chunk-
|
|
95
|
+
card_default
|
|
96
|
+
} from "./chunk-2ALY3PH5.mjs";
|
|
97
97
|
import "./chunk-27Y6K5NK.mjs";
|
|
98
98
|
import {
|
|
99
99
|
accordion_default
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useDatePicker
|
|
4
|
-
} from "./chunk-FWJ2ZKH6.mjs";
|
|
5
2
|
import {
|
|
6
3
|
calendar_default
|
|
7
4
|
} from "./chunk-FDKT4IBP.mjs";
|
|
8
5
|
import {
|
|
9
6
|
timePicker_default
|
|
10
7
|
} from "./chunk-BCN5F2MN.mjs";
|
|
8
|
+
import {
|
|
9
|
+
useDatePicker
|
|
10
|
+
} from "./chunk-FWJ2ZKH6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Icon_default
|
|
13
13
|
} from "./chunk-LCI6RPWE.mjs";
|