@dmsi/wedgekit-react 0.0.884 → 0.0.886
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-E7XBOMT4.js → chunk-ZXP2GIWZ.js} +81 -22
- package/dist/components/CalendarRange.cjs +133 -77
- package/dist/components/CalendarRange.css +0 -3
- package/dist/components/CalendarRange.js +3 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +119 -63
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +0 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +3 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +119 -63
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +0 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +3 -3
- package/dist/components/DataGrid/PinnedColumns.cjs +122 -66
- package/dist/components/DataGrid/PinnedColumns.css +0 -3
- package/dist/components/DataGrid/PinnedColumns.js +3 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +119 -63
- package/dist/components/DataGrid/TableBody/LoadingCell.css +0 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +3 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +122 -66
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +0 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +3 -3
- package/dist/components/DataGrid/TableBody/index.cjs +124 -68
- package/dist/components/DataGrid/TableBody/index.css +0 -3
- package/dist/components/DataGrid/TableBody/index.js +3 -3
- package/dist/components/DataGrid/index.cjs +133 -77
- package/dist/components/DataGrid/index.css +0 -3
- package/dist/components/DataGrid/index.js +3 -3
- package/dist/components/DataGrid/utils.cjs +121 -65
- package/dist/components/DataGrid/utils.css +0 -3
- package/dist/components/DataGrid/utils.js +3 -3
- package/dist/components/DateInput.cjs +73 -17
- package/dist/components/DateInput.css +0 -3
- package/dist/components/DateInput.js +3 -3
- package/dist/components/DateRangeInput.cjs +133 -77
- package/dist/components/DateRangeInput.css +0 -3
- package/dist/components/DateRangeInput.js +3 -3
- package/dist/components/MobileDataGrid/ColumnList.css +0 -3
- package/dist/components/MobileDataGrid/ColumnList.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +119 -63
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +0 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +3 -3
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +116 -60
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +0 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +3 -3
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +1 -1
- package/dist/components/MobileDataGrid/index.cjs +120 -64
- package/dist/components/MobileDataGrid/index.css +0 -3
- package/dist/components/MobileDataGrid/index.js +3 -3
- package/dist/components/index.cjs +152 -96
- package/dist/components/index.css +0 -3
- package/dist/components/index.js +3 -3
- package/dist/index.css +0 -3
- package/package.json +1 -1
|
@@ -4705,6 +4705,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
4705
4705
|
// src/components/DateInput.tsx
|
|
4706
4706
|
var import_react21 = require("react");
|
|
4707
4707
|
var import_react_dom3 = require("react-dom");
|
|
4708
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
4708
4709
|
|
|
4709
4710
|
// src/components/CalendarRange.tsx
|
|
4710
4711
|
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
@@ -5259,10 +5260,12 @@ var DateInput = (_a) => {
|
|
|
5259
5260
|
const popoverRef = (0, import_react21.useRef)(null);
|
|
5260
5261
|
const triggerRef = (0, import_react21.useRef)(null);
|
|
5261
5262
|
const rootRef = (0, import_react21.useRef)(null);
|
|
5263
|
+
const isMobile = useMatchesMobile();
|
|
5262
5264
|
const [calendarPosition, setCalendarPosition] = (0, import_react21.useState)({
|
|
5263
5265
|
top: 0,
|
|
5264
5266
|
left: 0,
|
|
5265
|
-
width: 0
|
|
5267
|
+
width: 0,
|
|
5268
|
+
openAbove: false
|
|
5266
5269
|
});
|
|
5267
5270
|
const [from, to] = [value, ""];
|
|
5268
5271
|
(0, import_react21.useEffect)(() => {
|
|
@@ -5278,11 +5281,28 @@ var DateInput = (_a) => {
|
|
|
5278
5281
|
const updatePosition = () => {
|
|
5279
5282
|
if (rootRef.current) {
|
|
5280
5283
|
const rect = rootRef.current.getBoundingClientRect();
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5284
|
+
const viewportWidth = window.innerWidth;
|
|
5285
|
+
const viewportHeight = window.innerHeight;
|
|
5286
|
+
const calendarWidth = 340;
|
|
5287
|
+
const calendarHeight = 400;
|
|
5288
|
+
let viewportLeft = rect.left;
|
|
5289
|
+
if (viewportLeft + calendarWidth > viewportWidth) {
|
|
5290
|
+
viewportLeft = rect.right - calendarWidth;
|
|
5291
|
+
if (viewportLeft < 0) {
|
|
5292
|
+
viewportLeft = Math.max(0, (viewportWidth - calendarWidth) / 2);
|
|
5293
|
+
}
|
|
5294
|
+
}
|
|
5295
|
+
const left = viewportLeft + window.scrollX;
|
|
5296
|
+
const spaceBelow = viewportHeight - rect.bottom;
|
|
5297
|
+
const spaceAbove = rect.top;
|
|
5298
|
+
const openAbove = spaceBelow < calendarHeight && spaceAbove > spaceBelow;
|
|
5299
|
+
let top;
|
|
5300
|
+
if (openAbove) {
|
|
5301
|
+
top = rect.top + window.scrollY - calendarHeight - 4;
|
|
5302
|
+
} else {
|
|
5303
|
+
top = rect.bottom + window.scrollY + 4;
|
|
5304
|
+
}
|
|
5305
|
+
setCalendarPosition({ top, left, width: rect.width, openAbove });
|
|
5286
5306
|
}
|
|
5287
5307
|
};
|
|
5288
5308
|
(0, import_react21.useEffect)(() => {
|
|
@@ -5365,7 +5385,10 @@ var DateInput = (_a) => {
|
|
|
5365
5385
|
if (cursorPosition > 0 && value2[cursorPosition - 1] === sep) {
|
|
5366
5386
|
event.preventDefault();
|
|
5367
5387
|
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
5368
|
-
const formattedValue = formatInputValueWithDashes(
|
|
5388
|
+
const formattedValue = formatInputValueWithDashes(
|
|
5389
|
+
newValue,
|
|
5390
|
+
dateInDashes
|
|
5391
|
+
);
|
|
5369
5392
|
setInputValue(formattedValue);
|
|
5370
5393
|
requestAnimationFrame(() => {
|
|
5371
5394
|
if (triggerRef.current) {
|
|
@@ -5416,25 +5439,58 @@ var DateInput = (_a) => {
|
|
|
5416
5439
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5417
5440
|
"div",
|
|
5418
5441
|
{
|
|
5419
|
-
className:
|
|
5442
|
+
className: (0, import_clsx23.default)(
|
|
5443
|
+
"fixed inset-0 z-50",
|
|
5444
|
+
isMobile && "overflow-y-auto bg-neutral-600/50"
|
|
5445
|
+
),
|
|
5420
5446
|
onClick: () => setVisible(false),
|
|
5421
5447
|
onMouseDown: (e) => {
|
|
5422
|
-
|
|
5448
|
+
if (!isMobile) {
|
|
5449
|
+
e.preventDefault();
|
|
5450
|
+
}
|
|
5423
5451
|
},
|
|
5424
5452
|
onWheel: (e) => {
|
|
5425
5453
|
var _a2;
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5454
|
+
if (!isMobile) {
|
|
5455
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5456
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5457
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5458
|
+
}
|
|
5429
5459
|
},
|
|
5430
5460
|
onTouchMove: (e) => {
|
|
5431
|
-
|
|
5461
|
+
if (!isMobile) {
|
|
5462
|
+
e.stopPropagation();
|
|
5463
|
+
}
|
|
5432
5464
|
},
|
|
5433
|
-
style: { touchAction: "pan-y pan-x" },
|
|
5434
|
-
"aria-hidden": "true"
|
|
5465
|
+
style: { touchAction: isMobile ? "auto" : "pan-y pan-x" },
|
|
5466
|
+
"aria-hidden": "true",
|
|
5467
|
+
children: isMobile && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "min-h-full flex items-start justify-center py-4 px-2", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5468
|
+
"div",
|
|
5469
|
+
{
|
|
5470
|
+
ref: (el) => {
|
|
5471
|
+
popoverRef.current = el;
|
|
5472
|
+
},
|
|
5473
|
+
className: "bg-white rounded-base shadow-4 max-w-full",
|
|
5474
|
+
onClick: (e) => e.stopPropagation(),
|
|
5475
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5476
|
+
CalendarRange,
|
|
5477
|
+
{
|
|
5478
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5479
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5480
|
+
from,
|
|
5481
|
+
to: to || from,
|
|
5482
|
+
onChange: handleDateChange,
|
|
5483
|
+
cardStyle: true,
|
|
5484
|
+
mode: "single",
|
|
5485
|
+
disableRange: true,
|
|
5486
|
+
isDateAvailable
|
|
5487
|
+
}
|
|
5488
|
+
)
|
|
5489
|
+
}
|
|
5490
|
+
) })
|
|
5435
5491
|
}
|
|
5436
5492
|
),
|
|
5437
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5493
|
+
!isMobile && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5438
5494
|
"div",
|
|
5439
5495
|
{
|
|
5440
5496
|
ref: (el) => {
|
|
@@ -5442,7 +5498,7 @@ var DateInput = (_a) => {
|
|
|
5442
5498
|
},
|
|
5443
5499
|
className: "absolute z-50 bg-white",
|
|
5444
5500
|
style: {
|
|
5445
|
-
top: `${calendarPosition.top
|
|
5501
|
+
top: `${calendarPosition.top}px`,
|
|
5446
5502
|
left: `${calendarPosition.left}px`
|
|
5447
5503
|
},
|
|
5448
5504
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
@@ -5478,10 +5534,10 @@ function formatDisplayValue(from, dateInDashes) {
|
|
|
5478
5534
|
}
|
|
5479
5535
|
|
|
5480
5536
|
// src/components/Accordion.tsx
|
|
5481
|
-
var
|
|
5537
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5482
5538
|
|
|
5483
5539
|
// src/components/Card.tsx
|
|
5484
|
-
var
|
|
5540
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5485
5541
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
5486
5542
|
|
|
5487
5543
|
// src/components/Accordion.tsx
|
|
@@ -5514,7 +5570,7 @@ var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
|
5514
5570
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5515
5571
|
|
|
5516
5572
|
// src/components/Grid.tsx
|
|
5517
|
-
var
|
|
5573
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5518
5574
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5519
5575
|
|
|
5520
5576
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
@@ -5525,7 +5581,7 @@ var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
|
5525
5581
|
var import_react27 = require("react");
|
|
5526
5582
|
|
|
5527
5583
|
// src/components/Surface.tsx
|
|
5528
|
-
var
|
|
5584
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5529
5585
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5530
5586
|
var Surface = (_a) => {
|
|
5531
5587
|
var _b = _a, {
|
|
@@ -5543,7 +5599,7 @@ var Surface = (_a) => {
|
|
|
5543
5599
|
"div",
|
|
5544
5600
|
__spreadProps(__spreadValues({
|
|
5545
5601
|
id,
|
|
5546
|
-
className: (0,
|
|
5602
|
+
className: (0, import_clsx27.default)(
|
|
5547
5603
|
"rounded-base",
|
|
5548
5604
|
{
|
|
5549
5605
|
"shadow-2": elevation === 2,
|
|
@@ -5563,7 +5619,7 @@ Surface.displayName = "Surface";
|
|
|
5563
5619
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
5564
5620
|
|
|
5565
5621
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
5566
|
-
var
|
|
5622
|
+
var import_clsx28 = require("clsx");
|
|
5567
5623
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
5568
5624
|
|
|
5569
5625
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
@@ -5578,21 +5634,21 @@ var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
|
5578
5634
|
|
|
5579
5635
|
// src/components/CompactImagesPreview.tsx
|
|
5580
5636
|
var import_react30 = require("react");
|
|
5581
|
-
var
|
|
5637
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5582
5638
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5583
5639
|
|
|
5584
5640
|
// src/components/SimpleTable.tsx
|
|
5585
|
-
var
|
|
5641
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
5586
5642
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
5587
5643
|
|
|
5588
5644
|
// src/components/ListGroup.tsx
|
|
5589
5645
|
var import_react31 = require("react");
|
|
5590
|
-
var
|
|
5646
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
5591
5647
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
5592
5648
|
|
|
5593
5649
|
// src/components/Pagination.tsx
|
|
5594
5650
|
var import_react32 = require("react");
|
|
5595
|
-
var
|
|
5651
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
5596
5652
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5597
5653
|
var Pagination = ({
|
|
5598
5654
|
totalPages,
|
|
@@ -5657,7 +5713,7 @@ var Pagination = ({
|
|
|
5657
5713
|
return tokens;
|
|
5658
5714
|
}, [totalPages, currentPage]);
|
|
5659
5715
|
if (totalPages <= 1) return null;
|
|
5660
|
-
const buttonClass = (0,
|
|
5716
|
+
const buttonClass = (0, import_clsx32.default)(
|
|
5661
5717
|
"cursor-pointer disabled:cursor-default",
|
|
5662
5718
|
paddingUsingComponentGap,
|
|
5663
5719
|
"w-8 h-8",
|
|
@@ -5675,7 +5731,7 @@ var Pagination = ({
|
|
|
5675
5731
|
"data-testid": testid,
|
|
5676
5732
|
"aria-label": "Pagination",
|
|
5677
5733
|
onKeyDown: handleKey,
|
|
5678
|
-
className: (0,
|
|
5734
|
+
className: (0, import_clsx32.default)(
|
|
5679
5735
|
"flex items-center",
|
|
5680
5736
|
"border border-border-primary-normal",
|
|
5681
5737
|
"bg-background-grouped-primary-normal",
|
|
@@ -5689,11 +5745,11 @@ var Pagination = ({
|
|
|
5689
5745
|
disabled: disabled || currentPage <= 1,
|
|
5690
5746
|
"aria-label": "Previous page",
|
|
5691
5747
|
onClick: () => goTo(currentPage - 1),
|
|
5692
|
-
className: (0,
|
|
5748
|
+
className: (0, import_clsx32.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
5693
5749
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
5694
5750
|
}
|
|
5695
5751
|
),
|
|
5696
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { className: (0,
|
|
5752
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { className: (0, import_clsx32.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
5697
5753
|
if (token === "ellipsis") {
|
|
5698
5754
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5699
5755
|
"li",
|
|
@@ -5712,7 +5768,7 @@ var Pagination = ({
|
|
|
5712
5768
|
"aria-current": selected ? "page" : void 0,
|
|
5713
5769
|
disabled,
|
|
5714
5770
|
onClick: () => goTo(token),
|
|
5715
|
-
className: (0,
|
|
5771
|
+
className: (0, import_clsx32.default)(
|
|
5716
5772
|
buttonClass,
|
|
5717
5773
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
5718
5774
|
),
|
|
@@ -5726,7 +5782,7 @@ var Pagination = ({
|
|
|
5726
5782
|
disabled: disabled || currentPage >= totalPages,
|
|
5727
5783
|
"aria-label": "Next page",
|
|
5728
5784
|
onClick: () => goTo(currentPage + 1),
|
|
5729
|
-
className: (0,
|
|
5785
|
+
className: (0, import_clsx32.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
5730
5786
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
5731
5787
|
}
|
|
5732
5788
|
)
|
|
@@ -5747,7 +5803,7 @@ var import_react33 = require("react");
|
|
|
5747
5803
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5748
5804
|
|
|
5749
5805
|
// src/components/Alert.tsx
|
|
5750
|
-
var
|
|
5806
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
5751
5807
|
var import_react34 = require("react");
|
|
5752
5808
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5753
5809
|
|
|
@@ -5760,10 +5816,10 @@ var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
|
5760
5816
|
var EditingContext = (0, import_react35.createContext)(null);
|
|
5761
5817
|
|
|
5762
5818
|
// src/components/AccessCard.tsx
|
|
5763
|
-
var
|
|
5819
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
5764
5820
|
|
|
5765
5821
|
// src/components/Radio.tsx
|
|
5766
|
-
var
|
|
5822
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
5767
5823
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5768
5824
|
var Radio = (_a) => {
|
|
5769
5825
|
var _b = _a, {
|
|
@@ -5787,16 +5843,16 @@ var Radio = (_a) => {
|
|
|
5787
5843
|
]);
|
|
5788
5844
|
const radioId = id;
|
|
5789
5845
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
5790
|
-
const defaultClassName = (0,
|
|
5846
|
+
const defaultClassName = (0, import_clsx34.default)(
|
|
5791
5847
|
!error && !disabled && "border-border-primary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-focus:border-border-action-hover peer-focus:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active peer-checked:border-0 peer-checked:bg-background-action-secondary-hover"
|
|
5792
5848
|
);
|
|
5793
|
-
const errorClassName = (0,
|
|
5849
|
+
const errorClassName = (0, import_clsx34.default)(
|
|
5794
5850
|
error && !disabled && "border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-focus:border-border-action-critical-hover peer-focus:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active peer-checked:bg-background-action-critical-secondary-hover peer-checked:border-0 "
|
|
5795
5851
|
);
|
|
5796
|
-
const disabledClassName = (0,
|
|
5852
|
+
const disabledClassName = (0, import_clsx34.default)(
|
|
5797
5853
|
disabled && "peer-disabled:bg-background-action-secondary-disabled peer-disabled:border-border-primary-normal peer-checked:border-0"
|
|
5798
5854
|
);
|
|
5799
|
-
const readonlyClassName = (0,
|
|
5855
|
+
const readonlyClassName = (0, import_clsx34.default)(
|
|
5800
5856
|
readOnly && "peer-read-only:bg-background-action-secondary-disabled peer-read-only:border-border-primary-normal peer-checked:border-0"
|
|
5801
5857
|
);
|
|
5802
5858
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
@@ -5804,7 +5860,7 @@ var Radio = (_a) => {
|
|
|
5804
5860
|
{
|
|
5805
5861
|
htmlFor: radioId,
|
|
5806
5862
|
"data-testid": testid,
|
|
5807
|
-
className: (0,
|
|
5863
|
+
className: (0, import_clsx34.default)(
|
|
5808
5864
|
"flex items-center",
|
|
5809
5865
|
componentGap,
|
|
5810
5866
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
@@ -5827,7 +5883,7 @@ var Radio = (_a) => {
|
|
|
5827
5883
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5828
5884
|
"div",
|
|
5829
5885
|
{
|
|
5830
|
-
className: (0,
|
|
5886
|
+
className: (0, import_clsx34.default)(
|
|
5831
5887
|
"size-6 rounded-full border flex items-center justify-center",
|
|
5832
5888
|
baseTransition,
|
|
5833
5889
|
defaultClassName,
|
|
@@ -5838,7 +5894,7 @@ var Radio = (_a) => {
|
|
|
5838
5894
|
children: checked && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5839
5895
|
RadioIcon,
|
|
5840
5896
|
{
|
|
5841
|
-
className: (0,
|
|
5897
|
+
className: (0, import_clsx34.default)(
|
|
5842
5898
|
"transition-colors",
|
|
5843
5899
|
!error && !disabled && "text-icon-on-action-secondary-normal hover:text-icon-on-action-secondary-hover active:text-icon-on-action-secondary-active peer-hover:text-icon-on-action-secondary-hover peer-focus:text-icon-on-action-secondary-hover peer-active:text-icon-on-action-secondary-active",
|
|
5844
5900
|
error && !disabled && "text-icon-action-critical-secondary-normal hover:text-icon-action-critical-secondary-hover active:text-icon-action-critical-secondary-active peer-hover:text-icon-action-critical-secondary-hover peer-focus:text-icon-action-critical-secondary-hover peer-active:text-icon-action-critical-secondary-active",
|
|
@@ -5890,7 +5946,7 @@ RadioIcon.displayName = "RadioIcon";
|
|
|
5890
5946
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5891
5947
|
|
|
5892
5948
|
// src/components/AccessCardGroup.tsx
|
|
5893
|
-
var
|
|
5949
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5894
5950
|
var import_react36 = require("react");
|
|
5895
5951
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5896
5952
|
|
|
@@ -5905,9 +5961,9 @@ var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
|
5905
5961
|
var import_react37 = require("react");
|
|
5906
5962
|
|
|
5907
5963
|
// src/components/EmblaCarousel/ArrowButtons.tsx
|
|
5908
|
-
var
|
|
5964
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
5909
5965
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5910
|
-
var arrowButtonStyles = (0,
|
|
5966
|
+
var arrowButtonStyles = (0, import_clsx37.default)(
|
|
5911
5967
|
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
|
|
5912
5968
|
);
|
|
5913
5969
|
|
|
@@ -6217,11 +6273,11 @@ function GridContextProvider(props) {
|
|
|
6217
6273
|
}
|
|
6218
6274
|
|
|
6219
6275
|
// src/components/Modal.tsx
|
|
6220
|
-
var
|
|
6276
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
6221
6277
|
var import_react43 = require("react");
|
|
6222
6278
|
|
|
6223
6279
|
// src/components/ModalHeader.tsx
|
|
6224
|
-
var
|
|
6280
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
6225
6281
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6226
6282
|
var ModalHeader = ({
|
|
6227
6283
|
title,
|
|
@@ -6241,7 +6297,7 @@ var ModalHeader = ({
|
|
|
6241
6297
|
{
|
|
6242
6298
|
id,
|
|
6243
6299
|
"data-testid": testid,
|
|
6244
|
-
className: (0,
|
|
6300
|
+
className: (0, import_clsx38.default)(
|
|
6245
6301
|
"flex justify-between items-center",
|
|
6246
6302
|
headerIconAlign === "center" && "justify-center",
|
|
6247
6303
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -6251,7 +6307,7 @@ var ModalHeader = ({
|
|
|
6251
6307
|
headerClassname
|
|
6252
6308
|
),
|
|
6253
6309
|
children: [
|
|
6254
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: (0,
|
|
6310
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: (0, import_clsx38.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
6255
6311
|
headerIcon,
|
|
6256
6312
|
title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6257
6313
|
Title,
|
|
@@ -6274,7 +6330,7 @@ var ModalHeader = ({
|
|
|
6274
6330
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6275
6331
|
"span",
|
|
6276
6332
|
{
|
|
6277
|
-
className: (0,
|
|
6333
|
+
className: (0, import_clsx38.default)(
|
|
6278
6334
|
"contents",
|
|
6279
6335
|
headerIconClassname != null ? headerIconClassname : "text-icon-primary-normal"
|
|
6280
6336
|
),
|
|
@@ -6290,7 +6346,7 @@ var ModalHeader = ({
|
|
|
6290
6346
|
ModalHeader.displayName = "ModalHeader";
|
|
6291
6347
|
|
|
6292
6348
|
// src/components/ModalContent.tsx
|
|
6293
|
-
var
|
|
6349
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
6294
6350
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
6295
6351
|
function ModalContent({
|
|
6296
6352
|
fixedHeightScrolling,
|
|
@@ -6303,7 +6359,7 @@ function ModalContent({
|
|
|
6303
6359
|
{
|
|
6304
6360
|
id,
|
|
6305
6361
|
"data-testid": testid,
|
|
6306
|
-
className: (0,
|
|
6362
|
+
className: (0, import_clsx39.default)(
|
|
6307
6363
|
"flex-grow desktop:flex-grow-0",
|
|
6308
6364
|
layoutPaddding,
|
|
6309
6365
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -6315,7 +6371,7 @@ function ModalContent({
|
|
|
6315
6371
|
ModalContent.displayName = "ModalContent";
|
|
6316
6372
|
|
|
6317
6373
|
// src/components/ModalButtons.tsx
|
|
6318
|
-
var
|
|
6374
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
6319
6375
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6320
6376
|
var ModalButtons = ({
|
|
6321
6377
|
onClose,
|
|
@@ -6330,7 +6386,7 @@ var ModalButtons = ({
|
|
|
6330
6386
|
{
|
|
6331
6387
|
id,
|
|
6332
6388
|
"data-testid": testid,
|
|
6333
|
-
className: (0,
|
|
6389
|
+
className: (0, import_clsx40.default)(
|
|
6334
6390
|
"border-t border-neutral-300 flex justify-end",
|
|
6335
6391
|
mobileButtonStack && "flex-col ",
|
|
6336
6392
|
layoutPaddding,
|
|
@@ -6368,7 +6424,7 @@ var ModalButtons = ({
|
|
|
6368
6424
|
ModalButtons.displayName = "ModalButtons";
|
|
6369
6425
|
|
|
6370
6426
|
// src/components/ModalScrim.tsx
|
|
6371
|
-
var
|
|
6427
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
6372
6428
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6373
6429
|
var ModalScrim = ({
|
|
6374
6430
|
show = false,
|
|
@@ -6384,7 +6440,7 @@ var ModalScrim = ({
|
|
|
6384
6440
|
{
|
|
6385
6441
|
id,
|
|
6386
6442
|
"data-testid": testid,
|
|
6387
|
-
className: (0,
|
|
6443
|
+
className: (0, import_clsx41.default)(
|
|
6388
6444
|
"overflow-y-auto h-dvh transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center group bg-neutral-600/50 fixed opacity-0",
|
|
6389
6445
|
!show && " pointer-events-none",
|
|
6390
6446
|
size === "small" && "p-4",
|
|
@@ -6605,7 +6661,7 @@ var Modal = ({
|
|
|
6605
6661
|
id,
|
|
6606
6662
|
"data-testid": testid,
|
|
6607
6663
|
ref: modalRef,
|
|
6608
|
-
className: (0,
|
|
6664
|
+
className: (0, import_clsx42.default)(
|
|
6609
6665
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0",
|
|
6610
6666
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
6611
6667
|
className,
|
|
@@ -6780,10 +6836,10 @@ function RowDetailModalProvider() {
|
|
|
6780
6836
|
}
|
|
6781
6837
|
|
|
6782
6838
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
6783
|
-
var
|
|
6839
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
6784
6840
|
|
|
6785
6841
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
6786
|
-
var
|
|
6842
|
+
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
6787
6843
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6788
6844
|
function MobileDataGridCard({
|
|
6789
6845
|
renderLink,
|
|
@@ -6801,7 +6857,7 @@ function MobileDataGridCard({
|
|
|
6801
6857
|
{
|
|
6802
6858
|
id: id ? `${id}-card-${getId(data)}` : void 0,
|
|
6803
6859
|
"data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
|
|
6804
|
-
className: (0,
|
|
6860
|
+
className: (0, import_clsx43.default)(
|
|
6805
6861
|
"flex flex-col",
|
|
6806
6862
|
"hover:bg-action-100 cursor-pointer list-none",
|
|
6807
6863
|
selected ? "bg-action-100" : "bg-background-grouped-primary-normal",
|
|
@@ -6924,7 +6980,7 @@ function ColumnList(props) {
|
|
|
6924
6980
|
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6925
6981
|
"div",
|
|
6926
6982
|
{
|
|
6927
|
-
className: (0,
|
|
6983
|
+
className: (0, import_clsx44.default)(
|
|
6928
6984
|
"flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
|
|
6929
6985
|
!!Footer && "mb-20"
|
|
6930
6986
|
),
|
|
@@ -6933,7 +6989,7 @@ function ColumnList(props) {
|
|
|
6933
6989
|
{
|
|
6934
6990
|
id,
|
|
6935
6991
|
"data-testid": testid,
|
|
6936
|
-
className: (0,
|
|
6992
|
+
className: (0, import_clsx44.default)(
|
|
6937
6993
|
"rounded absolute top-0 left-0 w-full flex-1",
|
|
6938
6994
|
empty && "!rounded-t-none",
|
|
6939
6995
|
"divide-y divide-border-primary-normal",
|
|
@@ -6943,7 +6999,7 @@ function ColumnList(props) {
|
|
|
6943
6999
|
empty ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
6944
7000
|
"div",
|
|
6945
7001
|
{
|
|
6946
|
-
className: (0,
|
|
7002
|
+
className: (0, import_clsx44.default)(
|
|
6947
7003
|
"flex flex-col items-center justify-center",
|
|
6948
7004
|
componentGap,
|
|
6949
7005
|
componentPadding
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MobileDataGrid
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ZXP2GIWZ.js";
|
|
4
|
+
import "../../chunk-M7INAUAJ.js";
|
|
4
5
|
import "../../chunk-4DPSNQCM.js";
|
|
5
6
|
import "../../chunk-Q4YDNW7N.js";
|
|
6
|
-
import "../../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../../chunk-KOKA2IJC.js";
|
|
8
8
|
import "../../chunk-MBZ55T2D.js";
|
|
9
9
|
import "../../chunk-2IKT6IHB.js";
|
|
@@ -15,8 +15,8 @@ import "../../chunk-3N34VVYD.js";
|
|
|
15
15
|
import "../../chunk-B4AE3DCA.js";
|
|
16
16
|
import "../../chunk-FP3Y5JJN.js";
|
|
17
17
|
import "../../chunk-5IFPG6TS.js";
|
|
18
|
-
import "../../chunk-6EYMKEJ6.js";
|
|
19
18
|
import "../../chunk-AJ5M6MVX.js";
|
|
19
|
+
import "../../chunk-6EYMKEJ6.js";
|
|
20
20
|
import "../../chunk-YV5FS7NV.js";
|
|
21
21
|
import "../../chunk-Z2HPSFEQ.js";
|
|
22
22
|
import "../../chunk-AT4AWD6B.js";
|