@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompactImagesPreview
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CAQWLY5V.js";
|
|
4
4
|
import "../chunk-MYKYZHEO.js";
|
|
5
5
|
import "../chunk-VXWSAIB5.js";
|
|
6
6
|
import "../chunk-TYTD4FLW.js";
|
|
7
7
|
import "../chunk-5UH6QUFB.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-DTW7JCBR.js";
|
|
9
9
|
import "../chunk-6CTCHYIS.js";
|
|
10
10
|
import "../chunk-ORMEWXMH.js";
|
|
11
11
|
export {
|
|
@@ -62,7 +62,7 @@ __export(ColumnSelectorMenuOption_exports, {
|
|
|
62
62
|
ColumnSelectorMenuOption: () => ColumnSelectorMenuOption
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(ColumnSelectorMenuOption_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");
|
|
@@ -3944,7 +3944,7 @@ var Tooltip = ({
|
|
|
3944
3944
|
id,
|
|
3945
3945
|
"data-testid": testid,
|
|
3946
3946
|
ref,
|
|
3947
|
-
className: "relative inline-grid grid-cols-[auto_1fr] items-center",
|
|
3947
|
+
className: "relative inline-grid grid-cols-[auto_1fr] items-center cursor-pointer",
|
|
3948
3948
|
onMouseEnter: handleMouseEnter,
|
|
3949
3949
|
onMouseLeave: handleMouseLeave,
|
|
3950
3950
|
children: [
|
|
@@ -4535,12 +4535,11 @@ var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
|
4535
4535
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4536
4536
|
|
|
4537
4537
|
// src/components/Grid.tsx
|
|
4538
|
-
var import_react26 = require("react");
|
|
4539
4538
|
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
4540
4539
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4541
4540
|
|
|
4542
4541
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4543
|
-
var
|
|
4542
|
+
var import_react26 = require("react");
|
|
4544
4543
|
|
|
4545
4544
|
// src/components/Spinner.tsx
|
|
4546
4545
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
@@ -4576,7 +4575,7 @@ Spinner.displayName = "Spinner";
|
|
|
4576
4575
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4577
4576
|
|
|
4578
4577
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4579
|
-
var
|
|
4578
|
+
var import_react27 = require("react");
|
|
4580
4579
|
|
|
4581
4580
|
// src/components/Surface.tsx
|
|
4582
4581
|
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
@@ -4621,31 +4620,211 @@ var import_clsx32 = require("clsx");
|
|
|
4621
4620
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4622
4621
|
|
|
4623
4622
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4624
|
-
var
|
|
4623
|
+
var import_react28 = require("react");
|
|
4625
4624
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4626
4625
|
|
|
4627
4626
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4628
|
-
var
|
|
4627
|
+
var import_react29 = require("react");
|
|
4629
4628
|
|
|
4630
4629
|
// src/components/ProductImagePreview/index.tsx
|
|
4631
4630
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4632
4631
|
|
|
4633
4632
|
// src/components/CompactImagesPreview.tsx
|
|
4634
|
-
var
|
|
4633
|
+
var import_react30 = require("react");
|
|
4635
4634
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4636
4635
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4637
4636
|
|
|
4638
|
-
// src/components/
|
|
4637
|
+
// src/components/SimpleTable.tsx
|
|
4638
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4639
4639
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4640
|
+
|
|
4641
|
+
// src/components/PDFViewer/index.tsx
|
|
4642
|
+
var import_react33 = require("react");
|
|
4643
|
+
|
|
4644
|
+
// src/components/PDFViewer/PDFElement.tsx
|
|
4645
|
+
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4646
|
+
var import_react32 = require("react");
|
|
4647
|
+
|
|
4648
|
+
// src/components/PDFViewer/PDFPage.tsx
|
|
4649
|
+
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4650
|
+
var import_react31 = require("react");
|
|
4651
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4652
|
+
|
|
4653
|
+
// src/components/PDFViewer/PDFElement.tsx
|
|
4654
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
4655
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4656
|
+
|
|
4657
|
+
// src/components/PDFViewer/DownloadIcon.tsx
|
|
4658
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4659
|
+
|
|
4660
|
+
// src/components/PDFViewer/PDFNavigation.tsx
|
|
4661
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4662
|
+
|
|
4663
|
+
// src/components/PDFViewer/index.tsx
|
|
4664
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4665
|
+
|
|
4666
|
+
// src/components/ListGroup.tsx
|
|
4667
|
+
var import_react34 = require("react");
|
|
4668
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
4669
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4670
|
+
|
|
4671
|
+
// src/components/Pagination.tsx
|
|
4672
|
+
var import_react35 = require("react");
|
|
4673
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
4674
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4675
|
+
var Pagination = ({
|
|
4676
|
+
totalPages,
|
|
4677
|
+
currentPage,
|
|
4678
|
+
onPageChange,
|
|
4679
|
+
id,
|
|
4680
|
+
testid,
|
|
4681
|
+
className,
|
|
4682
|
+
disabled
|
|
4683
|
+
}) => {
|
|
4684
|
+
const goTo = (0, import_react35.useCallback)(
|
|
4685
|
+
(page) => {
|
|
4686
|
+
if (disabled) return;
|
|
4687
|
+
onPageChange(page);
|
|
4688
|
+
},
|
|
4689
|
+
[onPageChange, disabled]
|
|
4690
|
+
);
|
|
4691
|
+
const handleKey = (e) => {
|
|
4692
|
+
if (disabled) return;
|
|
4693
|
+
if (e.key === "ArrowLeft") {
|
|
4694
|
+
e.preventDefault();
|
|
4695
|
+
goTo(currentPage - 1);
|
|
4696
|
+
} else if (e.key === "ArrowRight") {
|
|
4697
|
+
e.preventDefault();
|
|
4698
|
+
goTo(currentPage + 1);
|
|
4699
|
+
}
|
|
4700
|
+
};
|
|
4701
|
+
const pageTokens = (0, import_react35.useMemo)(() => {
|
|
4702
|
+
if (totalPages <= 5) {
|
|
4703
|
+
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
4704
|
+
}
|
|
4705
|
+
const pages = /* @__PURE__ */ new Set();
|
|
4706
|
+
pages.add(1);
|
|
4707
|
+
pages.add(totalPages);
|
|
4708
|
+
if (currentPage <= 3) {
|
|
4709
|
+
pages.add(2);
|
|
4710
|
+
pages.add(3);
|
|
4711
|
+
pages.add(4);
|
|
4712
|
+
} else if (currentPage >= totalPages - 2) {
|
|
4713
|
+
pages.add(totalPages - 1);
|
|
4714
|
+
pages.add(totalPages - 2);
|
|
4715
|
+
pages.add(totalPages - 3);
|
|
4716
|
+
} else {
|
|
4717
|
+
pages.add(currentPage - 1);
|
|
4718
|
+
pages.add(currentPage);
|
|
4719
|
+
pages.add(currentPage + 1);
|
|
4720
|
+
}
|
|
4721
|
+
const sorted = Array.from(pages).sort((a, b) => a - b);
|
|
4722
|
+
const tokens = [];
|
|
4723
|
+
for (let i = 0; i < sorted.length; i++) {
|
|
4724
|
+
const value = sorted[i];
|
|
4725
|
+
const prev = sorted[i - 1];
|
|
4726
|
+
if (i > 0) {
|
|
4727
|
+
if (value - prev === 2) {
|
|
4728
|
+
tokens.push(prev + 1);
|
|
4729
|
+
} else if (value - prev > 2) {
|
|
4730
|
+
tokens.push("ellipsis");
|
|
4731
|
+
}
|
|
4732
|
+
}
|
|
4733
|
+
tokens.push(value);
|
|
4734
|
+
}
|
|
4735
|
+
return tokens;
|
|
4736
|
+
}, [totalPages, currentPage]);
|
|
4737
|
+
if (totalPages <= 1) return null;
|
|
4738
|
+
const buttonClass = (0, import_clsx37.default)(
|
|
4739
|
+
"cursor-pointer disabled:cursor-default",
|
|
4740
|
+
paddingUsingComponentGap,
|
|
4741
|
+
"w-8 h-8",
|
|
4742
|
+
"flex items-center justify-center",
|
|
4743
|
+
"bg-transparent",
|
|
4744
|
+
"box-content",
|
|
4745
|
+
"hover:bg-background-grouped-secondary-normal",
|
|
4746
|
+
"focus:bg-background-grouped-secondary-normal focus:outline-0",
|
|
4747
|
+
"disabled:bg-transparent disabled:text-text-action-primary-disabled"
|
|
4748
|
+
);
|
|
4749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4750
|
+
"nav",
|
|
4751
|
+
{
|
|
4752
|
+
id,
|
|
4753
|
+
"data-testid": testid,
|
|
4754
|
+
"aria-label": "Pagination",
|
|
4755
|
+
onKeyDown: handleKey,
|
|
4756
|
+
className: (0, import_clsx37.default)(
|
|
4757
|
+
"flex items-center",
|
|
4758
|
+
"border border-border-primary-normal",
|
|
4759
|
+
"bg-background-grouped-primary-normal",
|
|
4760
|
+
"rounded-sm",
|
|
4761
|
+
className
|
|
4762
|
+
),
|
|
4763
|
+
children: [
|
|
4764
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4765
|
+
"button",
|
|
4766
|
+
{
|
|
4767
|
+
disabled: disabled || currentPage <= 1,
|
|
4768
|
+
"aria-label": "Previous page",
|
|
4769
|
+
onClick: () => goTo(currentPage - 1),
|
|
4770
|
+
className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
4771
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
4772
|
+
}
|
|
4773
|
+
),
|
|
4774
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
4775
|
+
if (token === "ellipsis") {
|
|
4776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4777
|
+
"li",
|
|
4778
|
+
{
|
|
4779
|
+
className: "w-8 h-8 select-none text-text-action-primary-disabled",
|
|
4780
|
+
children: "\u2026"
|
|
4781
|
+
},
|
|
4782
|
+
`ellipsis-${index}`
|
|
4783
|
+
);
|
|
4784
|
+
}
|
|
4785
|
+
const selected = token === currentPage;
|
|
4786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4787
|
+
"button",
|
|
4788
|
+
{
|
|
4789
|
+
"aria-label": `Page ${token}`,
|
|
4790
|
+
"aria-current": selected ? "page" : void 0,
|
|
4791
|
+
disabled,
|
|
4792
|
+
onClick: () => goTo(token),
|
|
4793
|
+
className: (0, import_clsx37.default)(
|
|
4794
|
+
buttonClass,
|
|
4795
|
+
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
4796
|
+
),
|
|
4797
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Subheader, { align: "center", weight: "bold", children: token })
|
|
4798
|
+
}
|
|
4799
|
+
) }, token);
|
|
4800
|
+
}) }),
|
|
4801
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4802
|
+
"button",
|
|
4803
|
+
{
|
|
4804
|
+
disabled: disabled || currentPage >= totalPages,
|
|
4805
|
+
"aria-label": "Next page",
|
|
4806
|
+
onClick: () => goTo(currentPage + 1),
|
|
4807
|
+
className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
4808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
4809
|
+
}
|
|
4810
|
+
)
|
|
4811
|
+
]
|
|
4812
|
+
}
|
|
4813
|
+
);
|
|
4814
|
+
};
|
|
4815
|
+
Pagination.displayName = "Pagination";
|
|
4816
|
+
|
|
4817
|
+
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4818
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4640
4819
|
function ColumnSelectorMenuOption({
|
|
4641
4820
|
id,
|
|
4642
4821
|
testid,
|
|
4643
4822
|
column,
|
|
4644
4823
|
toggleColumnVisibility
|
|
4645
4824
|
}) {
|
|
4646
|
-
const [isVisible, setIsVisible] = (0,
|
|
4825
|
+
const [isVisible, setIsVisible] = (0, import_react36.useState)(column.getIsVisible());
|
|
4647
4826
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4648
|
-
return /* @__PURE__ */ (0,
|
|
4827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4649
4828
|
Checkbox,
|
|
4650
4829
|
{
|
|
4651
4830
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -690,6 +690,9 @@
|
|
|
690
690
|
.ml-auto {
|
|
691
691
|
margin-left: auto;
|
|
692
692
|
}
|
|
693
|
+
.box-content {
|
|
694
|
+
box-sizing: content-box;
|
|
695
|
+
}
|
|
693
696
|
.block {
|
|
694
697
|
display: block;
|
|
695
698
|
}
|
|
@@ -841,6 +844,9 @@
|
|
|
841
844
|
.\!w-20 {
|
|
842
845
|
width: calc(var(--spacing) * 20) !important;
|
|
843
846
|
}
|
|
847
|
+
.w-2\/3 {
|
|
848
|
+
width: calc(2/3 * 100%);
|
|
849
|
+
}
|
|
844
850
|
.w-3 {
|
|
845
851
|
width: calc(var(--spacing) * 3);
|
|
846
852
|
}
|
|
@@ -961,6 +967,9 @@
|
|
|
961
967
|
.grow-0 {
|
|
962
968
|
flex-grow: 0;
|
|
963
969
|
}
|
|
970
|
+
.border-collapse {
|
|
971
|
+
border-collapse: collapse;
|
|
972
|
+
}
|
|
964
973
|
.translate-x-0 {
|
|
965
974
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
975
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -996,6 +1005,9 @@
|
|
|
996
1005
|
.cursor-grab {
|
|
997
1006
|
cursor: grab;
|
|
998
1007
|
}
|
|
1008
|
+
.cursor-not-allowed {
|
|
1009
|
+
cursor: not-allowed;
|
|
1010
|
+
}
|
|
999
1011
|
.cursor-pointer {
|
|
1000
1012
|
cursor: pointer;
|
|
1001
1013
|
}
|
|
@@ -1074,6 +1086,9 @@
|
|
|
1074
1086
|
.justify-start {
|
|
1075
1087
|
justify-content: flex-start;
|
|
1076
1088
|
}
|
|
1089
|
+
.gap-0 {
|
|
1090
|
+
gap: calc(var(--spacing) * 0);
|
|
1091
|
+
}
|
|
1077
1092
|
.gap-0\.5 {
|
|
1078
1093
|
gap: calc(var(--spacing) * 0.5);
|
|
1079
1094
|
}
|
|
@@ -1284,6 +1299,10 @@
|
|
|
1284
1299
|
border-inline-style: var(--tw-border-style);
|
|
1285
1300
|
border-inline-width: 0px;
|
|
1286
1301
|
}
|
|
1302
|
+
.border-x-1 {
|
|
1303
|
+
border-inline-style: var(--tw-border-style);
|
|
1304
|
+
border-inline-width: 1px;
|
|
1305
|
+
}
|
|
1287
1306
|
.border-y {
|
|
1288
1307
|
border-block-style: var(--tw-border-style);
|
|
1289
1308
|
border-block-width: 1px;
|
|
@@ -1300,6 +1319,10 @@
|
|
|
1300
1319
|
border-right-style: var(--tw-border-style);
|
|
1301
1320
|
border-right-width: 0px;
|
|
1302
1321
|
}
|
|
1322
|
+
.border-r-1 {
|
|
1323
|
+
border-right-style: var(--tw-border-style);
|
|
1324
|
+
border-right-width: 1px;
|
|
1325
|
+
}
|
|
1303
1326
|
.border-b {
|
|
1304
1327
|
border-bottom-style: var(--tw-border-style);
|
|
1305
1328
|
border-bottom-width: 1px;
|
|
@@ -1308,6 +1331,10 @@
|
|
|
1308
1331
|
border-left-style: var(--tw-border-style);
|
|
1309
1332
|
border-left-width: 1px;
|
|
1310
1333
|
}
|
|
1334
|
+
.border-l-1 {
|
|
1335
|
+
border-left-style: var(--tw-border-style);
|
|
1336
|
+
border-left-width: 1px;
|
|
1337
|
+
}
|
|
1311
1338
|
.border-dashed {
|
|
1312
1339
|
--tw-border-style: dashed;
|
|
1313
1340
|
border-style: dashed;
|
|
@@ -1885,6 +1912,9 @@
|
|
|
1885
1912
|
.\!p-0 {
|
|
1886
1913
|
padding: calc(var(--spacing) * 0) !important;
|
|
1887
1914
|
}
|
|
1915
|
+
.p-0 {
|
|
1916
|
+
padding: calc(var(--spacing) * 0);
|
|
1917
|
+
}
|
|
1888
1918
|
.p-0\.5 {
|
|
1889
1919
|
padding: calc(var(--spacing) * 0.5);
|
|
1890
1920
|
}
|
|
@@ -1999,12 +2029,33 @@
|
|
|
1999
2029
|
.pt-\[7px\] {
|
|
2000
2030
|
padding-top: 7px;
|
|
2001
2031
|
}
|
|
2032
|
+
.pt-mobile-component-padding {
|
|
2033
|
+
padding-top: var(--spacing-mobile-component-padding);
|
|
2034
|
+
}
|
|
2035
|
+
.pt-mobile-container-padding {
|
|
2036
|
+
padding-top: var(--spacing-mobile-container-padding);
|
|
2037
|
+
}
|
|
2038
|
+
.pt-mobile-layout-padding {
|
|
2039
|
+
padding-top: var(--spacing-mobile-layout-padding);
|
|
2040
|
+
}
|
|
2041
|
+
.pr-mobile-component-padding {
|
|
2042
|
+
padding-right: var(--spacing-mobile-component-padding);
|
|
2043
|
+
}
|
|
2044
|
+
.pr-mobile-container-padding {
|
|
2045
|
+
padding-right: var(--spacing-mobile-container-padding);
|
|
2046
|
+
}
|
|
2047
|
+
.pr-mobile-layout-padding {
|
|
2048
|
+
padding-right: var(--spacing-mobile-layout-padding);
|
|
2049
|
+
}
|
|
2002
2050
|
.pb-2 {
|
|
2003
2051
|
padding-bottom: calc(var(--spacing) * 2);
|
|
2004
2052
|
}
|
|
2005
2053
|
.pb-mobile-component-padding {
|
|
2006
2054
|
padding-bottom: var(--spacing-mobile-component-padding);
|
|
2007
2055
|
}
|
|
2056
|
+
.pb-mobile-container-padding {
|
|
2057
|
+
padding-bottom: var(--spacing-mobile-container-padding);
|
|
2058
|
+
}
|
|
2008
2059
|
.pb-mobile-layout-padding {
|
|
2009
2060
|
padding-bottom: var(--spacing-mobile-layout-padding);
|
|
2010
2061
|
}
|
|
@@ -2026,6 +2077,12 @@
|
|
|
2026
2077
|
.pl-mobile-component-padding {
|
|
2027
2078
|
padding-left: var(--spacing-mobile-component-padding);
|
|
2028
2079
|
}
|
|
2080
|
+
.pl-mobile-container-padding {
|
|
2081
|
+
padding-left: var(--spacing-mobile-container-padding);
|
|
2082
|
+
}
|
|
2083
|
+
.pl-mobile-layout-padding {
|
|
2084
|
+
padding-left: var(--spacing-mobile-layout-padding);
|
|
2085
|
+
}
|
|
2029
2086
|
.text-center {
|
|
2030
2087
|
text-align: center;
|
|
2031
2088
|
}
|
|
@@ -2035,6 +2092,9 @@
|
|
|
2035
2092
|
.text-right {
|
|
2036
2093
|
text-align: right;
|
|
2037
2094
|
}
|
|
2095
|
+
.align-middle {
|
|
2096
|
+
vertical-align: middle;
|
|
2097
|
+
}
|
|
2038
2098
|
.font-sans {
|
|
2039
2099
|
font-family: var(--font-sans);
|
|
2040
2100
|
}
|
|
@@ -2243,6 +2303,9 @@
|
|
|
2243
2303
|
.text-text-action-normal {
|
|
2244
2304
|
color: var(--color-text-action-normal);
|
|
2245
2305
|
}
|
|
2306
|
+
.text-text-action-primary-disabled {
|
|
2307
|
+
color: var(--color-text-action-primary-disabled);
|
|
2308
|
+
}
|
|
2246
2309
|
.text-text-action-primary-normal {
|
|
2247
2310
|
color: var(--color-text-action-primary-normal);
|
|
2248
2311
|
}
|
|
@@ -2321,6 +2384,9 @@
|
|
|
2321
2384
|
.opacity-40 {
|
|
2322
2385
|
opacity: 40%;
|
|
2323
2386
|
}
|
|
2387
|
+
.opacity-50 {
|
|
2388
|
+
opacity: 50%;
|
|
2389
|
+
}
|
|
2324
2390
|
.opacity-70 {
|
|
2325
2391
|
opacity: 70%;
|
|
2326
2392
|
}
|
|
@@ -3060,6 +3126,13 @@
|
|
|
3060
3126
|
}
|
|
3061
3127
|
}
|
|
3062
3128
|
}
|
|
3129
|
+
.hover\:bg-background-grouped-secondary-normal {
|
|
3130
|
+
&:hover {
|
|
3131
|
+
@media (hover: hover) {
|
|
3132
|
+
background-color: var(--color-background-grouped-secondary-normal);
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3063
3136
|
.hover\:\!text-brand-text-on-action-primary-hover {
|
|
3064
3137
|
&:hover {
|
|
3065
3138
|
@media (hover: hover) {
|
|
@@ -3206,6 +3279,11 @@
|
|
|
3206
3279
|
background-color: var(--color-background-action-secondary-hover);
|
|
3207
3280
|
}
|
|
3208
3281
|
}
|
|
3282
|
+
.focus\:bg-background-grouped-secondary-normal {
|
|
3283
|
+
&:focus {
|
|
3284
|
+
background-color: var(--color-background-grouped-secondary-normal);
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3209
3287
|
.focus\:text-text-action-critical-hover {
|
|
3210
3288
|
&:focus {
|
|
3211
3289
|
color: var(--color-text-action-critical-hover);
|
|
@@ -3416,6 +3494,11 @@
|
|
|
3416
3494
|
pointer-events: none;
|
|
3417
3495
|
}
|
|
3418
3496
|
}
|
|
3497
|
+
.disabled\:cursor-default {
|
|
3498
|
+
&:disabled {
|
|
3499
|
+
cursor: default;
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3419
3502
|
.disabled\:\!border-border-primary-normal {
|
|
3420
3503
|
&:disabled {
|
|
3421
3504
|
border-color: var(--color-border-primary-normal) !important;
|
|
@@ -3722,11 +3805,6 @@
|
|
|
3722
3805
|
width: 100%;
|
|
3723
3806
|
}
|
|
3724
3807
|
}
|
|
3725
|
-
.sm\:grid-cols-2 {
|
|
3726
|
-
@media (width >= 320px) {
|
|
3727
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3728
|
-
}
|
|
3729
|
-
}
|
|
3730
3808
|
.md\:block {
|
|
3731
3809
|
@media (width >= 768px) {
|
|
3732
3810
|
display: block;
|
|
@@ -3757,66 +3835,6 @@
|
|
|
3757
3835
|
gap: calc(var(--spacing) * 2);
|
|
3758
3836
|
}
|
|
3759
3837
|
}
|
|
3760
|
-
.lg\:grid-cols-4 {
|
|
3761
|
-
@media (width >= 1024px) {
|
|
3762
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3763
|
-
}
|
|
3764
|
-
}
|
|
3765
|
-
.xl\:grid-cols-4 {
|
|
3766
|
-
@media (width >= 1280px) {
|
|
3767
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3770
|
-
.xl\:grid-cols-5 {
|
|
3771
|
-
@media (width >= 1280px) {
|
|
3772
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3773
|
-
}
|
|
3774
|
-
}
|
|
3775
|
-
.xl\:grid-cols-6 {
|
|
3776
|
-
@media (width >= 1280px) {
|
|
3777
|
-
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3778
|
-
}
|
|
3779
|
-
}
|
|
3780
|
-
.xl\:grid-cols-8 {
|
|
3781
|
-
@media (width >= 1280px) {
|
|
3782
|
-
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3783
|
-
}
|
|
3784
|
-
}
|
|
3785
|
-
.\32xl\:grid-cols-6 {
|
|
3786
|
-
@media (width >= 1536px) {
|
|
3787
|
-
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
.\32xl\:grid-cols-7 {
|
|
3791
|
-
@media (width >= 1536px) {
|
|
3792
|
-
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
.\32xl\:grid-cols-8 {
|
|
3796
|
-
@media (width >= 1536px) {
|
|
3797
|
-
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3798
|
-
}
|
|
3799
|
-
}
|
|
3800
|
-
.\32xl\:grid-cols-9 {
|
|
3801
|
-
@media (width >= 1536px) {
|
|
3802
|
-
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
3803
|
-
}
|
|
3804
|
-
}
|
|
3805
|
-
.\32xl\:grid-cols-10 {
|
|
3806
|
-
@media (width >= 1536px) {
|
|
3807
|
-
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
3808
|
-
}
|
|
3809
|
-
}
|
|
3810
|
-
.\32xl\:grid-cols-11 {
|
|
3811
|
-
@media (width >= 1536px) {
|
|
3812
|
-
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
3813
|
-
}
|
|
3814
|
-
}
|
|
3815
|
-
.\32xl\:grid-cols-12 {
|
|
3816
|
-
@media (width >= 1536px) {
|
|
3817
|
-
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3818
|
-
}
|
|
3819
|
-
}
|
|
3820
3838
|
.compact\:mt-desktop-compact-component-gap {
|
|
3821
3839
|
&:where([data-compact]) {
|
|
3822
3840
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
@@ -3922,11 +3940,46 @@
|
|
|
3922
3940
|
padding-block: var(--spacing-desktop-compact-layout-padding);
|
|
3923
3941
|
}
|
|
3924
3942
|
}
|
|
3943
|
+
.compact\:pt-desktop-compact-component-padding {
|
|
3944
|
+
&:where([data-compact]) {
|
|
3945
|
+
padding-top: var(--spacing-desktop-compact-component-padding);
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
.compact\:pt-desktop-compact-container-padding {
|
|
3949
|
+
&:where([data-compact]) {
|
|
3950
|
+
padding-top: var(--spacing-desktop-compact-container-padding);
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
.compact\:pt-desktop-compact-layout-padding {
|
|
3954
|
+
&:where([data-compact]) {
|
|
3955
|
+
padding-top: var(--spacing-desktop-compact-layout-padding);
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
.compact\:pr-desktop-compact-component-padding {
|
|
3959
|
+
&:where([data-compact]) {
|
|
3960
|
+
padding-right: var(--spacing-desktop-compact-component-padding);
|
|
3961
|
+
}
|
|
3962
|
+
}
|
|
3963
|
+
.compact\:pr-desktop-compact-container-padding {
|
|
3964
|
+
&:where([data-compact]) {
|
|
3965
|
+
padding-right: var(--spacing-desktop-compact-container-padding);
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
.compact\:pr-desktop-compact-layout-padding {
|
|
3969
|
+
&:where([data-compact]) {
|
|
3970
|
+
padding-right: var(--spacing-desktop-compact-layout-padding);
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3925
3973
|
.compact\:pb-desktop-compact-component-padding {
|
|
3926
3974
|
&:where([data-compact]) {
|
|
3927
3975
|
padding-bottom: var(--spacing-desktop-compact-component-padding);
|
|
3928
3976
|
}
|
|
3929
3977
|
}
|
|
3978
|
+
.compact\:pb-desktop-compact-container-padding {
|
|
3979
|
+
&:where([data-compact]) {
|
|
3980
|
+
padding-bottom: var(--spacing-desktop-compact-container-padding);
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3930
3983
|
.compact\:pb-desktop-compact-layout-padding {
|
|
3931
3984
|
&:where([data-compact]) {
|
|
3932
3985
|
padding-bottom: var(--spacing-desktop-compact-layout-padding);
|
|
@@ -3937,6 +3990,16 @@
|
|
|
3937
3990
|
padding-left: var(--spacing-desktop-compact-component-padding);
|
|
3938
3991
|
}
|
|
3939
3992
|
}
|
|
3993
|
+
.compact\:pl-desktop-compact-container-padding {
|
|
3994
|
+
&:where([data-compact]) {
|
|
3995
|
+
padding-left: var(--spacing-desktop-compact-container-padding);
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
.compact\:pl-desktop-compact-layout-padding {
|
|
3999
|
+
&:where([data-compact]) {
|
|
4000
|
+
padding-left: var(--spacing-desktop-compact-layout-padding);
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
3940
4003
|
.compact\:text-caption-desktop-compact {
|
|
3941
4004
|
&:where([data-compact]) {
|
|
3942
4005
|
font-size: var(--text-caption-desktop-compact);
|
|
@@ -4108,6 +4171,11 @@
|
|
|
4108
4171
|
flex-grow: 0;
|
|
4109
4172
|
}
|
|
4110
4173
|
}
|
|
4174
|
+
.desktop\:grid-cols-4 {
|
|
4175
|
+
@container root (width >= 48rem) {
|
|
4176
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4111
4179
|
.desktop\:flex-col {
|
|
4112
4180
|
@container root (width >= 48rem) {
|
|
4113
4181
|
flex-direction: column;
|
|
@@ -4243,16 +4311,51 @@
|
|
|
4243
4311
|
padding-block: var(--spacing-desktop-layout-padding);
|
|
4244
4312
|
}
|
|
4245
4313
|
}
|
|
4314
|
+
.desktop\:pt-desktop-component-padding {
|
|
4315
|
+
@container root (width >= 48rem) {
|
|
4316
|
+
padding-top: var(--spacing-desktop-component-padding);
|
|
4317
|
+
}
|
|
4318
|
+
}
|
|
4319
|
+
.desktop\:pt-desktop-container-padding {
|
|
4320
|
+
@container root (width >= 48rem) {
|
|
4321
|
+
padding-top: var(--spacing-desktop-container-padding);
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4246
4324
|
.desktop\:pt-desktop-layout-gap {
|
|
4247
4325
|
@container root (width >= 48rem) {
|
|
4248
4326
|
padding-top: var(--spacing-desktop-layout-gap);
|
|
4249
4327
|
}
|
|
4250
4328
|
}
|
|
4329
|
+
.desktop\:pt-desktop-layout-padding {
|
|
4330
|
+
@container root (width >= 48rem) {
|
|
4331
|
+
padding-top: var(--spacing-desktop-layout-padding);
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
.desktop\:pr-desktop-component-padding {
|
|
4335
|
+
@container root (width >= 48rem) {
|
|
4336
|
+
padding-right: var(--spacing-desktop-component-padding);
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
.desktop\:pr-desktop-container-padding {
|
|
4340
|
+
@container root (width >= 48rem) {
|
|
4341
|
+
padding-right: var(--spacing-desktop-container-padding);
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
.desktop\:pr-desktop-layout-padding {
|
|
4345
|
+
@container root (width >= 48rem) {
|
|
4346
|
+
padding-right: var(--spacing-desktop-layout-padding);
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4251
4349
|
.desktop\:pb-desktop-component-padding {
|
|
4252
4350
|
@container root (width >= 48rem) {
|
|
4253
4351
|
padding-bottom: var(--spacing-desktop-component-padding);
|
|
4254
4352
|
}
|
|
4255
4353
|
}
|
|
4354
|
+
.desktop\:pb-desktop-container-padding {
|
|
4355
|
+
@container root (width >= 48rem) {
|
|
4356
|
+
padding-bottom: var(--spacing-desktop-container-padding);
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4256
4359
|
.desktop\:pb-desktop-layout-padding {
|
|
4257
4360
|
@container root (width >= 48rem) {
|
|
4258
4361
|
padding-bottom: var(--spacing-desktop-layout-padding);
|
|
@@ -4263,6 +4366,16 @@
|
|
|
4263
4366
|
padding-left: var(--spacing-desktop-component-padding);
|
|
4264
4367
|
}
|
|
4265
4368
|
}
|
|
4369
|
+
.desktop\:pl-desktop-container-padding {
|
|
4370
|
+
@container root (width >= 48rem) {
|
|
4371
|
+
padding-left: var(--spacing-desktop-container-padding);
|
|
4372
|
+
}
|
|
4373
|
+
}
|
|
4374
|
+
.desktop\:pl-desktop-layout-padding {
|
|
4375
|
+
@container root (width >= 48rem) {
|
|
4376
|
+
padding-left: var(--spacing-desktop-layout-padding);
|
|
4377
|
+
}
|
|
4378
|
+
}
|
|
4266
4379
|
.desktop\:text-caption-desktop {
|
|
4267
4380
|
@container root (width >= 48rem) {
|
|
4268
4381
|
font-size: var(--text-caption-desktop);
|