@dmsi/wedgekit-react 0.0.415 → 0.0.417

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 (123) 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-CAQWLY5V.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-BK7SPR6Y.js → chunk-HYJIDHAK.js} +6 -6
  9. package/dist/{chunk-ZHZIIVJN.js → chunk-IMOIZFJZ.js} +5 -5
  10. package/dist/chunk-KBJZUVLM.js +65 -0
  11. package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
  12. package/dist/chunk-NRNWEQD7.js +66 -0
  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-TYAQWVIM.js +159 -0
  17. package/dist/{chunk-KZZKQLKF.js → chunk-W55J2KJZ.js} +1 -1
  18. package/dist/chunk-Y2GK27RX.js +79 -0
  19. package/dist/components/Accordion.cjs +74 -2
  20. package/dist/components/Accordion.js +3 -3
  21. package/dist/components/CalendarRange.cjs +228 -53
  22. package/dist/components/CalendarRange.css +169 -65
  23. package/dist/components/CalendarRange.js +23 -16
  24. package/dist/components/Card.cjs +38 -2
  25. package/dist/components/Card.js +1 -1
  26. package/dist/components/CompactImagesPreview.cjs +59 -5
  27. package/dist/components/CompactImagesPreview.js +2 -2
  28. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +186 -11
  29. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +169 -65
  30. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +23 -16
  31. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +195 -20
  32. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +169 -65
  33. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +23 -16
  34. package/dist/components/DataGrid/PinnedColumns.cjs +211 -36
  35. package/dist/components/DataGrid/PinnedColumns.css +169 -65
  36. package/dist/components/DataGrid/PinnedColumns.js +23 -16
  37. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +187 -12
  38. package/dist/components/DataGrid/TableBody/LoadingCell.css +169 -65
  39. package/dist/components/DataGrid/TableBody/LoadingCell.js +23 -16
  40. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +193 -18
  41. package/dist/components/DataGrid/TableBody/TableBodyRow.css +169 -65
  42. package/dist/components/DataGrid/TableBody/TableBodyRow.js +23 -16
  43. package/dist/components/DataGrid/TableBody/index.cjs +208 -33
  44. package/dist/components/DataGrid/TableBody/index.css +169 -65
  45. package/dist/components/DataGrid/TableBody/index.js +23 -16
  46. package/dist/components/DataGrid/index.cjs +297 -122
  47. package/dist/components/DataGrid/index.css +169 -65
  48. package/dist/components/DataGrid/index.js +23 -16
  49. package/dist/components/DataGrid/utils.cjs +187 -12
  50. package/dist/components/DataGrid/utils.css +169 -65
  51. package/dist/components/DataGrid/utils.js +23 -16
  52. package/dist/components/DateInput.cjs +247 -72
  53. package/dist/components/DateInput.css +169 -65
  54. package/dist/components/DateInput.js +23 -16
  55. package/dist/components/DateRangeInput.cjs +247 -72
  56. package/dist/components/DateRangeInput.css +169 -65
  57. package/dist/components/DateRangeInput.js +23 -16
  58. package/dist/components/Grid.cjs +81 -76
  59. package/dist/components/Grid.js +1 -1
  60. package/dist/components/ListGroup.cjs +553 -0
  61. package/dist/components/ListGroup.js +11 -0
  62. package/dist/components/MobileDataGrid/ColumnList.cjs +36 -0
  63. package/dist/components/MobileDataGrid/ColumnList.js +3 -3
  64. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +194 -19
  65. package/dist/components/MobileDataGrid/ColumnSelector/index.css +169 -65
  66. package/dist/components/MobileDataGrid/ColumnSelector/index.js +23 -16
  67. package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
  68. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
  69. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +238 -27
  70. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +169 -65
  71. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +23 -16
  72. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +36 -0
  73. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
  74. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +36 -0
  75. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
  76. package/dist/components/MobileDataGrid/index.cjs +740 -529
  77. package/dist/components/MobileDataGrid/index.css +169 -65
  78. package/dist/components/MobileDataGrid/index.js +23 -16
  79. package/dist/components/Modal.js +2 -2
  80. package/dist/components/Notification.cjs +36 -0
  81. package/dist/components/Notification.js +1 -1
  82. package/dist/components/PDFViewer/PDFElement.cjs +36 -0
  83. package/dist/components/PDFViewer/PDFElement.js +2 -2
  84. package/dist/components/PDFViewer/PDFNavigation.cjs +36 -0
  85. package/dist/components/PDFViewer/PDFNavigation.js +2 -2
  86. package/dist/components/PDFViewer/index.cjs +36 -0
  87. package/dist/components/PDFViewer/index.js +8 -111
  88. package/dist/components/Pagination.cjs +427 -0
  89. package/dist/components/Pagination.js +10 -0
  90. package/dist/components/ProductImagePreview/index.cjs +139 -127
  91. package/dist/components/ProductImagePreview/index.js +4 -4
  92. package/dist/components/SideMenuGroup.cjs +36 -0
  93. package/dist/components/SideMenuGroup.js +1 -1
  94. package/dist/components/SideMenuItem.cjs +36 -0
  95. package/dist/components/SideMenuItem.js +1 -1
  96. package/dist/components/SimpleTable.cjs +36 -0
  97. package/dist/components/SimpleTable.js +2 -2
  98. package/dist/components/Stack.cjs +36 -0
  99. package/dist/components/Stack.js +1 -1
  100. package/dist/components/Swatch.cjs +36 -0
  101. package/dist/components/Swatch.js +1 -1
  102. package/dist/components/Time.cjs +36 -0
  103. package/dist/components/Time.js +1 -1
  104. package/dist/components/Tooltip.cjs +1 -1
  105. package/dist/components/Tooltip.js +1 -1
  106. package/dist/components/Upload.cjs +36 -0
  107. package/dist/components/Upload.js +1 -1
  108. package/dist/components/index.cjs +686 -131
  109. package/dist/components/index.css +169 -65
  110. package/dist/components/index.js +33 -17
  111. package/dist/index.css +169 -65
  112. package/package.json +1 -1
  113. package/src/components/Card.tsx +60 -2
  114. package/src/components/CompactImagesPreview.tsx +54 -30
  115. package/src/components/Grid.tsx +59 -91
  116. package/src/components/ListGroup.tsx +82 -0
  117. package/src/components/Pagination.tsx +182 -0
  118. package/src/components/Stack.tsx +76 -0
  119. package/src/components/Tooltip.tsx +4 -3
  120. package/src/components/index.ts +3 -0
  121. package/dist/chunk-ER6RCOH3.js +0 -97
  122. package/dist/chunk-EZCH4PQS.js +0 -29
  123. 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,190 @@ 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/DataGrid/TableBody/index.tsx
4563
+ var import_clsx37 = __toESM(require("clsx"), 1);
4389
4564
 
4390
4565
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
4391
- var import_clsx33 = __toESM(require("clsx"), 1);
4566
+ var import_clsx36 = __toESM(require("clsx"), 1);
4392
4567
  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");
4568
+ var import_react36 = __toESM(require("react"), 1);
4569
+ var import_jsx_runtime57 = require("react/jsx-runtime");
4395
4570
  var valueFormatters = {
4396
4571
  date: (value) => typeof value === "string" ? formatDate(value) : "",
4397
4572
  currency: (value) => formatCurrencyDisplay(value)
@@ -4424,10 +4599,10 @@ function TableBodyRow({
4424
4599
  const columns = locked ? visibleCells : virtualColumns;
4425
4600
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
4426
4601
  const CellElement = locked ? DataGridCell : DragAlongCell;
4427
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4602
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4428
4603
  "tr",
4429
4604
  {
4430
- className: (0, import_clsx33.default)(
4605
+ className: (0, import_clsx36.default)(
4431
4606
  "min-h-10",
4432
4607
  "transition-colors hover:bg-background-action-secondary-hover",
4433
4608
  row.getIsSelected() && "!bg-background-action-secondary-hover",
@@ -4445,7 +4620,7 @@ function TableBodyRow({
4445
4620
  children: [
4446
4621
  !locked && virtualPaddingLeft ? (
4447
4622
  // fake empty column to the left for virtualization scroll padding
4448
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
4623
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
4449
4624
  ) : null,
4450
4625
  columns.map((column) => {
4451
4626
  var _a2, _b, _c, _d;
@@ -4456,17 +4631,17 @@ function TableBodyRow({
4456
4631
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
4457
4632
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
4458
4633
  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)(
4634
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react36.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4460
4635
  CellElement,
4461
4636
  {
4462
4637
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
4463
4638
  testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
4464
4639
  cell,
4465
- className: (0, import_clsx33.default)({
4640
+ className: (0, import_clsx36.default)({
4466
4641
  "justify-start": cellAlignment === "left",
4467
4642
  "justify-end": cellAlignment === "right"
4468
4643
  }),
4469
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4644
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4470
4645
  Tooltip,
4471
4646
  {
4472
4647
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -4474,7 +4649,7 @@ function TableBodyRow({
4474
4649
  showOnTruncation: true,
4475
4650
  message: cellValue,
4476
4651
  position: "bottom",
4477
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
4652
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
4478
4653
  }
4479
4654
  )
4480
4655
  },
@@ -4483,7 +4658,7 @@ function TableBodyRow({
4483
4658
  }),
4484
4659
  !locked && virtualPaddingRight ? (
4485
4660
  // fake empty column to the right for virtualization scroll padding
4486
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
4661
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
4487
4662
  ) : null
4488
4663
  ]
4489
4664
  },
@@ -4492,7 +4667,7 @@ function TableBodyRow({
4492
4667
  }
4493
4668
 
4494
4669
  // src/components/DataGrid/TableBody/LoadingCell.tsx
4495
- var import_jsx_runtime51 = require("react/jsx-runtime");
4670
+ var import_jsx_runtime58 = require("react/jsx-runtime");
4496
4671
  function LoadingCell({
4497
4672
  id,
4498
4673
  testid,
@@ -4500,16 +4675,16 @@ function LoadingCell({
4500
4675
  }) {
4501
4676
  const key = `loading-${column.id}`;
4502
4677
  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);
4678
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
4504
4679
  }
4505
4680
  if (column.cell === "input") {
4506
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4681
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4507
4682
  DataGridCell,
4508
4683
  {
4509
4684
  id: id ? `${id}-${key}` : void 0,
4510
4685
  testid: testid ? `${testid}-${key}` : void 0,
4511
4686
  component: "input",
4512
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4687
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4513
4688
  Input,
4514
4689
  {
4515
4690
  id: id ? `${id}-${key}-input` : void 0,
@@ -4523,11 +4698,11 @@ function LoadingCell({
4523
4698
  key
4524
4699
  );
4525
4700
  }
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);
4701
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime58.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
4702
  }
4528
4703
 
4529
4704
  // src/components/DataGrid/TableBody/index.tsx
4530
- var import_jsx_runtime52 = require("react/jsx-runtime");
4705
+ var import_jsx_runtime59 = require("react/jsx-runtime");
4531
4706
  function TableBody({
4532
4707
  id,
4533
4708
  testid,
@@ -4561,10 +4736,10 @@ function TableBody({
4561
4736
  } else {
4562
4737
  headerGroups = table.getCenterHeaderGroups();
4563
4738
  }
4564
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4739
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
4565
4740
  "tbody",
4566
4741
  {
4567
- className: (0, import_clsx34.default)(locked ? "shadow-16" : ""),
4742
+ className: (0, import_clsx37.default)(locked ? "shadow-16" : ""),
4568
4743
  style: {
4569
4744
  display: "grid",
4570
4745
  height: `${showFilterRow ? rowVirtualizer.getTotalSize() + 40 : rowVirtualizer.getTotalSize()}px`,
@@ -4573,7 +4748,7 @@ function TableBody({
4573
4748
  // needed for absolute positioning of rows
4574
4749
  },
4575
4750
  children: [
4576
- showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4751
+ showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4577
4752
  "tr",
4578
4753
  {
4579
4754
  style: {
@@ -4589,7 +4764,7 @@ function TableBody({
4589
4764
  children: headerGroups.flatMap(
4590
4765
  (x) => x.headers.map((header) => {
4591
4766
  var _a, _b, _c, _d, _e;
4592
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4767
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4593
4768
  CellElement,
4594
4769
  {
4595
4770
  id: id ? `${id}-filter-cell-${header.id}` : void 0,
@@ -4600,7 +4775,7 @@ function TableBody({
4600
4775
  children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
4601
4776
  header,
4602
4777
  table
4603
- })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4778
+ })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4604
4779
  Search,
4605
4780
  {
4606
4781
  id: id ? `${id}-filter-search-${header.id}` : void 0,
@@ -4621,7 +4796,7 @@ function TableBody({
4621
4796
  ),
4622
4797
  virtualRows.map((virtualRow) => {
4623
4798
  const row = rows[virtualRow.index];
4624
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4799
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4625
4800
  TableBodyRow,
4626
4801
  {
4627
4802
  id,
@@ -4640,7 +4815,7 @@ function TableBody({
4640
4815
  row.id
4641
4816
  );
4642
4817
  }),
4643
- !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4818
+ !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4644
4819
  "tr",
4645
4820
  {
4646
4821
  style: {
@@ -4650,7 +4825,7 @@ function TableBody({
4650
4825
  transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
4651
4826
  },
4652
4827
  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)(
4828
+ children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4654
4829
  LoadingCell,
4655
4830
  {
4656
4831
  id,