@dmsi/wedgekit-react 0.0.864 → 0.0.865

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 (90) hide show
  1. package/dist/chunk-3N34VVYD.js +154 -0
  2. package/dist/{chunk-57HL5K5I.js → chunk-4DPSNQCM.js} +1 -1
  3. package/dist/{chunk-BH4UKMXV.js → chunk-5NRKL5CJ.js} +3 -3
  4. package/dist/{chunk-A57PKP6Z.js → chunk-E7XBOMT4.js} +6 -6
  5. package/dist/{chunk-CJPGHBV5.js → chunk-EGECC3PQ.js} +1 -1
  6. package/dist/{chunk-ZL6NXIGS.js → chunk-HT57FLRW.js} +1 -1
  7. package/dist/{chunk-BXEE6VGQ.js → chunk-KLH67DTH.js} +6 -23
  8. package/dist/{chunk-C5DKGJ4E.js → chunk-KOKA2IJC.js} +4 -4
  9. package/dist/{chunk-IPQIZG7U.js → chunk-N36EJLRW.js} +1 -1
  10. package/dist/{chunk-RFF2EFBX.js → chunk-OM7QLLI2.js} +2 -2
  11. package/dist/{chunk-FXJ7C6RF.js → chunk-PE3EZP56.js} +1 -1
  12. package/dist/chunk-WVGXD7HT.js +19 -0
  13. package/dist/{chunk-7OLDYFKY.js → chunk-X3NDEFVA.js} +1 -1
  14. package/dist/chunk-YV5FS7NV.js +89 -0
  15. package/dist/chunk-Z2HPSFEQ.js +14 -0
  16. package/dist/{chunk-RTZO2OU7.js → chunk-Z7XANQ47.js} +1 -1
  17. package/dist/components/CalendarRange.cjs +65 -46
  18. package/dist/components/CalendarRange.css +13 -0
  19. package/dist/components/CalendarRange.js +17 -14
  20. package/dist/components/CompactImagesPreview.js +3 -2
  21. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +23 -4
  22. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +13 -0
  23. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +17 -14
  24. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +32 -13
  25. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +13 -0
  26. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +17 -14
  27. package/dist/components/DataGrid/PinnedColumns.cjs +48 -29
  28. package/dist/components/DataGrid/PinnedColumns.css +13 -0
  29. package/dist/components/DataGrid/PinnedColumns.js +17 -14
  30. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +24 -5
  31. package/dist/components/DataGrid/TableBody/LoadingCell.css +13 -0
  32. package/dist/components/DataGrid/TableBody/LoadingCell.js +17 -14
  33. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +30 -11
  34. package/dist/components/DataGrid/TableBody/TableBodyRow.css +13 -0
  35. package/dist/components/DataGrid/TableBody/TableBodyRow.js +17 -14
  36. package/dist/components/DataGrid/TableBody/index.cjs +45 -26
  37. package/dist/components/DataGrid/TableBody/index.css +13 -0
  38. package/dist/components/DataGrid/TableBody/index.js +17 -14
  39. package/dist/components/DataGrid/index.cjs +135 -116
  40. package/dist/components/DataGrid/index.css +13 -0
  41. package/dist/components/DataGrid/index.js +17 -14
  42. package/dist/components/DataGrid/utils.cjs +24 -5
  43. package/dist/components/DataGrid/utils.css +13 -0
  44. package/dist/components/DataGrid/utils.js +17 -14
  45. package/dist/components/DataGridCell.js +6 -5
  46. package/dist/components/DateInput.cjs +85 -66
  47. package/dist/components/DateInput.css +13 -0
  48. package/dist/components/DateInput.js +17 -14
  49. package/dist/components/DateRangeInput.cjs +84 -65
  50. package/dist/components/DateRangeInput.css +13 -0
  51. package/dist/components/DateRangeInput.js +17 -14
  52. package/dist/components/EmblaCarousel/ArrowButtons.cjs +147 -0
  53. package/dist/components/EmblaCarousel/ArrowButtons.js +9 -0
  54. package/dist/components/EmblaCarousel/SelectedSnapDisplay.cjs +38 -0
  55. package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +7 -0
  56. package/dist/components/EmblaCarousel/index.cjs +266 -2
  57. package/dist/components/EmblaCarousel/index.js +4 -1
  58. package/dist/components/Menu.js +4 -3
  59. package/dist/components/MenuOption.js +3 -2
  60. package/dist/components/MobileDataGrid/ColumnList.css +13 -0
  61. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  62. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +31 -12
  63. package/dist/components/MobileDataGrid/ColumnSelector/index.css +13 -0
  64. package/dist/components/MobileDataGrid/ColumnSelector/index.js +17 -14
  65. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  66. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +39 -20
  67. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +13 -0
  68. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +17 -14
  69. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  70. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -4
  71. package/dist/components/MobileDataGrid/index.cjs +151 -132
  72. package/dist/components/MobileDataGrid/index.css +13 -0
  73. package/dist/components/MobileDataGrid/index.js +17 -14
  74. package/dist/components/Modal.js +3 -2
  75. package/dist/components/NestedMenu.js +3 -2
  76. package/dist/components/PDFViewer/DownloadIcon.js +4 -3
  77. package/dist/components/PDFViewer/index.js +5 -4
  78. package/dist/components/Password.js +3 -2
  79. package/dist/components/ProductImagePreview/index.js +4 -3
  80. package/dist/components/ProjectBar.js +2 -1
  81. package/dist/components/Stepper.js +3 -2
  82. package/dist/components/Tooltip.js +3 -2
  83. package/dist/components/index.cjs +222 -2
  84. package/dist/components/index.css +13 -0
  85. package/dist/components/index.js +17 -14
  86. package/dist/components/useMenuSystem.js +3 -2
  87. package/dist/hooks/index.js +5 -3
  88. package/dist/index.css +13 -0
  89. package/package.json +3 -3
  90. package/dist/chunk-SZ47M32R.js +0 -13
@@ -721,7 +721,7 @@ function Theme({
721
721
  }
722
722
 
723
723
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
724
- var import_react37 = require("react");
724
+ var import_react40 = require("react");
725
725
 
726
726
  // src/components/DataGridCell.tsx
727
727
  var import_sortable = require("@dnd-kit/sortable");
@@ -5895,15 +5895,34 @@ var import_react36 = require("react");
5895
5895
  var import_jsx_runtime52 = require("react/jsx-runtime");
5896
5896
 
5897
5897
  // src/components/EmblaCarousel/index.tsx
5898
+ var import_react39 = require("react");
5898
5899
  var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
5900
+
5901
+ // src/components/EmblaCarousel/SelectedSnapDisplay.tsx
5899
5902
  var import_jsx_runtime53 = require("react/jsx-runtime");
5900
5903
 
5901
- // src/components/MobileDataGrid/ColumnSelector/index.tsx
5904
+ // src/components/EmblaCarousel/useSelectedSnapDisplay.ts
5905
+ var import_react37 = require("react");
5906
+
5907
+ // src/components/EmblaCarousel/ArrowButtons.tsx
5908
+ var import_clsx36 = __toESM(require("clsx"), 1);
5902
5909
  var import_jsx_runtime54 = require("react/jsx-runtime");
5910
+ var arrowButtonStyles = (0, import_clsx36.default)(
5911
+ "appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
5912
+ );
5913
+
5914
+ // src/components/EmblaCarousel/usePrevNextButtons.ts
5915
+ var import_react38 = require("react");
5916
+
5917
+ // src/components/EmblaCarousel/index.tsx
5918
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5919
+
5920
+ // src/components/MobileDataGrid/ColumnSelector/index.tsx
5921
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5903
5922
  function ColumnSelector() {
5904
5923
  const context = useGridContext();
5905
- const ref = (0, import_react37.useRef)(null);
5906
- const [show, setShow] = (0, import_react37.useState)(false);
5924
+ const ref = (0, import_react40.useRef)(null);
5925
+ const [show, setShow] = (0, import_react40.useState)(false);
5907
5926
  const {
5908
5927
  columns,
5909
5928
  id,
@@ -5914,13 +5933,13 @@ function ColumnSelector() {
5914
5933
  resetColumnVisibility,
5915
5934
  dispatch
5916
5935
  } = context;
5917
- const toggleColumnVisibility = (0, import_react37.useCallback)(
5936
+ const toggleColumnVisibility = (0, import_react40.useCallback)(
5918
5937
  (index, visible) => {
5919
5938
  dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
5920
5939
  },
5921
5940
  [dispatch]
5922
5941
  );
5923
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5942
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5924
5943
  "div",
5925
5944
  {
5926
5945
  id: id ? `${id}-column-selector` : void 0,
@@ -5928,7 +5947,7 @@ function ColumnSelector() {
5928
5947
  className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
5929
5948
  ref,
5930
5949
  children: [
5931
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5950
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5932
5951
  Button,
5933
5952
  {
5934
5953
  id: id ? `${id}-button` : void 0,
@@ -5937,10 +5956,10 @@ function ColumnSelector() {
5937
5956
  variant: "navigation",
5938
5957
  iconOnly: true,
5939
5958
  size: 24,
5940
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "tune" })
5959
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "tune" })
5941
5960
  }
5942
5961
  ),
5943
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5962
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5944
5963
  Menu,
5945
5964
  {
5946
5965
  id: id ? `${id}-menu` : void 0,
@@ -5951,7 +5970,7 @@ function ColumnSelector() {
5951
5970
  setShow,
5952
5971
  calculateMinMaxHeight: true,
5953
5972
  children: [
5954
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5973
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5955
5974
  Button,
5956
5975
  {
5957
5976
  id: id ? `${id}-reset-button` : void 0,
@@ -5969,11 +5988,11 @@ function ColumnSelector() {
5969
5988
  return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
5970
5989
  }).map((column) => {
5971
5990
  var _a, _b, _c;
5972
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5991
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5973
5992
  MenuOption,
5974
5993
  {
5975
5994
  testid: testid ? `${testid}-option-${column.id}` : void 0,
5976
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5995
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5977
5996
  Checkbox,
5978
5997
  {
5979
5998
  id: id ? `${id}-checkbox-${column.id}` : void 0,
@@ -6003,7 +6022,7 @@ function ColumnSelector() {
6003
6022
  }
6004
6023
 
6005
6024
  // src/components/MobileDataGrid/MobileDataGridHeader.tsx
6006
- var import_jsx_runtime55 = require("react/jsx-runtime");
6025
+ var import_jsx_runtime57 = require("react/jsx-runtime");
6007
6026
  function MobileDataGridHeader({
6008
6027
  header: Header,
6009
6028
  enableColumnSelector,
@@ -6021,15 +6040,15 @@ function MobileDataGridHeader({
6021
6040
  handleRowSelectAll
6022
6041
  } = ctx;
6023
6042
  if (typeof Header === "undefined" && !primaryKey) return null;
6024
- if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Header, __spreadValues({}, ctx));
6043
+ if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Header, __spreadValues({}, ctx));
6025
6044
  if (typeof Header === "string" || primaryKey)
6026
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6045
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6027
6046
  "div",
6028
6047
  {
6029
6048
  id: id ? `${id}-header` : void 0,
6030
6049
  "data-testid": testid ? `${testid}-header` : void 0,
6031
6050
  className: "sticky top-0",
6032
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
6051
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
6033
6052
  Stack,
6034
6053
  {
6035
6054
  horizontal: true,
@@ -6039,7 +6058,7 @@ function MobileDataGridHeader({
6039
6058
  backgroundColor: "background-primary-normal",
6040
6059
  style: { borderTopRightRadius: 4, borderTopLeftRadius: 4 },
6041
6060
  children: [
6042
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6061
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6043
6062
  Checkbox,
6044
6063
  {
6045
6064
  id: id ? `${id}-select-all-checkbox` : void 0,
@@ -6049,7 +6068,7 @@ function MobileDataGridHeader({
6049
6068
  onChange: handleRowSelectAll
6050
6069
  }
6051
6070
  ) }),
6052
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6071
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6053
6072
  Stack,
6054
6073
  {
6055
6074
  horizontal: true,
@@ -6057,10 +6076,10 @@ function MobileDataGridHeader({
6057
6076
  items: "center",
6058
6077
  sizing: "component",
6059
6078
  padding: true,
6060
- children: /* @__PURE__ */ (0, import_jsx_runtime55.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() })
6079
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.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() })
6061
6080
  }
6062
6081
  ),
6063
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ColumnSelector, {})
6082
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ColumnSelector, {})
6064
6083
  ]
6065
6084
  }
6066
6085
  ) })
@@ -6069,7 +6088,7 @@ function MobileDataGridHeader({
6069
6088
  }
6070
6089
 
6071
6090
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
6072
- var import_react38 = require("react");
6091
+ var import_react41 = require("react");
6073
6092
 
6074
6093
  // src/components/MobileDataGrid/dataGridReducer.ts
6075
6094
  function dataGridReducer(state, action) {
@@ -6099,7 +6118,7 @@ function dataGridReducer(state, action) {
6099
6118
  }
6100
6119
 
6101
6120
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
6102
- var import_jsx_runtime56 = require("react/jsx-runtime");
6121
+ var import_jsx_runtime58 = require("react/jsx-runtime");
6103
6122
  function GridContextProvider(props) {
6104
6123
  const {
6105
6124
  initialColumns,
@@ -6112,10 +6131,10 @@ function GridContextProvider(props) {
6112
6131
  getId,
6113
6132
  onRowSelect
6114
6133
  } = props;
6115
- const [columns, dispatch] = (0, import_react38.useReducer)(dataGridReducer, initialColumns);
6116
- const [selectedRowIds, setSelectedRowIds] = (0, import_react38.useState)([]);
6117
- const [currentRow, setCurrentRow] = (0, import_react38.useState)(null);
6118
- const resetColumnVisibility = (0, import_react38.useCallback)(() => {
6134
+ const [columns, dispatch] = (0, import_react41.useReducer)(dataGridReducer, initialColumns);
6135
+ const [selectedRowIds, setSelectedRowIds] = (0, import_react41.useState)([]);
6136
+ const [currentRow, setCurrentRow] = (0, import_react41.useState)(null);
6137
+ const resetColumnVisibility = (0, import_react41.useCallback)(() => {
6119
6138
  const newColumns = columns.map((column) => {
6120
6139
  var _a;
6121
6140
  const initialColumn = initialColumns.find((c) => c.id === column.id);
@@ -6127,7 +6146,7 @@ function GridContextProvider(props) {
6127
6146
  });
6128
6147
  dispatch({ type: "SET", payload: newColumns });
6129
6148
  }, [columns, initialColumns]);
6130
- const handleRowSelect = (0, import_react38.useCallback)(
6149
+ const handleRowSelect = (0, import_react41.useCallback)(
6131
6150
  (item) => {
6132
6151
  var _a;
6133
6152
  const rowId = (_a = getId(item)) != null ? _a : "";
@@ -6138,7 +6157,7 @@ function GridContextProvider(props) {
6138
6157
  },
6139
6158
  [getId, onRowSelect, selectedRowIds]
6140
6159
  );
6141
- const handleRowSelectAll = (0, import_react38.useCallback)(() => {
6160
+ const handleRowSelectAll = (0, import_react41.useCallback)(() => {
6142
6161
  setSelectedRowIds((prev) => {
6143
6162
  if (prev.length === data.length) {
6144
6163
  return [];
@@ -6146,13 +6165,13 @@ function GridContextProvider(props) {
6146
6165
  return data.map(getId).filter((id2) => id2 !== void 0);
6147
6166
  });
6148
6167
  }, [data, getId]);
6149
- const openRowDetail = (0, import_react38.useCallback)((row) => {
6168
+ const openRowDetail = (0, import_react41.useCallback)((row) => {
6150
6169
  setCurrentRow(row);
6151
6170
  }, []);
6152
- const closeRowDetail = (0, import_react38.useCallback)(() => {
6171
+ const closeRowDetail = (0, import_react41.useCallback)(() => {
6153
6172
  setCurrentRow(null);
6154
6173
  }, []);
6155
- const visibleColumns = (0, import_react38.useMemo)(() => {
6174
+ const visibleColumns = (0, import_react41.useMemo)(() => {
6156
6175
  const effectiveLimit = typeof numberOfColumnsToShow === "number" ? Math.max(numberOfColumnsToShow - 1, 0) : void 0;
6157
6176
  if (primaryKey) {
6158
6177
  const pkColumn = columns.find((col) => col.id === String(primaryKey));
@@ -6170,7 +6189,7 @@ function GridContextProvider(props) {
6170
6189
  return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
6171
6190
  }).slice(0, effectiveLimit);
6172
6191
  }, [columns, numberOfColumnsToShow, primaryKey]);
6173
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6192
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6174
6193
  GridContext.Provider,
6175
6194
  {
6176
6195
  value: {
@@ -6198,12 +6217,12 @@ function GridContextProvider(props) {
6198
6217
  }
6199
6218
 
6200
6219
  // src/components/Modal.tsx
6201
- var import_clsx40 = __toESM(require("clsx"), 1);
6202
- var import_react40 = require("react");
6220
+ var import_clsx41 = __toESM(require("clsx"), 1);
6221
+ var import_react43 = require("react");
6203
6222
 
6204
6223
  // src/components/ModalHeader.tsx
6205
- var import_clsx36 = __toESM(require("clsx"), 1);
6206
- var import_jsx_runtime57 = require("react/jsx-runtime");
6224
+ var import_clsx37 = __toESM(require("clsx"), 1);
6225
+ var import_jsx_runtime59 = require("react/jsx-runtime");
6207
6226
  var ModalHeader = ({
6208
6227
  title,
6209
6228
  hideCloseIcon,
@@ -6217,12 +6236,12 @@ var ModalHeader = ({
6217
6236
  headerIconClassname
6218
6237
  }) => {
6219
6238
  const Title = TitleComponent || Heading2;
6220
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
6239
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
6221
6240
  "div",
6222
6241
  {
6223
6242
  id,
6224
6243
  "data-testid": testid,
6225
- className: (0, import_clsx36.default)(
6244
+ className: (0, import_clsx37.default)(
6226
6245
  "flex justify-between items-center",
6227
6246
  headerIconAlign === "center" && "justify-center",
6228
6247
  headerIconAlign === "right" && "justify-end",
@@ -6232,9 +6251,9 @@ var ModalHeader = ({
6232
6251
  headerClassname
6233
6252
  ),
6234
6253
  children: [
6235
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: (0, import_clsx36.default)("flex items-center flex-1", layoutGroupGap), children: [
6254
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: (0, import_clsx37.default)("flex items-center flex-1", layoutGroupGap), children: [
6236
6255
  headerIcon,
6237
- title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6256
+ title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6238
6257
  Title,
6239
6258
  {
6240
6259
  id: id ? `${id}-title` : void 0,
@@ -6244,7 +6263,7 @@ var ModalHeader = ({
6244
6263
  }
6245
6264
  )
6246
6265
  ] }),
6247
- !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6266
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6248
6267
  Button,
6249
6268
  {
6250
6269
  id: id ? `${id}-close-button` : void 0,
@@ -6252,14 +6271,14 @@ var ModalHeader = ({
6252
6271
  iconOnly: true,
6253
6272
  variant: "tertiary",
6254
6273
  onClick: onClose,
6255
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6274
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6256
6275
  "span",
6257
6276
  {
6258
- className: (0, import_clsx36.default)(
6277
+ className: (0, import_clsx37.default)(
6259
6278
  "contents",
6260
6279
  headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
6261
6280
  ),
6262
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "close", size: 24 })
6281
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "close", size: 24 })
6263
6282
  }
6264
6283
  )
6265
6284
  }
@@ -6271,20 +6290,20 @@ var ModalHeader = ({
6271
6290
  ModalHeader.displayName = "ModalHeader";
6272
6291
 
6273
6292
  // src/components/ModalContent.tsx
6274
- var import_clsx37 = __toESM(require("clsx"), 1);
6275
- var import_jsx_runtime58 = require("react/jsx-runtime");
6293
+ var import_clsx38 = __toESM(require("clsx"), 1);
6294
+ var import_jsx_runtime60 = require("react/jsx-runtime");
6276
6295
  function ModalContent({
6277
6296
  fixedHeightScrolling,
6278
6297
  children,
6279
6298
  id,
6280
6299
  testid
6281
6300
  }) {
6282
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6301
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6283
6302
  "div",
6284
6303
  {
6285
6304
  id,
6286
6305
  "data-testid": testid,
6287
- className: (0, import_clsx37.default)(
6306
+ className: (0, import_clsx38.default)(
6288
6307
  "flex-grow desktop:flex-grow-0",
6289
6308
  layoutPaddding,
6290
6309
  fixedHeightScrolling && "overflow-auto"
@@ -6296,8 +6315,8 @@ function ModalContent({
6296
6315
  ModalContent.displayName = "ModalContent";
6297
6316
 
6298
6317
  // src/components/ModalButtons.tsx
6299
- var import_clsx38 = __toESM(require("clsx"), 1);
6300
- var import_jsx_runtime59 = require("react/jsx-runtime");
6318
+ var import_clsx39 = __toESM(require("clsx"), 1);
6319
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6301
6320
  var ModalButtons = ({
6302
6321
  onClose,
6303
6322
  onContinue,
@@ -6306,37 +6325,37 @@ var ModalButtons = ({
6306
6325
  testid,
6307
6326
  mobileButtonStack = false
6308
6327
  }) => {
6309
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6328
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6310
6329
  "div",
6311
6330
  {
6312
6331
  id,
6313
6332
  "data-testid": testid,
6314
- className: (0, import_clsx38.default)(
6333
+ className: (0, import_clsx39.default)(
6315
6334
  "border-t border-neutral-300 flex justify-end",
6316
6335
  mobileButtonStack && "flex-col ",
6317
6336
  layoutPaddding,
6318
6337
  layoutGroupGap
6319
6338
  ),
6320
- children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
6321
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6339
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
6340
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6322
6341
  Button,
6323
6342
  {
6324
6343
  id: id ? `${id}-close-button` : void 0,
6325
6344
  testid: testid ? `${testid}-close-button` : void 0,
6326
6345
  variant: "secondary",
6327
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "close", size: 24 }),
6346
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "close", size: 24 }),
6328
6347
  onClick: onClose,
6329
6348
  className: "max-sm:w-full",
6330
6349
  children: "Close"
6331
6350
  }
6332
6351
  ),
6333
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6352
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6334
6353
  Button,
6335
6354
  {
6336
6355
  id: id ? `${id}-continue-button` : void 0,
6337
6356
  testid: testid ? `${testid}-continue-button` : void 0,
6338
6357
  variant: "primary",
6339
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "check", size: 24 }),
6358
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "check", size: 24 }),
6340
6359
  className: "max-sm:w-full",
6341
6360
  onClick: onContinue,
6342
6361
  children: "Continue"
@@ -6349,8 +6368,8 @@ var ModalButtons = ({
6349
6368
  ModalButtons.displayName = "ModalButtons";
6350
6369
 
6351
6370
  // src/components/ModalScrim.tsx
6352
- var import_clsx39 = __toESM(require("clsx"), 1);
6353
- var import_jsx_runtime60 = require("react/jsx-runtime");
6371
+ var import_clsx40 = __toESM(require("clsx"), 1);
6372
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6354
6373
  var ModalScrim = ({
6355
6374
  show = false,
6356
6375
  size = "small",
@@ -6360,12 +6379,12 @@ var ModalScrim = ({
6360
6379
  id,
6361
6380
  testid
6362
6381
  }) => {
6363
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6382
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6364
6383
  "div",
6365
6384
  {
6366
6385
  id,
6367
6386
  "data-testid": testid,
6368
- className: (0, import_clsx39.default)(
6387
+ className: (0, import_clsx40.default)(
6369
6388
  "overflow-y-auto h-dvh transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center group bg-neutral-600/50 fixed opacity-0",
6370
6389
  !show && " pointer-events-none",
6371
6390
  size === "small" && "p-4",
@@ -6385,10 +6404,10 @@ var import_react_dom4 = require("react-dom");
6385
6404
  var import_react_use = require("react-use");
6386
6405
 
6387
6406
  // src/components/useMounted.tsx
6388
- var import_react39 = require("react");
6407
+ var import_react42 = require("react");
6389
6408
  var useMounted = () => {
6390
- const [isMounted, setIsMounted] = (0, import_react39.useState)(false);
6391
- (0, import_react39.useEffect)(() => {
6409
+ const [isMounted, setIsMounted] = (0, import_react42.useState)(false);
6410
+ (0, import_react42.useEffect)(() => {
6392
6411
  setIsMounted(true);
6393
6412
  return () => setIsMounted(false);
6394
6413
  }, []);
@@ -6396,7 +6415,7 @@ var useMounted = () => {
6396
6415
  };
6397
6416
 
6398
6417
  // src/components/Modal.tsx
6399
- var import_jsx_runtime61 = require("react/jsx-runtime");
6418
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6400
6419
  var fadeInScale = (element, duration = 300) => element.animate(
6401
6420
  [
6402
6421
  { opacity: 0, transform: "scale(0.95)" },
@@ -6483,12 +6502,12 @@ var Modal = ({
6483
6502
  }) => {
6484
6503
  var _a;
6485
6504
  const mounted = useMounted();
6486
- const modalRef = (0, import_react40.useRef)(null);
6487
- const bgRef = (0, import_react40.useRef)(null);
6505
+ const modalRef = (0, import_react43.useRef)(null);
6506
+ const bgRef = (0, import_react43.useRef)(null);
6488
6507
  const wasOpen = (0, import_react_use.usePrevious)(open);
6489
6508
  const isMobile = useMatchesMobile();
6490
6509
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
6491
- (0, import_react40.useEffect)(() => {
6510
+ (0, import_react43.useEffect)(() => {
6492
6511
  if (!mounted) return;
6493
6512
  if (!modalRef.current || !bgRef.current) {
6494
6513
  console.error("Modal or background reference is not set.");
@@ -6508,7 +6527,7 @@ var Modal = ({
6508
6527
  bgFadeIn(bgRef.current);
6509
6528
  }
6510
6529
  }, [mounted, onClose, open, wasOpen]);
6511
- const handleKeyDown = (0, import_react40.useCallback)(
6530
+ const handleKeyDown = (0, import_react43.useCallback)(
6512
6531
  (e) => {
6513
6532
  if (e.key === "Escape") {
6514
6533
  if (onClose) {
@@ -6519,12 +6538,12 @@ var Modal = ({
6519
6538
  },
6520
6539
  [onClose]
6521
6540
  );
6522
- const handleClose = (0, import_react40.useCallback)(() => {
6541
+ const handleClose = (0, import_react43.useCallback)(() => {
6523
6542
  if (onClose) {
6524
6543
  onClose();
6525
6544
  }
6526
6545
  }, [onClose]);
6527
- (0, import_react40.useEffect)(() => {
6546
+ (0, import_react43.useEffect)(() => {
6528
6547
  if (open) {
6529
6548
  document.addEventListener("keyup", handleKeyDown);
6530
6549
  }
@@ -6532,7 +6551,7 @@ var Modal = ({
6532
6551
  document.removeEventListener("keyup", handleKeyDown);
6533
6552
  };
6534
6553
  }, [open, handleKeyDown]);
6535
- (0, import_react40.useEffect)(() => {
6554
+ (0, import_react43.useEffect)(() => {
6536
6555
  if (!open) return;
6537
6556
  const scrollY = window.scrollY;
6538
6557
  const body = document.body;
@@ -6553,7 +6572,7 @@ var Modal = ({
6553
6572
  };
6554
6573
  }, [open]);
6555
6574
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
6556
- const backgroundClickHandler = (0, import_react40.useCallback)(
6575
+ const backgroundClickHandler = (0, import_react43.useCallback)(
6557
6576
  (e) => {
6558
6577
  const target = e.target;
6559
6578
  const currentTarget = e.currentTarget;
@@ -6571,7 +6590,7 @@ var Modal = ({
6571
6590
  return null;
6572
6591
  }
6573
6592
  return (0, import_react_dom4.createPortal)(
6574
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6593
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6575
6594
  ModalScrim,
6576
6595
  {
6577
6596
  id: id ? `${id}-scrim` : void 0,
@@ -6580,13 +6599,13 @@ var Modal = ({
6580
6599
  ref: bgRef,
6581
6600
  show: open,
6582
6601
  onClick: backgroundClickHandler,
6583
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
6602
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6584
6603
  "div",
6585
6604
  {
6586
6605
  id,
6587
6606
  "data-testid": testid,
6588
6607
  ref: modalRef,
6589
- className: (0, import_clsx40.default)(
6608
+ className: (0, import_clsx41.default)(
6590
6609
  "shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
6591
6610
  computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
6592
6611
  className,
@@ -6595,7 +6614,7 @@ var Modal = ({
6595
6614
  ),
6596
6615
  onClick: (e) => e.stopPropagation(),
6597
6616
  children: [
6598
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6617
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6599
6618
  ModalHeader,
6600
6619
  {
6601
6620
  id: id ? `${id}-header` : void 0,
@@ -6610,7 +6629,7 @@ var Modal = ({
6610
6629
  titleAs: TitleComponent
6611
6630
  }
6612
6631
  ),
6613
- children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6632
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6614
6633
  ModalContent,
6615
6634
  {
6616
6635
  id: id ? `${id}-content` : void 0,
@@ -6619,7 +6638,7 @@ var Modal = ({
6619
6638
  children
6620
6639
  }
6621
6640
  ) : children,
6622
- showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6641
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6623
6642
  ModalButtons,
6624
6643
  {
6625
6644
  id: id ? `${id}-buttons` : void 0,
@@ -6641,7 +6660,7 @@ var Modal = ({
6641
6660
  Modal.displayName = "Modal";
6642
6661
 
6643
6662
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
6644
- var import_jsx_runtime62 = require("react/jsx-runtime");
6663
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6645
6664
  function MobileDataGridColumn(props) {
6646
6665
  var _a, _b;
6647
6666
  const { column, data } = props;
@@ -6652,8 +6671,8 @@ function MobileDataGridColumn(props) {
6652
6671
  value = formatDate(value);
6653
6672
  }
6654
6673
  }
6655
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
6656
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6674
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
6675
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6657
6676
  (_b = column.header) == null ? void 0 : _b.toString(),
6658
6677
  ":"
6659
6678
  ] }),
@@ -6663,28 +6682,28 @@ function MobileDataGridColumn(props) {
6663
6682
  }
6664
6683
 
6665
6684
  // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
6666
- var import_jsx_runtime63 = require("react/jsx-runtime");
6685
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6667
6686
  function ModalContent2() {
6668
6687
  const context = useGridContext();
6669
6688
  const { columns, currentRow } = context;
6670
6689
  if (!currentRow) return null;
6671
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
6690
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
6672
6691
  var _a;
6673
6692
  return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
6674
6693
  }).map(
6675
6694
  (column, index) => {
6676
6695
  var _a, _b;
6677
- return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6696
+ return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6678
6697
  "div",
6679
6698
  {
6680
6699
  className: "grid grid-cols-2 gap-2 items-center flex-1",
6681
6700
  children: [
6682
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6701
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6683
6702
  (_b = column.header) == null ? void 0 : _b.toString(),
6684
6703
  ":"
6685
6704
  ] }),
6686
6705
  " ",
6687
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6706
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6688
6707
  column.meta.mobileCell,
6689
6708
  {
6690
6709
  column,
@@ -6695,7 +6714,7 @@ function ModalContent2() {
6695
6714
  ]
6696
6715
  },
6697
6716
  `${column.id}-${index}`
6698
- ) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6717
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6699
6718
  MobileDataGridColumn,
6700
6719
  {
6701
6720
  column,
@@ -6708,7 +6727,7 @@ function ModalContent2() {
6708
6727
  }
6709
6728
 
6710
6729
  // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
6711
- var import_jsx_runtime64 = require("react/jsx-runtime");
6730
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6712
6731
  function RowDetailModalProvider() {
6713
6732
  var _a;
6714
6733
  const context = useGridContext();
@@ -6720,7 +6739,7 @@ function RowDetailModalProvider() {
6720
6739
  primaryKey,
6721
6740
  closeRowDetail
6722
6741
  } = context;
6723
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6742
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6724
6743
  Modal,
6725
6744
  {
6726
6745
  fixedHeightScrolling: true,
@@ -6729,7 +6748,7 @@ function RowDetailModalProvider() {
6729
6748
  hideCloseIcon: true,
6730
6749
  size: "medium",
6731
6750
  className: "!p-0",
6732
- headerIcon: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6751
+ headerIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6733
6752
  Stack,
6734
6753
  {
6735
6754
  horizontal: true,
@@ -6738,8 +6757,8 @@ function RowDetailModalProvider() {
6738
6757
  justify: "between",
6739
6758
  width: "full",
6740
6759
  children: [
6741
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
6742
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6760
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
6761
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6743
6762
  Button,
6744
6763
  {
6745
6764
  id: id ? `${id}-close-button` : void 0,
@@ -6747,25 +6766,25 @@ function RowDetailModalProvider() {
6747
6766
  iconOnly: true,
6748
6767
  variant: "tertiary",
6749
6768
  onClick: closeRowDetail,
6750
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { name: "x", size: 24 }) })
6769
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "x", size: 24 }) })
6751
6770
  }
6752
6771
  )
6753
6772
  ]
6754
6773
  }
6755
6774
  ),
6756
- customActions: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
6775
+ customActions: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
6757
6776
  showButtons: true,
6758
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ModalContent2, {}) })
6777
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ModalContent2, {}) })
6759
6778
  }
6760
6779
  );
6761
6780
  }
6762
6781
 
6763
6782
  // src/components/MobileDataGrid/ColumnList.tsx
6764
- var import_clsx42 = __toESM(require("clsx"), 1);
6783
+ var import_clsx43 = __toESM(require("clsx"), 1);
6765
6784
 
6766
6785
  // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
6767
- var import_clsx41 = __toESM(require("clsx"), 1);
6768
- var import_jsx_runtime65 = require("react/jsx-runtime");
6786
+ var import_clsx42 = __toESM(require("clsx"), 1);
6787
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6769
6788
  function MobileDataGridCard({
6770
6789
  renderLink,
6771
6790
  renderChevron = true,
@@ -6777,12 +6796,12 @@ function MobileDataGridCard({
6777
6796
  var _a;
6778
6797
  const context = useGridContext();
6779
6798
  const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
6780
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6799
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6781
6800
  "li",
6782
6801
  {
6783
6802
  id: id ? `${id}-card-${getId(data)}` : void 0,
6784
6803
  "data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
6785
- className: (0, import_clsx41.default)(
6804
+ className: (0, import_clsx42.default)(
6786
6805
  "flex flex-col",
6787
6806
  "hover:bg-action-100 cursor-pointer list-none",
6788
6807
  selected ? "bg-action-100" : "bg-background-grouped-primary-normal",
@@ -6792,9 +6811,9 @@ function MobileDataGridCard({
6792
6811
  ),
6793
6812
  onClick: () => openRowDetail(data),
6794
6813
  children: [
6795
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Stack, { sizing: "component", children: [
6796
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
6797
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6814
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Stack, { sizing: "component", children: [
6815
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
6816
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6798
6817
  Stack,
6799
6818
  {
6800
6819
  sizing: "component",
@@ -6802,7 +6821,7 @@ function MobileDataGridCard({
6802
6821
  width: "fit",
6803
6822
  style: { paddingLeft: 0, paddingRight: 8 },
6804
6823
  onClick: (e) => e.stopPropagation(),
6805
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6824
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6806
6825
  Checkbox,
6807
6826
  {
6808
6827
  id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
@@ -6813,17 +6832,17 @@ function MobileDataGridCard({
6813
6832
  )
6814
6833
  }
6815
6834
  ),
6816
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6835
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6817
6836
  Stack,
6818
6837
  {
6819
6838
  sizing: "component",
6820
6839
  padding: true,
6821
6840
  onClick: (e) => e.stopPropagation(),
6822
6841
  style: { paddingInline: 0 },
6823
- children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
6842
+ children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
6824
6843
  }
6825
6844
  ),
6826
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6845
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6827
6846
  Stack,
6828
6847
  {
6829
6848
  horizontal: true,
@@ -6836,18 +6855,18 @@ function MobileDataGridCard({
6836
6855
  }
6837
6856
  )
6838
6857
  ] }),
6839
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
6858
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
6840
6859
  var _a2, _b;
6841
6860
  return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
6842
6861
  }).map(
6843
6862
  (column, index) => {
6844
6863
  var _a2, _b;
6845
- return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6864
+ return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6846
6865
  "div",
6847
6866
  {
6848
6867
  className: "grid grid-cols-2 gap-2 items-center flex-1",
6849
6868
  children: [
6850
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6869
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6851
6870
  Paragraph,
6852
6871
  {
6853
6872
  color: "text-secondary-normal",
@@ -6859,7 +6878,7 @@ function MobileDataGridCard({
6859
6878
  }
6860
6879
  ),
6861
6880
  " ",
6862
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6881
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6863
6882
  column.meta.mobileCell,
6864
6883
  {
6865
6884
  column,
@@ -6870,7 +6889,7 @@ function MobileDataGridCard({
6870
6889
  ]
6871
6890
  },
6872
6891
  `${column.id}-${index}`
6873
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6892
+ ) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6874
6893
  MobileDataGridColumn,
6875
6894
  {
6876
6895
  column,
@@ -6881,14 +6900,14 @@ function MobileDataGridCard({
6881
6900
  }
6882
6901
  ) })
6883
6902
  ] }),
6884
- renderChevron && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-icon-primary-normal", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { name: "keyboard_arrow_down" }) }) })
6903
+ renderChevron && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-icon-primary-normal", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "keyboard_arrow_down" }) }) })
6885
6904
  ]
6886
6905
  }
6887
6906
  );
6888
6907
  }
6889
6908
 
6890
6909
  // src/components/MobileDataGrid/ColumnList.tsx
6891
- var import_jsx_runtime66 = require("react/jsx-runtime");
6910
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6892
6911
  function ColumnList(props) {
6893
6912
  var _a, _b;
6894
6913
  const {
@@ -6902,36 +6921,36 @@ function ColumnList(props) {
6902
6921
  const ctx = useGridContext();
6903
6922
  const { id, testid, data, getId, selectedRowIds } = ctx;
6904
6923
  const empty = data.length === 0;
6905
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6924
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6906
6925
  "div",
6907
6926
  {
6908
- className: (0, import_clsx42.default)(
6927
+ className: (0, import_clsx43.default)(
6909
6928
  "flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
6910
6929
  !!Footer && "mb-20"
6911
6930
  ),
6912
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6931
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
6913
6932
  "ul",
6914
6933
  {
6915
6934
  id,
6916
6935
  "data-testid": testid,
6917
- className: (0, import_clsx42.default)(
6936
+ className: (0, import_clsx43.default)(
6918
6937
  "rounded absolute top-0 left-0 w-full flex-1",
6919
6938
  empty && "!rounded-t-none",
6920
6939
  "divide-y divide-border-primary-normal",
6921
6940
  withBorder && "border border-border-primary-normal"
6922
6941
  ),
6923
6942
  children: [
6924
- empty ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6943
+ empty ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
6925
6944
  "div",
6926
6945
  {
6927
- className: (0, import_clsx42.default)(
6946
+ className: (0, import_clsx43.default)(
6928
6947
  "flex flex-col items-center justify-center",
6929
6948
  componentGap,
6930
6949
  componentPadding
6931
6950
  ),
6932
6951
  "data-testid": testid ? `${testid}-no-results` : void 0,
6933
6952
  children: [
6934
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6953
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6935
6954
  "img",
6936
6955
  {
6937
6956
  src: (_b = (_a = no_results_image_default) == null ? void 0 : _a.src) != null ? _b : no_results_image_default,
@@ -6941,13 +6960,13 @@ function ColumnList(props) {
6941
6960
  height: 120
6942
6961
  }
6943
6962
  ),
6944
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Subheader, { color: "text-secondary-normal", children: "No Results" }),
6945
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
6963
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Subheader, { color: "text-secondary-normal", children: "No Results" }),
6964
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
6946
6965
  ]
6947
6966
  }
6948
6967
  ) : data.map((item) => {
6949
6968
  const id2 = getId(item);
6950
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6969
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
6951
6970
  MobileDataGridCard,
6952
6971
  {
6953
6972
  data: item,
@@ -6960,7 +6979,7 @@ function ColumnList(props) {
6960
6979
  id2
6961
6980
  );
6962
6981
  }),
6963
- !!Footer && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Footer, __spreadValues({}, ctx)) })
6982
+ !!Footer && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Footer, __spreadValues({}, ctx)) })
6964
6983
  ]
6965
6984
  }
6966
6985
  )
@@ -6969,7 +6988,7 @@ function ColumnList(props) {
6969
6988
  }
6970
6989
 
6971
6990
  // src/components/MobileDataGrid/index.tsx
6972
- var import_jsx_runtime67 = require("react/jsx-runtime");
6991
+ var import_jsx_runtime69 = require("react/jsx-runtime");
6973
6992
  function MobileDataGrid(props) {
6974
6993
  const {
6975
6994
  columns,
@@ -6991,7 +7010,7 @@ function MobileDataGrid(props) {
6991
7010
  rowActions,
6992
7011
  rounded
6993
7012
  } = props;
6994
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
7013
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
6995
7014
  GridContextProvider,
6996
7015
  {
6997
7016
  initialColumns: columns,
@@ -7003,7 +7022,7 @@ function MobileDataGrid(props) {
7003
7022
  numberOfColumnsToShow,
7004
7023
  primaryKey,
7005
7024
  children: [
7006
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
7025
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
7007
7026
  Stack,
7008
7027
  {
7009
7028
  height: "full",
@@ -7011,7 +7030,7 @@ function MobileDataGrid(props) {
7011
7030
  overflowX: "hidden",
7012
7031
  overflowY: "hidden",
7013
7032
  children: [
7014
- !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
7033
+ !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
7015
7034
  MobileDataGridHeader,
7016
7035
  {
7017
7036
  header,
@@ -7019,7 +7038,7 @@ function MobileDataGrid(props) {
7019
7038
  enableRowSelection
7020
7039
  }
7021
7040
  ),
7022
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
7041
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
7023
7042
  ColumnList,
7024
7043
  {
7025
7044
  withBorder,
@@ -7033,7 +7052,7 @@ function MobileDataGrid(props) {
7033
7052
  ]
7034
7053
  }
7035
7054
  ),
7036
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(RowDetailModalProvider, {})
7055
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(RowDetailModalProvider, {})
7037
7056
  ]
7038
7057
  }
7039
7058
  );