@dmsi/wedgekit-react 0.0.850 → 0.0.852

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 (54) hide show
  1. package/dist/chunk-SZ47M32R.js +13 -0
  2. package/dist/components/CalendarRange.cjs +29 -25
  3. package/dist/components/CalendarRange.css +17 -0
  4. package/dist/components/CalendarRange.js +5 -4
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +17 -0
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -4
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +17 -0
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -4
  11. package/dist/components/DataGrid/PinnedColumns.cjs +24 -20
  12. package/dist/components/DataGrid/PinnedColumns.css +17 -0
  13. package/dist/components/DataGrid/PinnedColumns.js +5 -4
  14. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
  15. package/dist/components/DataGrid/TableBody/LoadingCell.css +17 -0
  16. package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -4
  17. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +11 -7
  18. package/dist/components/DataGrid/TableBody/TableBodyRow.css +17 -0
  19. package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -4
  20. package/dist/components/DataGrid/TableBody/index.cjs +24 -20
  21. package/dist/components/DataGrid/TableBody/index.css +17 -0
  22. package/dist/components/DataGrid/TableBody/index.js +5 -4
  23. package/dist/components/DataGrid/index.cjs +84 -80
  24. package/dist/components/DataGrid/index.css +17 -0
  25. package/dist/components/DataGrid/index.js +5 -4
  26. package/dist/components/DataGrid/utils.cjs +7 -3
  27. package/dist/components/DataGrid/utils.css +17 -0
  28. package/dist/components/DataGrid/utils.js +5 -4
  29. package/dist/components/DateInput.cjs +35 -31
  30. package/dist/components/DateInput.css +17 -0
  31. package/dist/components/DateInput.js +5 -4
  32. package/dist/components/DateRangeInput.cjs +35 -31
  33. package/dist/components/DateRangeInput.css +17 -0
  34. package/dist/components/DateRangeInput.js +5 -4
  35. package/dist/components/EmblaCarousel/index.cjs +47 -0
  36. package/dist/components/EmblaCarousel/index.js +9 -0
  37. package/dist/components/MobileDataGrid/ColumnList.css +17 -0
  38. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
  39. package/dist/components/MobileDataGrid/ColumnSelector/index.css +17 -0
  40. package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -4
  41. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
  42. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +17 -0
  43. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -4
  44. package/dist/components/MobileDataGrid/index.cjs +93 -89
  45. package/dist/components/MobileDataGrid/index.css +17 -0
  46. package/dist/components/MobileDataGrid/index.js +5 -4
  47. package/dist/components/ProductImagePreview/index.js +2 -2
  48. package/dist/components/index.cjs +10 -0
  49. package/dist/components/index.css +17 -0
  50. package/dist/components/index.js +8 -4
  51. package/dist/index.css +17 -0
  52. package/package.json +3 -1
  53. package/dist/{chunk-GQDUOL5Y.js → chunk-C5DKGJ4E.js} +3 -3
  54. /package/dist/{chunk-UIF3AIAT.js → chunk-ILHEM6BK.js} +0 -0
@@ -5842,8 +5842,12 @@ var import_clsx35 = __toESM(require("clsx"), 1);
5842
5842
  var import_react36 = require("react");
5843
5843
  var import_jsx_runtime52 = require("react/jsx-runtime");
5844
5844
 
5845
- // src/components/MobileDataGrid/ColumnSelector/index.tsx
5845
+ // src/components/EmblaCarousel/index.tsx
5846
+ var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
5846
5847
  var import_jsx_runtime53 = require("react/jsx-runtime");
5848
+
5849
+ // src/components/MobileDataGrid/ColumnSelector/index.tsx
5850
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5847
5851
  function ColumnSelector() {
5848
5852
  const context = useGridContext();
5849
5853
  const ref = (0, import_react37.useRef)(null);
@@ -5864,7 +5868,7 @@ function ColumnSelector() {
5864
5868
  },
5865
5869
  [dispatch]
5866
5870
  );
5867
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5871
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5868
5872
  "div",
5869
5873
  {
5870
5874
  id: id ? `${id}-column-selector` : void 0,
@@ -5872,7 +5876,7 @@ function ColumnSelector() {
5872
5876
  className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
5873
5877
  ref,
5874
5878
  children: [
5875
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5879
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5876
5880
  Button,
5877
5881
  {
5878
5882
  id: id ? `${id}-button` : void 0,
@@ -5881,10 +5885,10 @@ function ColumnSelector() {
5881
5885
  variant: "navigation",
5882
5886
  iconOnly: true,
5883
5887
  size: 24,
5884
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "tune" })
5888
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "tune" })
5885
5889
  }
5886
5890
  ),
5887
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5891
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5888
5892
  Menu,
5889
5893
  {
5890
5894
  id: id ? `${id}-menu` : void 0,
@@ -5895,7 +5899,7 @@ function ColumnSelector() {
5895
5899
  setShow,
5896
5900
  calculateMinMaxHeight: true,
5897
5901
  children: [
5898
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5902
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5899
5903
  Button,
5900
5904
  {
5901
5905
  id: id ? `${id}-reset-button` : void 0,
@@ -5913,11 +5917,11 @@ function ColumnSelector() {
5913
5917
  return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
5914
5918
  }).map((column) => {
5915
5919
  var _a, _b, _c;
5916
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5920
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5917
5921
  MenuOption,
5918
5922
  {
5919
5923
  testid: testid ? `${testid}-option-${column.id}` : void 0,
5920
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5924
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5921
5925
  Checkbox,
5922
5926
  {
5923
5927
  id: id ? `${id}-checkbox-${column.id}` : void 0,
@@ -5947,7 +5951,7 @@ function ColumnSelector() {
5947
5951
  }
5948
5952
 
5949
5953
  // src/components/MobileDataGrid/MobileDataGridHeader.tsx
5950
- var import_jsx_runtime54 = require("react/jsx-runtime");
5954
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5951
5955
  function MobileDataGridHeader({
5952
5956
  header: Header,
5953
5957
  enableColumnSelector,
@@ -5965,15 +5969,15 @@ function MobileDataGridHeader({
5965
5969
  handleRowSelectAll
5966
5970
  } = ctx;
5967
5971
  if (typeof Header === "undefined" && !primaryKey) return null;
5968
- if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Header, __spreadValues({}, ctx));
5972
+ if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Header, __spreadValues({}, ctx));
5969
5973
  if (typeof Header === "string" || primaryKey)
5970
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5974
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5971
5975
  "div",
5972
5976
  {
5973
5977
  id: id ? `${id}-header` : void 0,
5974
5978
  "data-testid": testid ? `${testid}-header` : void 0,
5975
5979
  className: "sticky top-0",
5976
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5980
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5977
5981
  Stack,
5978
5982
  {
5979
5983
  horizontal: true,
@@ -5983,7 +5987,7 @@ function MobileDataGridHeader({
5983
5987
  backgroundColor: "background-primary-normal",
5984
5988
  style: { borderTopRightRadius: 4, borderTopLeftRadius: 4 },
5985
5989
  children: [
5986
- 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)(
5990
+ 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)(
5987
5991
  Checkbox,
5988
5992
  {
5989
5993
  id: id ? `${id}-select-all-checkbox` : void 0,
@@ -5993,7 +5997,7 @@ function MobileDataGridHeader({
5993
5997
  onChange: handleRowSelectAll
5994
5998
  }
5995
5999
  ) }),
5996
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6000
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5997
6001
  Stack,
5998
6002
  {
5999
6003
  horizontal: true,
@@ -6001,10 +6005,10 @@ function MobileDataGridHeader({
6001
6005
  items: "center",
6002
6006
  sizing: "component",
6003
6007
  padding: true,
6004
- 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() })
6008
+ 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() })
6005
6009
  }
6006
6010
  ),
6007
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ColumnSelector, {})
6011
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ColumnSelector, {})
6008
6012
  ]
6009
6013
  }
6010
6014
  ) })
@@ -6043,7 +6047,7 @@ function dataGridReducer(state, action) {
6043
6047
  }
6044
6048
 
6045
6049
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
6046
- var import_jsx_runtime55 = require("react/jsx-runtime");
6050
+ var import_jsx_runtime56 = require("react/jsx-runtime");
6047
6051
  function GridContextProvider(props) {
6048
6052
  const {
6049
6053
  initialColumns,
@@ -6114,7 +6118,7 @@ function GridContextProvider(props) {
6114
6118
  return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
6115
6119
  }).slice(0, effectiveLimit);
6116
6120
  }, [columns, numberOfColumnsToShow, primaryKey]);
6117
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6121
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6118
6122
  GridContext.Provider,
6119
6123
  {
6120
6124
  value: {
@@ -6147,7 +6151,7 @@ var import_react40 = require("react");
6147
6151
 
6148
6152
  // src/components/ModalHeader.tsx
6149
6153
  var import_clsx36 = __toESM(require("clsx"), 1);
6150
- var import_jsx_runtime56 = require("react/jsx-runtime");
6154
+ var import_jsx_runtime57 = require("react/jsx-runtime");
6151
6155
  var ModalHeader = ({
6152
6156
  title,
6153
6157
  hideCloseIcon,
@@ -6161,7 +6165,7 @@ var ModalHeader = ({
6161
6165
  headerIconClassname
6162
6166
  }) => {
6163
6167
  const Title = TitleComponent || Heading2;
6164
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
6168
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
6165
6169
  "div",
6166
6170
  {
6167
6171
  id,
@@ -6176,9 +6180,9 @@ var ModalHeader = ({
6176
6180
  headerClassname
6177
6181
  ),
6178
6182
  children: [
6179
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: (0, import_clsx36.default)("flex items-center flex-1", layoutGroupGap), children: [
6183
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: (0, import_clsx36.default)("flex items-center flex-1", layoutGroupGap), children: [
6180
6184
  headerIcon,
6181
- title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6185
+ title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6182
6186
  Title,
6183
6187
  {
6184
6188
  id: id ? `${id}-title` : void 0,
@@ -6188,7 +6192,7 @@ var ModalHeader = ({
6188
6192
  }
6189
6193
  )
6190
6194
  ] }),
6191
- !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6195
+ !hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6192
6196
  Button,
6193
6197
  {
6194
6198
  id: id ? `${id}-close-button` : void 0,
@@ -6196,14 +6200,14 @@ var ModalHeader = ({
6196
6200
  iconOnly: true,
6197
6201
  variant: "tertiary",
6198
6202
  onClick: onClose,
6199
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
6203
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6200
6204
  "span",
6201
6205
  {
6202
6206
  className: (0, import_clsx36.default)(
6203
6207
  "contents",
6204
6208
  headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
6205
6209
  ),
6206
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "close", size: 24 })
6210
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "close", size: 24 })
6207
6211
  }
6208
6212
  )
6209
6213
  }
@@ -6216,14 +6220,14 @@ ModalHeader.displayName = "ModalHeader";
6216
6220
 
6217
6221
  // src/components/ModalContent.tsx
6218
6222
  var import_clsx37 = __toESM(require("clsx"), 1);
6219
- var import_jsx_runtime57 = require("react/jsx-runtime");
6223
+ var import_jsx_runtime58 = require("react/jsx-runtime");
6220
6224
  function ModalContent({
6221
6225
  fixedHeightScrolling,
6222
6226
  children,
6223
6227
  id,
6224
6228
  testid
6225
6229
  }) {
6226
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6230
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6227
6231
  "div",
6228
6232
  {
6229
6233
  id,
@@ -6241,7 +6245,7 @@ ModalContent.displayName = "ModalContent";
6241
6245
 
6242
6246
  // src/components/ModalButtons.tsx
6243
6247
  var import_clsx38 = __toESM(require("clsx"), 1);
6244
- var import_jsx_runtime58 = require("react/jsx-runtime");
6248
+ var import_jsx_runtime59 = require("react/jsx-runtime");
6245
6249
  var ModalButtons = ({
6246
6250
  onClose,
6247
6251
  onContinue,
@@ -6250,7 +6254,7 @@ var ModalButtons = ({
6250
6254
  testid,
6251
6255
  mobileButtonStack = false
6252
6256
  }) => {
6253
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6257
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6254
6258
  "div",
6255
6259
  {
6256
6260
  id,
@@ -6261,26 +6265,26 @@ var ModalButtons = ({
6261
6265
  layoutPaddding,
6262
6266
  layoutGroupGap
6263
6267
  ),
6264
- children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
6265
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6268
+ children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
6269
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6266
6270
  Button,
6267
6271
  {
6268
6272
  id: id ? `${id}-close-button` : void 0,
6269
6273
  testid: testid ? `${testid}-close-button` : void 0,
6270
6274
  variant: "secondary",
6271
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "close", size: 24 }),
6275
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "close", size: 24 }),
6272
6276
  onClick: onClose,
6273
6277
  className: "max-sm:w-full",
6274
6278
  children: "Close"
6275
6279
  }
6276
6280
  ),
6277
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
6281
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6278
6282
  Button,
6279
6283
  {
6280
6284
  id: id ? `${id}-continue-button` : void 0,
6281
6285
  testid: testid ? `${testid}-continue-button` : void 0,
6282
6286
  variant: "primary",
6283
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "check", size: 24 }),
6287
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "check", size: 24 }),
6284
6288
  className: "max-sm:w-full",
6285
6289
  onClick: onContinue,
6286
6290
  children: "Continue"
@@ -6294,7 +6298,7 @@ ModalButtons.displayName = "ModalButtons";
6294
6298
 
6295
6299
  // src/components/ModalScrim.tsx
6296
6300
  var import_clsx39 = __toESM(require("clsx"), 1);
6297
- var import_jsx_runtime59 = require("react/jsx-runtime");
6301
+ var import_jsx_runtime60 = require("react/jsx-runtime");
6298
6302
  var ModalScrim = ({
6299
6303
  show = false,
6300
6304
  size = "small",
@@ -6304,7 +6308,7 @@ var ModalScrim = ({
6304
6308
  id,
6305
6309
  testid
6306
6310
  }) => {
6307
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
6311
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6308
6312
  "div",
6309
6313
  {
6310
6314
  id,
@@ -6340,7 +6344,7 @@ var useMounted = () => {
6340
6344
  };
6341
6345
 
6342
6346
  // src/components/Modal.tsx
6343
- var import_jsx_runtime60 = require("react/jsx-runtime");
6347
+ var import_jsx_runtime61 = require("react/jsx-runtime");
6344
6348
  var fadeInScale = (element, duration = 300) => element.animate(
6345
6349
  [
6346
6350
  { opacity: 0, transform: "scale(0.95)" },
@@ -6515,7 +6519,7 @@ var Modal = ({
6515
6519
  return null;
6516
6520
  }
6517
6521
  return (0, import_react_dom4.createPortal)(
6518
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6522
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6519
6523
  ModalScrim,
6520
6524
  {
6521
6525
  id: id ? `${id}-scrim` : void 0,
@@ -6524,7 +6528,7 @@ var Modal = ({
6524
6528
  ref: bgRef,
6525
6529
  show: open,
6526
6530
  onClick: backgroundClickHandler,
6527
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6531
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
6528
6532
  "div",
6529
6533
  {
6530
6534
  id,
@@ -6539,7 +6543,7 @@ var Modal = ({
6539
6543
  ),
6540
6544
  onClick: (e) => e.stopPropagation(),
6541
6545
  children: [
6542
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6546
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6543
6547
  ModalHeader,
6544
6548
  {
6545
6549
  id: id ? `${id}-header` : void 0,
@@ -6554,7 +6558,7 @@ var Modal = ({
6554
6558
  titleAs: TitleComponent
6555
6559
  }
6556
6560
  ),
6557
- children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6561
+ children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6558
6562
  ModalContent,
6559
6563
  {
6560
6564
  id: id ? `${id}-content` : void 0,
@@ -6563,7 +6567,7 @@ var Modal = ({
6563
6567
  children
6564
6568
  }
6565
6569
  ) : children,
6566
- showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6570
+ showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6567
6571
  ModalButtons,
6568
6572
  {
6569
6573
  id: id ? `${id}-buttons` : void 0,
@@ -6585,7 +6589,7 @@ var Modal = ({
6585
6589
  Modal.displayName = "Modal";
6586
6590
 
6587
6591
  // src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
6588
- var import_jsx_runtime61 = require("react/jsx-runtime");
6592
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6589
6593
  function MobileDataGridColumn(props) {
6590
6594
  var _a, _b;
6591
6595
  const { column, data } = props;
@@ -6596,8 +6600,8 @@ function MobileDataGridColumn(props) {
6596
6600
  value = formatDate(value);
6597
6601
  }
6598
6602
  }
6599
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
6600
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6603
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "grid grid-cols-2 gap-2 flex-1", children: [
6604
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6601
6605
  (_b = column.header) == null ? void 0 : _b.toString(),
6602
6606
  ":"
6603
6607
  ] }),
@@ -6607,28 +6611,28 @@ function MobileDataGridColumn(props) {
6607
6611
  }
6608
6612
 
6609
6613
  // src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
6610
- var import_jsx_runtime62 = require("react/jsx-runtime");
6614
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6611
6615
  function ModalContent2() {
6612
6616
  const context = useGridContext();
6613
6617
  const { columns, currentRow } = context;
6614
6618
  if (!currentRow) return null;
6615
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
6619
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
6616
6620
  var _a;
6617
6621
  return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
6618
6622
  }).map(
6619
6623
  (column, index) => {
6620
6624
  var _a, _b;
6621
- return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
6625
+ return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6622
6626
  "div",
6623
6627
  {
6624
6628
  className: "grid grid-cols-2 gap-2 items-center flex-1",
6625
6629
  children: [
6626
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6630
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
6627
6631
  (_b = column.header) == null ? void 0 : _b.toString(),
6628
6632
  ":"
6629
6633
  ] }),
6630
6634
  " ",
6631
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6635
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6632
6636
  column.meta.mobileCell,
6633
6637
  {
6634
6638
  column,
@@ -6639,7 +6643,7 @@ function ModalContent2() {
6639
6643
  ]
6640
6644
  },
6641
6645
  `${column.id}-${index}`
6642
- ) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6646
+ ) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6643
6647
  MobileDataGridColumn,
6644
6648
  {
6645
6649
  column,
@@ -6652,7 +6656,7 @@ function ModalContent2() {
6652
6656
  }
6653
6657
 
6654
6658
  // src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
6655
- var import_jsx_runtime63 = require("react/jsx-runtime");
6659
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6656
6660
  function RowDetailModalProvider() {
6657
6661
  var _a;
6658
6662
  const context = useGridContext();
@@ -6664,7 +6668,7 @@ function RowDetailModalProvider() {
6664
6668
  primaryKey,
6665
6669
  closeRowDetail
6666
6670
  } = context;
6667
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6671
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6668
6672
  Modal,
6669
6673
  {
6670
6674
  fixedHeightScrolling: true,
@@ -6673,7 +6677,7 @@ function RowDetailModalProvider() {
6673
6677
  hideCloseIcon: true,
6674
6678
  size: "medium",
6675
6679
  className: "!p-0",
6676
- headerIcon: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
6680
+ headerIcon: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6677
6681
  Stack,
6678
6682
  {
6679
6683
  horizontal: true,
@@ -6682,8 +6686,8 @@ function RowDetailModalProvider() {
6682
6686
  justify: "between",
6683
6687
  width: "full",
6684
6688
  children: [
6685
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
6686
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
6689
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
6690
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6687
6691
  Button,
6688
6692
  {
6689
6693
  id: id ? `${id}-close-button` : void 0,
@@ -6691,15 +6695,15 @@ function RowDetailModalProvider() {
6691
6695
  iconOnly: true,
6692
6696
  variant: "tertiary",
6693
6697
  onClick: closeRowDetail,
6694
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "x", size: 24 }) })
6698
+ 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 }) })
6695
6699
  }
6696
6700
  )
6697
6701
  ]
6698
6702
  }
6699
6703
  ),
6700
- customActions: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
6704
+ customActions: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
6701
6705
  showButtons: true,
6702
- 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, {}) })
6706
+ 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, {}) })
6703
6707
  }
6704
6708
  );
6705
6709
  }
@@ -6709,7 +6713,7 @@ var import_clsx42 = __toESM(require("clsx"), 1);
6709
6713
 
6710
6714
  // src/components/MobileDataGrid/MobileDataGridCard/index.tsx
6711
6715
  var import_clsx41 = __toESM(require("clsx"), 1);
6712
- var import_jsx_runtime64 = require("react/jsx-runtime");
6716
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6713
6717
  function MobileDataGridCard({
6714
6718
  renderLink,
6715
6719
  renderChevron = true,
@@ -6721,7 +6725,7 @@ function MobileDataGridCard({
6721
6725
  var _a;
6722
6726
  const context = useGridContext();
6723
6727
  const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
6724
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6728
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6725
6729
  "li",
6726
6730
  {
6727
6731
  id: id ? `${id}-card-${getId(data)}` : void 0,
@@ -6736,9 +6740,9 @@ function MobileDataGridCard({
6736
6740
  ),
6737
6741
  onClick: () => openRowDetail(data),
6738
6742
  children: [
6739
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Stack, { sizing: "component", children: [
6740
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
6741
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6743
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Stack, { sizing: "component", children: [
6744
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
6745
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6742
6746
  Stack,
6743
6747
  {
6744
6748
  sizing: "component",
@@ -6746,7 +6750,7 @@ function MobileDataGridCard({
6746
6750
  width: "fit",
6747
6751
  style: { paddingLeft: 0, paddingRight: 8 },
6748
6752
  onClick: (e) => e.stopPropagation(),
6749
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6753
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6750
6754
  Checkbox,
6751
6755
  {
6752
6756
  id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
@@ -6757,17 +6761,17 @@ function MobileDataGridCard({
6757
6761
  )
6758
6762
  }
6759
6763
  ),
6760
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6764
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6761
6765
  Stack,
6762
6766
  {
6763
6767
  sizing: "component",
6764
6768
  padding: true,
6765
6769
  onClick: (e) => e.stopPropagation(),
6766
6770
  style: { paddingInline: 0 },
6767
- children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
6771
+ children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
6768
6772
  }
6769
6773
  ),
6770
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6774
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6771
6775
  Stack,
6772
6776
  {
6773
6777
  horizontal: true,
@@ -6780,18 +6784,18 @@ function MobileDataGridCard({
6780
6784
  }
6781
6785
  )
6782
6786
  ] }),
6783
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
6787
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
6784
6788
  var _a2, _b;
6785
6789
  return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
6786
6790
  }).map(
6787
6791
  (column, index) => {
6788
6792
  var _a2, _b;
6789
- return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6793
+ return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6790
6794
  "div",
6791
6795
  {
6792
6796
  className: "grid grid-cols-2 gap-2 items-center flex-1",
6793
6797
  children: [
6794
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
6798
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6795
6799
  Paragraph,
6796
6800
  {
6797
6801
  color: "text-secondary-normal",
@@ -6803,7 +6807,7 @@ function MobileDataGridCard({
6803
6807
  }
6804
6808
  ),
6805
6809
  " ",
6806
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6810
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6807
6811
  column.meta.mobileCell,
6808
6812
  {
6809
6813
  column,
@@ -6814,7 +6818,7 @@ function MobileDataGridCard({
6814
6818
  ]
6815
6819
  },
6816
6820
  `${column.id}-${index}`
6817
- ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6821
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6818
6822
  MobileDataGridColumn,
6819
6823
  {
6820
6824
  column,
@@ -6825,14 +6829,14 @@ function MobileDataGridCard({
6825
6829
  }
6826
6830
  ) })
6827
6831
  ] }),
6828
- 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" }) }) })
6832
+ 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" }) }) })
6829
6833
  ]
6830
6834
  }
6831
6835
  );
6832
6836
  }
6833
6837
 
6834
6838
  // src/components/MobileDataGrid/ColumnList.tsx
6835
- var import_jsx_runtime65 = require("react/jsx-runtime");
6839
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6836
6840
  function ColumnList(props) {
6837
6841
  var _a, _b;
6838
6842
  const {
@@ -6846,14 +6850,14 @@ function ColumnList(props) {
6846
6850
  const ctx = useGridContext();
6847
6851
  const { id, testid, data, getId, selectedRowIds } = ctx;
6848
6852
  const empty = data.length === 0;
6849
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6853
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6850
6854
  "div",
6851
6855
  {
6852
6856
  className: (0, import_clsx42.default)(
6853
6857
  "flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
6854
6858
  !!Footer && "mb-20"
6855
6859
  ),
6856
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6860
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6857
6861
  "ul",
6858
6862
  {
6859
6863
  id,
@@ -6865,7 +6869,7 @@ function ColumnList(props) {
6865
6869
  withBorder && "border border-border-primary-normal"
6866
6870
  ),
6867
6871
  children: [
6868
- empty ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
6872
+ empty ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6869
6873
  "div",
6870
6874
  {
6871
6875
  className: (0, import_clsx42.default)(
@@ -6875,7 +6879,7 @@ function ColumnList(props) {
6875
6879
  ),
6876
6880
  "data-testid": testid ? `${testid}-no-results` : void 0,
6877
6881
  children: [
6878
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6882
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6879
6883
  "img",
6880
6884
  {
6881
6885
  src: (_b = (_a = no_results_image_default) == null ? void 0 : _a.src) != null ? _b : no_results_image_default,
@@ -6885,13 +6889,13 @@ function ColumnList(props) {
6885
6889
  height: 120
6886
6890
  }
6887
6891
  ),
6888
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Subheader, { color: "text-secondary-normal", children: "No Results" }),
6889
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
6892
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Subheader, { color: "text-secondary-normal", children: "No Results" }),
6893
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
6890
6894
  ]
6891
6895
  }
6892
6896
  ) : data.map((item) => {
6893
6897
  const id2 = getId(item);
6894
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6898
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6895
6899
  MobileDataGridCard,
6896
6900
  {
6897
6901
  data: item,
@@ -6904,7 +6908,7 @@ function ColumnList(props) {
6904
6908
  id2
6905
6909
  );
6906
6910
  }),
6907
- !!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)) })
6911
+ !!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)) })
6908
6912
  ]
6909
6913
  }
6910
6914
  )
@@ -6913,7 +6917,7 @@ function ColumnList(props) {
6913
6917
  }
6914
6918
 
6915
6919
  // src/components/MobileDataGrid/index.tsx
6916
- var import_jsx_runtime66 = require("react/jsx-runtime");
6920
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6917
6921
  function MobileDataGrid(props) {
6918
6922
  const {
6919
6923
  columns,
@@ -6935,7 +6939,7 @@ function MobileDataGrid(props) {
6935
6939
  rowActions,
6936
6940
  rounded
6937
6941
  } = props;
6938
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6942
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6939
6943
  GridContextProvider,
6940
6944
  {
6941
6945
  initialColumns: columns,
@@ -6947,7 +6951,7 @@ function MobileDataGrid(props) {
6947
6951
  numberOfColumnsToShow,
6948
6952
  primaryKey,
6949
6953
  children: [
6950
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
6954
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
6951
6955
  Stack,
6952
6956
  {
6953
6957
  height: "full",
@@ -6955,7 +6959,7 @@ function MobileDataGrid(props) {
6955
6959
  overflowX: "hidden",
6956
6960
  overflowY: "hidden",
6957
6961
  children: [
6958
- !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6962
+ !hideHeader && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6959
6963
  MobileDataGridHeader,
6960
6964
  {
6961
6965
  header,
@@ -6963,7 +6967,7 @@ function MobileDataGrid(props) {
6963
6967
  enableRowSelection
6964
6968
  }
6965
6969
  ),
6966
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6970
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6967
6971
  ColumnList,
6968
6972
  {
6969
6973
  withBorder,
@@ -6977,7 +6981,7 @@ function MobileDataGrid(props) {
6977
6981
  ]
6978
6982
  }
6979
6983
  ),
6980
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RowDetailModalProvider, {})
6984
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(RowDetailModalProvider, {})
6981
6985
  ]
6982
6986
  }
6983
6987
  );