@dmsi/wedgekit-react 0.0.851 → 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
@@ -1741,7 +1741,7 @@ function CalendarPane({
1741
1741
  var CalendarRange_default = CalendarRange;
1742
1742
 
1743
1743
  // src/components/DateInput.tsx
1744
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1744
+ import { Fragment, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1745
1745
  var DateInput = (_a) => {
1746
1746
  var _b = _a, {
1747
1747
  id,
@@ -1823,17 +1823,6 @@ var DateInput = (_a) => {
1823
1823
  document.removeEventListener("keydown", handleKeyDown2);
1824
1824
  };
1825
1825
  });
1826
- useEffect3(() => {
1827
- const handleClickOutside = (event) => {
1828
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
1829
- setVisible(false);
1830
- }
1831
- };
1832
- document.addEventListener("mousedown", handleClickOutside);
1833
- return () => {
1834
- document.removeEventListener("mousedown", handleClickOutside);
1835
- };
1836
- }, []);
1837
1826
  function handleDateChange(fromValue) {
1838
1827
  onChange(fromValue);
1839
1828
  setVisible(false);
@@ -1935,34 +1924,56 @@ var DateInput = (_a) => {
1935
1924
  })
1936
1925
  ),
1937
1926
  visible && !readOnly && createPortal(
1938
- /* @__PURE__ */ jsx9(
1939
- "div",
1940
- {
1941
- ref: (el) => {
1942
- popoverRef.current = el;
1943
- },
1944
- className: "absolute z-40 bg-white",
1945
- style: {
1946
- top: `${calendarPosition.top + 4}px`,
1947
- left: `${calendarPosition.left}px`,
1948
- minWidth: `${calendarPosition.width}px`
1949
- },
1950
- children: /* @__PURE__ */ jsx9(
1951
- CalendarRange,
1952
- {
1953
- id: id ? `${id}-calendar` : void 0,
1954
- testid: testid ? `${testid}-calendar` : void 0,
1955
- from,
1956
- to: to || from,
1957
- onChange: handleDateChange,
1958
- cardStyle: true,
1959
- mode: "single",
1960
- disableRange: true,
1961
- isDateAvailable
1962
- }
1963
- )
1964
- }
1965
- ),
1927
+ /* @__PURE__ */ jsxs7(Fragment, { children: [
1928
+ /* @__PURE__ */ jsx9(
1929
+ "div",
1930
+ {
1931
+ className: "fixed inset-0 z-30",
1932
+ onClick: () => setVisible(false),
1933
+ onMouseDown: (e) => {
1934
+ e.preventDefault();
1935
+ },
1936
+ onWheel: (e) => {
1937
+ var _a2;
1938
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
1939
+ scrollableParent.scrollTop += e.deltaY;
1940
+ scrollableParent.scrollLeft += e.deltaX;
1941
+ },
1942
+ onTouchMove: (e) => {
1943
+ e.stopPropagation();
1944
+ },
1945
+ style: { touchAction: "pan-y pan-x" },
1946
+ "aria-hidden": "true"
1947
+ }
1948
+ ),
1949
+ /* @__PURE__ */ jsx9(
1950
+ "div",
1951
+ {
1952
+ ref: (el) => {
1953
+ popoverRef.current = el;
1954
+ },
1955
+ className: "absolute z-50 bg-white",
1956
+ style: {
1957
+ top: `${calendarPosition.top + 4}px`,
1958
+ left: `${calendarPosition.left}px`
1959
+ },
1960
+ children: /* @__PURE__ */ jsx9(
1961
+ CalendarRange,
1962
+ {
1963
+ id: id ? `${id}-calendar` : void 0,
1964
+ testid: testid ? `${testid}-calendar` : void 0,
1965
+ from,
1966
+ to: to || from,
1967
+ onChange: handleDateChange,
1968
+ cardStyle: true,
1969
+ mode: "single",
1970
+ disableRange: true,
1971
+ isDateAvailable
1972
+ }
1973
+ )
1974
+ }
1975
+ )
1976
+ ] }),
1966
1977
  findDocumentRoot(popoverRef.current)
1967
1978
  )
1968
1979
  ] });
@@ -4502,17 +4502,6 @@ var DateInput = (_a) => {
4502
4502
  document.removeEventListener("keydown", handleKeyDown2);
4503
4503
  };
4504
4504
  });
4505
- (0, import_react20.useEffect)(() => {
4506
- const handleClickOutside = (event) => {
4507
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4508
- setVisible(false);
4509
- }
4510
- };
4511
- document.addEventListener("mousedown", handleClickOutside);
4512
- return () => {
4513
- document.removeEventListener("mousedown", handleClickOutside);
4514
- };
4515
- }, []);
4516
4505
  function handleDateChange(fromValue) {
4517
4506
  onChange(fromValue);
4518
4507
  setVisible(false);
@@ -4614,34 +4603,56 @@ var DateInput = (_a) => {
4614
4603
  })
4615
4604
  ),
4616
4605
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4617
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4618
- "div",
4619
- {
4620
- ref: (el) => {
4621
- popoverRef.current = el;
4622
- },
4623
- className: "absolute z-40 bg-white",
4624
- style: {
4625
- top: `${calendarPosition.top + 4}px`,
4626
- left: `${calendarPosition.left}px`,
4627
- minWidth: `${calendarPosition.width}px`
4628
- },
4629
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4630
- CalendarRange,
4631
- {
4632
- id: id ? `${id}-calendar` : void 0,
4633
- testid: testid ? `${testid}-calendar` : void 0,
4634
- from,
4635
- to: to || from,
4636
- onChange: handleDateChange,
4637
- cardStyle: true,
4638
- mode: "single",
4639
- disableRange: true,
4640
- isDateAvailable
4641
- }
4642
- )
4643
- }
4644
- ),
4606
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
4607
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4608
+ "div",
4609
+ {
4610
+ className: "fixed inset-0 z-30",
4611
+ onClick: () => setVisible(false),
4612
+ onMouseDown: (e) => {
4613
+ e.preventDefault();
4614
+ },
4615
+ onWheel: (e) => {
4616
+ var _a2;
4617
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
4618
+ scrollableParent.scrollTop += e.deltaY;
4619
+ scrollableParent.scrollLeft += e.deltaX;
4620
+ },
4621
+ onTouchMove: (e) => {
4622
+ e.stopPropagation();
4623
+ },
4624
+ style: { touchAction: "pan-y pan-x" },
4625
+ "aria-hidden": "true"
4626
+ }
4627
+ ),
4628
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4629
+ "div",
4630
+ {
4631
+ ref: (el) => {
4632
+ popoverRef.current = el;
4633
+ },
4634
+ className: "absolute z-50 bg-white",
4635
+ style: {
4636
+ top: `${calendarPosition.top + 4}px`,
4637
+ left: `${calendarPosition.left}px`
4638
+ },
4639
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4640
+ CalendarRange,
4641
+ {
4642
+ id: id ? `${id}-calendar` : void 0,
4643
+ testid: testid ? `${testid}-calendar` : void 0,
4644
+ from,
4645
+ to: to || from,
4646
+ onChange: handleDateChange,
4647
+ cardStyle: true,
4648
+ mode: "single",
4649
+ disableRange: true,
4650
+ isDateAvailable
4651
+ }
4652
+ )
4653
+ }
4654
+ )
4655
+ ] }),
4645
4656
  findDocumentRoot(popoverRef.current)
4646
4657
  )
4647
4658
  ] });
@@ -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 @@ import {
2
2
  CalendarRange,
3
3
  CalendarRange_default,
4
4
  isWeekend
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";
@@ -4935,17 +4935,6 @@ var DateInput = (_a) => {
4935
4935
  document.removeEventListener("keydown", handleKeyDown2);
4936
4936
  };
4937
4937
  });
4938
- (0, import_react20.useEffect)(() => {
4939
- const handleClickOutside = (event) => {
4940
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4941
- setVisible(false);
4942
- }
4943
- };
4944
- document.addEventListener("mousedown", handleClickOutside);
4945
- return () => {
4946
- document.removeEventListener("mousedown", handleClickOutside);
4947
- };
4948
- }, []);
4949
4938
  function handleDateChange(fromValue) {
4950
4939
  onChange(fromValue);
4951
4940
  setVisible(false);
@@ -5047,34 +5036,56 @@ var DateInput = (_a) => {
5047
5036
  })
5048
5037
  ),
5049
5038
  visible && !readOnly && (0, import_react_dom3.createPortal)(
5050
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5051
- "div",
5052
- {
5053
- ref: (el) => {
5054
- popoverRef.current = el;
5055
- },
5056
- className: "absolute z-40 bg-white",
5057
- style: {
5058
- top: `${calendarPosition.top + 4}px`,
5059
- left: `${calendarPosition.left}px`,
5060
- minWidth: `${calendarPosition.width}px`
5061
- },
5062
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5063
- CalendarRange,
5064
- {
5065
- id: id ? `${id}-calendar` : void 0,
5066
- testid: testid ? `${testid}-calendar` : void 0,
5067
- from,
5068
- to: to || from,
5069
- onChange: handleDateChange,
5070
- cardStyle: true,
5071
- mode: "single",
5072
- disableRange: true,
5073
- isDateAvailable
5074
- }
5075
- )
5076
- }
5077
- ),
5039
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
5040
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5041
+ "div",
5042
+ {
5043
+ className: "fixed inset-0 z-30",
5044
+ onClick: () => setVisible(false),
5045
+ onMouseDown: (e) => {
5046
+ e.preventDefault();
5047
+ },
5048
+ onWheel: (e) => {
5049
+ var _a2;
5050
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
5051
+ scrollableParent.scrollTop += e.deltaY;
5052
+ scrollableParent.scrollLeft += e.deltaX;
5053
+ },
5054
+ onTouchMove: (e) => {
5055
+ e.stopPropagation();
5056
+ },
5057
+ style: { touchAction: "pan-y pan-x" },
5058
+ "aria-hidden": "true"
5059
+ }
5060
+ ),
5061
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5062
+ "div",
5063
+ {
5064
+ ref: (el) => {
5065
+ popoverRef.current = el;
5066
+ },
5067
+ className: "absolute z-50 bg-white",
5068
+ style: {
5069
+ top: `${calendarPosition.top + 4}px`,
5070
+ left: `${calendarPosition.left}px`
5071
+ },
5072
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5073
+ CalendarRange,
5074
+ {
5075
+ id: id ? `${id}-calendar` : void 0,
5076
+ testid: testid ? `${testid}-calendar` : void 0,
5077
+ from,
5078
+ to: to || from,
5079
+ onChange: handleDateChange,
5080
+ cardStyle: true,
5081
+ mode: "single",
5082
+ disableRange: true,
5083
+ isDateAvailable
5084
+ }
5085
+ )
5086
+ }
5087
+ )
5088
+ ] }),
5078
5089
  findDocumentRoot(popoverRef.current)
5079
5090
  )
5080
5091
  ] });
@@ -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
  ColumnSelectorMenuOption
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";
@@ -4857,17 +4857,6 @@ var DateInput = (_a) => {
4857
4857
  document.removeEventListener("keydown", handleKeyDown2);
4858
4858
  };
4859
4859
  });
4860
- (0, import_react19.useEffect)(() => {
4861
- const handleClickOutside = (event) => {
4862
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4863
- setVisible(false);
4864
- }
4865
- };
4866
- document.addEventListener("mousedown", handleClickOutside);
4867
- return () => {
4868
- document.removeEventListener("mousedown", handleClickOutside);
4869
- };
4870
- }, []);
4871
4860
  function handleDateChange(fromValue) {
4872
4861
  onChange(fromValue);
4873
4862
  setVisible(false);
@@ -4969,34 +4958,56 @@ var DateInput = (_a) => {
4969
4958
  })
4970
4959
  ),
4971
4960
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4972
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4973
- "div",
4974
- {
4975
- ref: (el) => {
4976
- popoverRef.current = el;
4977
- },
4978
- className: "absolute z-40 bg-white",
4979
- style: {
4980
- top: `${calendarPosition.top + 4}px`,
4981
- left: `${calendarPosition.left}px`,
4982
- minWidth: `${calendarPosition.width}px`
4983
- },
4984
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4985
- CalendarRange,
4986
- {
4987
- id: id ? `${id}-calendar` : void 0,
4988
- testid: testid ? `${testid}-calendar` : void 0,
4989
- from,
4990
- to: to || from,
4991
- onChange: handleDateChange,
4992
- cardStyle: true,
4993
- mode: "single",
4994
- disableRange: true,
4995
- isDateAvailable
4996
- }
4997
- )
4998
- }
4999
- ),
4961
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
4962
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4963
+ "div",
4964
+ {
4965
+ className: "fixed inset-0 z-30",
4966
+ onClick: () => setVisible(false),
4967
+ onMouseDown: (e) => {
4968
+ e.preventDefault();
4969
+ },
4970
+ onWheel: (e) => {
4971
+ var _a2;
4972
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
4973
+ scrollableParent.scrollTop += e.deltaY;
4974
+ scrollableParent.scrollLeft += e.deltaX;
4975
+ },
4976
+ onTouchMove: (e) => {
4977
+ e.stopPropagation();
4978
+ },
4979
+ style: { touchAction: "pan-y pan-x" },
4980
+ "aria-hidden": "true"
4981
+ }
4982
+ ),
4983
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4984
+ "div",
4985
+ {
4986
+ ref: (el) => {
4987
+ popoverRef.current = el;
4988
+ },
4989
+ className: "absolute z-50 bg-white",
4990
+ style: {
4991
+ top: `${calendarPosition.top + 4}px`,
4992
+ left: `${calendarPosition.left}px`
4993
+ },
4994
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4995
+ CalendarRange,
4996
+ {
4997
+ id: id ? `${id}-calendar` : void 0,
4998
+ testid: testid ? `${testid}-calendar` : void 0,
4999
+ from,
5000
+ to: to || from,
5001
+ onChange: handleDateChange,
5002
+ cardStyle: true,
5003
+ mode: "single",
5004
+ disableRange: true,
5005
+ isDateAvailable
5006
+ }
5007
+ )
5008
+ }
5009
+ )
5010
+ ] }),
5000
5011
  findDocumentRoot(popoverRef.current)
5001
5012
  )
5002
5013
  ] });
@@ -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
  ColumnSelectorHeaderCell
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";
@@ -4702,17 +4702,6 @@ var DateInput = (_a) => {
4702
4702
  document.removeEventListener("keydown", handleKeyDown2);
4703
4703
  };
4704
4704
  });
4705
- (0, import_react18.useEffect)(() => {
4706
- const handleClickOutside = (event) => {
4707
- if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4708
- setVisible(false);
4709
- }
4710
- };
4711
- document.addEventListener("mousedown", handleClickOutside);
4712
- return () => {
4713
- document.removeEventListener("mousedown", handleClickOutside);
4714
- };
4715
- }, []);
4716
4705
  function handleDateChange(fromValue) {
4717
4706
  onChange(fromValue);
4718
4707
  setVisible(false);
@@ -4814,34 +4803,56 @@ var DateInput = (_a) => {
4814
4803
  })
4815
4804
  ),
4816
4805
  visible && !readOnly && (0, import_react_dom3.createPortal)(
4817
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4818
- "div",
4819
- {
4820
- ref: (el) => {
4821
- popoverRef.current = el;
4822
- },
4823
- className: "absolute z-40 bg-white",
4824
- style: {
4825
- top: `${calendarPosition.top + 4}px`,
4826
- left: `${calendarPosition.left}px`,
4827
- minWidth: `${calendarPosition.width}px`
4828
- },
4829
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4830
- CalendarRange,
4831
- {
4832
- id: id ? `${id}-calendar` : void 0,
4833
- testid: testid ? `${testid}-calendar` : void 0,
4834
- from,
4835
- to: to || from,
4836
- onChange: handleDateChange,
4837
- cardStyle: true,
4838
- mode: "single",
4839
- disableRange: true,
4840
- isDateAvailable
4841
- }
4842
- )
4843
- }
4844
- ),
4806
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
4807
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4808
+ "div",
4809
+ {
4810
+ className: "fixed inset-0 z-30",
4811
+ onClick: () => setVisible(false),
4812
+ onMouseDown: (e) => {
4813
+ e.preventDefault();
4814
+ },
4815
+ onWheel: (e) => {
4816
+ var _a2;
4817
+ const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
4818
+ scrollableParent.scrollTop += e.deltaY;
4819
+ scrollableParent.scrollLeft += e.deltaX;
4820
+ },
4821
+ onTouchMove: (e) => {
4822
+ e.stopPropagation();
4823
+ },
4824
+ style: { touchAction: "pan-y pan-x" },
4825
+ "aria-hidden": "true"
4826
+ }
4827
+ ),
4828
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4829
+ "div",
4830
+ {
4831
+ ref: (el) => {
4832
+ popoverRef.current = el;
4833
+ },
4834
+ className: "absolute z-50 bg-white",
4835
+ style: {
4836
+ top: `${calendarPosition.top + 4}px`,
4837
+ left: `${calendarPosition.left}px`
4838
+ },
4839
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4840
+ CalendarRange,
4841
+ {
4842
+ id: id ? `${id}-calendar` : void 0,
4843
+ testid: testid ? `${testid}-calendar` : void 0,
4844
+ from,
4845
+ to: to || from,
4846
+ onChange: handleDateChange,
4847
+ cardStyle: true,
4848
+ mode: "single",
4849
+ disableRange: true,
4850
+ isDateAvailable
4851
+ }
4852
+ )
4853
+ }
4854
+ )
4855
+ ] }),
4845
4856
  findDocumentRoot(popoverRef.current)
4846
4857
  )
4847
4858
  ] });
@@ -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
  PinnedColumns
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";