@dmsi/wedgekit-react 0.0.474 → 0.0.476

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 (76) hide show
  1. package/dist/{chunk-IG2YUDHI.js → chunk-24K4HHV5.js} +4 -4
  2. package/dist/{chunk-OEMLNGE2.js → chunk-4Q7T4GJ2.js} +2 -2
  3. package/dist/chunk-4UH72JT2.js +104 -0
  4. package/dist/{chunk-GTPSPGSJ.js → chunk-HSJ34DOK.js} +13 -13
  5. package/dist/{chunk-KJNK7KEV.js → chunk-QMSPTD6L.js} +1 -1
  6. package/dist/components/Accordion.js +2 -2
  7. package/dist/components/Alert.cjs +787 -0
  8. package/dist/components/Alert.js +13 -0
  9. package/dist/components/CalendarRange.cjs +51 -46
  10. package/dist/components/CalendarRange.css +3 -0
  11. package/dist/components/CalendarRange.js +19 -18
  12. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +9 -4
  13. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +3 -0
  14. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +19 -18
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +18 -13
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +3 -0
  17. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +19 -18
  18. package/dist/components/DataGrid/PinnedColumns.cjs +34 -29
  19. package/dist/components/DataGrid/PinnedColumns.css +3 -0
  20. package/dist/components/DataGrid/PinnedColumns.js +19 -18
  21. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +10 -5
  22. package/dist/components/DataGrid/TableBody/LoadingCell.css +3 -0
  23. package/dist/components/DataGrid/TableBody/LoadingCell.js +19 -18
  24. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +16 -11
  25. package/dist/components/DataGrid/TableBody/TableBodyRow.css +3 -0
  26. package/dist/components/DataGrid/TableBody/TableBodyRow.js +19 -18
  27. package/dist/components/DataGrid/TableBody/index.cjs +31 -26
  28. package/dist/components/DataGrid/TableBody/index.css +3 -0
  29. package/dist/components/DataGrid/TableBody/index.js +19 -18
  30. package/dist/components/DataGrid/index.cjs +120 -115
  31. package/dist/components/DataGrid/index.css +3 -0
  32. package/dist/components/DataGrid/index.js +19 -18
  33. package/dist/components/DataGrid/utils.cjs +10 -5
  34. package/dist/components/DataGrid/utils.css +3 -0
  35. package/dist/components/DataGrid/utils.js +19 -18
  36. package/dist/components/DataGridCell.js +2 -2
  37. package/dist/components/DateInput.cjs +70 -65
  38. package/dist/components/DateInput.css +3 -0
  39. package/dist/components/DateInput.js +19 -18
  40. package/dist/components/DateRangeInput.cjs +70 -65
  41. package/dist/components/DateRangeInput.css +3 -0
  42. package/dist/components/DateRangeInput.js +19 -18
  43. package/dist/components/FilterGroup.js +6 -6
  44. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  45. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +17 -12
  46. package/dist/components/MobileDataGrid/ColumnSelector/index.css +3 -0
  47. package/dist/components/MobileDataGrid/ColumnSelector/index.js +19 -18
  48. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  49. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +25 -20
  50. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +3 -0
  51. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +19 -18
  52. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  53. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +6 -6
  54. package/dist/components/MobileDataGrid/index.cjs +89 -84
  55. package/dist/components/MobileDataGrid/index.css +3 -0
  56. package/dist/components/MobileDataGrid/index.js +19 -18
  57. package/dist/components/Modal.js +3 -3
  58. package/dist/components/Notification.js +3 -3
  59. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  60. package/dist/components/PDFViewer/index.js +6 -6
  61. package/dist/components/SideMenuItem.js +3 -3
  62. package/dist/components/Swatch.js +3 -3
  63. package/dist/components/Upload.js +3 -3
  64. package/dist/components/index.cjs +82 -0
  65. package/dist/components/index.css +3 -0
  66. package/dist/components/index.js +32 -28
  67. package/dist/index.css +3 -0
  68. package/package.json +1 -1
  69. package/src/components/Alert.tsx +81 -0
  70. package/src/components/index.ts +1 -0
  71. package/dist/{chunk-IT4VFU6T.js → chunk-3DEYCNUE.js} +3 -3
  72. package/dist/{chunk-GTBGPBH6.js → chunk-B53XDCLO.js} +3 -3
  73. package/dist/{chunk-ZQSD74IJ.js → chunk-IY7SXEVY.js} +3 -3
  74. package/dist/{chunk-BFFNSUNS.js → chunk-QBSEKZWX.js} +3 -3
  75. package/dist/{chunk-NIWXVOBW.js → chunk-X67L3NZI.js} +3 -3
  76. package/dist/{chunk-TVXBP5CW.js → chunk-XIXQUEYC.js} +3 -3
@@ -712,7 +712,7 @@ function Theme({
712
712
  }
713
713
 
714
714
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
715
- var import_react35 = require("react");
715
+ var import_react36 = require("react");
716
716
 
717
717
  // src/components/DataGridCell.tsx
718
718
  var import_sortable = require("@dnd-kit/sortable");
@@ -5085,16 +5085,21 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
5085
5085
  // src/components/EmptyCartIcon.tsx
5086
5086
  var import_jsx_runtime52 = require("react/jsx-runtime");
5087
5087
 
5088
+ // src/components/Alert.tsx
5089
+ var import_clsx36 = __toESM(require("clsx"), 1);
5090
+ var import_react33 = require("react");
5091
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5092
+
5088
5093
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5089
- var import_react34 = require("react");
5094
+ var import_react35 = require("react");
5090
5095
 
5091
5096
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
5092
- var import_react33 = require("react");
5093
- var GridContext = (0, import_react33.createContext)(null);
5097
+ var import_react34 = require("react");
5098
+ var GridContext = (0, import_react34.createContext)(null);
5094
5099
 
5095
5100
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
5096
5101
  function useGridContext() {
5097
- const ctx = (0, import_react34.useContext)(GridContext);
5102
+ const ctx = (0, import_react35.useContext)(GridContext);
5098
5103
  if (!ctx) {
5099
5104
  throw new Error("useGridContext must be used within GridContextProvider");
5100
5105
  }
@@ -5102,11 +5107,11 @@ function useGridContext() {
5102
5107
  }
5103
5108
 
5104
5109
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
5105
- var import_jsx_runtime53 = require("react/jsx-runtime");
5110
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5106
5111
  function ColumnSelector() {
5107
5112
  const context = useGridContext();
5108
- const ref = (0, import_react35.useRef)(null);
5109
- const [show, setShow] = (0, import_react35.useState)(false);
5113
+ const ref = (0, import_react36.useRef)(null);
5114
+ const [show, setShow] = (0, import_react36.useState)(false);
5110
5115
  const {
5111
5116
  columns,
5112
5117
  id,
@@ -5117,13 +5122,13 @@ function ColumnSelector() {
5117
5122
  resetColumnVisibility,
5118
5123
  dispatch
5119
5124
  } = context;
5120
- const toggleColumnVisibility = (0, import_react35.useCallback)(
5125
+ const toggleColumnVisibility = (0, import_react36.useCallback)(
5121
5126
  (index, visible) => {
5122
5127
  dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
5123
5128
  },
5124
5129
  [dispatch]
5125
5130
  );
5126
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5131
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5127
5132
  "div",
5128
5133
  {
5129
5134
  id: id ? `${id}-column-selector` : void 0,
@@ -5131,7 +5136,7 @@ function ColumnSelector() {
5131
5136
  className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
5132
5137
  ref,
5133
5138
  children: [
5134
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5139
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5135
5140
  Button,
5136
5141
  {
5137
5142
  id: id ? `${id}-button` : void 0,
@@ -5140,10 +5145,10 @@ function ColumnSelector() {
5140
5145
  variant: "navigation",
5141
5146
  iconOnly: true,
5142
5147
  size: 24,
5143
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "tune" })
5148
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "tune" })
5144
5149
  }
5145
5150
  ),
5146
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5151
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5147
5152
  Menu,
5148
5153
  {
5149
5154
  id: id ? `${id}-menu` : void 0,
@@ -5154,7 +5159,7 @@ function ColumnSelector() {
5154
5159
  setShow,
5155
5160
  calculateMinMaxHeight: true,
5156
5161
  children: [
5157
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5162
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5158
5163
  Button,
5159
5164
  {
5160
5165
  id: id ? `${id}-reset-button` : void 0,
@@ -5172,11 +5177,11 @@ function ColumnSelector() {
5172
5177
  return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
5173
5178
  }).map((column) => {
5174
5179
  var _a, _b, _c;
5175
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5180
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5176
5181
  MenuOption,
5177
5182
  {
5178
5183
  testid: testid ? `${testid}-option-${column.id}` : void 0,
5179
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5184
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5180
5185
  Checkbox,
5181
5186
  {
5182
5187
  id: id ? `${id}-checkbox-${column.id}` : void 0,
@@ -5206,7 +5211,7 @@ function ColumnSelector() {
5206
5211
  }
5207
5212
 
5208
5213
  // src/components/MobileDataGrid/MobileDataGridHeader.tsx
5209
- var import_jsx_runtime54 = require("react/jsx-runtime");
5214
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5210
5215
  function MobileDataGridHeader({
5211
5216
  header: Header,
5212
5217
  enableColumnSelector,
@@ -5224,15 +5229,15 @@ function MobileDataGridHeader({
5224
5229
  handleRowSelectAll
5225
5230
  } = ctx;
5226
5231
  if (typeof Header === "undefined" && !primaryKey) return null;
5227
- if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Header, __spreadValues({}, ctx));
5232
+ if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Header, __spreadValues({}, ctx));
5228
5233
  if (typeof Header === "string" || primaryKey)
5229
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5234
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5230
5235
  "div",
5231
5236
  {
5232
5237
  id: id ? `${id}-header` : void 0,
5233
5238
  "data-testid": testid ? `${testid}-header` : void 0,
5234
5239
  className: "sticky top-0",
5235
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5240
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5236
5241
  Stack,
5237
5242
  {
5238
5243
  horizontal: true,
@@ -5241,7 +5246,7 @@ function MobileDataGridHeader({
5241
5246
  justify: "between",
5242
5247
  backgroundColor: "background-primary-normal",
5243
5248
  children: [
5244
- 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)(
5249
+ 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)(
5245
5250
  Checkbox,
5246
5251
  {
5247
5252
  id: id ? `${id}-select-all-checkbox` : void 0,
@@ -5251,7 +5256,7 @@ function MobileDataGridHeader({
5251
5256
  onChange: handleRowSelectAll
5252
5257
  }
5253
5258
  ) }),
5254
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5259
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5255
5260
  Stack,
5256
5261
  {
5257
5262
  horizontal: true,
@@ -5259,10 +5264,10 @@ function MobileDataGridHeader({
5259
5264
  items: "center",
5260
5265
  sizing: "component",
5261
5266
  padding: true,
5262
- 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() })
5267
+ 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() })
5263
5268
  }
5264
5269
  ),
5265
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ColumnSelector, {})
5270
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ColumnSelector, {})
5266
5271
  ]
5267
5272
  }
5268
5273
  ) })
@@ -5271,7 +5276,7 @@ function MobileDataGridHeader({
5271
5276
  }
5272
5277
 
5273
5278
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5274
- var import_react36 = require("react");
5279
+ var import_react37 = require("react");
5275
5280
 
5276
5281
  // src/components/MobileDataGrid/dataGridReducer.ts
5277
5282
  function dataGridReducer(state, action) {
@@ -5301,7 +5306,7 @@ function dataGridReducer(state, action) {
5301
5306
  }
5302
5307
 
5303
5308
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
5304
- var import_jsx_runtime55 = require("react/jsx-runtime");
5309
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5305
5310
  function GridContextProvider(props) {
5306
5311
  const {
5307
5312
  initialColumns,
@@ -5314,10 +5319,10 @@ function GridContextProvider(props) {
5314
5319
  getId,
5315
5320
  onRowSelect
5316
5321
  } = props;
5317
- const [columns, dispatch] = (0, import_react36.useReducer)(dataGridReducer, initialColumns);
5318
- const [selectedRowIds, setSelectedRowIds] = (0, import_react36.useState)([]);
5319
- const [currentRow, setCurrentRow] = (0, import_react36.useState)(null);
5320
- const resetColumnVisibility = (0, import_react36.useCallback)(() => {
5322
+ const [columns, dispatch] = (0, import_react37.useReducer)(dataGridReducer, initialColumns);
5323
+ const [selectedRowIds, setSelectedRowIds] = (0, import_react37.useState)([]);
5324
+ const [currentRow, setCurrentRow] = (0, import_react37.useState)(null);
5325
+ const resetColumnVisibility = (0, import_react37.useCallback)(() => {
5321
5326
  const newColumns = columns.map((column) => {
5322
5327
  var _a;
5323
5328
  const initialColumn = initialColumns.find((c) => c.id === column.id);
@@ -5329,7 +5334,7 @@ function GridContextProvider(props) {
5329
5334
  });
5330
5335
  dispatch({ type: "SET", payload: newColumns });
5331
5336
  }, [columns, initialColumns]);
5332
- const handleRowSelect = (0, import_react36.useCallback)(
5337
+ const handleRowSelect = (0, import_react37.useCallback)(
5333
5338
  (item) => {
5334
5339
  var _a;
5335
5340
  const rowId = (_a = getId(item)) != null ? _a : "";
@@ -5340,7 +5345,7 @@ function GridContextProvider(props) {
5340
5345
  },
5341
5346
  [getId, onRowSelect, selectedRowIds]
5342
5347
  );
5343
- const handleRowSelectAll = (0, import_react36.useCallback)(() => {
5348
+ const handleRowSelectAll = (0, import_react37.useCallback)(() => {
5344
5349
  setSelectedRowIds((prev) => {
5345
5350
  if (prev.length === data.length) {
5346
5351
  return [];
@@ -5348,13 +5353,13 @@ function GridContextProvider(props) {
5348
5353
  return data.map(getId).filter((id2) => id2 !== void 0);
5349
5354
  });
5350
5355
  }, [data, getId]);
5351
- const openRowDetail = (0, import_react36.useCallback)((row) => {
5356
+ const openRowDetail = (0, import_react37.useCallback)((row) => {
5352
5357
  setCurrentRow(row);
5353
5358
  }, []);
5354
- const closeRowDetail = (0, import_react36.useCallback)(() => {
5359
+ const closeRowDetail = (0, import_react37.useCallback)(() => {
5355
5360
  setCurrentRow(null);
5356
5361
  }, []);
5357
- const visibleColumns = (0, import_react36.useMemo)(() => {
5362
+ const visibleColumns = (0, import_react37.useMemo)(() => {
5358
5363
  const effectiveLimit = typeof numberOfColumnsToShow === "number" ? Math.max(numberOfColumnsToShow - 1, 0) : void 0;
5359
5364
  if (primaryKey) {
5360
5365
  const pkColumn = columns.find((col) => col.id === String(primaryKey));
@@ -5372,7 +5377,7 @@ function GridContextProvider(props) {
5372
5377
  return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
5373
5378
  }).slice(0, effectiveLimit);
5374
5379
  }, [columns, numberOfColumnsToShow, primaryKey]);
5375
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5380
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5376
5381
  GridContext.Provider,
5377
5382
  {
5378
5383
  value: {
@@ -5400,12 +5405,12 @@ function GridContextProvider(props) {
5400
5405
  }
5401
5406
 
5402
5407
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
5403
- var import_jsx_runtime56 = require("react/jsx-runtime");
5408
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5404
5409
  function MobileDataGridColumn(props) {
5405
5410
  var _a;
5406
5411
  const { column, data } = props;
5407
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
5408
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
5412
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
5413
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
5409
5414
  (_a = column.header) == null ? void 0 : _a.toString(),
5410
5415
  ":"
5411
5416
  ] }),
@@ -5415,28 +5420,28 @@ function MobileDataGridColumn(props) {
5415
5420
  }
5416
5421
 
5417
5422
  // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
5418
- var import_jsx_runtime57 = require("react/jsx-runtime");
5423
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5419
5424
  function ModalContent2() {
5420
5425
  const context = useGridContext();
5421
5426
  const { columns, currentRow } = context;
5422
5427
  if (!currentRow) return null;
5423
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
5428
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
5424
5429
  var _a;
5425
5430
  return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
5426
5431
  }).map(
5427
5432
  (column, index) => {
5428
5433
  var _a, _b;
5429
- return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5434
+ return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5430
5435
  "div",
5431
5436
  {
5432
5437
  className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
5433
5438
  children: [
5434
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
5439
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
5435
5440
  (_b = column.header) == null ? void 0 : _b.toString(),
5436
5441
  ":"
5437
5442
  ] }),
5438
5443
  " ",
5439
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5444
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5440
5445
  column.meta.mobileCell,
5441
5446
  {
5442
5447
  column,
@@ -5447,7 +5452,7 @@ function ModalContent2() {
5447
5452
  ]
5448
5453
  },
5449
5454
  `${column.id}-${index}`
5450
- ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5455
+ ) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5451
5456
  MobileDataGridColumn,
5452
5457
  {
5453
5458
  column,
@@ -5460,7 +5465,7 @@ function ModalContent2() {
5460
5465
  }
5461
5466
 
5462
5467
  // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
5463
- var import_jsx_runtime58 = require("react/jsx-runtime");
5468
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5464
5469
  function RowDetailModalProvider() {
5465
5470
  var _a;
5466
5471
  const context = useGridContext();
@@ -5472,7 +5477,7 @@ function RowDetailModalProvider() {
5472
5477
  primaryKey,
5473
5478
  closeRowDetail
5474
5479
  } = context;
5475
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5480
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5476
5481
  Modal,
5477
5482
  {
5478
5483
  fixedHeightScrolling: true,
@@ -5481,7 +5486,7 @@ function RowDetailModalProvider() {
5481
5486
  hideCloseIcon: true,
5482
5487
  size: "medium",
5483
5488
  className: "!p-0",
5484
- headerIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5489
+ headerIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5485
5490
  Stack,
5486
5491
  {
5487
5492
  horizontal: true,
@@ -5490,8 +5495,8 @@ function RowDetailModalProvider() {
5490
5495
  justify: "between",
5491
5496
  width: "full",
5492
5497
  children: [
5493
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
5494
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5498
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
5499
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5495
5500
  Button,
5496
5501
  {
5497
5502
  id: id ? `${id}-open-in-new-button` : void 0,
@@ -5499,25 +5504,25 @@ function RowDetailModalProvider() {
5499
5504
  iconOnly: true,
5500
5505
  variant: "tertiary",
5501
5506
  onClick: closeRowDetail,
5502
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "open_in_new", size: 24 }) })
5507
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "open_in_new", size: 24 }) })
5503
5508
  }
5504
5509
  )
5505
5510
  ]
5506
5511
  }
5507
5512
  ),
5508
- customActions: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
5513
+ customActions: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
5509
5514
  showButtons: true,
5510
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ModalContent2, {}) })
5515
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ModalContent2, {}) })
5511
5516
  }
5512
5517
  );
5513
5518
  }
5514
5519
 
5515
5520
  // src/components/MobileDataGrid/ColumnList.tsx
5516
- var import_clsx37 = __toESM(require("clsx"), 1);
5521
+ var import_clsx38 = __toESM(require("clsx"), 1);
5517
5522
 
5518
5523
  // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
5519
- var import_clsx36 = __toESM(require("clsx"), 1);
5520
- var import_jsx_runtime59 = require("react/jsx-runtime");
5524
+ var import_clsx37 = __toESM(require("clsx"), 1);
5525
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5521
5526
  function MobileDataGridCard({
5522
5527
  renderLink,
5523
5528
  renderChevron = true,
@@ -5529,27 +5534,27 @@ function MobileDataGridCard({
5529
5534
  var _a;
5530
5535
  const context = useGridContext();
5531
5536
  const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
5532
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5537
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5533
5538
  "li",
5534
5539
  {
5535
5540
  id: id ? `${id}-card-${getId(data)}` : void 0,
5536
5541
  "data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
5537
- className: (0, import_clsx36.default)(
5542
+ className: (0, import_clsx37.default)(
5538
5543
  "hover:bg-action-100 cursor-pointer list-none",
5539
5544
  selected ? "bg-action-100" : "bg-background-grouped-primary-normal"
5540
5545
  ),
5541
5546
  onClick: () => openRowDetail(data),
5542
5547
  children: [
5543
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Stack, { sizing: "component", children: [
5544
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
5545
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5548
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Stack, { sizing: "component", children: [
5549
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
5550
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5546
5551
  Stack,
5547
5552
  {
5548
5553
  sizing: "component",
5549
5554
  padding: true,
5550
5555
  width: "fit",
5551
5556
  onClick: (e) => e.stopPropagation(),
5552
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5557
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5553
5558
  Checkbox,
5554
5559
  {
5555
5560
  id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
@@ -5560,16 +5565,16 @@ function MobileDataGridCard({
5560
5565
  )
5561
5566
  }
5562
5567
  ),
5563
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5568
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5564
5569
  Stack,
5565
5570
  {
5566
5571
  sizing: "component",
5567
5572
  padding: true,
5568
5573
  onClick: (e) => e.stopPropagation(),
5569
- children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
5574
+ children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
5570
5575
  }
5571
5576
  ),
5572
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5577
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5573
5578
  Stack,
5574
5579
  {
5575
5580
  horizontal: true,
@@ -5582,18 +5587,18 @@ function MobileDataGridCard({
5582
5587
  }
5583
5588
  )
5584
5589
  ] }),
5585
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
5590
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
5586
5591
  var _a2, _b;
5587
5592
  return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
5588
5593
  }).map(
5589
5594
  (column, index) => {
5590
5595
  var _a2, _b;
5591
- return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5596
+ return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5592
5597
  "div",
5593
5598
  {
5594
5599
  className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
5595
5600
  children: [
5596
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5601
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5597
5602
  Paragraph,
5598
5603
  {
5599
5604
  color: "text-secondary-normal",
@@ -5605,7 +5610,7 @@ function MobileDataGridCard({
5605
5610
  }
5606
5611
  ),
5607
5612
  " ",
5608
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5613
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5609
5614
  column.meta.mobileCell,
5610
5615
  {
5611
5616
  column,
@@ -5616,7 +5621,7 @@ function MobileDataGridCard({
5616
5621
  ]
5617
5622
  },
5618
5623
  `${column.id}-${index}`
5619
- ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5624
+ ) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5620
5625
  MobileDataGridColumn,
5621
5626
  {
5622
5627
  column,
@@ -5627,14 +5632,14 @@ function MobileDataGridCard({
5627
5632
  }
5628
5633
  ) })
5629
5634
  ] }),
5630
- renderChevron && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "keyboard_arrow_down" }) })
5635
+ renderChevron && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { name: "keyboard_arrow_down" }) })
5631
5636
  ]
5632
5637
  }
5633
5638
  );
5634
5639
  }
5635
5640
 
5636
5641
  // src/components/MobileDataGrid/ColumnList.tsx
5637
- var import_jsx_runtime60 = require("react/jsx-runtime");
5642
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5638
5643
  function ColumnList(props) {
5639
5644
  const {
5640
5645
  withBorder,
@@ -5646,19 +5651,19 @@ function ColumnList(props) {
5646
5651
  } = props;
5647
5652
  const ctx = useGridContext();
5648
5653
  const { id, testid, data, getId, selectedRowIds } = ctx;
5649
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5654
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5650
5655
  "div",
5651
5656
  {
5652
- className: (0, import_clsx37.default)(
5657
+ className: (0, import_clsx38.default)(
5653
5658
  "flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
5654
5659
  !!Footer && "mb-20"
5655
5660
  ),
5656
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5661
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5657
5662
  "ul",
5658
5663
  {
5659
5664
  id,
5660
5665
  "data-testid": testid,
5661
- className: (0, import_clsx37.default)(
5666
+ className: (0, import_clsx38.default)(
5662
5667
  "rounded absolute top-0 left-0 w-full flex-1",
5663
5668
  "divide-y divide-border-primary-normal",
5664
5669
  withBorder && "border border-border-primary-normal"
@@ -5666,7 +5671,7 @@ function ColumnList(props) {
5666
5671
  children: [
5667
5672
  data.map((item) => {
5668
5673
  const id2 = getId(item);
5669
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5674
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5670
5675
  MobileDataGridCard,
5671
5676
  {
5672
5677
  data: item,
@@ -5679,7 +5684,7 @@ function ColumnList(props) {
5679
5684
  id2
5680
5685
  );
5681
5686
  }),
5682
- !!Footer && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Footer, __spreadValues({}, ctx)) })
5687
+ !!Footer && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Footer, __spreadValues({}, ctx)) })
5683
5688
  ]
5684
5689
  }
5685
5690
  )
@@ -5688,7 +5693,7 @@ function ColumnList(props) {
5688
5693
  }
5689
5694
 
5690
5695
  // src/components/MobileDataGrid/index.tsx
5691
- var import_jsx_runtime61 = require("react/jsx-runtime");
5696
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5692
5697
  function MobileDataGrid(props) {
5693
5698
  const {
5694
5699
  columns,
@@ -5710,7 +5715,7 @@ function MobileDataGrid(props) {
5710
5715
  rowActions,
5711
5716
  rounded
5712
5717
  } = props;
5713
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5718
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5714
5719
  GridContextProvider,
5715
5720
  {
5716
5721
  initialColumns: columns,
@@ -5722,7 +5727,7 @@ function MobileDataGrid(props) {
5722
5727
  numberOfColumnsToShow,
5723
5728
  primaryKey,
5724
5729
  children: [
5725
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5730
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
5726
5731
  Stack,
5727
5732
  {
5728
5733
  height: "full",
@@ -5730,7 +5735,7 @@ function MobileDataGrid(props) {
5730
5735
  overflowX: "hidden",
5731
5736
  overflowY: "hidden",
5732
5737
  children: [
5733
- !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5738
+ !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5734
5739
  MobileDataGridHeader,
5735
5740
  {
5736
5741
  header,
@@ -5738,7 +5743,7 @@ function MobileDataGrid(props) {
5738
5743
  enableRowSelection
5739
5744
  }
5740
5745
  ),
5741
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5746
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5742
5747
  ColumnList,
5743
5748
  {
5744
5749
  withBorder,
@@ -5752,7 +5757,7 @@ function MobileDataGrid(props) {
5752
5757
  ]
5753
5758
  }
5754
5759
  ),
5755
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(RowDetailModalProvider, {})
5760
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(RowDetailModalProvider, {})
5756
5761
  ]
5757
5762
  }
5758
5763
  );
@@ -931,6 +931,9 @@
931
931
  .min-w-36 {
932
932
  min-width: calc(var(--spacing) * 36);
933
933
  }
934
+ .min-w-\[2px\] {
935
+ min-width: 2px;
936
+ }
934
937
  .min-w-full {
935
938
  min-width: 100%;
936
939
  }