@dmsi/wedgekit-react 0.0.1229 → 0.0.1230
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-YCDDBSVU.js → chunk-65HTZ3R2.js} +3 -1
- package/dist/{chunk-6R5GQV6W.js → chunk-ICJARSLG.js} +35 -11
- package/dist/{chunk-3X3Y4TMS.js → chunk-JRNU5BZ4.js} +3 -1
- package/dist/{chunk-2IKT6IHB.js → chunk-S4XW2XZW.js} +2 -0
- package/dist/{chunk-AJGTMNW5.js → chunk-XW4B4CUY.js} +59 -40
- package/dist/components/CalendarRange.cjs +26 -25
- package/dist/components/CalendarRange.js +5 -5
- package/dist/components/CompactImagesPreview.cjs +34 -10
- package/dist/components/CompactImagesPreview.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +16 -15
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +19 -18
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -5
- package/dist/components/DataGrid/PinnedColumns.cjs +21 -20
- package/dist/components/DataGrid/PinnedColumns.js +5 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +14 -13
- package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -5
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +16 -15
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -5
- package/dist/components/DataGrid/TableBody/index.cjs +16 -15
- package/dist/components/DataGrid/TableBody/index.js +5 -5
- package/dist/components/DataGrid/index.cjs +39 -38
- package/dist/components/DataGrid/index.js +5 -5
- package/dist/components/DataGrid/utils.cjs +14 -13
- package/dist/components/DataGrid/utils.js +5 -5
- package/dist/components/DateInput.cjs +38 -37
- package/dist/components/DateInput.js +5 -5
- package/dist/components/DateRangeInput.cjs +39 -38
- package/dist/components/DateRangeInput.js +5 -5
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +18 -17
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -5
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +18 -17
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -5
- package/dist/components/MobileDataGrid/index.cjs +41 -40
- package/dist/components/MobileDataGrid/index.js +5 -5
- package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +2 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.js +1 -1
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +3 -1
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +1 -1
- package/dist/components/ProductImagePreview/Thumbnail.cjs +3 -1
- package/dist/components/ProductImagePreview/Thumbnail.js +1 -1
- package/dist/components/ProductImagePreview/index.cjs +64 -39
- package/dist/components/ProductImagePreview/index.js +4 -4
- package/dist/components/index.cjs +138 -89
- package/dist/components/index.js +5 -5
- package/package.json +1 -1
|
@@ -6193,10 +6193,11 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
|
6193
6193
|
var import_react33 = require("react");
|
|
6194
6194
|
|
|
6195
6195
|
// src/components/ProductImagePreview/index.tsx
|
|
6196
|
+
var import_react34 = require("react");
|
|
6196
6197
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6197
6198
|
|
|
6198
6199
|
// src/components/CompactImagesPreview.tsx
|
|
6199
|
-
var
|
|
6200
|
+
var import_react35 = require("react");
|
|
6200
6201
|
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
6201
6202
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6202
6203
|
|
|
@@ -6205,12 +6206,12 @@ var import_clsx36 = __toESM(require("clsx"), 1);
|
|
|
6205
6206
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6206
6207
|
|
|
6207
6208
|
// src/components/ListGroup.tsx
|
|
6208
|
-
var
|
|
6209
|
+
var import_react36 = require("react");
|
|
6209
6210
|
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
6210
6211
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6211
6212
|
|
|
6212
6213
|
// src/components/Pagination.tsx
|
|
6213
|
-
var
|
|
6214
|
+
var import_react37 = require("react");
|
|
6214
6215
|
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
6215
6216
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6216
6217
|
var Pagination = ({
|
|
@@ -6222,7 +6223,7 @@ var Pagination = ({
|
|
|
6222
6223
|
className,
|
|
6223
6224
|
disabled
|
|
6224
6225
|
}) => {
|
|
6225
|
-
const goTo = (0,
|
|
6226
|
+
const goTo = (0, import_react37.useCallback)(
|
|
6226
6227
|
(page) => {
|
|
6227
6228
|
if (disabled) return;
|
|
6228
6229
|
onPageChange(page);
|
|
@@ -6239,7 +6240,7 @@ var Pagination = ({
|
|
|
6239
6240
|
goTo(currentPage + 1);
|
|
6240
6241
|
}
|
|
6241
6242
|
};
|
|
6242
|
-
const pageTokens = (0,
|
|
6243
|
+
const pageTokens = (0, import_react37.useMemo)(() => {
|
|
6243
6244
|
if (totalPages <= 5) {
|
|
6244
6245
|
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
6245
6246
|
}
|
|
@@ -6362,21 +6363,21 @@ var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
|
6362
6363
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6363
6364
|
|
|
6364
6365
|
// src/components/SearchResultImage/index.tsx
|
|
6365
|
-
var
|
|
6366
|
+
var import_react38 = require("react");
|
|
6366
6367
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6367
6368
|
|
|
6368
6369
|
// src/components/Alert.tsx
|
|
6369
6370
|
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
6370
|
-
var
|
|
6371
|
+
var import_react39 = require("react");
|
|
6371
6372
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
6372
6373
|
|
|
6373
6374
|
// src/components/OrderCheckIcon.tsx
|
|
6374
6375
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6375
6376
|
|
|
6376
6377
|
// src/components/EditingContext.tsx
|
|
6377
|
-
var
|
|
6378
|
+
var import_react40 = require("react");
|
|
6378
6379
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6379
|
-
var EditingContext = (0,
|
|
6380
|
+
var EditingContext = (0, import_react40.createContext)(null);
|
|
6380
6381
|
|
|
6381
6382
|
// src/components/AccessCard.tsx
|
|
6382
6383
|
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
@@ -6510,11 +6511,11 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
|
6510
6511
|
|
|
6511
6512
|
// src/components/AccessCardGroup.tsx
|
|
6512
6513
|
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
6513
|
-
var
|
|
6514
|
+
var import_react41 = require("react");
|
|
6514
6515
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6515
6516
|
|
|
6516
6517
|
// src/components/EmblaCarousel/index.tsx
|
|
6517
|
-
var
|
|
6518
|
+
var import_react44 = __toESM(require("react"), 1);
|
|
6518
6519
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
6519
6520
|
var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"), 1);
|
|
6520
6521
|
|
|
@@ -6522,7 +6523,7 @@ var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"),
|
|
|
6522
6523
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6523
6524
|
|
|
6524
6525
|
// src/components/EmblaCarousel/useSelectedSnapDisplay.ts
|
|
6525
|
-
var
|
|
6526
|
+
var import_react42 = require("react");
|
|
6526
6527
|
|
|
6527
6528
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
6528
6529
|
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
@@ -6532,7 +6533,7 @@ var arrowButtonStyles = (0, import_clsx43.default)(
|
|
|
6532
6533
|
);
|
|
6533
6534
|
|
|
6534
6535
|
// src/components/EmblaCarousel/usePrevNextButtons.ts
|
|
6535
|
-
var
|
|
6536
|
+
var import_react43 = require("react");
|
|
6536
6537
|
|
|
6537
6538
|
// src/components/EmblaCarousel/index.tsx
|
|
6538
6539
|
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
@@ -5,11 +5,11 @@ import "../../chunk-3UPUZBP5.js";
|
|
|
5
5
|
import "../../chunk-7ZJIGTFN.js";
|
|
6
6
|
import "../../chunk-E3FOCECQ.js";
|
|
7
7
|
import "../../chunk-Y5GD2FJA.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-XW4B4CUY.js";
|
|
9
9
|
import "../../chunk-MBZ55T2D.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-S4XW2XZW.js";
|
|
11
|
+
import "../../chunk-65HTZ3R2.js";
|
|
12
|
+
import "../../chunk-JRNU5BZ4.js";
|
|
13
13
|
import "../../chunk-BQNPOGD5.js";
|
|
14
14
|
import "../../chunk-YULGJORA.js";
|
|
15
15
|
import "../../chunk-Z2HPSFEQ.js";
|
|
@@ -47,7 +47,7 @@ import "../../chunk-PABII472.js";
|
|
|
47
47
|
import "../../chunk-4UGMSWWA.js";
|
|
48
48
|
import "../../chunk-WVUIIBRR.js";
|
|
49
49
|
import "../../chunk-I3W5K76C.js";
|
|
50
|
-
import "../../chunk-
|
|
50
|
+
import "../../chunk-ICJARSLG.js";
|
|
51
51
|
import "../../chunk-ZRFXUER3.js";
|
|
52
52
|
import "../../chunk-WVGXD7HT.js";
|
|
53
53
|
import "../../chunk-VXWSAIB5.js";
|
|
@@ -62,7 +62,7 @@ __export(DateInput_exports, {
|
|
|
62
62
|
DateInput: () => DateInput
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(DateInput_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react44 = require("react");
|
|
66
66
|
var import_react_dom4 = require("react-dom");
|
|
67
67
|
var import_clsx45 = __toESM(require("clsx"), 1);
|
|
68
68
|
|
|
@@ -914,7 +914,7 @@ Percentage.displayName = "Percentage";
|
|
|
914
914
|
|
|
915
915
|
// src/components/CalendarRange.tsx
|
|
916
916
|
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
917
|
-
var
|
|
917
|
+
var import_react43 = __toESM(require("react"), 1);
|
|
918
918
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
919
919
|
|
|
920
920
|
// src/components/DataGridCell.tsx
|
|
@@ -5386,10 +5386,11 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
|
5386
5386
|
var import_react31 = require("react");
|
|
5387
5387
|
|
|
5388
5388
|
// src/components/ProductImagePreview/index.tsx
|
|
5389
|
+
var import_react32 = require("react");
|
|
5389
5390
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5390
5391
|
|
|
5391
5392
|
// src/components/CompactImagesPreview.tsx
|
|
5392
|
-
var
|
|
5393
|
+
var import_react33 = require("react");
|
|
5393
5394
|
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
5394
5395
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5395
5396
|
|
|
@@ -5398,12 +5399,12 @@ var import_clsx35 = __toESM(require("clsx"), 1);
|
|
|
5398
5399
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5399
5400
|
|
|
5400
5401
|
// src/components/ListGroup.tsx
|
|
5401
|
-
var
|
|
5402
|
+
var import_react34 = require("react");
|
|
5402
5403
|
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5403
5404
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5404
5405
|
|
|
5405
5406
|
// src/components/Pagination.tsx
|
|
5406
|
-
var
|
|
5407
|
+
var import_react35 = require("react");
|
|
5407
5408
|
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5408
5409
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5409
5410
|
var Pagination = ({
|
|
@@ -5415,7 +5416,7 @@ var Pagination = ({
|
|
|
5415
5416
|
className,
|
|
5416
5417
|
disabled
|
|
5417
5418
|
}) => {
|
|
5418
|
-
const goTo = (0,
|
|
5419
|
+
const goTo = (0, import_react35.useCallback)(
|
|
5419
5420
|
(page) => {
|
|
5420
5421
|
if (disabled) return;
|
|
5421
5422
|
onPageChange(page);
|
|
@@ -5432,7 +5433,7 @@ var Pagination = ({
|
|
|
5432
5433
|
goTo(currentPage + 1);
|
|
5433
5434
|
}
|
|
5434
5435
|
};
|
|
5435
|
-
const pageTokens = (0,
|
|
5436
|
+
const pageTokens = (0, import_react35.useMemo)(() => {
|
|
5436
5437
|
if (totalPages <= 5) {
|
|
5437
5438
|
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
5438
5439
|
}
|
|
@@ -5555,21 +5556,21 @@ var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
|
5555
5556
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5556
5557
|
|
|
5557
5558
|
// src/components/SearchResultImage/index.tsx
|
|
5558
|
-
var
|
|
5559
|
+
var import_react36 = require("react");
|
|
5559
5560
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5560
5561
|
|
|
5561
5562
|
// src/components/Alert.tsx
|
|
5562
5563
|
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5563
|
-
var
|
|
5564
|
+
var import_react37 = require("react");
|
|
5564
5565
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5565
5566
|
|
|
5566
5567
|
// src/components/OrderCheckIcon.tsx
|
|
5567
5568
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5568
5569
|
|
|
5569
5570
|
// src/components/EditingContext.tsx
|
|
5570
|
-
var
|
|
5571
|
+
var import_react38 = require("react");
|
|
5571
5572
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5572
|
-
var EditingContext = (0,
|
|
5573
|
+
var EditingContext = (0, import_react38.createContext)(null);
|
|
5573
5574
|
|
|
5574
5575
|
// src/components/AccessCard.tsx
|
|
5575
5576
|
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
@@ -5703,11 +5704,11 @@ var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
|
5703
5704
|
|
|
5704
5705
|
// src/components/AccessCardGroup.tsx
|
|
5705
5706
|
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
5706
|
-
var
|
|
5707
|
+
var import_react39 = require("react");
|
|
5707
5708
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5708
5709
|
|
|
5709
5710
|
// src/components/EmblaCarousel/index.tsx
|
|
5710
|
-
var
|
|
5711
|
+
var import_react42 = __toESM(require("react"), 1);
|
|
5711
5712
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
5712
5713
|
var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"), 1);
|
|
5713
5714
|
|
|
@@ -5715,7 +5716,7 @@ var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"),
|
|
|
5715
5716
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5716
5717
|
|
|
5717
5718
|
// src/components/EmblaCarousel/useSelectedSnapDisplay.ts
|
|
5718
|
-
var
|
|
5719
|
+
var import_react40 = require("react");
|
|
5719
5720
|
|
|
5720
5721
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
5721
5722
|
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
@@ -5725,7 +5726,7 @@ var arrowButtonStyles = (0, import_clsx42.default)(
|
|
|
5725
5726
|
);
|
|
5726
5727
|
|
|
5727
5728
|
// src/components/EmblaCarousel/usePrevNextButtons.ts
|
|
5728
|
-
var
|
|
5729
|
+
var import_react41 = require("react");
|
|
5729
5730
|
|
|
5730
5731
|
// src/components/EmblaCarousel/index.tsx
|
|
5731
5732
|
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
@@ -5843,20 +5844,20 @@ function CalendarRange({
|
|
|
5843
5844
|
const fromDate = parseDate(from);
|
|
5844
5845
|
const toDate = parseDate(to);
|
|
5845
5846
|
const today = import_polyfill.Temporal.Now.plainDateISO();
|
|
5846
|
-
const [baseMonth, setBaseMonth] = (0,
|
|
5847
|
+
const [baseMonth, setBaseMonth] = (0, import_react43.useState)(
|
|
5847
5848
|
fromDate != null ? fromDate : today.with({ day: 1 })
|
|
5848
5849
|
);
|
|
5849
|
-
const [selecting, setSelecting] = (0,
|
|
5850
|
-
const [pendingFrom, setPendingFrom] = (0,
|
|
5851
|
-
const [hoveredDate, setHoveredDate] = (0,
|
|
5852
|
-
(0,
|
|
5850
|
+
const [selecting, setSelecting] = (0, import_react43.useState)("from");
|
|
5851
|
+
const [pendingFrom, setPendingFrom] = (0, import_react43.useState)(void 0);
|
|
5852
|
+
const [hoveredDate, setHoveredDate] = (0, import_react43.useState)(void 0);
|
|
5853
|
+
(0, import_react43.useEffect)(() => {
|
|
5853
5854
|
if (fromDate) {
|
|
5854
5855
|
setBaseMonth(fromDate.with({ day: 1 }));
|
|
5855
5856
|
} else if (toDate) {
|
|
5856
5857
|
setBaseMonth(toDate.with({ day: 1 }));
|
|
5857
5858
|
}
|
|
5858
5859
|
}, [from, to]);
|
|
5859
|
-
(0,
|
|
5860
|
+
(0, import_react43.useEffect)(() => {
|
|
5860
5861
|
if (fromDate && toDate) {
|
|
5861
5862
|
setSelecting("from");
|
|
5862
5863
|
setPendingFrom(void 0);
|
|
@@ -6002,14 +6003,14 @@ function CalendarPane({
|
|
|
6002
6003
|
const years = Array.from({ length: 100 }).map(
|
|
6003
6004
|
(_, i) => baseMonth.year - 50 + i
|
|
6004
6005
|
);
|
|
6005
|
-
const [monthMenuOpen, setMonthMenuOpen] = (0,
|
|
6006
|
-
const [yearMenuOpen, setYearMenuOpen] = (0,
|
|
6007
|
-
const monthMenuRef = (0,
|
|
6008
|
-
const yearMenuRef = (0,
|
|
6006
|
+
const [monthMenuOpen, setMonthMenuOpen] = (0, import_react43.useState)(false);
|
|
6007
|
+
const [yearMenuOpen, setYearMenuOpen] = (0, import_react43.useState)(false);
|
|
6008
|
+
const monthMenuRef = (0, import_react43.useRef)(null);
|
|
6009
|
+
const yearMenuRef = (0, import_react43.useRef)(null);
|
|
6009
6010
|
const month = getMonthData(offset);
|
|
6010
6011
|
const totalCells = 42;
|
|
6011
6012
|
const emptyCells = month.firstDayOffset;
|
|
6012
|
-
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
6013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_react43.default.Fragment, { children: [
|
|
6013
6014
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
6014
6015
|
"div",
|
|
6015
6016
|
{
|
|
@@ -6275,26 +6276,26 @@ var DateInput = (_a) => {
|
|
|
6275
6276
|
"disableManualInput",
|
|
6276
6277
|
"dateInDashes"
|
|
6277
6278
|
]);
|
|
6278
|
-
const [visible, setVisible] = (0,
|
|
6279
|
-
const [inputValue, setInputValue] = (0,
|
|
6280
|
-
const [isTyping, setIsTyping] = (0,
|
|
6281
|
-
const popoverRef = (0,
|
|
6282
|
-
const triggerRef = (0,
|
|
6283
|
-
const rootRef = (0,
|
|
6279
|
+
const [visible, setVisible] = (0, import_react44.useState)(false);
|
|
6280
|
+
const [inputValue, setInputValue] = (0, import_react44.useState)("");
|
|
6281
|
+
const [isTyping, setIsTyping] = (0, import_react44.useState)(false);
|
|
6282
|
+
const popoverRef = (0, import_react44.useRef)(null);
|
|
6283
|
+
const triggerRef = (0, import_react44.useRef)(null);
|
|
6284
|
+
const rootRef = (0, import_react44.useRef)(null);
|
|
6284
6285
|
const isMobile = useMatchesMobile();
|
|
6285
|
-
const [calendarPosition, setCalendarPosition] = (0,
|
|
6286
|
+
const [calendarPosition, setCalendarPosition] = (0, import_react44.useState)({
|
|
6286
6287
|
top: 0,
|
|
6287
6288
|
left: 0,
|
|
6288
6289
|
width: 0,
|
|
6289
6290
|
openAbove: false
|
|
6290
6291
|
});
|
|
6291
6292
|
const [from, to] = [value, ""];
|
|
6292
|
-
(0,
|
|
6293
|
+
(0, import_react44.useEffect)(() => {
|
|
6293
6294
|
if (!isTyping) {
|
|
6294
6295
|
setInputValue(formatDisplayValue(from, dateInDashes));
|
|
6295
6296
|
}
|
|
6296
6297
|
}, [from, isTyping, dateInDashes]);
|
|
6297
|
-
(0,
|
|
6298
|
+
(0, import_react44.useLayoutEffect)(() => {
|
|
6298
6299
|
if (visible) {
|
|
6299
6300
|
updatePosition();
|
|
6300
6301
|
}
|
|
@@ -6326,7 +6327,7 @@ var DateInput = (_a) => {
|
|
|
6326
6327
|
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
6327
6328
|
}
|
|
6328
6329
|
};
|
|
6329
|
-
(0,
|
|
6330
|
+
(0, import_react44.useEffect)(() => {
|
|
6330
6331
|
updatePosition();
|
|
6331
6332
|
const resizeObserver = new ResizeObserver(updatePosition);
|
|
6332
6333
|
if (triggerRef.current) {
|
|
@@ -6338,7 +6339,7 @@ var DateInput = (_a) => {
|
|
|
6338
6339
|
window.removeEventListener("scroll", updatePosition);
|
|
6339
6340
|
};
|
|
6340
6341
|
}, []);
|
|
6341
|
-
(0,
|
|
6342
|
+
(0, import_react44.useEffect)(() => {
|
|
6342
6343
|
const handleKeyDown2 = (event) => {
|
|
6343
6344
|
var _a2;
|
|
6344
6345
|
if (event.key === "Escape" && popoverRef.current) {
|
|
@@ -5,11 +5,11 @@ import "../chunk-3UPUZBP5.js";
|
|
|
5
5
|
import "../chunk-7ZJIGTFN.js";
|
|
6
6
|
import "../chunk-E3FOCECQ.js";
|
|
7
7
|
import "../chunk-Y5GD2FJA.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-XW4B4CUY.js";
|
|
9
9
|
import "../chunk-MBZ55T2D.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-S4XW2XZW.js";
|
|
11
|
+
import "../chunk-65HTZ3R2.js";
|
|
12
|
+
import "../chunk-JRNU5BZ4.js";
|
|
13
13
|
import "../chunk-BQNPOGD5.js";
|
|
14
14
|
import "../chunk-YULGJORA.js";
|
|
15
15
|
import "../chunk-Z2HPSFEQ.js";
|
|
@@ -47,7 +47,7 @@ import "../chunk-PABII472.js";
|
|
|
47
47
|
import "../chunk-4UGMSWWA.js";
|
|
48
48
|
import "../chunk-WVUIIBRR.js";
|
|
49
49
|
import "../chunk-I3W5K76C.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-ICJARSLG.js";
|
|
51
51
|
import "../chunk-ZRFXUER3.js";
|
|
52
52
|
import "../chunk-WVGXD7HT.js";
|
|
53
53
|
import "../chunk-VXWSAIB5.js";
|
|
@@ -62,7 +62,7 @@ __export(DateRangeInput_exports, {
|
|
|
62
62
|
DateRangeInput: () => DateRangeInput
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(DateRangeInput_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react45 = require("react");
|
|
66
66
|
var import_react_dom5 = require("react-dom");
|
|
67
67
|
|
|
68
68
|
// src/components/Input.tsx
|
|
@@ -913,7 +913,7 @@ Percentage.displayName = "Percentage";
|
|
|
913
913
|
|
|
914
914
|
// src/components/CalendarRange.tsx
|
|
915
915
|
var import_clsx45 = __toESM(require("clsx"), 1);
|
|
916
|
-
var
|
|
916
|
+
var import_react44 = __toESM(require("react"), 1);
|
|
917
917
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
918
918
|
|
|
919
919
|
// src/components/DataGridCell.tsx
|
|
@@ -5779,10 +5779,11 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
|
5779
5779
|
var import_react32 = require("react");
|
|
5780
5780
|
|
|
5781
5781
|
// src/components/ProductImagePreview/index.tsx
|
|
5782
|
+
var import_react33 = require("react");
|
|
5782
5783
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5783
5784
|
|
|
5784
5785
|
// src/components/CompactImagesPreview.tsx
|
|
5785
|
-
var
|
|
5786
|
+
var import_react34 = require("react");
|
|
5786
5787
|
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
5787
5788
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5788
5789
|
|
|
@@ -5791,12 +5792,12 @@ var import_clsx36 = __toESM(require("clsx"), 1);
|
|
|
5791
5792
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5792
5793
|
|
|
5793
5794
|
// src/components/ListGroup.tsx
|
|
5794
|
-
var
|
|
5795
|
+
var import_react35 = require("react");
|
|
5795
5796
|
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5796
5797
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5797
5798
|
|
|
5798
5799
|
// src/components/Pagination.tsx
|
|
5799
|
-
var
|
|
5800
|
+
var import_react36 = require("react");
|
|
5800
5801
|
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
5801
5802
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5802
5803
|
var Pagination = ({
|
|
@@ -5808,7 +5809,7 @@ var Pagination = ({
|
|
|
5808
5809
|
className,
|
|
5809
5810
|
disabled
|
|
5810
5811
|
}) => {
|
|
5811
|
-
const goTo = (0,
|
|
5812
|
+
const goTo = (0, import_react36.useCallback)(
|
|
5812
5813
|
(page) => {
|
|
5813
5814
|
if (disabled) return;
|
|
5814
5815
|
onPageChange(page);
|
|
@@ -5825,7 +5826,7 @@ var Pagination = ({
|
|
|
5825
5826
|
goTo(currentPage + 1);
|
|
5826
5827
|
}
|
|
5827
5828
|
};
|
|
5828
|
-
const pageTokens = (0,
|
|
5829
|
+
const pageTokens = (0, import_react36.useMemo)(() => {
|
|
5829
5830
|
if (totalPages <= 5) {
|
|
5830
5831
|
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
5831
5832
|
}
|
|
@@ -5948,21 +5949,21 @@ var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
|
5948
5949
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5949
5950
|
|
|
5950
5951
|
// src/components/SearchResultImage/index.tsx
|
|
5951
|
-
var
|
|
5952
|
+
var import_react37 = require("react");
|
|
5952
5953
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5953
5954
|
|
|
5954
5955
|
// src/components/Alert.tsx
|
|
5955
5956
|
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5956
|
-
var
|
|
5957
|
+
var import_react38 = require("react");
|
|
5957
5958
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5958
5959
|
|
|
5959
5960
|
// src/components/OrderCheckIcon.tsx
|
|
5960
5961
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5961
5962
|
|
|
5962
5963
|
// src/components/EditingContext.tsx
|
|
5963
|
-
var
|
|
5964
|
+
var import_react39 = require("react");
|
|
5964
5965
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5965
|
-
var EditingContext = (0,
|
|
5966
|
+
var EditingContext = (0, import_react39.createContext)(null);
|
|
5966
5967
|
|
|
5967
5968
|
// src/components/AccessCard.tsx
|
|
5968
5969
|
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
@@ -6096,11 +6097,11 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
|
6096
6097
|
|
|
6097
6098
|
// src/components/AccessCardGroup.tsx
|
|
6098
6099
|
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
6099
|
-
var
|
|
6100
|
+
var import_react40 = require("react");
|
|
6100
6101
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6101
6102
|
|
|
6102
6103
|
// src/components/EmblaCarousel/index.tsx
|
|
6103
|
-
var
|
|
6104
|
+
var import_react43 = __toESM(require("react"), 1);
|
|
6104
6105
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
6105
6106
|
var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"), 1);
|
|
6106
6107
|
|
|
@@ -6108,7 +6109,7 @@ var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"),
|
|
|
6108
6109
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6109
6110
|
|
|
6110
6111
|
// src/components/EmblaCarousel/useSelectedSnapDisplay.ts
|
|
6111
|
-
var
|
|
6112
|
+
var import_react41 = require("react");
|
|
6112
6113
|
|
|
6113
6114
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
6114
6115
|
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
@@ -6118,7 +6119,7 @@ var arrowButtonStyles = (0, import_clsx43.default)(
|
|
|
6118
6119
|
);
|
|
6119
6120
|
|
|
6120
6121
|
// src/components/EmblaCarousel/usePrevNextButtons.ts
|
|
6121
|
-
var
|
|
6122
|
+
var import_react42 = require("react");
|
|
6122
6123
|
|
|
6123
6124
|
// src/components/EmblaCarousel/index.tsx
|
|
6124
6125
|
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
@@ -6236,20 +6237,20 @@ function CalendarRange({
|
|
|
6236
6237
|
const fromDate = parseDate(from);
|
|
6237
6238
|
const toDate = parseDate(to);
|
|
6238
6239
|
const today = import_polyfill.Temporal.Now.plainDateISO();
|
|
6239
|
-
const [baseMonth, setBaseMonth] = (0,
|
|
6240
|
+
const [baseMonth, setBaseMonth] = (0, import_react44.useState)(
|
|
6240
6241
|
fromDate != null ? fromDate : today.with({ day: 1 })
|
|
6241
6242
|
);
|
|
6242
|
-
const [selecting, setSelecting] = (0,
|
|
6243
|
-
const [pendingFrom, setPendingFrom] = (0,
|
|
6244
|
-
const [hoveredDate, setHoveredDate] = (0,
|
|
6245
|
-
(0,
|
|
6243
|
+
const [selecting, setSelecting] = (0, import_react44.useState)("from");
|
|
6244
|
+
const [pendingFrom, setPendingFrom] = (0, import_react44.useState)(void 0);
|
|
6245
|
+
const [hoveredDate, setHoveredDate] = (0, import_react44.useState)(void 0);
|
|
6246
|
+
(0, import_react44.useEffect)(() => {
|
|
6246
6247
|
if (fromDate) {
|
|
6247
6248
|
setBaseMonth(fromDate.with({ day: 1 }));
|
|
6248
6249
|
} else if (toDate) {
|
|
6249
6250
|
setBaseMonth(toDate.with({ day: 1 }));
|
|
6250
6251
|
}
|
|
6251
6252
|
}, [from, to]);
|
|
6252
|
-
(0,
|
|
6253
|
+
(0, import_react44.useEffect)(() => {
|
|
6253
6254
|
if (fromDate && toDate) {
|
|
6254
6255
|
setSelecting("from");
|
|
6255
6256
|
setPendingFrom(void 0);
|
|
@@ -6395,14 +6396,14 @@ function CalendarPane({
|
|
|
6395
6396
|
const years = Array.from({ length: 100 }).map(
|
|
6396
6397
|
(_, i) => baseMonth.year - 50 + i
|
|
6397
6398
|
);
|
|
6398
|
-
const [monthMenuOpen, setMonthMenuOpen] = (0,
|
|
6399
|
-
const [yearMenuOpen, setYearMenuOpen] = (0,
|
|
6400
|
-
const monthMenuRef = (0,
|
|
6401
|
-
const yearMenuRef = (0,
|
|
6399
|
+
const [monthMenuOpen, setMonthMenuOpen] = (0, import_react44.useState)(false);
|
|
6400
|
+
const [yearMenuOpen, setYearMenuOpen] = (0, import_react44.useState)(false);
|
|
6401
|
+
const monthMenuRef = (0, import_react44.useRef)(null);
|
|
6402
|
+
const yearMenuRef = (0, import_react44.useRef)(null);
|
|
6402
6403
|
const month = getMonthData(offset);
|
|
6403
6404
|
const totalCells = 42;
|
|
6404
6405
|
const emptyCells = month.firstDayOffset;
|
|
6405
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
6406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react44.default.Fragment, { children: [
|
|
6406
6407
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
6407
6408
|
"div",
|
|
6408
6409
|
{
|
|
@@ -6616,19 +6617,19 @@ var DateRangeInput = (_a) => {
|
|
|
6616
6617
|
"isDateAvailable",
|
|
6617
6618
|
"onPendingFromChange"
|
|
6618
6619
|
]);
|
|
6619
|
-
const [visible, setVisible] = (0,
|
|
6620
|
-
const [inputValue, setInputValue] = (0,
|
|
6621
|
-
const [isTyping, setIsTyping] = (0,
|
|
6622
|
-
const popoverRef = (0,
|
|
6623
|
-
const rootRef = (0,
|
|
6624
|
-
const triggerRef = (0,
|
|
6625
|
-
const [calendarPosition, setCalendarPosition] = (0,
|
|
6620
|
+
const [visible, setVisible] = (0, import_react45.useState)(false);
|
|
6621
|
+
const [inputValue, setInputValue] = (0, import_react45.useState)("");
|
|
6622
|
+
const [isTyping, setIsTyping] = (0, import_react45.useState)(false);
|
|
6623
|
+
const popoverRef = (0, import_react45.useRef)(null);
|
|
6624
|
+
const rootRef = (0, import_react45.useRef)(null);
|
|
6625
|
+
const triggerRef = (0, import_react45.useRef)(null);
|
|
6626
|
+
const [calendarPosition, setCalendarPosition] = (0, import_react45.useState)({
|
|
6626
6627
|
top: 0,
|
|
6627
6628
|
left: 0,
|
|
6628
6629
|
width: 0
|
|
6629
6630
|
});
|
|
6630
6631
|
const [from, to] = value.split("|");
|
|
6631
|
-
(0,
|
|
6632
|
+
(0, import_react45.useEffect)(() => {
|
|
6632
6633
|
if (!isTyping) {
|
|
6633
6634
|
const displayValue = formatDisplayValue2(from, to);
|
|
6634
6635
|
if (displayValue) {
|
|
@@ -6636,7 +6637,7 @@ var DateRangeInput = (_a) => {
|
|
|
6636
6637
|
}
|
|
6637
6638
|
}
|
|
6638
6639
|
}, [from, to, isTyping, disableRange]);
|
|
6639
|
-
(0,
|
|
6640
|
+
(0, import_react45.useLayoutEffect)(() => {
|
|
6640
6641
|
if (visible) {
|
|
6641
6642
|
updatePosition();
|
|
6642
6643
|
}
|
|
@@ -6651,7 +6652,7 @@ var DateRangeInput = (_a) => {
|
|
|
6651
6652
|
});
|
|
6652
6653
|
}
|
|
6653
6654
|
};
|
|
6654
|
-
(0,
|
|
6655
|
+
(0, import_react45.useEffect)(() => {
|
|
6655
6656
|
updatePosition();
|
|
6656
6657
|
const resizeObserver = new ResizeObserver(updatePosition);
|
|
6657
6658
|
if (triggerRef.current) {
|
|
@@ -6663,7 +6664,7 @@ var DateRangeInput = (_a) => {
|
|
|
6663
6664
|
window.removeEventListener("scroll", updatePosition);
|
|
6664
6665
|
};
|
|
6665
6666
|
}, []);
|
|
6666
|
-
(0,
|
|
6667
|
+
(0, import_react45.useEffect)(() => {
|
|
6667
6668
|
const handleKeyDown2 = (event) => {
|
|
6668
6669
|
var _a2;
|
|
6669
6670
|
if (event.key === "Escape" && popoverRef.current) {
|
|
@@ -6676,7 +6677,7 @@ var DateRangeInput = (_a) => {
|
|
|
6676
6677
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
6677
6678
|
};
|
|
6678
6679
|
}, []);
|
|
6679
|
-
(0,
|
|
6680
|
+
(0, import_react45.useEffect)(() => {
|
|
6680
6681
|
const handleClickOutside = (event) => {
|
|
6681
6682
|
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
6682
6683
|
setVisible(false);
|
|
@@ -5,11 +5,11 @@ import "../chunk-3UPUZBP5.js";
|
|
|
5
5
|
import "../chunk-7ZJIGTFN.js";
|
|
6
6
|
import "../chunk-E3FOCECQ.js";
|
|
7
7
|
import "../chunk-Y5GD2FJA.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-XW4B4CUY.js";
|
|
9
9
|
import "../chunk-MBZ55T2D.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-S4XW2XZW.js";
|
|
11
|
+
import "../chunk-65HTZ3R2.js";
|
|
12
|
+
import "../chunk-JRNU5BZ4.js";
|
|
13
13
|
import "../chunk-BQNPOGD5.js";
|
|
14
14
|
import "../chunk-YULGJORA.js";
|
|
15
15
|
import "../chunk-Z2HPSFEQ.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import "../chunk-4UGMSWWA.js";
|
|
50
50
|
import "../chunk-WVUIIBRR.js";
|
|
51
51
|
import "../chunk-I3W5K76C.js";
|
|
52
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-ICJARSLG.js";
|
|
53
53
|
import "../chunk-ZRFXUER3.js";
|
|
54
54
|
import "../chunk-WVGXD7HT.js";
|
|
55
55
|
import {
|