@dmsi/wedgekit-react 0.0.494 → 0.0.496
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-BYY2NTJH.js → chunk-2A7H5GVB.js} +2 -2
- package/dist/{chunk-IPAKWF2V.js → chunk-5R4C5F63.js} +13 -7
- package/dist/chunk-BTKWHCUE.js +137 -0
- package/dist/{chunk-ETAEB3TA.js → chunk-L3BXRDLP.js} +8 -2
- package/dist/chunk-Y5GD2FJA.js +32 -0
- package/dist/{chunk-QBSEKZWX.js → chunk-ZKTHUXKS.js} +1 -1
- package/dist/components/CalendarRange.cjs +526 -398
- package/dist/components/CalendarRange.css +26 -3
- package/dist/components/CalendarRange.js +7 -5
- package/dist/components/Caption.cjs +6 -3
- package/dist/components/Caption.js +5 -129
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +517 -389
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +26 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +7 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +520 -392
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +26 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +7 -5
- package/dist/components/DataGrid/PinnedColumns.cjs +521 -393
- package/dist/components/DataGrid/PinnedColumns.css +26 -3
- package/dist/components/DataGrid/PinnedColumns.js +7 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +515 -387
- package/dist/components/DataGrid/TableBody/LoadingCell.css +26 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +7 -5
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +516 -388
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +26 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +7 -5
- package/dist/components/DataGrid/TableBody/index.cjs +516 -388
- package/dist/components/DataGrid/TableBody/index.css +26 -3
- package/dist/components/DataGrid/TableBody/index.js +7 -5
- package/dist/components/DataGrid/index.cjs +536 -408
- package/dist/components/DataGrid/index.css +26 -3
- package/dist/components/DataGrid/index.js +7 -5
- package/dist/components/DataGrid/utils.cjs +515 -387
- package/dist/components/DataGrid/utils.css +26 -3
- package/dist/components/DataGrid/utils.js +7 -5
- package/dist/components/DataGridCell.cjs +212 -88
- package/dist/components/DataGridCell.js +3 -2
- package/dist/components/DateInput.cjs +508 -380
- package/dist/components/DateInput.css +26 -3
- package/dist/components/DateInput.js +7 -5
- package/dist/components/DateRangeInput.cjs +514 -386
- package/dist/components/DateRangeInput.css +26 -3
- package/dist/components/DateRangeInput.js +7 -5
- package/dist/components/MenuOption.cjs +147 -23
- package/dist/components/MenuOption.js +2 -1
- package/dist/components/MobileDataGrid/ColumnList.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +526 -398
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +26 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +7 -5
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +505 -377
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +26 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +7 -5
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +1 -1
- package/dist/components/MobileDataGrid/index.cjs +560 -432
- package/dist/components/MobileDataGrid/index.css +26 -3
- package/dist/components/MobileDataGrid/index.js +7 -5
- package/dist/components/NestedMenu.cjs +170 -46
- package/dist/components/NestedMenu.js +2 -1
- package/dist/components/SearchResultImage/index.cjs +92 -0
- package/dist/components/SearchResultImage/index.js +8 -0
- package/dist/components/SkeletonParagraph.cjs +8 -2
- package/dist/components/SkeletonParagraph.js +1 -1
- package/dist/components/index.cjs +715 -558
- package/dist/components/index.css +26 -3
- package/dist/components/index.js +10 -5
- package/dist/index.css +26 -3
- package/package.json +1 -1
- package/src/components/Caption.tsx +3 -0
- package/src/components/MenuOption.tsx +16 -6
- package/src/components/SearchResultImage/index.tsx +39 -0
- package/src/components/SkeletonParagraph.tsx +9 -1
- package/src/components/index.ts +1 -0
- package/src/index.css +4 -3
|
@@ -117,7 +117,7 @@ var CSS = /* @__PURE__ */ Object.freeze({
|
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
// src/components/DataGridCell.tsx
|
|
120
|
-
var
|
|
120
|
+
var import_clsx9 = __toESM(require("clsx"), 1);
|
|
121
121
|
var import_react11 = require("react");
|
|
122
122
|
|
|
123
123
|
// src/classNames.ts
|
|
@@ -258,7 +258,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
|
258
258
|
);
|
|
259
259
|
|
|
260
260
|
// src/components/MenuOption.tsx
|
|
261
|
-
var
|
|
261
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
262
262
|
var import_react6 = require("react");
|
|
263
263
|
|
|
264
264
|
// src/components/Label.tsx
|
|
@@ -477,8 +477,130 @@ function findDocumentRoot(element) {
|
|
|
477
477
|
var import_react5 = require("react");
|
|
478
478
|
var LocalStoragePrefix = `${LocalStoragePrefixVersion}-tableLayout`;
|
|
479
479
|
|
|
480
|
-
// src/components/
|
|
480
|
+
// src/components/Caption.tsx
|
|
481
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
481
482
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
483
|
+
var Caption = (_a) => {
|
|
484
|
+
var _b = _a, {
|
|
485
|
+
className,
|
|
486
|
+
children,
|
|
487
|
+
as = "span",
|
|
488
|
+
style = "default",
|
|
489
|
+
color,
|
|
490
|
+
align,
|
|
491
|
+
id,
|
|
492
|
+
testid,
|
|
493
|
+
marginTopDesktop
|
|
494
|
+
} = _b, props = __objRest(_b, [
|
|
495
|
+
"className",
|
|
496
|
+
"children",
|
|
497
|
+
"as",
|
|
498
|
+
"style",
|
|
499
|
+
"color",
|
|
500
|
+
"align",
|
|
501
|
+
"id",
|
|
502
|
+
"testid",
|
|
503
|
+
"marginTopDesktop"
|
|
504
|
+
]);
|
|
505
|
+
const Element = as;
|
|
506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, "data-testid": testid, className: "flex gap-1", children: [
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
508
|
+
WhichIcon,
|
|
509
|
+
{
|
|
510
|
+
id,
|
|
511
|
+
testid,
|
|
512
|
+
style,
|
|
513
|
+
size: 16,
|
|
514
|
+
className: "mt-[3px] desktop:mt-0"
|
|
515
|
+
}
|
|
516
|
+
),
|
|
517
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
518
|
+
Element,
|
|
519
|
+
__spreadProps(__spreadValues({
|
|
520
|
+
id: id ? `${id}-text` : void 0,
|
|
521
|
+
"data-testid": testid ? `${testid}-text` : void 0,
|
|
522
|
+
className: (0, import_clsx5.default)(
|
|
523
|
+
typography.caption.replace("text-text-primary-normal", ""),
|
|
524
|
+
(style === "default" || style === "info") && "text-text-secondary-normal",
|
|
525
|
+
style === "success" && "text-text-success-normal",
|
|
526
|
+
style === "warning" && "text-text-warning-normal",
|
|
527
|
+
style === "error" && "text-text-critical-normal",
|
|
528
|
+
align === "left" && "text-left",
|
|
529
|
+
align === "center" && "text-center",
|
|
530
|
+
align === "right" && "text-right",
|
|
531
|
+
className,
|
|
532
|
+
marginTopDesktop && `desktop:mt-px`
|
|
533
|
+
)
|
|
534
|
+
}, props), {
|
|
535
|
+
style: {
|
|
536
|
+
color: color ? `var(--color-${color})` : void 0
|
|
537
|
+
},
|
|
538
|
+
children
|
|
539
|
+
})
|
|
540
|
+
)
|
|
541
|
+
] });
|
|
542
|
+
};
|
|
543
|
+
var WhichIcon = ({
|
|
544
|
+
style,
|
|
545
|
+
size,
|
|
546
|
+
className,
|
|
547
|
+
id,
|
|
548
|
+
testid
|
|
549
|
+
}) => {
|
|
550
|
+
if (style === "success") {
|
|
551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
552
|
+
Icon,
|
|
553
|
+
{
|
|
554
|
+
id: id ? `${id}-icon` : void 0,
|
|
555
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
556
|
+
className,
|
|
557
|
+
name: "check_circle",
|
|
558
|
+
size
|
|
559
|
+
}
|
|
560
|
+
) });
|
|
561
|
+
}
|
|
562
|
+
if (style === "warning") {
|
|
563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-warning-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
564
|
+
Icon,
|
|
565
|
+
{
|
|
566
|
+
id: id ? `${id}-icon` : void 0,
|
|
567
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
568
|
+
className,
|
|
569
|
+
name: "warning",
|
|
570
|
+
size
|
|
571
|
+
}
|
|
572
|
+
) });
|
|
573
|
+
}
|
|
574
|
+
if (style === "error") {
|
|
575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-critical-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
576
|
+
Icon,
|
|
577
|
+
{
|
|
578
|
+
id: id ? `${id}-icon` : void 0,
|
|
579
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
580
|
+
className,
|
|
581
|
+
name: "info",
|
|
582
|
+
size
|
|
583
|
+
}
|
|
584
|
+
) });
|
|
585
|
+
}
|
|
586
|
+
if (style === "info") {
|
|
587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
588
|
+
Icon,
|
|
589
|
+
{
|
|
590
|
+
id: id ? `${id}-icon` : void 0,
|
|
591
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
592
|
+
className,
|
|
593
|
+
name: "info",
|
|
594
|
+
size
|
|
595
|
+
}
|
|
596
|
+
) });
|
|
597
|
+
}
|
|
598
|
+
return null;
|
|
599
|
+
};
|
|
600
|
+
Caption.displayName = "Caption";
|
|
601
|
+
|
|
602
|
+
// src/components/MenuOption.tsx
|
|
603
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
482
604
|
var MenuOption = ({
|
|
483
605
|
id,
|
|
484
606
|
testid,
|
|
@@ -503,7 +625,8 @@ var MenuOption = ({
|
|
|
503
625
|
mobilePositionTo,
|
|
504
626
|
highlightMatchingText = false,
|
|
505
627
|
menuValue,
|
|
506
|
-
onMouseMove
|
|
628
|
+
onMouseMove,
|
|
629
|
+
small = false
|
|
507
630
|
}) => {
|
|
508
631
|
const uniqueId = (0, import_react6.useId)();
|
|
509
632
|
const internalRef = (0, import_react6.useRef)(null);
|
|
@@ -533,47 +656,48 @@ var MenuOption = ({
|
|
|
533
656
|
const additionalAttributes = {
|
|
534
657
|
"data-selected": selected || null
|
|
535
658
|
};
|
|
536
|
-
const svgStyles = (0,
|
|
659
|
+
const svgStyles = (0, import_clsx6.default)(
|
|
537
660
|
"[&>svg]:shrink-0 [&>svg]:fill-icon-action-primary-normal"
|
|
538
661
|
);
|
|
539
|
-
const textLabelStyles = (0,
|
|
540
|
-
const normalStyles = variant === "normal" && !disabled && (0,
|
|
662
|
+
const textLabelStyles = (0, import_clsx6.default)("w-full whitespace-nowrap !leading-6");
|
|
663
|
+
const normalStyles = variant === "normal" && !disabled && (0, import_clsx6.default)(
|
|
541
664
|
"bg-transparent text-text-primary-normal",
|
|
542
665
|
"hover:bg-background-action-secondary-hover",
|
|
543
666
|
"focus:bg-background-action-secondary-hover",
|
|
544
667
|
"data-selected:bg-background-action-secondary-hover",
|
|
545
668
|
"active:bg-background-action-secondary-active"
|
|
546
669
|
);
|
|
547
|
-
const normalDisabledStyles = variant === "normal" && disabled && (0,
|
|
548
|
-
const actionStyles = variant === "action" && !disabled && (0,
|
|
670
|
+
const normalDisabledStyles = variant === "normal" && disabled && (0, import_clsx6.default)("text-text-primary-disabled");
|
|
671
|
+
const actionStyles = variant === "action" && !disabled && (0, import_clsx6.default)(
|
|
549
672
|
"text-action-400 bg-transparent",
|
|
550
673
|
"hover:bg-background-action-secondary-hover hover:text-text-action-hover",
|
|
551
674
|
"focus:bg-background-action-secondary-hover focus:text-text-action-hover",
|
|
552
675
|
"data-selected:bg-background-action-secondary-active data-selected:text-text-action-active",
|
|
553
676
|
"active:bg-background-action-secondary-active active:text-text-action-active"
|
|
554
677
|
);
|
|
555
|
-
const actionDisabledStyles = variant === "action" && disabled && (0,
|
|
556
|
-
const disabledStyles = disabled && (0,
|
|
678
|
+
const actionDisabledStyles = variant === "action" && disabled && (0, import_clsx6.default)("text-text-action-disabled");
|
|
679
|
+
const disabledStyles = disabled && (0, import_clsx6.default)("bg-transparent cursor-default pointer-events-none");
|
|
557
680
|
const processChildren = typeof children === "string" && highlightMatchingText ? highlightMatch(children, menuValue) : children;
|
|
558
|
-
const renderChildren = typeof children === "object" ? children : variant === "action" ? /* @__PURE__ */ (0,
|
|
559
|
-
return /* @__PURE__ */ (0,
|
|
560
|
-
/* @__PURE__ */ (0,
|
|
681
|
+
const renderChildren = typeof children === "object" ? children : variant === "action" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Label, { padded: true, className: textLabelStyles, children: processChildren }) : !small ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Paragraph, { padded: true, className: textLabelStyles, children: processChildren }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Caption, { padded: true, className: textLabelStyles, children: processChildren });
|
|
682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
683
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
561
684
|
"div",
|
|
562
685
|
__spreadProps(__spreadValues({
|
|
563
686
|
id,
|
|
564
687
|
"data-testid": testid,
|
|
565
688
|
ref: actualRef,
|
|
566
|
-
className: (0,
|
|
567
|
-
"flex
|
|
689
|
+
className: (0, import_clsx6.default)(
|
|
690
|
+
"flex cursor-pointer w-full text-left relative outline-none",
|
|
568
691
|
svgStyles,
|
|
569
|
-
componentGap,
|
|
692
|
+
small ? layoutGroupGap : componentGap,
|
|
570
693
|
componentPadding,
|
|
571
694
|
baseTransition,
|
|
572
695
|
normalStyles,
|
|
573
696
|
normalDisabledStyles,
|
|
574
697
|
actionStyles,
|
|
575
698
|
actionDisabledStyles,
|
|
576
|
-
disabledStyles
|
|
699
|
+
disabledStyles,
|
|
700
|
+
{ "items-center": !small }
|
|
577
701
|
),
|
|
578
702
|
"data-value": value || children,
|
|
579
703
|
onClick: () => {
|
|
@@ -590,13 +714,13 @@ var MenuOption = ({
|
|
|
590
714
|
role: "menuitem",
|
|
591
715
|
"aria-haspopup": subMenu ? "menu" : void 0,
|
|
592
716
|
children: [
|
|
593
|
-
before && /* @__PURE__ */ (0,
|
|
717
|
+
before && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_clsx6.default)("shrink-0", { "items-center flex": !small }), children: before }),
|
|
594
718
|
renderChildren,
|
|
595
719
|
renderAfterProp()
|
|
596
720
|
]
|
|
597
721
|
})
|
|
598
722
|
),
|
|
599
|
-
subMenu && /* @__PURE__ */ (0,
|
|
723
|
+
subMenu && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
600
724
|
"div",
|
|
601
725
|
{
|
|
602
726
|
onMouseEnter: handleSubMenuEnter,
|
|
@@ -620,14 +744,14 @@ var MenuOption = ({
|
|
|
620
744
|
return after;
|
|
621
745
|
}
|
|
622
746
|
if (subMenu && after !== null) {
|
|
623
|
-
return /* @__PURE__ */ (0,
|
|
747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_right" });
|
|
624
748
|
}
|
|
625
749
|
}
|
|
626
750
|
function mobileBackMenuOption() {
|
|
627
751
|
if (!isMobile) {
|
|
628
752
|
return;
|
|
629
753
|
}
|
|
630
|
-
return /* @__PURE__ */ (0,
|
|
754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
631
755
|
MenuOption,
|
|
632
756
|
{
|
|
633
757
|
id: id ? `${id}-back` : void 0,
|
|
@@ -636,7 +760,7 @@ var MenuOption = ({
|
|
|
636
760
|
closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
|
|
637
761
|
},
|
|
638
762
|
variant: "action",
|
|
639
|
-
before: /* @__PURE__ */ (0,
|
|
763
|
+
before: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_left" }),
|
|
640
764
|
children: "Back"
|
|
641
765
|
}
|
|
642
766
|
);
|
|
@@ -653,12 +777,12 @@ function highlightMatch(text, searchValue) {
|
|
|
653
777
|
);
|
|
654
778
|
const parts = text.split(regex);
|
|
655
779
|
return parts.map(
|
|
656
|
-
(part, index) => regex.test(part) ? /* @__PURE__ */ (0,
|
|
780
|
+
(part, index) => regex.test(part) ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-bold", children: part }, index) : part
|
|
657
781
|
);
|
|
658
782
|
}
|
|
659
783
|
|
|
660
784
|
// src/components/Menu.tsx
|
|
661
|
-
var
|
|
785
|
+
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
662
786
|
var import_react8 = require("react");
|
|
663
787
|
var import_react_dom = require("react-dom");
|
|
664
788
|
|
|
@@ -1025,7 +1149,7 @@ function getScrollableAncestors(element) {
|
|
|
1025
1149
|
}
|
|
1026
1150
|
|
|
1027
1151
|
// src/components/Menu.tsx
|
|
1028
|
-
var
|
|
1152
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1029
1153
|
var Menu = (_a) => {
|
|
1030
1154
|
var _b = _a, {
|
|
1031
1155
|
id,
|
|
@@ -1141,13 +1265,13 @@ var Menu = (_a) => {
|
|
|
1141
1265
|
};
|
|
1142
1266
|
}, [show, setShow, positionTo]);
|
|
1143
1267
|
return show && (0, import_react_dom.createPortal)(
|
|
1144
|
-
/* @__PURE__ */ (0,
|
|
1268
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1145
1269
|
"div",
|
|
1146
1270
|
__spreadProps(__spreadValues({
|
|
1147
1271
|
id,
|
|
1148
1272
|
"data-testid": testid,
|
|
1149
1273
|
ref: setRefs,
|
|
1150
|
-
className: (0,
|
|
1274
|
+
className: (0, import_clsx7.default)(
|
|
1151
1275
|
"shadow-4 rounded-base bg-background-grouped-primary-normal overflow-x-hidden overflow-y-auto flex flex-col outline-0",
|
|
1152
1276
|
"fixed",
|
|
1153
1277
|
"z-50",
|
|
@@ -1281,8 +1405,8 @@ var import_react10 = require("react");
|
|
|
1281
1405
|
|
|
1282
1406
|
// src/components/Input.tsx
|
|
1283
1407
|
var import_react9 = require("react");
|
|
1284
|
-
var
|
|
1285
|
-
var
|
|
1408
|
+
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
1409
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1286
1410
|
var InputBase = (_a) => {
|
|
1287
1411
|
var _b = _a, {
|
|
1288
1412
|
id,
|
|
@@ -1350,7 +1474,7 @@ var InputBase = (_a) => {
|
|
|
1350
1474
|
};
|
|
1351
1475
|
}
|
|
1352
1476
|
}, [selectOnFocus]);
|
|
1353
|
-
const inputBaseClass = (0,
|
|
1477
|
+
const inputBaseClass = (0, import_clsx8.default)(
|
|
1354
1478
|
fullWidth ? "w-full" : "w-fit",
|
|
1355
1479
|
"flex flex-row items-center",
|
|
1356
1480
|
"bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
|
|
@@ -1363,26 +1487,26 @@ var InputBase = (_a) => {
|
|
|
1363
1487
|
!removeBorder && "border border-border-primary-normal",
|
|
1364
1488
|
"relative"
|
|
1365
1489
|
);
|
|
1366
|
-
const inputFocusClass = (0,
|
|
1490
|
+
const inputFocusClass = (0, import_clsx8.default)(
|
|
1367
1491
|
"has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
|
|
1368
1492
|
);
|
|
1369
|
-
const inputDisabledClass = (0,
|
|
1493
|
+
const inputDisabledClass = (0, import_clsx8.default)(
|
|
1370
1494
|
"has-disabled:bg-background-action-secondary-disabled"
|
|
1371
1495
|
);
|
|
1372
|
-
const inputReadOnlyClass = (0,
|
|
1496
|
+
const inputReadOnlyClass = (0, import_clsx8.default)(
|
|
1373
1497
|
"has-[input:not(:disabled):read-only]:outline-none has-[input:not(:disabled):read-only]:bg-transparent has-[input:not(:disabled):read-only]:border-transparent has-[input:not(:disabled):read-only]:pl-0"
|
|
1374
1498
|
);
|
|
1375
|
-
const inputInvalidClass = (0,
|
|
1499
|
+
const inputInvalidClass = (0, import_clsx8.default)(
|
|
1376
1500
|
"has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
|
|
1377
1501
|
);
|
|
1378
|
-
return /* @__PURE__ */ (0,
|
|
1502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1379
1503
|
"label",
|
|
1380
1504
|
{
|
|
1381
1505
|
id,
|
|
1382
1506
|
"data-testid": testid,
|
|
1383
1507
|
htmlFor: inputId,
|
|
1384
1508
|
ref: inputContainerRef,
|
|
1385
|
-
className: (0,
|
|
1509
|
+
className: (0, import_clsx8.default)(
|
|
1386
1510
|
"w-full flex flex-col",
|
|
1387
1511
|
"block",
|
|
1388
1512
|
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
@@ -1390,30 +1514,30 @@ var InputBase = (_a) => {
|
|
|
1390
1514
|
),
|
|
1391
1515
|
style: __spreadValues({}, props.style),
|
|
1392
1516
|
children: [
|
|
1393
|
-
label && /* @__PURE__ */ (0,
|
|
1394
|
-
/* @__PURE__ */ (0,
|
|
1517
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_clsx8.default)("flex items-center", componentGap), children: [
|
|
1518
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1395
1519
|
Label,
|
|
1396
1520
|
{
|
|
1397
1521
|
id: id ? `${id}-label` : void 0,
|
|
1398
1522
|
color: error ? "text-primary-error" : void 0,
|
|
1399
|
-
className: (0,
|
|
1523
|
+
className: (0, import_clsx8.default)(
|
|
1400
1524
|
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
1401
1525
|
),
|
|
1402
1526
|
children: label
|
|
1403
1527
|
}
|
|
1404
1528
|
),
|
|
1405
|
-
required && /* @__PURE__ */ (0,
|
|
1529
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1406
1530
|
"span",
|
|
1407
1531
|
{
|
|
1408
|
-
className: (0,
|
|
1532
|
+
className: (0, import_clsx8.default)(typography.label, "text-text-critical-normal"),
|
|
1409
1533
|
children: "*"
|
|
1410
1534
|
}
|
|
1411
1535
|
)
|
|
1412
1536
|
] }),
|
|
1413
|
-
/* @__PURE__ */ (0,
|
|
1537
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1414
1538
|
"div",
|
|
1415
1539
|
{
|
|
1416
|
-
className: (0,
|
|
1540
|
+
className: (0, import_clsx8.default)(
|
|
1417
1541
|
inputBaseClass,
|
|
1418
1542
|
!props.disabled && inputInvalidClass,
|
|
1419
1543
|
inputFocusClass,
|
|
@@ -1428,7 +1552,7 @@ var InputBase = (_a) => {
|
|
|
1428
1552
|
},
|
|
1429
1553
|
children: [
|
|
1430
1554
|
before,
|
|
1431
|
-
/* @__PURE__ */ (0,
|
|
1555
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1432
1556
|
"input",
|
|
1433
1557
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1434
1558
|
ref: (el) => {
|
|
@@ -1439,7 +1563,7 @@ var InputBase = (_a) => {
|
|
|
1439
1563
|
}, props), attributes), {
|
|
1440
1564
|
id: inputId,
|
|
1441
1565
|
"data-testid": testid ? `${testid}-input` : void 0,
|
|
1442
|
-
className: (0,
|
|
1566
|
+
className: (0, import_clsx8.default)(
|
|
1443
1567
|
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
1444
1568
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
1445
1569
|
"placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
|
|
@@ -1453,11 +1577,11 @@ var InputBase = (_a) => {
|
|
|
1453
1577
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1454
1578
|
})
|
|
1455
1579
|
),
|
|
1456
|
-
secondaryIconColor ? /* @__PURE__ */ (0,
|
|
1580
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1457
1581
|
]
|
|
1458
1582
|
}
|
|
1459
1583
|
),
|
|
1460
|
-
caption && /* @__PURE__ */ (0,
|
|
1584
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1461
1585
|
"div",
|
|
1462
1586
|
{
|
|
1463
1587
|
id: id ? `${id}-caption` : void 0,
|
|
@@ -1550,9 +1674,9 @@ var Input = (_a) => {
|
|
|
1550
1674
|
if (props.before) return props.before;
|
|
1551
1675
|
switch (variant) {
|
|
1552
1676
|
case "search":
|
|
1553
|
-
return !removeSearchIcon ? /* @__PURE__ */ (0,
|
|
1677
|
+
return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" }) }) : null;
|
|
1554
1678
|
case "currency":
|
|
1555
|
-
return /* @__PURE__ */ (0,
|
|
1679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "attach_money" }) });
|
|
1556
1680
|
default:
|
|
1557
1681
|
return null;
|
|
1558
1682
|
}
|
|
@@ -1562,7 +1686,7 @@ var Input = (_a) => {
|
|
|
1562
1686
|
switch (variant) {
|
|
1563
1687
|
case "search": {
|
|
1564
1688
|
const hasValue = displayValue.length > 0;
|
|
1565
|
-
return hasValue && !props.readOnly ? /* @__PURE__ */ (0,
|
|
1689
|
+
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1566
1690
|
Icon,
|
|
1567
1691
|
{
|
|
1568
1692
|
id: id ? `${id}-clear-button` : void 0,
|
|
@@ -1574,11 +1698,11 @@ var Input = (_a) => {
|
|
|
1574
1698
|
) : null;
|
|
1575
1699
|
}
|
|
1576
1700
|
case "finder":
|
|
1577
|
-
return /* @__PURE__ */ (0,
|
|
1701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1578
1702
|
case "uom":
|
|
1579
|
-
return uom ? /* @__PURE__ */ (0,
|
|
1703
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
|
|
1580
1704
|
case "percentage":
|
|
1581
|
-
return /* @__PURE__ */ (0,
|
|
1705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1582
1706
|
default:
|
|
1583
1707
|
return null;
|
|
1584
1708
|
}
|
|
@@ -1655,7 +1779,7 @@ var Input = (_a) => {
|
|
|
1655
1779
|
onBlur == null ? void 0 : onBlur(e);
|
|
1656
1780
|
};
|
|
1657
1781
|
const inputProps = getInputProps();
|
|
1658
|
-
return /* @__PURE__ */ (0,
|
|
1782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1659
1783
|
InputBase,
|
|
1660
1784
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
1661
1785
|
before: getBeforeElement(),
|
|
@@ -1667,15 +1791,15 @@ var Input = (_a) => {
|
|
|
1667
1791
|
);
|
|
1668
1792
|
};
|
|
1669
1793
|
Input.displayName = "Input";
|
|
1670
|
-
var Finder = (props) => /* @__PURE__ */ (0,
|
|
1671
|
-
var UOM = (props) => /* @__PURE__ */ (0,
|
|
1794
|
+
var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
|
|
1795
|
+
var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
|
|
1672
1796
|
var Currency = (props) => {
|
|
1673
1797
|
var _a;
|
|
1674
1798
|
const handleCurrencyChange = (e) => {
|
|
1675
1799
|
var _a2;
|
|
1676
1800
|
(_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
|
|
1677
1801
|
};
|
|
1678
|
-
return /* @__PURE__ */ (0,
|
|
1802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1679
1803
|
Input,
|
|
1680
1804
|
__spreadProps(__spreadValues({}, props), {
|
|
1681
1805
|
variant: "currency",
|
|
@@ -1684,14 +1808,14 @@ var Currency = (props) => {
|
|
|
1684
1808
|
})
|
|
1685
1809
|
);
|
|
1686
1810
|
};
|
|
1687
|
-
var Percentage = (props) => /* @__PURE__ */ (0,
|
|
1811
|
+
var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
|
|
1688
1812
|
Finder.displayName = "Finder";
|
|
1689
1813
|
UOM.displayName = "UOM";
|
|
1690
1814
|
Currency.displayName = "Currency";
|
|
1691
1815
|
Percentage.displayName = "Percentage";
|
|
1692
1816
|
|
|
1693
1817
|
// src/components/Search.tsx
|
|
1694
|
-
var
|
|
1818
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1695
1819
|
var Search = (_a) => {
|
|
1696
1820
|
var _b = _a, {
|
|
1697
1821
|
id,
|
|
@@ -1733,8 +1857,8 @@ var Search = (_a) => {
|
|
|
1733
1857
|
}
|
|
1734
1858
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1735
1859
|
}, [props.value]);
|
|
1736
|
-
return /* @__PURE__ */ (0,
|
|
1737
|
-
/* @__PURE__ */ (0,
|
|
1860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
1861
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1738
1862
|
Input,
|
|
1739
1863
|
__spreadValues({
|
|
1740
1864
|
id,
|
|
@@ -1808,7 +1932,7 @@ var Search = (_a) => {
|
|
|
1808
1932
|
Search.displayName = "Search";
|
|
1809
1933
|
|
|
1810
1934
|
// src/components/DataGridCell.tsx
|
|
1811
|
-
var
|
|
1935
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1812
1936
|
var DataGridCell = (0, import_react11.memo)(
|
|
1813
1937
|
(_a) => {
|
|
1814
1938
|
var _b = _a, {
|
|
@@ -1889,10 +2013,10 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
1889
2013
|
};
|
|
1890
2014
|
const headerBgStyles = type === "header" && !locked && !["button"].includes(component) && "bg-brand-400 border-brand-200";
|
|
1891
2015
|
const lockedHeaderBgStyles = locked && !["button"].includes(component) && "bg-neutral-400 border-neutral-300";
|
|
1892
|
-
const headerTypeStyles = type === "header" && component !== "button" && component !== "icon" && (0,
|
|
1893
|
-
const buttonComponentStyles = component === "button" && (0,
|
|
1894
|
-
const iconComponentStyles = component === "icon" && (0,
|
|
1895
|
-
const cellClasses = (0,
|
|
2016
|
+
const headerTypeStyles = type === "header" && component !== "button" && component !== "icon" && (0, import_clsx9.default)("border-r");
|
|
2017
|
+
const buttonComponentStyles = component === "button" && (0, import_clsx9.default)("border-r border-b border-border-primary-normal");
|
|
2018
|
+
const iconComponentStyles = component === "icon" && (0, import_clsx9.default)("border-l");
|
|
2019
|
+
const cellClasses = (0, import_clsx9.default)(
|
|
1896
2020
|
headerTypeStyles,
|
|
1897
2021
|
buttonComponentStyles,
|
|
1898
2022
|
headerBgStyles,
|
|
@@ -1913,16 +2037,16 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
1913
2037
|
isGrabbing && "!cursor-grabbing",
|
|
1914
2038
|
component === "checkbox" || center && "justify-center"
|
|
1915
2039
|
);
|
|
1916
|
-
return /* @__PURE__ */ (0,
|
|
2040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1917
2041
|
Element,
|
|
1918
2042
|
__spreadProps(__spreadValues({
|
|
1919
2043
|
id,
|
|
1920
2044
|
"data-testid": testid,
|
|
1921
|
-
className: (0,
|
|
2045
|
+
className: (0, import_clsx9.default)("flex h-10", !width && "flex-1"),
|
|
1922
2046
|
style: { width, minWidth }
|
|
1923
2047
|
}, props), {
|
|
1924
2048
|
"data-theme": type === "header" && !locked ? "brand" : void 0,
|
|
1925
|
-
children: /* @__PURE__ */ (0,
|
|
2049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1926
2050
|
"div",
|
|
1927
2051
|
{
|
|
1928
2052
|
className: cellClasses,
|
|
@@ -1999,7 +2123,7 @@ function DataCellHeader(_a) {
|
|
|
1999
2123
|
"--color-icon-on-action-primary-normal": "var(--color-text-brand-primary-normal)",
|
|
2000
2124
|
"--background-action-secondary-normal": "var(--color-text-brand-primary-normal)"
|
|
2001
2125
|
}, props.style);
|
|
2002
|
-
return /* @__PURE__ */ (0,
|
|
2126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2003
2127
|
DataGridCell,
|
|
2004
2128
|
__spreadProps(__spreadValues({
|
|
2005
2129
|
id,
|
|
@@ -2014,7 +2138,7 @@ function DataCellHeader(_a) {
|
|
|
2014
2138
|
}, props), {
|
|
2015
2139
|
children: [
|
|
2016
2140
|
children,
|
|
2017
|
-
header.column.getCanFilter() && /* @__PURE__ */ (0,
|
|
2141
|
+
header.column.getCanFilter() && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2018
2142
|
Menu,
|
|
2019
2143
|
{
|
|
2020
2144
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -2026,7 +2150,7 @@ function DataCellHeader(_a) {
|
|
|
2026
2150
|
mobileHide,
|
|
2027
2151
|
useDefaultMinWidth: useMenuDefaultMinWidth,
|
|
2028
2152
|
children: [
|
|
2029
|
-
/* @__PURE__ */ (0,
|
|
2153
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2030
2154
|
MenuOption,
|
|
2031
2155
|
__spreadProps(__spreadValues({
|
|
2032
2156
|
id: id ? `${id}-filter-option` : void 0,
|
|
@@ -2034,7 +2158,7 @@ function DataCellHeader(_a) {
|
|
|
2034
2158
|
}, subMenuListeners), {
|
|
2035
2159
|
subMenu: (_b2) => {
|
|
2036
2160
|
var _c = _b2, { menuId, subMenuLevel } = _c, props2 = __objRest(_c, ["menuId", "subMenuLevel"]);
|
|
2037
|
-
return /* @__PURE__ */ (0,
|
|
2161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2038
2162
|
Menu,
|
|
2039
2163
|
__spreadProps(__spreadValues({
|
|
2040
2164
|
id: id ? `${id}-filter-submenu` : void 0,
|
|
@@ -2046,7 +2170,7 @@ function DataCellHeader(_a) {
|
|
|
2046
2170
|
},
|
|
2047
2171
|
useDefaultMinWidth: useMenuDefaultMinWidth,
|
|
2048
2172
|
children: [
|
|
2049
|
-
/* @__PURE__ */ (0,
|
|
2173
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: (0, import_clsx9.default)(paddingUsingComponentGap), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2050
2174
|
Search,
|
|
2051
2175
|
{
|
|
2052
2176
|
id: id ? `${id}-filter-search` : void 0,
|
|
@@ -2062,7 +2186,7 @@ function DataCellHeader(_a) {
|
|
|
2062
2186
|
value: filter != null ? filter : ""
|
|
2063
2187
|
}
|
|
2064
2188
|
) }),
|
|
2065
|
-
/* @__PURE__ */ (0,
|
|
2189
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2066
2190
|
MenuOption,
|
|
2067
2191
|
{
|
|
2068
2192
|
id: id ? `${id}-filter-contains` : void 0,
|
|
@@ -2072,7 +2196,7 @@ function DataCellHeader(_a) {
|
|
|
2072
2196
|
children: "Contains"
|
|
2073
2197
|
}
|
|
2074
2198
|
),
|
|
2075
|
-
/* @__PURE__ */ (0,
|
|
2199
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2076
2200
|
MenuOption,
|
|
2077
2201
|
{
|
|
2078
2202
|
id: id ? `${id}-filter-startswith` : void 0,
|
|
@@ -2082,7 +2206,7 @@ function DataCellHeader(_a) {
|
|
|
2082
2206
|
children: "Starts with"
|
|
2083
2207
|
}
|
|
2084
2208
|
),
|
|
2085
|
-
/* @__PURE__ */ (0,
|
|
2209
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2086
2210
|
MenuOption,
|
|
2087
2211
|
{
|
|
2088
2212
|
id: id ? `${id}-filter-endswith` : void 0,
|
|
@@ -2099,7 +2223,7 @@ function DataCellHeader(_a) {
|
|
|
2099
2223
|
children: "Filter"
|
|
2100
2224
|
})
|
|
2101
2225
|
),
|
|
2102
|
-
!predeterminedPinned.current && header.column.getCanPin() && /* @__PURE__ */ (0,
|
|
2226
|
+
!predeterminedPinned.current && header.column.getCanPin() && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2103
2227
|
MenuOption,
|
|
2104
2228
|
__spreadProps(__spreadValues({
|
|
2105
2229
|
onClick: () => {
|
|
@@ -2108,7 +2232,7 @@ function DataCellHeader(_a) {
|
|
|
2108
2232
|
}, subMenuListeners), {
|
|
2109
2233
|
subMenu: (_d) => {
|
|
2110
2234
|
var _e = _d, { menuId, subMenuLevel } = _e, props2 = __objRest(_e, ["menuId", "subMenuLevel"]);
|
|
2111
|
-
return /* @__PURE__ */ (0,
|
|
2235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2112
2236
|
Menu,
|
|
2113
2237
|
__spreadProps(__spreadValues({}, props2), {
|
|
2114
2238
|
show: isMenuActive(menuId, subMenuLevel),
|
|
@@ -2116,7 +2240,7 @@ function DataCellHeader(_a) {
|
|
|
2116
2240
|
registerSubMenu(menuId, el);
|
|
2117
2241
|
},
|
|
2118
2242
|
children: [
|
|
2119
|
-
/* @__PURE__ */ (0,
|
|
2243
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2120
2244
|
MenuOption,
|
|
2121
2245
|
{
|
|
2122
2246
|
selected: header.column.getIsPinned() === "left",
|
|
@@ -2127,11 +2251,11 @@ function DataCellHeader(_a) {
|
|
|
2127
2251
|
header.column.pin("left");
|
|
2128
2252
|
}
|
|
2129
2253
|
},
|
|
2130
|
-
after: header.column.getIsPinned() === "left" && /* @__PURE__ */ (0,
|
|
2254
|
+
after: header.column.getIsPinned() === "left" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }),
|
|
2131
2255
|
children: "Left"
|
|
2132
2256
|
}
|
|
2133
2257
|
),
|
|
2134
|
-
/* @__PURE__ */ (0,
|
|
2258
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2135
2259
|
MenuOption,
|
|
2136
2260
|
{
|
|
2137
2261
|
selected: header.column.getIsPinned() === "right",
|
|
@@ -2142,7 +2266,7 @@ function DataCellHeader(_a) {
|
|
|
2142
2266
|
header.column.pin("right");
|
|
2143
2267
|
}
|
|
2144
2268
|
},
|
|
2145
|
-
after: header.column.getIsPinned() === "right" && /* @__PURE__ */ (0,
|
|
2269
|
+
after: header.column.getIsPinned() === "right" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }),
|
|
2146
2270
|
children: "Right"
|
|
2147
2271
|
}
|
|
2148
2272
|
)
|
|
@@ -2160,11 +2284,11 @@ function DataCellHeader(_a) {
|
|
|
2160
2284
|
})
|
|
2161
2285
|
);
|
|
2162
2286
|
function menuOptionIcon(value) {
|
|
2163
|
-
return /* @__PURE__ */ (0,
|
|
2287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2164
2288
|
Icon,
|
|
2165
2289
|
{
|
|
2166
2290
|
name: "check",
|
|
2167
|
-
className: (0,
|
|
2291
|
+
className: (0, import_clsx9.default)(
|
|
2168
2292
|
header.column.columnDef.filterFn !== value && "text-transparent"
|
|
2169
2293
|
)
|
|
2170
2294
|
}
|
|
@@ -2209,7 +2333,7 @@ function DraggableCellHeader(_a) {
|
|
|
2209
2333
|
"--color-icon-on-action-primary-normal": "var(--color-action-000)",
|
|
2210
2334
|
userSelect: "none"
|
|
2211
2335
|
};
|
|
2212
|
-
return /* @__PURE__ */ (0,
|
|
2336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2213
2337
|
DataCellHeader,
|
|
2214
2338
|
__spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
2215
2339
|
header,
|
|
@@ -2241,7 +2365,7 @@ function DragAlongCell(_a) {
|
|
|
2241
2365
|
minWidth: cell.column.getSize(),
|
|
2242
2366
|
zIndex: isDragging ? 1 : 0
|
|
2243
2367
|
};
|
|
2244
|
-
return /* @__PURE__ */ (0,
|
|
2368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DataGridCell, __spreadProps(__spreadValues({ style, ref: setNodeRef }, props), { children }));
|
|
2245
2369
|
}
|
|
2246
2370
|
DragAlongCell.displayName = "DragAlongCell";
|
|
2247
2371
|
// Annotate the CommonJS export names for ESM import in node:
|