@dmsi/wedgekit-react 0.0.561 → 0.0.562

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 (39) hide show
  1. package/dist/chunk-6MGHIYMP.js +42 -0
  2. package/dist/components/CalendarRange.cjs +58 -49
  3. package/dist/components/CalendarRange.js +3 -2
  4. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +26 -17
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +3 -2
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +36 -27
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +3 -2
  8. package/dist/components/DataGrid/PinnedColumns.cjs +48 -39
  9. package/dist/components/DataGrid/PinnedColumns.js +3 -2
  10. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +27 -18
  11. package/dist/components/DataGrid/TableBody/LoadingCell.js +3 -2
  12. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +30 -21
  13. package/dist/components/DataGrid/TableBody/TableBodyRow.js +3 -2
  14. package/dist/components/DataGrid/TableBody/index.cjs +43 -34
  15. package/dist/components/DataGrid/TableBody/index.js +3 -2
  16. package/dist/components/DataGrid/index.cjs +123 -114
  17. package/dist/components/DataGrid/index.js +3 -2
  18. package/dist/components/DataGrid/utils.cjs +25 -16
  19. package/dist/components/DataGrid/utils.js +3 -2
  20. package/dist/components/DateInput.cjs +77 -68
  21. package/dist/components/DateInput.js +3 -2
  22. package/dist/components/DateRangeInput.cjs +77 -68
  23. package/dist/components/DateRangeInput.js +3 -2
  24. package/dist/components/EditingContext.cjs +8 -2
  25. package/dist/components/EditingContext.js +7 -32
  26. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  27. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +34 -25
  28. package/dist/components/MobileDataGrid/ColumnSelector/index.js +3 -2
  29. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  30. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +42 -33
  31. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +3 -2
  32. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  33. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +1 -1
  34. package/dist/components/MobileDataGrid/index.cjs +136 -127
  35. package/dist/components/MobileDataGrid/index.js +3 -2
  36. package/dist/components/index.cjs +46 -31
  37. package/dist/components/index.js +7 -3
  38. package/package.json +1 -1
  39. /package/dist/{chunk-LKFYNRJZ.js → chunk-3JQPFWKR.js} +0 -0
@@ -721,7 +721,7 @@ function Theme({
721
721
  }
722
722
 
723
723
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
724
- var import_react35 = require("react");
724
+ var import_react36 = require("react");
725
725
 
726
726
  // src/components/DataGridCell.tsx
727
727
  var import_sortable = require("@dnd-kit/sortable");
@@ -5635,12 +5635,21 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
5635
5635
  // src/components/OrderCheckIcon.tsx
5636
5636
  var import_jsx_runtime48 = require("react/jsx-runtime");
5637
5637
 
5638
+ // src/components/EditingContext.tsx
5639
+ var import_react32 = require("react");
5640
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5641
+ var EditingContext = (0, import_react32.createContext)({
5642
+ data: [],
5643
+ setData: () => {
5644
+ }
5645
+ });
5646
+
5638
5647
  // src/components/AccessCard.tsx
5639
5648
  var import_clsx34 = __toESM(require("clsx"), 1);
5640
5649
 
5641
5650
  // src/components/Radio.tsx
5642
5651
  var import_clsx33 = __toESM(require("clsx"), 1);
5643
- var import_jsx_runtime49 = require("react/jsx-runtime");
5652
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5644
5653
  var Radio = (_a) => {
5645
5654
  var _b = _a, {
5646
5655
  className,
@@ -5675,7 +5684,7 @@ var Radio = (_a) => {
5675
5684
  const readonlyClassName = (0, import_clsx33.default)(
5676
5685
  readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
5677
5686
  );
5678
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5687
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5679
5688
  "label",
5680
5689
  {
5681
5690
  htmlFor: radioId,
@@ -5687,8 +5696,8 @@ var Radio = (_a) => {
5687
5696
  className
5688
5697
  ),
5689
5698
  children: [
5690
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "relative", children: [
5691
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5699
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "relative", children: [
5700
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5692
5701
  "input",
5693
5702
  __spreadValues({
5694
5703
  id: radioId,
@@ -5700,7 +5709,7 @@ var Radio = (_a) => {
5700
5709
  readOnly
5701
5710
  }, props)
5702
5711
  ),
5703
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5712
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5704
5713
  "div",
5705
5714
  {
5706
5715
  className: (0, import_clsx33.default)(
@@ -5711,7 +5720,7 @@ var Radio = (_a) => {
5711
5720
  disabledClassName,
5712
5721
  readonlyClassName
5713
5722
  ),
5714
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5723
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5715
5724
  RadioIcon,
5716
5725
  {
5717
5726
  className: (0, import_clsx33.default)(
@@ -5726,14 +5735,14 @@ var Radio = (_a) => {
5726
5735
  }
5727
5736
  )
5728
5737
  ] }),
5729
- label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5738
+ label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
5730
5739
  ]
5731
5740
  }
5732
5741
  );
5733
5742
  };
5734
5743
  Radio.displayName = "Radio";
5735
5744
  var RadioIcon = ({ className }) => {
5736
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5745
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5737
5746
  "svg",
5738
5747
  {
5739
5748
  className,
@@ -5743,7 +5752,7 @@ var RadioIcon = ({ className }) => {
5743
5752
  viewBox: "0 0 24 24",
5744
5753
  fill: "none",
5745
5754
  children: [
5746
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5755
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5747
5756
  "rect",
5748
5757
  {
5749
5758
  x: "1",
@@ -5755,7 +5764,7 @@ var RadioIcon = ({ className }) => {
5755
5764
  strokeWidth: "2"
5756
5765
  }
5757
5766
  ),
5758
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5767
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("rect", { x: "4", y: "4", width: "16", height: "16", rx: "8", fill: "currentColor" })
5759
5768
  ]
5760
5769
  }
5761
5770
  );
@@ -5763,23 +5772,23 @@ var RadioIcon = ({ className }) => {
5763
5772
  RadioIcon.displayName = "RadioIcon";
5764
5773
 
5765
5774
  // src/components/AccessCard.tsx
5766
- var import_jsx_runtime50 = require("react/jsx-runtime");
5775
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5767
5776
 
5768
5777
  // src/components/AccessCardGroup.tsx
5769
5778
  var import_clsx35 = __toESM(require("clsx"), 1);
5770
- var import_react32 = require("react");
5771
- var import_jsx_runtime51 = require("react/jsx-runtime");
5779
+ var import_react33 = require("react");
5780
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5772
5781
 
5773
5782
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5774
- var import_react34 = require("react");
5783
+ var import_react35 = require("react");
5775
5784
 
5776
5785
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
5777
- var import_react33 = require("react");
5778
- var GridContext = (0, import_react33.createContext)(null);
5786
+ var import_react34 = require("react");
5787
+ var GridContext = (0, import_react34.createContext)(null);
5779
5788
 
5780
5789
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5781
5790
  function useGridContext() {
5782
- const ctx = (0, import_react34.useContext)(GridContext);
5791
+ const ctx = (0, import_react35.useContext)(GridContext);
5783
5792
  if (!ctx) {
5784
5793
  throw new Error("useGridContext must be used within GridContextProvider");
5785
5794
  }
@@ -5787,11 +5796,11 @@ function useGridContext() {
5787
5796
  }
5788
5797
 
5789
5798
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
5790
- var import_jsx_runtime52 = require("react/jsx-runtime");
5799
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5791
5800
  function ColumnSelector() {
5792
5801
  const context = useGridContext();
5793
- const ref = (0, import_react35.useRef)(null);
5794
- const [show, setShow] = (0, import_react35.useState)(false);
5802
+ const ref = (0, import_react36.useRef)(null);
5803
+ const [show, setShow] = (0, import_react36.useState)(false);
5795
5804
  const {
5796
5805
  columns,
5797
5806
  id,
@@ -5802,13 +5811,13 @@ function ColumnSelector() {
5802
5811
  resetColumnVisibility,
5803
5812
  dispatch
5804
5813
  } = context;
5805
- const toggleColumnVisibility = (0, import_react35.useCallback)(
5814
+ const toggleColumnVisibility = (0, import_react36.useCallback)(
5806
5815
  (index, visible) => {
5807
5816
  dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
5808
5817
  },
5809
5818
  [dispatch]
5810
5819
  );
5811
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5820
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5812
5821
  "div",
5813
5822
  {
5814
5823
  id: id ? `${id}-column-selector` : void 0,
@@ -5816,7 +5825,7 @@ function ColumnSelector() {
5816
5825
  className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
5817
5826
  ref,
5818
5827
  children: [
5819
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5828
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5820
5829
  Button,
5821
5830
  {
5822
5831
  id: id ? `${id}-button` : void 0,
@@ -5825,10 +5834,10 @@ function ColumnSelector() {
5825
5834
  variant: "navigation",
5826
5835
  iconOnly: true,
5827
5836
  size: 24,
5828
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "tune" })
5837
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "tune" })
5829
5838
  }
5830
5839
  ),
5831
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5840
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5832
5841
  Menu,
5833
5842
  {
5834
5843
  id: id ? `${id}-menu` : void 0,
@@ -5839,7 +5848,7 @@ function ColumnSelector() {
5839
5848
  setShow,
5840
5849
  calculateMinMaxHeight: true,
5841
5850
  children: [
5842
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5851
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5843
5852
  Button,
5844
5853
  {
5845
5854
  id: id ? `${id}-reset-button` : void 0,
@@ -5857,11 +5866,11 @@ function ColumnSelector() {
5857
5866
  return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
5858
5867
  }).map((column) => {
5859
5868
  var _a, _b, _c;
5860
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5869
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5861
5870
  MenuOption,
5862
5871
  {
5863
5872
  testid: testid ? `${testid}-option-${column.id}` : void 0,
5864
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5873
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5865
5874
  Checkbox,
5866
5875
  {
5867
5876
  id: id ? `${id}-checkbox-${column.id}` : void 0,
@@ -5891,7 +5900,7 @@ function ColumnSelector() {
5891
5900
  }
5892
5901
 
5893
5902
  // src/components/MobileDataGrid/MobileDataGridHeader.tsx
5894
- var import_jsx_runtime53 = require("react/jsx-runtime");
5903
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5895
5904
  function MobileDataGridHeader({
5896
5905
  header: Header,
5897
5906
  enableColumnSelector,
@@ -5909,15 +5918,15 @@ function MobileDataGridHeader({
5909
5918
  handleRowSelectAll
5910
5919
  } = ctx;
5911
5920
  if (typeof Header === "undefined" && !primaryKey) return null;
5912
- if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Header, __spreadValues({}, ctx));
5921
+ if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Header, __spreadValues({}, ctx));
5913
5922
  if (typeof Header === "string" || primaryKey)
5914
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5923
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5915
5924
  "div",
5916
5925
  {
5917
5926
  id: id ? `${id}-header` : void 0,
5918
5927
  "data-testid": testid ? `${testid}-header` : void 0,
5919
5928
  className: "sticky top-0",
5920
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5929
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5921
5930
  Stack,
5922
5931
  {
5923
5932
  horizontal: true,
@@ -5927,7 +5936,7 @@ function MobileDataGridHeader({
5927
5936
  backgroundColor: "background-primary-normal",
5928
5937
  style: { borderTopRightRadius: 4, borderTopLeftRadius: 4 },
5929
5938
  children: [
5930
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5939
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5931
5940
  Checkbox,
5932
5941
  {
5933
5942
  id: id ? `${id}-select-all-checkbox` : void 0,
@@ -5937,7 +5946,7 @@ function MobileDataGridHeader({
5937
5946
  onChange: handleRowSelectAll
5938
5947
  }
5939
5948
  ) }),
5940
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5949
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5941
5950
  Stack,
5942
5951
  {
5943
5952
  horizontal: true,
@@ -5945,10 +5954,10 @@ function MobileDataGridHeader({
5945
5954
  items: "center",
5946
5955
  sizing: "component",
5947
5956
  padding: true,
5948
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Heading3, { as: "span", color: "text-primary-normal", children: typeof Header === "string" ? Header : (_b = (_a = columns.find((col) => col.id === primaryKey)) == null ? void 0 : _a.header) == null ? void 0 : _b.toString() })
5957
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Heading3, { as: "span", color: "text-primary-normal", children: typeof Header === "string" ? Header : (_b = (_a = columns.find((col) => col.id === primaryKey)) == null ? void 0 : _a.header) == null ? void 0 : _b.toString() })
5949
5958
  }
5950
5959
  ),
5951
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ColumnSelector, {})
5960
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ColumnSelector, {})
5952
5961
  ]
5953
5962
  }
5954
5963
  ) })
@@ -5957,7 +5966,7 @@ function MobileDataGridHeader({
5957
5966
  }
5958
5967
 
5959
5968
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5960
- var import_react36 = require("react");
5969
+ var import_react37 = require("react");
5961
5970
 
5962
5971
  // src/components/MobileDataGrid/dataGridReducer.ts
5963
5972
  function dataGridReducer(state, action) {
@@ -5987,7 +5996,7 @@ function dataGridReducer(state, action) {
5987
5996
  }
5988
5997
 
5989
5998
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5990
- var import_jsx_runtime54 = require("react/jsx-runtime");
5999
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5991
6000
  function GridContextProvider(props) {
5992
6001
  const {
5993
6002
  initialColumns,
@@ -6000,10 +6009,10 @@ function GridContextProvider(props) {
6000
6009
  getId,
6001
6010
  onRowSelect
6002
6011
  } = props;
6003
- const [columns, dispatch] = (0, import_react36.useReducer)(dataGridReducer, initialColumns);
6004
- const [selectedRowIds, setSelectedRowIds] = (0, import_react36.useState)([]);
6005
- const [currentRow, setCurrentRow] = (0, import_react36.useState)(null);
6006
- const resetColumnVisibility = (0, import_react36.useCallback)(() => {
6012
+ const [columns, dispatch] = (0, import_react37.useReducer)(dataGridReducer, initialColumns);
6013
+ const [selectedRowIds, setSelectedRowIds] = (0, import_react37.useState)([]);
6014
+ const [currentRow, setCurrentRow] = (0, import_react37.useState)(null);
6015
+ const resetColumnVisibility = (0, import_react37.useCallback)(() => {
6007
6016
  const newColumns = columns.map((column) => {
6008
6017
  var _a;
6009
6018
  const initialColumn = initialColumns.find((c) => c.id === column.id);
@@ -6015,7 +6024,7 @@ function GridContextProvider(props) {
6015
6024
  });
6016
6025
  dispatch({ type: "SET", payload: newColumns });
6017
6026
  }, [columns, initialColumns]);
6018
- const handleRowSelect = (0, import_react36.useCallback)(
6027
+ const handleRowSelect = (0, import_react37.useCallback)(
6019
6028
  (item) => {
6020
6029
  var _a;
6021
6030
  const rowId = (_a = getId(item)) != null ? _a : "";
@@ -6026,7 +6035,7 @@ function GridContextProvider(props) {
6026
6035
  },
6027
6036
  [getId, onRowSelect, selectedRowIds]
6028
6037
  );
6029
- const handleRowSelectAll = (0, import_react36.useCallback)(() => {
6038
+ const handleRowSelectAll = (0, import_react37.useCallback)(() => {
6030
6039
  setSelectedRowIds((prev) => {
6031
6040
  if (prev.length === data.length) {
6032
6041
  return [];
@@ -6034,13 +6043,13 @@ function GridContextProvider(props) {
6034
6043
  return data.map(getId).filter((id2) => id2 !== void 0);
6035
6044
  });
6036
6045
  }, [data, getId]);
6037
- const openRowDetail = (0, import_react36.useCallback)((row) => {
6046
+ const openRowDetail = (0, import_react37.useCallback)((row) => {
6038
6047
  setCurrentRow(row);
6039
6048
  }, []);
6040
- const closeRowDetail = (0, import_react36.useCallback)(() => {
6049
+ const closeRowDetail = (0, import_react37.useCallback)(() => {
6041
6050
  setCurrentRow(null);
6042
6051
  }, []);
6043
- const visibleColumns = (0, import_react36.useMemo)(() => {
6052
+ const visibleColumns = (0, import_react37.useMemo)(() => {
6044
6053
  const effectiveLimit = typeof numberOfColumnsToShow === "number" ? Math.max(numberOfColumnsToShow - 1, 0) : void 0;
6045
6054
  if (primaryKey) {
6046
6055
  const pkColumn = columns.find((col) => col.id === String(primaryKey));
@@ -6058,7 +6067,7 @@ function GridContextProvider(props) {
6058
6067
  return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
6059
6068
  }).slice(0, effectiveLimit);
6060
6069
  }, [columns, numberOfColumnsToShow, primaryKey]);
6061
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6070
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6062
6071
  GridContext.Provider,
6063
6072
  {
6064
6073
  value: {
@@ -6087,11 +6096,11 @@ function GridContextProvider(props) {
6087
6096
 
6088
6097
  // src/components/Modal.tsx
6089
6098
  var import_clsx40 = __toESM(require("clsx"), 1);
6090
- var import_react38 = require("react");
6099
+ var import_react39 = require("react");
6091
6100
 
6092
6101
  // src/components/ModalHeader.tsx
6093
6102
  var import_clsx36 = __toESM(require("clsx"), 1);
6094
- var import_jsx_runtime55 = require("react/jsx-runtime");
6103
+ var import_jsx_runtime56 = require("react/jsx-runtime");
6095
6104
  var ModalHeader = ({
6096
6105
  title,
6097
6106
  hideCloseIcon,
@@ -6104,7 +6113,7 @@ var ModalHeader = ({
6104
6113
  titleAs: TitleComponent
6105
6114
  }) => {
6106
6115
  const Title = TitleComponent || Heading2;
6107
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
6116
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
6108
6117
  "div",
6109
6118
  {
6110
6119
  id,
@@ -6119,9 +6128,9 @@ var ModalHeader = ({
6119
6128
  headerClassname
6120
6129
  ),
6121
6130
  children: [
6122
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: (0, import_clsx36.default)("flex items-center flex-1", layoutGroupGap), children: [
6131
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: (0, import_clsx36.default)("flex items-center flex-1", layoutGroupGap), children: [
6123
6132
  headerIcon,
6124
- title && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6133
+ title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6125
6134
  Title,
6126
6135
  {
6127
6136
  id: id ? `${id}-title` : void 0,
@@ -6131,7 +6140,7 @@ var ModalHeader = ({
6131
6140
  }
6132
6141
  )
6133
6142
  ] }),
6134
- !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6143
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6135
6144
  Button,
6136
6145
  {
6137
6146
  id: id ? `${id}-close-button` : void 0,
@@ -6139,7 +6148,7 @@ var ModalHeader = ({
6139
6148
  iconOnly: true,
6140
6149
  variant: "tertiary",
6141
6150
  onClick: onClose,
6142
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "close", size: 24 }) })
6151
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "close", size: 24 }) })
6143
6152
  }
6144
6153
  )
6145
6154
  ]
@@ -6150,14 +6159,14 @@ ModalHeader.displayName = "ModalHeader";
6150
6159
 
6151
6160
  // src/components/ModalContent.tsx
6152
6161
  var import_clsx37 = __toESM(require("clsx"), 1);
6153
- var import_jsx_runtime56 = require("react/jsx-runtime");
6162
+ var import_jsx_runtime57 = require("react/jsx-runtime");
6154
6163
  function ModalContent({
6155
6164
  fixedHeightScrolling,
6156
6165
  children,
6157
6166
  id,
6158
6167
  testid
6159
6168
  }) {
6160
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6169
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6161
6170
  "div",
6162
6171
  {
6163
6172
  id,
@@ -6175,7 +6184,7 @@ ModalContent.displayName = "ModalContent";
6175
6184
 
6176
6185
  // src/components/ModalButtons.tsx
6177
6186
  var import_clsx38 = __toESM(require("clsx"), 1);
6178
- var import_jsx_runtime57 = require("react/jsx-runtime");
6187
+ var import_jsx_runtime58 = require("react/jsx-runtime");
6179
6188
  var ModalButtons = ({
6180
6189
  onClose,
6181
6190
  onContinue,
@@ -6183,7 +6192,7 @@ var ModalButtons = ({
6183
6192
  id,
6184
6193
  testid
6185
6194
  }) => {
6186
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6195
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6187
6196
  "div",
6188
6197
  {
6189
6198
  id,
@@ -6193,26 +6202,26 @@ var ModalButtons = ({
6193
6202
  layoutPaddding,
6194
6203
  layoutGroupGap
6195
6204
  ),
6196
- children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
6197
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6205
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
6206
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6198
6207
  Button,
6199
6208
  {
6200
6209
  id: id ? `${id}-close-button` : void 0,
6201
6210
  testid: testid ? `${testid}-close-button` : void 0,
6202
6211
  variant: "secondary",
6203
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "close", size: 24 }),
6212
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "close", size: 24 }),
6204
6213
  onClick: onClose,
6205
6214
  className: "max-sm:w-full",
6206
6215
  children: "Close"
6207
6216
  }
6208
6217
  ),
6209
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6218
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6210
6219
  Button,
6211
6220
  {
6212
6221
  id: id ? `${id}-continue-button` : void 0,
6213
6222
  testid: testid ? `${testid}-continue-button` : void 0,
6214
6223
  variant: "primary",
6215
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "check", size: 24 }),
6224
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "check", size: 24 }),
6216
6225
  className: "max-sm:w-full",
6217
6226
  onClick: onContinue,
6218
6227
  children: "Continue"
@@ -6226,7 +6235,7 @@ ModalButtons.displayName = "ModalButtons";
6226
6235
 
6227
6236
  // src/components/ModalScrim.tsx
6228
6237
  var import_clsx39 = __toESM(require("clsx"), 1);
6229
- var import_jsx_runtime58 = require("react/jsx-runtime");
6238
+ var import_jsx_runtime59 = require("react/jsx-runtime");
6230
6239
  var ModalScrim = ({
6231
6240
  show = false,
6232
6241
  size = "small",
@@ -6236,7 +6245,7 @@ var ModalScrim = ({
6236
6245
  id,
6237
6246
  testid
6238
6247
  }) => {
6239
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6248
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6240
6249
  "div",
6241
6250
  {
6242
6251
  id,
@@ -6261,10 +6270,10 @@ var import_react_dom4 = require("react-dom");
6261
6270
  var import_react_use = require("react-use");
6262
6271
 
6263
6272
  // src/components/useMounted.tsx
6264
- var import_react37 = require("react");
6273
+ var import_react38 = require("react");
6265
6274
  var useMounted = () => {
6266
- const [isMounted, setIsMounted] = (0, import_react37.useState)(false);
6267
- (0, import_react37.useEffect)(() => {
6275
+ const [isMounted, setIsMounted] = (0, import_react38.useState)(false);
6276
+ (0, import_react38.useEffect)(() => {
6268
6277
  setIsMounted(true);
6269
6278
  return () => setIsMounted(false);
6270
6279
  }, []);
@@ -6272,7 +6281,7 @@ var useMounted = () => {
6272
6281
  };
6273
6282
 
6274
6283
  // src/components/Modal.tsx
6275
- var import_jsx_runtime59 = require("react/jsx-runtime");
6284
+ var import_jsx_runtime60 = require("react/jsx-runtime");
6276
6285
  var fadeInScale = (element, duration = 300) => element.animate(
6277
6286
  [
6278
6287
  { opacity: 0, transform: "scale(0.95)" },
@@ -6357,12 +6366,12 @@ var Modal = ({
6357
6366
  }) => {
6358
6367
  var _a;
6359
6368
  const mounted = useMounted();
6360
- const modalRef = (0, import_react38.useRef)(null);
6361
- const bgRef = (0, import_react38.useRef)(null);
6369
+ const modalRef = (0, import_react39.useRef)(null);
6370
+ const bgRef = (0, import_react39.useRef)(null);
6362
6371
  const wasOpen = (0, import_react_use.usePrevious)(open);
6363
6372
  const isMobile = useMatchesMobile();
6364
6373
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
6365
- (0, import_react38.useEffect)(() => {
6374
+ (0, import_react39.useEffect)(() => {
6366
6375
  if (!mounted) return;
6367
6376
  if (!modalRef.current || !bgRef.current) {
6368
6377
  console.error("Modal or background reference is not set.");
@@ -6382,7 +6391,7 @@ var Modal = ({
6382
6391
  bgFadeIn(bgRef.current);
6383
6392
  }
6384
6393
  }, [mounted, onClose, open, wasOpen]);
6385
- const handleKeyDown = (0, import_react38.useCallback)(
6394
+ const handleKeyDown = (0, import_react39.useCallback)(
6386
6395
  (e) => {
6387
6396
  if (e.key === "Escape") {
6388
6397
  if (onClose) {
@@ -6393,12 +6402,12 @@ var Modal = ({
6393
6402
  },
6394
6403
  [onClose]
6395
6404
  );
6396
- const handleClose = (0, import_react38.useCallback)(() => {
6405
+ const handleClose = (0, import_react39.useCallback)(() => {
6397
6406
  if (onClose) {
6398
6407
  onClose();
6399
6408
  }
6400
6409
  }, [onClose]);
6401
- (0, import_react38.useEffect)(() => {
6410
+ (0, import_react39.useEffect)(() => {
6402
6411
  if (open) {
6403
6412
  document.addEventListener("keyup", handleKeyDown);
6404
6413
  }
@@ -6406,7 +6415,7 @@ var Modal = ({
6406
6415
  document.removeEventListener("keyup", handleKeyDown);
6407
6416
  };
6408
6417
  }, [open, handleKeyDown]);
6409
- (0, import_react38.useEffect)(() => {
6418
+ (0, import_react39.useEffect)(() => {
6410
6419
  if (!open) return;
6411
6420
  const scrollY = window.scrollY;
6412
6421
  const body = document.body;
@@ -6427,7 +6436,7 @@ var Modal = ({
6427
6436
  };
6428
6437
  }, [open]);
6429
6438
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
6430
- const backgroundClickHandler = (0, import_react38.useCallback)(
6439
+ const backgroundClickHandler = (0, import_react39.useCallback)(
6431
6440
  (e) => {
6432
6441
  const target = e.target;
6433
6442
  const currentTarget = e.currentTarget;
@@ -6445,7 +6454,7 @@ var Modal = ({
6445
6454
  return null;
6446
6455
  }
6447
6456
  return (0, import_react_dom4.createPortal)(
6448
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6457
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6449
6458
  ModalScrim,
6450
6459
  {
6451
6460
  id: id ? `${id}-scrim` : void 0,
@@ -6454,7 +6463,7 @@ var Modal = ({
6454
6463
  ref: bgRef,
6455
6464
  show: open,
6456
6465
  onClick: backgroundClickHandler,
6457
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
6466
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6458
6467
  "div",
6459
6468
  {
6460
6469
  id,
@@ -6469,7 +6478,7 @@ var Modal = ({
6469
6478
  ),
6470
6479
  onClick: (e) => e.stopPropagation(),
6471
6480
  children: [
6472
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6481
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6473
6482
  ModalHeader,
6474
6483
  {
6475
6484
  id: id ? `${id}-header` : void 0,
@@ -6483,7 +6492,7 @@ var Modal = ({
6483
6492
  titleAs: TitleComponent
6484
6493
  }
6485
6494
  ),
6486
- children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6495
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6487
6496
  ModalContent,
6488
6497
  {
6489
6498
  id: id ? `${id}-content` : void 0,
@@ -6492,7 +6501,7 @@ var Modal = ({
6492
6501
  children
6493
6502
  }
6494
6503
  ) : children,
6495
- showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6504
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6496
6505
  ModalButtons,
6497
6506
  {
6498
6507
  id: id ? `${id}-buttons` : void 0,
@@ -6513,7 +6522,7 @@ var Modal = ({
6513
6522
  Modal.displayName = "Modal";
6514
6523
 
6515
6524
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
6516
- var import_jsx_runtime60 = require("react/jsx-runtime");
6525
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6517
6526
  function MobileDataGridColumn(props) {
6518
6527
  var _a, _b;
6519
6528
  const { column, data } = props;
@@ -6524,8 +6533,8 @@ function MobileDataGridColumn(props) {
6524
6533
  value = formatDate(value);
6525
6534
  }
6526
6535
  }
6527
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
6528
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6536
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
6537
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6529
6538
  (_b = column.header) == null ? void 0 : _b.toString(),
6530
6539
  ":"
6531
6540
  ] }),
@@ -6535,28 +6544,28 @@ function MobileDataGridColumn(props) {
6535
6544
  }
6536
6545
 
6537
6546
  // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
6538
- var import_jsx_runtime61 = require("react/jsx-runtime");
6547
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6539
6548
  function ModalContent2() {
6540
6549
  const context = useGridContext();
6541
6550
  const { columns, currentRow } = context;
6542
6551
  if (!currentRow) return null;
6543
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
6552
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
6544
6553
  var _a;
6545
6554
  return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
6546
6555
  }).map(
6547
6556
  (column, index) => {
6548
6557
  var _a, _b;
6549
- return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
6558
+ return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
6550
6559
  "div",
6551
6560
  {
6552
6561
  className: "grid grid-cols-2 gap-2 items-center flex-1",
6553
6562
  children: [
6554
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6563
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6555
6564
  (_b = column.header) == null ? void 0 : _b.toString(),
6556
6565
  ":"
6557
6566
  ] }),
6558
6567
  " ",
6559
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6568
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6560
6569
  column.meta.mobileCell,
6561
6570
  {
6562
6571
  column,
@@ -6567,7 +6576,7 @@ function ModalContent2() {
6567
6576
  ]
6568
6577
  },
6569
6578
  `${column.id}-${index}`
6570
- ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6579
+ ) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6571
6580
  MobileDataGridColumn,
6572
6581
  {
6573
6582
  column,
@@ -6580,7 +6589,7 @@ function ModalContent2() {
6580
6589
  }
6581
6590
 
6582
6591
  // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
6583
- var import_jsx_runtime62 = require("react/jsx-runtime");
6592
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6584
6593
  function RowDetailModalProvider() {
6585
6594
  var _a;
6586
6595
  const context = useGridContext();
@@ -6592,7 +6601,7 @@ function RowDetailModalProvider() {
6592
6601
  primaryKey,
6593
6602
  closeRowDetail
6594
6603
  } = context;
6595
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6604
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6596
6605
  Modal,
6597
6606
  {
6598
6607
  fixedHeightScrolling: true,
@@ -6601,7 +6610,7 @@ function RowDetailModalProvider() {
6601
6610
  hideCloseIcon: true,
6602
6611
  size: "medium",
6603
6612
  className: "!p-0",
6604
- headerIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
6613
+ headerIcon: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6605
6614
  Stack,
6606
6615
  {
6607
6616
  horizontal: true,
@@ -6610,8 +6619,8 @@ function RowDetailModalProvider() {
6610
6619
  justify: "between",
6611
6620
  width: "full",
6612
6621
  children: [
6613
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
6614
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6622
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
6623
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6615
6624
  Button,
6616
6625
  {
6617
6626
  id: id ? `${id}-open-in-new-button` : void 0,
@@ -6619,15 +6628,15 @@ function RowDetailModalProvider() {
6619
6628
  iconOnly: true,
6620
6629
  variant: "tertiary",
6621
6630
  onClick: closeRowDetail,
6622
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "open_in_new", size: 24 }) })
6631
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "open_in_new", size: 24 }) })
6623
6632
  }
6624
6633
  )
6625
6634
  ]
6626
6635
  }
6627
6636
  ),
6628
- customActions: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
6637
+ customActions: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
6629
6638
  showButtons: true,
6630
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ModalContent2, {}) })
6639
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ModalContent2, {}) })
6631
6640
  }
6632
6641
  );
6633
6642
  }
@@ -6637,7 +6646,7 @@ var import_clsx42 = __toESM(require("clsx"), 1);
6637
6646
 
6638
6647
  // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
6639
6648
  var import_clsx41 = __toESM(require("clsx"), 1);
6640
- var import_jsx_runtime63 = require("react/jsx-runtime");
6649
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6641
6650
  function MobileDataGridCard({
6642
6651
  renderLink,
6643
6652
  renderChevron = true,
@@ -6649,7 +6658,7 @@ function MobileDataGridCard({
6649
6658
  var _a;
6650
6659
  const context = useGridContext();
6651
6660
  const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
6652
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6661
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6653
6662
  "li",
6654
6663
  {
6655
6664
  id: id ? `${id}-card-${getId(data)}` : void 0,
@@ -6664,9 +6673,9 @@ function MobileDataGridCard({
6664
6673
  ),
6665
6674
  onClick: () => openRowDetail(data),
6666
6675
  children: [
6667
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Stack, { sizing: "component", children: [
6668
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
6669
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6676
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Stack, { sizing: "component", children: [
6677
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
6678
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6670
6679
  Stack,
6671
6680
  {
6672
6681
  sizing: "component",
@@ -6674,7 +6683,7 @@ function MobileDataGridCard({
6674
6683
  width: "fit",
6675
6684
  style: { paddingLeft: 0, paddingRight: 8 },
6676
6685
  onClick: (e) => e.stopPropagation(),
6677
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6686
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6678
6687
  Checkbox,
6679
6688
  {
6680
6689
  id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
@@ -6685,17 +6694,17 @@ function MobileDataGridCard({
6685
6694
  )
6686
6695
  }
6687
6696
  ),
6688
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6697
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6689
6698
  Stack,
6690
6699
  {
6691
6700
  sizing: "component",
6692
6701
  padding: true,
6693
6702
  onClick: (e) => e.stopPropagation(),
6694
6703
  style: { paddingInline: 0 },
6695
- children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
6704
+ children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
6696
6705
  }
6697
6706
  ),
6698
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6707
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6699
6708
  Stack,
6700
6709
  {
6701
6710
  horizontal: true,
@@ -6708,18 +6717,18 @@ function MobileDataGridCard({
6708
6717
  }
6709
6718
  )
6710
6719
  ] }),
6711
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
6720
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
6712
6721
  var _a2, _b;
6713
6722
  return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
6714
6723
  }).map(
6715
6724
  (column, index) => {
6716
6725
  var _a2, _b;
6717
- return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6726
+ return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6718
6727
  "div",
6719
6728
  {
6720
6729
  className: "grid grid-cols-2 gap-2 items-center flex-1",
6721
6730
  children: [
6722
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6731
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6723
6732
  Paragraph,
6724
6733
  {
6725
6734
  color: "text-secondary-normal",
@@ -6731,7 +6740,7 @@ function MobileDataGridCard({
6731
6740
  }
6732
6741
  ),
6733
6742
  " ",
6734
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6743
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6735
6744
  column.meta.mobileCell,
6736
6745
  {
6737
6746
  column,
@@ -6742,7 +6751,7 @@ function MobileDataGridCard({
6742
6751
  ]
6743
6752
  },
6744
6753
  `${column.id}-${index}`
6745
- ) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6754
+ ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6746
6755
  MobileDataGridColumn,
6747
6756
  {
6748
6757
  column,
@@ -6753,14 +6762,14 @@ function MobileDataGridCard({
6753
6762
  }
6754
6763
  ) })
6755
6764
  ] }),
6756
- renderChevron && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-icon-primary-normal", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "keyboard_arrow_down" }) }) })
6765
+ renderChevron && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-icon-primary-normal", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { name: "keyboard_arrow_down" }) }) })
6757
6766
  ]
6758
6767
  }
6759
6768
  );
6760
6769
  }
6761
6770
 
6762
6771
  // src/components/MobileDataGrid/ColumnList.tsx
6763
- var import_jsx_runtime64 = require("react/jsx-runtime");
6772
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6764
6773
  function ColumnList(props) {
6765
6774
  const {
6766
6775
  withBorder,
@@ -6772,14 +6781,14 @@ function ColumnList(props) {
6772
6781
  } = props;
6773
6782
  const ctx = useGridContext();
6774
6783
  const { id, testid, data, getId, selectedRowIds } = ctx;
6775
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6784
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6776
6785
  "div",
6777
6786
  {
6778
6787
  className: (0, import_clsx42.default)(
6779
6788
  "flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
6780
6789
  !!Footer && "mb-20"
6781
6790
  ),
6782
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6791
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6783
6792
  "ul",
6784
6793
  {
6785
6794
  id,
@@ -6792,7 +6801,7 @@ function ColumnList(props) {
6792
6801
  children: [
6793
6802
  data.map((item) => {
6794
6803
  const id2 = getId(item);
6795
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6804
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6796
6805
  MobileDataGridCard,
6797
6806
  {
6798
6807
  data: item,
@@ -6805,7 +6814,7 @@ function ColumnList(props) {
6805
6814
  id2
6806
6815
  );
6807
6816
  }),
6808
- !!Footer && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Footer, __spreadValues({}, ctx)) })
6817
+ !!Footer && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Footer, __spreadValues({}, ctx)) })
6809
6818
  ]
6810
6819
  }
6811
6820
  )
@@ -6814,7 +6823,7 @@ function ColumnList(props) {
6814
6823
  }
6815
6824
 
6816
6825
  // src/components/MobileDataGrid/index.tsx
6817
- var import_jsx_runtime65 = require("react/jsx-runtime");
6826
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6818
6827
  function MobileDataGrid(props) {
6819
6828
  const {
6820
6829
  columns,
@@ -6836,7 +6845,7 @@ function MobileDataGrid(props) {
6836
6845
  rowActions,
6837
6846
  rounded
6838
6847
  } = props;
6839
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6848
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6840
6849
  GridContextProvider,
6841
6850
  {
6842
6851
  initialColumns: columns,
@@ -6848,7 +6857,7 @@ function MobileDataGrid(props) {
6848
6857
  numberOfColumnsToShow,
6849
6858
  primaryKey,
6850
6859
  children: [
6851
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6860
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6852
6861
  Stack,
6853
6862
  {
6854
6863
  height: "full",
@@ -6856,7 +6865,7 @@ function MobileDataGrid(props) {
6856
6865
  overflowX: "hidden",
6857
6866
  overflowY: "hidden",
6858
6867
  children: [
6859
- !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6868
+ !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6860
6869
  MobileDataGridHeader,
6861
6870
  {
6862
6871
  header,
@@ -6864,7 +6873,7 @@ function MobileDataGrid(props) {
6864
6873
  enableRowSelection
6865
6874
  }
6866
6875
  ),
6867
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6876
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6868
6877
  ColumnList,
6869
6878
  {
6870
6879
  withBorder,
@@ -6878,7 +6887,7 @@ function MobileDataGrid(props) {
6878
6887
  ]
6879
6888
  }
6880
6889
  ),
6881
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(RowDetailModalProvider, {})
6890
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RowDetailModalProvider, {})
6882
6891
  ]
6883
6892
  }
6884
6893
  );