@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
@@ -4927,17 +4927,6 @@ var DateInput = (_a) => {
4927
4927
  document.removeEventListener("keydown", handleKeyDown2);
4928
4928
  };
4929
4929
  });
4930
- (0, import_react21.useEffect)(() => {
4931
- const handleClickOutside = (event) => {
4932
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4933
- setVisible(false);
4934
- }
4935
- };
4936
- document.addEventListener("mousedown", handleClickOutside);
4937
- return () => {
4938
- document.removeEventListener("mousedown", handleClickOutside);
4939
- };
4940
- }, []);
4941
4930
  function handleDateChange(fromValue) {
4942
4931
  onChange(fromValue);
4943
4932
  setVisible(false);
@@ -5039,34 +5028,56 @@ var DateInput = (_a) => {
5039
5028
  })
5040
5029
  ),
5041
5030
  visible && !readOnly && (0, import_react_dom3.createPortal)(
5042
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5043
- "div",
5044
- {
5045
- ref: (el) => {
5046
- popoverRef.current = el;
5047
- },
5048
- className: "absolute z-40 bg-white",
5049
- style: {
5050
- top: `${calendarPosition.top + 4}px`,
5051
- left: `${calendarPosition.left}px`,
5052
- minWidth: `${calendarPosition.width}px`
5053
- },
5054
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5055
- CalendarRange,
5056
- {
5057
- id: id ? `${id}-calendar` : void 0,
5058
- testid: testid ? `${testid}-calendar` : void 0,
5059
- from,
5060
- to: to || from,
5061
- onChange: handleDateChange,
5062
- cardStyle: true,
5063
- mode: "single",
5064
- disableRange: true,
5065
- isDateAvailable
5066
- }
5067
- )
5068
- }
5069
- ),
5031
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
5032
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5033
+ "div",
5034
+ {
5035
+ className: "fixed inset-0 z-30",
5036
+ onClick: () => setVisible(false),
5037
+ onMouseDown: (e) => {
5038
+ e.preventDefault();
5039
+ },
5040
+ onWheel: (e) => {
5041
+ var _a2;
5042
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
5043
+ scrollableParent.scrollTop += e.deltaY;
5044
+ scrollableParent.scrollLeft += e.deltaX;
5045
+ },
5046
+ onTouchMove: (e) => {
5047
+ e.stopPropagation();
5048
+ },
5049
+ style: { touchAction: "pan-y pan-x" },
5050
+ "aria-hidden": "true"
5051
+ }
5052
+ ),
5053
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5054
+ "div",
5055
+ {
5056
+ ref: (el) => {
5057
+ popoverRef.current = el;
5058
+ },
5059
+ className: "absolute z-50 bg-white",
5060
+ style: {
5061
+ top: `${calendarPosition.top + 4}px`,
5062
+ left: `${calendarPosition.left}px`
5063
+ },
5064
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5065
+ CalendarRange,
5066
+ {
5067
+ id: id ? `${id}-calendar` : void 0,
5068
+ testid: testid ? `${testid}-calendar` : void 0,
5069
+ from,
5070
+ to: to || from,
5071
+ onChange: handleDateChange,
5072
+ cardStyle: true,
5073
+ mode: "single",
5074
+ disableRange: true,
5075
+ isDateAvailable
5076
+ }
5077
+ )
5078
+ }
5079
+ )
5080
+ ] }),
5070
5081
  findDocumentRoot(popoverRef.current)
5071
5082
  )
5072
5083
  ] });
@@ -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
  LoadingCell
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";
@@ -4854,17 +4854,6 @@ var DateInput = (_a) => {
4854
4854
  document.removeEventListener("keydown", handleKeyDown2);
4855
4855
  };
4856
4856
  });
4857
- (0, import_react20.useEffect)(() => {
4858
- const handleClickOutside = (event) => {
4859
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4860
- setVisible(false);
4861
- }
4862
- };
4863
- document.addEventListener("mousedown", handleClickOutside);
4864
- return () => {
4865
- document.removeEventListener("mousedown", handleClickOutside);
4866
- };
4867
- }, []);
4868
4857
  function handleDateChange(fromValue) {
4869
4858
  onChange(fromValue);
4870
4859
  setVisible(false);
@@ -4966,34 +4955,56 @@ var DateInput = (_a) => {
4966
4955
  })
4967
4956
  ),
4968
4957
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4969
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4970
- "div",
4971
- {
4972
- ref: (el) => {
4973
- popoverRef.current = el;
4974
- },
4975
- className: "absolute z-40 bg-white",
4976
- style: {
4977
- top: `${calendarPosition.top + 4}px`,
4978
- left: `${calendarPosition.left}px`,
4979
- minWidth: `${calendarPosition.width}px`
4980
- },
4981
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4982
- CalendarRange,
4983
- {
4984
- id: id ? `${id}-calendar` : void 0,
4985
- testid: testid ? `${testid}-calendar` : void 0,
4986
- from,
4987
- to: to || from,
4988
- onChange: handleDateChange,
4989
- cardStyle: true,
4990
- mode: "single",
4991
- disableRange: true,
4992
- isDateAvailable
4993
- }
4994
- )
4995
- }
4996
- ),
4958
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
4959
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4960
+ "div",
4961
+ {
4962
+ className: "fixed inset-0 z-30",
4963
+ onClick: () => setVisible(false),
4964
+ onMouseDown: (e) => {
4965
+ e.preventDefault();
4966
+ },
4967
+ onWheel: (e) => {
4968
+ var _a2;
4969
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
4970
+ scrollableParent.scrollTop += e.deltaY;
4971
+ scrollableParent.scrollLeft += e.deltaX;
4972
+ },
4973
+ onTouchMove: (e) => {
4974
+ e.stopPropagation();
4975
+ },
4976
+ style: { touchAction: "pan-y pan-x" },
4977
+ "aria-hidden": "true"
4978
+ }
4979
+ ),
4980
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4981
+ "div",
4982
+ {
4983
+ ref: (el) => {
4984
+ popoverRef.current = el;
4985
+ },
4986
+ className: "absolute z-50 bg-white",
4987
+ style: {
4988
+ top: `${calendarPosition.top + 4}px`,
4989
+ left: `${calendarPosition.left}px`
4990
+ },
4991
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4992
+ CalendarRange,
4993
+ {
4994
+ id: id ? `${id}-calendar` : void 0,
4995
+ testid: testid ? `${testid}-calendar` : void 0,
4996
+ from,
4997
+ to: to || from,
4998
+ onChange: handleDateChange,
4999
+ cardStyle: true,
5000
+ mode: "single",
5001
+ disableRange: true,
5002
+ isDateAvailable
5003
+ }
5004
+ )
5005
+ }
5006
+ )
5007
+ ] }),
4997
5008
  findDocumentRoot(popoverRef.current)
4998
5009
  )
4999
5010
  ] });
@@ -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
  TableBodyRow
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";
@@ -4666,17 +4666,6 @@ var DateInput = (_a) => {
4666
4666
  document.removeEventListener("keydown", handleKeyDown2);
4667
4667
  };
4668
4668
  });
4669
- (0, import_react20.useEffect)(() => {
4670
- const handleClickOutside = (event) => {
4671
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4672
- setVisible(false);
4673
- }
4674
- };
4675
- document.addEventListener("mousedown", handleClickOutside);
4676
- return () => {
4677
- document.removeEventListener("mousedown", handleClickOutside);
4678
- };
4679
- }, []);
4680
4669
  function handleDateChange(fromValue) {
4681
4670
  onChange(fromValue);
4682
4671
  setVisible(false);
@@ -4778,34 +4767,56 @@ var DateInput = (_a) => {
4778
4767
  })
4779
4768
  ),
4780
4769
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4781
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4782
- "div",
4783
- {
4784
- ref: (el) => {
4785
- popoverRef.current = el;
4786
- },
4787
- className: "absolute z-40 bg-white",
4788
- style: {
4789
- top: `${calendarPosition.top + 4}px`,
4790
- left: `${calendarPosition.left}px`,
4791
- minWidth: `${calendarPosition.width}px`
4792
- },
4793
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4794
- CalendarRange,
4795
- {
4796
- id: id ? `${id}-calendar` : void 0,
4797
- testid: testid ? `${testid}-calendar` : void 0,
4798
- from,
4799
- to: to || from,
4800
- onChange: handleDateChange,
4801
- cardStyle: true,
4802
- mode: "single",
4803
- disableRange: true,
4804
- isDateAvailable
4805
- }
4806
- )
4807
- }
4808
- ),
4770
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
4771
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4772
+ "div",
4773
+ {
4774
+ className: "fixed inset-0 z-30",
4775
+ onClick: () => setVisible(false),
4776
+ onMouseDown: (e) => {
4777
+ e.preventDefault();
4778
+ },
4779
+ onWheel: (e) => {
4780
+ var _a2;
4781
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
4782
+ scrollableParent.scrollTop += e.deltaY;
4783
+ scrollableParent.scrollLeft += e.deltaX;
4784
+ },
4785
+ onTouchMove: (e) => {
4786
+ e.stopPropagation();
4787
+ },
4788
+ style: { touchAction: "pan-y pan-x" },
4789
+ "aria-hidden": "true"
4790
+ }
4791
+ ),
4792
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4793
+ "div",
4794
+ {
4795
+ ref: (el) => {
4796
+ popoverRef.current = el;
4797
+ },
4798
+ className: "absolute z-50 bg-white",
4799
+ style: {
4800
+ top: `${calendarPosition.top + 4}px`,
4801
+ left: `${calendarPosition.left}px`
4802
+ },
4803
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4804
+ CalendarRange,
4805
+ {
4806
+ id: id ? `${id}-calendar` : void 0,
4807
+ testid: testid ? `${testid}-calendar` : void 0,
4808
+ from,
4809
+ to: to || from,
4810
+ onChange: handleDateChange,
4811
+ cardStyle: true,
4812
+ mode: "single",
4813
+ disableRange: true,
4814
+ isDateAvailable
4815
+ }
4816
+ )
4817
+ }
4818
+ )
4819
+ ] }),
4809
4820
  findDocumentRoot(popoverRef.current)
4810
4821
  )
4811
4822
  ] });
@@ -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
  TableBody
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";
@@ -3798,17 +3798,6 @@ var DateInput = (_a) => {
3798
3798
  document.removeEventListener("keydown", handleKeyDown2);
3799
3799
  };
3800
3800
  });
3801
- (0, import_react16.useEffect)(() => {
3802
- const handleClickOutside = (event) => {
3803
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
3804
- setVisible(false);
3805
- }
3806
- };
3807
- document.addEventListener("mousedown", handleClickOutside);
3808
- return () => {
3809
- document.removeEventListener("mousedown", handleClickOutside);
3810
- };
3811
- }, []);
3812
3801
  function handleDateChange(fromValue) {
3813
3802
  onChange(fromValue);
3814
3803
  setVisible(false);
@@ -3910,34 +3899,56 @@ var DateInput = (_a) => {
3910
3899
  })
3911
3900
  ),
3912
3901
  visible && !readOnly && (0, import_react_dom3.createPortal)(
3913
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3914
- "div",
3915
- {
3916
- ref: (el) => {
3917
- popoverRef.current = el;
3918
- },
3919
- className: "absolute z-40 bg-white",
3920
- style: {
3921
- top: `${calendarPosition.top + 4}px`,
3922
- left: `${calendarPosition.left}px`,
3923
- minWidth: `${calendarPosition.width}px`
3924
- },
3925
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3926
- CalendarRange,
3927
- {
3928
- id: id ? `${id}-calendar` : void 0,
3929
- testid: testid ? `${testid}-calendar` : void 0,
3930
- from,
3931
- to: to || from,
3932
- onChange: handleDateChange,
3933
- cardStyle: true,
3934
- mode: "single",
3935
- disableRange: true,
3936
- isDateAvailable
3937
- }
3938
- )
3939
- }
3940
- ),
3902
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
3903
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3904
+ "div",
3905
+ {
3906
+ className: "fixed inset-0 z-30",
3907
+ onClick: () => setVisible(false),
3908
+ onMouseDown: (e) => {
3909
+ e.preventDefault();
3910
+ },
3911
+ onWheel: (e) => {
3912
+ var _a2;
3913
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
3914
+ scrollableParent.scrollTop += e.deltaY;
3915
+ scrollableParent.scrollLeft += e.deltaX;
3916
+ },
3917
+ onTouchMove: (e) => {
3918
+ e.stopPropagation();
3919
+ },
3920
+ style: { touchAction: "pan-y pan-x" },
3921
+ "aria-hidden": "true"
3922
+ }
3923
+ ),
3924
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3925
+ "div",
3926
+ {
3927
+ ref: (el) => {
3928
+ popoverRef.current = el;
3929
+ },
3930
+ className: "absolute z-50 bg-white",
3931
+ style: {
3932
+ top: `${calendarPosition.top + 4}px`,
3933
+ left: `${calendarPosition.left}px`
3934
+ },
3935
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3936
+ CalendarRange,
3937
+ {
3938
+ id: id ? `${id}-calendar` : void 0,
3939
+ testid: testid ? `${testid}-calendar` : void 0,
3940
+ from,
3941
+ to: to || from,
3942
+ onChange: handleDateChange,
3943
+ cardStyle: true,
3944
+ mode: "single",
3945
+ disableRange: true,
3946
+ isDateAvailable
3947
+ }
3948
+ )
3949
+ }
3950
+ )
3951
+ ] }),
3941
3952
  findDocumentRoot(popoverRef.current)
3942
3953
  )
3943
3954
  ] });
@@ -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
  }
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  DataGrid,
4
4
  DataGrid_default
5
- } from "../../chunk-ILHEM6BK.js";
5
+ } from "../../chunk-T7NSOCGM.js";
6
6
  import "../../chunk-WJJB7IJZ.js";
7
7
  import "../../chunk-Q4YDNW7N.js";
8
8
  import "../../chunk-M7INAUAJ.js";
@@ -4946,17 +4946,6 @@ var DateInput = (_a) => {
4946
4946
  document.removeEventListener("keydown", handleKeyDown2);
4947
4947
  };
4948
4948
  });
4949
- (0, import_react21.useEffect)(() => {
4950
- const handleClickOutside = (event) => {
4951
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4952
- setVisible(false);
4953
- }
4954
- };
4955
- document.addEventListener("mousedown", handleClickOutside);
4956
- return () => {
4957
- document.removeEventListener("mousedown", handleClickOutside);
4958
- };
4959
- }, []);
4960
4949
  function handleDateChange(fromValue) {
4961
4950
  onChange(fromValue);
4962
4951
  setVisible(false);
@@ -5058,34 +5047,56 @@ var DateInput = (_a) => {
5058
5047
  })
5059
5048
  ),
5060
5049
  visible && !readOnly && (0, import_react_dom3.createPortal)(
5061
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5062
- "div",
5063
- {
5064
- ref: (el) => {
5065
- popoverRef.current = el;
5066
- },
5067
- className: "absolute z-40 bg-white",
5068
- style: {
5069
- top: `${calendarPosition.top + 4}px`,
5070
- left: `${calendarPosition.left}px`,
5071
- minWidth: `${calendarPosition.width}px`
5072
- },
5073
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5074
- CalendarRange,
5075
- {
5076
- id: id ? `${id}-calendar` : void 0,
5077
- testid: testid ? `${testid}-calendar` : void 0,
5078
- from,
5079
- to: to || from,
5080
- onChange: handleDateChange,
5081
- cardStyle: true,
5082
- mode: "single",
5083
- disableRange: true,
5084
- isDateAvailable
5085
- }
5086
- )
5087
- }
5088
- ),
5050
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
5051
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5052
+ "div",
5053
+ {
5054
+ className: "fixed inset-0 z-30",
5055
+ onClick: () => setVisible(false),
5056
+ onMouseDown: (e) => {
5057
+ e.preventDefault();
5058
+ },
5059
+ onWheel: (e) => {
5060
+ var _a2;
5061
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
5062
+ scrollableParent.scrollTop += e.deltaY;
5063
+ scrollableParent.scrollLeft += e.deltaX;
5064
+ },
5065
+ onTouchMove: (e) => {
5066
+ e.stopPropagation();
5067
+ },
5068
+ style: { touchAction: "pan-y pan-x" },
5069
+ "aria-hidden": "true"
5070
+ }
5071
+ ),
5072
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5073
+ "div",
5074
+ {
5075
+ ref: (el) => {
5076
+ popoverRef.current = el;
5077
+ },
5078
+ className: "absolute z-50 bg-white",
5079
+ style: {
5080
+ top: `${calendarPosition.top + 4}px`,
5081
+ left: `${calendarPosition.left}px`
5082
+ },
5083
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5084
+ CalendarRange,
5085
+ {
5086
+ id: id ? `${id}-calendar` : void 0,
5087
+ testid: testid ? `${testid}-calendar` : void 0,
5088
+ from,
5089
+ to: to || from,
5090
+ onChange: handleDateChange,
5091
+ cardStyle: true,
5092
+ mode: "single",
5093
+ disableRange: true,
5094
+ isDateAvailable
5095
+ }
5096
+ )
5097
+ }
5098
+ )
5099
+ ] }),
5089
5100
  findDocumentRoot(popoverRef.current)
5090
5101
  )
5091
5102
  ] });
@@ -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
  getSortIcon
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";