@dmsi/wedgekit-react 0.0.414 → 0.0.415

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 (55) hide show
  1. package/dist/chunk-7ULLUUVJ.js +61 -0
  2. package/dist/components/CalendarRange.cjs +39 -35
  3. package/dist/components/CalendarRange.css +9 -0
  4. package/dist/components/CalendarRange.js +6 -5
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +9 -0
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -5
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +9 -0
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -5
  11. package/dist/components/DataGrid/PinnedColumns.cjs +27 -23
  12. package/dist/components/DataGrid/PinnedColumns.css +9 -0
  13. package/dist/components/DataGrid/PinnedColumns.js +6 -5
  14. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
  15. package/dist/components/DataGrid/TableBody/LoadingCell.css +9 -0
  16. package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -5
  17. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -10
  18. package/dist/components/DataGrid/TableBody/TableBodyRow.css +9 -0
  19. package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -5
  20. package/dist/components/DataGrid/TableBody/index.cjs +29 -25
  21. package/dist/components/DataGrid/TableBody/index.css +9 -0
  22. package/dist/components/DataGrid/TableBody/index.js +6 -5
  23. package/dist/components/DataGrid/index.cjs +98 -94
  24. package/dist/components/DataGrid/index.css +9 -0
  25. package/dist/components/DataGrid/index.js +6 -5
  26. package/dist/components/DataGrid/utils.cjs +9 -5
  27. package/dist/components/DataGrid/utils.css +9 -0
  28. package/dist/components/DataGrid/utils.js +6 -5
  29. package/dist/components/DateInput.cjs +45 -41
  30. package/dist/components/DateInput.css +9 -0
  31. package/dist/components/DateInput.js +6 -5
  32. package/dist/components/DateRangeInput.cjs +45 -41
  33. package/dist/components/DateRangeInput.css +9 -0
  34. package/dist/components/DateRangeInput.js +6 -5
  35. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
  36. package/dist/components/MobileDataGrid/ColumnSelector/index.css +9 -0
  37. package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -5
  38. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
  39. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +9 -0
  40. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -5
  41. package/dist/components/MobileDataGrid/index.cjs +103 -99
  42. package/dist/components/MobileDataGrid/index.css +9 -0
  43. package/dist/components/MobileDataGrid/index.js +6 -5
  44. package/dist/components/ProductImagePreview/index.js +2 -2
  45. package/dist/components/SimpleTable.cjs +485 -0
  46. package/dist/components/SimpleTable.js +10 -0
  47. package/dist/components/index.cjs +53 -0
  48. package/dist/components/index.css +9 -0
  49. package/dist/components/index.js +9 -5
  50. package/dist/index.css +9 -0
  51. package/package.json +1 -1
  52. package/src/components/SimpleTable.tsx +77 -0
  53. package/src/components/index.ts +1 -0
  54. package/dist/{chunk-OBY5EH47.js → chunk-BK7SPR6Y.js} +6 -6
  55. package/dist/{chunk-LZGYABCX.js → chunk-ZHZIIVJN.js} +3 -3
@@ -4410,8 +4410,12 @@ var import_react29 = require("react");
4410
4410
  var import_clsx32 = __toESM(require("clsx"), 1);
4411
4411
  var import_jsx_runtime48 = require("react/jsx-runtime");
4412
4412
 
4413
- // src/components/DataGrid/PinnedColumns.tsx
4413
+ // src/components/SimpleTable.tsx
4414
4414
  var import_clsx33 = __toESM(require("clsx"), 1);
4415
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4416
+
4417
+ // src/components/DataGrid/PinnedColumns.tsx
4418
+ var import_clsx34 = __toESM(require("clsx"), 1);
4415
4419
  var import_react32 = __toESM(require("react"), 1);
4416
4420
 
4417
4421
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
@@ -4419,7 +4423,7 @@ var import_react31 = require("react");
4419
4423
 
4420
4424
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
4421
4425
  var import_react30 = require("react");
4422
- var import_jsx_runtime49 = require("react/jsx-runtime");
4426
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4423
4427
  function ColumnSelectorMenuOption({
4424
4428
  id,
4425
4429
  testid,
@@ -4428,7 +4432,7 @@ function ColumnSelectorMenuOption({
4428
4432
  }) {
4429
4433
  const [isVisible, setIsVisible] = (0, import_react30.useState)(column.getIsVisible());
4430
4434
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
4431
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4435
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4432
4436
  Checkbox,
4433
4437
  {
4434
4438
  id: id ? `${id}-checkbox` : void 0,
@@ -4444,7 +4448,7 @@ function ColumnSelectorMenuOption({
4444
4448
  }
4445
4449
 
4446
4450
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
4447
- var import_jsx_runtime50 = require("react/jsx-runtime");
4451
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4448
4452
  function ColumnSelectorHeaderCell({
4449
4453
  id,
4450
4454
  testid,
@@ -4454,7 +4458,7 @@ function ColumnSelectorHeaderCell({
4454
4458
  }) {
4455
4459
  const ref = (0, import_react31.useRef)(null);
4456
4460
  const [show, setShow] = (0, import_react31.useState)(false);
4457
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4461
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4458
4462
  DataGridCell,
4459
4463
  {
4460
4464
  id,
@@ -4464,7 +4468,7 @@ function ColumnSelectorHeaderCell({
4464
4468
  color: "text-secondary-normal",
4465
4469
  ref,
4466
4470
  children: [
4467
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4471
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4468
4472
  Button,
4469
4473
  {
4470
4474
  id: id ? `${id}-button` : void 0,
@@ -4472,10 +4476,10 @@ function ColumnSelectorHeaderCell({
4472
4476
  onClick: () => setShow((prev) => !prev),
4473
4477
  variant: "navigation",
4474
4478
  iconOnly: true,
4475
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { name: "tune" })
4479
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "tune" })
4476
4480
  }
4477
4481
  ),
4478
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4482
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4479
4483
  Menu,
4480
4484
  {
4481
4485
  id: id ? `${id}-menu` : void 0,
@@ -4486,7 +4490,7 @@ function ColumnSelectorHeaderCell({
4486
4490
  setShow,
4487
4491
  calculateMinMaxHeight: true,
4488
4492
  children: [
4489
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4493
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4490
4494
  Button,
4491
4495
  {
4492
4496
  id: id ? `${id}-reset-button` : void 0,
@@ -4502,7 +4506,7 @@ function ColumnSelectorHeaderCell({
4502
4506
  table.getAllColumns().filter((x) => {
4503
4507
  var _a;
4504
4508
  return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
4505
- }).map((column) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4509
+ }).map((column) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4506
4510
  ColumnSelectorMenuOption,
4507
4511
  {
4508
4512
  id: id ? `${id}-option-${column.id}` : void 0,
@@ -4521,7 +4525,7 @@ function ColumnSelectorHeaderCell({
4521
4525
  }
4522
4526
 
4523
4527
  // src/components/DataGrid/PinnedColumns.tsx
4524
- var import_jsx_runtime51 = require("react/jsx-runtime");
4528
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4525
4529
  function PinnedColumns(_a) {
4526
4530
  var _b = _a, {
4527
4531
  id,
@@ -4553,17 +4557,17 @@ function PinnedColumns(_a) {
4553
4557
  const pinnedTestId = testid ? `${pinDirection}-pinned-${testid}` : void 0;
4554
4558
  const hasAnyHeaders = ((_a2 = headerGroups[0]) == null ? void 0 : _a2.headers.length) > 0;
4555
4559
  if (!hasAnyHeaders && !enableColumnSelector) return;
4556
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4560
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4557
4561
  "table",
4558
4562
  {
4559
- className: (0, import_clsx33.default)(
4563
+ className: (0, import_clsx34.default)(
4560
4564
  "flex flex-col min-h-min sticky z-20",
4561
4565
  pinDirection === "left" ? "left-0" : "right-0"
4562
4566
  ),
4563
4567
  "data-testid": pinnedTestId,
4564
4568
  children: [
4565
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
4566
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4569
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
4570
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4567
4571
  "tr",
4568
4572
  {
4569
4573
  "data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0,
@@ -4576,7 +4580,7 @@ function PinnedColumns(_a) {
4576
4580
  }
4577
4581
  if (typeof header.column.columnDef.header === "string") {
4578
4582
  const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
4579
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4583
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4580
4584
  DataCellHeader,
4581
4585
  {
4582
4586
  locked: true,
@@ -4584,16 +4588,16 @@ function PinnedColumns(_a) {
4584
4588
  header,
4585
4589
  center: centerHeader,
4586
4590
  width: customHeaderWidth,
4587
- className: (0, import_clsx33.default)(
4591
+ className: (0, import_clsx34.default)(
4588
4592
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
4589
4593
  "group"
4590
4594
  ),
4591
4595
  children: [
4592
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
4596
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
4593
4597
  getSortIcon(header.column.getIsSorted()),
4594
4598
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
4595
- header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
4596
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4599
+ header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
4600
+ !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4597
4601
  "div",
4598
4602
  {
4599
4603
  onDoubleClick: (e) => {
@@ -4616,7 +4620,7 @@ function PinnedColumns(_a) {
4616
4620
  header.id
4617
4621
  );
4618
4622
  }
4619
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react32.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4623
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react32.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4620
4624
  Checkbox,
4621
4625
  {
4622
4626
  checked: allSelectedAcrossPages,
@@ -4628,7 +4632,7 @@ function PinnedColumns(_a) {
4628
4632
  header.getContext()
4629
4633
  ) }, header.id);
4630
4634
  }),
4631
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4635
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4632
4636
  ColumnSelectorHeaderCell,
4633
4637
  {
4634
4638
  id: id ? `${id}-column-selector` : void 0,
@@ -4645,7 +4649,7 @@ function PinnedColumns(_a) {
4645
4649
  headerGroup.id
4646
4650
  );
4647
4651
  }) }),
4648
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4652
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4649
4653
  TableBody,
4650
4654
  __spreadProps(__spreadValues({
4651
4655
  testid: pinnedTestId
@@ -841,6 +841,9 @@
841
841
  .\!w-20 {
842
842
  width: calc(var(--spacing) * 20) !important;
843
843
  }
844
+ .w-2\/3 {
845
+ width: calc(2/3 * 100%);
846
+ }
844
847
  .w-3 {
845
848
  width: calc(var(--spacing) * 3);
846
849
  }
@@ -961,6 +964,9 @@
961
964
  .grow-0 {
962
965
  flex-grow: 0;
963
966
  }
967
+ .border-collapse {
968
+ border-collapse: collapse;
969
+ }
964
970
  .translate-x-0 {
965
971
  --tw-translate-x: calc(var(--spacing) * 0);
966
972
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -2035,6 +2041,9 @@
2035
2041
  .text-right {
2036
2042
  text-align: right;
2037
2043
  }
2044
+ .align-middle {
2045
+ vertical-align: middle;
2046
+ }
2038
2047
  .font-sans {
2039
2048
  font-family: var(--font-sans);
2040
2049
  }
@@ -1,24 +1,25 @@
1
1
  import {
2
2
  PinnedColumns
3
- } from "../../chunk-OBY5EH47.js";
4
- import "../../chunk-M7INAUAJ.js";
3
+ } from "../../chunk-BK7SPR6Y.js";
5
4
  import "../../chunk-6I5LZ2ZC.js";
5
+ import "../../chunk-M7INAUAJ.js";
6
6
  import "../../chunk-44TDIHUP.js";
7
- import "../../chunk-LZGYABCX.js";
7
+ import "../../chunk-ZHZIIVJN.js";
8
+ import "../../chunk-2IKT6IHB.js";
8
9
  import "../../chunk-G5DEC7H3.js";
9
10
  import "../../chunk-3X3Y4TMS.js";
10
11
  import "../../chunk-BQNPOGD5.js";
11
12
  import "../../chunk-MBZ55T2D.js";
12
- import "../../chunk-2IKT6IHB.js";
13
13
  import "../../chunk-AA6GE3TH.js";
14
14
  import "../../chunk-KZZKQLKF.js";
15
15
  import "../../chunk-5IFPG6TS.js";
16
16
  import "../../chunk-AJ5M6MVX.js";
17
17
  import "../../chunk-M6TSTDNZ.js";
18
+ import "../../chunk-EWGHVZL5.js";
18
19
  import "../../chunk-QQ5G773N.js";
19
20
  import "../../chunk-AT4AWD6B.js";
20
- import "../../chunk-EWGHVZL5.js";
21
21
  import "../../chunk-J5V2JRIK.js";
22
+ import "../../chunk-7ULLUUVJ.js";
22
23
  import "../../chunk-D6YCMQPO.js";
23
24
  import "../../chunk-4RJKB7LC.js";
24
25
  import "../../chunk-XM7IQHBU.js";
@@ -4627,8 +4627,12 @@ var import_react32 = require("react");
4627
4627
  var import_clsx33 = __toESM(require("clsx"), 1);
4628
4628
  var import_jsx_runtime50 = require("react/jsx-runtime");
4629
4629
 
4630
- // src/components/DataGrid/TableBody/LoadingCell.tsx
4630
+ // src/components/SimpleTable.tsx
4631
+ var import_clsx34 = __toESM(require("clsx"), 1);
4631
4632
  var import_jsx_runtime51 = require("react/jsx-runtime");
4633
+
4634
+ // src/components/DataGrid/TableBody/LoadingCell.tsx
4635
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4632
4636
  function LoadingCell({
4633
4637
  id,
4634
4638
  testid,
@@ -4636,16 +4640,16 @@ function LoadingCell({
4636
4640
  }) {
4637
4641
  const key = `loading-${column.id}`;
4638
4642
  if (column.cell === "checkbox") {
4639
- 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);
4643
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
4640
4644
  }
4641
4645
  if (column.cell === "input") {
4642
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4646
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4643
4647
  DataGridCell,
4644
4648
  {
4645
4649
  id: id ? `${id}-${key}` : void 0,
4646
4650
  testid: testid ? `${testid}-${key}` : void 0,
4647
4651
  component: "input",
4648
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4652
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4649
4653
  Input,
4650
4654
  {
4651
4655
  id: id ? `${id}-${key}-input` : void 0,
@@ -4659,7 +4663,7 @@ function LoadingCell({
4659
4663
  key
4660
4664
  );
4661
4665
  }
4662
- 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);
4666
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
4663
4667
  }
4664
4668
  // Annotate the CommonJS export names for ESM import in node:
4665
4669
  0 && (module.exports = {
@@ -841,6 +841,9 @@
841
841
  .\!w-20 {
842
842
  width: calc(var(--spacing) * 20) !important;
843
843
  }
844
+ .w-2\/3 {
845
+ width: calc(2/3 * 100%);
846
+ }
844
847
  .w-3 {
845
848
  width: calc(var(--spacing) * 3);
846
849
  }
@@ -961,6 +964,9 @@
961
964
  .grow-0 {
962
965
  flex-grow: 0;
963
966
  }
967
+ .border-collapse {
968
+ border-collapse: collapse;
969
+ }
964
970
  .translate-x-0 {
965
971
  --tw-translate-x: calc(var(--spacing) * 0);
966
972
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -2035,6 +2041,9 @@
2035
2041
  .text-right {
2036
2042
  text-align: right;
2037
2043
  }
2044
+ .align-middle {
2045
+ vertical-align: middle;
2046
+ }
2038
2047
  .font-sans {
2039
2048
  font-family: var(--font-sans);
2040
2049
  }
@@ -1,24 +1,25 @@
1
1
  import {
2
2
  LoadingCell
3
- } from "../../../chunk-OBY5EH47.js";
4
- import "../../../chunk-M7INAUAJ.js";
3
+ } from "../../../chunk-BK7SPR6Y.js";
5
4
  import "../../../chunk-6I5LZ2ZC.js";
5
+ import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-44TDIHUP.js";
7
- import "../../../chunk-LZGYABCX.js";
7
+ import "../../../chunk-ZHZIIVJN.js";
8
+ import "../../../chunk-2IKT6IHB.js";
8
9
  import "../../../chunk-G5DEC7H3.js";
9
10
  import "../../../chunk-3X3Y4TMS.js";
10
11
  import "../../../chunk-BQNPOGD5.js";
11
12
  import "../../../chunk-MBZ55T2D.js";
12
- import "../../../chunk-2IKT6IHB.js";
13
13
  import "../../../chunk-AA6GE3TH.js";
14
14
  import "../../../chunk-KZZKQLKF.js";
15
15
  import "../../../chunk-5IFPG6TS.js";
16
16
  import "../../../chunk-AJ5M6MVX.js";
17
17
  import "../../../chunk-M6TSTDNZ.js";
18
+ import "../../../chunk-EWGHVZL5.js";
18
19
  import "../../../chunk-QQ5G773N.js";
19
20
  import "../../../chunk-AT4AWD6B.js";
20
- import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-J5V2JRIK.js";
22
+ import "../../../chunk-7ULLUUVJ.js";
22
23
  import "../../../chunk-D6YCMQPO.js";
23
24
  import "../../../chunk-4RJKB7LC.js";
24
25
  import "../../../chunk-XM7IQHBU.js";
@@ -62,7 +62,7 @@ __export(TableBodyRow_exports, {
62
62
  TableBodyRow: () => TableBodyRow
63
63
  });
64
64
  module.exports = __toCommonJS(TableBodyRow_exports);
65
- var import_clsx33 = __toESM(require("clsx"), 1);
65
+ var import_clsx34 = __toESM(require("clsx"), 1);
66
66
  var import_react_table3 = require("@tanstack/react-table");
67
67
  var import_react32 = __toESM(require("react"), 1);
68
68
 
@@ -4561,8 +4561,12 @@ var import_react31 = require("react");
4561
4561
  var import_clsx32 = __toESM(require("clsx"), 1);
4562
4562
  var import_jsx_runtime50 = require("react/jsx-runtime");
4563
4563
 
4564
- // src/components/DataGrid/TableBody/TableBodyRow.tsx
4564
+ // src/components/SimpleTable.tsx
4565
+ var import_clsx33 = __toESM(require("clsx"), 1);
4565
4566
  var import_jsx_runtime51 = require("react/jsx-runtime");
4567
+
4568
+ // src/components/DataGrid/TableBody/TableBodyRow.tsx
4569
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4566
4570
  var valueFormatters = {
4567
4571
  date: (value) => typeof value === "string" ? formatDate(value) : "",
4568
4572
  currency: (value) => formatCurrencyDisplay(value)
@@ -4595,10 +4599,10 @@ function TableBodyRow({
4595
4599
  const columns = locked ? visibleCells : virtualColumns;
4596
4600
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
4597
4601
  const CellElement = locked ? DataGridCell : DragAlongCell;
4598
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4602
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4599
4603
  "tr",
4600
4604
  {
4601
- className: (0, import_clsx33.default)(
4605
+ className: (0, import_clsx34.default)(
4602
4606
  "min-h-10",
4603
4607
  "transition-colors hover:bg-background-action-secondary-hover",
4604
4608
  row.getIsSelected() && "!bg-background-action-secondary-hover",
@@ -4616,7 +4620,7 @@ function TableBodyRow({
4616
4620
  children: [
4617
4621
  !locked && virtualPaddingLeft ? (
4618
4622
  // fake empty column to the left for virtualization scroll padding
4619
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
4623
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
4620
4624
  ) : null,
4621
4625
  columns.map((column) => {
4622
4626
  var _a2, _b, _c, _d;
@@ -4627,17 +4631,17 @@ function TableBodyRow({
4627
4631
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
4628
4632
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
4629
4633
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
4630
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react32.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4634
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react32.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4631
4635
  CellElement,
4632
4636
  {
4633
4637
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
4634
4638
  testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
4635
4639
  cell,
4636
- className: (0, import_clsx33.default)({
4640
+ className: (0, import_clsx34.default)({
4637
4641
  "justify-start": cellAlignment === "left",
4638
4642
  "justify-end": cellAlignment === "right"
4639
4643
  }),
4640
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4644
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4641
4645
  Tooltip,
4642
4646
  {
4643
4647
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -4645,7 +4649,7 @@ function TableBodyRow({
4645
4649
  showOnTruncation: true,
4646
4650
  message: cellValue,
4647
4651
  position: "bottom",
4648
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
4652
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
4649
4653
  }
4650
4654
  )
4651
4655
  },
@@ -4654,7 +4658,7 @@ function TableBodyRow({
4654
4658
  }),
4655
4659
  !locked && virtualPaddingRight ? (
4656
4660
  // fake empty column to the right for virtualization scroll padding
4657
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
4661
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
4658
4662
  ) : null
4659
4663
  ]
4660
4664
  },
@@ -841,6 +841,9 @@
841
841
  .\!w-20 {
842
842
  width: calc(var(--spacing) * 20) !important;
843
843
  }
844
+ .w-2\/3 {
845
+ width: calc(2/3 * 100%);
846
+ }
844
847
  .w-3 {
845
848
  width: calc(var(--spacing) * 3);
846
849
  }
@@ -961,6 +964,9 @@
961
964
  .grow-0 {
962
965
  flex-grow: 0;
963
966
  }
967
+ .border-collapse {
968
+ border-collapse: collapse;
969
+ }
964
970
  .translate-x-0 {
965
971
  --tw-translate-x: calc(var(--spacing) * 0);
966
972
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -2035,6 +2041,9 @@
2035
2041
  .text-right {
2036
2042
  text-align: right;
2037
2043
  }
2044
+ .align-middle {
2045
+ vertical-align: middle;
2046
+ }
2038
2047
  .font-sans {
2039
2048
  font-family: var(--font-sans);
2040
2049
  }
@@ -1,24 +1,25 @@
1
1
  import {
2
2
  TableBodyRow
3
- } from "../../../chunk-OBY5EH47.js";
4
- import "../../../chunk-M7INAUAJ.js";
3
+ } from "../../../chunk-BK7SPR6Y.js";
5
4
  import "../../../chunk-6I5LZ2ZC.js";
5
+ import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-44TDIHUP.js";
7
- import "../../../chunk-LZGYABCX.js";
7
+ import "../../../chunk-ZHZIIVJN.js";
8
+ import "../../../chunk-2IKT6IHB.js";
8
9
  import "../../../chunk-G5DEC7H3.js";
9
10
  import "../../../chunk-3X3Y4TMS.js";
10
11
  import "../../../chunk-BQNPOGD5.js";
11
12
  import "../../../chunk-MBZ55T2D.js";
12
- import "../../../chunk-2IKT6IHB.js";
13
13
  import "../../../chunk-AA6GE3TH.js";
14
14
  import "../../../chunk-KZZKQLKF.js";
15
15
  import "../../../chunk-5IFPG6TS.js";
16
16
  import "../../../chunk-AJ5M6MVX.js";
17
17
  import "../../../chunk-M6TSTDNZ.js";
18
+ import "../../../chunk-EWGHVZL5.js";
18
19
  import "../../../chunk-QQ5G773N.js";
19
20
  import "../../../chunk-AT4AWD6B.js";
20
- import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-J5V2JRIK.js";
22
+ import "../../../chunk-7ULLUUVJ.js";
22
23
  import "../../../chunk-D6YCMQPO.js";
23
24
  import "../../../chunk-4RJKB7LC.js";
24
25
  import "../../../chunk-XM7IQHBU.js";