@dmsi/wedgekit-react 0.0.495 → 0.0.497

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 (62) hide show
  1. package/dist/chunk-34VEVX5H.js +31 -0
  2. package/dist/{chunk-ETAEB3TA.js → chunk-L3BXRDLP.js} +8 -2
  3. package/dist/components/CalendarRange.cjs +28 -25
  4. package/dist/components/CalendarRange.css +21 -3
  5. package/dist/components/CalendarRange.js +9 -8
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +21 -3
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -8
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +21 -3
  11. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -8
  12. package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
  13. package/dist/components/DataGrid/PinnedColumns.css +21 -3
  14. package/dist/components/DataGrid/PinnedColumns.js +9 -8
  15. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
  16. package/dist/components/DataGrid/TableBody/LoadingCell.css +21 -3
  17. package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -8
  18. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
  19. package/dist/components/DataGrid/TableBody/TableBodyRow.css +21 -3
  20. package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -8
  21. package/dist/components/DataGrid/TableBody/index.cjs +23 -20
  22. package/dist/components/DataGrid/TableBody/index.css +21 -3
  23. package/dist/components/DataGrid/TableBody/index.js +9 -8
  24. package/dist/components/DataGrid/index.cjs +83 -80
  25. package/dist/components/DataGrid/index.css +21 -3
  26. package/dist/components/DataGrid/index.js +9 -8
  27. package/dist/components/DataGrid/utils.cjs +6 -3
  28. package/dist/components/DataGrid/utils.css +21 -3
  29. package/dist/components/DataGrid/utils.js +9 -8
  30. package/dist/components/DateInput.cjs +34 -31
  31. package/dist/components/DateInput.css +21 -3
  32. package/dist/components/DateInput.js +9 -8
  33. package/dist/components/DateRangeInput.cjs +34 -31
  34. package/dist/components/DateRangeInput.css +21 -3
  35. package/dist/components/DateRangeInput.js +9 -8
  36. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
  37. package/dist/components/MobileDataGrid/ColumnSelector/index.css +21 -3
  38. package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -8
  39. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
  40. package/dist/components/MobileDataGrid/MobileDataGridHeader.css +21 -3
  41. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -8
  42. package/dist/components/MobileDataGrid/index.cjs +64 -61
  43. package/dist/components/MobileDataGrid/index.css +21 -3
  44. package/dist/components/MobileDataGrid/index.js +9 -8
  45. package/dist/components/OrderCheckIcon.cjs +67 -0
  46. package/dist/components/OrderCheckIcon.js +7 -0
  47. package/dist/components/PDFViewer/index.js +3 -3
  48. package/dist/components/ProductImagePreview/index.js +2 -2
  49. package/dist/components/SkeletonParagraph.cjs +8 -2
  50. package/dist/components/SkeletonParagraph.js +1 -1
  51. package/dist/components/index.cjs +33 -2
  52. package/dist/components/index.css +21 -3
  53. package/dist/components/index.js +13 -9
  54. package/dist/index.css +21 -3
  55. package/package.json +1 -1
  56. package/src/components/OrderCheckIcon.tsx +19 -0
  57. package/src/components/SkeletonParagraph.tsx +9 -1
  58. package/src/components/index.ts +1 -0
  59. package/src/index.css +4 -3
  60. package/dist/{chunk-TPBEID5X.js → chunk-3WCLGTYP.js} +3 -3
  61. package/dist/{chunk-2A7H5GVB.js → chunk-7LKGHCVT.js} +3 -3
  62. package/dist/{chunk-DYBJUTGK.js → chunk-XHQOTLG6.js} +3 -3
@@ -5501,6 +5501,9 @@ var import_clsx38 = __toESM(require("clsx"), 1);
5501
5501
  var import_react39 = require("react");
5502
5502
  var import_jsx_runtime63 = require("react/jsx-runtime");
5503
5503
 
5504
+ // src/components/OrderCheckIcon.tsx
5505
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5506
+
5504
5507
  // src/components/DataGrid/TableBody/index.tsx
5505
5508
  var import_clsx40 = __toESM(require("clsx"), 1);
5506
5509
 
@@ -5508,7 +5511,7 @@ var import_clsx40 = __toESM(require("clsx"), 1);
5508
5511
  var import_clsx39 = __toESM(require("clsx"), 1);
5509
5512
  var import_react_table3 = require("@tanstack/react-table");
5510
5513
  var import_react40 = __toESM(require("react"), 1);
5511
- var import_jsx_runtime64 = require("react/jsx-runtime");
5514
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5512
5515
  var valueFormatters = {
5513
5516
  date: (value) => typeof value === "string" ? formatDate(value) : "",
5514
5517
  currency: (value) => formatCurrencyDisplay(value)
@@ -5541,7 +5544,7 @@ function TableBodyRow({
5541
5544
  const columns = locked ? visibleCells : virtualColumns;
5542
5545
  const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
5543
5546
  const CellElement = locked ? DataGridCell : DragAlongCell;
5544
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5547
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
5545
5548
  "tr",
5546
5549
  {
5547
5550
  className: (0, import_clsx39.default)(
@@ -5562,7 +5565,7 @@ function TableBodyRow({
5562
5565
  children: [
5563
5566
  !locked && virtualPaddingLeft ? (
5564
5567
  // fake empty column to the left for virtualization scroll padding
5565
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5568
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
5566
5569
  ) : null,
5567
5570
  columns.map((column) => {
5568
5571
  var _a2, _b, _c, _d;
@@ -5573,7 +5576,7 @@ function TableBodyRow({
5573
5576
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
5574
5577
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
5575
5578
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5576
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react40.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5579
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react40.default.Fragment, { children: (0, import_react_table3.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5577
5580
  CellElement,
5578
5581
  {
5579
5582
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -5583,7 +5586,7 @@ function TableBodyRow({
5583
5586
  "justify-start": cellAlignment === "left",
5584
5587
  "justify-end": cellAlignment === "right"
5585
5588
  }),
5586
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5589
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5587
5590
  Tooltip,
5588
5591
  {
5589
5592
  id: id ? `${id}-tooltip-${cell.id}` : void 0,
@@ -5591,7 +5594,7 @@ function TableBodyRow({
5591
5594
  showOnTruncation: true,
5592
5595
  message: cellValue,
5593
5596
  position: "bottom",
5594
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5597
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
5595
5598
  }
5596
5599
  )
5597
5600
  },
@@ -5600,7 +5603,7 @@ function TableBodyRow({
5600
5603
  }),
5601
5604
  !locked && virtualPaddingRight ? (
5602
5605
  // fake empty column to the right for virtualization scroll padding
5603
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5606
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
5604
5607
  ) : null
5605
5608
  ]
5606
5609
  },
@@ -5609,7 +5612,7 @@ function TableBodyRow({
5609
5612
  }
5610
5613
 
5611
5614
  // src/components/DataGrid/TableBody/LoadingCell.tsx
5612
- var import_jsx_runtime65 = require("react/jsx-runtime");
5615
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5613
5616
  function LoadingCell({
5614
5617
  id,
5615
5618
  testid,
@@ -5617,16 +5620,16 @@ function LoadingCell({
5617
5620
  }) {
5618
5621
  const key = `loading-${column.id}`;
5619
5622
  if (column.cell === "checkbox") {
5620
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5623
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
5621
5624
  }
5622
5625
  if (column.cell === "input") {
5623
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5626
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5624
5627
  DataGridCell,
5625
5628
  {
5626
5629
  id: id ? `${id}-${key}` : void 0,
5627
5630
  testid: testid ? `${testid}-${key}` : void 0,
5628
5631
  component: "input",
5629
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5632
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5630
5633
  Input,
5631
5634
  {
5632
5635
  id: id ? `${id}-${key}-input` : void 0,
@@ -5640,11 +5643,11 @@ function LoadingCell({
5640
5643
  key
5641
5644
  );
5642
5645
  }
5643
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5646
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
5644
5647
  }
5645
5648
 
5646
5649
  // src/components/DataGrid/TableBody/index.tsx
5647
- var import_jsx_runtime66 = require("react/jsx-runtime");
5650
+ var import_jsx_runtime67 = require("react/jsx-runtime");
5648
5651
  function TableBody({
5649
5652
  id,
5650
5653
  testid,
@@ -5678,7 +5681,7 @@ function TableBody({
5678
5681
  } else {
5679
5682
  headerGroups = table.getCenterHeaderGroups();
5680
5683
  }
5681
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5684
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5682
5685
  "tbody",
5683
5686
  {
5684
5687
  className: (0, import_clsx40.default)(locked ? "shadow-16" : ""),
@@ -5690,7 +5693,7 @@ function TableBody({
5690
5693
  // needed for absolute positioning of rows
5691
5694
  },
5692
5695
  children: [
5693
- showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5696
+ showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5694
5697
  "tr",
5695
5698
  {
5696
5699
  style: {
@@ -5706,7 +5709,7 @@ function TableBody({
5706
5709
  children: headerGroups.flatMap(
5707
5710
  (x) => x.headers.map((header) => {
5708
5711
  var _a, _b, _c, _d, _e;
5709
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5712
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5710
5713
  CellElement,
5711
5714
  {
5712
5715
  id: id ? `${id}-filter-cell-${header.id}` : void 0,
@@ -5717,7 +5720,7 @@ function TableBody({
5717
5720
  children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
5718
5721
  header,
5719
5722
  table
5720
- })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5723
+ })) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5721
5724
  Search,
5722
5725
  {
5723
5726
  id: id ? `${id}-filter-search-${header.id}` : void 0,
@@ -5738,7 +5741,7 @@ function TableBody({
5738
5741
  ),
5739
5742
  virtualRows.map((virtualRow) => {
5740
5743
  const row = rows[virtualRow.index];
5741
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5744
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5742
5745
  TableBodyRow,
5743
5746
  {
5744
5747
  id,
@@ -5757,7 +5760,7 @@ function TableBody({
5757
5760
  row.id
5758
5761
  );
5759
5762
  }),
5760
- !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5763
+ !pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5761
5764
  "tr",
5762
5765
  {
5763
5766
  style: {
@@ -5767,7 +5770,7 @@ function TableBody({
5767
5770
  transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
5768
5771
  },
5769
5772
  className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
5770
- children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5773
+ children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5771
5774
  LoadingCell,
5772
5775
  {
5773
5776
  id,
@@ -838,6 +838,12 @@
838
838
  .\!w-20 {
839
839
  width: calc(var(--spacing) * 20) !important;
840
840
  }
841
+ .w-1\/2 {
842
+ width: calc(1/2 * 100%);
843
+ }
844
+ .w-1\/4 {
845
+ width: calc(1/4 * 100%);
846
+ }
841
847
  .w-2\/3 {
842
848
  width: calc(2/3 * 100%);
843
849
  }
@@ -922,6 +928,9 @@
922
928
  .min-w-0 {
923
929
  min-width: calc(var(--spacing) * 0);
924
930
  }
931
+ .min-w-10 {
932
+ min-width: calc(var(--spacing) * 10);
933
+ }
925
934
  .min-w-20 {
926
935
  min-width: calc(var(--spacing) * 20);
927
936
  }
@@ -4678,6 +4687,7 @@
4678
4687
  position: relative;
4679
4688
  overflow: hidden;
4680
4689
  background-color: #f7f7f7;
4690
+ opacity: 0.85;
4681
4691
  }
4682
4692
  .skeleton-paragraph::after {
4683
4693
  content: "";
@@ -4687,9 +4697,17 @@
4687
4697
  background-image:
4688
4698
  linear-gradient(
4689
4699
  90deg,
4690
- rgba(255, 255, 255, 0) 0%,
4691
- rgba(255, 255, 255, 0.6) 50%,
4692
- rgba(255, 255, 255, 0) 100%);
4700
+ transparent 0%,
4701
+ color-mix(in srgb, #ffffff 60%, transparent) 50%,
4702
+ transparent 100%);
4703
+ @supports (color: color-mix(in lab, red, red)) {
4704
+ background-image:
4705
+ linear-gradient(
4706
+ 90deg,
4707
+ transparent 0%,
4708
+ color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
4709
+ transparent 100%);
4710
+ }
4693
4711
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
4694
4712
  }
4695
4713
  @keyframes skeleton-shimmer {
@@ -1,31 +1,32 @@
1
1
  import {
2
2
  TableBody
3
- } from "../../../chunk-2A7H5GVB.js";
3
+ } from "../../../chunk-7LKGHCVT.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-4Q7T4GJ2.js";
6
6
  import "../../../chunk-3DEYCNUE.js";
7
- import "../../../chunk-DYBJUTGK.js";
7
+ import "../../../chunk-XHQOTLG6.js";
8
+ import "../../../chunk-BQNPOGD5.js";
8
9
  import "../../../chunk-Y5GD2FJA.js";
9
- import "../../../chunk-TPBEID5X.js";
10
+ import "../../../chunk-3WCLGTYP.js";
11
+ import "../../../chunk-YEZBNQZI.js";
10
12
  import "../../../chunk-B53XDCLO.js";
13
+ import "../../../chunk-S5ZJ3Q7P.js";
11
14
  import "../../../chunk-MBZ55T2D.js";
12
15
  import "../../../chunk-2IKT6IHB.js";
13
16
  import "../../../chunk-YCDDBSVU.js";
14
17
  import "../../../chunk-3X3Y4TMS.js";
15
- import "../../../chunk-BQNPOGD5.js";
16
18
  import "../../../chunk-QMSPTD6L.js";
17
19
  import "../../../chunk-XIXQUEYC.js";
18
20
  import "../../../chunk-5IFPG6TS.js";
19
21
  import "../../../chunk-AJ5M6MVX.js";
20
22
  import "../../../chunk-KW6V7O3H.js";
21
23
  import "../../../chunk-JUFBGNWW.js";
22
- import "../../../chunk-YEZBNQZI.js";
23
- import "../../../chunk-S5ZJ3Q7P.js";
24
+ import "../../../chunk-7GHD74J3.js";
24
25
  import "../../../chunk-AT4AWD6B.js";
25
26
  import "../../../chunk-EWGHVZL5.js";
26
- import "../../../chunk-7GHD74J3.js";
27
27
  import "../../../chunk-7BVUTFZ5.js";
28
- import "../../../chunk-ETAEB3TA.js";
28
+ import "../../../chunk-L3BXRDLP.js";
29
+ import "../../../chunk-34VEVX5H.js";
29
30
  import "../../../chunk-GRGDX7JC.js";
30
31
  import "../../../chunk-HVNHTM3P.js";
31
32
  import "../../../chunk-X67L3NZI.js";