@dmsi/wedgekit-react 0.0.414 → 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.
- package/dist/chunk-3HBYDOYE.js +114 -0
- package/dist/{chunk-JIMJIJOF.js → chunk-5TGP5EFM.js} +2 -2
- package/dist/{chunk-2HMCS25C.js → chunk-6LHBY2IH.js} +1 -1
- package/dist/{chunk-6I5LZ2ZC.js → chunk-7AXHAWJX.js} +3 -3
- package/dist/{chunk-MQX7GFLX.js → chunk-CAQWLY5V.js} +24 -6
- package/dist/{chunk-QQ5G773N.js → chunk-DCLNAUC4.js} +1 -1
- package/dist/{chunk-GB4ZTUQV.js → chunk-DTW7JCBR.js} +36 -0
- package/dist/{chunk-OBY5EH47.js → chunk-HYJIDHAK.js} +6 -6
- package/dist/{chunk-LZGYABCX.js → chunk-IMOIZFJZ.js} +8 -8
- package/dist/chunk-KBJZUVLM.js +65 -0
- package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
- package/dist/chunk-NRNWEQD7.js +66 -0
- package/dist/{chunk-44TDIHUP.js → chunk-P3MIP2FD.js} +1 -1
- package/dist/chunk-PQWWVBSR.js +61 -0
- package/dist/{chunk-ERW5DEIO.js → chunk-RQLWSLVE.js} +1 -1
- package/dist/chunk-TYAQWVIM.js +159 -0
- package/dist/{chunk-KZZKQLKF.js → chunk-W55J2KJZ.js} +1 -1
- package/dist/chunk-Y2GK27RX.js +79 -0
- package/dist/components/Accordion.cjs +74 -2
- package/dist/components/Accordion.js +3 -3
- package/dist/components/CalendarRange.cjs +232 -53
- package/dist/components/CalendarRange.css +178 -65
- package/dist/components/CalendarRange.js +25 -17
- package/dist/components/Card.cjs +38 -2
- package/dist/components/Card.js +1 -1
- package/dist/components/CompactImagesPreview.cjs +59 -5
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +190 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +178 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +25 -17
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +200 -21
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +178 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +25 -17
- package/dist/components/DataGrid/PinnedColumns.cjs +215 -36
- package/dist/components/DataGrid/PinnedColumns.css +178 -65
- package/dist/components/DataGrid/PinnedColumns.js +25 -17
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +191 -12
- package/dist/components/DataGrid/TableBody/LoadingCell.css +178 -65
- package/dist/components/DataGrid/TableBody/LoadingCell.js +25 -17
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +197 -18
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +178 -65
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +25 -17
- package/dist/components/DataGrid/TableBody/index.cjs +212 -33
- package/dist/components/DataGrid/TableBody/index.css +178 -65
- package/dist/components/DataGrid/TableBody/index.js +25 -17
- package/dist/components/DataGrid/index.cjs +301 -122
- package/dist/components/DataGrid/index.css +178 -65
- package/dist/components/DataGrid/index.js +25 -17
- package/dist/components/DataGrid/utils.cjs +191 -12
- package/dist/components/DataGrid/utils.css +178 -65
- package/dist/components/DataGrid/utils.js +25 -17
- package/dist/components/DateInput.cjs +251 -72
- package/dist/components/DateInput.css +178 -65
- package/dist/components/DateInput.js +25 -17
- package/dist/components/DateRangeInput.cjs +251 -72
- package/dist/components/DateRangeInput.css +178 -65
- package/dist/components/DateRangeInput.js +25 -17
- package/dist/components/Grid.cjs +81 -76
- package/dist/components/Grid.js +1 -1
- package/dist/components/ListGroup.cjs +553 -0
- package/dist/components/ListGroup.js +11 -0
- package/dist/components/MobileDataGrid/ColumnList.cjs +36 -0
- package/dist/components/MobileDataGrid/ColumnList.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +198 -19
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +178 -65
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +25 -17
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +242 -27
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +178 -65
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +25 -17
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +36 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +36 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +5 -5
- package/dist/components/MobileDataGrid/index.cjs +742 -527
- package/dist/components/MobileDataGrid/index.css +178 -65
- package/dist/components/MobileDataGrid/index.js +25 -17
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.cjs +36 -0
- package/dist/components/Notification.js +1 -1
- package/dist/components/PDFViewer/PDFElement.cjs +36 -0
- package/dist/components/PDFViewer/PDFElement.js +2 -2
- package/dist/components/PDFViewer/PDFNavigation.cjs +36 -0
- package/dist/components/PDFViewer/PDFNavigation.js +2 -2
- package/dist/components/PDFViewer/index.cjs +36 -0
- package/dist/components/PDFViewer/index.js +8 -111
- package/dist/components/Pagination.cjs +427 -0
- package/dist/components/Pagination.js +10 -0
- package/dist/components/ProductImagePreview/index.cjs +139 -127
- package/dist/components/ProductImagePreview/index.js +5 -5
- package/dist/components/SideMenuGroup.cjs +36 -0
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +36 -0
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/SimpleTable.cjs +521 -0
- package/dist/components/SimpleTable.js +10 -0
- package/dist/components/Stack.cjs +36 -0
- package/dist/components/Stack.js +1 -1
- package/dist/components/Swatch.cjs +36 -0
- package/dist/components/Swatch.js +1 -1
- package/dist/components/Time.cjs +36 -0
- package/dist/components/Time.js +1 -1
- package/dist/components/Tooltip.cjs +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Upload.cjs +36 -0
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +739 -131
- package/dist/components/index.css +178 -65
- package/dist/components/index.js +37 -17
- package/dist/index.css +178 -65
- package/package.json +1 -1
- package/src/components/Card.tsx +60 -2
- package/src/components/CompactImagesPreview.tsx +54 -30
- package/src/components/Grid.tsx +59 -91
- package/src/components/ListGroup.tsx +82 -0
- package/src/components/Pagination.tsx +182 -0
- package/src/components/SimpleTable.tsx +77 -0
- package/src/components/Stack.tsx +76 -0
- package/src/components/Tooltip.tsx +4 -3
- package/src/components/index.ts +4 -0
- package/dist/chunk-ER6RCOH3.js +0 -97
- package/dist/chunk-EZCH4PQS.js +0 -29
- package/dist/{chunk-D6YCMQPO.js → chunk-SBCFBHNG.js} +3 -3
|
@@ -62,7 +62,7 @@ __export(ColumnSelector_exports, {
|
|
|
62
62
|
ColumnSelector: () => ColumnSelector
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(ColumnSelector_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react36 = require("react");
|
|
66
66
|
|
|
67
67
|
// src/components/DataGridCell.tsx
|
|
68
68
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -3972,7 +3972,7 @@ var Tooltip = ({
|
|
|
3972
3972
|
id,
|
|
3973
3973
|
"data-testid": testid,
|
|
3974
3974
|
ref,
|
|
3975
|
-
className: "relative inline-grid grid-cols-[auto_1fr] items-center",
|
|
3975
|
+
className: "relative inline-grid grid-cols-[auto_1fr] items-center cursor-pointer",
|
|
3976
3976
|
onMouseEnter: handleMouseEnter,
|
|
3977
3977
|
onMouseLeave: handleMouseLeave,
|
|
3978
3978
|
children: [
|
|
@@ -4566,12 +4566,11 @@ var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
|
4566
4566
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4567
4567
|
|
|
4568
4568
|
// src/components/Grid.tsx
|
|
4569
|
-
var import_react26 = require("react");
|
|
4570
4569
|
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
4571
4570
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4572
4571
|
|
|
4573
4572
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4574
|
-
var
|
|
4573
|
+
var import_react26 = require("react");
|
|
4575
4574
|
|
|
4576
4575
|
// src/components/Spinner.tsx
|
|
4577
4576
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
@@ -4607,7 +4606,7 @@ Spinner.displayName = "Spinner";
|
|
|
4607
4606
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4608
4607
|
|
|
4609
4608
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4610
|
-
var
|
|
4609
|
+
var import_react27 = require("react");
|
|
4611
4610
|
|
|
4612
4611
|
// src/components/Surface.tsx
|
|
4613
4612
|
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
@@ -4652,26 +4651,206 @@ var import_clsx32 = require("clsx");
|
|
|
4652
4651
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4653
4652
|
|
|
4654
4653
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4655
|
-
var
|
|
4654
|
+
var import_react28 = require("react");
|
|
4656
4655
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4657
4656
|
|
|
4658
4657
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4659
|
-
var
|
|
4658
|
+
var import_react29 = require("react");
|
|
4660
4659
|
|
|
4661
4660
|
// src/components/ProductImagePreview/index.tsx
|
|
4662
4661
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4663
4662
|
|
|
4664
4663
|
// src/components/CompactImagesPreview.tsx
|
|
4665
|
-
var
|
|
4664
|
+
var import_react30 = require("react");
|
|
4666
4665
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4667
4666
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4668
4667
|
|
|
4669
|
-
// src/components/
|
|
4668
|
+
// src/components/SimpleTable.tsx
|
|
4669
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4670
4670
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4671
|
+
|
|
4672
|
+
// src/components/PDFViewer/index.tsx
|
|
4673
|
+
var import_react33 = require("react");
|
|
4674
|
+
|
|
4675
|
+
// src/components/PDFViewer/PDFElement.tsx
|
|
4676
|
+
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4677
|
+
var import_react32 = require("react");
|
|
4678
|
+
|
|
4679
|
+
// src/components/PDFViewer/PDFPage.tsx
|
|
4680
|
+
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4681
|
+
var import_react31 = require("react");
|
|
4682
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4683
|
+
|
|
4684
|
+
// src/components/PDFViewer/PDFElement.tsx
|
|
4685
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
4686
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4687
|
+
|
|
4688
|
+
// src/components/PDFViewer/DownloadIcon.tsx
|
|
4689
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4690
|
+
|
|
4691
|
+
// src/components/PDFViewer/PDFNavigation.tsx
|
|
4692
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4693
|
+
|
|
4694
|
+
// src/components/PDFViewer/index.tsx
|
|
4695
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4696
|
+
|
|
4697
|
+
// src/components/ListGroup.tsx
|
|
4698
|
+
var import_react34 = require("react");
|
|
4699
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
4700
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4701
|
+
|
|
4702
|
+
// src/components/Pagination.tsx
|
|
4703
|
+
var import_react35 = require("react");
|
|
4704
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
4705
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4706
|
+
var Pagination = ({
|
|
4707
|
+
totalPages,
|
|
4708
|
+
currentPage,
|
|
4709
|
+
onPageChange,
|
|
4710
|
+
id,
|
|
4711
|
+
testid,
|
|
4712
|
+
className,
|
|
4713
|
+
disabled
|
|
4714
|
+
}) => {
|
|
4715
|
+
const goTo = (0, import_react35.useCallback)(
|
|
4716
|
+
(page) => {
|
|
4717
|
+
if (disabled) return;
|
|
4718
|
+
onPageChange(page);
|
|
4719
|
+
},
|
|
4720
|
+
[onPageChange, disabled]
|
|
4721
|
+
);
|
|
4722
|
+
const handleKey = (e) => {
|
|
4723
|
+
if (disabled) return;
|
|
4724
|
+
if (e.key === "ArrowLeft") {
|
|
4725
|
+
e.preventDefault();
|
|
4726
|
+
goTo(currentPage - 1);
|
|
4727
|
+
} else if (e.key === "ArrowRight") {
|
|
4728
|
+
e.preventDefault();
|
|
4729
|
+
goTo(currentPage + 1);
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4732
|
+
const pageTokens = (0, import_react35.useMemo)(() => {
|
|
4733
|
+
if (totalPages <= 5) {
|
|
4734
|
+
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
4735
|
+
}
|
|
4736
|
+
const pages = /* @__PURE__ */ new Set();
|
|
4737
|
+
pages.add(1);
|
|
4738
|
+
pages.add(totalPages);
|
|
4739
|
+
if (currentPage <= 3) {
|
|
4740
|
+
pages.add(2);
|
|
4741
|
+
pages.add(3);
|
|
4742
|
+
pages.add(4);
|
|
4743
|
+
} else if (currentPage >= totalPages - 2) {
|
|
4744
|
+
pages.add(totalPages - 1);
|
|
4745
|
+
pages.add(totalPages - 2);
|
|
4746
|
+
pages.add(totalPages - 3);
|
|
4747
|
+
} else {
|
|
4748
|
+
pages.add(currentPage - 1);
|
|
4749
|
+
pages.add(currentPage);
|
|
4750
|
+
pages.add(currentPage + 1);
|
|
4751
|
+
}
|
|
4752
|
+
const sorted = Array.from(pages).sort((a, b) => a - b);
|
|
4753
|
+
const tokens = [];
|
|
4754
|
+
for (let i = 0; i < sorted.length; i++) {
|
|
4755
|
+
const value = sorted[i];
|
|
4756
|
+
const prev = sorted[i - 1];
|
|
4757
|
+
if (i > 0) {
|
|
4758
|
+
if (value - prev === 2) {
|
|
4759
|
+
tokens.push(prev + 1);
|
|
4760
|
+
} else if (value - prev > 2) {
|
|
4761
|
+
tokens.push("ellipsis");
|
|
4762
|
+
}
|
|
4763
|
+
}
|
|
4764
|
+
tokens.push(value);
|
|
4765
|
+
}
|
|
4766
|
+
return tokens;
|
|
4767
|
+
}, [totalPages, currentPage]);
|
|
4768
|
+
if (totalPages <= 1) return null;
|
|
4769
|
+
const buttonClass = (0, import_clsx37.default)(
|
|
4770
|
+
"cursor-pointer disabled:cursor-default",
|
|
4771
|
+
paddingUsingComponentGap,
|
|
4772
|
+
"w-8 h-8",
|
|
4773
|
+
"flex items-center justify-center",
|
|
4774
|
+
"bg-transparent",
|
|
4775
|
+
"box-content",
|
|
4776
|
+
"hover:bg-background-grouped-secondary-normal",
|
|
4777
|
+
"focus:bg-background-grouped-secondary-normal focus:outline-0",
|
|
4778
|
+
"disabled:bg-transparent disabled:text-text-action-primary-disabled"
|
|
4779
|
+
);
|
|
4780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4781
|
+
"nav",
|
|
4782
|
+
{
|
|
4783
|
+
id,
|
|
4784
|
+
"data-testid": testid,
|
|
4785
|
+
"aria-label": "Pagination",
|
|
4786
|
+
onKeyDown: handleKey,
|
|
4787
|
+
className: (0, import_clsx37.default)(
|
|
4788
|
+
"flex items-center",
|
|
4789
|
+
"border border-border-primary-normal",
|
|
4790
|
+
"bg-background-grouped-primary-normal",
|
|
4791
|
+
"rounded-sm",
|
|
4792
|
+
className
|
|
4793
|
+
),
|
|
4794
|
+
children: [
|
|
4795
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4796
|
+
"button",
|
|
4797
|
+
{
|
|
4798
|
+
disabled: disabled || currentPage <= 1,
|
|
4799
|
+
"aria-label": "Previous page",
|
|
4800
|
+
onClick: () => goTo(currentPage - 1),
|
|
4801
|
+
className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
4802
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
4803
|
+
}
|
|
4804
|
+
),
|
|
4805
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
4806
|
+
if (token === "ellipsis") {
|
|
4807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4808
|
+
"li",
|
|
4809
|
+
{
|
|
4810
|
+
className: "w-8 h-8 select-none text-text-action-primary-disabled",
|
|
4811
|
+
children: "\u2026"
|
|
4812
|
+
},
|
|
4813
|
+
`ellipsis-${index}`
|
|
4814
|
+
);
|
|
4815
|
+
}
|
|
4816
|
+
const selected = token === currentPage;
|
|
4817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4818
|
+
"button",
|
|
4819
|
+
{
|
|
4820
|
+
"aria-label": `Page ${token}`,
|
|
4821
|
+
"aria-current": selected ? "page" : void 0,
|
|
4822
|
+
disabled,
|
|
4823
|
+
onClick: () => goTo(token),
|
|
4824
|
+
className: (0, import_clsx37.default)(
|
|
4825
|
+
buttonClass,
|
|
4826
|
+
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
4827
|
+
),
|
|
4828
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Subheader, { align: "center", weight: "bold", children: token })
|
|
4829
|
+
}
|
|
4830
|
+
) }, token);
|
|
4831
|
+
}) }),
|
|
4832
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4833
|
+
"button",
|
|
4834
|
+
{
|
|
4835
|
+
disabled: disabled || currentPage >= totalPages,
|
|
4836
|
+
"aria-label": "Next page",
|
|
4837
|
+
onClick: () => goTo(currentPage + 1),
|
|
4838
|
+
className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
4839
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
4840
|
+
}
|
|
4841
|
+
)
|
|
4842
|
+
]
|
|
4843
|
+
}
|
|
4844
|
+
);
|
|
4845
|
+
};
|
|
4846
|
+
Pagination.displayName = "Pagination";
|
|
4847
|
+
|
|
4848
|
+
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
4849
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4671
4850
|
function ColumnSelector() {
|
|
4672
4851
|
const context = useGridContext();
|
|
4673
|
-
const ref = (0,
|
|
4674
|
-
const [show, setShow] = (0,
|
|
4852
|
+
const ref = (0, import_react36.useRef)(null);
|
|
4853
|
+
const [show, setShow] = (0, import_react36.useState)(false);
|
|
4675
4854
|
const {
|
|
4676
4855
|
columns,
|
|
4677
4856
|
id,
|
|
@@ -4682,13 +4861,13 @@ function ColumnSelector() {
|
|
|
4682
4861
|
resetColumnVisibility,
|
|
4683
4862
|
dispatch
|
|
4684
4863
|
} = context;
|
|
4685
|
-
const toggleColumnVisibility = (0,
|
|
4864
|
+
const toggleColumnVisibility = (0, import_react36.useCallback)(
|
|
4686
4865
|
(index, visible) => {
|
|
4687
4866
|
dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
|
|
4688
4867
|
},
|
|
4689
4868
|
[dispatch]
|
|
4690
4869
|
);
|
|
4691
|
-
return /* @__PURE__ */ (0,
|
|
4870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4692
4871
|
"div",
|
|
4693
4872
|
{
|
|
4694
4873
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -4696,7 +4875,7 @@ function ColumnSelector() {
|
|
|
4696
4875
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
4697
4876
|
ref,
|
|
4698
4877
|
children: [
|
|
4699
|
-
/* @__PURE__ */ (0,
|
|
4878
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4700
4879
|
Button,
|
|
4701
4880
|
{
|
|
4702
4881
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4705,10 +4884,10 @@ function ColumnSelector() {
|
|
|
4705
4884
|
variant: "navigation",
|
|
4706
4885
|
iconOnly: true,
|
|
4707
4886
|
size: 24,
|
|
4708
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4887
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "tune" })
|
|
4709
4888
|
}
|
|
4710
4889
|
),
|
|
4711
|
-
/* @__PURE__ */ (0,
|
|
4890
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4712
4891
|
Menu,
|
|
4713
4892
|
{
|
|
4714
4893
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4719,7 +4898,7 @@ function ColumnSelector() {
|
|
|
4719
4898
|
setShow,
|
|
4720
4899
|
calculateMinMaxHeight: true,
|
|
4721
4900
|
children: [
|
|
4722
|
-
/* @__PURE__ */ (0,
|
|
4901
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4723
4902
|
Button,
|
|
4724
4903
|
{
|
|
4725
4904
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4737,11 +4916,11 @@ function ColumnSelector() {
|
|
|
4737
4916
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4738
4917
|
}).map((column) => {
|
|
4739
4918
|
var _a, _b, _c;
|
|
4740
|
-
return /* @__PURE__ */ (0,
|
|
4919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4741
4920
|
MenuOption,
|
|
4742
4921
|
{
|
|
4743
4922
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
4744
|
-
children: /* @__PURE__ */ (0,
|
|
4923
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4745
4924
|
Checkbox,
|
|
4746
4925
|
{
|
|
4747
4926
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|