@dmsi/wedgekit-react 0.0.852 → 0.0.853

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.
Files changed (49) hide show
  1. package/dist/{chunk-ILHEM6BK.js → chunk-T7NSOCGM.js} +51 -40
  2. package/dist/components/CalendarRange.cjs +50 -39
  3. package/dist/components/CalendarRange.css +3 -0
  4. package/dist/components/CalendarRange.js +1 -1
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +50 -39
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +3 -0
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -1
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +50 -39
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +3 -0
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -1
  11. package/dist/components/DataGrid/PinnedColumns.cjs +50 -39
  12. package/dist/components/DataGrid/PinnedColumns.css +3 -0
  13. package/dist/components/DataGrid/PinnedColumns.js +1 -1
  14. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +50 -39
  15. package/dist/components/DataGrid/TableBody/LoadingCell.css +3 -0
  16. package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -1
  17. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +50 -39
  18. package/dist/components/DataGrid/TableBody/TableBodyRow.css +3 -0
  19. package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -1
  20. package/dist/components/DataGrid/TableBody/index.cjs +50 -39
  21. package/dist/components/DataGrid/TableBody/index.css +3 -0
  22. package/dist/components/DataGrid/TableBody/index.js +1 -1
  23. package/dist/components/DataGrid/index.cjs +50 -39
  24. package/dist/components/DataGrid/index.css +3 -0
  25. package/dist/components/DataGrid/index.js +1 -1
  26. package/dist/components/DataGrid/utils.cjs +50 -39
  27. package/dist/components/DataGrid/utils.css +3 -0
  28. package/dist/components/DataGrid/utils.js +1 -1
  29. package/dist/components/DateInput.cjs +50 -39
  30. package/dist/components/DateInput.css +3 -0
  31. package/dist/components/DateInput.js +1 -1
  32. package/dist/components/DateRangeInput.cjs +50 -39
  33. package/dist/components/DateRangeInput.css +3 -0
  34. package/dist/components/DateRangeInput.js +1 -1
  35. package/dist/components/MobileDataGrid/ColumnList.css +3 -0
  36. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +50 -39
  37. package/dist/components/MobileDataGrid/ColumnSelector/index.css +3 -0
  38. package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -1
  39. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +50 -39
  40. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +3 -0
  41. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -1
  42. package/dist/components/MobileDataGrid/index.cjs +50 -39
  43. package/dist/components/MobileDataGrid/index.css +3 -0
  44. package/dist/components/MobileDataGrid/index.js +1 -1
  45. package/dist/components/index.cjs +50 -39
  46. package/dist/components/index.css +3 -0
  47. package/dist/components/index.js +1 -1
  48. package/dist/index.css +3 -0
  49. package/package.json +1 -1
@@ -5912,17 +5912,6 @@ var DateInput = (_a) => {
5912
5912
  document.removeEventListener("keydown", handleKeyDown2);
5913
5913
  };
5914
5914
  });
5915
- (0, import_react40.useEffect)(() => {
5916
- const handleClickOutside = (event) => {
5917
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
5918
- setVisible(false);
5919
- }
5920
- };
5921
- document.addEventListener("mousedown", handleClickOutside);
5922
- return () => {
5923
- document.removeEventListener("mousedown", handleClickOutside);
5924
- };
5925
- }, []);
5926
5915
  function handleDateChange(fromValue) {
5927
5916
  onChange(fromValue);
5928
5917
  setVisible(false);
@@ -6024,34 +6013,56 @@ var DateInput = (_a) => {
6024
6013
  })
6025
6014
  ),
6026
6015
  visible && !readOnly && (0, import_react_dom4.createPortal)(
6027
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6028
- "div",
6029
- {
6030
- ref: (el) => {
6031
- popoverRef.current = el;
6032
- },
6033
- className: "absolute z-40 bg-white",
6034
- style: {
6035
- top: `${calendarPosition.top + 4}px`,
6036
- left: `${calendarPosition.left}px`,
6037
- minWidth: `${calendarPosition.width}px`
6038
- },
6039
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6040
- CalendarRange,
6041
- {
6042
- id: id ? `${id}-calendar` : void 0,
6043
- testid: testid ? `${testid}-calendar` : void 0,
6044
- from,
6045
- to: to || from,
6046
- onChange: handleDateChange,
6047
- cardStyle: true,
6048
- mode: "single",
6049
- disableRange: true,
6050
- isDateAvailable
6051
- }
6052
- )
6053
- }
6054
- ),
6016
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
6017
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6018
+ "div",
6019
+ {
6020
+ className: "fixed inset-0 z-30",
6021
+ onClick: () => setVisible(false),
6022
+ onMouseDown: (e) => {
6023
+ e.preventDefault();
6024
+ },
6025
+ onWheel: (e) => {
6026
+ var _a2;
6027
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
6028
+ scrollableParent.scrollTop += e.deltaY;
6029
+ scrollableParent.scrollLeft += e.deltaX;
6030
+ },
6031
+ onTouchMove: (e) => {
6032
+ e.stopPropagation();
6033
+ },
6034
+ style: { touchAction: "pan-y pan-x" },
6035
+ "aria-hidden": "true"
6036
+ }
6037
+ ),
6038
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6039
+ "div",
6040
+ {
6041
+ ref: (el) => {
6042
+ popoverRef.current = el;
6043
+ },
6044
+ className: "absolute z-50 bg-white",
6045
+ style: {
6046
+ top: `${calendarPosition.top + 4}px`,
6047
+ left: `${calendarPosition.left}px`
6048
+ },
6049
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6050
+ CalendarRange,
6051
+ {
6052
+ id: id ? `${id}-calendar` : void 0,
6053
+ testid: testid ? `${testid}-calendar` : void 0,
6054
+ from,
6055
+ to: to || from,
6056
+ onChange: handleDateChange,
6057
+ cardStyle: true,
6058
+ mode: "single",
6059
+ disableRange: true,
6060
+ isDateAvailable
6061
+ }
6062
+ )
6063
+ }
6064
+ )
6065
+ ] }),
6055
6066
  findDocumentRoot(popoverRef.current)
6056
6067
  )
6057
6068
  ] });
@@ -599,6 +599,9 @@
599
599
  .z-20 {
600
600
  z-index: 20;
601
601
  }
602
+ .z-30 {
603
+ z-index: 30;
604
+ }
602
605
  .z-40 {
603
606
  z-index: 40;
604
607
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DateInput
3
- } from "../chunk-ILHEM6BK.js";
3
+ } from "../chunk-T7NSOCGM.js";
4
4
  import "../chunk-WJJB7IJZ.js";
5
5
  import "../chunk-Q4YDNW7N.js";
6
6
  import "../chunk-M7INAUAJ.js";
@@ -4510,17 +4510,6 @@ var DateInput = (_a) => {
4510
4510
  document.removeEventListener("keydown", handleKeyDown2);
4511
4511
  };
4512
4512
  });
4513
- (0, import_react20.useEffect)(() => {
4514
- const handleClickOutside = (event) => {
4515
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4516
- setVisible(false);
4517
- }
4518
- };
4519
- document.addEventListener("mousedown", handleClickOutside);
4520
- return () => {
4521
- document.removeEventListener("mousedown", handleClickOutside);
4522
- };
4523
- }, []);
4524
4513
  function handleDateChange(fromValue) {
4525
4514
  onChange(fromValue);
4526
4515
  setVisible(false);
@@ -4622,34 +4611,56 @@ var DateInput = (_a) => {
4622
4611
  })
4623
4612
  ),
4624
4613
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4625
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4626
- "div",
4627
- {
4628
- ref: (el) => {
4629
- popoverRef.current = el;
4630
- },
4631
- className: "absolute z-40 bg-white",
4632
- style: {
4633
- top: `${calendarPosition.top + 4}px`,
4634
- left: `${calendarPosition.left}px`,
4635
- minWidth: `${calendarPosition.width}px`
4636
- },
4637
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4638
- CalendarRange,
4639
- {
4640
- id: id ? `${id}-calendar` : void 0,
4641
- testid: testid ? `${testid}-calendar` : void 0,
4642
- from,
4643
- to: to || from,
4644
- onChange: handleDateChange,
4645
- cardStyle: true,
4646
- mode: "single",
4647
- disableRange: true,
4648
- isDateAvailable
4649
- }
4650
- )
4651
- }
4652
- ),
4614
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
4615
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4616
+ "div",
4617
+ {
4618
+ className: "fixed inset-0 z-30",
4619
+ onClick: () => setVisible(false),
4620
+ onMouseDown: (e) => {
4621
+ e.preventDefault();
4622
+ },
4623
+ onWheel: (e) => {
4624
+ var _a2;
4625
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
4626
+ scrollableParent.scrollTop += e.deltaY;
4627
+ scrollableParent.scrollLeft += e.deltaX;
4628
+ },
4629
+ onTouchMove: (e) => {
4630
+ e.stopPropagation();
4631
+ },
4632
+ style: { touchAction: "pan-y pan-x" },
4633
+ "aria-hidden": "true"
4634
+ }
4635
+ ),
4636
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4637
+ "div",
4638
+ {
4639
+ ref: (el) => {
4640
+ popoverRef.current = el;
4641
+ },
4642
+ className: "absolute z-50 bg-white",
4643
+ style: {
4644
+ top: `${calendarPosition.top + 4}px`,
4645
+ left: `${calendarPosition.left}px`
4646
+ },
4647
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4648
+ CalendarRange,
4649
+ {
4650
+ id: id ? `${id}-calendar` : void 0,
4651
+ testid: testid ? `${testid}-calendar` : void 0,
4652
+ from,
4653
+ to: to || from,
4654
+ onChange: handleDateChange,
4655
+ cardStyle: true,
4656
+ mode: "single",
4657
+ disableRange: true,
4658
+ isDateAvailable
4659
+ }
4660
+ )
4661
+ }
4662
+ )
4663
+ ] }),
4653
4664
  findDocumentRoot(popoverRef.current)
4654
4665
  )
4655
4666
  ] });
@@ -599,6 +599,9 @@
599
599
  .z-20 {
600
600
  z-index: 20;
601
601
  }
602
+ .z-30 {
603
+ z-index: 30;
604
+ }
602
605
  .z-40 {
603
606
  z-index: 40;
604
607
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-ILHEM6BK.js";
3
+ } from "../chunk-T7NSOCGM.js";
4
4
  import "../chunk-WJJB7IJZ.js";
5
5
  import "../chunk-Q4YDNW7N.js";
6
6
  import "../chunk-M7INAUAJ.js";
@@ -599,6 +599,9 @@
599
599
  .z-20 {
600
600
  z-index: 20;
601
601
  }
602
+ .z-30 {
603
+ z-index: 30;
604
+ }
602
605
  .z-40 {
603
606
  z-index: 40;
604
607
  }
@@ -4963,17 +4963,6 @@ var DateInput = (_a) => {
4963
4963
  document.removeEventListener("keydown", handleKeyDown2);
4964
4964
  };
4965
4965
  });
4966
- (0, import_react21.useEffect)(() => {
4967
- const handleClickOutside = (event) => {
4968
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4969
- setVisible(false);
4970
- }
4971
- };
4972
- document.addEventListener("mousedown", handleClickOutside);
4973
- return () => {
4974
- document.removeEventListener("mousedown", handleClickOutside);
4975
- };
4976
- }, []);
4977
4966
  function handleDateChange(fromValue) {
4978
4967
  onChange(fromValue);
4979
4968
  setVisible(false);
@@ -5075,34 +5064,56 @@ var DateInput = (_a) => {
5075
5064
  })
5076
5065
  ),
5077
5066
  visible && !readOnly && (0, import_react_dom3.createPortal)(
5078
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5079
- "div",
5080
- {
5081
- ref: (el) => {
5082
- popoverRef.current = el;
5083
- },
5084
- className: "absolute z-40 bg-white",
5085
- style: {
5086
- top: `${calendarPosition.top + 4}px`,
5087
- left: `${calendarPosition.left}px`,
5088
- minWidth: `${calendarPosition.width}px`
5089
- },
5090
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5091
- CalendarRange,
5092
- {
5093
- id: id ? `${id}-calendar` : void 0,
5094
- testid: testid ? `${testid}-calendar` : void 0,
5095
- from,
5096
- to: to || from,
5097
- onChange: handleDateChange,
5098
- cardStyle: true,
5099
- mode: "single",
5100
- disableRange: true,
5101
- isDateAvailable
5102
- }
5103
- )
5104
- }
5105
- ),
5067
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
5068
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5069
+ "div",
5070
+ {
5071
+ className: "fixed inset-0 z-30",
5072
+ onClick: () => setVisible(false),
5073
+ onMouseDown: (e) => {
5074
+ e.preventDefault();
5075
+ },
5076
+ onWheel: (e) => {
5077
+ var _a2;
5078
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
5079
+ scrollableParent.scrollTop += e.deltaY;
5080
+ scrollableParent.scrollLeft += e.deltaX;
5081
+ },
5082
+ onTouchMove: (e) => {
5083
+ e.stopPropagation();
5084
+ },
5085
+ style: { touchAction: "pan-y pan-x" },
5086
+ "aria-hidden": "true"
5087
+ }
5088
+ ),
5089
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5090
+ "div",
5091
+ {
5092
+ ref: (el) => {
5093
+ popoverRef.current = el;
5094
+ },
5095
+ className: "absolute z-50 bg-white",
5096
+ style: {
5097
+ top: `${calendarPosition.top + 4}px`,
5098
+ left: `${calendarPosition.left}px`
5099
+ },
5100
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5101
+ CalendarRange,
5102
+ {
5103
+ id: id ? `${id}-calendar` : void 0,
5104
+ testid: testid ? `${testid}-calendar` : void 0,
5105
+ from,
5106
+ to: to || from,
5107
+ onChange: handleDateChange,
5108
+ cardStyle: true,
5109
+ mode: "single",
5110
+ disableRange: true,
5111
+ isDateAvailable
5112
+ }
5113
+ )
5114
+ }
5115
+ )
5116
+ ] }),
5106
5117
  findDocumentRoot(popoverRef.current)
5107
5118
  )
5108
5119
  ] });
@@ -599,6 +599,9 @@
599
599
  .z-20 {
600
600
  z-index: 20;
601
601
  }
602
+ .z-30 {
603
+ z-index: 30;
604
+ }
602
605
  .z-40 {
603
606
  z-index: 40;
604
607
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnSelector
3
- } from "../../../chunk-ILHEM6BK.js";
3
+ } from "../../../chunk-T7NSOCGM.js";
4
4
  import "../../../chunk-WJJB7IJZ.js";
5
5
  import "../../../chunk-Q4YDNW7N.js";
6
6
  import "../../../chunk-M7INAUAJ.js";
@@ -5270,17 +5270,6 @@ var DateInput = (_a) => {
5270
5270
  document.removeEventListener("keydown", handleKeyDown2);
5271
5271
  };
5272
5272
  });
5273
- (0, import_react21.useEffect)(() => {
5274
- const handleClickOutside = (event) => {
5275
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
5276
- setVisible(false);
5277
- }
5278
- };
5279
- document.addEventListener("mousedown", handleClickOutside);
5280
- return () => {
5281
- document.removeEventListener("mousedown", handleClickOutside);
5282
- };
5283
- }, []);
5284
5273
  function handleDateChange(fromValue) {
5285
5274
  onChange(fromValue);
5286
5275
  setVisible(false);
@@ -5382,34 +5371,56 @@ var DateInput = (_a) => {
5382
5371
  })
5383
5372
  ),
5384
5373
  visible && !readOnly && (0, import_react_dom3.createPortal)(
5385
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5386
- "div",
5387
- {
5388
- ref: (el) => {
5389
- popoverRef.current = el;
5390
- },
5391
- className: "absolute z-40 bg-white",
5392
- style: {
5393
- top: `${calendarPosition.top + 4}px`,
5394
- left: `${calendarPosition.left}px`,
5395
- minWidth: `${calendarPosition.width}px`
5396
- },
5397
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5398
- CalendarRange,
5399
- {
5400
- id: id ? `${id}-calendar` : void 0,
5401
- testid: testid ? `${testid}-calendar` : void 0,
5402
- from,
5403
- to: to || from,
5404
- onChange: handleDateChange,
5405
- cardStyle: true,
5406
- mode: "single",
5407
- disableRange: true,
5408
- isDateAvailable
5409
- }
5410
- )
5411
- }
5412
- ),
5374
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
5375
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5376
+ "div",
5377
+ {
5378
+ className: "fixed inset-0 z-30",
5379
+ onClick: () => setVisible(false),
5380
+ onMouseDown: (e) => {
5381
+ e.preventDefault();
5382
+ },
5383
+ onWheel: (e) => {
5384
+ var _a2;
5385
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
5386
+ scrollableParent.scrollTop += e.deltaY;
5387
+ scrollableParent.scrollLeft += e.deltaX;
5388
+ },
5389
+ onTouchMove: (e) => {
5390
+ e.stopPropagation();
5391
+ },
5392
+ style: { touchAction: "pan-y pan-x" },
5393
+ "aria-hidden": "true"
5394
+ }
5395
+ ),
5396
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5397
+ "div",
5398
+ {
5399
+ ref: (el) => {
5400
+ popoverRef.current = el;
5401
+ },
5402
+ className: "absolute z-50 bg-white",
5403
+ style: {
5404
+ top: `${calendarPosition.top + 4}px`,
5405
+ left: `${calendarPosition.left}px`
5406
+ },
5407
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5408
+ CalendarRange,
5409
+ {
5410
+ id: id ? `${id}-calendar` : void 0,
5411
+ testid: testid ? `${testid}-calendar` : void 0,
5412
+ from,
5413
+ to: to || from,
5414
+ onChange: handleDateChange,
5415
+ cardStyle: true,
5416
+ mode: "single",
5417
+ disableRange: true,
5418
+ isDateAvailable
5419
+ }
5420
+ )
5421
+ }
5422
+ )
5423
+ ] }),
5413
5424
  findDocumentRoot(popoverRef.current)
5414
5425
  )
5415
5426
  ] });
@@ -599,6 +599,9 @@
599
599
  .z-20 {
600
600
  z-index: 20;
601
601
  }
602
+ .z-30 {
603
+ z-index: 30;
604
+ }
602
605
  .z-40 {
603
606
  z-index: 40;
604
607
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGridHeader
3
- } from "../../chunk-ILHEM6BK.js";
3
+ } from "../../chunk-T7NSOCGM.js";
4
4
  import "../../chunk-WJJB7IJZ.js";
5
5
  import "../../chunk-Q4YDNW7N.js";
6
6
  import "../../chunk-M7INAUAJ.js";
@@ -5270,17 +5270,6 @@ var DateInput = (_a) => {
5270
5270
  document.removeEventListener("keydown", handleKeyDown2);
5271
5271
  };
5272
5272
  });
5273
- (0, import_react21.useEffect)(() => {
5274
- const handleClickOutside = (event) => {
5275
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
5276
- setVisible(false);
5277
- }
5278
- };
5279
- document.addEventListener("mousedown", handleClickOutside);
5280
- return () => {
5281
- document.removeEventListener("mousedown", handleClickOutside);
5282
- };
5283
- }, []);
5284
5273
  function handleDateChange(fromValue) {
5285
5274
  onChange(fromValue);
5286
5275
  setVisible(false);
@@ -5382,34 +5371,56 @@ var DateInput = (_a) => {
5382
5371
  })
5383
5372
  ),
5384
5373
  visible && !readOnly && (0, import_react_dom3.createPortal)(
5385
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5386
- "div",
5387
- {
5388
- ref: (el) => {
5389
- popoverRef.current = el;
5390
- },
5391
- className: "absolute z-40 bg-white",
5392
- style: {
5393
- top: `${calendarPosition.top + 4}px`,
5394
- left: `${calendarPosition.left}px`,
5395
- minWidth: `${calendarPosition.width}px`
5396
- },
5397
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5398
- CalendarRange,
5399
- {
5400
- id: id ? `${id}-calendar` : void 0,
5401
- testid: testid ? `${testid}-calendar` : void 0,
5402
- from,
5403
- to: to || from,
5404
- onChange: handleDateChange,
5405
- cardStyle: true,
5406
- mode: "single",
5407
- disableRange: true,
5408
- isDateAvailable
5409
- }
5410
- )
5411
- }
5412
- ),
5374
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
5375
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5376
+ "div",
5377
+ {
5378
+ className: "fixed inset-0 z-30",
5379
+ onClick: () => setVisible(false),
5380
+ onMouseDown: (e) => {
5381
+ e.preventDefault();
5382
+ },
5383
+ onWheel: (e) => {
5384
+ var _a2;
5385
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
5386
+ scrollableParent.scrollTop += e.deltaY;
5387
+ scrollableParent.scrollLeft += e.deltaX;
5388
+ },
5389
+ onTouchMove: (e) => {
5390
+ e.stopPropagation();
5391
+ },
5392
+ style: { touchAction: "pan-y pan-x" },
5393
+ "aria-hidden": "true"
5394
+ }
5395
+ ),
5396
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5397
+ "div",
5398
+ {
5399
+ ref: (el) => {
5400
+ popoverRef.current = el;
5401
+ },
5402
+ className: "absolute z-50 bg-white",
5403
+ style: {
5404
+ top: `${calendarPosition.top + 4}px`,
5405
+ left: `${calendarPosition.left}px`
5406
+ },
5407
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5408
+ CalendarRange,
5409
+ {
5410
+ id: id ? `${id}-calendar` : void 0,
5411
+ testid: testid ? `${testid}-calendar` : void 0,
5412
+ from,
5413
+ to: to || from,
5414
+ onChange: handleDateChange,
5415
+ cardStyle: true,
5416
+ mode: "single",
5417
+ disableRange: true,
5418
+ isDateAvailable
5419
+ }
5420
+ )
5421
+ }
5422
+ )
5423
+ ] }),
5413
5424
  findDocumentRoot(popoverRef.current)
5414
5425
  )
5415
5426
  ] });
@@ -599,6 +599,9 @@
599
599
  .z-20 {
600
600
  z-index: 20;
601
601
  }
602
+ .z-30 {
603
+ z-index: 30;
604
+ }
602
605
  .z-40 {
603
606
  z-index: 40;
604
607
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MobileDataGrid
3
- } from "../../chunk-ILHEM6BK.js";
3
+ } from "../../chunk-T7NSOCGM.js";
4
4
  import "../../chunk-WJJB7IJZ.js";
5
5
  import "../../chunk-Q4YDNW7N.js";
6
6
  import "../../chunk-M7INAUAJ.js";