@dmsi/wedgekit-react 0.0.415 → 0.0.418
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-CANJ2YPW.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-ESCNCQGI.js +9 -0
- package/dist/chunk-IFHMGICR.js +66 -0
- package/dist/{chunk-ZHZIIVJN.js → chunk-IMOIZFJZ.js} +5 -5
- package/dist/chunk-KBJZUVLM.js +65 -0
- package/dist/{chunk-AA6GE3TH.js → chunk-LUPHOXAQ.js} +1 -1
- package/dist/{chunk-44TDIHUP.js → chunk-P3MIP2FD.js} +1 -1
- package/dist/{chunk-7ULLUUVJ.js → chunk-PQWWVBSR.js} +1 -1
- package/dist/{chunk-ERW5DEIO.js → chunk-RQLWSLVE.js} +1 -1
- package/dist/{chunk-BK7SPR6Y.js → chunk-TQIKP534.js} +4 -4
- 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 +231 -53
- package/dist/components/CalendarRange.css +169 -65
- package/dist/components/CalendarRange.js +24 -16
- 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 +189 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +169 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +24 -16
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +198 -20
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +169 -65
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +24 -16
- package/dist/components/DataGrid/PinnedColumns.cjs +214 -36
- package/dist/components/DataGrid/PinnedColumns.css +169 -65
- package/dist/components/DataGrid/PinnedColumns.js +24 -16
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +190 -12
- package/dist/components/DataGrid/TableBody/LoadingCell.css +169 -65
- package/dist/components/DataGrid/TableBody/LoadingCell.js +24 -16
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +196 -18
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +169 -65
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +24 -16
- package/dist/components/DataGrid/TableBody/index.cjs +211 -33
- package/dist/components/DataGrid/TableBody/index.css +169 -65
- package/dist/components/DataGrid/TableBody/index.js +24 -16
- package/dist/components/DataGrid/index.cjs +300 -122
- package/dist/components/DataGrid/index.css +169 -65
- package/dist/components/DataGrid/index.js +24 -16
- package/dist/components/DataGrid/utils.cjs +190 -12
- package/dist/components/DataGrid/utils.css +169 -65
- package/dist/components/DataGrid/utils.js +24 -16
- package/dist/components/DateInput.cjs +250 -72
- package/dist/components/DateInput.css +169 -65
- package/dist/components/DateInput.js +24 -16
- package/dist/components/DateRangeInput.cjs +250 -72
- package/dist/components/DateRangeInput.css +169 -65
- package/dist/components/DateRangeInput.js +24 -16
- 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 +197 -19
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +169 -65
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +24 -16
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +36 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +241 -27
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +169 -65
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +24 -16
- 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 +743 -529
- package/dist/components/MobileDataGrid/index.css +169 -65
- package/dist/components/MobileDataGrid/index.js +24 -16
- 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 +4 -4
- 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 +36 -0
- package/dist/components/SimpleTable.js +2 -2
- package/dist/components/SkeletonParagraph.js +3 -6
- 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 +694 -131
- package/dist/components/index.css +169 -65
- package/dist/components/index.js +37 -17
- package/dist/index.css +169 -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/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,37 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelectorMenuOption
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TQIKP534.js";
|
|
4
|
+
import "../../../chunk-7AXHAWJX.js";
|
|
5
|
+
import "../../../chunk-P3MIP2FD.js";
|
|
5
6
|
import "../../../chunk-M7INAUAJ.js";
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-3HBYDOYE.js";
|
|
8
|
+
import "../../../chunk-IMOIZFJZ.js";
|
|
9
|
+
import "../../../chunk-MBZ55T2D.js";
|
|
8
10
|
import "../../../chunk-2IKT6IHB.js";
|
|
9
11
|
import "../../../chunk-G5DEC7H3.js";
|
|
10
12
|
import "../../../chunk-3X3Y4TMS.js";
|
|
11
13
|
import "../../../chunk-BQNPOGD5.js";
|
|
12
|
-
import "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
14
|
-
import "../../../chunk-KZZKQLKF.js";
|
|
14
|
+
import "../../../chunk-LUPHOXAQ.js";
|
|
15
|
+
import "../../../chunk-W55J2KJZ.js";
|
|
15
16
|
import "../../../chunk-5IFPG6TS.js";
|
|
16
17
|
import "../../../chunk-AJ5M6MVX.js";
|
|
17
18
|
import "../../../chunk-M6TSTDNZ.js";
|
|
19
|
+
import "../../../chunk-EJSPFQCY.js";
|
|
20
|
+
import "../../../chunk-RQLWSLVE.js";
|
|
21
|
+
import "../../../chunk-6LHBY2IH.js";
|
|
22
|
+
import "../../../chunk-VJVY6NPF.js";
|
|
18
23
|
import "../../../chunk-EWGHVZL5.js";
|
|
19
|
-
import "../../../chunk-
|
|
24
|
+
import "../../../chunk-DCLNAUC4.js";
|
|
25
|
+
import "../../../chunk-PQWWVBSR.js";
|
|
26
|
+
import "../../../chunk-ESCNCQGI.js";
|
|
20
27
|
import "../../../chunk-AT4AWD6B.js";
|
|
21
28
|
import "../../../chunk-J5V2JRIK.js";
|
|
22
|
-
import "../../../chunk-
|
|
23
|
-
import "../../../chunk-
|
|
29
|
+
import "../../../chunk-TYAQWVIM.js";
|
|
30
|
+
import "../../../chunk-SBCFBHNG.js";
|
|
24
31
|
import "../../../chunk-4RJKB7LC.js";
|
|
32
|
+
import "../../../chunk-AG43RS4Q.js";
|
|
25
33
|
import "../../../chunk-XM7IQHBU.js";
|
|
26
34
|
import "../../../chunk-FRHPFACM.js";
|
|
27
35
|
import "../../../chunk-T36HX6QY.js";
|
|
28
|
-
import "../../../chunk-
|
|
36
|
+
import "../../../chunk-IFHMGICR.js";
|
|
29
37
|
import "../../../chunk-SBRRNFOP.js";
|
|
30
|
-
import "../../../chunk-
|
|
38
|
+
import "../../../chunk-Y2GK27RX.js";
|
|
31
39
|
import "../../../chunk-EU73QPW7.js";
|
|
32
40
|
import "../../../chunk-QVWYTQKL.js";
|
|
33
41
|
import "../../../chunk-NO5BIKWS.js";
|
|
34
|
-
import "../../../chunk-
|
|
42
|
+
import "../../../chunk-CANJ2YPW.js";
|
|
35
43
|
import "../../../chunk-V47RTW7E.js";
|
|
36
44
|
import "../../../chunk-22VBZWJG.js";
|
|
37
45
|
import "../../../chunk-NVOZAVEX.js";
|
|
@@ -45,9 +53,9 @@ import "../../../chunk-VXWSAIB5.js";
|
|
|
45
53
|
import "../../../chunk-TYTD4FLW.js";
|
|
46
54
|
import "../../../chunk-5UH6QUFB.js";
|
|
47
55
|
import "../../../chunk-FA7IFW66.js";
|
|
48
|
-
import "../../../chunk-
|
|
49
|
-
import "../../../chunk-
|
|
50
|
-
import "../../../chunk-
|
|
56
|
+
import "../../../chunk-5TGP5EFM.js";
|
|
57
|
+
import "../../../chunk-KBJZUVLM.js";
|
|
58
|
+
import "../../../chunk-DTW7JCBR.js";
|
|
51
59
|
import "../../../chunk-OGIFIPKH.js";
|
|
52
60
|
import "../../../chunk-NKUETCDA.js";
|
|
53
61
|
import "../../../chunk-WWAPK5PH.js";
|
|
@@ -62,7 +62,7 @@ __export(ColumnSelectorHeaderCell_exports, {
|
|
|
62
62
|
ColumnSelectorHeaderCell: () => ColumnSelectorHeaderCell
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(ColumnSelectorHeaderCell_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");
|
|
@@ -3866,7 +3866,7 @@ var Tooltip = ({
|
|
|
3866
3866
|
id,
|
|
3867
3867
|
"data-testid": testid,
|
|
3868
3868
|
ref,
|
|
3869
|
-
className: "relative inline-grid grid-cols-[auto_1fr] items-center",
|
|
3869
|
+
className: "relative inline-grid grid-cols-[auto_1fr] items-center cursor-pointer",
|
|
3870
3870
|
onMouseEnter: handleMouseEnter,
|
|
3871
3871
|
onMouseLeave: handleMouseLeave,
|
|
3872
3872
|
children: [
|
|
@@ -4457,12 +4457,11 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
|
4457
4457
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4458
4458
|
|
|
4459
4459
|
// src/components/Grid.tsx
|
|
4460
|
-
var import_react25 = require("react");
|
|
4461
4460
|
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
4462
4461
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4463
4462
|
|
|
4464
4463
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4465
|
-
var
|
|
4464
|
+
var import_react25 = require("react");
|
|
4466
4465
|
|
|
4467
4466
|
// src/components/Spinner.tsx
|
|
4468
4467
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
@@ -4498,7 +4497,7 @@ Spinner.displayName = "Spinner";
|
|
|
4498
4497
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4499
4498
|
|
|
4500
4499
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4501
|
-
var
|
|
4500
|
+
var import_react26 = require("react");
|
|
4502
4501
|
|
|
4503
4502
|
// src/components/Surface.tsx
|
|
4504
4503
|
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
@@ -4543,17 +4542,17 @@ var import_clsx32 = require("clsx");
|
|
|
4543
4542
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4544
4543
|
|
|
4545
4544
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4546
|
-
var
|
|
4545
|
+
var import_react27 = require("react");
|
|
4547
4546
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4548
4547
|
|
|
4549
4548
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4550
|
-
var
|
|
4549
|
+
var import_react28 = require("react");
|
|
4551
4550
|
|
|
4552
4551
|
// src/components/ProductImagePreview/index.tsx
|
|
4553
4552
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4554
4553
|
|
|
4555
4554
|
// src/components/CompactImagesPreview.tsx
|
|
4556
|
-
var
|
|
4555
|
+
var import_react29 = require("react");
|
|
4557
4556
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4558
4557
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4559
4558
|
|
|
@@ -4561,18 +4560,197 @@ var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
|
4561
4560
|
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4562
4561
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4563
4562
|
|
|
4564
|
-
// src/components/
|
|
4563
|
+
// src/components/PDFViewer/index.tsx
|
|
4564
|
+
var import_react32 = require("react");
|
|
4565
|
+
|
|
4566
|
+
// src/components/PDFViewer/PDFElement.tsx
|
|
4567
|
+
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4565
4568
|
var import_react31 = require("react");
|
|
4569
|
+
|
|
4570
|
+
// src/components/PDFViewer/PDFPage.tsx
|
|
4571
|
+
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4572
|
+
var import_react30 = require("react");
|
|
4566
4573
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4574
|
+
|
|
4575
|
+
// src/components/PDFViewer/PDFElement.tsx
|
|
4576
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
4577
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4578
|
+
|
|
4579
|
+
// src/components/PDFViewer/DownloadIcon.tsx
|
|
4580
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4581
|
+
|
|
4582
|
+
// src/components/PDFViewer/PDFNavigation.tsx
|
|
4583
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4584
|
+
|
|
4585
|
+
// src/components/PDFViewer/index.tsx
|
|
4586
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4587
|
+
|
|
4588
|
+
// src/components/ListGroup.tsx
|
|
4589
|
+
var import_react33 = require("react");
|
|
4590
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
4591
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4592
|
+
|
|
4593
|
+
// src/components/Pagination.tsx
|
|
4594
|
+
var import_react34 = require("react");
|
|
4595
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
4596
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4597
|
+
var Pagination = ({
|
|
4598
|
+
totalPages,
|
|
4599
|
+
currentPage,
|
|
4600
|
+
onPageChange,
|
|
4601
|
+
id,
|
|
4602
|
+
testid,
|
|
4603
|
+
className,
|
|
4604
|
+
disabled
|
|
4605
|
+
}) => {
|
|
4606
|
+
const goTo = (0, import_react34.useCallback)(
|
|
4607
|
+
(page) => {
|
|
4608
|
+
if (disabled) return;
|
|
4609
|
+
onPageChange(page);
|
|
4610
|
+
},
|
|
4611
|
+
[onPageChange, disabled]
|
|
4612
|
+
);
|
|
4613
|
+
const handleKey = (e) => {
|
|
4614
|
+
if (disabled) return;
|
|
4615
|
+
if (e.key === "ArrowLeft") {
|
|
4616
|
+
e.preventDefault();
|
|
4617
|
+
goTo(currentPage - 1);
|
|
4618
|
+
} else if (e.key === "ArrowRight") {
|
|
4619
|
+
e.preventDefault();
|
|
4620
|
+
goTo(currentPage + 1);
|
|
4621
|
+
}
|
|
4622
|
+
};
|
|
4623
|
+
const pageTokens = (0, import_react34.useMemo)(() => {
|
|
4624
|
+
if (totalPages <= 5) {
|
|
4625
|
+
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
4626
|
+
}
|
|
4627
|
+
const pages = /* @__PURE__ */ new Set();
|
|
4628
|
+
pages.add(1);
|
|
4629
|
+
pages.add(totalPages);
|
|
4630
|
+
if (currentPage <= 3) {
|
|
4631
|
+
pages.add(2);
|
|
4632
|
+
pages.add(3);
|
|
4633
|
+
pages.add(4);
|
|
4634
|
+
} else if (currentPage >= totalPages - 2) {
|
|
4635
|
+
pages.add(totalPages - 1);
|
|
4636
|
+
pages.add(totalPages - 2);
|
|
4637
|
+
pages.add(totalPages - 3);
|
|
4638
|
+
} else {
|
|
4639
|
+
pages.add(currentPage - 1);
|
|
4640
|
+
pages.add(currentPage);
|
|
4641
|
+
pages.add(currentPage + 1);
|
|
4642
|
+
}
|
|
4643
|
+
const sorted = Array.from(pages).sort((a, b) => a - b);
|
|
4644
|
+
const tokens = [];
|
|
4645
|
+
for (let i = 0; i < sorted.length; i++) {
|
|
4646
|
+
const value = sorted[i];
|
|
4647
|
+
const prev = sorted[i - 1];
|
|
4648
|
+
if (i > 0) {
|
|
4649
|
+
if (value - prev === 2) {
|
|
4650
|
+
tokens.push(prev + 1);
|
|
4651
|
+
} else if (value - prev > 2) {
|
|
4652
|
+
tokens.push("ellipsis");
|
|
4653
|
+
}
|
|
4654
|
+
}
|
|
4655
|
+
tokens.push(value);
|
|
4656
|
+
}
|
|
4657
|
+
return tokens;
|
|
4658
|
+
}, [totalPages, currentPage]);
|
|
4659
|
+
if (totalPages <= 1) return null;
|
|
4660
|
+
const buttonClass = (0, import_clsx37.default)(
|
|
4661
|
+
"cursor-pointer disabled:cursor-default",
|
|
4662
|
+
paddingUsingComponentGap,
|
|
4663
|
+
"w-8 h-8",
|
|
4664
|
+
"flex items-center justify-center",
|
|
4665
|
+
"bg-transparent",
|
|
4666
|
+
"box-content",
|
|
4667
|
+
"hover:bg-background-grouped-secondary-normal",
|
|
4668
|
+
"focus:bg-background-grouped-secondary-normal focus:outline-0",
|
|
4669
|
+
"disabled:bg-transparent disabled:text-text-action-primary-disabled"
|
|
4670
|
+
);
|
|
4671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
4672
|
+
"nav",
|
|
4673
|
+
{
|
|
4674
|
+
id,
|
|
4675
|
+
"data-testid": testid,
|
|
4676
|
+
"aria-label": "Pagination",
|
|
4677
|
+
onKeyDown: handleKey,
|
|
4678
|
+
className: (0, import_clsx37.default)(
|
|
4679
|
+
"flex items-center",
|
|
4680
|
+
"border border-border-primary-normal",
|
|
4681
|
+
"bg-background-grouped-primary-normal",
|
|
4682
|
+
"rounded-sm",
|
|
4683
|
+
className
|
|
4684
|
+
),
|
|
4685
|
+
children: [
|
|
4686
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4687
|
+
"button",
|
|
4688
|
+
{
|
|
4689
|
+
disabled: disabled || currentPage <= 1,
|
|
4690
|
+
"aria-label": "Previous page",
|
|
4691
|
+
onClick: () => goTo(currentPage - 1),
|
|
4692
|
+
className: (0, import_clsx37.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
4693
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
4694
|
+
}
|
|
4695
|
+
),
|
|
4696
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: (0, import_clsx37.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
4697
|
+
if (token === "ellipsis") {
|
|
4698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4699
|
+
"li",
|
|
4700
|
+
{
|
|
4701
|
+
className: "w-8 h-8 select-none text-text-action-primary-disabled",
|
|
4702
|
+
children: "\u2026"
|
|
4703
|
+
},
|
|
4704
|
+
`ellipsis-${index}`
|
|
4705
|
+
);
|
|
4706
|
+
}
|
|
4707
|
+
const selected = token === currentPage;
|
|
4708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4709
|
+
"button",
|
|
4710
|
+
{
|
|
4711
|
+
"aria-label": `Page ${token}`,
|
|
4712
|
+
"aria-current": selected ? "page" : void 0,
|
|
4713
|
+
disabled,
|
|
4714
|
+
onClick: () => goTo(token),
|
|
4715
|
+
className: (0, import_clsx37.default)(
|
|
4716
|
+
buttonClass,
|
|
4717
|
+
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
4718
|
+
),
|
|
4719
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Subheader, { align: "center", weight: "bold", children: token })
|
|
4720
|
+
}
|
|
4721
|
+
) }, token);
|
|
4722
|
+
}) }),
|
|
4723
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4724
|
+
"button",
|
|
4725
|
+
{
|
|
4726
|
+
disabled: disabled || currentPage >= totalPages,
|
|
4727
|
+
"aria-label": "Next page",
|
|
4728
|
+
onClick: () => goTo(currentPage + 1),
|
|
4729
|
+
className: (0, import_clsx37.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
4730
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
4731
|
+
}
|
|
4732
|
+
)
|
|
4733
|
+
]
|
|
4734
|
+
}
|
|
4735
|
+
);
|
|
4736
|
+
};
|
|
4737
|
+
Pagination.displayName = "Pagination";
|
|
4738
|
+
|
|
4739
|
+
// src/components/SkeletonParagraph.tsx
|
|
4740
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4741
|
+
|
|
4742
|
+
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4743
|
+
var import_react35 = require("react");
|
|
4744
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4567
4745
|
function ColumnSelectorMenuOption({
|
|
4568
4746
|
id,
|
|
4569
4747
|
testid,
|
|
4570
4748
|
column,
|
|
4571
4749
|
toggleColumnVisibility
|
|
4572
4750
|
}) {
|
|
4573
|
-
const [isVisible, setIsVisible] = (0,
|
|
4751
|
+
const [isVisible, setIsVisible] = (0, import_react35.useState)(column.getIsVisible());
|
|
4574
4752
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4575
|
-
return /* @__PURE__ */ (0,
|
|
4753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4576
4754
|
Checkbox,
|
|
4577
4755
|
{
|
|
4578
4756
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -4588,7 +4766,7 @@ function ColumnSelectorMenuOption({
|
|
|
4588
4766
|
}
|
|
4589
4767
|
|
|
4590
4768
|
// src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
|
|
4591
|
-
var
|
|
4769
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4592
4770
|
function ColumnSelectorHeaderCell({
|
|
4593
4771
|
id,
|
|
4594
4772
|
testid,
|
|
@@ -4596,9 +4774,9 @@ function ColumnSelectorHeaderCell({
|
|
|
4596
4774
|
toggleColumnVisibility,
|
|
4597
4775
|
resetColumnVisibility
|
|
4598
4776
|
}) {
|
|
4599
|
-
const ref = (0,
|
|
4600
|
-
const [show, setShow] = (0,
|
|
4601
|
-
return /* @__PURE__ */ (0,
|
|
4777
|
+
const ref = (0, import_react36.useRef)(null);
|
|
4778
|
+
const [show, setShow] = (0, import_react36.useState)(false);
|
|
4779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4602
4780
|
DataGridCell,
|
|
4603
4781
|
{
|
|
4604
4782
|
id,
|
|
@@ -4608,7 +4786,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4608
4786
|
color: "text-secondary-normal",
|
|
4609
4787
|
ref,
|
|
4610
4788
|
children: [
|
|
4611
|
-
/* @__PURE__ */ (0,
|
|
4789
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4612
4790
|
Button,
|
|
4613
4791
|
{
|
|
4614
4792
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4616,10 +4794,10 @@ function ColumnSelectorHeaderCell({
|
|
|
4616
4794
|
onClick: () => setShow((prev) => !prev),
|
|
4617
4795
|
variant: "navigation",
|
|
4618
4796
|
iconOnly: true,
|
|
4619
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4797
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { name: "tune" })
|
|
4620
4798
|
}
|
|
4621
4799
|
),
|
|
4622
|
-
/* @__PURE__ */ (0,
|
|
4800
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4623
4801
|
Menu,
|
|
4624
4802
|
{
|
|
4625
4803
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4630,7 +4808,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4630
4808
|
setShow,
|
|
4631
4809
|
calculateMinMaxHeight: true,
|
|
4632
4810
|
children: [
|
|
4633
|
-
/* @__PURE__ */ (0,
|
|
4811
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4634
4812
|
Button,
|
|
4635
4813
|
{
|
|
4636
4814
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4646,7 +4824,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4646
4824
|
table.getAllColumns().filter((x) => {
|
|
4647
4825
|
var _a;
|
|
4648
4826
|
return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4649
|
-
}).map((column) => /* @__PURE__ */ (0,
|
|
4827
|
+
}).map((column) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4650
4828
|
ColumnSelectorMenuOption,
|
|
4651
4829
|
{
|
|
4652
4830
|
id: id ? `${id}-option-${column.id}` : void 0,
|