@dmsi/wedgekit-react 0.0.387 → 0.0.389
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-PH76F7QS.js → chunk-2HMCS25C.js} +1 -1
- package/dist/{chunk-HPQWEZJL.js → chunk-3X3Y4TMS.js} +7 -2
- package/dist/{chunk-3XOYPT5O.js → chunk-44TDIHUP.js} +1 -1
- package/dist/{chunk-F4CV7SBS.js → chunk-6I5LZ2ZC.js} +2 -2
- package/dist/{chunk-2FADUKPP.js → chunk-AA6GE3TH.js} +1 -1
- package/dist/{chunk-DCCTNHNL.js → chunk-ERW5DEIO.js} +1 -1
- package/dist/{chunk-4LXG6QNT.js → chunk-EZCH4PQS.js} +2 -1
- package/dist/{chunk-CQFPNZTN.js → chunk-G5DEC7H3.js} +15 -5
- package/dist/{chunk-MX57T3HP.js → chunk-GB4ZTUQV.js} +8 -4
- package/dist/{chunk-TPXHOAY3.js → chunk-JIMJIJOF.js} +2 -2
- package/dist/{chunk-R4SFLYOZ.js → chunk-KZZKQLKF.js} +1 -1
- package/dist/{chunk-KKESN5SF.js → chunk-LCJZRP5S.js} +11 -2
- package/dist/{chunk-GNHKKYCY.js → chunk-LLZ3SSZJ.js} +2 -2
- package/dist/{chunk-A7CEYUVE.js → chunk-LZGYABCX.js} +3 -3
- package/dist/{chunk-FSLETAX4.js → chunk-MQX7GFLX.js} +11 -4
- package/dist/{chunk-2T2GISEG.js → chunk-OW3WN3JV.js} +3 -3
- package/dist/components/Accordion.cjs +10 -5
- package/dist/components/Accordion.js +3 -3
- package/dist/components/CalendarRange.cjs +24 -21
- package/dist/components/CalendarRange.css +18 -0
- package/dist/components/CalendarRange.js +15 -15
- package/dist/components/Card.cjs +2 -1
- package/dist/components/Card.js +1 -1
- package/dist/components/CompactImagesPreview.cjs +18 -7
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +14 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +18 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +15 -15
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +17 -14
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +18 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +15 -15
- package/dist/components/DataGrid/PinnedColumns.cjs +19 -16
- package/dist/components/DataGrid/PinnedColumns.css +18 -0
- package/dist/components/DataGrid/PinnedColumns.js +15 -15
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +12 -9
- package/dist/components/DataGrid/TableBody/LoadingCell.css +18 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +15 -15
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -11
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +18 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +15 -15
- package/dist/components/DataGrid/TableBody/index.cjs +14 -11
- package/dist/components/DataGrid/TableBody/index.css +18 -0
- package/dist/components/DataGrid/TableBody/index.js +15 -15
- package/dist/components/DataGrid/index.cjs +36 -33
- package/dist/components/DataGrid/index.css +18 -0
- package/dist/components/DataGrid/index.js +15 -15
- package/dist/components/DataGrid/utils.cjs +12 -9
- package/dist/components/DataGrid/utils.css +18 -0
- package/dist/components/DataGrid/utils.js +15 -15
- package/dist/components/DateInput.cjs +37 -34
- package/dist/components/DateInput.css +18 -0
- package/dist/components/DateInput.js +15 -15
- package/dist/components/DateRangeInput.cjs +37 -34
- package/dist/components/DateRangeInput.css +18 -0
- package/dist/components/DateRangeInput.js +15 -15
- package/dist/components/FilterGroup.cjs +11 -2
- package/dist/components/FilterGroup.js +1 -1
- package/dist/components/MobileDataGrid/ColumnList.cjs +8 -4
- package/dist/components/MobileDataGrid/ColumnList.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +16 -13
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +18 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +15 -15
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +8 -4
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +24 -17
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +18 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +15 -15
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +8 -4
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +8 -4
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +3 -3
- package/dist/components/MobileDataGrid/index.cjs +50 -43
- package/dist/components/MobileDataGrid/index.css +18 -0
- package/dist/components/MobileDataGrid/index.js +15 -15
- package/dist/components/Notification.cjs +8 -4
- package/dist/components/Notification.js +1 -1
- package/dist/components/OptionPill.cjs +11 -2
- package/dist/components/OptionPill.js +1 -1
- package/dist/components/PDFViewer/PDFElement.cjs +8 -4
- package/dist/components/PDFViewer/PDFElement.js +2 -2
- package/dist/components/PDFViewer/PDFNavigation.cjs +8 -4
- package/dist/components/PDFViewer/PDFNavigation.js +2 -2
- package/dist/components/PDFViewer/index.cjs +8 -4
- package/dist/components/PDFViewer/index.js +4 -4
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +15 -5
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +1 -1
- package/dist/components/ProductImagePreview/Thumbnail.cjs +7 -2
- package/dist/components/ProductImagePreview/Thumbnail.js +1 -1
- package/dist/components/ProductImagePreview/index.cjs +84 -63
- package/dist/components/ProductImagePreview/index.js +4 -4
- package/dist/components/SideMenuGroup.cjs +8 -4
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +8 -4
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/Stack.cjs +8 -4
- package/dist/components/Stack.js +1 -1
- package/dist/components/Swatch.cjs +8 -4
- package/dist/components/Swatch.js +1 -1
- package/dist/components/Time.cjs +8 -4
- package/dist/components/Time.js +1 -1
- package/dist/components/Upload.cjs +8 -4
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +100 -71
- package/dist/components/index.css +18 -0
- package/dist/components/index.js +15 -15
- package/dist/index.css +18 -0
- package/package.json +1 -1
- package/src/components/Card.tsx +15 -4
- package/src/components/CompactImagesPreview.tsx +10 -3
- package/src/components/OptionPill.tsx +13 -1
- package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +16 -5
- package/src/components/ProductImagePreview/Thumbnail.tsx +7 -1
- package/src/components/Stack.tsx +4 -0
|
@@ -526,7 +526,8 @@ var Stack = (_a) => {
|
|
|
526
526
|
marginBottom,
|
|
527
527
|
testid,
|
|
528
528
|
bottom,
|
|
529
|
-
zIndex
|
|
529
|
+
zIndex,
|
|
530
|
+
flexWrap
|
|
530
531
|
} = _b, props = __objRest(_b, [
|
|
531
532
|
"children",
|
|
532
533
|
"items",
|
|
@@ -565,9 +566,10 @@ var Stack = (_a) => {
|
|
|
565
566
|
"marginBottom",
|
|
566
567
|
"testid",
|
|
567
568
|
"bottom",
|
|
568
|
-
"zIndex"
|
|
569
|
+
"zIndex",
|
|
570
|
+
"flexWrap"
|
|
569
571
|
]);
|
|
570
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
572
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
571
573
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
572
574
|
const gapClassNames = useGapClassNames(sizing);
|
|
573
575
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -594,7 +596,9 @@ var Stack = (_a) => {
|
|
|
594
596
|
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
595
597
|
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
596
598
|
zIndex: zIndex !== void 0 ? zIndex : void 0,
|
|
597
|
-
|
|
599
|
+
flexWrap,
|
|
600
|
+
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
601
|
+
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
598
602
|
},
|
|
599
603
|
className: (0, import_clsx6.default)(
|
|
600
604
|
"scrollbar-thin",
|
|
@@ -666,7 +670,7 @@ function Theme({
|
|
|
666
670
|
}
|
|
667
671
|
|
|
668
672
|
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
669
|
-
var
|
|
673
|
+
var import_react34 = require("react");
|
|
670
674
|
|
|
671
675
|
// src/components/DataGridCell.tsx
|
|
672
676
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -4288,6 +4292,9 @@ var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
|
4288
4292
|
// src/components/Accordion.tsx
|
|
4289
4293
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
4290
4294
|
|
|
4295
|
+
// src/components/ProductImagePreview/Thumbnail.tsx
|
|
4296
|
+
var import_react20 = require("react");
|
|
4297
|
+
|
|
4291
4298
|
// src/components/ImagePlaceholder.tsx
|
|
4292
4299
|
var import_react19 = require("react");
|
|
4293
4300
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
@@ -4296,12 +4303,12 @@ var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
|
4296
4303
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
4297
4304
|
|
|
4298
4305
|
// src/components/Grid.tsx
|
|
4299
|
-
var
|
|
4306
|
+
var import_react21 = require("react");
|
|
4300
4307
|
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
4301
4308
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
4302
4309
|
|
|
4303
4310
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4304
|
-
var
|
|
4311
|
+
var import_react22 = require("react");
|
|
4305
4312
|
|
|
4306
4313
|
// src/components/Spinner.tsx
|
|
4307
4314
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
@@ -4337,7 +4344,7 @@ Spinner.displayName = "Spinner";
|
|
|
4337
4344
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4338
4345
|
|
|
4339
4346
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4340
|
-
var
|
|
4347
|
+
var import_react23 = require("react");
|
|
4341
4348
|
|
|
4342
4349
|
// src/components/Surface.tsx
|
|
4343
4350
|
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
@@ -4382,26 +4389,26 @@ var import_clsx25 = require("clsx");
|
|
|
4382
4389
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4383
4390
|
|
|
4384
4391
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4385
|
-
var
|
|
4392
|
+
var import_react24 = require("react");
|
|
4386
4393
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4387
4394
|
|
|
4388
4395
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4389
|
-
var
|
|
4396
|
+
var import_react25 = require("react");
|
|
4390
4397
|
|
|
4391
4398
|
// src/components/ProductImagePreview/index.tsx
|
|
4392
4399
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4393
4400
|
|
|
4394
4401
|
// src/components/CompactImagesPreview.tsx
|
|
4395
|
-
var
|
|
4402
|
+
var import_react26 = require("react");
|
|
4396
4403
|
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
4397
4404
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4398
4405
|
|
|
4399
4406
|
// src/components/PDFViewer/index.tsx
|
|
4400
|
-
var
|
|
4407
|
+
var import_react31 = require("react");
|
|
4401
4408
|
|
|
4402
4409
|
// src/components/Modal.tsx
|
|
4403
4410
|
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
4404
|
-
var
|
|
4411
|
+
var import_react28 = require("react");
|
|
4405
4412
|
|
|
4406
4413
|
// src/components/ModalHeader.tsx
|
|
4407
4414
|
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
@@ -4573,10 +4580,10 @@ var import_react_dom3 = require("react-dom");
|
|
|
4573
4580
|
var import_react_use = require("react-use");
|
|
4574
4581
|
|
|
4575
4582
|
// src/components/useMounted.tsx
|
|
4576
|
-
var
|
|
4583
|
+
var import_react27 = require("react");
|
|
4577
4584
|
var useMounted = () => {
|
|
4578
|
-
const [isMounted, setIsMounted] = (0,
|
|
4579
|
-
(0,
|
|
4585
|
+
const [isMounted, setIsMounted] = (0, import_react27.useState)(false);
|
|
4586
|
+
(0, import_react27.useEffect)(() => {
|
|
4580
4587
|
setIsMounted(true);
|
|
4581
4588
|
return () => setIsMounted(false);
|
|
4582
4589
|
}, []);
|
|
@@ -4668,12 +4675,12 @@ var Modal = ({
|
|
|
4668
4675
|
}) => {
|
|
4669
4676
|
var _a;
|
|
4670
4677
|
const mounted = useMounted();
|
|
4671
|
-
const modalRef = (0,
|
|
4672
|
-
const bgRef = (0,
|
|
4678
|
+
const modalRef = (0, import_react28.useRef)(null);
|
|
4679
|
+
const bgRef = (0, import_react28.useRef)(null);
|
|
4673
4680
|
const wasOpen = (0, import_react_use.usePrevious)(open);
|
|
4674
4681
|
const isMobile = useMatchesMobile();
|
|
4675
4682
|
const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
|
|
4676
|
-
(0,
|
|
4683
|
+
(0, import_react28.useEffect)(() => {
|
|
4677
4684
|
if (!mounted) return;
|
|
4678
4685
|
if (!modalRef.current || !bgRef.current) {
|
|
4679
4686
|
console.error("Modal or background reference is not set.");
|
|
@@ -4693,7 +4700,7 @@ var Modal = ({
|
|
|
4693
4700
|
bgFadeIn(bgRef.current);
|
|
4694
4701
|
}
|
|
4695
4702
|
}, [mounted, onClose, open, wasOpen]);
|
|
4696
|
-
const handleKeyDown = (0,
|
|
4703
|
+
const handleKeyDown = (0, import_react28.useCallback)(
|
|
4697
4704
|
(e) => {
|
|
4698
4705
|
if (e.key === "Escape") {
|
|
4699
4706
|
if (onClose) {
|
|
@@ -4704,12 +4711,12 @@ var Modal = ({
|
|
|
4704
4711
|
},
|
|
4705
4712
|
[onClose]
|
|
4706
4713
|
);
|
|
4707
|
-
const handleClose = (0,
|
|
4714
|
+
const handleClose = (0, import_react28.useCallback)(() => {
|
|
4708
4715
|
if (onClose) {
|
|
4709
4716
|
onClose();
|
|
4710
4717
|
}
|
|
4711
4718
|
}, [onClose]);
|
|
4712
|
-
(0,
|
|
4719
|
+
(0, import_react28.useEffect)(() => {
|
|
4713
4720
|
if (open) {
|
|
4714
4721
|
document.addEventListener("keyup", handleKeyDown);
|
|
4715
4722
|
}
|
|
@@ -4717,7 +4724,7 @@ var Modal = ({
|
|
|
4717
4724
|
document.removeEventListener("keyup", handleKeyDown);
|
|
4718
4725
|
};
|
|
4719
4726
|
}, [open, handleKeyDown]);
|
|
4720
|
-
(0,
|
|
4727
|
+
(0, import_react28.useEffect)(() => {
|
|
4721
4728
|
if (!open) return;
|
|
4722
4729
|
const scrollY = window.scrollY;
|
|
4723
4730
|
const body = document.body;
|
|
@@ -4738,7 +4745,7 @@ var Modal = ({
|
|
|
4738
4745
|
};
|
|
4739
4746
|
}, [open]);
|
|
4740
4747
|
const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
|
|
4741
|
-
const backgroundClickHandler = (0,
|
|
4748
|
+
const backgroundClickHandler = (0, import_react28.useCallback)(
|
|
4742
4749
|
(e) => {
|
|
4743
4750
|
const target = e.target;
|
|
4744
4751
|
const currentTarget = e.currentTarget;
|
|
@@ -4824,11 +4831,11 @@ Modal.displayName = "Modal";
|
|
|
4824
4831
|
|
|
4825
4832
|
// src/components/PDFViewer/PDFElement.tsx
|
|
4826
4833
|
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4827
|
-
var
|
|
4834
|
+
var import_react30 = require("react");
|
|
4828
4835
|
|
|
4829
4836
|
// src/components/PDFViewer/PDFPage.tsx
|
|
4830
4837
|
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4831
|
-
var
|
|
4838
|
+
var import_react29 = require("react");
|
|
4832
4839
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4833
4840
|
|
|
4834
4841
|
// src/components/PDFViewer/PDFElement.tsx
|
|
@@ -4845,15 +4852,15 @@ var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
|
4845
4852
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4846
4853
|
|
|
4847
4854
|
// src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
|
|
4848
|
-
var
|
|
4855
|
+
var import_react33 = require("react");
|
|
4849
4856
|
|
|
4850
4857
|
// src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
|
|
4851
|
-
var
|
|
4852
|
-
var GridContext = (0,
|
|
4858
|
+
var import_react32 = require("react");
|
|
4859
|
+
var GridContext = (0, import_react32.createContext)(null);
|
|
4853
4860
|
|
|
4854
4861
|
// src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
|
|
4855
4862
|
function useGridContext() {
|
|
4856
|
-
const ctx = (0,
|
|
4863
|
+
const ctx = (0, import_react33.useContext)(GridContext);
|
|
4857
4864
|
if (!ctx) {
|
|
4858
4865
|
throw new Error("useGridContext must be used within GridContextProvider");
|
|
4859
4866
|
}
|
|
@@ -4864,8 +4871,8 @@ function useGridContext() {
|
|
|
4864
4871
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4865
4872
|
function ColumnSelector() {
|
|
4866
4873
|
const context = useGridContext();
|
|
4867
|
-
const ref = (0,
|
|
4868
|
-
const [show, setShow] = (0,
|
|
4874
|
+
const ref = (0, import_react34.useRef)(null);
|
|
4875
|
+
const [show, setShow] = (0, import_react34.useState)(false);
|
|
4869
4876
|
const {
|
|
4870
4877
|
columns,
|
|
4871
4878
|
id,
|
|
@@ -4876,7 +4883,7 @@ function ColumnSelector() {
|
|
|
4876
4883
|
resetColumnVisibility,
|
|
4877
4884
|
dispatch
|
|
4878
4885
|
} = context;
|
|
4879
|
-
const toggleColumnVisibility = (0,
|
|
4886
|
+
const toggleColumnVisibility = (0, import_react34.useCallback)(
|
|
4880
4887
|
(index, visible) => {
|
|
4881
4888
|
dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
|
|
4882
4889
|
},
|
|
@@ -5030,7 +5037,7 @@ function MobileDataGridHeader({
|
|
|
5030
5037
|
}
|
|
5031
5038
|
|
|
5032
5039
|
// src/components/MobileDataGrid/GridContextProvider/index.tsx
|
|
5033
|
-
var
|
|
5040
|
+
var import_react35 = require("react");
|
|
5034
5041
|
|
|
5035
5042
|
// src/components/MobileDataGrid/dataGridReducer.ts
|
|
5036
5043
|
function dataGridReducer(state, action) {
|
|
@@ -5073,10 +5080,10 @@ function GridContextProvider(props) {
|
|
|
5073
5080
|
getId,
|
|
5074
5081
|
onRowSelect
|
|
5075
5082
|
} = props;
|
|
5076
|
-
const [columns, dispatch] = (0,
|
|
5077
|
-
const [selectedRowIds, setSelectedRowIds] = (0,
|
|
5078
|
-
const [currentRow, setCurrentRow] = (0,
|
|
5079
|
-
const resetColumnVisibility = (0,
|
|
5083
|
+
const [columns, dispatch] = (0, import_react35.useReducer)(dataGridReducer, initialColumns);
|
|
5084
|
+
const [selectedRowIds, setSelectedRowIds] = (0, import_react35.useState)([]);
|
|
5085
|
+
const [currentRow, setCurrentRow] = (0, import_react35.useState)(null);
|
|
5086
|
+
const resetColumnVisibility = (0, import_react35.useCallback)(() => {
|
|
5080
5087
|
const newColumns = columns.map((column) => {
|
|
5081
5088
|
var _a;
|
|
5082
5089
|
const initialColumn = initialColumns.find((c) => c.id === column.id);
|
|
@@ -5088,7 +5095,7 @@ function GridContextProvider(props) {
|
|
|
5088
5095
|
});
|
|
5089
5096
|
dispatch({ type: "SET", payload: newColumns });
|
|
5090
5097
|
}, [columns, initialColumns]);
|
|
5091
|
-
const handleRowSelect = (0,
|
|
5098
|
+
const handleRowSelect = (0, import_react35.useCallback)(
|
|
5092
5099
|
(item) => {
|
|
5093
5100
|
var _a;
|
|
5094
5101
|
const rowId = (_a = getId(item)) != null ? _a : "";
|
|
@@ -5099,7 +5106,7 @@ function GridContextProvider(props) {
|
|
|
5099
5106
|
},
|
|
5100
5107
|
[getId, onRowSelect, selectedRowIds]
|
|
5101
5108
|
);
|
|
5102
|
-
const handleRowSelectAll = (0,
|
|
5109
|
+
const handleRowSelectAll = (0, import_react35.useCallback)(() => {
|
|
5103
5110
|
setSelectedRowIds((prev) => {
|
|
5104
5111
|
if (prev.length === data.length) {
|
|
5105
5112
|
return [];
|
|
@@ -5107,13 +5114,13 @@ function GridContextProvider(props) {
|
|
|
5107
5114
|
return data.map(getId).filter((id2) => id2 !== void 0);
|
|
5108
5115
|
});
|
|
5109
5116
|
}, [data, getId]);
|
|
5110
|
-
const openRowDetail = (0,
|
|
5117
|
+
const openRowDetail = (0, import_react35.useCallback)((row) => {
|
|
5111
5118
|
setCurrentRow(row);
|
|
5112
5119
|
}, []);
|
|
5113
|
-
const closeRowDetail = (0,
|
|
5120
|
+
const closeRowDetail = (0, import_react35.useCallback)(() => {
|
|
5114
5121
|
setCurrentRow(null);
|
|
5115
5122
|
}, []);
|
|
5116
|
-
const visibleColumns = (0,
|
|
5123
|
+
const visibleColumns = (0, import_react35.useMemo)(() => {
|
|
5117
5124
|
const effectiveLimit = typeof numberOfColumnsToShow === "number" ? Math.max(numberOfColumnsToShow - 1, 0) : void 0;
|
|
5118
5125
|
if (primaryKey) {
|
|
5119
5126
|
const pkColumn = columns.find((col) => col.id === String(primaryKey));
|
|
@@ -823,6 +823,9 @@
|
|
|
823
823
|
.min-h-\[120px\] {
|
|
824
824
|
min-height: 120px;
|
|
825
825
|
}
|
|
826
|
+
.min-h-full {
|
|
827
|
+
min-height: 100%;
|
|
828
|
+
}
|
|
826
829
|
.min-h-min {
|
|
827
830
|
min-height: min-content;
|
|
828
831
|
}
|
|
@@ -3594,6 +3597,21 @@
|
|
|
3594
3597
|
outline-style: none;
|
|
3595
3598
|
}
|
|
3596
3599
|
}
|
|
3600
|
+
.data-active\:border-transparent {
|
|
3601
|
+
&[data-active] {
|
|
3602
|
+
border-color: transparent;
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
.data-active\:bg-background-action-primary-normal {
|
|
3606
|
+
&[data-active] {
|
|
3607
|
+
background-color: var(--color-background-action-primary-normal);
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
.data-active\:text-white {
|
|
3611
|
+
&[data-active] {
|
|
3612
|
+
color: var(--color-white);
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3597
3615
|
.data-disabled\:cursor-default {
|
|
3598
3616
|
&[data-disabled] {
|
|
3599
3617
|
cursor: default;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MobileDataGrid
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OW3WN3JV.js";
|
|
4
4
|
import "../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-6I5LZ2ZC.js";
|
|
6
|
+
import "../../chunk-44TDIHUP.js";
|
|
7
|
+
import "../../chunk-LZGYABCX.js";
|
|
8
|
+
import "../../chunk-G5DEC7H3.js";
|
|
9
|
+
import "../../chunk-3X3Y4TMS.js";
|
|
10
10
|
import "../../chunk-BQNPOGD5.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-LLZ3SSZJ.js";
|
|
12
12
|
import "../../chunk-EJSPFQCY.js";
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-ERW5DEIO.js";
|
|
14
|
+
import "../../chunk-2HMCS25C.js";
|
|
15
15
|
import "../../chunk-VJVY6NPF.js";
|
|
16
16
|
import "../../chunk-MBZ55T2D.js";
|
|
17
17
|
import "../../chunk-2IKT6IHB.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-AA6GE3TH.js";
|
|
19
|
+
import "../../chunk-KZZKQLKF.js";
|
|
20
20
|
import "../../chunk-5IFPG6TS.js";
|
|
21
21
|
import "../../chunk-AJ5M6MVX.js";
|
|
22
22
|
import "../../chunk-M6TSTDNZ.js";
|
|
@@ -35,7 +35,7 @@ import "../../chunk-ER6RCOH3.js";
|
|
|
35
35
|
import "../../chunk-EU73QPW7.js";
|
|
36
36
|
import "../../chunk-QVWYTQKL.js";
|
|
37
37
|
import "../../chunk-NO5BIKWS.js";
|
|
38
|
-
import "../../chunk-
|
|
38
|
+
import "../../chunk-MQX7GFLX.js";
|
|
39
39
|
import "../../chunk-V47RTW7E.js";
|
|
40
40
|
import "../../chunk-22VBZWJG.js";
|
|
41
41
|
import "../../chunk-NVOZAVEX.js";
|
|
@@ -49,9 +49,9 @@ import "../../chunk-VXWSAIB5.js";
|
|
|
49
49
|
import "../../chunk-TYTD4FLW.js";
|
|
50
50
|
import "../../chunk-5UH6QUFB.js";
|
|
51
51
|
import "../../chunk-FA7IFW66.js";
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../chunk-
|
|
54
|
-
import "../../chunk-
|
|
52
|
+
import "../../chunk-JIMJIJOF.js";
|
|
53
|
+
import "../../chunk-EZCH4PQS.js";
|
|
54
|
+
import "../../chunk-GB4ZTUQV.js";
|
|
55
55
|
import "../../chunk-OGIFIPKH.js";
|
|
56
56
|
import "../../chunk-NKUETCDA.js";
|
|
57
57
|
import "../../chunk-WWAPK5PH.js";
|
|
@@ -544,7 +544,8 @@ var Stack = (_a) => {
|
|
|
544
544
|
marginBottom,
|
|
545
545
|
testid,
|
|
546
546
|
bottom,
|
|
547
|
-
zIndex
|
|
547
|
+
zIndex,
|
|
548
|
+
flexWrap
|
|
548
549
|
} = _b, props = __objRest(_b, [
|
|
549
550
|
"children",
|
|
550
551
|
"items",
|
|
@@ -583,9 +584,10 @@ var Stack = (_a) => {
|
|
|
583
584
|
"marginBottom",
|
|
584
585
|
"testid",
|
|
585
586
|
"bottom",
|
|
586
|
-
"zIndex"
|
|
587
|
+
"zIndex",
|
|
588
|
+
"flexWrap"
|
|
587
589
|
]);
|
|
588
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
590
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
589
591
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
590
592
|
const gapClassNames = useGapClassNames(sizing);
|
|
591
593
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -612,7 +614,9 @@ var Stack = (_a) => {
|
|
|
612
614
|
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
613
615
|
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
614
616
|
zIndex: zIndex !== void 0 ? zIndex : void 0,
|
|
615
|
-
|
|
617
|
+
flexWrap,
|
|
618
|
+
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
619
|
+
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
616
620
|
},
|
|
617
621
|
className: (0, import_clsx6.default)(
|
|
618
622
|
"scrollbar-thin",
|
|
@@ -423,6 +423,7 @@ var OptionPill = (_a) => {
|
|
|
423
423
|
onClick,
|
|
424
424
|
onRemove,
|
|
425
425
|
removable = false,
|
|
426
|
+
active = false,
|
|
426
427
|
disabled = false,
|
|
427
428
|
children,
|
|
428
429
|
className
|
|
@@ -433,19 +434,27 @@ var OptionPill = (_a) => {
|
|
|
433
434
|
"onClick",
|
|
434
435
|
"onRemove",
|
|
435
436
|
"removable",
|
|
437
|
+
"active",
|
|
436
438
|
"disabled",
|
|
437
439
|
"children",
|
|
438
440
|
"className"
|
|
439
441
|
]);
|
|
440
442
|
const additionalAttributes = {
|
|
441
443
|
"data-disabled": disabled || null,
|
|
442
|
-
"data-selected": selected || null
|
|
444
|
+
"data-selected": selected || null,
|
|
445
|
+
"data-active": active || null
|
|
443
446
|
};
|
|
444
447
|
const classNames = (0, import_clsx5.default)(
|
|
445
448
|
{
|
|
449
|
+
// Base interactive (only when not disabled)
|
|
446
450
|
"hover:border-border-action-hover active:border-border-action-active": !disabled,
|
|
451
|
+
// Disabled base
|
|
447
452
|
"data-disabled:cursor-default data-disabled:border-border-primary-normal": disabled,
|
|
453
|
+
// Active (Figma: filled blue background, white text)
|
|
454
|
+
"data-active:bg-background-action-primary-normal data-active:text-white data-active:border-transparent": active && !selected,
|
|
455
|
+
// Selected (filled style) overrides background & border, but keeps outline interaction chain.
|
|
448
456
|
"data-selected:border-transparent data-selected:bg-background-action-secondary-hover data-selected:outline-border-action-normal data-selected:hover:outline-border-action-hover data-selected:active:outline-border-action-active": selected,
|
|
457
|
+
// Disabled + Selected combination
|
|
449
458
|
"data-selected:data-disabled:bg-background-action-secondary-disabled data-selected:data-disabled:border-border-action-disabled data-selected:data-disabled:outline-transparent": disabled && selected
|
|
450
459
|
},
|
|
451
460
|
!removable && componentPadding,
|
|
@@ -497,7 +506,7 @@ var OptionPill = (_a) => {
|
|
|
497
506
|
),
|
|
498
507
|
iconOnly: true,
|
|
499
508
|
variant: "tertiary",
|
|
500
|
-
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close" })
|
|
509
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close", size: 16 })
|
|
501
510
|
}
|
|
502
511
|
)
|
|
503
512
|
]
|
|
@@ -293,7 +293,8 @@ var Stack = (_a) => {
|
|
|
293
293
|
marginBottom,
|
|
294
294
|
testid,
|
|
295
295
|
bottom,
|
|
296
|
-
zIndex
|
|
296
|
+
zIndex,
|
|
297
|
+
flexWrap
|
|
297
298
|
} = _b, props = __objRest(_b, [
|
|
298
299
|
"children",
|
|
299
300
|
"items",
|
|
@@ -332,9 +333,10 @@ var Stack = (_a) => {
|
|
|
332
333
|
"marginBottom",
|
|
333
334
|
"testid",
|
|
334
335
|
"bottom",
|
|
335
|
-
"zIndex"
|
|
336
|
+
"zIndex",
|
|
337
|
+
"flexWrap"
|
|
336
338
|
]);
|
|
337
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
339
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
338
340
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
339
341
|
const gapClassNames = useGapClassNames(sizing);
|
|
340
342
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -361,7 +363,9 @@ var Stack = (_a) => {
|
|
|
361
363
|
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
362
364
|
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
363
365
|
zIndex: zIndex !== void 0 ? zIndex : void 0,
|
|
364
|
-
|
|
366
|
+
flexWrap,
|
|
367
|
+
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
368
|
+
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
365
369
|
},
|
|
366
370
|
className: (0, import_clsx2.default)(
|
|
367
371
|
"scrollbar-thin",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PDFElement
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ERW5DEIO.js";
|
|
4
4
|
import "../../chunk-VJVY6NPF.js";
|
|
5
5
|
import "../../chunk-SBRRNFOP.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-GB4ZTUQV.js";
|
|
7
7
|
import "../../chunk-6CTCHYIS.js";
|
|
8
8
|
import "../../chunk-ORMEWXMH.js";
|
|
9
9
|
export {
|
|
@@ -541,7 +541,8 @@ var Stack = (_a) => {
|
|
|
541
541
|
marginBottom,
|
|
542
542
|
testid,
|
|
543
543
|
bottom,
|
|
544
|
-
zIndex
|
|
544
|
+
zIndex,
|
|
545
|
+
flexWrap
|
|
545
546
|
} = _b, props = __objRest(_b, [
|
|
546
547
|
"children",
|
|
547
548
|
"items",
|
|
@@ -580,9 +581,10 @@ var Stack = (_a) => {
|
|
|
580
581
|
"marginBottom",
|
|
581
582
|
"testid",
|
|
582
583
|
"bottom",
|
|
583
|
-
"zIndex"
|
|
584
|
+
"zIndex",
|
|
585
|
+
"flexWrap"
|
|
584
586
|
]);
|
|
585
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
587
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
586
588
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
587
589
|
const gapClassNames = useGapClassNames(sizing);
|
|
588
590
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -609,7 +611,9 @@ var Stack = (_a) => {
|
|
|
609
611
|
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
610
612
|
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
611
613
|
zIndex: zIndex !== void 0 ? zIndex : void 0,
|
|
612
|
-
|
|
614
|
+
flexWrap,
|
|
615
|
+
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
616
|
+
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
613
617
|
},
|
|
614
618
|
className: (0, import_clsx6.default)(
|
|
615
619
|
"scrollbar-thin",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PdfNavigation
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-2HMCS25C.js";
|
|
4
4
|
import "../../chunk-EU73QPW7.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-GB4ZTUQV.js";
|
|
6
6
|
import "../../chunk-OGIFIPKH.js";
|
|
7
7
|
import "../../chunk-NKUETCDA.js";
|
|
8
8
|
import "../../chunk-WWAPK5PH.js";
|
|
@@ -996,7 +996,8 @@ var Stack = (_a) => {
|
|
|
996
996
|
marginBottom,
|
|
997
997
|
testid,
|
|
998
998
|
bottom,
|
|
999
|
-
zIndex
|
|
999
|
+
zIndex,
|
|
1000
|
+
flexWrap
|
|
1000
1001
|
} = _b, props = __objRest(_b, [
|
|
1001
1002
|
"children",
|
|
1002
1003
|
"items",
|
|
@@ -1035,9 +1036,10 @@ var Stack = (_a) => {
|
|
|
1035
1036
|
"marginBottom",
|
|
1036
1037
|
"testid",
|
|
1037
1038
|
"bottom",
|
|
1038
|
-
"zIndex"
|
|
1039
|
+
"zIndex",
|
|
1040
|
+
"flexWrap"
|
|
1039
1041
|
]);
|
|
1040
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
1042
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
1041
1043
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
1042
1044
|
const gapClassNames = useGapClassNames(sizing);
|
|
1043
1045
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
@@ -1064,7 +1066,9 @@ var Stack = (_a) => {
|
|
|
1064
1066
|
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
1065
1067
|
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
1066
1068
|
zIndex: zIndex !== void 0 ? zIndex : void 0,
|
|
1067
|
-
|
|
1069
|
+
flexWrap,
|
|
1070
|
+
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
1071
|
+
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
1068
1072
|
},
|
|
1069
1073
|
className: (0, import_clsx10.default)(
|
|
1070
1074
|
"scrollbar-thin",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PDFViewer
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-LLZ3SSZJ.js";
|
|
5
5
|
import "../../chunk-EJSPFQCY.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-ERW5DEIO.js";
|
|
7
|
+
import "../../chunk-2HMCS25C.js";
|
|
8
8
|
import "../../chunk-VJVY6NPF.js";
|
|
9
9
|
import "../../chunk-D6YCMQPO.js";
|
|
10
10
|
import "../../chunk-4RJKB7LC.js";
|
|
@@ -18,7 +18,7 @@ import "../../chunk-MYKYZHEO.js";
|
|
|
18
18
|
import "../../chunk-VXWSAIB5.js";
|
|
19
19
|
import "../../chunk-TYTD4FLW.js";
|
|
20
20
|
import "../../chunk-5UH6QUFB.js";
|
|
21
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-GB4ZTUQV.js";
|
|
22
22
|
import "../../chunk-OGIFIPKH.js";
|
|
23
23
|
import "../../chunk-NKUETCDA.js";
|
|
24
24
|
import "../../chunk-WWAPK5PH.js";
|