@dmsi/wedgekit-react 0.0.257 → 0.0.258
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-2MZ5WKCL.js → chunk-5LMXR6AJ.js} +4 -4
- package/dist/{chunk-7PWT532Y.js → chunk-6DPFKSCT.js} +1 -1
- package/dist/{chunk-PEB3BNN6.js → chunk-AEHXCKEP.js} +1 -1
- package/dist/{chunk-FQRSSPFV.js → chunk-ALDZAM7B.js} +2 -2
- package/dist/{chunk-SYN5FFHV.js → chunk-J5V2JRIK.js} +1 -1
- package/dist/{chunk-KIAURU7N.js → chunk-T3TT3SVX.js} +18 -18
- package/dist/{chunk-5NIAGAA7.js → chunk-ZL5X7KP6.js} +12 -5
- package/dist/components/CalendarRange.cjs +9 -2
- package/dist/components/CalendarRange.js +11 -11
- package/dist/components/DataGridCell.cjs +9 -2
- package/dist/components/DataGridCell.js +6 -6
- package/dist/components/DateInput.cjs +15 -6
- package/dist/components/DateInput.js +19 -17
- package/dist/components/DateRangeInput.cjs +15 -6
- package/dist/components/DateRangeInput.js +19 -17
- package/dist/components/FilterGroup.cjs +9 -2
- package/dist/components/FilterGroup.js +11 -11
- package/dist/components/Input.cjs +9 -2
- package/dist/components/Input.js +2 -2
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid.js +3 -3
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalButtons.js +2 -2
- package/dist/components/ModalHeader.js +2 -2
- package/dist/components/NavigationTab.js +2 -2
- package/dist/components/NavigationTabs.js +2 -2
- package/dist/components/NestedMenu.js +2 -2
- package/dist/components/Notification.js +3 -3
- package/dist/components/OptionPill.js +2 -2
- package/dist/components/PDFViewer.js +6 -6
- package/dist/components/Password.cjs +9 -2
- package/dist/components/Password.js +2 -2
- package/dist/components/Search.cjs +9 -2
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.cjs +9 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Stepper.cjs +9 -2
- package/dist/components/Stepper.js +5 -5
- package/dist/components/Time.cjs +9 -2
- package/dist/components/Time.js +4 -4
- package/dist/components/Toast.js +3 -3
- package/dist/components/Upload.js +3 -3
- package/dist/components/index.cjs +9 -2
- package/dist/components/index.js +17 -17
- package/package.json +1 -1
- package/src/components/DateInput.tsx +6 -4
- package/src/components/DateRangeInput.tsx +6 -4
- package/src/components/Input.tsx +7 -0
- package/dist/{chunk-6CPGOW6J.js → chunk-3C2U4FKR.js} +3 -3
- package/dist/{chunk-KKESN5SF.js → chunk-4XTTJOQA.js} +3 -3
- package/dist/{chunk-XM7IQHBU.js → chunk-5OPI4GTJ.js} +3 -3
- package/dist/{chunk-FLVYV4T4.js → chunk-7CA54V6U.js} +3 -3
- package/dist/{chunk-FHQL42YP.js → chunk-YUBQJQ75.js} +3 -3
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-CCOQOO23.js";
|
|
7
7
|
import {
|
|
8
8
|
MenuOption
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
Search
|
|
12
|
-
} from "./chunk-7PWT532Y.js";
|
|
9
|
+
} from "./chunk-7CA54V6U.js";
|
|
13
10
|
import {
|
|
14
11
|
CSS
|
|
15
12
|
} from "./chunk-WVUIIBRR.js";
|
|
13
|
+
import {
|
|
14
|
+
Search
|
|
15
|
+
} from "./chunk-6DPFKSCT.js";
|
|
16
16
|
import {
|
|
17
17
|
Icon
|
|
18
18
|
} from "./chunk-NKUETCDA.js";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-4RJKB7LC.js";
|
|
4
4
|
import {
|
|
5
5
|
ModalButtons
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5OPI4GTJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ModalContent
|
|
9
9
|
} from "./chunk-FRHPFACM.js";
|
|
10
10
|
import {
|
|
11
11
|
ModalHeader
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3C2U4FKR.js";
|
|
13
13
|
import {
|
|
14
14
|
ModalScrim
|
|
15
15
|
} from "./chunk-ZFOANBWG.js";
|
|
@@ -3,22 +3,34 @@ import {
|
|
|
3
3
|
} from "./chunk-QQ5G773N.js";
|
|
4
4
|
import {
|
|
5
5
|
Select
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
Checkbox
|
|
9
|
-
} from "./chunk-NO5BIKWS.js";
|
|
6
|
+
} from "./chunk-J5V2JRIK.js";
|
|
10
7
|
import {
|
|
11
8
|
DataCellHeader,
|
|
12
9
|
DataGridCell,
|
|
13
10
|
DragAlongCell,
|
|
14
11
|
DraggableCellHeader
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5LMXR6AJ.js";
|
|
16
13
|
import {
|
|
17
14
|
Menu
|
|
18
15
|
} from "./chunk-PGSDEGBP.js";
|
|
19
16
|
import {
|
|
20
17
|
MenuOption
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7CA54V6U.js";
|
|
19
|
+
import {
|
|
20
|
+
Search
|
|
21
|
+
} from "./chunk-6DPFKSCT.js";
|
|
22
|
+
import {
|
|
23
|
+
Input
|
|
24
|
+
} from "./chunk-ZL5X7KP6.js";
|
|
25
|
+
import {
|
|
26
|
+
Label
|
|
27
|
+
} from "./chunk-7CS736EF.js";
|
|
28
|
+
import {
|
|
29
|
+
Checkbox
|
|
30
|
+
} from "./chunk-NO5BIKWS.js";
|
|
31
|
+
import {
|
|
32
|
+
Button
|
|
33
|
+
} from "./chunk-WWAPK5PH.js";
|
|
22
34
|
import {
|
|
23
35
|
useInfiniteScroll,
|
|
24
36
|
useTableLayout
|
|
@@ -26,18 +38,9 @@ import {
|
|
|
26
38
|
import {
|
|
27
39
|
formatDate
|
|
28
40
|
} from "./chunk-TYTD4FLW.js";
|
|
29
|
-
import {
|
|
30
|
-
Search
|
|
31
|
-
} from "./chunk-7PWT532Y.js";
|
|
32
|
-
import {
|
|
33
|
-
Input
|
|
34
|
-
} from "./chunk-5NIAGAA7.js";
|
|
35
41
|
import {
|
|
36
42
|
formatCurrencyDisplay
|
|
37
43
|
} from "./chunk-5UH6QUFB.js";
|
|
38
|
-
import {
|
|
39
|
-
Label
|
|
40
|
-
} from "./chunk-7CS736EF.js";
|
|
41
44
|
import {
|
|
42
45
|
Subheader
|
|
43
46
|
} from "./chunk-FA7IFW66.js";
|
|
@@ -47,9 +50,6 @@ import {
|
|
|
47
50
|
import {
|
|
48
51
|
Icon
|
|
49
52
|
} from "./chunk-NKUETCDA.js";
|
|
50
|
-
import {
|
|
51
|
-
Button
|
|
52
|
-
} from "./chunk-WWAPK5PH.js";
|
|
53
53
|
import {
|
|
54
54
|
componentGap,
|
|
55
55
|
componentPadding
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Label
|
|
3
|
+
} from "./chunk-7CS736EF.js";
|
|
1
4
|
import {
|
|
2
5
|
formatCurrencyDisplay,
|
|
3
6
|
formatDecimalValue,
|
|
4
7
|
getDecimalPlaceholder
|
|
5
8
|
} from "./chunk-5UH6QUFB.js";
|
|
6
|
-
import {
|
|
7
|
-
Label
|
|
8
|
-
} from "./chunk-7CS736EF.js";
|
|
9
9
|
import {
|
|
10
10
|
Icon
|
|
11
11
|
} from "./chunk-NKUETCDA.js";
|
|
@@ -50,7 +50,8 @@ var InputBase = (_a) => {
|
|
|
50
50
|
wrapperClassName,
|
|
51
51
|
focus,
|
|
52
52
|
secondaryIconColor,
|
|
53
|
-
fullWidth = true
|
|
53
|
+
fullWidth = true,
|
|
54
|
+
wrapperRef
|
|
54
55
|
} = _b, props = __objRest(_b, [
|
|
55
56
|
"id",
|
|
56
57
|
"testid",
|
|
@@ -70,7 +71,8 @@ var InputBase = (_a) => {
|
|
|
70
71
|
"wrapperClassName",
|
|
71
72
|
"focus",
|
|
72
73
|
"secondaryIconColor",
|
|
73
|
-
"fullWidth"
|
|
74
|
+
"fullWidth",
|
|
75
|
+
"wrapperRef"
|
|
74
76
|
]);
|
|
75
77
|
const attributes = {
|
|
76
78
|
"data-error": error && !focus || null,
|
|
@@ -161,6 +163,11 @@ var InputBase = (_a) => {
|
|
|
161
163
|
inputReadOnlyClass,
|
|
162
164
|
wrapperClassName
|
|
163
165
|
),
|
|
166
|
+
ref: (el) => {
|
|
167
|
+
if (wrapperRef) {
|
|
168
|
+
wrapperRef.current = el;
|
|
169
|
+
}
|
|
170
|
+
},
|
|
164
171
|
children: [
|
|
165
172
|
before,
|
|
166
173
|
/* @__PURE__ */ jsx(
|
|
@@ -1404,7 +1404,8 @@ var InputBase = (_a) => {
|
|
|
1404
1404
|
wrapperClassName,
|
|
1405
1405
|
focus,
|
|
1406
1406
|
secondaryIconColor,
|
|
1407
|
-
fullWidth = true
|
|
1407
|
+
fullWidth = true,
|
|
1408
|
+
wrapperRef
|
|
1408
1409
|
} = _b, props = __objRest(_b, [
|
|
1409
1410
|
"id",
|
|
1410
1411
|
"testid",
|
|
@@ -1424,7 +1425,8 @@ var InputBase = (_a) => {
|
|
|
1424
1425
|
"wrapperClassName",
|
|
1425
1426
|
"focus",
|
|
1426
1427
|
"secondaryIconColor",
|
|
1427
|
-
"fullWidth"
|
|
1428
|
+
"fullWidth",
|
|
1429
|
+
"wrapperRef"
|
|
1428
1430
|
]);
|
|
1429
1431
|
const attributes = {
|
|
1430
1432
|
"data-error": error && !focus || null,
|
|
@@ -1515,6 +1517,11 @@ var InputBase = (_a) => {
|
|
|
1515
1517
|
inputReadOnlyClass,
|
|
1516
1518
|
wrapperClassName
|
|
1517
1519
|
),
|
|
1520
|
+
ref: (el) => {
|
|
1521
|
+
if (wrapperRef) {
|
|
1522
|
+
wrapperRef.current = el;
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1518
1525
|
children: [
|
|
1519
1526
|
before,
|
|
1520
1527
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -2,30 +2,30 @@ import {
|
|
|
2
2
|
CalendarRange,
|
|
3
3
|
CalendarRange_default,
|
|
4
4
|
isWeekend
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-AEHXCKEP.js";
|
|
6
|
+
import "../chunk-T3TT3SVX.js";
|
|
7
7
|
import "../chunk-QQ5G773N.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-2MZ5WKCL.js";
|
|
8
|
+
import "../chunk-J5V2JRIK.js";
|
|
9
|
+
import "../chunk-5LMXR6AJ.js";
|
|
11
10
|
import "../chunk-PGSDEGBP.js";
|
|
12
11
|
import "../chunk-CCOQOO23.js";
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-7CA54V6U.js";
|
|
13
|
+
import "../chunk-WVUIIBRR.js";
|
|
14
|
+
import "../chunk-6DPFKSCT.js";
|
|
15
|
+
import "../chunk-ZL5X7KP6.js";
|
|
16
|
+
import "../chunk-7CS736EF.js";
|
|
17
|
+
import "../chunk-NO5BIKWS.js";
|
|
18
|
+
import "../chunk-WWAPK5PH.js";
|
|
14
19
|
import "../chunk-HIVPC3T4.js";
|
|
15
20
|
import "../chunk-VXWSAIB5.js";
|
|
16
21
|
import "../chunk-TYTD4FLW.js";
|
|
17
|
-
import "../chunk-7PWT532Y.js";
|
|
18
|
-
import "../chunk-5NIAGAA7.js";
|
|
19
22
|
import "../chunk-5UH6QUFB.js";
|
|
20
|
-
import "../chunk-7CS736EF.js";
|
|
21
|
-
import "../chunk-WVUIIBRR.js";
|
|
22
23
|
import "../chunk-FA7IFW66.js";
|
|
23
24
|
import "../chunk-4VER5OEU.js";
|
|
24
25
|
import "../chunk-NQXZBWDZ.js";
|
|
25
26
|
import "../chunk-4LXG6QNT.js";
|
|
26
27
|
import "../chunk-OGIFIPKH.js";
|
|
27
28
|
import "../chunk-NKUETCDA.js";
|
|
28
|
-
import "../chunk-WWAPK5PH.js";
|
|
29
29
|
import "../chunk-6CTCHYIS.js";
|
|
30
30
|
import "../chunk-ORMEWXMH.js";
|
|
31
31
|
export {
|
|
@@ -1271,7 +1271,8 @@ var InputBase = (_a) => {
|
|
|
1271
1271
|
wrapperClassName,
|
|
1272
1272
|
focus,
|
|
1273
1273
|
secondaryIconColor,
|
|
1274
|
-
fullWidth = true
|
|
1274
|
+
fullWidth = true,
|
|
1275
|
+
wrapperRef
|
|
1275
1276
|
} = _b, props = __objRest(_b, [
|
|
1276
1277
|
"id",
|
|
1277
1278
|
"testid",
|
|
@@ -1291,7 +1292,8 @@ var InputBase = (_a) => {
|
|
|
1291
1292
|
"wrapperClassName",
|
|
1292
1293
|
"focus",
|
|
1293
1294
|
"secondaryIconColor",
|
|
1294
|
-
"fullWidth"
|
|
1295
|
+
"fullWidth",
|
|
1296
|
+
"wrapperRef"
|
|
1295
1297
|
]);
|
|
1296
1298
|
const attributes = {
|
|
1297
1299
|
"data-error": error && !focus || null,
|
|
@@ -1382,6 +1384,11 @@ var InputBase = (_a) => {
|
|
|
1382
1384
|
inputReadOnlyClass,
|
|
1383
1385
|
wrapperClassName
|
|
1384
1386
|
),
|
|
1387
|
+
ref: (el) => {
|
|
1388
|
+
if (wrapperRef) {
|
|
1389
|
+
wrapperRef.current = el;
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1385
1392
|
children: [
|
|
1386
1393
|
before,
|
|
1387
1394
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
DataGridCell,
|
|
5
5
|
DragAlongCell,
|
|
6
6
|
DraggableCellHeader
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-5LMXR6AJ.js";
|
|
8
8
|
import "../chunk-PGSDEGBP.js";
|
|
9
9
|
import "../chunk-CCOQOO23.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-7CA54V6U.js";
|
|
11
|
+
import "../chunk-WVUIIBRR.js";
|
|
12
|
+
import "../chunk-6DPFKSCT.js";
|
|
13
|
+
import "../chunk-ZL5X7KP6.js";
|
|
14
|
+
import "../chunk-7CS736EF.js";
|
|
11
15
|
import "../chunk-HIVPC3T4.js";
|
|
12
16
|
import "../chunk-VXWSAIB5.js";
|
|
13
17
|
import "../chunk-TYTD4FLW.js";
|
|
14
|
-
import "../chunk-7PWT532Y.js";
|
|
15
|
-
import "../chunk-5NIAGAA7.js";
|
|
16
18
|
import "../chunk-5UH6QUFB.js";
|
|
17
|
-
import "../chunk-7CS736EF.js";
|
|
18
|
-
import "../chunk-WVUIIBRR.js";
|
|
19
19
|
import "../chunk-OGIFIPKH.js";
|
|
20
20
|
import "../chunk-NKUETCDA.js";
|
|
21
21
|
import "../chunk-6CTCHYIS.js";
|
|
@@ -334,7 +334,8 @@ var InputBase = (_a) => {
|
|
|
334
334
|
wrapperClassName,
|
|
335
335
|
focus,
|
|
336
336
|
secondaryIconColor,
|
|
337
|
-
fullWidth = true
|
|
337
|
+
fullWidth = true,
|
|
338
|
+
wrapperRef
|
|
338
339
|
} = _b, props = __objRest(_b, [
|
|
339
340
|
"id",
|
|
340
341
|
"testid",
|
|
@@ -354,7 +355,8 @@ var InputBase = (_a) => {
|
|
|
354
355
|
"wrapperClassName",
|
|
355
356
|
"focus",
|
|
356
357
|
"secondaryIconColor",
|
|
357
|
-
"fullWidth"
|
|
358
|
+
"fullWidth",
|
|
359
|
+
"wrapperRef"
|
|
358
360
|
]);
|
|
359
361
|
const attributes = {
|
|
360
362
|
"data-error": error && !focus || null,
|
|
@@ -445,6 +447,11 @@ var InputBase = (_a) => {
|
|
|
445
447
|
inputReadOnlyClass,
|
|
446
448
|
wrapperClassName
|
|
447
449
|
),
|
|
450
|
+
ref: (el) => {
|
|
451
|
+
if (wrapperRef) {
|
|
452
|
+
wrapperRef.current = el;
|
|
453
|
+
}
|
|
454
|
+
},
|
|
448
455
|
children: [
|
|
449
456
|
before,
|
|
450
457
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
@@ -4546,6 +4553,7 @@ var DateInput = (_a) => {
|
|
|
4546
4553
|
const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
|
|
4547
4554
|
const popoverRef = (0, import_react20.useRef)(null);
|
|
4548
4555
|
const triggerRef = (0, import_react20.useRef)(null);
|
|
4556
|
+
const rootRef = (0, import_react20.useRef)(null);
|
|
4549
4557
|
const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
|
|
4550
4558
|
top: 0,
|
|
4551
4559
|
left: 0,
|
|
@@ -4563,8 +4571,8 @@ var DateInput = (_a) => {
|
|
|
4563
4571
|
}
|
|
4564
4572
|
}, [visible]);
|
|
4565
4573
|
const updatePosition = () => {
|
|
4566
|
-
if (
|
|
4567
|
-
const rect =
|
|
4574
|
+
if (rootRef.current) {
|
|
4575
|
+
const rect = rootRef.current.getBoundingClientRect();
|
|
4568
4576
|
setCalendarPosition({
|
|
4569
4577
|
top: rect.bottom + window.scrollY,
|
|
4570
4578
|
left: rect.left + window.scrollX,
|
|
@@ -4688,6 +4696,7 @@ var DateInput = (_a) => {
|
|
|
4688
4696
|
triggerRef.current = el;
|
|
4689
4697
|
}
|
|
4690
4698
|
}, props), {
|
|
4699
|
+
wrapperRef: rootRef,
|
|
4691
4700
|
value: inputValue,
|
|
4692
4701
|
placeholder,
|
|
4693
4702
|
disabled,
|
|
@@ -4711,8 +4720,8 @@ var DateInput = (_a) => {
|
|
|
4711
4720
|
},
|
|
4712
4721
|
className: "absolute z-40 bg-white",
|
|
4713
4722
|
style: {
|
|
4714
|
-
top: `${calendarPosition.top +
|
|
4715
|
-
left: `${calendarPosition.left
|
|
4723
|
+
top: `${calendarPosition.top + 4}px`,
|
|
4724
|
+
left: `${calendarPosition.left}px`,
|
|
4716
4725
|
minWidth: `${calendarPosition.width}px`
|
|
4717
4726
|
},
|
|
4718
4727
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-AEHXCKEP.js";
|
|
4
|
+
import "../chunk-T3TT3SVX.js";
|
|
5
5
|
import "../chunk-QQ5G773N.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-2MZ5WKCL.js";
|
|
6
|
+
import "../chunk-J5V2JRIK.js";
|
|
7
|
+
import "../chunk-5LMXR6AJ.js";
|
|
9
8
|
import "../chunk-PGSDEGBP.js";
|
|
10
9
|
import "../chunk-CCOQOO23.js";
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-7CA54V6U.js";
|
|
11
|
+
import "../chunk-WVUIIBRR.js";
|
|
12
|
+
import "../chunk-6DPFKSCT.js";
|
|
13
|
+
import {
|
|
14
|
+
InputBase
|
|
15
|
+
} from "../chunk-ZL5X7KP6.js";
|
|
16
|
+
import "../chunk-7CS736EF.js";
|
|
17
|
+
import "../chunk-NO5BIKWS.js";
|
|
18
|
+
import "../chunk-WWAPK5PH.js";
|
|
12
19
|
import "../chunk-HIVPC3T4.js";
|
|
13
20
|
import {
|
|
14
21
|
findDocumentRoot
|
|
@@ -20,13 +27,7 @@ import {
|
|
|
20
27
|
isValidDate,
|
|
21
28
|
parseInputDate
|
|
22
29
|
} from "../chunk-TYTD4FLW.js";
|
|
23
|
-
import "../chunk-7PWT532Y.js";
|
|
24
|
-
import {
|
|
25
|
-
InputBase
|
|
26
|
-
} from "../chunk-5NIAGAA7.js";
|
|
27
30
|
import "../chunk-5UH6QUFB.js";
|
|
28
|
-
import "../chunk-7CS736EF.js";
|
|
29
|
-
import "../chunk-WVUIIBRR.js";
|
|
30
31
|
import "../chunk-FA7IFW66.js";
|
|
31
32
|
import "../chunk-4VER5OEU.js";
|
|
32
33
|
import "../chunk-NQXZBWDZ.js";
|
|
@@ -35,7 +36,6 @@ import "../chunk-OGIFIPKH.js";
|
|
|
35
36
|
import {
|
|
36
37
|
Icon
|
|
37
38
|
} from "../chunk-NKUETCDA.js";
|
|
38
|
-
import "../chunk-WWAPK5PH.js";
|
|
39
39
|
import "../chunk-6CTCHYIS.js";
|
|
40
40
|
import {
|
|
41
41
|
__objRest,
|
|
@@ -72,6 +72,7 @@ var DateInput = (_a) => {
|
|
|
72
72
|
const [isTyping, setIsTyping] = useState(false);
|
|
73
73
|
const popoverRef = useRef(null);
|
|
74
74
|
const triggerRef = useRef(null);
|
|
75
|
+
const rootRef = useRef(null);
|
|
75
76
|
const [calendarPosition, setCalendarPosition] = useState({
|
|
76
77
|
top: 0,
|
|
77
78
|
left: 0,
|
|
@@ -89,8 +90,8 @@ var DateInput = (_a) => {
|
|
|
89
90
|
}
|
|
90
91
|
}, [visible]);
|
|
91
92
|
const updatePosition = () => {
|
|
92
|
-
if (
|
|
93
|
-
const rect =
|
|
93
|
+
if (rootRef.current) {
|
|
94
|
+
const rect = rootRef.current.getBoundingClientRect();
|
|
94
95
|
setCalendarPosition({
|
|
95
96
|
top: rect.bottom + window.scrollY,
|
|
96
97
|
left: rect.left + window.scrollX,
|
|
@@ -214,6 +215,7 @@ var DateInput = (_a) => {
|
|
|
214
215
|
triggerRef.current = el;
|
|
215
216
|
}
|
|
216
217
|
}, props), {
|
|
218
|
+
wrapperRef: rootRef,
|
|
217
219
|
value: inputValue,
|
|
218
220
|
placeholder,
|
|
219
221
|
disabled,
|
|
@@ -237,8 +239,8 @@ var DateInput = (_a) => {
|
|
|
237
239
|
},
|
|
238
240
|
className: "absolute z-40 bg-white",
|
|
239
241
|
style: {
|
|
240
|
-
top: `${calendarPosition.top +
|
|
241
|
-
left: `${calendarPosition.left
|
|
242
|
+
top: `${calendarPosition.top + 4}px`,
|
|
243
|
+
left: `${calendarPosition.left}px`,
|
|
242
244
|
minWidth: `${calendarPosition.width}px`
|
|
243
245
|
},
|
|
244
246
|
children: /* @__PURE__ */ jsx(
|
|
@@ -334,7 +334,8 @@ var InputBase = (_a) => {
|
|
|
334
334
|
wrapperClassName,
|
|
335
335
|
focus,
|
|
336
336
|
secondaryIconColor,
|
|
337
|
-
fullWidth = true
|
|
337
|
+
fullWidth = true,
|
|
338
|
+
wrapperRef
|
|
338
339
|
} = _b, props = __objRest(_b, [
|
|
339
340
|
"id",
|
|
340
341
|
"testid",
|
|
@@ -354,7 +355,8 @@ var InputBase = (_a) => {
|
|
|
354
355
|
"wrapperClassName",
|
|
355
356
|
"focus",
|
|
356
357
|
"secondaryIconColor",
|
|
357
|
-
"fullWidth"
|
|
358
|
+
"fullWidth",
|
|
359
|
+
"wrapperRef"
|
|
358
360
|
]);
|
|
359
361
|
const attributes = {
|
|
360
362
|
"data-error": error && !focus || null,
|
|
@@ -445,6 +447,11 @@ var InputBase = (_a) => {
|
|
|
445
447
|
inputReadOnlyClass,
|
|
446
448
|
wrapperClassName
|
|
447
449
|
),
|
|
450
|
+
ref: (el) => {
|
|
451
|
+
if (wrapperRef) {
|
|
452
|
+
wrapperRef.current = el;
|
|
453
|
+
}
|
|
454
|
+
},
|
|
448
455
|
children: [
|
|
449
456
|
before,
|
|
450
457
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
@@ -4557,6 +4564,7 @@ var DateRangeInput = (_a) => {
|
|
|
4557
4564
|
const [inputValue, setInputValue] = (0, import_react20.useState)("");
|
|
4558
4565
|
const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
|
|
4559
4566
|
const popoverRef = (0, import_react20.useRef)(null);
|
|
4567
|
+
const rootRef = (0, import_react20.useRef)(null);
|
|
4560
4568
|
const triggerRef = (0, import_react20.useRef)(null);
|
|
4561
4569
|
const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
|
|
4562
4570
|
top: 0,
|
|
@@ -4575,8 +4583,8 @@ var DateRangeInput = (_a) => {
|
|
|
4575
4583
|
}
|
|
4576
4584
|
}, [visible]);
|
|
4577
4585
|
const updatePosition = () => {
|
|
4578
|
-
if (
|
|
4579
|
-
const rect =
|
|
4586
|
+
if (rootRef.current) {
|
|
4587
|
+
const rect = rootRef.current.getBoundingClientRect();
|
|
4580
4588
|
setCalendarPosition({
|
|
4581
4589
|
top: rect.bottom + window.scrollY,
|
|
4582
4590
|
left: rect.left + window.scrollX,
|
|
@@ -4954,6 +4962,7 @@ var DateRangeInput = (_a) => {
|
|
|
4954
4962
|
triggerRef.current = el;
|
|
4955
4963
|
}
|
|
4956
4964
|
}, props), {
|
|
4965
|
+
wrapperRef: rootRef,
|
|
4957
4966
|
value: inputValue,
|
|
4958
4967
|
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
4959
4968
|
disabled,
|
|
@@ -4977,8 +4986,8 @@ var DateRangeInput = (_a) => {
|
|
|
4977
4986
|
},
|
|
4978
4987
|
className: "absolute z-40 bg-white",
|
|
4979
4988
|
style: {
|
|
4980
|
-
top: `${calendarPosition.top +
|
|
4981
|
-
left: `${calendarPosition.left
|
|
4989
|
+
top: `${calendarPosition.top + 4}px`,
|
|
4990
|
+
left: `${calendarPosition.left}px`,
|
|
4982
4991
|
minWidth: `${calendarPosition.width}px`
|
|
4983
4992
|
},
|
|
4984
4993
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-AEHXCKEP.js";
|
|
4
|
+
import "../chunk-T3TT3SVX.js";
|
|
5
5
|
import "../chunk-QQ5G773N.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-2MZ5WKCL.js";
|
|
6
|
+
import "../chunk-J5V2JRIK.js";
|
|
7
|
+
import "../chunk-5LMXR6AJ.js";
|
|
9
8
|
import "../chunk-PGSDEGBP.js";
|
|
10
9
|
import "../chunk-CCOQOO23.js";
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-7CA54V6U.js";
|
|
11
|
+
import "../chunk-WVUIIBRR.js";
|
|
12
|
+
import "../chunk-6DPFKSCT.js";
|
|
13
|
+
import {
|
|
14
|
+
InputBase
|
|
15
|
+
} from "../chunk-ZL5X7KP6.js";
|
|
16
|
+
import "../chunk-7CS736EF.js";
|
|
17
|
+
import "../chunk-NO5BIKWS.js";
|
|
18
|
+
import "../chunk-WWAPK5PH.js";
|
|
12
19
|
import "../chunk-HIVPC3T4.js";
|
|
13
20
|
import {
|
|
14
21
|
findDocumentRoot
|
|
@@ -21,13 +28,7 @@ import {
|
|
|
21
28
|
isValidDateRangeOrder,
|
|
22
29
|
parseInputDate
|
|
23
30
|
} from "../chunk-TYTD4FLW.js";
|
|
24
|
-
import "../chunk-7PWT532Y.js";
|
|
25
|
-
import {
|
|
26
|
-
InputBase
|
|
27
|
-
} from "../chunk-5NIAGAA7.js";
|
|
28
31
|
import "../chunk-5UH6QUFB.js";
|
|
29
|
-
import "../chunk-7CS736EF.js";
|
|
30
|
-
import "../chunk-WVUIIBRR.js";
|
|
31
32
|
import "../chunk-FA7IFW66.js";
|
|
32
33
|
import "../chunk-4VER5OEU.js";
|
|
33
34
|
import "../chunk-NQXZBWDZ.js";
|
|
@@ -36,7 +37,6 @@ import "../chunk-OGIFIPKH.js";
|
|
|
36
37
|
import {
|
|
37
38
|
Icon
|
|
38
39
|
} from "../chunk-NKUETCDA.js";
|
|
39
|
-
import "../chunk-WWAPK5PH.js";
|
|
40
40
|
import "../chunk-6CTCHYIS.js";
|
|
41
41
|
import {
|
|
42
42
|
__objRest,
|
|
@@ -76,6 +76,7 @@ var DateRangeInput = (_a) => {
|
|
|
76
76
|
const [inputValue, setInputValue] = useState("");
|
|
77
77
|
const [isTyping, setIsTyping] = useState(false);
|
|
78
78
|
const popoverRef = useRef(null);
|
|
79
|
+
const rootRef = useRef(null);
|
|
79
80
|
const triggerRef = useRef(null);
|
|
80
81
|
const [calendarPosition, setCalendarPosition] = useState({
|
|
81
82
|
top: 0,
|
|
@@ -94,8 +95,8 @@ var DateRangeInput = (_a) => {
|
|
|
94
95
|
}
|
|
95
96
|
}, [visible]);
|
|
96
97
|
const updatePosition = () => {
|
|
97
|
-
if (
|
|
98
|
-
const rect =
|
|
98
|
+
if (rootRef.current) {
|
|
99
|
+
const rect = rootRef.current.getBoundingClientRect();
|
|
99
100
|
setCalendarPosition({
|
|
100
101
|
top: rect.bottom + window.scrollY,
|
|
101
102
|
left: rect.left + window.scrollX,
|
|
@@ -473,6 +474,7 @@ var DateRangeInput = (_a) => {
|
|
|
473
474
|
triggerRef.current = el;
|
|
474
475
|
}
|
|
475
476
|
}, props), {
|
|
477
|
+
wrapperRef: rootRef,
|
|
476
478
|
value: inputValue,
|
|
477
479
|
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
478
480
|
disabled,
|
|
@@ -496,8 +498,8 @@ var DateRangeInput = (_a) => {
|
|
|
496
498
|
},
|
|
497
499
|
className: "absolute z-40 bg-white",
|
|
498
500
|
style: {
|
|
499
|
-
top: `${calendarPosition.top +
|
|
500
|
-
left: `${calendarPosition.left
|
|
501
|
+
top: `${calendarPosition.top + 4}px`,
|
|
502
|
+
left: `${calendarPosition.left}px`,
|
|
501
503
|
minWidth: `${calendarPosition.width}px`
|
|
502
504
|
},
|
|
503
505
|
children: /* @__PURE__ */ jsx(
|
|
@@ -854,7 +854,8 @@ var InputBase = (_a) => {
|
|
|
854
854
|
wrapperClassName,
|
|
855
855
|
focus,
|
|
856
856
|
secondaryIconColor,
|
|
857
|
-
fullWidth = true
|
|
857
|
+
fullWidth = true,
|
|
858
|
+
wrapperRef
|
|
858
859
|
} = _b, props = __objRest(_b, [
|
|
859
860
|
"id",
|
|
860
861
|
"testid",
|
|
@@ -874,7 +875,8 @@ var InputBase = (_a) => {
|
|
|
874
875
|
"wrapperClassName",
|
|
875
876
|
"focus",
|
|
876
877
|
"secondaryIconColor",
|
|
877
|
-
"fullWidth"
|
|
878
|
+
"fullWidth",
|
|
879
|
+
"wrapperRef"
|
|
878
880
|
]);
|
|
879
881
|
const attributes = {
|
|
880
882
|
"data-error": error && !focus || null,
|
|
@@ -965,6 +967,11 @@ var InputBase = (_a) => {
|
|
|
965
967
|
inputReadOnlyClass,
|
|
966
968
|
wrapperClassName
|
|
967
969
|
),
|
|
970
|
+
ref: (el) => {
|
|
971
|
+
if (wrapperRef) {
|
|
972
|
+
wrapperRef.current = el;
|
|
973
|
+
}
|
|
974
|
+
},
|
|
968
975
|
children: [
|
|
969
976
|
before,
|
|
970
977
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|