@dmsi/wedgekit-react 0.0.415 → 0.0.418

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 (125) hide show
  1. package/dist/chunk-3HBYDOYE.js +114 -0
  2. package/dist/{chunk-JIMJIJOF.js → chunk-5TGP5EFM.js} +2 -2
  3. package/dist/{chunk-2HMCS25C.js → chunk-6LHBY2IH.js} +1 -1
  4. package/dist/{chunk-6I5LZ2ZC.js → chunk-7AXHAWJX.js} +3 -3
  5. package/dist/{chunk-MQX7GFLX.js → chunk-CANJ2YPW.js} +24 -6
  6. package/dist/{chunk-QQ5G773N.js → chunk-DCLNAUC4.js} +1 -1
  7. package/dist/{chunk-GB4ZTUQV.js → chunk-DTW7JCBR.js} +36 -0
  8. package/dist/chunk-ESCNCQGI.js +9 -0
  9. package/dist/chunk-IFHMGICR.js +66 -0
  10. package/dist/{chunk-ZHZIIVJN.js → chunk-IMOIZFJZ.js} +5 -5
  11. package/dist/chunk-KBJZUVLM.js +65 -0
  12. package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
  13. package/dist/{chunk-44TDIHUP.js → chunk-P3MIP2FD.js} +1 -1
  14. package/dist/{chunk-7ULLUUVJ.js → chunk-PQWWVBSR.js} +1 -1
  15. package/dist/{chunk-ERW5DEIO.js → chunk-RQLWSLVE.js} +1 -1
  16. package/dist/{chunk-BK7SPR6Y.js → chunk-TQIKP534.js} +4 -4
  17. package/dist/chunk-TYAQWVIM.js +159 -0
  18. package/dist/{chunk-KZZKQLKF.js → chunk-W55J2KJZ.js} +1 -1
  19. package/dist/chunk-Y2GK27RX.js +79 -0
  20. package/dist/components/Accordion.cjs +74 -2
  21. package/dist/components/Accordion.js +3 -3
  22. package/dist/components/CalendarRange.cjs +231 -53
  23. package/dist/components/CalendarRange.css +169 -65
  24. package/dist/components/CalendarRange.js +24 -16
  25. package/dist/components/Card.cjs +38 -2
  26. package/dist/components/Card.js +1 -1
  27. package/dist/components/CompactImagesPreview.cjs +59 -5
  28. package/dist/components/CompactImagesPreview.js +2 -2
  29. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +189 -11
  30. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +169 -65
  31. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +24 -16
  32. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +198 -20
  33. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +169 -65
  34. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +24 -16
  35. package/dist/components/DataGrid/PinnedColumns.cjs +214 -36
  36. package/dist/components/DataGrid/PinnedColumns.css +169 -65
  37. package/dist/components/DataGrid/PinnedColumns.js +24 -16
  38. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +190 -12
  39. package/dist/components/DataGrid/TableBody/LoadingCell.css +169 -65
  40. package/dist/components/DataGrid/TableBody/LoadingCell.js +24 -16
  41. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +196 -18
  42. package/dist/components/DataGrid/TableBody/TableBodyRow.css +169 -65
  43. package/dist/components/DataGrid/TableBody/TableBodyRow.js +24 -16
  44. package/dist/components/DataGrid/TableBody/index.cjs +211 -33
  45. package/dist/components/DataGrid/TableBody/index.css +169 -65
  46. package/dist/components/DataGrid/TableBody/index.js +24 -16
  47. package/dist/components/DataGrid/index.cjs +300 -122
  48. package/dist/components/DataGrid/index.css +169 -65
  49. package/dist/components/DataGrid/index.js +24 -16
  50. package/dist/components/DataGrid/utils.cjs +190 -12
  51. package/dist/components/DataGrid/utils.css +169 -65
  52. package/dist/components/DataGrid/utils.js +24 -16
  53. package/dist/components/DateInput.cjs +250 -72
  54. package/dist/components/DateInput.css +169 -65
  55. package/dist/components/DateInput.js +24 -16
  56. package/dist/components/DateRangeInput.cjs +250 -72
  57. package/dist/components/DateRangeInput.css +169 -65
  58. package/dist/components/DateRangeInput.js +24 -16
  59. package/dist/components/Grid.cjs +81 -76
  60. package/dist/components/Grid.js +1 -1
  61. package/dist/components/ListGroup.cjs +553 -0
  62. package/dist/components/ListGroup.js +11 -0
  63. package/dist/components/MobileDataGrid/ColumnList.cjs +36 -0
  64. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  65. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +197 -19
  66. package/dist/components/MobileDataGrid/ColumnSelector/index.css +169 -65
  67. package/dist/components/MobileDataGrid/ColumnSelector/index.js +24 -16
  68. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
  69. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  70. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +241 -27
  71. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +169 -65
  72. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +24 -16
  73. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +36 -0
  74. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  75. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +36 -0
  76. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
  77. package/dist/components/MobileDataGrid/index.cjs +743 -529
  78. package/dist/components/MobileDataGrid/index.css +169 -65
  79. package/dist/components/MobileDataGrid/index.js +24 -16
  80. package/dist/components/Modal.js +2 -2
  81. package/dist/components/Notification.cjs +36 -0
  82. package/dist/components/Notification.js +1 -1
  83. package/dist/components/PDFViewer/PDFElement.cjs +36 -0
  84. package/dist/components/PDFViewer/PDFElement.js +2 -2
  85. package/dist/components/PDFViewer/PDFNavigation.cjs +36 -0
  86. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  87. package/dist/components/PDFViewer/index.cjs +36 -0
  88. package/dist/components/PDFViewer/index.js +8 -111
  89. package/dist/components/Pagination.cjs +427 -0
  90. package/dist/components/Pagination.js +10 -0
  91. package/dist/components/ProductImagePreview/index.cjs +139 -127
  92. package/dist/components/ProductImagePreview/index.js +4 -4
  93. package/dist/components/SideMenuGroup.cjs +36 -0
  94. package/dist/components/SideMenuGroup.js +1 -1
  95. package/dist/components/SideMenuItem.cjs +36 -0
  96. package/dist/components/SideMenuItem.js +1 -1
  97. package/dist/components/SimpleTable.cjs +36 -0
  98. package/dist/components/SimpleTable.js +2 -2
  99. package/dist/components/SkeletonParagraph.js +3 -6
  100. package/dist/components/Stack.cjs +36 -0
  101. package/dist/components/Stack.js +1 -1
  102. package/dist/components/Swatch.cjs +36 -0
  103. package/dist/components/Swatch.js +1 -1
  104. package/dist/components/Time.cjs +36 -0
  105. package/dist/components/Time.js +1 -1
  106. package/dist/components/Tooltip.cjs +1 -1
  107. package/dist/components/Tooltip.js +1 -1
  108. package/dist/components/Upload.cjs +36 -0
  109. package/dist/components/Upload.js +1 -1
  110. package/dist/components/index.cjs +694 -131
  111. package/dist/components/index.css +169 -65
  112. package/dist/components/index.js +37 -17
  113. package/dist/index.css +169 -65
  114. package/package.json +1 -1
  115. package/src/components/Card.tsx +60 -2
  116. package/src/components/CompactImagesPreview.tsx +54 -30
  117. package/src/components/Grid.tsx +59 -91
  118. package/src/components/ListGroup.tsx +82 -0
  119. package/src/components/Pagination.tsx +182 -0
  120. package/src/components/Stack.tsx +76 -0
  121. package/src/components/Tooltip.tsx +4 -3
  122. package/src/components/index.ts +4 -0
  123. package/dist/chunk-ER6RCOH3.js +0 -97
  124. package/dist/chunk-EZCH4PQS.js +0 -29
  125. package/dist/{chunk-D6YCMQPO.js → chunk-SBCFBHNG.js} +3 -3
@@ -3689,7 +3689,7 @@ var Tooltip = ({
3689
3689
  id,
3690
3690
  "data-testid": testid,
3691
3691
  ref,
3692
- className: "relative inline-grid grid-cols-[auto_1fr] items-center",
3692
+ className: "relative inline-grid grid-cols-[auto_1fr] items-center cursor-pointer",
3693
3693
  onMouseEnter: handleMouseEnter,
3694
3694
  onMouseLeave: handleMouseLeave,
3695
3695
  children: [
@@ -4280,12 +4280,11 @@ var import_jsx_runtime38 = require("react/jsx-runtime");
4280
4280
  var import_jsx_runtime39 = require("react/jsx-runtime");
4281
4281
 
4282
4282
  // src/components/Grid.tsx
4283
- var import_react26 = require("react");
4284
4283
  var import_clsx28 = __toESM(require("clsx"), 1);
4285
4284
  var import_jsx_runtime40 = require("react/jsx-runtime");
4286
4285
 
4287
4286
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
4288
- var import_react27 = require("react");
4287
+ var import_react26 = require("react");
4289
4288
 
4290
4289
  // src/components/Spinner.tsx
4291
4290
  var import_jsx_runtime41 = require("react/jsx-runtime");
@@ -4321,7 +4320,7 @@ Spinner.displayName = "Spinner";
4321
4320
  var import_jsx_runtime42 = require("react/jsx-runtime");
4322
4321
 
4323
4322
  // src/components/ProductImagePreview/ZoomWindow.tsx
4324
- var import_react28 = require("react");
4323
+ var import_react27 = require("react");
4325
4324
 
4326
4325
  // src/components/Surface.tsx
4327
4326
  var import_clsx29 = __toESM(require("clsx"), 1);
@@ -4366,17 +4365,17 @@ var import_clsx30 = require("clsx");
4366
4365
  var import_jsx_runtime45 = require("react/jsx-runtime");
4367
4366
 
4368
4367
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
4369
- var import_react29 = require("react");
4368
+ var import_react28 = require("react");
4370
4369
  var import_jsx_runtime46 = require("react/jsx-runtime");
4371
4370
 
4372
4371
  // src/components/ProductImagePreview/useProductImagePreview.ts
4373
- var import_react30 = require("react");
4372
+ var import_react29 = require("react");
4374
4373
 
4375
4374
  // src/components/ProductImagePreview/index.tsx
4376
4375
  var import_jsx_runtime47 = require("react/jsx-runtime");
4377
4376
 
4378
4377
  // src/components/CompactImagesPreview.tsx
4379
- var import_react31 = require("react");
4378
+ var import_react30 = require("react");
4380
4379
  var import_clsx31 = __toESM(require("clsx"), 1);
4381
4380
  var import_jsx_runtime48 = require("react/jsx-runtime");
4382
4381
 
@@ -4384,14 +4383,193 @@ var import_jsx_runtime48 = require("react/jsx-runtime");
4384
4383
  var import_clsx32 = __toESM(require("clsx"), 1);
4385
4384
  var import_jsx_runtime49 = require("react/jsx-runtime");
4386
4385
 
4387
- // src/components/DataGrid/TableBody/index.tsx
4386
+ // src/components/PDFViewer/index.tsx
4387
+ var import_react33 = require("react");
4388
+
4389
+ // src/components/PDFViewer/PDFElement.tsx
4390
+ var import_react_pdf2 = require("@mikecousins/react-pdf");
4391
+ var import_react32 = require("react");
4392
+
4393
+ // src/components/PDFViewer/PDFPage.tsx
4394
+ var import_react_pdf = require("@mikecousins/react-pdf");
4395
+ var import_react31 = require("react");
4396
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4397
+
4398
+ // src/components/PDFViewer/PDFElement.tsx
4399
+ var import_clsx33 = __toESM(require("clsx"), 1);
4400
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4401
+
4402
+ // src/components/PDFViewer/DownloadIcon.tsx
4403
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4404
+
4405
+ // src/components/PDFViewer/PDFNavigation.tsx
4406
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4407
+
4408
+ // src/components/PDFViewer/index.tsx
4409
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4410
+
4411
+ // src/components/ListGroup.tsx
4412
+ var import_react34 = require("react");
4388
4413
  var import_clsx34 = __toESM(require("clsx"), 1);
4414
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4415
+
4416
+ // src/components/Pagination.tsx
4417
+ var import_react35 = require("react");
4418
+ var import_clsx35 = __toESM(require("clsx"), 1);
4419
+ var import_jsx_runtime56 = require("react/jsx-runtime");
4420
+ var Pagination = ({
4421
+ totalPages,
4422
+ currentPage,
4423
+ onPageChange,
4424
+ id,
4425
+ testid,
4426
+ className,
4427
+ disabled
4428
+ }) => {
4429
+ const goTo = (0, import_react35.useCallback)(
4430
+ (page) => {
4431
+ if (disabled) return;
4432
+ onPageChange(page);
4433
+ },
4434
+ [onPageChange, disabled]
4435
+ );
4436
+ const handleKey = (e) => {
4437
+ if (disabled) return;
4438
+ if (e.key === "ArrowLeft") {
4439
+ e.preventDefault();
4440
+ goTo(currentPage - 1);
4441
+ } else if (e.key === "ArrowRight") {
4442
+ e.preventDefault();
4443
+ goTo(currentPage + 1);
4444
+ }
4445
+ };
4446
+ const pageTokens = (0, import_react35.useMemo)(() => {
4447
+ if (totalPages <= 5) {
4448
+ return Array.from({ length: totalPages }, (_, i) => i + 1);
4449
+ }
4450
+ const pages = /* @__PURE__ */ new Set();
4451
+ pages.add(1);
4452
+ pages.add(totalPages);
4453
+ if (currentPage <= 3) {
4454
+ pages.add(2);
4455
+ pages.add(3);
4456
+ pages.add(4);
4457
+ } else if (currentPage >= totalPages - 2) {
4458
+ pages.add(totalPages - 1);
4459
+ pages.add(totalPages - 2);
4460
+ pages.add(totalPages - 3);
4461
+ } else {
4462
+ pages.add(currentPage - 1);
4463
+ pages.add(currentPage);
4464
+ pages.add(currentPage + 1);
4465
+ }
4466
+ const sorted = Array.from(pages).sort((a, b) => a - b);
4467
+ const tokens = [];
4468
+ for (let i = 0; i < sorted.length; i++) {
4469
+ const value = sorted[i];
4470
+ const prev = sorted[i - 1];
4471
+ if (i > 0) {
4472
+ if (value - prev === 2) {
4473
+ tokens.push(prev + 1);
4474
+ } else if (value - prev > 2) {
4475
+ tokens.push("ellipsis");
4476
+ }
4477
+ }
4478
+ tokens.push(value);
4479
+ }
4480
+ return tokens;
4481
+ }, [totalPages, currentPage]);
4482
+ if (totalPages <= 1) return null;
4483
+ const buttonClass = (0, import_clsx35.default)(
4484
+ "cursor-pointer disabled:cursor-default",
4485
+ paddingUsingComponentGap,
4486
+ "w-8 h-8",
4487
+ "flex items-center justify-center",
4488
+ "bg-transparent",
4489
+ "box-content",
4490
+ "hover:bg-background-grouped-secondary-normal",
4491
+ "focus:bg-background-grouped-secondary-normal focus:outline-0",
4492
+ "disabled:bg-transparent disabled:text-text-action-primary-disabled"
4493
+ );
4494
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
4495
+ "nav",
4496
+ {
4497
+ id,
4498
+ "data-testid": testid,
4499
+ "aria-label": "Pagination",
4500
+ onKeyDown: handleKey,
4501
+ className: (0, import_clsx35.default)(
4502
+ "flex items-center",
4503
+ "border border-border-primary-normal",
4504
+ "bg-background-grouped-primary-normal",
4505
+ "rounded-sm",
4506
+ className
4507
+ ),
4508
+ children: [
4509
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4510
+ "button",
4511
+ {
4512
+ disabled: disabled || currentPage <= 1,
4513
+ "aria-label": "Previous page",
4514
+ onClick: () => goTo(currentPage - 1),
4515
+ className: (0, import_clsx35.default)(buttonClass, "border-r-1 border-border-primary-normal"),
4516
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_left" })
4517
+ }
4518
+ ),
4519
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: (0, import_clsx35.default)("flex items-center"), children: pageTokens.map((token, index) => {
4520
+ if (token === "ellipsis") {
4521
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4522
+ "li",
4523
+ {
4524
+ className: "w-8 h-8 select-none text-text-action-primary-disabled",
4525
+ children: "\u2026"
4526
+ },
4527
+ `ellipsis-${index}`
4528
+ );
4529
+ }
4530
+ const selected = token === currentPage;
4531
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4532
+ "button",
4533
+ {
4534
+ "aria-label": `Page ${token}`,
4535
+ "aria-current": selected ? "page" : void 0,
4536
+ disabled,
4537
+ onClick: () => goTo(token),
4538
+ className: (0, import_clsx35.default)(
4539
+ buttonClass,
4540
+ selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
4541
+ ),
4542
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Subheader, { align: "center", weight: "bold", children: token })
4543
+ }
4544
+ ) }, token);
4545
+ }) }),
4546
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4547
+ "button",
4548
+ {
4549
+ disabled: disabled || currentPage >= totalPages,
4550
+ "aria-label": "Next page",
4551
+ onClick: () => goTo(currentPage + 1),
4552
+ className: (0, import_clsx35.default)(buttonClass, "border-l-1 border-border-primary-normal"),
4553
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "keyboard_arrow_right" })
4554
+ }
4555
+ )
4556
+ ]
4557
+ }
4558
+ );
4559
+ };
4560
+ Pagination.displayName = "Pagination";
4561
+
4562
+ // src/components/SkeletonParagraph.tsx
4563
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4564
+
4565
+ // src/components/DataGrid/TableBody/index.tsx
4566
+ var import_clsx37 = __toESM(require("clsx"), 1);
4389
4567
 
4390
4568
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
4391
- var import_clsx33 = __toESM(require("clsx"), 1);
4569
+ var import_clsx36 = __toESM(require("clsx"), 1);
4392
4570
  var import_react_table3 = require("@tanstack/react-table");
4393
- var import_react32 = __toESM(require("react"), 1);
4394
- var import_jsx_runtime50 = require("react/jsx-runtime");
4571
+ var import_react36 = __toESM(require("react"), 1);
4572
+ var import_jsx_runtime58 = require("react/jsx-runtime");
4395
4573
  var valueFormatters = {
4396
4574
  date: (value) => typeof value === "string" ? formatDate(value) : "",
4397
4575
  currency: (value) => formatCurrencyDisplay(value)
@@ -4424,10 +4602,10 @@ function TableBodyRow({
4424
4602
  const columns = locked ? visibleCells : virtualColumns;
4425
4603
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
4426
4604
  const CellElement = locked ? DataGridCell : DragAlongCell;
4427
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4605
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
4428
4606
  "tr",
4429
4607
  {
4430
- className: (0, import_clsx33.default)(
4608
+ className: (0, import_clsx36.default)(
4431
4609
  "min-h-10",
4432
4610
  "transition-colors hover:bg-background-action-secondary-hover",
4433
4611
  row.getIsSelected() && "!bg-background-action-secondary-hover",
@@ -4445,7 +4623,7 @@ function TableBodyRow({
4445
4623
  children: [
4446
4624
  !locked && virtualPaddingLeft ? (
4447
4625
  // fake empty column to the left for virtualization scroll padding
4448
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
4626
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
4449
4627
  ) : null,
4450
4628
  columns.map((column) => {
4451
4629
  var _a2, _b, _c, _d;
@@ -4456,17 +4634,17 @@ function TableBodyRow({
4456
4634
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
4457
4635
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
4458
4636
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
4459
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react32.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4637
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react36.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4460
4638
  CellElement,
4461
4639
  {
4462
4640
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
4463
4641
  testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
4464
4642
  cell,
4465
- className: (0, import_clsx33.default)({
4643
+ className: (0, import_clsx36.default)({
4466
4644
  "justify-start": cellAlignment === "left",
4467
4645
  "justify-end": cellAlignment === "right"
4468
4646
  }),
4469
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4647
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4470
4648
  Tooltip,
4471
4649
  {
4472
4650
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -4474,7 +4652,7 @@ function TableBodyRow({
4474
4652
  showOnTruncation: true,
4475
4653
  message: cellValue,
4476
4654
  position: "bottom",
4477
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
4655
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
4478
4656
  }
4479
4657
  )
4480
4658
  },
@@ -4483,7 +4661,7 @@ function TableBodyRow({
4483
4661
  }),
4484
4662
  !locked && virtualPaddingRight ? (
4485
4663
  // fake empty column to the right for virtualization scroll padding
4486
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
4664
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
4487
4665
  ) : null
4488
4666
  ]
4489
4667
  },
@@ -4492,7 +4670,7 @@ function TableBodyRow({
4492
4670
  }
4493
4671
 
4494
4672
  // src/components/DataGrid/TableBody/LoadingCell.tsx
4495
- var import_jsx_runtime51 = require("react/jsx-runtime");
4673
+ var import_jsx_runtime59 = require("react/jsx-runtime");
4496
4674
  function LoadingCell({
4497
4675
  id,
4498
4676
  testid,
@@ -4500,16 +4678,16 @@ function LoadingCell({
4500
4678
  }) {
4501
4679
  const key = `loading-${column.id}`;
4502
4680
  if (column.cell === "checkbox") {
4503
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
4681
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
4504
4682
  }
4505
4683
  if (column.cell === "input") {
4506
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4684
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4507
4685
  DataGridCell,
4508
4686
  {
4509
4687
  id: id ? `${id}-${key}` : void 0,
4510
4688
  testid: testid ? `${testid}-${key}` : void 0,
4511
4689
  component: "input",
4512
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4690
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4513
4691
  Input,
4514
4692
  {
4515
4693
  id: id ? `${id}-${key}-input` : void 0,
@@ -4523,11 +4701,11 @@ function LoadingCell({
4523
4701
  key
4524
4702
  );
4525
4703
  }
4526
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
4704
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
4527
4705
  }
4528
4706
 
4529
4707
  // src/components/DataGrid/TableBody/index.tsx
4530
- var import_jsx_runtime52 = require("react/jsx-runtime");
4708
+ var import_jsx_runtime60 = require("react/jsx-runtime");
4531
4709
  function TableBody({
4532
4710
  id,
4533
4711
  testid,
@@ -4561,10 +4739,10 @@ function TableBody({
4561
4739
  } else {
4562
4740
  headerGroups = table.getCenterHeaderGroups();
4563
4741
  }
4564
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4742
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
4565
4743
  "tbody",
4566
4744
  {
4567
- className: (0, import_clsx34.default)(locked ? "shadow-16" : ""),
4745
+ className: (0, import_clsx37.default)(locked ? "shadow-16" : ""),
4568
4746
  style: {
4569
4747
  display: "grid",
4570
4748
  height: `${showFilterRow ? rowVirtualizer.getTotalSize() + 40 : rowVirtualizer.getTotalSize()}px`,
@@ -4573,7 +4751,7 @@ function TableBody({
4573
4751
  // needed for absolute positioning of rows
4574
4752
  },
4575
4753
  children: [
4576
- showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4754
+ showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4577
4755
  "tr",
4578
4756
  {
4579
4757
  style: {
@@ -4589,7 +4767,7 @@ function TableBody({
4589
4767
  children: headerGroups.flatMap(
4590
4768
  (x) => x.headers.map((header) => {
4591
4769
  var _a, _b, _c, _d, _e;
4592
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4770
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4593
4771
  CellElement,
4594
4772
  {
4595
4773
  id: id ? `${id}-filter-cell-${header.id}` : void 0,
@@ -4600,7 +4778,7 @@ function TableBody({
4600
4778
  children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
4601
4779
  header,
4602
4780
  table
4603
- })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4781
+ })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4604
4782
  Search,
4605
4783
  {
4606
4784
  id: id ? `${id}-filter-search-${header.id}` : void 0,
@@ -4621,7 +4799,7 @@ function TableBody({
4621
4799
  ),
4622
4800
  virtualRows.map((virtualRow) => {
4623
4801
  const row = rows[virtualRow.index];
4624
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4802
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4625
4803
  TableBodyRow,
4626
4804
  {
4627
4805
  id,
@@ -4640,7 +4818,7 @@ function TableBody({
4640
4818
  row.id
4641
4819
  );
4642
4820
  }),
4643
- !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4821
+ !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4644
4822
  "tr",
4645
4823
  {
4646
4824
  style: {
@@ -4650,7 +4828,7 @@ function TableBody({
4650
4828
  transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
4651
4829
  },
4652
4830
  className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
4653
- children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4831
+ children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
4654
4832
  LoadingCell,
4655
4833
  {
4656
4834
  id,