@dmsi/wedgekit-react 0.0.476 → 0.0.477
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-HSJ34DOK.js → chunk-WIDUWFLX.js} +748 -34
- package/dist/components/CalendarRange.cjs +452 -152
- package/dist/components/CalendarRange.js +1 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +916 -151
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +926 -161
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -1
- package/dist/components/DataGrid/PinnedColumns.cjs +941 -176
- package/dist/components/DataGrid/PinnedColumns.js +1 -1
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +917 -152
- package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -1
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +923 -158
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -1
- package/dist/components/DataGrid/TableBody/index.cjs +938 -173
- package/dist/components/DataGrid/TableBody/index.js +1 -1
- package/dist/components/DataGrid/index.cjs +1027 -262
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DataGrid/utils.cjs +917 -152
- package/dist/components/DataGrid/utils.js +1 -1
- package/dist/components/DateInput.js +7 -254
- package/dist/components/DateRangeInput.cjs +406 -176
- package/dist/components/DateRangeInput.js +1 -2
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +923 -158
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +921 -156
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -1
- package/dist/components/MobileDataGrid/index.cjs +971 -206
- package/dist/components/MobileDataGrid/index.js +1 -1
- package/dist/components/index.cjs +1145 -378
- package/dist/components/index.js +3 -1
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/dist/chunk-X35NLL3N.js +0 -493
|
@@ -712,7 +712,7 @@ function Theme({
|
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
715
|
-
var
|
|
715
|
+
var import_react38 = require("react");
|
|
716
716
|
|
|
717
717
|
// src/components/DataGridCell.tsx
|
|
718
718
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -898,6 +898,76 @@ function formatCurrencyDisplay(value) {
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
// src/utils/date.ts
|
|
901
|
+
function parseInputDate(input) {
|
|
902
|
+
const match = input.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
903
|
+
if (!match) {
|
|
904
|
+
return null;
|
|
905
|
+
}
|
|
906
|
+
const [, month, day, year] = match;
|
|
907
|
+
const paddedMonth = month.padStart(2, "0");
|
|
908
|
+
const paddedDay = day.padStart(2, "0");
|
|
909
|
+
return `${year}-${paddedMonth}-${paddedDay}`;
|
|
910
|
+
}
|
|
911
|
+
function isValidDate(dateString) {
|
|
912
|
+
const date = new Date(dateString);
|
|
913
|
+
return date instanceof Date && !isNaN(date.getTime()) && dateString === date.toISOString().split("T")[0];
|
|
914
|
+
}
|
|
915
|
+
function formatInputValue(value) {
|
|
916
|
+
const digits = value.replace(/\D/g, "");
|
|
917
|
+
if (digits.length < 2) {
|
|
918
|
+
return digits;
|
|
919
|
+
}
|
|
920
|
+
if (digits.length >= 4) {
|
|
921
|
+
return `${digits.slice(0, 2)}/${digits.slice(2, 4)}/${digits.slice(4, 8)}`;
|
|
922
|
+
}
|
|
923
|
+
return `${digits.slice(0, 2)}/${digits.slice(2)}`;
|
|
924
|
+
}
|
|
925
|
+
function isDigit(character) {
|
|
926
|
+
return /\d/.test(character);
|
|
927
|
+
}
|
|
928
|
+
function isSlash(character) {
|
|
929
|
+
return character === "/";
|
|
930
|
+
}
|
|
931
|
+
function countDigitsUpToCursor(value, cursorPosition) {
|
|
932
|
+
let digitCount = 0;
|
|
933
|
+
for (let i = 0; i < cursorPosition && i < value.length; i++) {
|
|
934
|
+
if (!isDigit(value[i])) {
|
|
935
|
+
continue;
|
|
936
|
+
}
|
|
937
|
+
digitCount++;
|
|
938
|
+
}
|
|
939
|
+
return digitCount;
|
|
940
|
+
}
|
|
941
|
+
function findPositionAfterDigitCount(formattedValue, targetDigitCount) {
|
|
942
|
+
let currentDigitCount = 0;
|
|
943
|
+
for (let i = 0; i < formattedValue.length; i++) {
|
|
944
|
+
if (!isDigit(formattedValue[i])) {
|
|
945
|
+
continue;
|
|
946
|
+
}
|
|
947
|
+
currentDigitCount++;
|
|
948
|
+
if (currentDigitCount !== targetDigitCount) {
|
|
949
|
+
continue;
|
|
950
|
+
}
|
|
951
|
+
const positionAfterDigit = i + 1;
|
|
952
|
+
const nextCharacter = formattedValue[positionAfterDigit];
|
|
953
|
+
if (nextCharacter && isSlash(nextCharacter)) {
|
|
954
|
+
return positionAfterDigit + 1;
|
|
955
|
+
}
|
|
956
|
+
return positionAfterDigit;
|
|
957
|
+
}
|
|
958
|
+
return formattedValue.length;
|
|
959
|
+
}
|
|
960
|
+
function calculateCursorPosition(originalValue, formattedValue, originalPosition) {
|
|
961
|
+
const targetDigitCount = countDigitsUpToCursor(
|
|
962
|
+
originalValue,
|
|
963
|
+
originalPosition
|
|
964
|
+
);
|
|
965
|
+
const newPosition = findPositionAfterDigitCount(
|
|
966
|
+
formattedValue,
|
|
967
|
+
targetDigitCount
|
|
968
|
+
);
|
|
969
|
+
return Math.min(newPosition, formattedValue.length);
|
|
970
|
+
}
|
|
901
971
|
function parseDateParts(dateString) {
|
|
902
972
|
const [yearStr, monthStr, dayStr] = dateString.split("-");
|
|
903
973
|
if (!yearStr || !monthStr || !dayStr) {
|
|
@@ -4358,40 +4428,735 @@ var Tooltip = ({
|
|
|
4358
4428
|
};
|
|
4359
4429
|
Tooltip.displayName = "Tooltip";
|
|
4360
4430
|
|
|
4361
|
-
// src/components/
|
|
4362
|
-
var
|
|
4431
|
+
// src/components/DateInput.tsx
|
|
4432
|
+
var import_react20 = require("react");
|
|
4433
|
+
var import_react_dom3 = require("react-dom");
|
|
4363
4434
|
|
|
4364
|
-
// src/components/
|
|
4435
|
+
// src/components/CalendarRange.tsx
|
|
4365
4436
|
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4437
|
+
var import_react19 = __toESM(require("react"), 1);
|
|
4438
|
+
var import_polyfill = require("@js-temporal/polyfill");
|
|
4366
4439
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
4440
|
+
function DateCell(_a) {
|
|
4441
|
+
var _b = _a, {
|
|
4442
|
+
date,
|
|
4443
|
+
isInMonth,
|
|
4444
|
+
isToday,
|
|
4445
|
+
isSelected,
|
|
4446
|
+
inRange,
|
|
4447
|
+
isDisabled,
|
|
4448
|
+
isRangeStart,
|
|
4449
|
+
isRangeEnd,
|
|
4450
|
+
onClick,
|
|
4451
|
+
onMouseEnter,
|
|
4452
|
+
onMouseLeave,
|
|
4453
|
+
cellPadding = "",
|
|
4454
|
+
isRangeDisabled = false,
|
|
4455
|
+
id,
|
|
4456
|
+
testid
|
|
4457
|
+
} = _b, props = __objRest(_b, [
|
|
4458
|
+
"date",
|
|
4459
|
+
"isInMonth",
|
|
4460
|
+
"isToday",
|
|
4461
|
+
"isSelected",
|
|
4462
|
+
"inRange",
|
|
4463
|
+
"isDisabled",
|
|
4464
|
+
"isRangeStart",
|
|
4465
|
+
"isRangeEnd",
|
|
4466
|
+
"onClick",
|
|
4467
|
+
"onMouseEnter",
|
|
4468
|
+
"onMouseLeave",
|
|
4469
|
+
"cellPadding",
|
|
4470
|
+
"isRangeDisabled",
|
|
4471
|
+
"id",
|
|
4472
|
+
"testid"
|
|
4473
|
+
]);
|
|
4474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4475
|
+
"span",
|
|
4476
|
+
__spreadProps(__spreadValues({}, props), {
|
|
4477
|
+
id,
|
|
4478
|
+
"data-testid": testid,
|
|
4479
|
+
className: (0, import_clsx21.default)(
|
|
4480
|
+
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4481
|
+
typography.caption,
|
|
4482
|
+
cellPadding,
|
|
4483
|
+
!isToday && !isSelected && !inRange && !isDisabled && !isRangeStart && !isRangeEnd && "border-transparent",
|
|
4484
|
+
!isInMonth && "border-transparent",
|
|
4485
|
+
// Today: subtle border ring
|
|
4486
|
+
isToday && !isSelected && !inRange && "rounded-full border-border-primary-normal ",
|
|
4487
|
+
// Selected: Figma blue, white text, strong shadow
|
|
4488
|
+
isSelected && "bg-action-400 text-white border-action-400 z-10",
|
|
4489
|
+
!isSelected && !inRange && "rounded-base",
|
|
4490
|
+
// When range is disabled OR when only 'from' is selected (no range yet), apply rounded corners
|
|
4491
|
+
(isRangeDisabled || !inRange && isSelected) && "rounded-base",
|
|
4492
|
+
inRange && isSelected && "hover:border-action-500",
|
|
4493
|
+
// In range: Figma light blue background
|
|
4494
|
+
inRange && !isSelected && "bg-action-100 text-text-primary-normal border-y-action-400 border-x-0 ",
|
|
4495
|
+
// Disabled: Figma gray, no pointer, no hover
|
|
4496
|
+
isDisabled && !inRange ? "text-text-primary-disabled bg-transparent pointer-events-none opacity-40 border-transparent" : [
|
|
4497
|
+
"text-text-primary-normal cursor-pointer",
|
|
4498
|
+
// Figma hover: blue bg, blue text (or red text if selected)
|
|
4499
|
+
isSelected ? "hover:bg-background-action-primary-hover hover:text-white" : "hover:bg-action-100 hover:text-text-action-primary-hover",
|
|
4500
|
+
// Figma active: darker blue bg, white text
|
|
4501
|
+
"active:bg-action-300 active:text-white",
|
|
4502
|
+
// Figma focus: ring
|
|
4503
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-400"
|
|
4504
|
+
],
|
|
4505
|
+
isRangeStart && "rounded-l",
|
|
4506
|
+
isRangeEnd && "rounded-r"
|
|
4507
|
+
),
|
|
4508
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
4509
|
+
"aria-disabled": isDisabled,
|
|
4510
|
+
onClick: () => !isDisabled && isInMonth && onClick(),
|
|
4511
|
+
onMouseEnter: () => isInMonth && onMouseEnter(),
|
|
4512
|
+
onMouseLeave: () => isInMonth && onMouseLeave(),
|
|
4513
|
+
children: isInMonth ? date.day : ""
|
|
4514
|
+
})
|
|
4515
|
+
);
|
|
4516
|
+
}
|
|
4517
|
+
function CalendarRange({
|
|
4518
|
+
from,
|
|
4519
|
+
to,
|
|
4520
|
+
onChange,
|
|
4521
|
+
isDateAvailable,
|
|
4522
|
+
mode = "double",
|
|
4523
|
+
cardStyle = false,
|
|
4524
|
+
disableRange = false,
|
|
4525
|
+
id,
|
|
4526
|
+
testid
|
|
4527
|
+
}) {
|
|
4528
|
+
const weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
4529
|
+
const parseDate = (d) => {
|
|
4530
|
+
if (!d) {
|
|
4531
|
+
return void 0;
|
|
4532
|
+
}
|
|
4533
|
+
try {
|
|
4534
|
+
if (typeof d === "number") {
|
|
4535
|
+
return import_polyfill.Temporal.PlainDate.from(new Date(d).toISOString().slice(0, 10));
|
|
4536
|
+
}
|
|
4537
|
+
if (typeof d === "string") {
|
|
4538
|
+
return import_polyfill.Temporal.PlainDate.from(d);
|
|
4539
|
+
}
|
|
4540
|
+
return void 0;
|
|
4541
|
+
} catch (error) {
|
|
4542
|
+
console.error("Invalid date format:", d, error);
|
|
4543
|
+
return import_polyfill.Temporal.Now.plainDateISO();
|
|
4544
|
+
}
|
|
4545
|
+
};
|
|
4546
|
+
const fromDate = parseDate(from);
|
|
4547
|
+
const toDate = parseDate(to);
|
|
4548
|
+
const today = import_polyfill.Temporal.Now.plainDateISO();
|
|
4549
|
+
const [baseMonth, setBaseMonth] = (0, import_react19.useState)(
|
|
4550
|
+
fromDate != null ? fromDate : today.with({ day: 1 })
|
|
4551
|
+
);
|
|
4552
|
+
const [selecting, setSelecting] = (0, import_react19.useState)("from");
|
|
4553
|
+
const [pendingFrom, setPendingFrom] = (0, import_react19.useState)(void 0);
|
|
4554
|
+
const [hoveredDate, setHoveredDate] = (0, import_react19.useState)(void 0);
|
|
4555
|
+
(0, import_react19.useEffect)(() => {
|
|
4556
|
+
if (fromDate) {
|
|
4557
|
+
setBaseMonth(fromDate.with({ day: 1 }));
|
|
4558
|
+
} else if (toDate) {
|
|
4559
|
+
setBaseMonth(toDate.with({ day: 1 }));
|
|
4560
|
+
}
|
|
4561
|
+
}, [from, to]);
|
|
4562
|
+
(0, import_react19.useEffect)(() => {
|
|
4563
|
+
if (fromDate && toDate) {
|
|
4564
|
+
setSelecting("from");
|
|
4565
|
+
setPendingFrom(void 0);
|
|
4566
|
+
setHoveredDate(void 0);
|
|
4567
|
+
}
|
|
4568
|
+
}, [from, to]);
|
|
4569
|
+
function getMonthData(monthOffset) {
|
|
4570
|
+
const monthDate = baseMonth.add({ months: monthOffset }).with({ day: 1 });
|
|
4571
|
+
const days = monthDate.daysInMonth;
|
|
4572
|
+
const firstDayOffset = monthDate.dayOfWeek % 7;
|
|
4573
|
+
return {
|
|
4574
|
+
name: monthDate.toLocaleString("en-US", { month: "long" }),
|
|
4575
|
+
year: monthDate.year,
|
|
4576
|
+
days,
|
|
4577
|
+
firstDayOffset,
|
|
4578
|
+
date: monthDate
|
|
4579
|
+
};
|
|
4580
|
+
}
|
|
4581
|
+
function getMonthDataWith(monthOffset) {
|
|
4582
|
+
const monthDate = baseMonth.with({ month: monthOffset }).with({ day: 1 });
|
|
4583
|
+
const days = monthDate.daysInMonth;
|
|
4584
|
+
const firstDayOffset = monthDate.dayOfWeek % 7;
|
|
4585
|
+
return {
|
|
4586
|
+
name: monthDate.toLocaleString("en-US", { month: "long" }),
|
|
4587
|
+
year: monthDate.year,
|
|
4588
|
+
days,
|
|
4589
|
+
firstDayOffset,
|
|
4590
|
+
date: monthDate
|
|
4591
|
+
};
|
|
4592
|
+
}
|
|
4593
|
+
function handleDayClick(date) {
|
|
4594
|
+
if (isDateAvailable && !isDateAvailable(date)) return;
|
|
4595
|
+
if (mode === "single" && disableRange) {
|
|
4596
|
+
if (onChange) {
|
|
4597
|
+
onChange(date.toString(), date.toString());
|
|
4598
|
+
}
|
|
4599
|
+
return;
|
|
4600
|
+
}
|
|
4601
|
+
if (selecting === "from") {
|
|
4602
|
+
setPendingFrom(date);
|
|
4603
|
+
setSelecting("to");
|
|
4604
|
+
setHoveredDate(void 0);
|
|
4605
|
+
} else if (pendingFrom) {
|
|
4606
|
+
if (onChange) {
|
|
4607
|
+
const [start, end] = import_polyfill.Temporal.PlainDate.compare(date, pendingFrom) < 0 ? [date, pendingFrom] : [pendingFrom, date];
|
|
4608
|
+
onChange(start.toString(), end.toString());
|
|
4609
|
+
}
|
|
4610
|
+
setPendingFrom(void 0);
|
|
4611
|
+
setSelecting("from");
|
|
4612
|
+
setHoveredDate(void 0);
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
function isInRange(date) {
|
|
4616
|
+
if (mode === "single" && disableRange) {
|
|
4617
|
+
return false;
|
|
4618
|
+
}
|
|
4619
|
+
if (pendingFrom && selecting === "to" && hoveredDate) {
|
|
4620
|
+
const [start, end] = import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) < 0 ? [hoveredDate, pendingFrom] : [pendingFrom, hoveredDate];
|
|
4621
|
+
return import_polyfill.Temporal.PlainDate.compare(date, start) >= 0 && import_polyfill.Temporal.PlainDate.compare(date, end) <= 0;
|
|
4622
|
+
}
|
|
4623
|
+
if (!pendingFrom && fromDate && toDate) {
|
|
4624
|
+
return import_polyfill.Temporal.PlainDate.compare(date, fromDate) >= 0 && import_polyfill.Temporal.PlainDate.compare(date, toDate) <= 0;
|
|
4625
|
+
}
|
|
4626
|
+
return false;
|
|
4627
|
+
}
|
|
4628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4629
|
+
"div",
|
|
4630
|
+
{
|
|
4631
|
+
id,
|
|
4632
|
+
"data-testid": testid,
|
|
4633
|
+
className: (0, import_clsx21.default)(
|
|
4634
|
+
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
4635
|
+
layoutPaddding,
|
|
4636
|
+
layoutGap,
|
|
4637
|
+
cardStyle && "shadow-4",
|
|
4638
|
+
// baseTransition,
|
|
4639
|
+
"overflow-hidden"
|
|
4640
|
+
),
|
|
4641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4642
|
+
"div",
|
|
4643
|
+
{
|
|
4644
|
+
className: (0, import_clsx21.default)(
|
|
4645
|
+
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
4646
|
+
layoutGap
|
|
4647
|
+
),
|
|
4648
|
+
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
4649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4650
|
+
CalendarPane,
|
|
4651
|
+
{
|
|
4652
|
+
getMonthData,
|
|
4653
|
+
getMonthDataWith,
|
|
4654
|
+
offset,
|
|
4655
|
+
idx,
|
|
4656
|
+
id,
|
|
4657
|
+
testid,
|
|
4658
|
+
baseMonth,
|
|
4659
|
+
setBaseMonth,
|
|
4660
|
+
mode,
|
|
4661
|
+
pendingFrom,
|
|
4662
|
+
weekDays,
|
|
4663
|
+
fromDate,
|
|
4664
|
+
toDate,
|
|
4665
|
+
isDateAvailable,
|
|
4666
|
+
disableRange,
|
|
4667
|
+
hoveredDate,
|
|
4668
|
+
isInRange,
|
|
4669
|
+
today,
|
|
4670
|
+
setHoveredDate,
|
|
4671
|
+
handleDayClick
|
|
4672
|
+
},
|
|
4673
|
+
idx
|
|
4674
|
+
);
|
|
4675
|
+
})
|
|
4676
|
+
}
|
|
4677
|
+
)
|
|
4678
|
+
}
|
|
4679
|
+
);
|
|
4680
|
+
}
|
|
4681
|
+
function CalendarPane({
|
|
4682
|
+
getMonthData,
|
|
4683
|
+
getMonthDataWith,
|
|
4684
|
+
offset,
|
|
4685
|
+
idx,
|
|
4686
|
+
id,
|
|
4687
|
+
testid,
|
|
4688
|
+
baseMonth,
|
|
4689
|
+
setBaseMonth,
|
|
4690
|
+
mode,
|
|
4691
|
+
pendingFrom,
|
|
4692
|
+
weekDays,
|
|
4693
|
+
fromDate,
|
|
4694
|
+
toDate,
|
|
4695
|
+
isDateAvailable,
|
|
4696
|
+
disableRange,
|
|
4697
|
+
hoveredDate,
|
|
4698
|
+
isInRange,
|
|
4699
|
+
today,
|
|
4700
|
+
setHoveredDate,
|
|
4701
|
+
handleDayClick
|
|
4702
|
+
}) {
|
|
4703
|
+
const months = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
|
|
4704
|
+
const years = Array.from({ length: 100 }).map(
|
|
4705
|
+
(_, i) => baseMonth.year - 50 + i
|
|
4706
|
+
);
|
|
4707
|
+
const [monthMenuOpen, setMonthMenuOpen] = (0, import_react19.useState)(false);
|
|
4708
|
+
const [yearMenuOpen, setYearMenuOpen] = (0, import_react19.useState)(false);
|
|
4709
|
+
const monthMenuRef = (0, import_react19.useRef)(null);
|
|
4710
|
+
const yearMenuRef = (0, import_react19.useRef)(null);
|
|
4711
|
+
const month = getMonthData(offset);
|
|
4712
|
+
const totalCells = 42;
|
|
4713
|
+
const emptyCells = month.firstDayOffset;
|
|
4714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react19.default.Fragment, { children: [
|
|
4715
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
4716
|
+
"div",
|
|
4717
|
+
{
|
|
4718
|
+
className: (0, import_clsx21.default)("flex flex-col"),
|
|
4719
|
+
children: [
|
|
4720
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
4721
|
+
"div",
|
|
4722
|
+
{
|
|
4723
|
+
className: (0, import_clsx21.default)(
|
|
4724
|
+
"flex flex-row items-center justify-between",
|
|
4725
|
+
typography.label,
|
|
4726
|
+
"text-text-action-primary-normal"
|
|
4727
|
+
),
|
|
4728
|
+
children: [
|
|
4729
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4730
|
+
"button",
|
|
4731
|
+
{
|
|
4732
|
+
id: id ? `${id}-prev-month-button` : void 0,
|
|
4733
|
+
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
4734
|
+
type: "button",
|
|
4735
|
+
className: (0, import_clsx21.default)(
|
|
4736
|
+
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
4737
|
+
componentPadding
|
|
4738
|
+
),
|
|
4739
|
+
"aria-label": "Previous month",
|
|
4740
|
+
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
4741
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
4742
|
+
}
|
|
4743
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import_clsx21.default)(componentPadding, "mr-1") }),
|
|
4744
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
4745
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4746
|
+
"button",
|
|
4747
|
+
{
|
|
4748
|
+
ref: (el) => {
|
|
4749
|
+
monthMenuRef.current = el;
|
|
4750
|
+
},
|
|
4751
|
+
type: "button",
|
|
4752
|
+
onClick: () => {
|
|
4753
|
+
setMonthMenuOpen(true);
|
|
4754
|
+
setYearMenuOpen(false);
|
|
4755
|
+
},
|
|
4756
|
+
className: "font-semibold text-text-action-primary-normal text-[14px] py-[2px] truncate",
|
|
4757
|
+
children: month.name
|
|
4758
|
+
}
|
|
4759
|
+
),
|
|
4760
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4761
|
+
Menu,
|
|
4762
|
+
{
|
|
4763
|
+
show: monthMenuOpen,
|
|
4764
|
+
positionTo: monthMenuRef,
|
|
4765
|
+
setShow: () => setMonthMenuOpen(false),
|
|
4766
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4767
|
+
MenuOption,
|
|
4768
|
+
{
|
|
4769
|
+
selected: baseMonth.month === x + 1,
|
|
4770
|
+
onClick: () => {
|
|
4771
|
+
setBaseMonth(baseMonth.with({ month: x + 1 }));
|
|
4772
|
+
setMonthMenuOpen(false);
|
|
4773
|
+
},
|
|
4774
|
+
children: m.name
|
|
4775
|
+
},
|
|
4776
|
+
m.name
|
|
4777
|
+
))
|
|
4778
|
+
}
|
|
4779
|
+
),
|
|
4780
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4781
|
+
"button",
|
|
4782
|
+
{
|
|
4783
|
+
ref: (el) => {
|
|
4784
|
+
yearMenuRef.current = el;
|
|
4785
|
+
},
|
|
4786
|
+
type: "button",
|
|
4787
|
+
onClick: () => {
|
|
4788
|
+
setYearMenuOpen(true);
|
|
4789
|
+
setMonthMenuOpen(false);
|
|
4790
|
+
},
|
|
4791
|
+
className: "font-semibold text-text-action-primary-normal text-[14px] py-[2px] truncate",
|
|
4792
|
+
children: month.year
|
|
4793
|
+
}
|
|
4794
|
+
),
|
|
4795
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4796
|
+
Menu,
|
|
4797
|
+
{
|
|
4798
|
+
show: yearMenuOpen,
|
|
4799
|
+
positionTo: yearMenuRef,
|
|
4800
|
+
setShow: () => setYearMenuOpen(false),
|
|
4801
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4802
|
+
MenuOption,
|
|
4803
|
+
{
|
|
4804
|
+
selected: baseMonth.year === y,
|
|
4805
|
+
onClick: () => {
|
|
4806
|
+
setBaseMonth(baseMonth.with({ year: y }));
|
|
4807
|
+
setYearMenuOpen(false);
|
|
4808
|
+
},
|
|
4809
|
+
children: y
|
|
4810
|
+
},
|
|
4811
|
+
y
|
|
4812
|
+
))
|
|
4813
|
+
}
|
|
4814
|
+
)
|
|
4815
|
+
] }),
|
|
4816
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4817
|
+
"button",
|
|
4818
|
+
{
|
|
4819
|
+
id: id ? `${id}-next-month-button` : void 0,
|
|
4820
|
+
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
4821
|
+
type: "button",
|
|
4822
|
+
className: (0, import_clsx21.default)(
|
|
4823
|
+
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
4824
|
+
componentPadding
|
|
4825
|
+
),
|
|
4826
|
+
"aria-label": "Next month",
|
|
4827
|
+
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
4828
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
4829
|
+
}
|
|
4830
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import_clsx21.default)(componentPadding, "ml-1") })
|
|
4831
|
+
]
|
|
4832
|
+
}
|
|
4833
|
+
),
|
|
4834
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: (0, import_clsx21.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4835
|
+
"span",
|
|
4836
|
+
{
|
|
4837
|
+
className: (0, import_clsx21.default)(
|
|
4838
|
+
typography.caption,
|
|
4839
|
+
"text-text-secondary-normal text-center",
|
|
4840
|
+
"w-10"
|
|
4841
|
+
),
|
|
4842
|
+
children: d
|
|
4843
|
+
},
|
|
4844
|
+
d
|
|
4845
|
+
)) }),
|
|
4846
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: (0, import_clsx21.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
4847
|
+
const day = i - emptyCells + 1;
|
|
4848
|
+
const date = month.date.with({ day: 1 }).add({
|
|
4849
|
+
days: i - emptyCells
|
|
4850
|
+
});
|
|
4851
|
+
const isInMonth = day > 0 && day <= month.days;
|
|
4852
|
+
const isToday = isInMonth && date.equals(today);
|
|
4853
|
+
const isSelected = isInMonth && (!pendingFrom && fromDate && date.equals(fromDate) || !pendingFrom && toDate && date.equals(toDate) || pendingFrom && date.equals(pendingFrom));
|
|
4854
|
+
const inRange = isInMonth && isInRange(date);
|
|
4855
|
+
const isDisabled = !isInMonth || (isDateAvailable ? !isDateAvailable(date) : false);
|
|
4856
|
+
const hoverDateIsBeforePendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) < 0;
|
|
4857
|
+
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
4858
|
+
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
4859
|
+
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
4860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4861
|
+
DateCell,
|
|
4862
|
+
{
|
|
4863
|
+
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
4864
|
+
testid: testid ? `${testid}-date-${date.toString()}` : void 0,
|
|
4865
|
+
date,
|
|
4866
|
+
isInMonth: !!isInMonth,
|
|
4867
|
+
isToday: !!isToday,
|
|
4868
|
+
isSelected: !!isSelected,
|
|
4869
|
+
inRange: !!inRange,
|
|
4870
|
+
isDisabled: !!isDisabled,
|
|
4871
|
+
onClick: () => handleDayClick(date),
|
|
4872
|
+
onMouseEnter: () => setHoveredDate(date),
|
|
4873
|
+
onMouseLeave: () => setHoveredDate(void 0),
|
|
4874
|
+
isRangeStart: !!isRangeStart,
|
|
4875
|
+
isRangeEnd: !!isRangeEnd,
|
|
4876
|
+
isRangeDisabled: mode === "single" && disableRange,
|
|
4877
|
+
cellPadding: componentPadding
|
|
4878
|
+
},
|
|
4879
|
+
i
|
|
4880
|
+
);
|
|
4881
|
+
}) })
|
|
4882
|
+
]
|
|
4883
|
+
}
|
|
4884
|
+
),
|
|
4885
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4886
|
+
"div",
|
|
4887
|
+
{
|
|
4888
|
+
className: (0, import_clsx21.default)(
|
|
4889
|
+
"self-stretch bg-border-primary-normal rounded-base",
|
|
4890
|
+
// 1px width, full height, matches Figma divider
|
|
4891
|
+
"w-px"
|
|
4892
|
+
)
|
|
4893
|
+
}
|
|
4894
|
+
)
|
|
4895
|
+
] }, month.name + month.year);
|
|
4896
|
+
}
|
|
4367
4897
|
|
|
4368
|
-
// src/components/
|
|
4898
|
+
// src/components/DateInput.tsx
|
|
4369
4899
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
4900
|
+
var DateInput = (_a) => {
|
|
4901
|
+
var _b = _a, {
|
|
4902
|
+
id,
|
|
4903
|
+
testid,
|
|
4904
|
+
value,
|
|
4905
|
+
onChange,
|
|
4906
|
+
placeholder = "MM/DD/YYYY",
|
|
4907
|
+
disabled,
|
|
4908
|
+
readOnly = false,
|
|
4909
|
+
label
|
|
4910
|
+
} = _b, props = __objRest(_b, [
|
|
4911
|
+
"id",
|
|
4912
|
+
"testid",
|
|
4913
|
+
"value",
|
|
4914
|
+
"onChange",
|
|
4915
|
+
"placeholder",
|
|
4916
|
+
"disabled",
|
|
4917
|
+
"readOnly",
|
|
4918
|
+
"label"
|
|
4919
|
+
]);
|
|
4920
|
+
const [visible, setVisible] = (0, import_react20.useState)(false);
|
|
4921
|
+
const [inputValue, setInputValue] = (0, import_react20.useState)("");
|
|
4922
|
+
const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
|
|
4923
|
+
const popoverRef = (0, import_react20.useRef)(null);
|
|
4924
|
+
const triggerRef = (0, import_react20.useRef)(null);
|
|
4925
|
+
const rootRef = (0, import_react20.useRef)(null);
|
|
4926
|
+
const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
|
|
4927
|
+
top: 0,
|
|
4928
|
+
left: 0,
|
|
4929
|
+
width: 0
|
|
4930
|
+
});
|
|
4931
|
+
const [from, to] = [value, ""];
|
|
4932
|
+
(0, import_react20.useEffect)(() => {
|
|
4933
|
+
if (!isTyping) {
|
|
4934
|
+
setInputValue(formatDisplayValue(from));
|
|
4935
|
+
}
|
|
4936
|
+
}, [from, isTyping]);
|
|
4937
|
+
(0, import_react20.useLayoutEffect)(() => {
|
|
4938
|
+
if (visible) {
|
|
4939
|
+
updatePosition();
|
|
4940
|
+
}
|
|
4941
|
+
}, [visible]);
|
|
4942
|
+
const updatePosition = () => {
|
|
4943
|
+
if (rootRef.current) {
|
|
4944
|
+
const rect = rootRef.current.getBoundingClientRect();
|
|
4945
|
+
setCalendarPosition({
|
|
4946
|
+
top: rect.bottom + window.scrollY,
|
|
4947
|
+
left: rect.left + window.scrollX,
|
|
4948
|
+
width: rect.width
|
|
4949
|
+
});
|
|
4950
|
+
}
|
|
4951
|
+
};
|
|
4952
|
+
(0, import_react20.useEffect)(() => {
|
|
4953
|
+
updatePosition();
|
|
4954
|
+
const resizeObserver = new ResizeObserver(updatePosition);
|
|
4955
|
+
if (triggerRef.current) {
|
|
4956
|
+
resizeObserver.observe(triggerRef.current);
|
|
4957
|
+
}
|
|
4958
|
+
window.addEventListener("scroll", updatePosition);
|
|
4959
|
+
return () => {
|
|
4960
|
+
resizeObserver.disconnect();
|
|
4961
|
+
window.removeEventListener("scroll", updatePosition);
|
|
4962
|
+
};
|
|
4963
|
+
}, []);
|
|
4964
|
+
(0, import_react20.useEffect)(() => {
|
|
4965
|
+
const handleKeyDown2 = (event) => {
|
|
4966
|
+
var _a2;
|
|
4967
|
+
if (event.key === "Escape" && popoverRef.current) {
|
|
4968
|
+
setVisible(false);
|
|
4969
|
+
(_a2 = triggerRef.current) == null ? void 0 : _a2.blur();
|
|
4970
|
+
}
|
|
4971
|
+
};
|
|
4972
|
+
document.addEventListener("keydown", handleKeyDown2);
|
|
4973
|
+
return () => {
|
|
4974
|
+
document.removeEventListener("keydown", handleKeyDown2);
|
|
4975
|
+
};
|
|
4976
|
+
});
|
|
4977
|
+
(0, import_react20.useEffect)(() => {
|
|
4978
|
+
const handleClickOutside = (event) => {
|
|
4979
|
+
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4980
|
+
setVisible(false);
|
|
4981
|
+
}
|
|
4982
|
+
};
|
|
4983
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
4984
|
+
return () => {
|
|
4985
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
4986
|
+
};
|
|
4987
|
+
}, []);
|
|
4988
|
+
function handleDateChange(fromValue) {
|
|
4989
|
+
onChange(fromValue);
|
|
4990
|
+
setVisible(false);
|
|
4991
|
+
setIsTyping(false);
|
|
4992
|
+
}
|
|
4993
|
+
const handleFocus = () => {
|
|
4994
|
+
if (readOnly) return;
|
|
4995
|
+
setVisible(true);
|
|
4996
|
+
};
|
|
4997
|
+
const handleClick = () => {
|
|
4998
|
+
handleFocus();
|
|
4999
|
+
};
|
|
5000
|
+
const handleInputChange = (event) => {
|
|
5001
|
+
if (readOnly) return;
|
|
5002
|
+
const rawValue = event.target.value;
|
|
5003
|
+
const cursorPosition = event.target.selectionStart || 0;
|
|
5004
|
+
setIsTyping(true);
|
|
5005
|
+
const formattedValue = formatInputValue(rawValue);
|
|
5006
|
+
setInputValue(formattedValue);
|
|
5007
|
+
requestAnimationFrame(() => {
|
|
5008
|
+
if (triggerRef.current) {
|
|
5009
|
+
const newPosition = calculateCursorPosition(
|
|
5010
|
+
rawValue,
|
|
5011
|
+
formattedValue,
|
|
5012
|
+
cursorPosition
|
|
5013
|
+
);
|
|
5014
|
+
triggerRef.current.setSelectionRange(newPosition, newPosition);
|
|
5015
|
+
}
|
|
5016
|
+
});
|
|
5017
|
+
const parsedDate = parseInputDate(formattedValue);
|
|
5018
|
+
if (parsedDate && isValidDate(parsedDate)) {
|
|
5019
|
+
onChange(parsedDate);
|
|
5020
|
+
}
|
|
5021
|
+
};
|
|
5022
|
+
const handleBlur = () => {
|
|
5023
|
+
setIsTyping(false);
|
|
5024
|
+
const parsedDate = parseInputDate(inputValue);
|
|
5025
|
+
if (!parsedDate || !isValidDate(parsedDate)) {
|
|
5026
|
+
setInputValue(formatDisplayValue(from));
|
|
5027
|
+
}
|
|
5028
|
+
};
|
|
5029
|
+
const handleKeyDown = (event) => {
|
|
5030
|
+
if (event.key === "Backspace") {
|
|
5031
|
+
const input = event.target;
|
|
5032
|
+
const cursorPosition = input.selectionStart || 0;
|
|
5033
|
+
const value2 = input.value;
|
|
5034
|
+
if (cursorPosition > 0 && value2[cursorPosition - 1] === "/") {
|
|
5035
|
+
event.preventDefault();
|
|
5036
|
+
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
5037
|
+
const formattedValue = formatInputValue(newValue);
|
|
5038
|
+
setInputValue(formattedValue);
|
|
5039
|
+
requestAnimationFrame(() => {
|
|
5040
|
+
if (triggerRef.current) {
|
|
5041
|
+
const newPosition = Math.max(0, cursorPosition - 2);
|
|
5042
|
+
triggerRef.current.setSelectionRange(newPosition, newPosition);
|
|
5043
|
+
}
|
|
5044
|
+
});
|
|
5045
|
+
setIsTyping(true);
|
|
5046
|
+
return;
|
|
5047
|
+
}
|
|
5048
|
+
}
|
|
5049
|
+
if (event.key === "Enter") {
|
|
5050
|
+
const parsedDate = parseInputDate(inputValue);
|
|
5051
|
+
if (parsedDate && isValidDate(parsedDate)) {
|
|
5052
|
+
onChange(parsedDate);
|
|
5053
|
+
setVisible(false);
|
|
5054
|
+
setIsTyping(false);
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
};
|
|
5058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative", children: [
|
|
5059
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5060
|
+
InputBase,
|
|
5061
|
+
__spreadProps(__spreadValues({
|
|
5062
|
+
id,
|
|
5063
|
+
testid,
|
|
5064
|
+
ref: (el) => {
|
|
5065
|
+
triggerRef.current = el;
|
|
5066
|
+
}
|
|
5067
|
+
}, props), {
|
|
5068
|
+
wrapperRef: rootRef,
|
|
5069
|
+
value: inputValue,
|
|
5070
|
+
placeholder,
|
|
5071
|
+
disabled,
|
|
5072
|
+
readOnly,
|
|
5073
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "calendar_month" }),
|
|
5074
|
+
onFocus: handleFocus,
|
|
5075
|
+
onClick: handleClick,
|
|
5076
|
+
onChange: handleInputChange,
|
|
5077
|
+
onBlur: handleBlur,
|
|
5078
|
+
onKeyDown: handleKeyDown,
|
|
5079
|
+
label,
|
|
5080
|
+
secondaryIconColor: true
|
|
5081
|
+
})
|
|
5082
|
+
),
|
|
5083
|
+
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
5084
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5085
|
+
"div",
|
|
5086
|
+
{
|
|
5087
|
+
ref: (el) => {
|
|
5088
|
+
popoverRef.current = el;
|
|
5089
|
+
},
|
|
5090
|
+
className: "absolute z-40 bg-white",
|
|
5091
|
+
style: {
|
|
5092
|
+
top: `${calendarPosition.top + 4}px`,
|
|
5093
|
+
left: `${calendarPosition.left}px`,
|
|
5094
|
+
minWidth: `${calendarPosition.width}px`
|
|
5095
|
+
},
|
|
5096
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5097
|
+
CalendarRange,
|
|
5098
|
+
{
|
|
5099
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5100
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5101
|
+
from,
|
|
5102
|
+
to: to || from,
|
|
5103
|
+
onChange: handleDateChange,
|
|
5104
|
+
cardStyle: true,
|
|
5105
|
+
mode: "single",
|
|
5106
|
+
disableRange: true
|
|
5107
|
+
}
|
|
5108
|
+
)
|
|
5109
|
+
}
|
|
5110
|
+
),
|
|
5111
|
+
findDocumentRoot(popoverRef.current)
|
|
5112
|
+
)
|
|
5113
|
+
] });
|
|
5114
|
+
};
|
|
5115
|
+
DateInput.displayName = "DateInput";
|
|
5116
|
+
function formatDisplayValue(from) {
|
|
5117
|
+
if (!from) {
|
|
5118
|
+
return "";
|
|
5119
|
+
}
|
|
5120
|
+
if (!isValidDate(from)) {
|
|
5121
|
+
return "";
|
|
5122
|
+
}
|
|
5123
|
+
return formatDate(from);
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
// src/components/Accordion.tsx
|
|
5127
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
5128
|
+
|
|
5129
|
+
// src/components/Card.tsx
|
|
5130
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
5131
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5132
|
+
|
|
5133
|
+
// src/components/Accordion.tsx
|
|
5134
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
4370
5135
|
|
|
4371
5136
|
// src/components/ProductImagePreview/Thumbnail.tsx
|
|
4372
|
-
var
|
|
5137
|
+
var import_react22 = require("react");
|
|
4373
5138
|
|
|
4374
5139
|
// src/components/ImagePlaceholder.tsx
|
|
4375
|
-
var
|
|
4376
|
-
var
|
|
5140
|
+
var import_react21 = require("react");
|
|
5141
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
4377
5142
|
|
|
4378
5143
|
// src/components/ProductImagePreview/Thumbnail.tsx
|
|
4379
|
-
var
|
|
5144
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
4380
5145
|
|
|
4381
5146
|
// src/components/Grid.tsx
|
|
4382
|
-
var
|
|
4383
|
-
var
|
|
5147
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5148
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4384
5149
|
|
|
4385
5150
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
4386
|
-
var
|
|
4387
|
-
var
|
|
5151
|
+
var import_react23 = require("react");
|
|
5152
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4388
5153
|
|
|
4389
5154
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4390
|
-
var
|
|
5155
|
+
var import_react24 = require("react");
|
|
4391
5156
|
|
|
4392
5157
|
// src/components/Surface.tsx
|
|
4393
|
-
var
|
|
4394
|
-
var
|
|
5158
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5159
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4395
5160
|
var Surface = (_a) => {
|
|
4396
5161
|
var _b = _a, {
|
|
4397
5162
|
children,
|
|
@@ -4404,11 +5169,11 @@ var Surface = (_a) => {
|
|
|
4404
5169
|
"elevation",
|
|
4405
5170
|
"id"
|
|
4406
5171
|
]);
|
|
4407
|
-
return /* @__PURE__ */ (0,
|
|
5172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4408
5173
|
"div",
|
|
4409
5174
|
__spreadProps(__spreadValues({
|
|
4410
5175
|
id,
|
|
4411
|
-
className: (0,
|
|
5176
|
+
className: (0, import_clsx25.default)(
|
|
4412
5177
|
"rounded-base",
|
|
4413
5178
|
{
|
|
4414
5179
|
"shadow-2": elevation === 2,
|
|
@@ -4425,41 +5190,41 @@ var Surface = (_a) => {
|
|
|
4425
5190
|
Surface.displayName = "Surface";
|
|
4426
5191
|
|
|
4427
5192
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
4428
|
-
var
|
|
5193
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4429
5194
|
|
|
4430
5195
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
4431
|
-
var
|
|
4432
|
-
var
|
|
5196
|
+
var import_clsx26 = require("clsx");
|
|
5197
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4433
5198
|
|
|
4434
5199
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
4435
|
-
var
|
|
4436
|
-
var
|
|
5200
|
+
var import_react25 = require("react");
|
|
5201
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4437
5202
|
|
|
4438
5203
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
4439
|
-
var
|
|
5204
|
+
var import_react26 = require("react");
|
|
4440
5205
|
|
|
4441
5206
|
// src/components/ProductImagePreview/index.tsx
|
|
4442
|
-
var
|
|
5207
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4443
5208
|
|
|
4444
5209
|
// src/components/CompactImagesPreview.tsx
|
|
4445
|
-
var
|
|
4446
|
-
var
|
|
4447
|
-
var
|
|
5210
|
+
var import_react27 = require("react");
|
|
5211
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5212
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4448
5213
|
|
|
4449
5214
|
// src/components/SimpleTable.tsx
|
|
4450
|
-
var
|
|
4451
|
-
var
|
|
5215
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
5216
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4452
5217
|
|
|
4453
5218
|
// src/components/PDFViewer/index.tsx
|
|
4454
|
-
var
|
|
5219
|
+
var import_react32 = require("react");
|
|
4455
5220
|
|
|
4456
5221
|
// src/components/Modal.tsx
|
|
4457
|
-
var
|
|
4458
|
-
var
|
|
5222
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
5223
|
+
var import_react29 = require("react");
|
|
4459
5224
|
|
|
4460
5225
|
// src/components/ModalHeader.tsx
|
|
4461
|
-
var
|
|
4462
|
-
var
|
|
5226
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5227
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4463
5228
|
var ModalHeader = ({
|
|
4464
5229
|
title,
|
|
4465
5230
|
hideCloseIcon,
|
|
@@ -4470,12 +5235,12 @@ var ModalHeader = ({
|
|
|
4470
5235
|
testid,
|
|
4471
5236
|
headerClassname
|
|
4472
5237
|
}) => {
|
|
4473
|
-
return /* @__PURE__ */ (0,
|
|
5238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4474
5239
|
"div",
|
|
4475
5240
|
{
|
|
4476
5241
|
id,
|
|
4477
5242
|
"data-testid": testid,
|
|
4478
|
-
className: (0,
|
|
5243
|
+
className: (0, import_clsx29.default)(
|
|
4479
5244
|
"flex justify-between items-center",
|
|
4480
5245
|
headerIconAlign === "center" && "justify-center",
|
|
4481
5246
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -4485,9 +5250,9 @@ var ModalHeader = ({
|
|
|
4485
5250
|
headerClassname
|
|
4486
5251
|
),
|
|
4487
5252
|
children: [
|
|
4488
|
-
/* @__PURE__ */ (0,
|
|
5253
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: (0, import_clsx29.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
4489
5254
|
headerIcon,
|
|
4490
|
-
title && /* @__PURE__ */ (0,
|
|
5255
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4491
5256
|
Heading2,
|
|
4492
5257
|
{
|
|
4493
5258
|
id: id ? `${id}-title` : void 0,
|
|
@@ -4497,7 +5262,7 @@ var ModalHeader = ({
|
|
|
4497
5262
|
}
|
|
4498
5263
|
)
|
|
4499
5264
|
] }),
|
|
4500
|
-
!hideCloseIcon && /* @__PURE__ */ (0,
|
|
5265
|
+
!hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4501
5266
|
Button,
|
|
4502
5267
|
{
|
|
4503
5268
|
id: id ? `${id}-close-button` : void 0,
|
|
@@ -4505,7 +5270,7 @@ var ModalHeader = ({
|
|
|
4505
5270
|
iconOnly: true,
|
|
4506
5271
|
variant: "tertiary",
|
|
4507
5272
|
onClick: onClose,
|
|
4508
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5273
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { name: "close", size: 24 }) })
|
|
4509
5274
|
}
|
|
4510
5275
|
)
|
|
4511
5276
|
]
|
|
@@ -4515,20 +5280,20 @@ var ModalHeader = ({
|
|
|
4515
5280
|
ModalHeader.displayName = "ModalHeader";
|
|
4516
5281
|
|
|
4517
5282
|
// src/components/ModalContent.tsx
|
|
4518
|
-
var
|
|
4519
|
-
var
|
|
5283
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5284
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4520
5285
|
function ModalContent({
|
|
4521
5286
|
fixedHeightScrolling,
|
|
4522
5287
|
children,
|
|
4523
5288
|
id,
|
|
4524
5289
|
testid
|
|
4525
5290
|
}) {
|
|
4526
|
-
return /* @__PURE__ */ (0,
|
|
5291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4527
5292
|
"div",
|
|
4528
5293
|
{
|
|
4529
5294
|
id,
|
|
4530
5295
|
"data-testid": testid,
|
|
4531
|
-
className: (0,
|
|
5296
|
+
className: (0, import_clsx30.default)(
|
|
4532
5297
|
"flex-grow desktop:flex-grow-0",
|
|
4533
5298
|
layoutPaddding,
|
|
4534
5299
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -4540,8 +5305,8 @@ function ModalContent({
|
|
|
4540
5305
|
ModalContent.displayName = "ModalContent";
|
|
4541
5306
|
|
|
4542
5307
|
// src/components/ModalButtons.tsx
|
|
4543
|
-
var
|
|
4544
|
-
var
|
|
5308
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5309
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4545
5310
|
var ModalButtons = ({
|
|
4546
5311
|
onClose,
|
|
4547
5312
|
onContinue,
|
|
@@ -4549,36 +5314,36 @@ var ModalButtons = ({
|
|
|
4549
5314
|
id,
|
|
4550
5315
|
testid
|
|
4551
5316
|
}) => {
|
|
4552
|
-
return /* @__PURE__ */ (0,
|
|
5317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4553
5318
|
"div",
|
|
4554
5319
|
{
|
|
4555
5320
|
id,
|
|
4556
5321
|
"data-testid": testid,
|
|
4557
|
-
className: (0,
|
|
5322
|
+
className: (0, import_clsx31.default)(
|
|
4558
5323
|
"border-t border-neutral-300 flex justify-end",
|
|
4559
5324
|
layoutPaddding,
|
|
4560
5325
|
layoutGroupGap
|
|
4561
5326
|
),
|
|
4562
|
-
children: customActions != null ? customActions : /* @__PURE__ */ (0,
|
|
4563
|
-
/* @__PURE__ */ (0,
|
|
5327
|
+
children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
5328
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4564
5329
|
Button,
|
|
4565
5330
|
{
|
|
4566
5331
|
id: id ? `${id}-close-button` : void 0,
|
|
4567
5332
|
testid: testid ? `${testid}-close-button` : void 0,
|
|
4568
5333
|
variant: "secondary",
|
|
4569
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5334
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { name: "close", size: 24 }),
|
|
4570
5335
|
onClick: onClose,
|
|
4571
5336
|
className: "max-sm:w-full",
|
|
4572
5337
|
children: "Close"
|
|
4573
5338
|
}
|
|
4574
5339
|
),
|
|
4575
|
-
/* @__PURE__ */ (0,
|
|
5340
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4576
5341
|
Button,
|
|
4577
5342
|
{
|
|
4578
5343
|
id: id ? `${id}-continue-button` : void 0,
|
|
4579
5344
|
testid: testid ? `${testid}-continue-button` : void 0,
|
|
4580
5345
|
variant: "primary",
|
|
4581
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5346
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { name: "check", size: 24 }),
|
|
4582
5347
|
className: "max-sm:w-full",
|
|
4583
5348
|
onClick: onContinue,
|
|
4584
5349
|
children: "Continue"
|
|
@@ -4591,8 +5356,8 @@ var ModalButtons = ({
|
|
|
4591
5356
|
ModalButtons.displayName = "ModalButtons";
|
|
4592
5357
|
|
|
4593
5358
|
// src/components/ModalScrim.tsx
|
|
4594
|
-
var
|
|
4595
|
-
var
|
|
5359
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5360
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4596
5361
|
var ModalScrim = ({
|
|
4597
5362
|
show = false,
|
|
4598
5363
|
size = "small",
|
|
@@ -4602,12 +5367,12 @@ var ModalScrim = ({
|
|
|
4602
5367
|
id,
|
|
4603
5368
|
testid
|
|
4604
5369
|
}) => {
|
|
4605
|
-
return /* @__PURE__ */ (0,
|
|
5370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4606
5371
|
"div",
|
|
4607
5372
|
{
|
|
4608
5373
|
id,
|
|
4609
5374
|
"data-testid": testid,
|
|
4610
|
-
className: (0,
|
|
5375
|
+
className: (0, import_clsx32.default)(
|
|
4611
5376
|
"overflow-y-auto h-screen transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center group bg-neutral-600/50 fixed opacity-0",
|
|
4612
5377
|
!show && " pointer-events-none",
|
|
4613
5378
|
size === "small" && "p-4",
|
|
@@ -4623,14 +5388,14 @@ var ModalScrim = ({
|
|
|
4623
5388
|
ModalScrim.displayName = "ModalScrim";
|
|
4624
5389
|
|
|
4625
5390
|
// src/components/Modal.tsx
|
|
4626
|
-
var
|
|
5391
|
+
var import_react_dom4 = require("react-dom");
|
|
4627
5392
|
var import_react_use = require("react-use");
|
|
4628
5393
|
|
|
4629
5394
|
// src/components/useMounted.tsx
|
|
4630
|
-
var
|
|
5395
|
+
var import_react28 = require("react");
|
|
4631
5396
|
var useMounted = () => {
|
|
4632
|
-
const [isMounted, setIsMounted] = (0,
|
|
4633
|
-
(0,
|
|
5397
|
+
const [isMounted, setIsMounted] = (0, import_react28.useState)(false);
|
|
5398
|
+
(0, import_react28.useEffect)(() => {
|
|
4634
5399
|
setIsMounted(true);
|
|
4635
5400
|
return () => setIsMounted(false);
|
|
4636
5401
|
}, []);
|
|
@@ -4638,7 +5403,7 @@ var useMounted = () => {
|
|
|
4638
5403
|
};
|
|
4639
5404
|
|
|
4640
5405
|
// src/components/Modal.tsx
|
|
4641
|
-
var
|
|
5406
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4642
5407
|
var fadeInScale = (element, duration = 300) => element.animate(
|
|
4643
5408
|
[
|
|
4644
5409
|
{ opacity: 0, transform: "scale(0.95)" },
|
|
@@ -4722,12 +5487,12 @@ var Modal = ({
|
|
|
4722
5487
|
}) => {
|
|
4723
5488
|
var _a;
|
|
4724
5489
|
const mounted = useMounted();
|
|
4725
|
-
const modalRef = (0,
|
|
4726
|
-
const bgRef = (0,
|
|
5490
|
+
const modalRef = (0, import_react29.useRef)(null);
|
|
5491
|
+
const bgRef = (0, import_react29.useRef)(null);
|
|
4727
5492
|
const wasOpen = (0, import_react_use.usePrevious)(open);
|
|
4728
5493
|
const isMobile = useMatchesMobile();
|
|
4729
5494
|
const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
|
|
4730
|
-
(0,
|
|
5495
|
+
(0, import_react29.useEffect)(() => {
|
|
4731
5496
|
if (!mounted) return;
|
|
4732
5497
|
if (!modalRef.current || !bgRef.current) {
|
|
4733
5498
|
console.error("Modal or background reference is not set.");
|
|
@@ -4747,7 +5512,7 @@ var Modal = ({
|
|
|
4747
5512
|
bgFadeIn(bgRef.current);
|
|
4748
5513
|
}
|
|
4749
5514
|
}, [mounted, onClose, open, wasOpen]);
|
|
4750
|
-
const handleKeyDown = (0,
|
|
5515
|
+
const handleKeyDown = (0, import_react29.useCallback)(
|
|
4751
5516
|
(e) => {
|
|
4752
5517
|
if (e.key === "Escape") {
|
|
4753
5518
|
if (onClose) {
|
|
@@ -4758,12 +5523,12 @@ var Modal = ({
|
|
|
4758
5523
|
},
|
|
4759
5524
|
[onClose]
|
|
4760
5525
|
);
|
|
4761
|
-
const handleClose = (0,
|
|
5526
|
+
const handleClose = (0, import_react29.useCallback)(() => {
|
|
4762
5527
|
if (onClose) {
|
|
4763
5528
|
onClose();
|
|
4764
5529
|
}
|
|
4765
5530
|
}, [onClose]);
|
|
4766
|
-
(0,
|
|
5531
|
+
(0, import_react29.useEffect)(() => {
|
|
4767
5532
|
if (open) {
|
|
4768
5533
|
document.addEventListener("keyup", handleKeyDown);
|
|
4769
5534
|
}
|
|
@@ -4771,7 +5536,7 @@ var Modal = ({
|
|
|
4771
5536
|
document.removeEventListener("keyup", handleKeyDown);
|
|
4772
5537
|
};
|
|
4773
5538
|
}, [open, handleKeyDown]);
|
|
4774
|
-
(0,
|
|
5539
|
+
(0, import_react29.useEffect)(() => {
|
|
4775
5540
|
if (!open) return;
|
|
4776
5541
|
const scrollY = window.scrollY;
|
|
4777
5542
|
const body = document.body;
|
|
@@ -4792,7 +5557,7 @@ var Modal = ({
|
|
|
4792
5557
|
};
|
|
4793
5558
|
}, [open]);
|
|
4794
5559
|
const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
|
|
4795
|
-
const backgroundClickHandler = (0,
|
|
5560
|
+
const backgroundClickHandler = (0, import_react29.useCallback)(
|
|
4796
5561
|
(e) => {
|
|
4797
5562
|
const target = e.target;
|
|
4798
5563
|
const currentTarget = e.currentTarget;
|
|
@@ -4809,8 +5574,8 @@ var Modal = ({
|
|
|
4809
5574
|
if (!mounted) {
|
|
4810
5575
|
return null;
|
|
4811
5576
|
}
|
|
4812
|
-
return (0,
|
|
4813
|
-
/* @__PURE__ */ (0,
|
|
5577
|
+
return (0, import_react_dom4.createPortal)(
|
|
5578
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4814
5579
|
ModalScrim,
|
|
4815
5580
|
{
|
|
4816
5581
|
id: id ? `${id}-scrim` : void 0,
|
|
@@ -4819,13 +5584,13 @@ var Modal = ({
|
|
|
4819
5584
|
ref: bgRef,
|
|
4820
5585
|
show: open,
|
|
4821
5586
|
onClick: backgroundClickHandler,
|
|
4822
|
-
children: /* @__PURE__ */ (0,
|
|
5587
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4823
5588
|
"div",
|
|
4824
5589
|
{
|
|
4825
5590
|
id,
|
|
4826
5591
|
"data-testid": testid,
|
|
4827
5592
|
ref: modalRef,
|
|
4828
|
-
className: (0,
|
|
5593
|
+
className: (0, import_clsx33.default)(
|
|
4829
5594
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
|
|
4830
5595
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
4831
5596
|
className,
|
|
@@ -4834,7 +5599,7 @@ var Modal = ({
|
|
|
4834
5599
|
),
|
|
4835
5600
|
onClick: (e) => e.stopPropagation(),
|
|
4836
5601
|
children: [
|
|
4837
|
-
/* @__PURE__ */ (0,
|
|
5602
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4838
5603
|
ModalHeader,
|
|
4839
5604
|
{
|
|
4840
5605
|
id: id ? `${id}-header` : void 0,
|
|
@@ -4847,7 +5612,7 @@ var Modal = ({
|
|
|
4847
5612
|
headerClassname
|
|
4848
5613
|
}
|
|
4849
5614
|
),
|
|
4850
|
-
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0,
|
|
5615
|
+
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4851
5616
|
ModalContent,
|
|
4852
5617
|
{
|
|
4853
5618
|
id: id ? `${id}-content` : void 0,
|
|
@@ -4856,7 +5621,7 @@ var Modal = ({
|
|
|
4856
5621
|
children
|
|
4857
5622
|
}
|
|
4858
5623
|
) : children,
|
|
4859
|
-
showButtons ? customFooter ? customActions : /* @__PURE__ */ (0,
|
|
5624
|
+
showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4860
5625
|
ModalButtons,
|
|
4861
5626
|
{
|
|
4862
5627
|
id: id ? `${id}-buttons` : void 0,
|
|
@@ -4878,13 +5643,13 @@ Modal.displayName = "Modal";
|
|
|
4878
5643
|
|
|
4879
5644
|
// src/components/PDFViewer/PDFElement.tsx
|
|
4880
5645
|
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4881
|
-
var
|
|
5646
|
+
var import_react31 = require("react");
|
|
4882
5647
|
|
|
4883
5648
|
// src/components/Spinner.tsx
|
|
4884
|
-
var
|
|
5649
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4885
5650
|
var Spinner = ({ size = "small", testid }) => {
|
|
4886
5651
|
const dimension = size === "large" ? 48 : 24;
|
|
4887
|
-
return /* @__PURE__ */ (0,
|
|
5652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4888
5653
|
"svg",
|
|
4889
5654
|
{
|
|
4890
5655
|
"data-testid": testid,
|
|
@@ -4896,14 +5661,14 @@ var Spinner = ({ size = "small", testid }) => {
|
|
|
4896
5661
|
className: "spinner",
|
|
4897
5662
|
"aria-label": "Loading",
|
|
4898
5663
|
children: [
|
|
4899
|
-
/* @__PURE__ */ (0,
|
|
4900
|
-
/* @__PURE__ */ (0,
|
|
4901
|
-
/* @__PURE__ */ (0,
|
|
4902
|
-
/* @__PURE__ */ (0,
|
|
4903
|
-
/* @__PURE__ */ (0,
|
|
4904
|
-
/* @__PURE__ */ (0,
|
|
4905
|
-
/* @__PURE__ */ (0,
|
|
4906
|
-
/* @__PURE__ */ (0,
|
|
5664
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
5665
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
5666
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
5668
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
5669
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
5670
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
5671
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
4907
5672
|
]
|
|
4908
5673
|
}
|
|
4909
5674
|
);
|
|
@@ -4912,31 +5677,31 @@ Spinner.displayName = "Spinner";
|
|
|
4912
5677
|
|
|
4913
5678
|
// src/components/PDFViewer/PDFPage.tsx
|
|
4914
5679
|
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4915
|
-
var
|
|
4916
|
-
var
|
|
5680
|
+
var import_react30 = require("react");
|
|
5681
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4917
5682
|
|
|
4918
5683
|
// src/components/PDFViewer/PDFElement.tsx
|
|
4919
|
-
var
|
|
4920
|
-
var
|
|
5684
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
5685
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4921
5686
|
|
|
4922
5687
|
// src/components/PDFViewer/DownloadIcon.tsx
|
|
4923
|
-
var
|
|
5688
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4924
5689
|
|
|
4925
5690
|
// src/components/PDFViewer/PDFNavigation.tsx
|
|
4926
|
-
var
|
|
5691
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4927
5692
|
|
|
4928
5693
|
// src/components/PDFViewer/index.tsx
|
|
4929
|
-
var
|
|
5694
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4930
5695
|
|
|
4931
5696
|
// src/components/ListGroup.tsx
|
|
4932
|
-
var
|
|
4933
|
-
var
|
|
4934
|
-
var
|
|
5697
|
+
var import_react33 = require("react");
|
|
5698
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
5699
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4935
5700
|
|
|
4936
5701
|
// src/components/Pagination.tsx
|
|
4937
|
-
var
|
|
4938
|
-
var
|
|
4939
|
-
var
|
|
5702
|
+
var import_react34 = require("react");
|
|
5703
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5704
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4940
5705
|
var Pagination = ({
|
|
4941
5706
|
totalPages,
|
|
4942
5707
|
currentPage,
|
|
@@ -4946,7 +5711,7 @@ var Pagination = ({
|
|
|
4946
5711
|
className,
|
|
4947
5712
|
disabled
|
|
4948
5713
|
}) => {
|
|
4949
|
-
const goTo = (0,
|
|
5714
|
+
const goTo = (0, import_react34.useCallback)(
|
|
4950
5715
|
(page) => {
|
|
4951
5716
|
if (disabled) return;
|
|
4952
5717
|
onPageChange(page);
|
|
@@ -4963,7 +5728,7 @@ var Pagination = ({
|
|
|
4963
5728
|
goTo(currentPage + 1);
|
|
4964
5729
|
}
|
|
4965
5730
|
};
|
|
4966
|
-
const pageTokens = (0,
|
|
5731
|
+
const pageTokens = (0, import_react34.useMemo)(() => {
|
|
4967
5732
|
if (totalPages <= 5) {
|
|
4968
5733
|
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
4969
5734
|
}
|
|
@@ -5000,7 +5765,7 @@ var Pagination = ({
|
|
|
5000
5765
|
return tokens;
|
|
5001
5766
|
}, [totalPages, currentPage]);
|
|
5002
5767
|
if (totalPages <= 1) return null;
|
|
5003
|
-
const buttonClass = (0,
|
|
5768
|
+
const buttonClass = (0, import_clsx36.default)(
|
|
5004
5769
|
"cursor-pointer disabled:cursor-default",
|
|
5005
5770
|
paddingUsingComponentGap,
|
|
5006
5771
|
"w-8 h-8",
|
|
@@ -5011,14 +5776,14 @@ var Pagination = ({
|
|
|
5011
5776
|
"focus:bg-background-grouped-secondary-normal focus:outline-0",
|
|
5012
5777
|
"disabled:bg-transparent disabled:text-text-action-primary-disabled"
|
|
5013
5778
|
);
|
|
5014
|
-
return /* @__PURE__ */ (0,
|
|
5779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5015
5780
|
"nav",
|
|
5016
5781
|
{
|
|
5017
5782
|
id,
|
|
5018
5783
|
"data-testid": testid,
|
|
5019
5784
|
"aria-label": "Pagination",
|
|
5020
5785
|
onKeyDown: handleKey,
|
|
5021
|
-
className: (0,
|
|
5786
|
+
className: (0, import_clsx36.default)(
|
|
5022
5787
|
"flex items-center",
|
|
5023
5788
|
"border border-border-primary-normal",
|
|
5024
5789
|
"bg-background-grouped-primary-normal",
|
|
@@ -5026,19 +5791,19 @@ var Pagination = ({
|
|
|
5026
5791
|
className
|
|
5027
5792
|
),
|
|
5028
5793
|
children: [
|
|
5029
|
-
/* @__PURE__ */ (0,
|
|
5794
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5030
5795
|
"button",
|
|
5031
5796
|
{
|
|
5032
5797
|
disabled: disabled || currentPage <= 1,
|
|
5033
5798
|
"aria-label": "Previous page",
|
|
5034
5799
|
onClick: () => goTo(currentPage - 1),
|
|
5035
|
-
className: (0,
|
|
5036
|
-
children: /* @__PURE__ */ (0,
|
|
5800
|
+
className: (0, import_clsx36.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5801
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5037
5802
|
}
|
|
5038
5803
|
),
|
|
5039
|
-
/* @__PURE__ */ (0,
|
|
5804
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: (0, import_clsx36.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5040
5805
|
if (token === "ellipsis") {
|
|
5041
|
-
return /* @__PURE__ */ (0,
|
|
5806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5042
5807
|
"li",
|
|
5043
5808
|
{
|
|
5044
5809
|
className: "w-8 h-8 select-none text-text-action-primary-disabled",
|
|
@@ -5048,29 +5813,29 @@ var Pagination = ({
|
|
|
5048
5813
|
);
|
|
5049
5814
|
}
|
|
5050
5815
|
const selected = token === currentPage;
|
|
5051
|
-
return /* @__PURE__ */ (0,
|
|
5816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5052
5817
|
"button",
|
|
5053
5818
|
{
|
|
5054
5819
|
"aria-label": `Page ${token}`,
|
|
5055
5820
|
"aria-current": selected ? "page" : void 0,
|
|
5056
5821
|
disabled,
|
|
5057
5822
|
onClick: () => goTo(token),
|
|
5058
|
-
className: (0,
|
|
5823
|
+
className: (0, import_clsx36.default)(
|
|
5059
5824
|
buttonClass,
|
|
5060
5825
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5061
5826
|
),
|
|
5062
|
-
children: /* @__PURE__ */ (0,
|
|
5827
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Subheader, { align: "center", weight: "bold", children: token })
|
|
5063
5828
|
}
|
|
5064
5829
|
) }, token);
|
|
5065
5830
|
}) }),
|
|
5066
|
-
/* @__PURE__ */ (0,
|
|
5831
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5067
5832
|
"button",
|
|
5068
5833
|
{
|
|
5069
5834
|
disabled: disabled || currentPage >= totalPages,
|
|
5070
5835
|
"aria-label": "Next page",
|
|
5071
5836
|
onClick: () => goTo(currentPage + 1),
|
|
5072
|
-
className: (0,
|
|
5073
|
-
children: /* @__PURE__ */ (0,
|
|
5837
|
+
className: (0, import_clsx36.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5838
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5074
5839
|
}
|
|
5075
5840
|
)
|
|
5076
5841
|
]
|
|
@@ -5080,26 +5845,26 @@ var Pagination = ({
|
|
|
5080
5845
|
Pagination.displayName = "Pagination";
|
|
5081
5846
|
|
|
5082
5847
|
// src/components/SkeletonParagraph.tsx
|
|
5083
|
-
var
|
|
5848
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5084
5849
|
|
|
5085
5850
|
// src/components/EmptyCartIcon.tsx
|
|
5086
|
-
var
|
|
5851
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5087
5852
|
|
|
5088
5853
|
// src/components/Alert.tsx
|
|
5089
|
-
var
|
|
5090
|
-
var
|
|
5091
|
-
var
|
|
5854
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5855
|
+
var import_react35 = require("react");
|
|
5856
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5092
5857
|
|
|
5093
5858
|
// src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
|
|
5094
|
-
var
|
|
5859
|
+
var import_react37 = require("react");
|
|
5095
5860
|
|
|
5096
5861
|
// src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
|
|
5097
|
-
var
|
|
5098
|
-
var GridContext = (0,
|
|
5862
|
+
var import_react36 = require("react");
|
|
5863
|
+
var GridContext = (0, import_react36.createContext)(null);
|
|
5099
5864
|
|
|
5100
5865
|
// src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
|
|
5101
5866
|
function useGridContext() {
|
|
5102
|
-
const ctx = (0,
|
|
5867
|
+
const ctx = (0, import_react37.useContext)(GridContext);
|
|
5103
5868
|
if (!ctx) {
|
|
5104
5869
|
throw new Error("useGridContext must be used within GridContextProvider");
|
|
5105
5870
|
}
|
|
@@ -5107,11 +5872,11 @@ function useGridContext() {
|
|
|
5107
5872
|
}
|
|
5108
5873
|
|
|
5109
5874
|
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
5110
|
-
var
|
|
5875
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5111
5876
|
function ColumnSelector() {
|
|
5112
5877
|
const context = useGridContext();
|
|
5113
|
-
const ref = (0,
|
|
5114
|
-
const [show, setShow] = (0,
|
|
5878
|
+
const ref = (0, import_react38.useRef)(null);
|
|
5879
|
+
const [show, setShow] = (0, import_react38.useState)(false);
|
|
5115
5880
|
const {
|
|
5116
5881
|
columns,
|
|
5117
5882
|
id,
|
|
@@ -5122,13 +5887,13 @@ function ColumnSelector() {
|
|
|
5122
5887
|
resetColumnVisibility,
|
|
5123
5888
|
dispatch
|
|
5124
5889
|
} = context;
|
|
5125
|
-
const toggleColumnVisibility = (0,
|
|
5890
|
+
const toggleColumnVisibility = (0, import_react38.useCallback)(
|
|
5126
5891
|
(index, visible) => {
|
|
5127
5892
|
dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
|
|
5128
5893
|
},
|
|
5129
5894
|
[dispatch]
|
|
5130
5895
|
);
|
|
5131
|
-
return /* @__PURE__ */ (0,
|
|
5896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5132
5897
|
"div",
|
|
5133
5898
|
{
|
|
5134
5899
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -5136,7 +5901,7 @@ function ColumnSelector() {
|
|
|
5136
5901
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
5137
5902
|
ref,
|
|
5138
5903
|
children: [
|
|
5139
|
-
/* @__PURE__ */ (0,
|
|
5904
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5140
5905
|
Button,
|
|
5141
5906
|
{
|
|
5142
5907
|
id: id ? `${id}-button` : void 0,
|
|
@@ -5145,10 +5910,10 @@ function ColumnSelector() {
|
|
|
5145
5910
|
variant: "navigation",
|
|
5146
5911
|
iconOnly: true,
|
|
5147
5912
|
size: 24,
|
|
5148
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5913
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "tune" })
|
|
5149
5914
|
}
|
|
5150
5915
|
),
|
|
5151
|
-
/* @__PURE__ */ (0,
|
|
5916
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5152
5917
|
Menu,
|
|
5153
5918
|
{
|
|
5154
5919
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -5159,7 +5924,7 @@ function ColumnSelector() {
|
|
|
5159
5924
|
setShow,
|
|
5160
5925
|
calculateMinMaxHeight: true,
|
|
5161
5926
|
children: [
|
|
5162
|
-
/* @__PURE__ */ (0,
|
|
5927
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5163
5928
|
Button,
|
|
5164
5929
|
{
|
|
5165
5930
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -5177,11 +5942,11 @@ function ColumnSelector() {
|
|
|
5177
5942
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
5178
5943
|
}).map((column) => {
|
|
5179
5944
|
var _a, _b, _c;
|
|
5180
|
-
return /* @__PURE__ */ (0,
|
|
5945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5181
5946
|
MenuOption,
|
|
5182
5947
|
{
|
|
5183
5948
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
5184
|
-
children: /* @__PURE__ */ (0,
|
|
5949
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5185
5950
|
Checkbox,
|
|
5186
5951
|
{
|
|
5187
5952
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -5211,7 +5976,7 @@ function ColumnSelector() {
|
|
|
5211
5976
|
}
|
|
5212
5977
|
|
|
5213
5978
|
// src/components/MobileDataGrid/MobileDataGridHeader.tsx
|
|
5214
|
-
var
|
|
5979
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5215
5980
|
function MobileDataGridHeader({
|
|
5216
5981
|
header: Header,
|
|
5217
5982
|
enableColumnSelector,
|
|
@@ -5229,15 +5994,15 @@ function MobileDataGridHeader({
|
|
|
5229
5994
|
handleRowSelectAll
|
|
5230
5995
|
} = ctx;
|
|
5231
5996
|
if (typeof Header === "undefined" && !primaryKey) return null;
|
|
5232
|
-
if (typeof Header === "function") return /* @__PURE__ */ (0,
|
|
5997
|
+
if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Header, __spreadValues({}, ctx));
|
|
5233
5998
|
if (typeof Header === "string" || primaryKey)
|
|
5234
|
-
return /* @__PURE__ */ (0,
|
|
5999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5235
6000
|
"div",
|
|
5236
6001
|
{
|
|
5237
6002
|
id: id ? `${id}-header` : void 0,
|
|
5238
6003
|
"data-testid": testid ? `${testid}-header` : void 0,
|
|
5239
6004
|
className: "sticky top-0",
|
|
5240
|
-
children: /* @__PURE__ */ (0,
|
|
6005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
5241
6006
|
Stack,
|
|
5242
6007
|
{
|
|
5243
6008
|
horizontal: true,
|
|
@@ -5246,7 +6011,7 @@ function MobileDataGridHeader({
|
|
|
5246
6011
|
justify: "between",
|
|
5247
6012
|
backgroundColor: "background-primary-normal",
|
|
5248
6013
|
children: [
|
|
5249
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
6014
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5250
6015
|
Checkbox,
|
|
5251
6016
|
{
|
|
5252
6017
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -5256,7 +6021,7 @@ function MobileDataGridHeader({
|
|
|
5256
6021
|
onChange: handleRowSelectAll
|
|
5257
6022
|
}
|
|
5258
6023
|
) }),
|
|
5259
|
-
/* @__PURE__ */ (0,
|
|
6024
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5260
6025
|
Stack,
|
|
5261
6026
|
{
|
|
5262
6027
|
horizontal: true,
|
|
@@ -5264,10 +6029,10 @@ function MobileDataGridHeader({
|
|
|
5264
6029
|
items: "center",
|
|
5265
6030
|
sizing: "component",
|
|
5266
6031
|
padding: true,
|
|
5267
|
-
children: /* @__PURE__ */ (0,
|
|
6032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Heading3, { as: "span", color: "text-primary-normal", children: typeof Header === "string" ? Header : (_b = (_a = columns.find((col) => col.id === primaryKey)) == null ? void 0 : _a.header) == null ? void 0 : _b.toString() })
|
|
5268
6033
|
}
|
|
5269
6034
|
),
|
|
5270
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
6035
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ColumnSelector, {})
|
|
5271
6036
|
]
|
|
5272
6037
|
}
|
|
5273
6038
|
) })
|
|
@@ -5276,7 +6041,7 @@ function MobileDataGridHeader({
|
|
|
5276
6041
|
}
|
|
5277
6042
|
|
|
5278
6043
|
// src/components/MobileDataGrid/GridContextProvider/index.tsx
|
|
5279
|
-
var
|
|
6044
|
+
var import_react39 = require("react");
|
|
5280
6045
|
|
|
5281
6046
|
// src/components/MobileDataGrid/dataGridReducer.ts
|
|
5282
6047
|
function dataGridReducer(state, action) {
|
|
@@ -5306,7 +6071,7 @@ function dataGridReducer(state, action) {
|
|
|
5306
6071
|
}
|
|
5307
6072
|
|
|
5308
6073
|
// src/components/MobileDataGrid/GridContextProvider/index.tsx
|
|
5309
|
-
var
|
|
6074
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5310
6075
|
function GridContextProvider(props) {
|
|
5311
6076
|
const {
|
|
5312
6077
|
initialColumns,
|
|
@@ -5319,10 +6084,10 @@ function GridContextProvider(props) {
|
|
|
5319
6084
|
getId,
|
|
5320
6085
|
onRowSelect
|
|
5321
6086
|
} = props;
|
|
5322
|
-
const [columns, dispatch] = (0,
|
|
5323
|
-
const [selectedRowIds, setSelectedRowIds] = (0,
|
|
5324
|
-
const [currentRow, setCurrentRow] = (0,
|
|
5325
|
-
const resetColumnVisibility = (0,
|
|
6087
|
+
const [columns, dispatch] = (0, import_react39.useReducer)(dataGridReducer, initialColumns);
|
|
6088
|
+
const [selectedRowIds, setSelectedRowIds] = (0, import_react39.useState)([]);
|
|
6089
|
+
const [currentRow, setCurrentRow] = (0, import_react39.useState)(null);
|
|
6090
|
+
const resetColumnVisibility = (0, import_react39.useCallback)(() => {
|
|
5326
6091
|
const newColumns = columns.map((column) => {
|
|
5327
6092
|
var _a;
|
|
5328
6093
|
const initialColumn = initialColumns.find((c) => c.id === column.id);
|
|
@@ -5334,7 +6099,7 @@ function GridContextProvider(props) {
|
|
|
5334
6099
|
});
|
|
5335
6100
|
dispatch({ type: "SET", payload: newColumns });
|
|
5336
6101
|
}, [columns, initialColumns]);
|
|
5337
|
-
const handleRowSelect = (0,
|
|
6102
|
+
const handleRowSelect = (0, import_react39.useCallback)(
|
|
5338
6103
|
(item) => {
|
|
5339
6104
|
var _a;
|
|
5340
6105
|
const rowId = (_a = getId(item)) != null ? _a : "";
|
|
@@ -5345,7 +6110,7 @@ function GridContextProvider(props) {
|
|
|
5345
6110
|
},
|
|
5346
6111
|
[getId, onRowSelect, selectedRowIds]
|
|
5347
6112
|
);
|
|
5348
|
-
const handleRowSelectAll = (0,
|
|
6113
|
+
const handleRowSelectAll = (0, import_react39.useCallback)(() => {
|
|
5349
6114
|
setSelectedRowIds((prev) => {
|
|
5350
6115
|
if (prev.length === data.length) {
|
|
5351
6116
|
return [];
|
|
@@ -5353,13 +6118,13 @@ function GridContextProvider(props) {
|
|
|
5353
6118
|
return data.map(getId).filter((id2) => id2 !== void 0);
|
|
5354
6119
|
});
|
|
5355
6120
|
}, [data, getId]);
|
|
5356
|
-
const openRowDetail = (0,
|
|
6121
|
+
const openRowDetail = (0, import_react39.useCallback)((row) => {
|
|
5357
6122
|
setCurrentRow(row);
|
|
5358
6123
|
}, []);
|
|
5359
|
-
const closeRowDetail = (0,
|
|
6124
|
+
const closeRowDetail = (0, import_react39.useCallback)(() => {
|
|
5360
6125
|
setCurrentRow(null);
|
|
5361
6126
|
}, []);
|
|
5362
|
-
const visibleColumns = (0,
|
|
6127
|
+
const visibleColumns = (0, import_react39.useMemo)(() => {
|
|
5363
6128
|
const effectiveLimit = typeof numberOfColumnsToShow === "number" ? Math.max(numberOfColumnsToShow - 1, 0) : void 0;
|
|
5364
6129
|
if (primaryKey) {
|
|
5365
6130
|
const pkColumn = columns.find((col) => col.id === String(primaryKey));
|
|
@@ -5377,7 +6142,7 @@ function GridContextProvider(props) {
|
|
|
5377
6142
|
return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
|
|
5378
6143
|
}).slice(0, effectiveLimit);
|
|
5379
6144
|
}, [columns, numberOfColumnsToShow, primaryKey]);
|
|
5380
|
-
return /* @__PURE__ */ (0,
|
|
6145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5381
6146
|
GridContext.Provider,
|
|
5382
6147
|
{
|
|
5383
6148
|
value: {
|
|
@@ -5405,12 +6170,12 @@ function GridContextProvider(props) {
|
|
|
5405
6170
|
}
|
|
5406
6171
|
|
|
5407
6172
|
// src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
|
|
5408
|
-
var
|
|
6173
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5409
6174
|
function MobileDataGridColumn(props) {
|
|
5410
6175
|
var _a;
|
|
5411
6176
|
const { column, data } = props;
|
|
5412
|
-
return /* @__PURE__ */ (0,
|
|
5413
|
-
/* @__PURE__ */ (0,
|
|
6177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
|
|
6178
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
5414
6179
|
(_a = column.header) == null ? void 0 : _a.toString(),
|
|
5415
6180
|
":"
|
|
5416
6181
|
] }),
|
|
@@ -5420,28 +6185,28 @@ function MobileDataGridColumn(props) {
|
|
|
5420
6185
|
}
|
|
5421
6186
|
|
|
5422
6187
|
// src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
|
|
5423
|
-
var
|
|
6188
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5424
6189
|
function ModalContent2() {
|
|
5425
6190
|
const context = useGridContext();
|
|
5426
6191
|
const { columns, currentRow } = context;
|
|
5427
6192
|
if (!currentRow) return null;
|
|
5428
|
-
return /* @__PURE__ */ (0,
|
|
6193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
|
|
5429
6194
|
var _a;
|
|
5430
6195
|
return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
|
|
5431
6196
|
}).map(
|
|
5432
6197
|
(column, index) => {
|
|
5433
6198
|
var _a, _b;
|
|
5434
|
-
return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0,
|
|
6199
|
+
return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
5435
6200
|
"div",
|
|
5436
6201
|
{
|
|
5437
6202
|
className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
|
|
5438
6203
|
children: [
|
|
5439
|
-
/* @__PURE__ */ (0,
|
|
6204
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
5440
6205
|
(_b = column.header) == null ? void 0 : _b.toString(),
|
|
5441
6206
|
":"
|
|
5442
6207
|
] }),
|
|
5443
6208
|
" ",
|
|
5444
|
-
/* @__PURE__ */ (0,
|
|
6209
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5445
6210
|
column.meta.mobileCell,
|
|
5446
6211
|
{
|
|
5447
6212
|
column,
|
|
@@ -5452,7 +6217,7 @@ function ModalContent2() {
|
|
|
5452
6217
|
]
|
|
5453
6218
|
},
|
|
5454
6219
|
`${column.id}-${index}`
|
|
5455
|
-
) : /* @__PURE__ */ (0,
|
|
6220
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5456
6221
|
MobileDataGridColumn,
|
|
5457
6222
|
{
|
|
5458
6223
|
column,
|
|
@@ -5465,7 +6230,7 @@ function ModalContent2() {
|
|
|
5465
6230
|
}
|
|
5466
6231
|
|
|
5467
6232
|
// src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
|
|
5468
|
-
var
|
|
6233
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5469
6234
|
function RowDetailModalProvider() {
|
|
5470
6235
|
var _a;
|
|
5471
6236
|
const context = useGridContext();
|
|
@@ -5477,7 +6242,7 @@ function RowDetailModalProvider() {
|
|
|
5477
6242
|
primaryKey,
|
|
5478
6243
|
closeRowDetail
|
|
5479
6244
|
} = context;
|
|
5480
|
-
return /* @__PURE__ */ (0,
|
|
6245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5481
6246
|
Modal,
|
|
5482
6247
|
{
|
|
5483
6248
|
fixedHeightScrolling: true,
|
|
@@ -5486,7 +6251,7 @@ function RowDetailModalProvider() {
|
|
|
5486
6251
|
hideCloseIcon: true,
|
|
5487
6252
|
size: "medium",
|
|
5488
6253
|
className: "!p-0",
|
|
5489
|
-
headerIcon: /* @__PURE__ */ (0,
|
|
6254
|
+
headerIcon: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
5490
6255
|
Stack,
|
|
5491
6256
|
{
|
|
5492
6257
|
horizontal: true,
|
|
@@ -5495,8 +6260,8 @@ function RowDetailModalProvider() {
|
|
|
5495
6260
|
justify: "between",
|
|
5496
6261
|
width: "full",
|
|
5497
6262
|
children: [
|
|
5498
|
-
/* @__PURE__ */ (0,
|
|
5499
|
-
/* @__PURE__ */ (0,
|
|
6263
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
|
|
6264
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5500
6265
|
Button,
|
|
5501
6266
|
{
|
|
5502
6267
|
id: id ? `${id}-open-in-new-button` : void 0,
|
|
@@ -5504,25 +6269,25 @@ function RowDetailModalProvider() {
|
|
|
5504
6269
|
iconOnly: true,
|
|
5505
6270
|
variant: "tertiary",
|
|
5506
6271
|
onClick: closeRowDetail,
|
|
5507
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
6272
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: "open_in_new", size: 24 }) })
|
|
5508
6273
|
}
|
|
5509
6274
|
)
|
|
5510
6275
|
]
|
|
5511
6276
|
}
|
|
5512
6277
|
),
|
|
5513
|
-
customActions: /* @__PURE__ */ (0,
|
|
6278
|
+
customActions: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
|
|
5514
6279
|
showButtons: true,
|
|
5515
|
-
children: /* @__PURE__ */ (0,
|
|
6280
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ModalContent2, {}) })
|
|
5516
6281
|
}
|
|
5517
6282
|
);
|
|
5518
6283
|
}
|
|
5519
6284
|
|
|
5520
6285
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5521
|
-
var
|
|
6286
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
5522
6287
|
|
|
5523
6288
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5524
|
-
var
|
|
5525
|
-
var
|
|
6289
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
6290
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5526
6291
|
function MobileDataGridCard({
|
|
5527
6292
|
renderLink,
|
|
5528
6293
|
renderChevron = true,
|
|
@@ -5534,27 +6299,27 @@ function MobileDataGridCard({
|
|
|
5534
6299
|
var _a;
|
|
5535
6300
|
const context = useGridContext();
|
|
5536
6301
|
const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
|
|
5537
|
-
return /* @__PURE__ */ (0,
|
|
6302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
5538
6303
|
"li",
|
|
5539
6304
|
{
|
|
5540
6305
|
id: id ? `${id}-card-${getId(data)}` : void 0,
|
|
5541
6306
|
"data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
|
|
5542
|
-
className: (0,
|
|
6307
|
+
className: (0, import_clsx38.default)(
|
|
5543
6308
|
"hover:bg-action-100 cursor-pointer list-none",
|
|
5544
6309
|
selected ? "bg-action-100" : "bg-background-grouped-primary-normal"
|
|
5545
6310
|
),
|
|
5546
6311
|
onClick: () => openRowDetail(data),
|
|
5547
6312
|
children: [
|
|
5548
|
-
/* @__PURE__ */ (0,
|
|
5549
|
-
/* @__PURE__ */ (0,
|
|
5550
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
6313
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Stack, { sizing: "component", children: [
|
|
6314
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
|
|
6315
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5551
6316
|
Stack,
|
|
5552
6317
|
{
|
|
5553
6318
|
sizing: "component",
|
|
5554
6319
|
padding: true,
|
|
5555
6320
|
width: "fit",
|
|
5556
6321
|
onClick: (e) => e.stopPropagation(),
|
|
5557
|
-
children: /* @__PURE__ */ (0,
|
|
6322
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5558
6323
|
Checkbox,
|
|
5559
6324
|
{
|
|
5560
6325
|
id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
|
|
@@ -5565,16 +6330,16 @@ function MobileDataGridCard({
|
|
|
5565
6330
|
)
|
|
5566
6331
|
}
|
|
5567
6332
|
),
|
|
5568
|
-
/* @__PURE__ */ (0,
|
|
6333
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5569
6334
|
Stack,
|
|
5570
6335
|
{
|
|
5571
6336
|
sizing: "component",
|
|
5572
6337
|
padding: true,
|
|
5573
6338
|
onClick: (e) => e.stopPropagation(),
|
|
5574
|
-
children: renderLink ? renderLink(data) : /* @__PURE__ */ (0,
|
|
6339
|
+
children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
|
|
5575
6340
|
}
|
|
5576
6341
|
),
|
|
5577
|
-
/* @__PURE__ */ (0,
|
|
6342
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5578
6343
|
Stack,
|
|
5579
6344
|
{
|
|
5580
6345
|
horizontal: true,
|
|
@@ -5587,18 +6352,18 @@ function MobileDataGridCard({
|
|
|
5587
6352
|
}
|
|
5588
6353
|
)
|
|
5589
6354
|
] }),
|
|
5590
|
-
/* @__PURE__ */ (0,
|
|
6355
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
|
|
5591
6356
|
var _a2, _b;
|
|
5592
6357
|
return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
|
|
5593
6358
|
}).map(
|
|
5594
6359
|
(column, index) => {
|
|
5595
6360
|
var _a2, _b;
|
|
5596
|
-
return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0,
|
|
6361
|
+
return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
5597
6362
|
"div",
|
|
5598
6363
|
{
|
|
5599
6364
|
className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
|
|
5600
6365
|
children: [
|
|
5601
|
-
/* @__PURE__ */ (0,
|
|
6366
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
5602
6367
|
Paragraph,
|
|
5603
6368
|
{
|
|
5604
6369
|
color: "text-secondary-normal",
|
|
@@ -5610,7 +6375,7 @@ function MobileDataGridCard({
|
|
|
5610
6375
|
}
|
|
5611
6376
|
),
|
|
5612
6377
|
" ",
|
|
5613
|
-
/* @__PURE__ */ (0,
|
|
6378
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5614
6379
|
column.meta.mobileCell,
|
|
5615
6380
|
{
|
|
5616
6381
|
column,
|
|
@@ -5621,7 +6386,7 @@ function MobileDataGridCard({
|
|
|
5621
6386
|
]
|
|
5622
6387
|
},
|
|
5623
6388
|
`${column.id}-${index}`
|
|
5624
|
-
) : /* @__PURE__ */ (0,
|
|
6389
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5625
6390
|
MobileDataGridColumn,
|
|
5626
6391
|
{
|
|
5627
6392
|
column,
|
|
@@ -5632,14 +6397,14 @@ function MobileDataGridCard({
|
|
|
5632
6397
|
}
|
|
5633
6398
|
) })
|
|
5634
6399
|
] }),
|
|
5635
|
-
renderChevron && /* @__PURE__ */ (0,
|
|
6400
|
+
renderChevron && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "keyboard_arrow_down" }) })
|
|
5636
6401
|
]
|
|
5637
6402
|
}
|
|
5638
6403
|
);
|
|
5639
6404
|
}
|
|
5640
6405
|
|
|
5641
6406
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5642
|
-
var
|
|
6407
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5643
6408
|
function ColumnList(props) {
|
|
5644
6409
|
const {
|
|
5645
6410
|
withBorder,
|
|
@@ -5651,19 +6416,19 @@ function ColumnList(props) {
|
|
|
5651
6416
|
} = props;
|
|
5652
6417
|
const ctx = useGridContext();
|
|
5653
6418
|
const { id, testid, data, getId, selectedRowIds } = ctx;
|
|
5654
|
-
return /* @__PURE__ */ (0,
|
|
6419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5655
6420
|
"div",
|
|
5656
6421
|
{
|
|
5657
|
-
className: (0,
|
|
6422
|
+
className: (0, import_clsx39.default)(
|
|
5658
6423
|
"flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
|
|
5659
6424
|
!!Footer && "mb-20"
|
|
5660
6425
|
),
|
|
5661
|
-
children: /* @__PURE__ */ (0,
|
|
6426
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
5662
6427
|
"ul",
|
|
5663
6428
|
{
|
|
5664
6429
|
id,
|
|
5665
6430
|
"data-testid": testid,
|
|
5666
|
-
className: (0,
|
|
6431
|
+
className: (0, import_clsx39.default)(
|
|
5667
6432
|
"rounded absolute top-0 left-0 w-full flex-1",
|
|
5668
6433
|
"divide-y divide-border-primary-normal",
|
|
5669
6434
|
withBorder && "border border-border-primary-normal"
|
|
@@ -5671,7 +6436,7 @@ function ColumnList(props) {
|
|
|
5671
6436
|
children: [
|
|
5672
6437
|
data.map((item) => {
|
|
5673
6438
|
const id2 = getId(item);
|
|
5674
|
-
return /* @__PURE__ */ (0,
|
|
6439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5675
6440
|
MobileDataGridCard,
|
|
5676
6441
|
{
|
|
5677
6442
|
data: item,
|
|
@@ -5684,7 +6449,7 @@ function ColumnList(props) {
|
|
|
5684
6449
|
id2
|
|
5685
6450
|
);
|
|
5686
6451
|
}),
|
|
5687
|
-
!!Footer && /* @__PURE__ */ (0,
|
|
6452
|
+
!!Footer && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Footer, __spreadValues({}, ctx)) })
|
|
5688
6453
|
]
|
|
5689
6454
|
}
|
|
5690
6455
|
)
|
|
@@ -5693,7 +6458,7 @@ function ColumnList(props) {
|
|
|
5693
6458
|
}
|
|
5694
6459
|
|
|
5695
6460
|
// src/components/MobileDataGrid/index.tsx
|
|
5696
|
-
var
|
|
6461
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5697
6462
|
function MobileDataGrid(props) {
|
|
5698
6463
|
const {
|
|
5699
6464
|
columns,
|
|
@@ -5715,7 +6480,7 @@ function MobileDataGrid(props) {
|
|
|
5715
6480
|
rowActions,
|
|
5716
6481
|
rounded
|
|
5717
6482
|
} = props;
|
|
5718
|
-
return /* @__PURE__ */ (0,
|
|
6483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
5719
6484
|
GridContextProvider,
|
|
5720
6485
|
{
|
|
5721
6486
|
initialColumns: columns,
|
|
@@ -5727,7 +6492,7 @@ function MobileDataGrid(props) {
|
|
|
5727
6492
|
numberOfColumnsToShow,
|
|
5728
6493
|
primaryKey,
|
|
5729
6494
|
children: [
|
|
5730
|
-
/* @__PURE__ */ (0,
|
|
6495
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
5731
6496
|
Stack,
|
|
5732
6497
|
{
|
|
5733
6498
|
height: "full",
|
|
@@ -5735,7 +6500,7 @@ function MobileDataGrid(props) {
|
|
|
5735
6500
|
overflowX: "hidden",
|
|
5736
6501
|
overflowY: "hidden",
|
|
5737
6502
|
children: [
|
|
5738
|
-
!hideHeader && /* @__PURE__ */ (0,
|
|
6503
|
+
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5739
6504
|
MobileDataGridHeader,
|
|
5740
6505
|
{
|
|
5741
6506
|
header,
|
|
@@ -5743,7 +6508,7 @@ function MobileDataGrid(props) {
|
|
|
5743
6508
|
enableRowSelection
|
|
5744
6509
|
}
|
|
5745
6510
|
),
|
|
5746
|
-
/* @__PURE__ */ (0,
|
|
6511
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5747
6512
|
ColumnList,
|
|
5748
6513
|
{
|
|
5749
6514
|
withBorder,
|
|
@@ -5757,7 +6522,7 @@ function MobileDataGrid(props) {
|
|
|
5757
6522
|
]
|
|
5758
6523
|
}
|
|
5759
6524
|
),
|
|
5760
|
-
/* @__PURE__ */ (0,
|
|
6525
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(RowDetailModalProvider, {})
|
|
5761
6526
|
]
|
|
5762
6527
|
}
|
|
5763
6528
|
);
|