@dmsi/wedgekit-react 0.0.494 → 0.0.495
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-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 +5 -0
- package/dist/components/CalendarRange.js +6 -4
- 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 +5 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +520 -392
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +5 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +521 -393
- package/dist/components/DataGrid/PinnedColumns.css +5 -0
- package/dist/components/DataGrid/PinnedColumns.js +6 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +515 -387
- package/dist/components/DataGrid/TableBody/LoadingCell.css +5 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +516 -388
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +5 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -4
- package/dist/components/DataGrid/TableBody/index.cjs +516 -388
- package/dist/components/DataGrid/TableBody/index.css +5 -0
- package/dist/components/DataGrid/TableBody/index.js +6 -4
- package/dist/components/DataGrid/index.cjs +536 -408
- package/dist/components/DataGrid/index.css +5 -0
- package/dist/components/DataGrid/index.js +6 -4
- package/dist/components/DataGrid/utils.cjs +515 -387
- package/dist/components/DataGrid/utils.css +5 -0
- package/dist/components/DataGrid/utils.js +6 -4
- 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 +5 -0
- package/dist/components/DateInput.js +6 -4
- package/dist/components/DateRangeInput.cjs +514 -386
- package/dist/components/DateRangeInput.css +5 -0
- package/dist/components/DateRangeInput.js +6 -4
- 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 +5 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -4
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +505 -377
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +5 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -4
- 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 +5 -0
- package/dist/components/MobileDataGrid/index.js +6 -4
- 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/index.cjs +707 -556
- package/dist/components/index.css +5 -0
- package/dist/components/index.js +9 -4
- package/dist/index.css +5 -0
- 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/index.ts +1 -0
|
@@ -84,6 +84,7 @@ __export(components_exports, {
|
|
|
84
84
|
Paragraph: () => Paragraph,
|
|
85
85
|
ProductImagePreview: () => ProductImagePreview,
|
|
86
86
|
Search: () => Search,
|
|
87
|
+
SearchResultImage: () => SearchResultImage,
|
|
87
88
|
Select: () => Select,
|
|
88
89
|
SimpleTable: () => SimpleTable,
|
|
89
90
|
SkeletonParagraph: () => SkeletonParagraph,
|
|
@@ -144,7 +145,7 @@ var CSS = /* @__PURE__ */ Object.freeze({
|
|
|
144
145
|
});
|
|
145
146
|
|
|
146
147
|
// src/components/DataGridCell.tsx
|
|
147
|
-
var
|
|
148
|
+
var import_clsx9 = __toESM(require("clsx"), 1);
|
|
148
149
|
var import_react11 = require("react");
|
|
149
150
|
|
|
150
151
|
// src/classNames.ts
|
|
@@ -285,7 +286,7 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
|
285
286
|
);
|
|
286
287
|
|
|
287
288
|
// src/components/MenuOption.tsx
|
|
288
|
-
var
|
|
289
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
289
290
|
var import_react6 = require("react");
|
|
290
291
|
|
|
291
292
|
// src/components/Label.tsx
|
|
@@ -716,8 +717,130 @@ function useTableLayout(initialColumns, key) {
|
|
|
716
717
|
return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
|
|
717
718
|
}
|
|
718
719
|
|
|
719
|
-
// src/components/
|
|
720
|
+
// src/components/Caption.tsx
|
|
721
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
720
722
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
723
|
+
var Caption = (_a) => {
|
|
724
|
+
var _b = _a, {
|
|
725
|
+
className,
|
|
726
|
+
children,
|
|
727
|
+
as = "span",
|
|
728
|
+
style = "default",
|
|
729
|
+
color,
|
|
730
|
+
align,
|
|
731
|
+
id,
|
|
732
|
+
testid,
|
|
733
|
+
marginTopDesktop
|
|
734
|
+
} = _b, props = __objRest(_b, [
|
|
735
|
+
"className",
|
|
736
|
+
"children",
|
|
737
|
+
"as",
|
|
738
|
+
"style",
|
|
739
|
+
"color",
|
|
740
|
+
"align",
|
|
741
|
+
"id",
|
|
742
|
+
"testid",
|
|
743
|
+
"marginTopDesktop"
|
|
744
|
+
]);
|
|
745
|
+
const Element = as;
|
|
746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, "data-testid": testid, className: "flex gap-1", children: [
|
|
747
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
748
|
+
WhichIcon,
|
|
749
|
+
{
|
|
750
|
+
id,
|
|
751
|
+
testid,
|
|
752
|
+
style,
|
|
753
|
+
size: 16,
|
|
754
|
+
className: "mt-[3px] desktop:mt-0"
|
|
755
|
+
}
|
|
756
|
+
),
|
|
757
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
758
|
+
Element,
|
|
759
|
+
__spreadProps(__spreadValues({
|
|
760
|
+
id: id ? `${id}-text` : void 0,
|
|
761
|
+
"data-testid": testid ? `${testid}-text` : void 0,
|
|
762
|
+
className: (0, import_clsx5.default)(
|
|
763
|
+
typography.caption.replace("text-text-primary-normal", ""),
|
|
764
|
+
(style === "default" || style === "info") && "text-text-secondary-normal",
|
|
765
|
+
style === "success" && "text-text-success-normal",
|
|
766
|
+
style === "warning" && "text-text-warning-normal",
|
|
767
|
+
style === "error" && "text-text-critical-normal",
|
|
768
|
+
align === "left" && "text-left",
|
|
769
|
+
align === "center" && "text-center",
|
|
770
|
+
align === "right" && "text-right",
|
|
771
|
+
className,
|
|
772
|
+
marginTopDesktop && `desktop:mt-px`
|
|
773
|
+
)
|
|
774
|
+
}, props), {
|
|
775
|
+
style: {
|
|
776
|
+
color: color ? `var(--color-${color})` : void 0
|
|
777
|
+
},
|
|
778
|
+
children
|
|
779
|
+
})
|
|
780
|
+
)
|
|
781
|
+
] });
|
|
782
|
+
};
|
|
783
|
+
var WhichIcon = ({
|
|
784
|
+
style,
|
|
785
|
+
size,
|
|
786
|
+
className,
|
|
787
|
+
id,
|
|
788
|
+
testid
|
|
789
|
+
}) => {
|
|
790
|
+
if (style === "success") {
|
|
791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
792
|
+
Icon,
|
|
793
|
+
{
|
|
794
|
+
id: id ? `${id}-icon` : void 0,
|
|
795
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
796
|
+
className,
|
|
797
|
+
name: "check_circle",
|
|
798
|
+
size
|
|
799
|
+
}
|
|
800
|
+
) });
|
|
801
|
+
}
|
|
802
|
+
if (style === "warning") {
|
|
803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-warning-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
804
|
+
Icon,
|
|
805
|
+
{
|
|
806
|
+
id: id ? `${id}-icon` : void 0,
|
|
807
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
808
|
+
className,
|
|
809
|
+
name: "warning",
|
|
810
|
+
size
|
|
811
|
+
}
|
|
812
|
+
) });
|
|
813
|
+
}
|
|
814
|
+
if (style === "error") {
|
|
815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-critical-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
816
|
+
Icon,
|
|
817
|
+
{
|
|
818
|
+
id: id ? `${id}-icon` : void 0,
|
|
819
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
820
|
+
className,
|
|
821
|
+
name: "info",
|
|
822
|
+
size
|
|
823
|
+
}
|
|
824
|
+
) });
|
|
825
|
+
}
|
|
826
|
+
if (style === "info") {
|
|
827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
828
|
+
Icon,
|
|
829
|
+
{
|
|
830
|
+
id: id ? `${id}-icon` : void 0,
|
|
831
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
832
|
+
className,
|
|
833
|
+
name: "info",
|
|
834
|
+
size
|
|
835
|
+
}
|
|
836
|
+
) });
|
|
837
|
+
}
|
|
838
|
+
return null;
|
|
839
|
+
};
|
|
840
|
+
Caption.displayName = "Caption";
|
|
841
|
+
|
|
842
|
+
// src/components/MenuOption.tsx
|
|
843
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
721
844
|
var MenuOption = ({
|
|
722
845
|
id,
|
|
723
846
|
testid,
|
|
@@ -742,7 +865,8 @@ var MenuOption = ({
|
|
|
742
865
|
mobilePositionTo,
|
|
743
866
|
highlightMatchingText = false,
|
|
744
867
|
menuValue,
|
|
745
|
-
onMouseMove
|
|
868
|
+
onMouseMove,
|
|
869
|
+
small = false
|
|
746
870
|
}) => {
|
|
747
871
|
const uniqueId = (0, import_react6.useId)();
|
|
748
872
|
const internalRef = (0, import_react6.useRef)(null);
|
|
@@ -772,47 +896,48 @@ var MenuOption = ({
|
|
|
772
896
|
const additionalAttributes = {
|
|
773
897
|
"data-selected": selected || null
|
|
774
898
|
};
|
|
775
|
-
const svgStyles = (0,
|
|
899
|
+
const svgStyles = (0, import_clsx6.default)(
|
|
776
900
|
"[&>svg]:shrink-0 [&>svg]:fill-icon-action-primary-normal"
|
|
777
901
|
);
|
|
778
|
-
const textLabelStyles = (0,
|
|
779
|
-
const normalStyles = variant === "normal" && !disabled && (0,
|
|
902
|
+
const textLabelStyles = (0, import_clsx6.default)("w-full whitespace-nowrap !leading-6");
|
|
903
|
+
const normalStyles = variant === "normal" && !disabled && (0, import_clsx6.default)(
|
|
780
904
|
"bg-transparent text-text-primary-normal",
|
|
781
905
|
"hover:bg-background-action-secondary-hover",
|
|
782
906
|
"focus:bg-background-action-secondary-hover",
|
|
783
907
|
"data-selected:bg-background-action-secondary-hover",
|
|
784
908
|
"active:bg-background-action-secondary-active"
|
|
785
909
|
);
|
|
786
|
-
const normalDisabledStyles = variant === "normal" && disabled && (0,
|
|
787
|
-
const actionStyles = variant === "action" && !disabled && (0,
|
|
910
|
+
const normalDisabledStyles = variant === "normal" && disabled && (0, import_clsx6.default)("text-text-primary-disabled");
|
|
911
|
+
const actionStyles = variant === "action" && !disabled && (0, import_clsx6.default)(
|
|
788
912
|
"text-action-400 bg-transparent",
|
|
789
913
|
"hover:bg-background-action-secondary-hover hover:text-text-action-hover",
|
|
790
914
|
"focus:bg-background-action-secondary-hover focus:text-text-action-hover",
|
|
791
915
|
"data-selected:bg-background-action-secondary-active data-selected:text-text-action-active",
|
|
792
916
|
"active:bg-background-action-secondary-active active:text-text-action-active"
|
|
793
917
|
);
|
|
794
|
-
const actionDisabledStyles = variant === "action" && disabled && (0,
|
|
795
|
-
const disabledStyles = disabled && (0,
|
|
918
|
+
const actionDisabledStyles = variant === "action" && disabled && (0, import_clsx6.default)("text-text-action-disabled");
|
|
919
|
+
const disabledStyles = disabled && (0, import_clsx6.default)("bg-transparent cursor-default pointer-events-none");
|
|
796
920
|
const processChildren = typeof children === "string" && highlightMatchingText ? highlightMatch(children, menuValue) : children;
|
|
797
|
-
const renderChildren = typeof children === "object" ? children : variant === "action" ? /* @__PURE__ */ (0,
|
|
798
|
-
return /* @__PURE__ */ (0,
|
|
799
|
-
/* @__PURE__ */ (0,
|
|
921
|
+
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 });
|
|
922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
800
924
|
"div",
|
|
801
925
|
__spreadProps(__spreadValues({
|
|
802
926
|
id,
|
|
803
927
|
"data-testid": testid,
|
|
804
928
|
ref: actualRef,
|
|
805
|
-
className: (0,
|
|
806
|
-
"flex
|
|
929
|
+
className: (0, import_clsx6.default)(
|
|
930
|
+
"flex cursor-pointer w-full text-left relative outline-none",
|
|
807
931
|
svgStyles,
|
|
808
|
-
componentGap,
|
|
932
|
+
small ? layoutGroupGap : componentGap,
|
|
809
933
|
componentPadding,
|
|
810
934
|
baseTransition,
|
|
811
935
|
normalStyles,
|
|
812
936
|
normalDisabledStyles,
|
|
813
937
|
actionStyles,
|
|
814
938
|
actionDisabledStyles,
|
|
815
|
-
disabledStyles
|
|
939
|
+
disabledStyles,
|
|
940
|
+
{ "items-center": !small }
|
|
816
941
|
),
|
|
817
942
|
"data-value": value || children,
|
|
818
943
|
onClick: () => {
|
|
@@ -829,13 +954,13 @@ var MenuOption = ({
|
|
|
829
954
|
role: "menuitem",
|
|
830
955
|
"aria-haspopup": subMenu ? "menu" : void 0,
|
|
831
956
|
children: [
|
|
832
|
-
before && /* @__PURE__ */ (0,
|
|
957
|
+
before && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_clsx6.default)("shrink-0", { "items-center flex": !small }), children: before }),
|
|
833
958
|
renderChildren,
|
|
834
959
|
renderAfterProp()
|
|
835
960
|
]
|
|
836
961
|
})
|
|
837
962
|
),
|
|
838
|
-
subMenu && /* @__PURE__ */ (0,
|
|
963
|
+
subMenu && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
839
964
|
"div",
|
|
840
965
|
{
|
|
841
966
|
onMouseEnter: handleSubMenuEnter,
|
|
@@ -859,14 +984,14 @@ var MenuOption = ({
|
|
|
859
984
|
return after;
|
|
860
985
|
}
|
|
861
986
|
if (subMenu && after !== null) {
|
|
862
|
-
return /* @__PURE__ */ (0,
|
|
987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_right" });
|
|
863
988
|
}
|
|
864
989
|
}
|
|
865
990
|
function mobileBackMenuOption() {
|
|
866
991
|
if (!isMobile) {
|
|
867
992
|
return;
|
|
868
993
|
}
|
|
869
|
-
return /* @__PURE__ */ (0,
|
|
994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
870
995
|
MenuOption,
|
|
871
996
|
{
|
|
872
997
|
id: id ? `${id}-back` : void 0,
|
|
@@ -875,7 +1000,7 @@ var MenuOption = ({
|
|
|
875
1000
|
closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
|
|
876
1001
|
},
|
|
877
1002
|
variant: "action",
|
|
878
|
-
before: /* @__PURE__ */ (0,
|
|
1003
|
+
before: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_left" }),
|
|
879
1004
|
children: "Back"
|
|
880
1005
|
}
|
|
881
1006
|
);
|
|
@@ -892,12 +1017,12 @@ function highlightMatch(text, searchValue) {
|
|
|
892
1017
|
);
|
|
893
1018
|
const parts = text.split(regex);
|
|
894
1019
|
return parts.map(
|
|
895
|
-
(part, index) => regex.test(part) ? /* @__PURE__ */ (0,
|
|
1020
|
+
(part, index) => regex.test(part) ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-bold", children: part }, index) : part
|
|
896
1021
|
);
|
|
897
1022
|
}
|
|
898
1023
|
|
|
899
1024
|
// src/components/Menu.tsx
|
|
900
|
-
var
|
|
1025
|
+
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
901
1026
|
var import_react8 = require("react");
|
|
902
1027
|
var import_react_dom = require("react-dom");
|
|
903
1028
|
|
|
@@ -1264,7 +1389,7 @@ function getScrollableAncestors(element) {
|
|
|
1264
1389
|
}
|
|
1265
1390
|
|
|
1266
1391
|
// src/components/Menu.tsx
|
|
1267
|
-
var
|
|
1392
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1268
1393
|
var Menu = (_a) => {
|
|
1269
1394
|
var _b = _a, {
|
|
1270
1395
|
id,
|
|
@@ -1380,13 +1505,13 @@ var Menu = (_a) => {
|
|
|
1380
1505
|
};
|
|
1381
1506
|
}, [show, setShow, positionTo]);
|
|
1382
1507
|
return show && (0, import_react_dom.createPortal)(
|
|
1383
|
-
/* @__PURE__ */ (0,
|
|
1508
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1384
1509
|
"div",
|
|
1385
1510
|
__spreadProps(__spreadValues({
|
|
1386
1511
|
id,
|
|
1387
1512
|
"data-testid": testid,
|
|
1388
1513
|
ref: setRefs,
|
|
1389
|
-
className: (0,
|
|
1514
|
+
className: (0, import_clsx7.default)(
|
|
1390
1515
|
"shadow-4 rounded-base bg-background-grouped-primary-normal overflow-x-hidden overflow-y-auto flex flex-col outline-0",
|
|
1391
1516
|
"fixed",
|
|
1392
1517
|
"z-50",
|
|
@@ -1520,8 +1645,8 @@ var import_react10 = require("react");
|
|
|
1520
1645
|
|
|
1521
1646
|
// src/components/Input.tsx
|
|
1522
1647
|
var import_react9 = require("react");
|
|
1523
|
-
var
|
|
1524
|
-
var
|
|
1648
|
+
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
1649
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1525
1650
|
var InputBase = (_a) => {
|
|
1526
1651
|
var _b = _a, {
|
|
1527
1652
|
id,
|
|
@@ -1589,7 +1714,7 @@ var InputBase = (_a) => {
|
|
|
1589
1714
|
};
|
|
1590
1715
|
}
|
|
1591
1716
|
}, [selectOnFocus]);
|
|
1592
|
-
const inputBaseClass = (0,
|
|
1717
|
+
const inputBaseClass = (0, import_clsx8.default)(
|
|
1593
1718
|
fullWidth ? "w-full" : "w-fit",
|
|
1594
1719
|
"flex flex-row items-center",
|
|
1595
1720
|
"bg-background-action-secondary-normal caret-icon-on-action-secondary-normal",
|
|
@@ -1602,26 +1727,26 @@ var InputBase = (_a) => {
|
|
|
1602
1727
|
!removeBorder && "border border-border-primary-normal",
|
|
1603
1728
|
"relative"
|
|
1604
1729
|
);
|
|
1605
|
-
const inputFocusClass = (0,
|
|
1730
|
+
const inputFocusClass = (0, import_clsx8.default)(
|
|
1606
1731
|
"has-[[data-focus]]:border-transparent has-[[data-focus]]:outline-border-primary-focus focus-within:border-transparent focus-within:outline-border-primary-focus"
|
|
1607
1732
|
);
|
|
1608
|
-
const inputDisabledClass = (0,
|
|
1733
|
+
const inputDisabledClass = (0, import_clsx8.default)(
|
|
1609
1734
|
"has-disabled:bg-background-action-secondary-disabled"
|
|
1610
1735
|
);
|
|
1611
|
-
const inputReadOnlyClass = (0,
|
|
1736
|
+
const inputReadOnlyClass = (0, import_clsx8.default)(
|
|
1612
1737
|
"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"
|
|
1613
1738
|
);
|
|
1614
|
-
const inputInvalidClass = (0,
|
|
1739
|
+
const inputInvalidClass = (0, import_clsx8.default)(
|
|
1615
1740
|
"has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
|
|
1616
1741
|
);
|
|
1617
|
-
return /* @__PURE__ */ (0,
|
|
1742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1618
1743
|
"label",
|
|
1619
1744
|
{
|
|
1620
1745
|
id,
|
|
1621
1746
|
"data-testid": testid,
|
|
1622
1747
|
htmlFor: inputId,
|
|
1623
1748
|
ref: inputContainerRef,
|
|
1624
|
-
className: (0,
|
|
1749
|
+
className: (0, import_clsx8.default)(
|
|
1625
1750
|
"w-full flex flex-col",
|
|
1626
1751
|
"block",
|
|
1627
1752
|
"text-text-primary-normal has-disabled:text-text-primary-disabled",
|
|
@@ -1629,30 +1754,30 @@ var InputBase = (_a) => {
|
|
|
1629
1754
|
),
|
|
1630
1755
|
style: __spreadValues({}, props.style),
|
|
1631
1756
|
children: [
|
|
1632
|
-
label && /* @__PURE__ */ (0,
|
|
1633
|
-
/* @__PURE__ */ (0,
|
|
1757
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_clsx8.default)("flex items-center", componentGap), children: [
|
|
1758
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1634
1759
|
Label,
|
|
1635
1760
|
{
|
|
1636
1761
|
id: id ? `${id}-label` : void 0,
|
|
1637
1762
|
color: error ? "text-primary-error" : void 0,
|
|
1638
|
-
className: (0,
|
|
1763
|
+
className: (0, import_clsx8.default)(
|
|
1639
1764
|
props.disabled || props.readOnly ? "cursor-default" : "cursor-pointer"
|
|
1640
1765
|
),
|
|
1641
1766
|
children: label
|
|
1642
1767
|
}
|
|
1643
1768
|
),
|
|
1644
|
-
required && /* @__PURE__ */ (0,
|
|
1769
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1645
1770
|
"span",
|
|
1646
1771
|
{
|
|
1647
|
-
className: (0,
|
|
1772
|
+
className: (0, import_clsx8.default)(typography.label, "text-text-critical-normal"),
|
|
1648
1773
|
children: "*"
|
|
1649
1774
|
}
|
|
1650
1775
|
)
|
|
1651
1776
|
] }),
|
|
1652
|
-
/* @__PURE__ */ (0,
|
|
1777
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1653
1778
|
"div",
|
|
1654
1779
|
{
|
|
1655
|
-
className: (0,
|
|
1780
|
+
className: (0, import_clsx8.default)(
|
|
1656
1781
|
inputBaseClass,
|
|
1657
1782
|
!props.disabled && inputInvalidClass,
|
|
1658
1783
|
inputFocusClass,
|
|
@@ -1667,7 +1792,7 @@ var InputBase = (_a) => {
|
|
|
1667
1792
|
},
|
|
1668
1793
|
children: [
|
|
1669
1794
|
before,
|
|
1670
|
-
/* @__PURE__ */ (0,
|
|
1795
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1671
1796
|
"input",
|
|
1672
1797
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1673
1798
|
ref: (el) => {
|
|
@@ -1678,7 +1803,7 @@ var InputBase = (_a) => {
|
|
|
1678
1803
|
}, props), attributes), {
|
|
1679
1804
|
id: inputId,
|
|
1680
1805
|
"data-testid": testid ? `${testid}-input` : void 0,
|
|
1681
|
-
className: (0,
|
|
1806
|
+
className: (0, import_clsx8.default)(
|
|
1682
1807
|
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
1683
1808
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
1684
1809
|
"placeholder:text-text-secondary-normal disabled:text-text-secondary-disabled",
|
|
@@ -1692,11 +1817,11 @@ var InputBase = (_a) => {
|
|
|
1692
1817
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1693
1818
|
})
|
|
1694
1819
|
),
|
|
1695
|
-
secondaryIconColor ? /* @__PURE__ */ (0,
|
|
1820
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after
|
|
1696
1821
|
]
|
|
1697
1822
|
}
|
|
1698
1823
|
),
|
|
1699
|
-
caption && /* @__PURE__ */ (0,
|
|
1824
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1700
1825
|
"div",
|
|
1701
1826
|
{
|
|
1702
1827
|
id: id ? `${id}-caption` : void 0,
|
|
@@ -1789,9 +1914,9 @@ var Input = (_a) => {
|
|
|
1789
1914
|
if (props.before) return props.before;
|
|
1790
1915
|
switch (variant) {
|
|
1791
1916
|
case "search":
|
|
1792
|
-
return !removeSearchIcon ? /* @__PURE__ */ (0,
|
|
1917
|
+
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;
|
|
1793
1918
|
case "currency":
|
|
1794
|
-
return /* @__PURE__ */ (0,
|
|
1919
|
+
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" }) });
|
|
1795
1920
|
default:
|
|
1796
1921
|
return null;
|
|
1797
1922
|
}
|
|
@@ -1801,7 +1926,7 @@ var Input = (_a) => {
|
|
|
1801
1926
|
switch (variant) {
|
|
1802
1927
|
case "search": {
|
|
1803
1928
|
const hasValue = displayValue.length > 0;
|
|
1804
|
-
return hasValue && !props.readOnly ? /* @__PURE__ */ (0,
|
|
1929
|
+
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1805
1930
|
Icon,
|
|
1806
1931
|
{
|
|
1807
1932
|
id: id ? `${id}-clear-button` : void 0,
|
|
@@ -1813,11 +1938,11 @@ var Input = (_a) => {
|
|
|
1813
1938
|
) : null;
|
|
1814
1939
|
}
|
|
1815
1940
|
case "finder":
|
|
1816
|
-
return /* @__PURE__ */ (0,
|
|
1941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "search" });
|
|
1817
1942
|
case "uom":
|
|
1818
|
-
return uom ? /* @__PURE__ */ (0,
|
|
1943
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-text-secondary-normal uppercase", children: uom.slice(0, 4) }) : null;
|
|
1819
1944
|
case "percentage":
|
|
1820
|
-
return /* @__PURE__ */ (0,
|
|
1945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "percent" }) });
|
|
1821
1946
|
default:
|
|
1822
1947
|
return null;
|
|
1823
1948
|
}
|
|
@@ -1894,7 +2019,7 @@ var Input = (_a) => {
|
|
|
1894
2019
|
onBlur == null ? void 0 : onBlur(e);
|
|
1895
2020
|
};
|
|
1896
2021
|
const inputProps = getInputProps();
|
|
1897
|
-
return /* @__PURE__ */ (0,
|
|
2022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1898
2023
|
InputBase,
|
|
1899
2024
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
1900
2025
|
before: getBeforeElement(),
|
|
@@ -1906,15 +2031,15 @@ var Input = (_a) => {
|
|
|
1906
2031
|
);
|
|
1907
2032
|
};
|
|
1908
2033
|
Input.displayName = "Input";
|
|
1909
|
-
var Finder = (props) => /* @__PURE__ */ (0,
|
|
1910
|
-
var UOM = (props) => /* @__PURE__ */ (0,
|
|
2034
|
+
var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
|
|
2035
|
+
var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
|
|
1911
2036
|
var Currency = (props) => {
|
|
1912
2037
|
var _a;
|
|
1913
2038
|
const handleCurrencyChange = (e) => {
|
|
1914
2039
|
var _a2;
|
|
1915
2040
|
(_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
|
|
1916
2041
|
};
|
|
1917
|
-
return /* @__PURE__ */ (0,
|
|
2042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1918
2043
|
Input,
|
|
1919
2044
|
__spreadProps(__spreadValues({}, props), {
|
|
1920
2045
|
variant: "currency",
|
|
@@ -1923,14 +2048,14 @@ var Currency = (props) => {
|
|
|
1923
2048
|
})
|
|
1924
2049
|
);
|
|
1925
2050
|
};
|
|
1926
|
-
var Percentage = (props) => /* @__PURE__ */ (0,
|
|
2051
|
+
var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
|
|
1927
2052
|
Finder.displayName = "Finder";
|
|
1928
2053
|
UOM.displayName = "UOM";
|
|
1929
2054
|
Currency.displayName = "Currency";
|
|
1930
2055
|
Percentage.displayName = "Percentage";
|
|
1931
2056
|
|
|
1932
2057
|
// src/components/Search.tsx
|
|
1933
|
-
var
|
|
2058
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1934
2059
|
var Search = (_a) => {
|
|
1935
2060
|
var _b = _a, {
|
|
1936
2061
|
id,
|
|
@@ -1972,8 +2097,8 @@ var Search = (_a) => {
|
|
|
1972
2097
|
}
|
|
1973
2098
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1974
2099
|
}, [props.value]);
|
|
1975
|
-
return /* @__PURE__ */ (0,
|
|
1976
|
-
/* @__PURE__ */ (0,
|
|
2100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2101
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1977
2102
|
Input,
|
|
1978
2103
|
__spreadValues({
|
|
1979
2104
|
id,
|
|
@@ -2047,7 +2172,7 @@ var Search = (_a) => {
|
|
|
2047
2172
|
Search.displayName = "Search";
|
|
2048
2173
|
|
|
2049
2174
|
// src/components/DataGridCell.tsx
|
|
2050
|
-
var
|
|
2175
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
2051
2176
|
var DataGridCell = (0, import_react11.memo)(
|
|
2052
2177
|
(_a) => {
|
|
2053
2178
|
var _b = _a, {
|
|
@@ -2128,10 +2253,10 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2128
2253
|
};
|
|
2129
2254
|
const headerBgStyles = type === "header" && !locked && !["button"].includes(component) && "bg-brand-400 border-brand-200";
|
|
2130
2255
|
const lockedHeaderBgStyles = locked && !["button"].includes(component) && "bg-neutral-400 border-neutral-300";
|
|
2131
|
-
const headerTypeStyles = type === "header" && component !== "button" && component !== "icon" && (0,
|
|
2132
|
-
const buttonComponentStyles = component === "button" && (0,
|
|
2133
|
-
const iconComponentStyles = component === "icon" && (0,
|
|
2134
|
-
const cellClasses = (0,
|
|
2256
|
+
const headerTypeStyles = type === "header" && component !== "button" && component !== "icon" && (0, import_clsx9.default)("border-r");
|
|
2257
|
+
const buttonComponentStyles = component === "button" && (0, import_clsx9.default)("border-r border-b border-border-primary-normal");
|
|
2258
|
+
const iconComponentStyles = component === "icon" && (0, import_clsx9.default)("border-l");
|
|
2259
|
+
const cellClasses = (0, import_clsx9.default)(
|
|
2135
2260
|
headerTypeStyles,
|
|
2136
2261
|
buttonComponentStyles,
|
|
2137
2262
|
headerBgStyles,
|
|
@@ -2152,16 +2277,16 @@ var DataGridCell = (0, import_react11.memo)(
|
|
|
2152
2277
|
isGrabbing && "!cursor-grabbing",
|
|
2153
2278
|
component === "checkbox" || center && "justify-center"
|
|
2154
2279
|
);
|
|
2155
|
-
return /* @__PURE__ */ (0,
|
|
2280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2156
2281
|
Element,
|
|
2157
2282
|
__spreadProps(__spreadValues({
|
|
2158
2283
|
id,
|
|
2159
2284
|
"data-testid": testid,
|
|
2160
|
-
className: (0,
|
|
2285
|
+
className: (0, import_clsx9.default)("flex h-10", !width && "flex-1"),
|
|
2161
2286
|
style: { width, minWidth }
|
|
2162
2287
|
}, props), {
|
|
2163
2288
|
"data-theme": type === "header" && !locked ? "brand" : void 0,
|
|
2164
|
-
children: /* @__PURE__ */ (0,
|
|
2289
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2165
2290
|
"div",
|
|
2166
2291
|
{
|
|
2167
2292
|
className: cellClasses,
|
|
@@ -2238,7 +2363,7 @@ function DataCellHeader(_a) {
|
|
|
2238
2363
|
"--color-icon-on-action-primary-normal": "var(--color-text-brand-primary-normal)",
|
|
2239
2364
|
"--background-action-secondary-normal": "var(--color-text-brand-primary-normal)"
|
|
2240
2365
|
}, props.style);
|
|
2241
|
-
return /* @__PURE__ */ (0,
|
|
2366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2242
2367
|
DataGridCell,
|
|
2243
2368
|
__spreadProps(__spreadValues({
|
|
2244
2369
|
id,
|
|
@@ -2253,7 +2378,7 @@ function DataCellHeader(_a) {
|
|
|
2253
2378
|
}, props), {
|
|
2254
2379
|
children: [
|
|
2255
2380
|
children,
|
|
2256
|
-
header.column.getCanFilter() && /* @__PURE__ */ (0,
|
|
2381
|
+
header.column.getCanFilter() && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2257
2382
|
Menu,
|
|
2258
2383
|
{
|
|
2259
2384
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -2265,7 +2390,7 @@ function DataCellHeader(_a) {
|
|
|
2265
2390
|
mobileHide,
|
|
2266
2391
|
useDefaultMinWidth: useMenuDefaultMinWidth,
|
|
2267
2392
|
children: [
|
|
2268
|
-
/* @__PURE__ */ (0,
|
|
2393
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2269
2394
|
MenuOption,
|
|
2270
2395
|
__spreadProps(__spreadValues({
|
|
2271
2396
|
id: id ? `${id}-filter-option` : void 0,
|
|
@@ -2273,7 +2398,7 @@ function DataCellHeader(_a) {
|
|
|
2273
2398
|
}, subMenuListeners), {
|
|
2274
2399
|
subMenu: (_b2) => {
|
|
2275
2400
|
var _c = _b2, { menuId, subMenuLevel } = _c, props2 = __objRest(_c, ["menuId", "subMenuLevel"]);
|
|
2276
|
-
return /* @__PURE__ */ (0,
|
|
2401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2277
2402
|
Menu,
|
|
2278
2403
|
__spreadProps(__spreadValues({
|
|
2279
2404
|
id: id ? `${id}-filter-submenu` : void 0,
|
|
@@ -2285,7 +2410,7 @@ function DataCellHeader(_a) {
|
|
|
2285
2410
|
},
|
|
2286
2411
|
useDefaultMinWidth: useMenuDefaultMinWidth,
|
|
2287
2412
|
children: [
|
|
2288
|
-
/* @__PURE__ */ (0,
|
|
2413
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: (0, import_clsx9.default)(paddingUsingComponentGap), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2289
2414
|
Search,
|
|
2290
2415
|
{
|
|
2291
2416
|
id: id ? `${id}-filter-search` : void 0,
|
|
@@ -2301,7 +2426,7 @@ function DataCellHeader(_a) {
|
|
|
2301
2426
|
value: filter != null ? filter : ""
|
|
2302
2427
|
}
|
|
2303
2428
|
) }),
|
|
2304
|
-
/* @__PURE__ */ (0,
|
|
2429
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2305
2430
|
MenuOption,
|
|
2306
2431
|
{
|
|
2307
2432
|
id: id ? `${id}-filter-contains` : void 0,
|
|
@@ -2311,7 +2436,7 @@ function DataCellHeader(_a) {
|
|
|
2311
2436
|
children: "Contains"
|
|
2312
2437
|
}
|
|
2313
2438
|
),
|
|
2314
|
-
/* @__PURE__ */ (0,
|
|
2439
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2315
2440
|
MenuOption,
|
|
2316
2441
|
{
|
|
2317
2442
|
id: id ? `${id}-filter-startswith` : void 0,
|
|
@@ -2321,7 +2446,7 @@ function DataCellHeader(_a) {
|
|
|
2321
2446
|
children: "Starts with"
|
|
2322
2447
|
}
|
|
2323
2448
|
),
|
|
2324
|
-
/* @__PURE__ */ (0,
|
|
2449
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2325
2450
|
MenuOption,
|
|
2326
2451
|
{
|
|
2327
2452
|
id: id ? `${id}-filter-endswith` : void 0,
|
|
@@ -2338,7 +2463,7 @@ function DataCellHeader(_a) {
|
|
|
2338
2463
|
children: "Filter"
|
|
2339
2464
|
})
|
|
2340
2465
|
),
|
|
2341
|
-
!predeterminedPinned.current && header.column.getCanPin() && /* @__PURE__ */ (0,
|
|
2466
|
+
!predeterminedPinned.current && header.column.getCanPin() && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2342
2467
|
MenuOption,
|
|
2343
2468
|
__spreadProps(__spreadValues({
|
|
2344
2469
|
onClick: () => {
|
|
@@ -2347,7 +2472,7 @@ function DataCellHeader(_a) {
|
|
|
2347
2472
|
}, subMenuListeners), {
|
|
2348
2473
|
subMenu: (_d) => {
|
|
2349
2474
|
var _e = _d, { menuId, subMenuLevel } = _e, props2 = __objRest(_e, ["menuId", "subMenuLevel"]);
|
|
2350
|
-
return /* @__PURE__ */ (0,
|
|
2475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
2351
2476
|
Menu,
|
|
2352
2477
|
__spreadProps(__spreadValues({}, props2), {
|
|
2353
2478
|
show: isMenuActive(menuId, subMenuLevel),
|
|
@@ -2355,7 +2480,7 @@ function DataCellHeader(_a) {
|
|
|
2355
2480
|
registerSubMenu(menuId, el);
|
|
2356
2481
|
},
|
|
2357
2482
|
children: [
|
|
2358
|
-
/* @__PURE__ */ (0,
|
|
2483
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2359
2484
|
MenuOption,
|
|
2360
2485
|
{
|
|
2361
2486
|
selected: header.column.getIsPinned() === "left",
|
|
@@ -2366,11 +2491,11 @@ function DataCellHeader(_a) {
|
|
|
2366
2491
|
header.column.pin("left");
|
|
2367
2492
|
}
|
|
2368
2493
|
},
|
|
2369
|
-
after: header.column.getIsPinned() === "left" && /* @__PURE__ */ (0,
|
|
2494
|
+
after: header.column.getIsPinned() === "left" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }),
|
|
2370
2495
|
children: "Left"
|
|
2371
2496
|
}
|
|
2372
2497
|
),
|
|
2373
|
-
/* @__PURE__ */ (0,
|
|
2498
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2374
2499
|
MenuOption,
|
|
2375
2500
|
{
|
|
2376
2501
|
selected: header.column.getIsPinned() === "right",
|
|
@@ -2381,7 +2506,7 @@ function DataCellHeader(_a) {
|
|
|
2381
2506
|
header.column.pin("right");
|
|
2382
2507
|
}
|
|
2383
2508
|
},
|
|
2384
|
-
after: header.column.getIsPinned() === "right" && /* @__PURE__ */ (0,
|
|
2509
|
+
after: header.column.getIsPinned() === "right" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }),
|
|
2385
2510
|
children: "Right"
|
|
2386
2511
|
}
|
|
2387
2512
|
)
|
|
@@ -2399,11 +2524,11 @@ function DataCellHeader(_a) {
|
|
|
2399
2524
|
})
|
|
2400
2525
|
);
|
|
2401
2526
|
function menuOptionIcon(value) {
|
|
2402
|
-
return /* @__PURE__ */ (0,
|
|
2527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2403
2528
|
Icon,
|
|
2404
2529
|
{
|
|
2405
2530
|
name: "check",
|
|
2406
|
-
className: (0,
|
|
2531
|
+
className: (0, import_clsx9.default)(
|
|
2407
2532
|
header.column.columnDef.filterFn !== value && "text-transparent"
|
|
2408
2533
|
)
|
|
2409
2534
|
}
|
|
@@ -2448,7 +2573,7 @@ function DraggableCellHeader(_a) {
|
|
|
2448
2573
|
"--color-icon-on-action-primary-normal": "var(--color-action-000)",
|
|
2449
2574
|
userSelect: "none"
|
|
2450
2575
|
};
|
|
2451
|
-
return /* @__PURE__ */ (0,
|
|
2576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
2452
2577
|
DataCellHeader,
|
|
2453
2578
|
__spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
2454
2579
|
header,
|
|
@@ -2480,7 +2605,7 @@ function DragAlongCell(_a) {
|
|
|
2480
2605
|
minWidth: cell.column.getSize(),
|
|
2481
2606
|
zIndex: isDragging ? 1 : 0
|
|
2482
2607
|
};
|
|
2483
|
-
return /* @__PURE__ */ (0,
|
|
2608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DataGridCell, __spreadProps(__spreadValues({ style, ref: setNodeRef }, props), { children }));
|
|
2484
2609
|
}
|
|
2485
2610
|
DragAlongCell.displayName = "DragAlongCell";
|
|
2486
2611
|
|
|
@@ -2491,24 +2616,24 @@ var import_core = require("@dnd-kit/core");
|
|
|
2491
2616
|
var import_sortable2 = require("@dnd-kit/sortable");
|
|
2492
2617
|
var import_modifiers = require("@dnd-kit/modifiers");
|
|
2493
2618
|
var import_react_virtual2 = require("@tanstack/react-virtual");
|
|
2494
|
-
var
|
|
2619
|
+
var import_clsx14 = __toESM(require("clsx"), 1);
|
|
2495
2620
|
|
|
2496
2621
|
// src/components/DataGrid/PinnedColumns.tsx
|
|
2497
2622
|
var import_react_table2 = require("@tanstack/react-table");
|
|
2498
|
-
var
|
|
2623
|
+
var import_clsx13 = __toESM(require("clsx"), 1);
|
|
2499
2624
|
|
|
2500
2625
|
// src/components/DataGrid/utils.tsx
|
|
2501
|
-
var
|
|
2502
|
-
var
|
|
2626
|
+
var import_clsx10 = __toESM(require("clsx"), 1);
|
|
2627
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
2503
2628
|
function getSortIcon(sort, nextSort = false) {
|
|
2504
|
-
const iconClassName = (0,
|
|
2629
|
+
const iconClassName = (0, import_clsx10.default)(
|
|
2505
2630
|
"text-icon-on-action-primary-normal",
|
|
2506
2631
|
nextSort && "hidden group-hover:block"
|
|
2507
2632
|
);
|
|
2508
2633
|
if (sort === "asc")
|
|
2509
|
-
return /* @__PURE__ */ (0,
|
|
2634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_upward" });
|
|
2510
2635
|
if (sort === "desc")
|
|
2511
|
-
return /* @__PURE__ */ (0,
|
|
2636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_downward" });
|
|
2512
2637
|
return null;
|
|
2513
2638
|
}
|
|
2514
2639
|
|
|
@@ -2517,13 +2642,13 @@ var import_react15 = __toESM(require("react"), 1);
|
|
|
2517
2642
|
|
|
2518
2643
|
// src/components/DataGrid/TableBody/index.tsx
|
|
2519
2644
|
var import_react_virtual = require("@tanstack/react-virtual");
|
|
2520
|
-
var
|
|
2645
|
+
var import_clsx12 = __toESM(require("clsx"), 1);
|
|
2521
2646
|
|
|
2522
2647
|
// src/components/DataGrid/TableBody/TableBodyRow.tsx
|
|
2523
|
-
var
|
|
2648
|
+
var import_clsx11 = __toESM(require("clsx"), 1);
|
|
2524
2649
|
var import_react_table = require("@tanstack/react-table");
|
|
2525
2650
|
var import_react12 = __toESM(require("react"), 1);
|
|
2526
|
-
var
|
|
2651
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2527
2652
|
var valueFormatters = {
|
|
2528
2653
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
2529
2654
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -2556,10 +2681,10 @@ function TableBodyRow({
|
|
|
2556
2681
|
const columns = locked ? visibleCells : virtualColumns;
|
|
2557
2682
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
2558
2683
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
2559
|
-
return /* @__PURE__ */ (0,
|
|
2684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
2560
2685
|
"tr",
|
|
2561
2686
|
{
|
|
2562
|
-
className: (0,
|
|
2687
|
+
className: (0, import_clsx11.default)(
|
|
2563
2688
|
"min-h-10",
|
|
2564
2689
|
"transition-colors hover:bg-background-action-secondary-hover",
|
|
2565
2690
|
row.getIsSelected() && "!bg-background-action-secondary-hover",
|
|
@@ -2577,7 +2702,7 @@ function TableBodyRow({
|
|
|
2577
2702
|
children: [
|
|
2578
2703
|
!locked && virtualPaddingLeft ? (
|
|
2579
2704
|
// fake empty column to the left for virtualization scroll padding
|
|
2580
|
-
/* @__PURE__ */ (0,
|
|
2705
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
2581
2706
|
) : null,
|
|
2582
2707
|
columns.map((column) => {
|
|
2583
2708
|
var _a2, _b, _c, _d;
|
|
@@ -2588,17 +2713,17 @@ function TableBodyRow({
|
|
|
2588
2713
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
2589
2714
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
2590
2715
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
2591
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
2716
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react12.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2592
2717
|
CellElement,
|
|
2593
2718
|
{
|
|
2594
2719
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
2595
2720
|
testid: testid ? `${testid}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
2596
2721
|
cell,
|
|
2597
|
-
className: (0,
|
|
2722
|
+
className: (0, import_clsx11.default)({
|
|
2598
2723
|
"justify-start": cellAlignment === "left",
|
|
2599
2724
|
"justify-end": cellAlignment === "right"
|
|
2600
2725
|
}),
|
|
2601
|
-
children: /* @__PURE__ */ (0,
|
|
2726
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2602
2727
|
Tooltip,
|
|
2603
2728
|
{
|
|
2604
2729
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -2606,7 +2731,7 @@ function TableBodyRow({
|
|
|
2606
2731
|
showOnTruncation: true,
|
|
2607
2732
|
message: cellValue,
|
|
2608
2733
|
position: "bottom",
|
|
2609
|
-
children: /* @__PURE__ */ (0,
|
|
2734
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
2610
2735
|
}
|
|
2611
2736
|
)
|
|
2612
2737
|
},
|
|
@@ -2615,7 +2740,7 @@ function TableBodyRow({
|
|
|
2615
2740
|
}),
|
|
2616
2741
|
!locked && virtualPaddingRight ? (
|
|
2617
2742
|
// fake empty column to the right for virtualization scroll padding
|
|
2618
|
-
/* @__PURE__ */ (0,
|
|
2743
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
2619
2744
|
) : null
|
|
2620
2745
|
]
|
|
2621
2746
|
},
|
|
@@ -2624,7 +2749,7 @@ function TableBodyRow({
|
|
|
2624
2749
|
}
|
|
2625
2750
|
|
|
2626
2751
|
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
2627
|
-
var
|
|
2752
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
2628
2753
|
function LoadingCell({
|
|
2629
2754
|
id,
|
|
2630
2755
|
testid,
|
|
@@ -2632,16 +2757,16 @@ function LoadingCell({
|
|
|
2632
2757
|
}) {
|
|
2633
2758
|
const key = `loading-${column.id}`;
|
|
2634
2759
|
if (column.cell === "checkbox") {
|
|
2635
|
-
return /* @__PURE__ */ (0,
|
|
2760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
|
|
2636
2761
|
}
|
|
2637
2762
|
if (column.cell === "input") {
|
|
2638
|
-
return /* @__PURE__ */ (0,
|
|
2763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2639
2764
|
DataGridCell,
|
|
2640
2765
|
{
|
|
2641
2766
|
id: id ? `${id}-${key}` : void 0,
|
|
2642
2767
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
2643
2768
|
component: "input",
|
|
2644
|
-
children: /* @__PURE__ */ (0,
|
|
2769
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2645
2770
|
Input,
|
|
2646
2771
|
{
|
|
2647
2772
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -2655,11 +2780,11 @@ function LoadingCell({
|
|
|
2655
2780
|
key
|
|
2656
2781
|
);
|
|
2657
2782
|
}
|
|
2658
|
-
return /* @__PURE__ */ (0,
|
|
2783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
2659
2784
|
}
|
|
2660
2785
|
|
|
2661
2786
|
// src/components/DataGrid/TableBody/index.tsx
|
|
2662
|
-
var
|
|
2787
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
2663
2788
|
function TableBody({
|
|
2664
2789
|
id,
|
|
2665
2790
|
testid,
|
|
@@ -2693,10 +2818,10 @@ function TableBody({
|
|
|
2693
2818
|
} else {
|
|
2694
2819
|
headerGroups = table.getCenterHeaderGroups();
|
|
2695
2820
|
}
|
|
2696
|
-
return /* @__PURE__ */ (0,
|
|
2821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
2697
2822
|
"tbody",
|
|
2698
2823
|
{
|
|
2699
|
-
className: (0,
|
|
2824
|
+
className: (0, import_clsx12.default)(locked ? "shadow-16" : ""),
|
|
2700
2825
|
style: {
|
|
2701
2826
|
display: "grid",
|
|
2702
2827
|
height: `${showFilterRow ? rowVirtualizer.getTotalSize() + 40 : rowVirtualizer.getTotalSize()}px`,
|
|
@@ -2705,7 +2830,7 @@ function TableBody({
|
|
|
2705
2830
|
// needed for absolute positioning of rows
|
|
2706
2831
|
},
|
|
2707
2832
|
children: [
|
|
2708
|
-
showFilterRow && /* @__PURE__ */ (0,
|
|
2833
|
+
showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2709
2834
|
"tr",
|
|
2710
2835
|
{
|
|
2711
2836
|
style: {
|
|
@@ -2721,7 +2846,7 @@ function TableBody({
|
|
|
2721
2846
|
children: headerGroups.flatMap(
|
|
2722
2847
|
(x) => x.headers.map((header) => {
|
|
2723
2848
|
var _a, _b, _c, _d, _e;
|
|
2724
|
-
return /* @__PURE__ */ (0,
|
|
2849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2725
2850
|
CellElement,
|
|
2726
2851
|
{
|
|
2727
2852
|
id: id ? `${id}-filter-cell-${header.id}` : void 0,
|
|
@@ -2732,7 +2857,7 @@ function TableBody({
|
|
|
2732
2857
|
children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
|
|
2733
2858
|
header,
|
|
2734
2859
|
table
|
|
2735
|
-
})) != null ? _e : /* @__PURE__ */ (0,
|
|
2860
|
+
})) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2736
2861
|
Search,
|
|
2737
2862
|
{
|
|
2738
2863
|
id: id ? `${id}-filter-search-${header.id}` : void 0,
|
|
@@ -2753,7 +2878,7 @@ function TableBody({
|
|
|
2753
2878
|
),
|
|
2754
2879
|
virtualRows.map((virtualRow) => {
|
|
2755
2880
|
const row = rows[virtualRow.index];
|
|
2756
|
-
return /* @__PURE__ */ (0,
|
|
2881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2757
2882
|
TableBodyRow,
|
|
2758
2883
|
{
|
|
2759
2884
|
id,
|
|
@@ -2772,7 +2897,7 @@ function TableBody({
|
|
|
2772
2897
|
row.id
|
|
2773
2898
|
);
|
|
2774
2899
|
}),
|
|
2775
|
-
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0,
|
|
2900
|
+
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2776
2901
|
"tr",
|
|
2777
2902
|
{
|
|
2778
2903
|
style: {
|
|
@@ -2782,7 +2907,7 @@ function TableBody({
|
|
|
2782
2907
|
transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
|
|
2783
2908
|
},
|
|
2784
2909
|
className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
2785
|
-
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0,
|
|
2910
|
+
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2786
2911
|
LoadingCell,
|
|
2787
2912
|
{
|
|
2788
2913
|
id,
|
|
@@ -2803,7 +2928,7 @@ var import_react14 = require("react");
|
|
|
2803
2928
|
|
|
2804
2929
|
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
2805
2930
|
var import_react13 = require("react");
|
|
2806
|
-
var
|
|
2931
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
2807
2932
|
function ColumnSelectorMenuOption({
|
|
2808
2933
|
id,
|
|
2809
2934
|
testid,
|
|
@@ -2812,7 +2937,7 @@ function ColumnSelectorMenuOption({
|
|
|
2812
2937
|
}) {
|
|
2813
2938
|
const [isVisible, setIsVisible] = (0, import_react13.useState)(column.getIsVisible());
|
|
2814
2939
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
2815
|
-
return /* @__PURE__ */ (0,
|
|
2940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2816
2941
|
Checkbox,
|
|
2817
2942
|
{
|
|
2818
2943
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -2828,7 +2953,7 @@ function ColumnSelectorMenuOption({
|
|
|
2828
2953
|
}
|
|
2829
2954
|
|
|
2830
2955
|
// src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
|
|
2831
|
-
var
|
|
2956
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2832
2957
|
function ColumnSelectorHeaderCell({
|
|
2833
2958
|
id,
|
|
2834
2959
|
testid,
|
|
@@ -2838,7 +2963,7 @@ function ColumnSelectorHeaderCell({
|
|
|
2838
2963
|
}) {
|
|
2839
2964
|
const ref = (0, import_react14.useRef)(null);
|
|
2840
2965
|
const [show, setShow] = (0, import_react14.useState)(false);
|
|
2841
|
-
return /* @__PURE__ */ (0,
|
|
2966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2842
2967
|
DataGridCell,
|
|
2843
2968
|
{
|
|
2844
2969
|
id,
|
|
@@ -2848,7 +2973,7 @@ function ColumnSelectorHeaderCell({
|
|
|
2848
2973
|
color: "text-secondary-normal",
|
|
2849
2974
|
ref,
|
|
2850
2975
|
children: [
|
|
2851
|
-
/* @__PURE__ */ (0,
|
|
2976
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2852
2977
|
Button,
|
|
2853
2978
|
{
|
|
2854
2979
|
id: id ? `${id}-button` : void 0,
|
|
@@ -2856,10 +2981,10 @@ function ColumnSelectorHeaderCell({
|
|
|
2856
2981
|
onClick: () => setShow((prev) => !prev),
|
|
2857
2982
|
variant: "navigation",
|
|
2858
2983
|
iconOnly: true,
|
|
2859
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
2984
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "tune" })
|
|
2860
2985
|
}
|
|
2861
2986
|
),
|
|
2862
|
-
/* @__PURE__ */ (0,
|
|
2987
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2863
2988
|
Menu,
|
|
2864
2989
|
{
|
|
2865
2990
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -2870,7 +2995,7 @@ function ColumnSelectorHeaderCell({
|
|
|
2870
2995
|
setShow,
|
|
2871
2996
|
calculateMinMaxHeight: true,
|
|
2872
2997
|
children: [
|
|
2873
|
-
/* @__PURE__ */ (0,
|
|
2998
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2874
2999
|
Button,
|
|
2875
3000
|
{
|
|
2876
3001
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -2886,7 +3011,7 @@ function ColumnSelectorHeaderCell({
|
|
|
2886
3011
|
table.getAllColumns().filter((x) => {
|
|
2887
3012
|
var _a;
|
|
2888
3013
|
return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
2889
|
-
}).map((column) => /* @__PURE__ */ (0,
|
|
3014
|
+
}).map((column) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2890
3015
|
ColumnSelectorMenuOption,
|
|
2891
3016
|
{
|
|
2892
3017
|
id: id ? `${id}-option-${column.id}` : void 0,
|
|
@@ -2905,7 +3030,7 @@ function ColumnSelectorHeaderCell({
|
|
|
2905
3030
|
}
|
|
2906
3031
|
|
|
2907
3032
|
// src/components/DataGrid/PinnedColumns.tsx
|
|
2908
|
-
var
|
|
3033
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2909
3034
|
function PinnedColumns(_a) {
|
|
2910
3035
|
var _b = _a, {
|
|
2911
3036
|
id,
|
|
@@ -2937,17 +3062,17 @@ function PinnedColumns(_a) {
|
|
|
2937
3062
|
const pinnedTestId = testid ? `${pinDirection}-pinned-${testid}` : void 0;
|
|
2938
3063
|
const hasAnyHeaders = ((_a2 = headerGroups[0]) == null ? void 0 : _a2.headers.length) > 0;
|
|
2939
3064
|
if (!hasAnyHeaders && !enableColumnSelector) return;
|
|
2940
|
-
return /* @__PURE__ */ (0,
|
|
3065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2941
3066
|
"table",
|
|
2942
3067
|
{
|
|
2943
|
-
className: (0,
|
|
3068
|
+
className: (0, import_clsx13.default)(
|
|
2944
3069
|
"flex flex-col min-h-min sticky z-20",
|
|
2945
3070
|
pinDirection === "left" ? "left-0" : "right-0"
|
|
2946
3071
|
),
|
|
2947
3072
|
"data-testid": pinnedTestId,
|
|
2948
3073
|
children: [
|
|
2949
|
-
/* @__PURE__ */ (0,
|
|
2950
|
-
return /* @__PURE__ */ (0,
|
|
3074
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
|
|
3075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2951
3076
|
"tr",
|
|
2952
3077
|
{
|
|
2953
3078
|
"data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0,
|
|
@@ -2960,7 +3085,7 @@ function PinnedColumns(_a) {
|
|
|
2960
3085
|
}
|
|
2961
3086
|
if (typeof header.column.columnDef.header === "string") {
|
|
2962
3087
|
const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
|
|
2963
|
-
return /* @__PURE__ */ (0,
|
|
3088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2964
3089
|
DataCellHeader,
|
|
2965
3090
|
{
|
|
2966
3091
|
locked: true,
|
|
@@ -2968,16 +3093,16 @@ function PinnedColumns(_a) {
|
|
|
2968
3093
|
header,
|
|
2969
3094
|
center: centerHeader,
|
|
2970
3095
|
width: customHeaderWidth,
|
|
2971
|
-
className: (0,
|
|
3096
|
+
className: (0, import_clsx13.default)(
|
|
2972
3097
|
header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
|
|
2973
3098
|
"group"
|
|
2974
3099
|
),
|
|
2975
3100
|
children: [
|
|
2976
|
-
/* @__PURE__ */ (0,
|
|
3101
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
2977
3102
|
getSortIcon(header.column.getIsSorted()),
|
|
2978
3103
|
!header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
|
|
2979
|
-
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0,
|
|
2980
|
-
!((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0,
|
|
3104
|
+
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
|
|
3105
|
+
!((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2981
3106
|
"div",
|
|
2982
3107
|
{
|
|
2983
3108
|
onDoubleClick: (e) => {
|
|
@@ -3000,7 +3125,7 @@ function PinnedColumns(_a) {
|
|
|
3000
3125
|
header.id
|
|
3001
3126
|
);
|
|
3002
3127
|
}
|
|
3003
|
-
return /* @__PURE__ */ (0,
|
|
3128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3004
3129
|
Checkbox,
|
|
3005
3130
|
{
|
|
3006
3131
|
checked: allSelectedAcrossPages,
|
|
@@ -3012,7 +3137,7 @@ function PinnedColumns(_a) {
|
|
|
3012
3137
|
header.getContext()
|
|
3013
3138
|
) }, header.id);
|
|
3014
3139
|
}),
|
|
3015
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
3140
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3016
3141
|
ColumnSelectorHeaderCell,
|
|
3017
3142
|
{
|
|
3018
3143
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -3029,7 +3154,7 @@ function PinnedColumns(_a) {
|
|
|
3029
3154
|
headerGroup.id
|
|
3030
3155
|
);
|
|
3031
3156
|
}) }),
|
|
3032
|
-
/* @__PURE__ */ (0,
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3033
3158
|
TableBody,
|
|
3034
3159
|
__spreadProps(__spreadValues({
|
|
3035
3160
|
testid: pinnedTestId
|
|
@@ -3048,7 +3173,7 @@ function PinnedColumns(_a) {
|
|
|
3048
3173
|
var no_results_image_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAMPWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb4JIDSAlhBZAehFshCRAKDEGgoodWVRwLahYwIauiih2QOyInUWx9wURFWVdLNiVNymg677yvck3M3/+OfOfM+fOLQOA+kmuWJyDagCQK8qXxIYEMMYmpzBITwEFkOEPBd5cXp6YFR0dAWAZ7P9e3t0EiKy/5iDT+uf4fy2afEEeDwAkGuI0fh4vF+KDAOBVPLEkHwCijDefmi+WYViBtgQGCPFCGc5Q4CoZTlPgvXKb+Fg2xC0AkFW5XEkGAGpXIM8o4GVADbU+iJ1EfKEIAHUGxL65uZP5EKdCbANtxBDL9JlpP+hk/E0zbUiTy80Ywoq1yAs5UJgnzuFO/z/T8b9Lbo500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AAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQg4J/D/AQUY8n0knD4qAAAAAElFTkSuQmCC";
|
|
3049
3174
|
|
|
3050
3175
|
// src/components/DataGrid/index.tsx
|
|
3051
|
-
var
|
|
3176
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
3052
3177
|
var PAGE_SIZE_OPTIONS = [5, 10, 15, 20, 25, 30, 35];
|
|
3053
3178
|
var NO_RESULTS_HEIGHT = "h-[185px]";
|
|
3054
3179
|
function DataGrid({
|
|
@@ -3297,7 +3422,7 @@ function DataGrid({
|
|
|
3297
3422
|
virtualPaddingRight = columnVirtualizer.getTotalSize() - ((_e = (_d = virtualColumns[virtualColumns.length - 1]) == null ? void 0 : _d.end) != null ? _e : 0);
|
|
3298
3423
|
}
|
|
3299
3424
|
const empty = table.getRowModel().rows.length === 0;
|
|
3300
|
-
return /* @__PURE__ */ (0,
|
|
3425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3301
3426
|
import_core.DndContext,
|
|
3302
3427
|
{
|
|
3303
3428
|
id: dndId,
|
|
@@ -3305,28 +3430,28 @@ function DataGrid({
|
|
|
3305
3430
|
modifiers: [import_modifiers.restrictToHorizontalAxis],
|
|
3306
3431
|
onDragEnd: handleDragEnd,
|
|
3307
3432
|
sensors,
|
|
3308
|
-
children: /* @__PURE__ */ (0,
|
|
3433
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3309
3434
|
import_sortable2.SortableContext,
|
|
3310
3435
|
{
|
|
3311
3436
|
items: columnOrder,
|
|
3312
3437
|
strategy: import_sortable2.horizontalListSortingStrategy,
|
|
3313
|
-
children: /* @__PURE__ */ (0,
|
|
3438
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3314
3439
|
"div",
|
|
3315
3440
|
{
|
|
3316
3441
|
id,
|
|
3317
3442
|
"data-testid": testid,
|
|
3318
3443
|
className: "flex flex-col grow-0 h-fit w-full rounded border border-border-primary-normal overflow-hidden text-text-primary-normal",
|
|
3319
3444
|
children: [
|
|
3320
|
-
/* @__PURE__ */ (0,
|
|
3445
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3321
3446
|
"div",
|
|
3322
3447
|
{
|
|
3323
|
-
className: (0,
|
|
3448
|
+
className: (0, import_clsx14.default)(
|
|
3324
3449
|
"flex overflow-auto scrollbar-thin relative contain-paint will-change-transform",
|
|
3325
3450
|
empty ? "overflow-y-hidden" : "min-h-[120px]"
|
|
3326
3451
|
),
|
|
3327
3452
|
ref: containerRef,
|
|
3328
3453
|
children: [
|
|
3329
|
-
/* @__PURE__ */ (0,
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3330
3455
|
PinnedColumns,
|
|
3331
3456
|
{
|
|
3332
3457
|
testid,
|
|
@@ -3339,8 +3464,8 @@ function DataGrid({
|
|
|
3339
3464
|
showFilterRow
|
|
3340
3465
|
}
|
|
3341
3466
|
),
|
|
3342
|
-
/* @__PURE__ */ (0,
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3467
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("table", { className: "flex-1 flex flex-col min-h-min", children: [
|
|
3468
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("thead", { className: "sticky top-0 z-10 grid", children: table.getCenterHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3344
3469
|
"tr",
|
|
3345
3470
|
{
|
|
3346
3471
|
"data-testid": testid ? `${testid}-header-row-${headerGroup.id}` : void 0,
|
|
@@ -3348,7 +3473,7 @@ function DataGrid({
|
|
|
3348
3473
|
children: [
|
|
3349
3474
|
virtualPaddingLeft ? (
|
|
3350
3475
|
// fake empty column to the left for virtualization scroll padding
|
|
3351
|
-
/* @__PURE__ */ (0,
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3352
3477
|
"th",
|
|
3353
3478
|
{
|
|
3354
3479
|
style: { display: "flex", width: virtualPaddingLeft }
|
|
@@ -3364,7 +3489,7 @@ function DataGrid({
|
|
|
3364
3489
|
if (typeof header.column.columnDef.header === "string") {
|
|
3365
3490
|
const cellValue = (_a2 = table.getRowModel().rows[0]) == null ? void 0 : _a2.getValue(header.column.id);
|
|
3366
3491
|
const cellAlignment = (_c2 = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c2 : typeof cellValue === "number" ? "right" : "left";
|
|
3367
|
-
return /* @__PURE__ */ (0,
|
|
3492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3368
3493
|
DraggableCellHeader,
|
|
3369
3494
|
{
|
|
3370
3495
|
minWidth: `${header.column.getSize()}px`,
|
|
@@ -3373,7 +3498,7 @@ function DataGrid({
|
|
|
3373
3498
|
header,
|
|
3374
3499
|
locked: (_d2 = header.column.columnDef.meta) == null ? void 0 : _d2.locked,
|
|
3375
3500
|
center: centerHeader,
|
|
3376
|
-
className: (0,
|
|
3501
|
+
className: (0, import_clsx14.default)(
|
|
3377
3502
|
header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
|
|
3378
3503
|
"group",
|
|
3379
3504
|
{
|
|
@@ -3383,15 +3508,15 @@ function DataGrid({
|
|
|
3383
3508
|
),
|
|
3384
3509
|
useMenuDefaultMinWidth,
|
|
3385
3510
|
children: [
|
|
3386
|
-
cellAlignment === "left" && /* @__PURE__ */ (0,
|
|
3511
|
+
cellAlignment === "left" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
3387
3512
|
getSortIcon(header.column.getIsSorted()),
|
|
3388
3513
|
!header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
|
|
3389
3514
|
header.column.getNextSortingOrder(),
|
|
3390
3515
|
true
|
|
3391
3516
|
),
|
|
3392
|
-
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0,
|
|
3393
|
-
cellAlignment === "right" && /* @__PURE__ */ (0,
|
|
3394
|
-
/* @__PURE__ */ (0,
|
|
3517
|
+
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
|
|
3518
|
+
cellAlignment === "right" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
3519
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3395
3520
|
"div",
|
|
3396
3521
|
{
|
|
3397
3522
|
onDoubleClick: (e) => {
|
|
@@ -3414,7 +3539,7 @@ function DataGrid({
|
|
|
3414
3539
|
header.id
|
|
3415
3540
|
);
|
|
3416
3541
|
}
|
|
3417
|
-
return /* @__PURE__ */ (0,
|
|
3542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react16.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3418
3543
|
DataGridCell,
|
|
3419
3544
|
{
|
|
3420
3545
|
id: id ? `${id}-header-${header.id}` : void 0,
|
|
@@ -3422,7 +3547,7 @@ function DataGrid({
|
|
|
3422
3547
|
type: "header",
|
|
3423
3548
|
component: "checkbox",
|
|
3424
3549
|
locked: true,
|
|
3425
|
-
children: /* @__PURE__ */ (0,
|
|
3550
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3426
3551
|
Checkbox,
|
|
3427
3552
|
{
|
|
3428
3553
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -3440,7 +3565,7 @@ function DataGrid({
|
|
|
3440
3565
|
}),
|
|
3441
3566
|
virtualPaddingRight ? (
|
|
3442
3567
|
//fake empty column to the right for virtualization scroll padding
|
|
3443
|
-
/* @__PURE__ */ (0,
|
|
3568
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3444
3569
|
"th",
|
|
3445
3570
|
{
|
|
3446
3571
|
style: { display: "flex", width: virtualPaddingRight }
|
|
@@ -3451,7 +3576,7 @@ function DataGrid({
|
|
|
3451
3576
|
},
|
|
3452
3577
|
headerGroup.id
|
|
3453
3578
|
)) }),
|
|
3454
|
-
/* @__PURE__ */ (0,
|
|
3579
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3455
3580
|
TableBody,
|
|
3456
3581
|
{
|
|
3457
3582
|
id,
|
|
@@ -3469,7 +3594,7 @@ function DataGrid({
|
|
|
3469
3594
|
}
|
|
3470
3595
|
)
|
|
3471
3596
|
] }),
|
|
3472
|
-
/* @__PURE__ */ (0,
|
|
3597
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3473
3598
|
PinnedColumns,
|
|
3474
3599
|
{
|
|
3475
3600
|
id,
|
|
@@ -3489,10 +3614,10 @@ function DataGrid({
|
|
|
3489
3614
|
]
|
|
3490
3615
|
}
|
|
3491
3616
|
),
|
|
3492
|
-
empty && /* @__PURE__ */ (0,
|
|
3617
|
+
empty && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3493
3618
|
"div",
|
|
3494
3619
|
{
|
|
3495
|
-
className: (0,
|
|
3620
|
+
className: (0, import_clsx14.default)(
|
|
3496
3621
|
NO_RESULTS_HEIGHT,
|
|
3497
3622
|
"flex flex-col items-center justify-center",
|
|
3498
3623
|
componentGap,
|
|
@@ -3500,7 +3625,7 @@ function DataGrid({
|
|
|
3500
3625
|
),
|
|
3501
3626
|
"data-testid": testid ? `${testid}-no-results` : void 0,
|
|
3502
3627
|
children: [
|
|
3503
|
-
/* @__PURE__ */ (0,
|
|
3628
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3504
3629
|
"img",
|
|
3505
3630
|
{
|
|
3506
3631
|
src: (_g = (_f = no_results_image_default) == null ? void 0 : _f.src) != null ? _g : no_results_image_default,
|
|
@@ -3510,15 +3635,15 @@ function DataGrid({
|
|
|
3510
3635
|
height: 120
|
|
3511
3636
|
}
|
|
3512
3637
|
),
|
|
3513
|
-
/* @__PURE__ */ (0,
|
|
3514
|
-
/* @__PURE__ */ (0,
|
|
3638
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Subheader, { color: "text-secondary-normal", children: "No Results" }),
|
|
3639
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
|
|
3515
3640
|
]
|
|
3516
3641
|
}
|
|
3517
3642
|
),
|
|
3518
|
-
!hideStatusBar && /* @__PURE__ */ (0,
|
|
3519
|
-
pagination && /* @__PURE__ */ (0,
|
|
3520
|
-
/* @__PURE__ */ (0,
|
|
3521
|
-
/* @__PURE__ */ (0,
|
|
3643
|
+
!hideStatusBar && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "p-2 pt-[7px] border-t border-border-primary-normal h-full min-h-[34px]", children: [
|
|
3644
|
+
pagination && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex justify-between items-center", children: [
|
|
3645
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center gap-1 w-min", children: [
|
|
3646
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3522
3647
|
Select,
|
|
3523
3648
|
{
|
|
3524
3649
|
id: id ? `${id}-pagesize-select` : void 0,
|
|
@@ -3529,12 +3654,12 @@ function DataGrid({
|
|
|
3529
3654
|
var _a2;
|
|
3530
3655
|
return (_a2 = pagination.onPageSizeChange) == null ? void 0 : _a2.call(pagination, Number(e.target.value));
|
|
3531
3656
|
},
|
|
3532
|
-
renderMenu: (props) => /* @__PURE__ */ (0,
|
|
3657
|
+
renderMenu: (props) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3533
3658
|
Menu,
|
|
3534
3659
|
__spreadProps(__spreadValues({}, props), {
|
|
3535
3660
|
id: id ? `${id}-pagesize-menu` : void 0,
|
|
3536
3661
|
testid: testid ? `${testid}-pagesize-menu` : void 0,
|
|
3537
|
-
children: PAGE_SIZE_OPTIONS.map((option) => /* @__PURE__ */ (0,
|
|
3662
|
+
children: PAGE_SIZE_OPTIONS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3538
3663
|
MenuOption,
|
|
3539
3664
|
{
|
|
3540
3665
|
id: id ? `${id}-pagesize-option-${option}` : void 0,
|
|
@@ -3551,22 +3676,22 @@ function DataGrid({
|
|
|
3551
3676
|
)
|
|
3552
3677
|
}
|
|
3553
3678
|
),
|
|
3554
|
-
/* @__PURE__ */ (0,
|
|
3679
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Label, { children: "Per Page" })
|
|
3555
3680
|
] }),
|
|
3556
|
-
/* @__PURE__ */ (0,
|
|
3557
|
-
/* @__PURE__ */ (0,
|
|
3681
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3682
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3558
3683
|
Button,
|
|
3559
3684
|
{
|
|
3560
3685
|
id: id ? `${id}-prev-page-button` : void 0,
|
|
3561
3686
|
testid: testid ? `${testid}-prev-page-button` : void 0,
|
|
3562
3687
|
iconOnly: true,
|
|
3563
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
3688
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "chevron_left" }),
|
|
3564
3689
|
onClick: () => pagination.onPageChange(pagination.pageIndex - 1),
|
|
3565
3690
|
variant: "tertiary",
|
|
3566
3691
|
disabled: pagination.pageIndex === 0
|
|
3567
3692
|
}
|
|
3568
3693
|
),
|
|
3569
|
-
/* @__PURE__ */ (0,
|
|
3694
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Paragraph, { children: [
|
|
3570
3695
|
pagination.pageIndex * pagination.pageSize + 1,
|
|
3571
3696
|
" -",
|
|
3572
3697
|
" ",
|
|
@@ -3578,13 +3703,13 @@ function DataGrid({
|
|
|
3578
3703
|
"of ",
|
|
3579
3704
|
pagination.total
|
|
3580
3705
|
] }),
|
|
3581
|
-
/* @__PURE__ */ (0,
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3582
3707
|
Button,
|
|
3583
3708
|
{
|
|
3584
3709
|
id: id ? `${id}-next-page-button` : void 0,
|
|
3585
3710
|
testid: testid ? `${testid}-next-page-button` : void 0,
|
|
3586
3711
|
iconOnly: true,
|
|
3587
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
3712
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "chevron_right" }),
|
|
3588
3713
|
onClick: () => pagination.onPageChange(pagination.pageIndex + 1),
|
|
3589
3714
|
variant: "tertiary",
|
|
3590
3715
|
disabled: (pagination.pageIndex + 1) * pagination.pageSize >= pagination.total
|
|
@@ -3592,7 +3717,7 @@ function DataGrid({
|
|
|
3592
3717
|
)
|
|
3593
3718
|
] })
|
|
3594
3719
|
] }),
|
|
3595
|
-
status && /* @__PURE__ */ (0,
|
|
3720
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3596
3721
|
Paragraph,
|
|
3597
3722
|
{
|
|
3598
3723
|
testid: testid ? `${testid}-status-text` : void 0,
|
|
@@ -3619,8 +3744,8 @@ function adaptTableStateSetter(setter) {
|
|
|
3619
3744
|
|
|
3620
3745
|
// src/components/Select.tsx
|
|
3621
3746
|
var import_react17 = require("react");
|
|
3622
|
-
var
|
|
3623
|
-
var
|
|
3747
|
+
var import_clsx15 = __toESM(require("clsx"), 1);
|
|
3748
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
3624
3749
|
var Select = (_a) => {
|
|
3625
3750
|
var _b = _a, {
|
|
3626
3751
|
id,
|
|
@@ -3664,8 +3789,8 @@ var Select = (_a) => {
|
|
|
3664
3789
|
}
|
|
3665
3790
|
(_a3 = inputRef.current) == null ? void 0 : _a3.focus();
|
|
3666
3791
|
}, [value]);
|
|
3667
|
-
return /* @__PURE__ */ (0,
|
|
3668
|
-
/* @__PURE__ */ (0,
|
|
3792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
3793
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3669
3794
|
InputBase,
|
|
3670
3795
|
__spreadProps(__spreadValues({
|
|
3671
3796
|
id,
|
|
@@ -3673,18 +3798,18 @@ var Select = (_a) => {
|
|
|
3673
3798
|
inputContainerRef,
|
|
3674
3799
|
ref: inputRef,
|
|
3675
3800
|
label,
|
|
3676
|
-
after: !readOnly && /* @__PURE__ */ (0,
|
|
3801
|
+
after: !readOnly && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3677
3802
|
"span",
|
|
3678
3803
|
{
|
|
3679
|
-
className: (0,
|
|
3804
|
+
className: (0, import_clsx15.default)(
|
|
3680
3805
|
props.disabled ? "text-icon-action-primary-disabled" : "text-icon-action-primary-normal",
|
|
3681
3806
|
"contents"
|
|
3682
3807
|
),
|
|
3683
|
-
children: /* @__PURE__ */ (0,
|
|
3808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { name: "keyboard_arrow_down" })
|
|
3684
3809
|
}
|
|
3685
3810
|
),
|
|
3686
3811
|
maxLength: 0,
|
|
3687
|
-
className: (0,
|
|
3812
|
+
className: (0, import_clsx15.default)("!caret-transparent !cursor-default", className),
|
|
3688
3813
|
wrapperClassName,
|
|
3689
3814
|
onKeyDown: (e) => {
|
|
3690
3815
|
const openKeys = ["Enter", "Space", " "];
|
|
@@ -3724,8 +3849,8 @@ var Select = (_a) => {
|
|
|
3724
3849
|
Select.displayName = "Select";
|
|
3725
3850
|
|
|
3726
3851
|
// src/components/Subheader.tsx
|
|
3727
|
-
var
|
|
3728
|
-
var
|
|
3852
|
+
var import_clsx16 = __toESM(require("clsx"), 1);
|
|
3853
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3729
3854
|
var Subheader = (_a) => {
|
|
3730
3855
|
var _b = _a, {
|
|
3731
3856
|
className,
|
|
@@ -3747,12 +3872,12 @@ var Subheader = (_a) => {
|
|
|
3747
3872
|
"testid"
|
|
3748
3873
|
]);
|
|
3749
3874
|
const Element = as;
|
|
3750
|
-
return /* @__PURE__ */ (0,
|
|
3875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3751
3876
|
Element,
|
|
3752
3877
|
__spreadProps(__spreadValues({
|
|
3753
3878
|
id,
|
|
3754
3879
|
"data-testid": testid,
|
|
3755
|
-
className: (0,
|
|
3880
|
+
className: (0, import_clsx16.default)(
|
|
3756
3881
|
typography.subheader,
|
|
3757
3882
|
className,
|
|
3758
3883
|
align === "left" && "text-left",
|
|
@@ -3771,8 +3896,8 @@ var Subheader = (_a) => {
|
|
|
3771
3896
|
Subheader.displayName = "Subheader";
|
|
3772
3897
|
|
|
3773
3898
|
// src/components/Checkbox.tsx
|
|
3774
|
-
var
|
|
3775
|
-
var
|
|
3899
|
+
var import_clsx17 = __toESM(require("clsx"), 1);
|
|
3900
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3776
3901
|
var Checkbox = (_a) => {
|
|
3777
3902
|
var _b = _a, {
|
|
3778
3903
|
label,
|
|
@@ -3798,43 +3923,43 @@ var Checkbox = (_a) => {
|
|
|
3798
3923
|
"testid"
|
|
3799
3924
|
]);
|
|
3800
3925
|
const selected = indeterminate || checked;
|
|
3801
|
-
const normalClassName = (0,
|
|
3926
|
+
const normalClassName = (0, import_clsx17.default)(
|
|
3802
3927
|
!selected && !error && !disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active"
|
|
3803
3928
|
);
|
|
3804
|
-
const normalSelectedClassName = (0,
|
|
3929
|
+
const normalSelectedClassName = (0, import_clsx17.default)(
|
|
3805
3930
|
selected && !error && !disabled && !readOnly && "bg-background-action-primary-normal border-background-action-primary-normal peer-hover:bg-background-action-primary-hover peer-hover:border-background-action-primary-hover peer-active:bg-background-action-primary-active peer-active:border-background-action-primary-active"
|
|
3806
3931
|
);
|
|
3807
|
-
const errorClassName = (0,
|
|
3932
|
+
const errorClassName = (0, import_clsx17.default)(
|
|
3808
3933
|
error && !selected && "bg-background-action-critical-secondary-normal border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active"
|
|
3809
3934
|
);
|
|
3810
|
-
const errorSelectedClassName = (0,
|
|
3935
|
+
const errorSelectedClassName = (0, import_clsx17.default)(
|
|
3811
3936
|
error && selected && "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal peer-hover:bg-background-action-critical-primary-hover peer-hover:border-background-action-critical-primary-hover peer-active:bg-background-action-critical-primary-active peer-active:border-background-action-critical-primary-active"
|
|
3812
3937
|
);
|
|
3813
|
-
const disabledClassName = (0,
|
|
3938
|
+
const disabledClassName = (0, import_clsx17.default)(
|
|
3814
3939
|
disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-disabled peer-checked:bg-icon-on-action-primary-disabled peer-checked:border-icon-on-action-primary-disabled"
|
|
3815
3940
|
);
|
|
3816
|
-
const readOnlyClassName = (0,
|
|
3941
|
+
const readOnlyClassName = (0, import_clsx17.default)(
|
|
3817
3942
|
readOnly && "border-transparent bg-transparent peer-checked:bg-transparent peer-checked:border-transparent"
|
|
3818
3943
|
);
|
|
3819
|
-
const checkColor = (0,
|
|
3944
|
+
const checkColor = (0, import_clsx17.default)(
|
|
3820
3945
|
selected && !disabled && !readOnly && "color-icon-on-action-primary-normal peer-hover:color-icon-on-action-primary-hover peer-active:color-icon-on-action-primary-active",
|
|
3821
3946
|
selected && disabled && "color-background-action-primary-disabled"
|
|
3822
3947
|
);
|
|
3823
|
-
return /* @__PURE__ */ (0,
|
|
3948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
3824
3949
|
"label",
|
|
3825
3950
|
{
|
|
3826
3951
|
id,
|
|
3827
3952
|
"data-testid": testid,
|
|
3828
3953
|
htmlFor: id ? `${id}-input` : void 0,
|
|
3829
|
-
className: (0,
|
|
3954
|
+
className: (0, import_clsx17.default)(
|
|
3830
3955
|
"flex items-center",
|
|
3831
3956
|
componentGap,
|
|
3832
3957
|
(disabled || readOnly && error || readOnly) && "cursor-default",
|
|
3833
3958
|
!(readOnly && error) && !disabled && !readOnly && "cursor-pointer"
|
|
3834
3959
|
),
|
|
3835
3960
|
children: [
|
|
3836
|
-
/* @__PURE__ */ (0,
|
|
3837
|
-
/* @__PURE__ */ (0,
|
|
3961
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative", children: [
|
|
3962
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3838
3963
|
"input",
|
|
3839
3964
|
__spreadValues({
|
|
3840
3965
|
id: id ? `${id}-input` : void 0,
|
|
@@ -3847,10 +3972,10 @@ var Checkbox = (_a) => {
|
|
|
3847
3972
|
"data-indeterminate": indeterminate
|
|
3848
3973
|
}, props)
|
|
3849
3974
|
),
|
|
3850
|
-
error && (readOnly || disabled) ? /* @__PURE__ */ (0,
|
|
3975
|
+
error && (readOnly || disabled) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: (0, import_clsx17.default)("size-6", "flex items-center justify-center"), children: selected ? indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "question_mark" }) }) : readOnly ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-success-400 contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "check" }) }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "close" }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3851
3976
|
"div",
|
|
3852
3977
|
{
|
|
3853
|
-
className: (0,
|
|
3978
|
+
className: (0, import_clsx17.default)(
|
|
3854
3979
|
"size-6 border rounded-base",
|
|
3855
3980
|
"flex items-center justify-center",
|
|
3856
3981
|
baseTransition,
|
|
@@ -3862,18 +3987,18 @@ var Checkbox = (_a) => {
|
|
|
3862
3987
|
readOnlyClassName,
|
|
3863
3988
|
checkColor
|
|
3864
3989
|
),
|
|
3865
|
-
children: selected ? indeterminate ? readOnly ? /* @__PURE__ */ (0,
|
|
3990
|
+
children: selected ? indeterminate ? readOnly ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "question_mark" }) }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "remove", className: "pointer-events-none" }) }) : readOnly ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-success-400 contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "check" }) }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "close" }) })
|
|
3866
3991
|
}
|
|
3867
3992
|
)
|
|
3868
3993
|
] }),
|
|
3869
|
-
label && /* @__PURE__ */ (0,
|
|
3994
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3870
3995
|
Paragraph,
|
|
3871
3996
|
{
|
|
3872
3997
|
id: id ? `${id}-label` : void 0,
|
|
3873
3998
|
testid: testid ? `${testid}-label` : void 0,
|
|
3874
3999
|
as: "span",
|
|
3875
4000
|
padded: true,
|
|
3876
|
-
className: (0,
|
|
4001
|
+
className: (0, import_clsx17.default)(
|
|
3877
4002
|
"text-nowrap",
|
|
3878
4003
|
disabled && !error && "!text-text-primary-disabled",
|
|
3879
4004
|
error && !disabled && !readOnly && "!text-text-primary-error",
|
|
@@ -3895,8 +4020,8 @@ var Checkbox = (_a) => {
|
|
|
3895
4020
|
Checkbox.displayName = "Checkbox";
|
|
3896
4021
|
|
|
3897
4022
|
// src/components/Button.tsx
|
|
3898
|
-
var
|
|
3899
|
-
var
|
|
4023
|
+
var import_clsx18 = __toESM(require("clsx"), 1);
|
|
4024
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3900
4025
|
var Button = (_a) => {
|
|
3901
4026
|
var _b = _a, {
|
|
3902
4027
|
variant = "primary",
|
|
@@ -3929,7 +4054,7 @@ var Button = (_a) => {
|
|
|
3929
4054
|
"id",
|
|
3930
4055
|
"testid"
|
|
3931
4056
|
]);
|
|
3932
|
-
const primaryVariantStyles = variant === "primary" && (0,
|
|
4057
|
+
const primaryVariantStyles = variant === "primary" && (0, import_clsx18.default)(
|
|
3933
4058
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
3934
4059
|
"bg-background-action-primary-normal border-background-action-primary-normal",
|
|
3935
4060
|
"hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
|
|
@@ -3937,7 +4062,7 @@ var Button = (_a) => {
|
|
|
3937
4062
|
"active:bg-background-action-primary-active active:border-background-action-primary-active",
|
|
3938
4063
|
"disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
3939
4064
|
);
|
|
3940
|
-
const secondaryVariantStyles = variant === "secondary" && (0,
|
|
4065
|
+
const secondaryVariantStyles = variant === "secondary" && (0, import_clsx18.default)(
|
|
3941
4066
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
3942
4067
|
"bg-background-action-secondary-normal border-border-action-normal",
|
|
3943
4068
|
"hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
|
|
@@ -3945,7 +4070,7 @@ var Button = (_a) => {
|
|
|
3945
4070
|
"active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
|
|
3946
4071
|
"disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
|
|
3947
4072
|
);
|
|
3948
|
-
const tertiaryVariantStyles = variant === "tertiary" && (0,
|
|
4073
|
+
const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx18.default)(
|
|
3949
4074
|
"bg-transparent border-transparent",
|
|
3950
4075
|
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
3951
4076
|
"bg-transparent border-transparent",
|
|
@@ -3954,7 +4079,7 @@ var Button = (_a) => {
|
|
|
3954
4079
|
"active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
|
|
3955
4080
|
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
3956
4081
|
);
|
|
3957
|
-
const primaryCriticalVariantStyles = variant === "primary-critical" && (0,
|
|
4082
|
+
const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx18.default)(
|
|
3958
4083
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
3959
4084
|
"bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
|
|
3960
4085
|
"hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
|
|
@@ -3962,7 +4087,7 @@ var Button = (_a) => {
|
|
|
3962
4087
|
"active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
|
|
3963
4088
|
"disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
3964
4089
|
);
|
|
3965
|
-
const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0,
|
|
4090
|
+
const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx18.default)(
|
|
3966
4091
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
3967
4092
|
"bg-background-action-critical-secondary-normal border-border-action-critical-normal",
|
|
3968
4093
|
"hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
|
|
@@ -3970,7 +4095,7 @@ var Button = (_a) => {
|
|
|
3970
4095
|
"active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
|
|
3971
4096
|
"disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
|
|
3972
4097
|
);
|
|
3973
|
-
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0,
|
|
4098
|
+
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx18.default)(
|
|
3974
4099
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
3975
4100
|
"bg-transparent border-transparent text-text-action-critical-normal",
|
|
3976
4101
|
"hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
|
|
@@ -3978,7 +4103,7 @@ var Button = (_a) => {
|
|
|
3978
4103
|
"active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
|
|
3979
4104
|
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
|
|
3980
4105
|
);
|
|
3981
|
-
const navigationVarianStyles = variant === "navigation" && (0,
|
|
4106
|
+
const navigationVarianStyles = variant === "navigation" && (0, import_clsx18.default)(
|
|
3982
4107
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
3983
4108
|
"bg-transparent",
|
|
3984
4109
|
"hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
|
|
@@ -3988,8 +4113,8 @@ var Button = (_a) => {
|
|
|
3988
4113
|
"flex-col",
|
|
3989
4114
|
paddingUsingComponentGap
|
|
3990
4115
|
);
|
|
3991
|
-
const notNavigationVariantStyles = variant !== "navigation" && (0,
|
|
3992
|
-
const buttonClasses = (0,
|
|
4116
|
+
const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx18.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
|
|
4117
|
+
const buttonClasses = (0, import_clsx18.default)(
|
|
3993
4118
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
3994
4119
|
block ? "w-full" : "w-fit",
|
|
3995
4120
|
baseTransition,
|
|
@@ -4004,14 +4129,14 @@ var Button = (_a) => {
|
|
|
4004
4129
|
notNavigationVariantStyles,
|
|
4005
4130
|
className
|
|
4006
4131
|
);
|
|
4007
|
-
const labelClasses = (0,
|
|
4132
|
+
const labelClasses = (0, import_clsx18.default)(
|
|
4008
4133
|
"min-h-6 flex items-center justify-center",
|
|
4009
4134
|
classNameLabel,
|
|
4010
4135
|
componentPaddingXUsingComponentGap,
|
|
4011
4136
|
typography.buttonLabel
|
|
4012
4137
|
);
|
|
4013
4138
|
const Element = href && !as ? "a" : as;
|
|
4014
|
-
return /* @__PURE__ */ (0,
|
|
4139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
4015
4140
|
Element,
|
|
4016
4141
|
__spreadProps(__spreadValues({
|
|
4017
4142
|
id,
|
|
@@ -4025,7 +4150,7 @@ var Button = (_a) => {
|
|
|
4025
4150
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
4026
4151
|
children: [
|
|
4027
4152
|
leftIcon && leftIcon,
|
|
4028
|
-
!iconOnly && children && /* @__PURE__ */ (0,
|
|
4153
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
4029
4154
|
rightIcon && rightIcon
|
|
4030
4155
|
]
|
|
4031
4156
|
})
|
|
@@ -4034,10 +4159,10 @@ var Button = (_a) => {
|
|
|
4034
4159
|
Button.displayName = "Button";
|
|
4035
4160
|
|
|
4036
4161
|
// src/components/Tooltip.tsx
|
|
4037
|
-
var
|
|
4162
|
+
var import_clsx19 = __toESM(require("clsx"), 1);
|
|
4038
4163
|
var import_react18 = require("react");
|
|
4039
4164
|
var import_react_dom2 = require("react-dom");
|
|
4040
|
-
var
|
|
4165
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
4041
4166
|
var Tooltip = ({
|
|
4042
4167
|
id,
|
|
4043
4168
|
testid,
|
|
@@ -4104,7 +4229,7 @@ var Tooltip = ({
|
|
|
4104
4229
|
return () => window.removeEventListener("resize", updatePosition);
|
|
4105
4230
|
}
|
|
4106
4231
|
}, [isVisible]);
|
|
4107
|
-
return /* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4108
4233
|
"div",
|
|
4109
4234
|
{
|
|
4110
4235
|
id,
|
|
@@ -4116,7 +4241,7 @@ var Tooltip = ({
|
|
|
4116
4241
|
children: [
|
|
4117
4242
|
children,
|
|
4118
4243
|
!keepHidden && isVisible && typeof document !== "undefined" && (0, import_react_dom2.createPortal)(
|
|
4119
|
-
/* @__PURE__ */ (0,
|
|
4244
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4120
4245
|
"div",
|
|
4121
4246
|
{
|
|
4122
4247
|
id: id ? `${id}-message` : void 0,
|
|
@@ -4128,7 +4253,7 @@ var Tooltip = ({
|
|
|
4128
4253
|
left: `${tooltipPosition.left}px`,
|
|
4129
4254
|
zIndex: 9999
|
|
4130
4255
|
},
|
|
4131
|
-
className: (0,
|
|
4256
|
+
className: (0, import_clsx19.default)(
|
|
4132
4257
|
typography.caption,
|
|
4133
4258
|
"bg-neutral-500 text-neutral-100 rounded whitespace-nowrap shadow-2 pointer-events-none transition-opacity duration-100 ease-in-out",
|
|
4134
4259
|
componentPadding,
|
|
@@ -4160,10 +4285,10 @@ var import_react20 = require("react");
|
|
|
4160
4285
|
var import_react_dom3 = require("react-dom");
|
|
4161
4286
|
|
|
4162
4287
|
// src/components/CalendarRange.tsx
|
|
4163
|
-
var
|
|
4288
|
+
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
4164
4289
|
var import_react19 = __toESM(require("react"), 1);
|
|
4165
4290
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
4166
|
-
var
|
|
4291
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
4167
4292
|
function DateCell(_a) {
|
|
4168
4293
|
var _b = _a, {
|
|
4169
4294
|
date,
|
|
@@ -4198,12 +4323,12 @@ function DateCell(_a) {
|
|
|
4198
4323
|
"id",
|
|
4199
4324
|
"testid"
|
|
4200
4325
|
]);
|
|
4201
|
-
return /* @__PURE__ */ (0,
|
|
4326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4202
4327
|
"span",
|
|
4203
4328
|
__spreadProps(__spreadValues({}, props), {
|
|
4204
4329
|
id,
|
|
4205
4330
|
"data-testid": testid,
|
|
4206
|
-
className: (0,
|
|
4331
|
+
className: (0, import_clsx20.default)(
|
|
4207
4332
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4208
4333
|
typography.caption,
|
|
4209
4334
|
cellPadding,
|
|
@@ -4354,12 +4479,12 @@ function CalendarRange({
|
|
|
4354
4479
|
}
|
|
4355
4480
|
return false;
|
|
4356
4481
|
}
|
|
4357
|
-
return /* @__PURE__ */ (0,
|
|
4482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4358
4483
|
"div",
|
|
4359
4484
|
{
|
|
4360
4485
|
id,
|
|
4361
4486
|
"data-testid": testid,
|
|
4362
|
-
className: (0,
|
|
4487
|
+
className: (0, import_clsx20.default)(
|
|
4363
4488
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
4364
4489
|
layoutPaddding,
|
|
4365
4490
|
layoutGap,
|
|
@@ -4367,15 +4492,15 @@ function CalendarRange({
|
|
|
4367
4492
|
// baseTransition,
|
|
4368
4493
|
"overflow-hidden"
|
|
4369
4494
|
),
|
|
4370
|
-
children: /* @__PURE__ */ (0,
|
|
4495
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4371
4496
|
"div",
|
|
4372
4497
|
{
|
|
4373
|
-
className: (0,
|
|
4498
|
+
className: (0, import_clsx20.default)(
|
|
4374
4499
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
4375
4500
|
layoutGap
|
|
4376
4501
|
),
|
|
4377
4502
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
4378
|
-
return /* @__PURE__ */ (0,
|
|
4503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4379
4504
|
CalendarPane,
|
|
4380
4505
|
{
|
|
4381
4506
|
getMonthData,
|
|
@@ -4440,38 +4565,38 @@ function CalendarPane({
|
|
|
4440
4565
|
const month = getMonthData(offset);
|
|
4441
4566
|
const totalCells = 42;
|
|
4442
4567
|
const emptyCells = month.firstDayOffset;
|
|
4443
|
-
return /* @__PURE__ */ (0,
|
|
4444
|
-
/* @__PURE__ */ (0,
|
|
4568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react19.default.Fragment, { children: [
|
|
4569
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
4445
4570
|
"div",
|
|
4446
4571
|
{
|
|
4447
|
-
className: (0,
|
|
4572
|
+
className: (0, import_clsx20.default)("flex flex-col"),
|
|
4448
4573
|
children: [
|
|
4449
|
-
/* @__PURE__ */ (0,
|
|
4574
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
4450
4575
|
"div",
|
|
4451
4576
|
{
|
|
4452
|
-
className: (0,
|
|
4577
|
+
className: (0, import_clsx20.default)(
|
|
4453
4578
|
"flex flex-row items-center justify-between",
|
|
4454
4579
|
typography.label,
|
|
4455
4580
|
"text-text-action-primary-normal"
|
|
4456
4581
|
),
|
|
4457
4582
|
children: [
|
|
4458
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
4583
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4459
4584
|
"button",
|
|
4460
4585
|
{
|
|
4461
4586
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
4462
4587
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
4463
4588
|
type: "button",
|
|
4464
|
-
className: (0,
|
|
4589
|
+
className: (0, import_clsx20.default)(
|
|
4465
4590
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
4466
4591
|
componentPadding
|
|
4467
4592
|
),
|
|
4468
4593
|
"aria-label": "Previous month",
|
|
4469
4594
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
4470
|
-
children: /* @__PURE__ */ (0,
|
|
4595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
4471
4596
|
}
|
|
4472
|
-
) : /* @__PURE__ */ (0,
|
|
4473
|
-
/* @__PURE__ */ (0,
|
|
4474
|
-
/* @__PURE__ */ (0,
|
|
4597
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: (0, import_clsx20.default)(componentPadding, "mr-1") }),
|
|
4598
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
4599
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4475
4600
|
"button",
|
|
4476
4601
|
{
|
|
4477
4602
|
ref: (el) => {
|
|
@@ -4486,13 +4611,13 @@ function CalendarPane({
|
|
|
4486
4611
|
children: month.name
|
|
4487
4612
|
}
|
|
4488
4613
|
),
|
|
4489
|
-
/* @__PURE__ */ (0,
|
|
4614
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4490
4615
|
Menu,
|
|
4491
4616
|
{
|
|
4492
4617
|
show: monthMenuOpen,
|
|
4493
4618
|
positionTo: monthMenuRef,
|
|
4494
4619
|
setShow: () => setMonthMenuOpen(false),
|
|
4495
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
4620
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4496
4621
|
MenuOption,
|
|
4497
4622
|
{
|
|
4498
4623
|
selected: baseMonth.month === x + 1,
|
|
@@ -4506,7 +4631,7 @@ function CalendarPane({
|
|
|
4506
4631
|
))
|
|
4507
4632
|
}
|
|
4508
4633
|
),
|
|
4509
|
-
/* @__PURE__ */ (0,
|
|
4634
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4510
4635
|
"button",
|
|
4511
4636
|
{
|
|
4512
4637
|
ref: (el) => {
|
|
@@ -4521,13 +4646,13 @@ function CalendarPane({
|
|
|
4521
4646
|
children: month.year
|
|
4522
4647
|
}
|
|
4523
4648
|
),
|
|
4524
|
-
/* @__PURE__ */ (0,
|
|
4649
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4525
4650
|
Menu,
|
|
4526
4651
|
{
|
|
4527
4652
|
show: yearMenuOpen,
|
|
4528
4653
|
positionTo: yearMenuRef,
|
|
4529
4654
|
setShow: () => setYearMenuOpen(false),
|
|
4530
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
4655
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4531
4656
|
MenuOption,
|
|
4532
4657
|
{
|
|
4533
4658
|
selected: baseMonth.year === y,
|
|
@@ -4542,28 +4667,28 @@ function CalendarPane({
|
|
|
4542
4667
|
}
|
|
4543
4668
|
)
|
|
4544
4669
|
] }),
|
|
4545
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
4670
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4546
4671
|
"button",
|
|
4547
4672
|
{
|
|
4548
4673
|
id: id ? `${id}-next-month-button` : void 0,
|
|
4549
4674
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
4550
4675
|
type: "button",
|
|
4551
|
-
className: (0,
|
|
4676
|
+
className: (0, import_clsx20.default)(
|
|
4552
4677
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
4553
4678
|
componentPadding
|
|
4554
4679
|
),
|
|
4555
4680
|
"aria-label": "Next month",
|
|
4556
4681
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
4557
|
-
children: /* @__PURE__ */ (0,
|
|
4682
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
4558
4683
|
}
|
|
4559
|
-
) : /* @__PURE__ */ (0,
|
|
4684
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: (0, import_clsx20.default)(componentPadding, "ml-1") })
|
|
4560
4685
|
]
|
|
4561
4686
|
}
|
|
4562
4687
|
),
|
|
4563
|
-
/* @__PURE__ */ (0,
|
|
4688
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: (0, import_clsx20.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4564
4689
|
"span",
|
|
4565
4690
|
{
|
|
4566
|
-
className: (0,
|
|
4691
|
+
className: (0, import_clsx20.default)(
|
|
4567
4692
|
typography.caption,
|
|
4568
4693
|
"text-text-secondary-normal text-center",
|
|
4569
4694
|
"w-10"
|
|
@@ -4572,7 +4697,7 @@ function CalendarPane({
|
|
|
4572
4697
|
},
|
|
4573
4698
|
d
|
|
4574
4699
|
)) }),
|
|
4575
|
-
/* @__PURE__ */ (0,
|
|
4700
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: (0, import_clsx20.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
4576
4701
|
const day = i - emptyCells + 1;
|
|
4577
4702
|
const date = month.date.with({ day: 1 }).add({
|
|
4578
4703
|
days: i - emptyCells
|
|
@@ -4586,7 +4711,7 @@ function CalendarPane({
|
|
|
4586
4711
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
4587
4712
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
4588
4713
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
4589
|
-
return /* @__PURE__ */ (0,
|
|
4714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4590
4715
|
DateCell,
|
|
4591
4716
|
{
|
|
4592
4717
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -4611,10 +4736,10 @@ function CalendarPane({
|
|
|
4611
4736
|
]
|
|
4612
4737
|
}
|
|
4613
4738
|
),
|
|
4614
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
4739
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4615
4740
|
"div",
|
|
4616
4741
|
{
|
|
4617
|
-
className: (0,
|
|
4742
|
+
className: (0, import_clsx20.default)(
|
|
4618
4743
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
4619
4744
|
// 1px width, full height, matches Figma divider
|
|
4620
4745
|
"w-px"
|
|
@@ -4625,7 +4750,7 @@ function CalendarPane({
|
|
|
4625
4750
|
}
|
|
4626
4751
|
|
|
4627
4752
|
// src/components/DateInput.tsx
|
|
4628
|
-
var
|
|
4753
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
4629
4754
|
var DateInput = (_a) => {
|
|
4630
4755
|
var _b = _a, {
|
|
4631
4756
|
id,
|
|
@@ -4784,8 +4909,8 @@ var DateInput = (_a) => {
|
|
|
4784
4909
|
}
|
|
4785
4910
|
}
|
|
4786
4911
|
};
|
|
4787
|
-
return /* @__PURE__ */ (0,
|
|
4788
|
-
/* @__PURE__ */ (0,
|
|
4912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "relative", children: [
|
|
4913
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4789
4914
|
InputBase,
|
|
4790
4915
|
__spreadProps(__spreadValues({
|
|
4791
4916
|
id,
|
|
@@ -4799,7 +4924,7 @@ var DateInput = (_a) => {
|
|
|
4799
4924
|
placeholder,
|
|
4800
4925
|
disabled,
|
|
4801
4926
|
readOnly,
|
|
4802
|
-
after: /* @__PURE__ */ (0,
|
|
4927
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "calendar_month" }),
|
|
4803
4928
|
onFocus: handleFocus,
|
|
4804
4929
|
onClick: handleClick,
|
|
4805
4930
|
onChange: handleInputChange,
|
|
@@ -4810,7 +4935,7 @@ var DateInput = (_a) => {
|
|
|
4810
4935
|
})
|
|
4811
4936
|
),
|
|
4812
4937
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
4813
|
-
/* @__PURE__ */ (0,
|
|
4938
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4814
4939
|
"div",
|
|
4815
4940
|
{
|
|
4816
4941
|
ref: (el) => {
|
|
@@ -4822,7 +4947,7 @@ var DateInput = (_a) => {
|
|
|
4822
4947
|
left: `${calendarPosition.left}px`,
|
|
4823
4948
|
minWidth: `${calendarPosition.width}px`
|
|
4824
4949
|
},
|
|
4825
|
-
children: /* @__PURE__ */ (0,
|
|
4950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4826
4951
|
CalendarRange,
|
|
4827
4952
|
{
|
|
4828
4953
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -4853,11 +4978,11 @@ function formatDisplayValue(from) {
|
|
|
4853
4978
|
}
|
|
4854
4979
|
|
|
4855
4980
|
// src/components/Accordion.tsx
|
|
4856
|
-
var
|
|
4981
|
+
var import_clsx23 = __toESM(require("clsx"), 1);
|
|
4857
4982
|
|
|
4858
4983
|
// src/components/Card.tsx
|
|
4859
|
-
var
|
|
4860
|
-
var
|
|
4984
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
4985
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
4861
4986
|
function Card(props) {
|
|
4862
4987
|
const _a = props, {
|
|
4863
4988
|
children,
|
|
@@ -4884,7 +5009,7 @@ function Card(props) {
|
|
|
4884
5009
|
]);
|
|
4885
5010
|
const CardComponent = props.as || "div";
|
|
4886
5011
|
const anyPaddingPropSpecified = padding !== void 0 || paddingX !== void 0 || paddingY !== void 0 || paddingBottom !== void 0 || paddingTop !== void 0 || paddingLeft !== void 0 || paddingRight !== void 0;
|
|
4887
|
-
const paddingClasses = (0,
|
|
5012
|
+
const paddingClasses = (0, import_clsx21.default)(
|
|
4888
5013
|
// Backward compatibility: if no new padding props provided keep existing class.
|
|
4889
5014
|
!anyPaddingPropSpecified && "p-desktop-layout-padding",
|
|
4890
5015
|
// New responsive spacing tokens (mirrors Stack for layout sizing)
|
|
@@ -4896,11 +5021,11 @@ function Card(props) {
|
|
|
4896
5021
|
paddingLeft && "pl-mobile-layout-padding desktop:pl-desktop-layout-padding compact:pl-desktop-compact-layout-padding",
|
|
4897
5022
|
paddingRight && "pr-mobile-layout-padding desktop:pr-desktop-layout-padding compact:pr-desktop-compact-layout-padding"
|
|
4898
5023
|
);
|
|
4899
|
-
return /* @__PURE__ */ (0,
|
|
5024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4900
5025
|
CardComponent,
|
|
4901
5026
|
__spreadProps(__spreadValues({}, rest), {
|
|
4902
5027
|
"data-testid": testid,
|
|
4903
|
-
className: (0,
|
|
5028
|
+
className: (0, import_clsx21.default)(
|
|
4904
5029
|
"rounded-sm",
|
|
4905
5030
|
paddingClasses,
|
|
4906
5031
|
selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
|
|
@@ -4912,9 +5037,9 @@ function Card(props) {
|
|
|
4912
5037
|
}
|
|
4913
5038
|
|
|
4914
5039
|
// src/components/Stack.tsx
|
|
4915
|
-
var
|
|
4916
|
-
var
|
|
4917
|
-
var getFlexClassNames = ({ items, justify, grow }) => (0,
|
|
5040
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
5041
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5042
|
+
var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx22.default)(
|
|
4918
5043
|
"flex",
|
|
4919
5044
|
items === "start" && "items-start",
|
|
4920
5045
|
grow && "grow",
|
|
@@ -4930,7 +5055,7 @@ var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx21.default)
|
|
|
4930
5055
|
justify === "around" && "justify-around"
|
|
4931
5056
|
);
|
|
4932
5057
|
var useGapClassNames = (sizing) => {
|
|
4933
|
-
return (0,
|
|
5058
|
+
return (0, import_clsx22.default)(
|
|
4934
5059
|
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
4935
5060
|
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
4936
5061
|
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
@@ -5038,7 +5163,7 @@ var Stack = (_a) => {
|
|
|
5038
5163
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
5039
5164
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
5040
5165
|
const gapClassNames = useGapClassNames(sizing);
|
|
5041
|
-
return /* @__PURE__ */ (0,
|
|
5166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5042
5167
|
"div",
|
|
5043
5168
|
__spreadProps(__spreadValues({
|
|
5044
5169
|
id,
|
|
@@ -5070,7 +5195,7 @@ var Stack = (_a) => {
|
|
|
5070
5195
|
paddingInline: (_f = props.style) == null ? void 0 : _f.paddingInline,
|
|
5071
5196
|
gap: (_g = props.style) == null ? void 0 : _g.gap
|
|
5072
5197
|
},
|
|
5073
|
-
className: (0,
|
|
5198
|
+
className: (0, import_clsx22.default)(
|
|
5074
5199
|
"scrollbar-thin",
|
|
5075
5200
|
"max-w-screen",
|
|
5076
5201
|
width !== "fit" && "w-full",
|
|
@@ -5132,7 +5257,7 @@ var Stack = (_a) => {
|
|
|
5132
5257
|
};
|
|
5133
5258
|
|
|
5134
5259
|
// src/components/Accordion.tsx
|
|
5135
|
-
var
|
|
5260
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5136
5261
|
function Accordion(props) {
|
|
5137
5262
|
const {
|
|
5138
5263
|
isOpen,
|
|
@@ -5145,11 +5270,11 @@ function Accordion(props) {
|
|
|
5145
5270
|
const {
|
|
5146
5271
|
title,
|
|
5147
5272
|
before,
|
|
5148
|
-
after = /* @__PURE__ */ (0,
|
|
5273
|
+
after = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5149
5274
|
Icon,
|
|
5150
5275
|
{
|
|
5151
5276
|
name: "expand_more",
|
|
5152
|
-
className: (0,
|
|
5277
|
+
className: (0, import_clsx23.default)(
|
|
5153
5278
|
"text-icon-primary-normal transform transition-all duration-300 ease-in-out",
|
|
5154
5279
|
isOpen ? "rotate-180" : "rotate-0"
|
|
5155
5280
|
)
|
|
@@ -5162,10 +5287,10 @@ function Accordion(props) {
|
|
|
5162
5287
|
e.preventDefault();
|
|
5163
5288
|
onClick == null ? void 0 : onClick();
|
|
5164
5289
|
}
|
|
5165
|
-
return /* @__PURE__ */ (0,
|
|
5290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
5166
5291
|
Card,
|
|
5167
5292
|
{
|
|
5168
|
-
className: (0,
|
|
5293
|
+
className: (0, import_clsx23.default)(
|
|
5169
5294
|
"overflow-hidden select-none",
|
|
5170
5295
|
{ "cursor-pointer": !disabled },
|
|
5171
5296
|
className
|
|
@@ -5174,7 +5299,7 @@ function Accordion(props) {
|
|
|
5174
5299
|
onClick: handleClick,
|
|
5175
5300
|
testid,
|
|
5176
5301
|
children: [
|
|
5177
|
-
/* @__PURE__ */ (0,
|
|
5302
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
5178
5303
|
Stack,
|
|
5179
5304
|
{
|
|
5180
5305
|
sizing: "component",
|
|
@@ -5183,9 +5308,9 @@ function Accordion(props) {
|
|
|
5183
5308
|
justify: "between",
|
|
5184
5309
|
items: "center",
|
|
5185
5310
|
children: [
|
|
5186
|
-
/* @__PURE__ */ (0,
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Stack, { sizing: "layout-group", horizontal: true, items: titleAlign, children: [
|
|
5187
5312
|
before,
|
|
5188
|
-
typeof title === "string" ? /* @__PURE__ */ (0,
|
|
5313
|
+
typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5189
5314
|
Paragraph,
|
|
5190
5315
|
{
|
|
5191
5316
|
testid: testid ? `${testid}-title` : void 0,
|
|
@@ -5198,18 +5323,18 @@ function Accordion(props) {
|
|
|
5198
5323
|
]
|
|
5199
5324
|
}
|
|
5200
5325
|
),
|
|
5201
|
-
/* @__PURE__ */ (0,
|
|
5326
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5202
5327
|
"div",
|
|
5203
5328
|
{
|
|
5204
|
-
className: (0,
|
|
5329
|
+
className: (0, import_clsx23.default)("grid transition-all duration-300 ease-in-out"),
|
|
5205
5330
|
style: {
|
|
5206
5331
|
gridTemplateRows: isOpen ? "1fr" : "0fr"
|
|
5207
5332
|
},
|
|
5208
5333
|
"data-testid": testid ? `${testid}-content-container` : void 0,
|
|
5209
|
-
children: /* @__PURE__ */ (0,
|
|
5334
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5210
5335
|
"div",
|
|
5211
5336
|
{
|
|
5212
|
-
className: (0,
|
|
5337
|
+
className: (0, import_clsx23.default)(
|
|
5213
5338
|
typography.paragraph,
|
|
5214
5339
|
"text-text-primary-normal desktop:pt-desktop-layout-gap",
|
|
5215
5340
|
"flex flex-col gap-desktop-layout-gap"
|
|
@@ -5226,8 +5351,8 @@ function Accordion(props) {
|
|
|
5226
5351
|
}
|
|
5227
5352
|
|
|
5228
5353
|
// src/components/Heading.tsx
|
|
5229
|
-
var
|
|
5230
|
-
var
|
|
5354
|
+
var import_clsx24 = __toESM(require("clsx"), 1);
|
|
5355
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
5231
5356
|
var Heading = (_a) => {
|
|
5232
5357
|
var _b = _a, {
|
|
5233
5358
|
className,
|
|
@@ -5250,12 +5375,12 @@ var Heading = (_a) => {
|
|
|
5250
5375
|
]);
|
|
5251
5376
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
5252
5377
|
const Element = as != null ? as : defaultElement;
|
|
5253
|
-
return /* @__PURE__ */ (0,
|
|
5378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5254
5379
|
Element,
|
|
5255
5380
|
__spreadProps(__spreadValues({
|
|
5256
5381
|
id,
|
|
5257
5382
|
"data-testid": testid,
|
|
5258
|
-
className: (0,
|
|
5383
|
+
className: (0, import_clsx24.default)(
|
|
5259
5384
|
typography[variant],
|
|
5260
5385
|
className,
|
|
5261
5386
|
align === "left" && "text-left",
|
|
@@ -5271,15 +5396,15 @@ var Heading = (_a) => {
|
|
|
5271
5396
|
);
|
|
5272
5397
|
};
|
|
5273
5398
|
Heading.displayName = "Heading";
|
|
5274
|
-
var Heading1 = (props) => /* @__PURE__ */ (0,
|
|
5275
|
-
var Heading2 = (props) => /* @__PURE__ */ (0,
|
|
5276
|
-
var Heading3 = (props) => /* @__PURE__ */ (0,
|
|
5399
|
+
var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
|
|
5400
|
+
var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
|
|
5401
|
+
var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
|
|
5277
5402
|
Heading1.displayName = "Heading1";
|
|
5278
5403
|
Heading2.displayName = "Heading2";
|
|
5279
5404
|
Heading3.displayName = "Heading3";
|
|
5280
5405
|
|
|
5281
5406
|
// src/components/Theme.tsx
|
|
5282
|
-
var
|
|
5407
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
5283
5408
|
function Theme({
|
|
5284
5409
|
theme,
|
|
5285
5410
|
children,
|
|
@@ -5287,7 +5412,7 @@ function Theme({
|
|
|
5287
5412
|
testid,
|
|
5288
5413
|
ref
|
|
5289
5414
|
}) {
|
|
5290
|
-
return /* @__PURE__ */ (0,
|
|
5415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5291
5416
|
"div",
|
|
5292
5417
|
{
|
|
5293
5418
|
id,
|
|
@@ -5322,7 +5447,7 @@ function useGridContext() {
|
|
|
5322
5447
|
}
|
|
5323
5448
|
|
|
5324
5449
|
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
5325
|
-
var
|
|
5450
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
5326
5451
|
function ColumnSelector() {
|
|
5327
5452
|
const context = useGridContext();
|
|
5328
5453
|
const ref = (0, import_react23.useRef)(null);
|
|
@@ -5343,7 +5468,7 @@ function ColumnSelector() {
|
|
|
5343
5468
|
},
|
|
5344
5469
|
[dispatch]
|
|
5345
5470
|
);
|
|
5346
|
-
return /* @__PURE__ */ (0,
|
|
5471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
5347
5472
|
"div",
|
|
5348
5473
|
{
|
|
5349
5474
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -5351,7 +5476,7 @@ function ColumnSelector() {
|
|
|
5351
5476
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
5352
5477
|
ref,
|
|
5353
5478
|
children: [
|
|
5354
|
-
/* @__PURE__ */ (0,
|
|
5479
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
5355
5480
|
Button,
|
|
5356
5481
|
{
|
|
5357
5482
|
id: id ? `${id}-button` : void 0,
|
|
@@ -5360,10 +5485,10 @@ function ColumnSelector() {
|
|
|
5360
5485
|
variant: "navigation",
|
|
5361
5486
|
iconOnly: true,
|
|
5362
5487
|
size: 24,
|
|
5363
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5488
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { name: "tune" })
|
|
5364
5489
|
}
|
|
5365
5490
|
),
|
|
5366
|
-
/* @__PURE__ */ (0,
|
|
5491
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
5367
5492
|
Menu,
|
|
5368
5493
|
{
|
|
5369
5494
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -5374,7 +5499,7 @@ function ColumnSelector() {
|
|
|
5374
5499
|
setShow,
|
|
5375
5500
|
calculateMinMaxHeight: true,
|
|
5376
5501
|
children: [
|
|
5377
|
-
/* @__PURE__ */ (0,
|
|
5502
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
5378
5503
|
Button,
|
|
5379
5504
|
{
|
|
5380
5505
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -5392,11 +5517,11 @@ function ColumnSelector() {
|
|
|
5392
5517
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
5393
5518
|
}).map((column) => {
|
|
5394
5519
|
var _a, _b, _c;
|
|
5395
|
-
return /* @__PURE__ */ (0,
|
|
5520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
5396
5521
|
MenuOption,
|
|
5397
5522
|
{
|
|
5398
5523
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
5399
|
-
children: /* @__PURE__ */ (0,
|
|
5524
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
5400
5525
|
Checkbox,
|
|
5401
5526
|
{
|
|
5402
5527
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -5426,7 +5551,7 @@ function ColumnSelector() {
|
|
|
5426
5551
|
}
|
|
5427
5552
|
|
|
5428
5553
|
// src/components/MobileDataGrid/MobileDataGridHeader.tsx
|
|
5429
|
-
var
|
|
5554
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
5430
5555
|
function MobileDataGridHeader({
|
|
5431
5556
|
header: Header,
|
|
5432
5557
|
enableColumnSelector,
|
|
@@ -5444,15 +5569,15 @@ function MobileDataGridHeader({
|
|
|
5444
5569
|
handleRowSelectAll
|
|
5445
5570
|
} = ctx;
|
|
5446
5571
|
if (typeof Header === "undefined" && !primaryKey) return null;
|
|
5447
|
-
if (typeof Header === "function") return /* @__PURE__ */ (0,
|
|
5572
|
+
if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Header, __spreadValues({}, ctx));
|
|
5448
5573
|
if (typeof Header === "string" || primaryKey)
|
|
5449
|
-
return /* @__PURE__ */ (0,
|
|
5574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5450
5575
|
"div",
|
|
5451
5576
|
{
|
|
5452
5577
|
id: id ? `${id}-header` : void 0,
|
|
5453
5578
|
"data-testid": testid ? `${testid}-header` : void 0,
|
|
5454
5579
|
className: "sticky top-0",
|
|
5455
|
-
children: /* @__PURE__ */ (0,
|
|
5580
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
5456
5581
|
Stack,
|
|
5457
5582
|
{
|
|
5458
5583
|
horizontal: true,
|
|
@@ -5461,7 +5586,7 @@ function MobileDataGridHeader({
|
|
|
5461
5586
|
justify: "between",
|
|
5462
5587
|
backgroundColor: "background-primary-normal",
|
|
5463
5588
|
children: [
|
|
5464
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
5589
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5465
5590
|
Checkbox,
|
|
5466
5591
|
{
|
|
5467
5592
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -5471,7 +5596,7 @@ function MobileDataGridHeader({
|
|
|
5471
5596
|
onChange: handleRowSelectAll
|
|
5472
5597
|
}
|
|
5473
5598
|
) }),
|
|
5474
|
-
/* @__PURE__ */ (0,
|
|
5599
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5475
5600
|
Stack,
|
|
5476
5601
|
{
|
|
5477
5602
|
horizontal: true,
|
|
@@ -5479,10 +5604,10 @@ function MobileDataGridHeader({
|
|
|
5479
5604
|
items: "center",
|
|
5480
5605
|
sizing: "component",
|
|
5481
5606
|
padding: true,
|
|
5482
|
-
children: /* @__PURE__ */ (0,
|
|
5607
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.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() })
|
|
5483
5608
|
}
|
|
5484
5609
|
),
|
|
5485
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
5610
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ColumnSelector, {})
|
|
5486
5611
|
]
|
|
5487
5612
|
}
|
|
5488
5613
|
) })
|
|
@@ -5521,7 +5646,7 @@ function dataGridReducer(state, action) {
|
|
|
5521
5646
|
}
|
|
5522
5647
|
|
|
5523
5648
|
// src/components/MobileDataGrid/GridContextProvider/index.tsx
|
|
5524
|
-
var
|
|
5649
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5525
5650
|
function GridContextProvider(props) {
|
|
5526
5651
|
const {
|
|
5527
5652
|
initialColumns,
|
|
@@ -5592,7 +5717,7 @@ function GridContextProvider(props) {
|
|
|
5592
5717
|
return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
|
|
5593
5718
|
}).slice(0, effectiveLimit);
|
|
5594
5719
|
}, [columns, numberOfColumnsToShow, primaryKey]);
|
|
5595
|
-
return /* @__PURE__ */ (0,
|
|
5720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5596
5721
|
GridContext.Provider,
|
|
5597
5722
|
{
|
|
5598
5723
|
value: {
|
|
@@ -5620,12 +5745,12 @@ function GridContextProvider(props) {
|
|
|
5620
5745
|
}
|
|
5621
5746
|
|
|
5622
5747
|
// src/components/Modal.tsx
|
|
5623
|
-
var
|
|
5748
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
5624
5749
|
var import_react26 = require("react");
|
|
5625
5750
|
|
|
5626
5751
|
// src/components/ModalHeader.tsx
|
|
5627
|
-
var
|
|
5628
|
-
var
|
|
5752
|
+
var import_clsx25 = __toESM(require("clsx"), 1);
|
|
5753
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5629
5754
|
var ModalHeader = ({
|
|
5630
5755
|
title,
|
|
5631
5756
|
hideCloseIcon,
|
|
@@ -5636,12 +5761,12 @@ var ModalHeader = ({
|
|
|
5636
5761
|
testid,
|
|
5637
5762
|
headerClassname
|
|
5638
5763
|
}) => {
|
|
5639
|
-
return /* @__PURE__ */ (0,
|
|
5764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
5640
5765
|
"div",
|
|
5641
5766
|
{
|
|
5642
5767
|
id,
|
|
5643
5768
|
"data-testid": testid,
|
|
5644
|
-
className: (0,
|
|
5769
|
+
className: (0, import_clsx25.default)(
|
|
5645
5770
|
"flex justify-between items-center",
|
|
5646
5771
|
headerIconAlign === "center" && "justify-center",
|
|
5647
5772
|
headerIconAlign === "right" && "justify-end",
|
|
@@ -5651,9 +5776,9 @@ var ModalHeader = ({
|
|
|
5651
5776
|
headerClassname
|
|
5652
5777
|
),
|
|
5653
5778
|
children: [
|
|
5654
|
-
/* @__PURE__ */ (0,
|
|
5779
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx25.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
5655
5780
|
headerIcon,
|
|
5656
|
-
title && /* @__PURE__ */ (0,
|
|
5781
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5657
5782
|
Heading2,
|
|
5658
5783
|
{
|
|
5659
5784
|
id: id ? `${id}-title` : void 0,
|
|
@@ -5663,7 +5788,7 @@ var ModalHeader = ({
|
|
|
5663
5788
|
}
|
|
5664
5789
|
)
|
|
5665
5790
|
] }),
|
|
5666
|
-
!hideCloseIcon && /* @__PURE__ */ (0,
|
|
5791
|
+
!hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5667
5792
|
Button,
|
|
5668
5793
|
{
|
|
5669
5794
|
id: id ? `${id}-close-button` : void 0,
|
|
@@ -5671,7 +5796,7 @@ var ModalHeader = ({
|
|
|
5671
5796
|
iconOnly: true,
|
|
5672
5797
|
variant: "tertiary",
|
|
5673
5798
|
onClick: onClose,
|
|
5674
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5799
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "close", size: 24 }) })
|
|
5675
5800
|
}
|
|
5676
5801
|
)
|
|
5677
5802
|
]
|
|
@@ -5681,20 +5806,20 @@ var ModalHeader = ({
|
|
|
5681
5806
|
ModalHeader.displayName = "ModalHeader";
|
|
5682
5807
|
|
|
5683
5808
|
// src/components/ModalContent.tsx
|
|
5684
|
-
var
|
|
5685
|
-
var
|
|
5809
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
5810
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5686
5811
|
function ModalContent({
|
|
5687
5812
|
fixedHeightScrolling,
|
|
5688
5813
|
children,
|
|
5689
5814
|
id,
|
|
5690
5815
|
testid
|
|
5691
5816
|
}) {
|
|
5692
|
-
return /* @__PURE__ */ (0,
|
|
5817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5693
5818
|
"div",
|
|
5694
5819
|
{
|
|
5695
5820
|
id,
|
|
5696
5821
|
"data-testid": testid,
|
|
5697
|
-
className: (0,
|
|
5822
|
+
className: (0, import_clsx26.default)(
|
|
5698
5823
|
"flex-grow desktop:flex-grow-0",
|
|
5699
5824
|
layoutPaddding,
|
|
5700
5825
|
fixedHeightScrolling && "overflow-auto"
|
|
@@ -5706,8 +5831,8 @@ function ModalContent({
|
|
|
5706
5831
|
ModalContent.displayName = "ModalContent";
|
|
5707
5832
|
|
|
5708
5833
|
// src/components/ModalButtons.tsx
|
|
5709
|
-
var
|
|
5710
|
-
var
|
|
5834
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
5835
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5711
5836
|
var ModalButtons = ({
|
|
5712
5837
|
onClose,
|
|
5713
5838
|
onContinue,
|
|
@@ -5715,36 +5840,36 @@ var ModalButtons = ({
|
|
|
5715
5840
|
id,
|
|
5716
5841
|
testid
|
|
5717
5842
|
}) => {
|
|
5718
|
-
return /* @__PURE__ */ (0,
|
|
5843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5719
5844
|
"div",
|
|
5720
5845
|
{
|
|
5721
5846
|
id,
|
|
5722
5847
|
"data-testid": testid,
|
|
5723
|
-
className: (0,
|
|
5848
|
+
className: (0, import_clsx27.default)(
|
|
5724
5849
|
"border-t border-neutral-300 flex justify-end",
|
|
5725
5850
|
layoutPaddding,
|
|
5726
5851
|
layoutGroupGap
|
|
5727
5852
|
),
|
|
5728
|
-
children: customActions != null ? customActions : /* @__PURE__ */ (0,
|
|
5729
|
-
/* @__PURE__ */ (0,
|
|
5853
|
+
children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
5854
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5730
5855
|
Button,
|
|
5731
5856
|
{
|
|
5732
5857
|
id: id ? `${id}-close-button` : void 0,
|
|
5733
5858
|
testid: testid ? `${testid}-close-button` : void 0,
|
|
5734
5859
|
variant: "secondary",
|
|
5735
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5860
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "close", size: 24 }),
|
|
5736
5861
|
onClick: onClose,
|
|
5737
5862
|
className: "max-sm:w-full",
|
|
5738
5863
|
children: "Close"
|
|
5739
5864
|
}
|
|
5740
5865
|
),
|
|
5741
|
-
/* @__PURE__ */ (0,
|
|
5866
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5742
5867
|
Button,
|
|
5743
5868
|
{
|
|
5744
5869
|
id: id ? `${id}-continue-button` : void 0,
|
|
5745
5870
|
testid: testid ? `${testid}-continue-button` : void 0,
|
|
5746
5871
|
variant: "primary",
|
|
5747
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5872
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "check", size: 24 }),
|
|
5748
5873
|
className: "max-sm:w-full",
|
|
5749
5874
|
onClick: onContinue,
|
|
5750
5875
|
children: "Continue"
|
|
@@ -5757,8 +5882,8 @@ var ModalButtons = ({
|
|
|
5757
5882
|
ModalButtons.displayName = "ModalButtons";
|
|
5758
5883
|
|
|
5759
5884
|
// src/components/ModalScrim.tsx
|
|
5760
|
-
var
|
|
5761
|
-
var
|
|
5885
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
5886
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
5762
5887
|
var ModalScrim = ({
|
|
5763
5888
|
show = false,
|
|
5764
5889
|
size = "small",
|
|
@@ -5768,12 +5893,12 @@ var ModalScrim = ({
|
|
|
5768
5893
|
id,
|
|
5769
5894
|
testid
|
|
5770
5895
|
}) => {
|
|
5771
|
-
return /* @__PURE__ */ (0,
|
|
5896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
5772
5897
|
"div",
|
|
5773
5898
|
{
|
|
5774
5899
|
id,
|
|
5775
5900
|
"data-testid": testid,
|
|
5776
|
-
className: (0,
|
|
5901
|
+
className: (0, import_clsx28.default)(
|
|
5777
5902
|
"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",
|
|
5778
5903
|
!show && " pointer-events-none",
|
|
5779
5904
|
size === "small" && "p-4",
|
|
@@ -5804,7 +5929,7 @@ var useMounted = () => {
|
|
|
5804
5929
|
};
|
|
5805
5930
|
|
|
5806
5931
|
// src/components/Modal.tsx
|
|
5807
|
-
var
|
|
5932
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
5808
5933
|
var fadeInScale = (element, duration = 300) => element.animate(
|
|
5809
5934
|
[
|
|
5810
5935
|
{ opacity: 0, transform: "scale(0.95)" },
|
|
@@ -5976,7 +6101,7 @@ var Modal = ({
|
|
|
5976
6101
|
return null;
|
|
5977
6102
|
}
|
|
5978
6103
|
return (0, import_react_dom4.createPortal)(
|
|
5979
|
-
/* @__PURE__ */ (0,
|
|
6104
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
5980
6105
|
ModalScrim,
|
|
5981
6106
|
{
|
|
5982
6107
|
id: id ? `${id}-scrim` : void 0,
|
|
@@ -5985,13 +6110,13 @@ var Modal = ({
|
|
|
5985
6110
|
ref: bgRef,
|
|
5986
6111
|
show: open,
|
|
5987
6112
|
onClick: backgroundClickHandler,
|
|
5988
|
-
children: /* @__PURE__ */ (0,
|
|
6113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
5989
6114
|
"div",
|
|
5990
6115
|
{
|
|
5991
6116
|
id,
|
|
5992
6117
|
"data-testid": testid,
|
|
5993
6118
|
ref: modalRef,
|
|
5994
|
-
className: (0,
|
|
6119
|
+
className: (0, import_clsx29.default)(
|
|
5995
6120
|
"shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
|
|
5996
6121
|
computedFixedHeightScrolling && size !== "screen" && "desktop:max-h-[calc(100vh-32px)] desktop:h-auto",
|
|
5997
6122
|
className,
|
|
@@ -6000,7 +6125,7 @@ var Modal = ({
|
|
|
6000
6125
|
),
|
|
6001
6126
|
onClick: (e) => e.stopPropagation(),
|
|
6002
6127
|
children: [
|
|
6003
|
-
/* @__PURE__ */ (0,
|
|
6128
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6004
6129
|
ModalHeader,
|
|
6005
6130
|
{
|
|
6006
6131
|
id: id ? `${id}-header` : void 0,
|
|
@@ -6013,7 +6138,7 @@ var Modal = ({
|
|
|
6013
6138
|
headerClassname
|
|
6014
6139
|
}
|
|
6015
6140
|
),
|
|
6016
|
-
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0,
|
|
6141
|
+
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6017
6142
|
ModalContent,
|
|
6018
6143
|
{
|
|
6019
6144
|
id: id ? `${id}-content` : void 0,
|
|
@@ -6022,7 +6147,7 @@ var Modal = ({
|
|
|
6022
6147
|
children
|
|
6023
6148
|
}
|
|
6024
6149
|
) : children,
|
|
6025
|
-
showButtons ? customFooter ? customActions : /* @__PURE__ */ (0,
|
|
6150
|
+
showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6026
6151
|
ModalButtons,
|
|
6027
6152
|
{
|
|
6028
6153
|
id: id ? `${id}-buttons` : void 0,
|
|
@@ -6043,12 +6168,12 @@ var Modal = ({
|
|
|
6043
6168
|
Modal.displayName = "Modal";
|
|
6044
6169
|
|
|
6045
6170
|
// src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
|
|
6046
|
-
var
|
|
6171
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
6047
6172
|
function MobileDataGridColumn(props) {
|
|
6048
6173
|
var _a;
|
|
6049
6174
|
const { column, data } = props;
|
|
6050
|
-
return /* @__PURE__ */ (0,
|
|
6051
|
-
/* @__PURE__ */ (0,
|
|
6175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "grid grid-cols-2 gap-2 px-3 flex-1", children: [
|
|
6176
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
6052
6177
|
(_a = column.header) == null ? void 0 : _a.toString(),
|
|
6053
6178
|
":"
|
|
6054
6179
|
] }),
|
|
@@ -6058,28 +6183,28 @@ function MobileDataGridColumn(props) {
|
|
|
6058
6183
|
}
|
|
6059
6184
|
|
|
6060
6185
|
// src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
|
|
6061
|
-
var
|
|
6186
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6062
6187
|
function ModalContent2() {
|
|
6063
6188
|
const context = useGridContext();
|
|
6064
6189
|
const { columns, currentRow } = context;
|
|
6065
6190
|
if (!currentRow) return null;
|
|
6066
|
-
return /* @__PURE__ */ (0,
|
|
6191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
|
|
6067
6192
|
var _a;
|
|
6068
6193
|
return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
|
|
6069
6194
|
}).map(
|
|
6070
6195
|
(column, index) => {
|
|
6071
6196
|
var _a, _b;
|
|
6072
|
-
return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0,
|
|
6197
|
+
return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
6073
6198
|
"div",
|
|
6074
6199
|
{
|
|
6075
6200
|
className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
|
|
6076
6201
|
children: [
|
|
6077
|
-
/* @__PURE__ */ (0,
|
|
6202
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
6078
6203
|
(_b = column.header) == null ? void 0 : _b.toString(),
|
|
6079
6204
|
":"
|
|
6080
6205
|
] }),
|
|
6081
6206
|
" ",
|
|
6082
|
-
/* @__PURE__ */ (0,
|
|
6207
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6083
6208
|
column.meta.mobileCell,
|
|
6084
6209
|
{
|
|
6085
6210
|
column,
|
|
@@ -6090,7 +6215,7 @@ function ModalContent2() {
|
|
|
6090
6215
|
]
|
|
6091
6216
|
},
|
|
6092
6217
|
`${column.id}-${index}`
|
|
6093
|
-
) : /* @__PURE__ */ (0,
|
|
6218
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6094
6219
|
MobileDataGridColumn,
|
|
6095
6220
|
{
|
|
6096
6221
|
column,
|
|
@@ -6103,7 +6228,7 @@ function ModalContent2() {
|
|
|
6103
6228
|
}
|
|
6104
6229
|
|
|
6105
6230
|
// src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
|
|
6106
|
-
var
|
|
6231
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
6107
6232
|
function RowDetailModalProvider() {
|
|
6108
6233
|
var _a;
|
|
6109
6234
|
const context = useGridContext();
|
|
@@ -6115,7 +6240,7 @@ function RowDetailModalProvider() {
|
|
|
6115
6240
|
primaryKey,
|
|
6116
6241
|
closeRowDetail
|
|
6117
6242
|
} = context;
|
|
6118
|
-
return /* @__PURE__ */ (0,
|
|
6243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6119
6244
|
Modal,
|
|
6120
6245
|
{
|
|
6121
6246
|
fixedHeightScrolling: true,
|
|
@@ -6124,7 +6249,7 @@ function RowDetailModalProvider() {
|
|
|
6124
6249
|
hideCloseIcon: true,
|
|
6125
6250
|
size: "medium",
|
|
6126
6251
|
className: "!p-0",
|
|
6127
|
-
headerIcon: /* @__PURE__ */ (0,
|
|
6252
|
+
headerIcon: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
6128
6253
|
Stack,
|
|
6129
6254
|
{
|
|
6130
6255
|
horizontal: true,
|
|
@@ -6133,8 +6258,8 @@ function RowDetailModalProvider() {
|
|
|
6133
6258
|
justify: "between",
|
|
6134
6259
|
width: "full",
|
|
6135
6260
|
children: [
|
|
6136
|
-
/* @__PURE__ */ (0,
|
|
6137
|
-
/* @__PURE__ */ (0,
|
|
6261
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
|
|
6262
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6138
6263
|
Button,
|
|
6139
6264
|
{
|
|
6140
6265
|
id: id ? `${id}-open-in-new-button` : void 0,
|
|
@@ -6142,25 +6267,25 @@ function RowDetailModalProvider() {
|
|
|
6142
6267
|
iconOnly: true,
|
|
6143
6268
|
variant: "tertiary",
|
|
6144
6269
|
onClick: closeRowDetail,
|
|
6145
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
6270
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { name: "open_in_new", size: 24 }) })
|
|
6146
6271
|
}
|
|
6147
6272
|
)
|
|
6148
6273
|
]
|
|
6149
6274
|
}
|
|
6150
6275
|
),
|
|
6151
|
-
customActions: /* @__PURE__ */ (0,
|
|
6276
|
+
customActions: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
|
|
6152
6277
|
showButtons: true,
|
|
6153
|
-
children: /* @__PURE__ */ (0,
|
|
6278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ModalContent2, {}) })
|
|
6154
6279
|
}
|
|
6155
6280
|
);
|
|
6156
6281
|
}
|
|
6157
6282
|
|
|
6158
6283
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
6159
|
-
var
|
|
6284
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
6160
6285
|
|
|
6161
6286
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
6162
|
-
var
|
|
6163
|
-
var
|
|
6287
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
6288
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
6164
6289
|
function MobileDataGridCard({
|
|
6165
6290
|
renderLink,
|
|
6166
6291
|
renderChevron = true,
|
|
@@ -6172,27 +6297,27 @@ function MobileDataGridCard({
|
|
|
6172
6297
|
var _a;
|
|
6173
6298
|
const context = useGridContext();
|
|
6174
6299
|
const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
|
|
6175
|
-
return /* @__PURE__ */ (0,
|
|
6300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
6176
6301
|
"li",
|
|
6177
6302
|
{
|
|
6178
6303
|
id: id ? `${id}-card-${getId(data)}` : void 0,
|
|
6179
6304
|
"data-testid": testid ? `${testid}-card-${getId(data)}` : void 0,
|
|
6180
|
-
className: (0,
|
|
6305
|
+
className: (0, import_clsx30.default)(
|
|
6181
6306
|
"hover:bg-action-100 cursor-pointer list-none",
|
|
6182
6307
|
selected ? "bg-action-100" : "bg-background-grouped-primary-normal"
|
|
6183
6308
|
),
|
|
6184
6309
|
onClick: () => openRowDetail(data),
|
|
6185
6310
|
children: [
|
|
6186
|
-
/* @__PURE__ */ (0,
|
|
6187
|
-
/* @__PURE__ */ (0,
|
|
6188
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
6311
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Stack, { sizing: "component", children: [
|
|
6312
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
|
|
6313
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6189
6314
|
Stack,
|
|
6190
6315
|
{
|
|
6191
6316
|
sizing: "component",
|
|
6192
6317
|
padding: true,
|
|
6193
6318
|
width: "fit",
|
|
6194
6319
|
onClick: (e) => e.stopPropagation(),
|
|
6195
|
-
children: /* @__PURE__ */ (0,
|
|
6320
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6196
6321
|
Checkbox,
|
|
6197
6322
|
{
|
|
6198
6323
|
id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
|
|
@@ -6203,16 +6328,16 @@ function MobileDataGridCard({
|
|
|
6203
6328
|
)
|
|
6204
6329
|
}
|
|
6205
6330
|
),
|
|
6206
|
-
/* @__PURE__ */ (0,
|
|
6331
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6207
6332
|
Stack,
|
|
6208
6333
|
{
|
|
6209
6334
|
sizing: "component",
|
|
6210
6335
|
padding: true,
|
|
6211
6336
|
onClick: (e) => e.stopPropagation(),
|
|
6212
|
-
children: renderLink ? renderLink(data) : /* @__PURE__ */ (0,
|
|
6337
|
+
children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
|
|
6213
6338
|
}
|
|
6214
6339
|
),
|
|
6215
|
-
/* @__PURE__ */ (0,
|
|
6340
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6216
6341
|
Stack,
|
|
6217
6342
|
{
|
|
6218
6343
|
horizontal: true,
|
|
@@ -6225,18 +6350,18 @@ function MobileDataGridCard({
|
|
|
6225
6350
|
}
|
|
6226
6351
|
)
|
|
6227
6352
|
] }),
|
|
6228
|
-
/* @__PURE__ */ (0,
|
|
6353
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
|
|
6229
6354
|
var _a2, _b;
|
|
6230
6355
|
return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
|
|
6231
6356
|
}).map(
|
|
6232
6357
|
(column, index) => {
|
|
6233
6358
|
var _a2, _b;
|
|
6234
|
-
return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0,
|
|
6359
|
+
return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
6235
6360
|
"div",
|
|
6236
6361
|
{
|
|
6237
6362
|
className: "grid grid-cols-2 gap-2 px-3 items-center flex-1",
|
|
6238
6363
|
children: [
|
|
6239
|
-
/* @__PURE__ */ (0,
|
|
6364
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
6240
6365
|
Paragraph,
|
|
6241
6366
|
{
|
|
6242
6367
|
color: "text-secondary-normal",
|
|
@@ -6248,7 +6373,7 @@ function MobileDataGridCard({
|
|
|
6248
6373
|
}
|
|
6249
6374
|
),
|
|
6250
6375
|
" ",
|
|
6251
|
-
/* @__PURE__ */ (0,
|
|
6376
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6252
6377
|
column.meta.mobileCell,
|
|
6253
6378
|
{
|
|
6254
6379
|
column,
|
|
@@ -6259,7 +6384,7 @@ function MobileDataGridCard({
|
|
|
6259
6384
|
]
|
|
6260
6385
|
},
|
|
6261
6386
|
`${column.id}-${index}`
|
|
6262
|
-
) : /* @__PURE__ */ (0,
|
|
6387
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6263
6388
|
MobileDataGridColumn,
|
|
6264
6389
|
{
|
|
6265
6390
|
column,
|
|
@@ -6270,14 +6395,14 @@ function MobileDataGridCard({
|
|
|
6270
6395
|
}
|
|
6271
6396
|
) })
|
|
6272
6397
|
] }),
|
|
6273
|
-
renderChevron && /* @__PURE__ */ (0,
|
|
6398
|
+
renderChevron && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { name: "keyboard_arrow_down" }) })
|
|
6274
6399
|
]
|
|
6275
6400
|
}
|
|
6276
6401
|
);
|
|
6277
6402
|
}
|
|
6278
6403
|
|
|
6279
6404
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
6280
|
-
var
|
|
6405
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
6281
6406
|
function ColumnList(props) {
|
|
6282
6407
|
const {
|
|
6283
6408
|
withBorder,
|
|
@@ -6289,19 +6414,19 @@ function ColumnList(props) {
|
|
|
6289
6414
|
} = props;
|
|
6290
6415
|
const ctx = useGridContext();
|
|
6291
6416
|
const { id, testid, data, getId, selectedRowIds } = ctx;
|
|
6292
|
-
return /* @__PURE__ */ (0,
|
|
6417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6293
6418
|
"div",
|
|
6294
6419
|
{
|
|
6295
|
-
className: (0,
|
|
6420
|
+
className: (0, import_clsx31.default)(
|
|
6296
6421
|
"flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
|
|
6297
6422
|
!!Footer && "mb-20"
|
|
6298
6423
|
),
|
|
6299
|
-
children: /* @__PURE__ */ (0,
|
|
6424
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
6300
6425
|
"ul",
|
|
6301
6426
|
{
|
|
6302
6427
|
id,
|
|
6303
6428
|
"data-testid": testid,
|
|
6304
|
-
className: (0,
|
|
6429
|
+
className: (0, import_clsx31.default)(
|
|
6305
6430
|
"rounded absolute top-0 left-0 w-full flex-1",
|
|
6306
6431
|
"divide-y divide-border-primary-normal",
|
|
6307
6432
|
withBorder && "border border-border-primary-normal"
|
|
@@ -6309,7 +6434,7 @@ function ColumnList(props) {
|
|
|
6309
6434
|
children: [
|
|
6310
6435
|
data.map((item) => {
|
|
6311
6436
|
const id2 = getId(item);
|
|
6312
|
-
return /* @__PURE__ */ (0,
|
|
6437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6313
6438
|
MobileDataGridCard,
|
|
6314
6439
|
{
|
|
6315
6440
|
data: item,
|
|
@@ -6322,7 +6447,7 @@ function ColumnList(props) {
|
|
|
6322
6447
|
id2
|
|
6323
6448
|
);
|
|
6324
6449
|
}),
|
|
6325
|
-
!!Footer && /* @__PURE__ */ (0,
|
|
6450
|
+
!!Footer && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Footer, __spreadValues({}, ctx)) })
|
|
6326
6451
|
]
|
|
6327
6452
|
}
|
|
6328
6453
|
)
|
|
@@ -6331,7 +6456,7 @@ function ColumnList(props) {
|
|
|
6331
6456
|
}
|
|
6332
6457
|
|
|
6333
6458
|
// src/components/MobileDataGrid/index.tsx
|
|
6334
|
-
var
|
|
6459
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
6335
6460
|
function MobileDataGrid(props) {
|
|
6336
6461
|
const {
|
|
6337
6462
|
columns,
|
|
@@ -6353,7 +6478,7 @@ function MobileDataGrid(props) {
|
|
|
6353
6478
|
rowActions,
|
|
6354
6479
|
rounded
|
|
6355
6480
|
} = props;
|
|
6356
|
-
return /* @__PURE__ */ (0,
|
|
6481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
6357
6482
|
GridContextProvider,
|
|
6358
6483
|
{
|
|
6359
6484
|
initialColumns: columns,
|
|
@@ -6365,7 +6490,7 @@ function MobileDataGrid(props) {
|
|
|
6365
6490
|
numberOfColumnsToShow,
|
|
6366
6491
|
primaryKey,
|
|
6367
6492
|
children: [
|
|
6368
|
-
/* @__PURE__ */ (0,
|
|
6493
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
6369
6494
|
Stack,
|
|
6370
6495
|
{
|
|
6371
6496
|
height: "full",
|
|
@@ -6373,7 +6498,7 @@ function MobileDataGrid(props) {
|
|
|
6373
6498
|
overflowX: "hidden",
|
|
6374
6499
|
overflowY: "hidden",
|
|
6375
6500
|
children: [
|
|
6376
|
-
!hideHeader && /* @__PURE__ */ (0,
|
|
6501
|
+
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6377
6502
|
MobileDataGridHeader,
|
|
6378
6503
|
{
|
|
6379
6504
|
header,
|
|
@@ -6381,7 +6506,7 @@ function MobileDataGrid(props) {
|
|
|
6381
6506
|
enableRowSelection
|
|
6382
6507
|
}
|
|
6383
6508
|
),
|
|
6384
|
-
/* @__PURE__ */ (0,
|
|
6509
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6385
6510
|
ColumnList,
|
|
6386
6511
|
{
|
|
6387
6512
|
withBorder,
|
|
@@ -6395,7 +6520,7 @@ function MobileDataGrid(props) {
|
|
|
6395
6520
|
]
|
|
6396
6521
|
}
|
|
6397
6522
|
),
|
|
6398
|
-
/* @__PURE__ */ (0,
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RowDetailModalProvider, {})
|
|
6399
6524
|
]
|
|
6400
6525
|
}
|
|
6401
6526
|
);
|
|
@@ -6406,10 +6531,10 @@ var import_react28 = require("react");
|
|
|
6406
6531
|
|
|
6407
6532
|
// src/components/ImagePlaceholder.tsx
|
|
6408
6533
|
var import_react27 = require("react");
|
|
6409
|
-
var
|
|
6534
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
6410
6535
|
function ImagePlaceholder(props) {
|
|
6411
6536
|
const clipId = (0, import_react27.useId)();
|
|
6412
|
-
return /* @__PURE__ */ (0,
|
|
6537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
6413
6538
|
"svg",
|
|
6414
6539
|
__spreadProps(__spreadValues({
|
|
6415
6540
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6418,15 +6543,15 @@ function ImagePlaceholder(props) {
|
|
|
6418
6543
|
fill: "none"
|
|
6419
6544
|
}, props), {
|
|
6420
6545
|
children: [
|
|
6421
|
-
/* @__PURE__ */ (0,
|
|
6422
|
-
/* @__PURE__ */ (0,
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("g", { clipPath: `url(#${clipId})`, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("rect", { width: props.width, height: props.width, fill: "#F7F7F7", rx: 2 }) }),
|
|
6547
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("clipPath", { id: clipId, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("rect", { width: props.width, height: props.width, fill: "#fff", rx: 2 }) }) })
|
|
6423
6548
|
]
|
|
6424
6549
|
})
|
|
6425
6550
|
);
|
|
6426
6551
|
}
|
|
6427
6552
|
|
|
6428
6553
|
// src/components/ProductImagePreview/Thumbnail.tsx
|
|
6429
|
-
var
|
|
6554
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
6430
6555
|
function Thumbnail({
|
|
6431
6556
|
width,
|
|
6432
6557
|
height,
|
|
@@ -6437,7 +6562,7 @@ function Thumbnail({
|
|
|
6437
6562
|
isPlaceholder = false
|
|
6438
6563
|
}) {
|
|
6439
6564
|
const [imageError, setImageError] = (0, import_react28.useState)(false);
|
|
6440
|
-
return /* @__PURE__ */ (0,
|
|
6565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6441
6566
|
"button",
|
|
6442
6567
|
{
|
|
6443
6568
|
type: "button",
|
|
@@ -6450,7 +6575,7 @@ function Thumbnail({
|
|
|
6450
6575
|
].join(" "),
|
|
6451
6576
|
style: { maxWidth: width, maxHeight: height, aspectRatio: "1 / 1" },
|
|
6452
6577
|
"aria-pressed": isActive && !isPlaceholder ? "true" : "false",
|
|
6453
|
-
children: isPlaceholder ? /* @__PURE__ */ (0,
|
|
6578
|
+
children: isPlaceholder ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ImagePlaceholder, { width: 115, height: 115 }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6454
6579
|
"img",
|
|
6455
6580
|
{
|
|
6456
6581
|
src: imageError ? "/placeholder.svg" : src,
|
|
@@ -6468,8 +6593,8 @@ function Thumbnail({
|
|
|
6468
6593
|
}
|
|
6469
6594
|
|
|
6470
6595
|
// src/components/Grid.tsx
|
|
6471
|
-
var
|
|
6472
|
-
var
|
|
6596
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
6597
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6473
6598
|
var GAP_BY_SIZING = {
|
|
6474
6599
|
none: "gap-0",
|
|
6475
6600
|
"layout-group": "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
@@ -6517,14 +6642,14 @@ var Grid = (_a) => {
|
|
|
6517
6642
|
]);
|
|
6518
6643
|
var _a2, _b2;
|
|
6519
6644
|
const columnClasses = buildColumnClasses(columns, responsive);
|
|
6520
|
-
return /* @__PURE__ */ (0,
|
|
6645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
6521
6646
|
"div",
|
|
6522
6647
|
__spreadProps(__spreadValues({
|
|
6523
6648
|
id,
|
|
6524
6649
|
"data-testid": testid,
|
|
6525
6650
|
style
|
|
6526
6651
|
}, rest), {
|
|
6527
|
-
className: (0,
|
|
6652
|
+
className: (0, import_clsx32.default)(
|
|
6528
6653
|
"w-full grid",
|
|
6529
6654
|
(_a2 = GAP_BY_SIZING[sizing]) != null ? _a2 : GAP_BY_SIZING.container,
|
|
6530
6655
|
padding && ((_b2 = PADDING_BY_SIZING[sizing]) != null ? _b2 : PADDING_BY_SIZING.container),
|
|
@@ -6539,7 +6664,7 @@ var Grid = (_a) => {
|
|
|
6539
6664
|
|
|
6540
6665
|
// src/components/ProductImagePreview/ProductPrimaryImage.tsx
|
|
6541
6666
|
var import_react29 = require("react");
|
|
6542
|
-
var
|
|
6667
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6543
6668
|
var placeholderImageUri = "/placeholder.svg";
|
|
6544
6669
|
function ProductPrimaryImage({
|
|
6545
6670
|
image,
|
|
@@ -6659,7 +6784,7 @@ function ProductPrimaryImage({
|
|
|
6659
6784
|
top: Math.max(0, Math.min(height - size, topRaw))
|
|
6660
6785
|
};
|
|
6661
6786
|
}
|
|
6662
|
-
return /* @__PURE__ */ (0,
|
|
6787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
6663
6788
|
"div",
|
|
6664
6789
|
{
|
|
6665
6790
|
ref: containerRef,
|
|
@@ -6679,7 +6804,7 @@ function ProductPrimaryImage({
|
|
|
6679
6804
|
onPointerLeave: handlePointerLeave,
|
|
6680
6805
|
onPointerMove: handlePointerMove,
|
|
6681
6806
|
children: [
|
|
6682
|
-
/* @__PURE__ */ (0,
|
|
6807
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6683
6808
|
"img",
|
|
6684
6809
|
{
|
|
6685
6810
|
src: imageSrc != null ? imageSrc : placeholderImageUri,
|
|
@@ -6691,7 +6816,7 @@ function ProductPrimaryImage({
|
|
|
6691
6816
|
},
|
|
6692
6817
|
imageSrc
|
|
6693
6818
|
),
|
|
6694
|
-
zoomEnabled && active && lensStyle && /* @__PURE__ */ (0,
|
|
6819
|
+
zoomEnabled && active && lensStyle && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6695
6820
|
"div",
|
|
6696
6821
|
{
|
|
6697
6822
|
"aria-hidden": true,
|
|
@@ -6708,8 +6833,8 @@ function ProductPrimaryImage({
|
|
|
6708
6833
|
var import_react30 = require("react");
|
|
6709
6834
|
|
|
6710
6835
|
// src/components/Surface.tsx
|
|
6711
|
-
var
|
|
6712
|
-
var
|
|
6836
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
6837
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
6713
6838
|
var Surface = (_a) => {
|
|
6714
6839
|
var _b = _a, {
|
|
6715
6840
|
children,
|
|
@@ -6722,11 +6847,11 @@ var Surface = (_a) => {
|
|
|
6722
6847
|
"elevation",
|
|
6723
6848
|
"id"
|
|
6724
6849
|
]);
|
|
6725
|
-
return /* @__PURE__ */ (0,
|
|
6850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
6726
6851
|
"div",
|
|
6727
6852
|
__spreadProps(__spreadValues({
|
|
6728
6853
|
id,
|
|
6729
|
-
className: (0,
|
|
6854
|
+
className: (0, import_clsx33.default)(
|
|
6730
6855
|
"rounded-base",
|
|
6731
6856
|
{
|
|
6732
6857
|
"shadow-2": elevation === 2,
|
|
@@ -6743,7 +6868,7 @@ var Surface = (_a) => {
|
|
|
6743
6868
|
Surface.displayName = "Surface";
|
|
6744
6869
|
|
|
6745
6870
|
// src/components/ProductImagePreview/ZoomWindow.tsx
|
|
6746
|
-
var
|
|
6871
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
6747
6872
|
function ZoomWindow({
|
|
6748
6873
|
image,
|
|
6749
6874
|
width,
|
|
@@ -6801,7 +6926,7 @@ function ZoomWindow({
|
|
|
6801
6926
|
top
|
|
6802
6927
|
};
|
|
6803
6928
|
};
|
|
6804
|
-
return /* @__PURE__ */ (0,
|
|
6929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
6805
6930
|
Surface,
|
|
6806
6931
|
{
|
|
6807
6932
|
elevation: 16,
|
|
@@ -6816,7 +6941,7 @@ function ZoomWindow({
|
|
|
6816
6941
|
userSelect: "none"
|
|
6817
6942
|
}, calculatePosition()),
|
|
6818
6943
|
"aria-hidden": true,
|
|
6819
|
-
children: /* @__PURE__ */ (0,
|
|
6944
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
6820
6945
|
"img",
|
|
6821
6946
|
{
|
|
6822
6947
|
src: imageSrc,
|
|
@@ -6837,8 +6962,8 @@ function ZoomWindow({
|
|
|
6837
6962
|
}
|
|
6838
6963
|
|
|
6839
6964
|
// src/components/ProductImagePreview/CarouselPagination.tsx
|
|
6840
|
-
var
|
|
6841
|
-
var
|
|
6965
|
+
var import_clsx34 = require("clsx");
|
|
6966
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
6842
6967
|
function CarouselPagination({
|
|
6843
6968
|
images,
|
|
6844
6969
|
currentIndex,
|
|
@@ -6846,15 +6971,15 @@ function CarouselPagination({
|
|
|
6846
6971
|
className
|
|
6847
6972
|
}) {
|
|
6848
6973
|
if (!(images == null ? void 0 : images.length)) return null;
|
|
6849
|
-
return /* @__PURE__ */ (0,
|
|
6974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6850
6975
|
"div",
|
|
6851
6976
|
{
|
|
6852
|
-
className: (0,
|
|
6977
|
+
className: (0, import_clsx34.clsx)(
|
|
6853
6978
|
"flex items-center justify-center w-full px-4 md:hidden",
|
|
6854
6979
|
className
|
|
6855
6980
|
),
|
|
6856
6981
|
"aria-label": "Image navigation",
|
|
6857
|
-
children: /* @__PURE__ */ (0,
|
|
6982
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6858
6983
|
"div",
|
|
6859
6984
|
{
|
|
6860
6985
|
className: "grid gap-2 place-items-center",
|
|
@@ -6862,12 +6987,12 @@ function CarouselPagination({
|
|
|
6862
6987
|
gridTemplateColumns: `repeat(${Math.min(images.length, 8)}, 1fr)`
|
|
6863
6988
|
},
|
|
6864
6989
|
role: "tablist",
|
|
6865
|
-
children: images.map((_, index) => /* @__PURE__ */ (0,
|
|
6990
|
+
children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6866
6991
|
"button",
|
|
6867
6992
|
{
|
|
6868
6993
|
type: "button",
|
|
6869
6994
|
onClick: () => onSelect(index),
|
|
6870
|
-
className: (0,
|
|
6995
|
+
className: (0, import_clsx34.clsx)(
|
|
6871
6996
|
"w-4 h-4 transition-all duration-200 focus:outline-none",
|
|
6872
6997
|
index === currentIndex ? "ring-2 ring-brand-400" : "ring ring-neutral-300"
|
|
6873
6998
|
),
|
|
@@ -6886,7 +7011,7 @@ function CarouselPagination({
|
|
|
6886
7011
|
|
|
6887
7012
|
// src/components/ProductImagePreview/MobileImageCarousel.tsx
|
|
6888
7013
|
var import_react31 = require("react");
|
|
6889
|
-
var
|
|
7014
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
6890
7015
|
function MobileImageCarousel({
|
|
6891
7016
|
images,
|
|
6892
7017
|
currentIndex,
|
|
@@ -7001,7 +7126,7 @@ function MobileImageCarousel({
|
|
|
7001
7126
|
[isDragging, currentIndex, onChangeIndex]
|
|
7002
7127
|
);
|
|
7003
7128
|
if (!images.length) return null;
|
|
7004
|
-
return /* @__PURE__ */ (0,
|
|
7129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `md:hidden w-full ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7005
7130
|
"div",
|
|
7006
7131
|
{
|
|
7007
7132
|
ref: containerRef,
|
|
@@ -7016,7 +7141,7 @@ function MobileImageCarousel({
|
|
|
7016
7141
|
onTouchStart: handleTouchStart,
|
|
7017
7142
|
onTouchMove: handleTouchMove,
|
|
7018
7143
|
onTouchEnd: handleTouchEnd,
|
|
7019
|
-
children: /* @__PURE__ */ (0,
|
|
7144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7020
7145
|
"div",
|
|
7021
7146
|
{
|
|
7022
7147
|
className: "flex items-center",
|
|
@@ -7029,7 +7154,7 @@ function MobileImageCarousel({
|
|
|
7029
7154
|
const isActive = index === currentIndex;
|
|
7030
7155
|
const distance = Math.abs(index - currentIndex);
|
|
7031
7156
|
const shouldRender = distance <= 2;
|
|
7032
|
-
return /* @__PURE__ */ (0,
|
|
7157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7033
7158
|
"div",
|
|
7034
7159
|
{
|
|
7035
7160
|
className: "flex-shrink-0 transition-opacity duration-300",
|
|
@@ -7039,7 +7164,7 @@ function MobileImageCarousel({
|
|
|
7039
7164
|
opacity: isActive ? 1 : Math.max(0.3, 1 - distance * 0.3)
|
|
7040
7165
|
},
|
|
7041
7166
|
onClick: () => handleImageClick(index),
|
|
7042
|
-
children: shouldRender ? /* @__PURE__ */ (0,
|
|
7167
|
+
children: shouldRender ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7043
7168
|
"img",
|
|
7044
7169
|
{
|
|
7045
7170
|
src: image.src,
|
|
@@ -7051,7 +7176,7 @@ function MobileImageCarousel({
|
|
|
7051
7176
|
aspectRatio: "1 / 1"
|
|
7052
7177
|
}
|
|
7053
7178
|
}
|
|
7054
|
-
) : /* @__PURE__ */ (0,
|
|
7179
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7055
7180
|
"div",
|
|
7056
7181
|
{
|
|
7057
7182
|
className: "w-full h-full bg-neutral-100 rounded-md border border-gray-200",
|
|
@@ -7187,7 +7312,7 @@ function useProductImagePreview(props) {
|
|
|
7187
7312
|
}
|
|
7188
7313
|
|
|
7189
7314
|
// src/components/ProductImagePreview/index.tsx
|
|
7190
|
-
var
|
|
7315
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
7191
7316
|
var PLACEHOLDER_IMAGES = [
|
|
7192
7317
|
{ src: "", alt: "placeholder" },
|
|
7193
7318
|
{ src: "", alt: "placeholder" }
|
|
@@ -7230,9 +7355,9 @@ function ProductImagePreview(props) {
|
|
|
7230
7355
|
});
|
|
7231
7356
|
if (typeof isMobile === "undefined") return null;
|
|
7232
7357
|
const effectiveZoomEnabled = zoomEnabled && !isMobile;
|
|
7233
|
-
return /* @__PURE__ */ (0,
|
|
7234
|
-
/* @__PURE__ */ (0,
|
|
7235
|
-
/* @__PURE__ */ (0,
|
|
7358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Stack, { sizing: "layout", style: { width, position: "relative" }, children: [
|
|
7359
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex gap-4 items-start", children: [
|
|
7360
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref: primaryImageRef, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7236
7361
|
ProductPrimaryImage,
|
|
7237
7362
|
{
|
|
7238
7363
|
image: active,
|
|
@@ -7246,7 +7371,7 @@ function ProductImagePreview(props) {
|
|
|
7246
7371
|
isPlaceholder: images.length === 0
|
|
7247
7372
|
}
|
|
7248
7373
|
) }),
|
|
7249
|
-
effectiveZoomEnabled && /* @__PURE__ */ (0,
|
|
7374
|
+
effectiveZoomEnabled && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7250
7375
|
ZoomWindow,
|
|
7251
7376
|
{
|
|
7252
7377
|
image: active,
|
|
@@ -7261,7 +7386,7 @@ function ProductImagePreview(props) {
|
|
|
7261
7386
|
}
|
|
7262
7387
|
)
|
|
7263
7388
|
] }) }),
|
|
7264
|
-
/* @__PURE__ */ (0,
|
|
7389
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7265
7390
|
MobileImageCarousel,
|
|
7266
7391
|
{
|
|
7267
7392
|
images,
|
|
@@ -7271,14 +7396,14 @@ function ProductImagePreview(props) {
|
|
|
7271
7396
|
onChangeIndex: handleSelect
|
|
7272
7397
|
}
|
|
7273
7398
|
),
|
|
7274
|
-
/* @__PURE__ */ (0,
|
|
7399
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "hidden md:block", children: images.length <= 3 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7275
7400
|
"div",
|
|
7276
7401
|
{
|
|
7277
7402
|
className: "flex justify-center gap-4",
|
|
7278
7403
|
style: { width: "100%", maxWidth: width },
|
|
7279
7404
|
"aria-label": "Product image thumbnails",
|
|
7280
7405
|
children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
|
|
7281
|
-
(img, i) => /* @__PURE__ */ (0,
|
|
7406
|
+
(img, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { style: { maxWidth: "115px" }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7282
7407
|
Thumbnail,
|
|
7283
7408
|
{
|
|
7284
7409
|
src: img.src,
|
|
@@ -7290,7 +7415,7 @@ function ProductImagePreview(props) {
|
|
|
7290
7415
|
) }, img.src + i)
|
|
7291
7416
|
)
|
|
7292
7417
|
}
|
|
7293
|
-
) : /* @__PURE__ */ (0,
|
|
7418
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7294
7419
|
Grid,
|
|
7295
7420
|
{
|
|
7296
7421
|
sizing: "layout-group",
|
|
@@ -7301,7 +7426,7 @@ function ProductImagePreview(props) {
|
|
|
7301
7426
|
},
|
|
7302
7427
|
columns: thumbsPerRow > 12 ? 12 : thumbsPerRow < 1 ? 1 : thumbsPerRow,
|
|
7303
7428
|
children: (images.length === 0 ? PLACEHOLDER_IMAGES : images).map(
|
|
7304
|
-
(img, i) => /* @__PURE__ */ (0,
|
|
7429
|
+
(img, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7305
7430
|
Thumbnail,
|
|
7306
7431
|
{
|
|
7307
7432
|
src: img.src,
|
|
@@ -7315,7 +7440,7 @@ function ProductImagePreview(props) {
|
|
|
7315
7440
|
)
|
|
7316
7441
|
}
|
|
7317
7442
|
) }),
|
|
7318
|
-
/* @__PURE__ */ (0,
|
|
7443
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7319
7444
|
CarouselPagination,
|
|
7320
7445
|
{
|
|
7321
7446
|
images,
|
|
@@ -7328,8 +7453,8 @@ function ProductImagePreview(props) {
|
|
|
7328
7453
|
|
|
7329
7454
|
// src/components/CompactImagesPreview.tsx
|
|
7330
7455
|
var import_react33 = require("react");
|
|
7331
|
-
var
|
|
7332
|
-
var
|
|
7456
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
7457
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7333
7458
|
function CompactImagesPreview(props) {
|
|
7334
7459
|
const {
|
|
7335
7460
|
sources,
|
|
@@ -7365,7 +7490,7 @@ function CompactImagesPreview(props) {
|
|
|
7365
7490
|
[currentSourceIndex, onChangeSource, imagesCount]
|
|
7366
7491
|
);
|
|
7367
7492
|
if (!sources.length || currentSourceIndex >= sources.length || typeof isMobile === "undefined")
|
|
7368
|
-
return /* @__PURE__ */ (0,
|
|
7493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7369
7494
|
"img",
|
|
7370
7495
|
{
|
|
7371
7496
|
className: "object-center",
|
|
@@ -7382,11 +7507,11 @@ function CompactImagesPreview(props) {
|
|
|
7382
7507
|
}
|
|
7383
7508
|
);
|
|
7384
7509
|
const currentSource = sources[currentSourceIndex];
|
|
7385
|
-
return /* @__PURE__ */ (0,
|
|
7386
|
-
/* @__PURE__ */ (0,
|
|
7510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Stack, { sizing: "layout", children: [
|
|
7511
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7387
7512
|
"img",
|
|
7388
7513
|
{
|
|
7389
|
-
className: (0,
|
|
7514
|
+
className: (0, import_clsx35.default)("object-center", onMainImageClick && "cursor-pointer"),
|
|
7390
7515
|
style: {
|
|
7391
7516
|
width: isMobile ? "100%" : activeImageWidth,
|
|
7392
7517
|
height: activeImageHeight,
|
|
@@ -7399,18 +7524,18 @@ function CompactImagesPreview(props) {
|
|
|
7399
7524
|
onClick: onMainImageClick
|
|
7400
7525
|
}
|
|
7401
7526
|
),
|
|
7402
|
-
/* @__PURE__ */ (0,
|
|
7527
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-row flex-wrap items-center gap-3", children: sources.slice(0, 4).map((source, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7403
7528
|
"button",
|
|
7404
7529
|
{
|
|
7405
7530
|
onClick: (e) => {
|
|
7406
7531
|
e.preventDefault();
|
|
7407
7532
|
handleThumbnailClick(index);
|
|
7408
7533
|
},
|
|
7409
|
-
className: (0,
|
|
7534
|
+
className: (0, import_clsx35.default)(
|
|
7410
7535
|
"cursor-pointer",
|
|
7411
7536
|
currentSourceIndex === index && enableThumbnailBorder ? "ring-2 ring-offset-2 ring-brand-400 transition-discrete duration-300" : "ring-brand-400/0"
|
|
7412
7537
|
),
|
|
7413
|
-
children: /* @__PURE__ */ (0,
|
|
7538
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7414
7539
|
"img",
|
|
7415
7540
|
{
|
|
7416
7541
|
src: source.uri,
|
|
@@ -7431,31 +7556,31 @@ function CompactImagesPreview(props) {
|
|
|
7431
7556
|
}
|
|
7432
7557
|
|
|
7433
7558
|
// src/components/SimpleTable.tsx
|
|
7434
|
-
var
|
|
7435
|
-
var
|
|
7559
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
7560
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7436
7561
|
function SimpleTable({
|
|
7437
7562
|
columns,
|
|
7438
7563
|
data,
|
|
7439
7564
|
additionalRows
|
|
7440
7565
|
}) {
|
|
7441
7566
|
const allRows = additionalRows && additionalRows.length > 0 ? [...data, ...additionalRows] : data;
|
|
7442
|
-
return /* @__PURE__ */ (0,
|
|
7443
|
-
/* @__PURE__ */ (0,
|
|
7567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Stack, { elevation: 4, rounded: true, overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("table", { className: "w-full border-collapse text-left text-sm border overflow-hidden rounded border-border-primary-normal", children: [
|
|
7568
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tr", { className: "bg-background-primary-normal divide-x divide-border-primary-normal", children: columns.map((column, index) => {
|
|
7444
7569
|
var _a, _b;
|
|
7445
|
-
return /* @__PURE__ */ (0,
|
|
7570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7446
7571
|
"th",
|
|
7447
7572
|
{
|
|
7448
7573
|
scope: "col",
|
|
7449
|
-
className: (0,
|
|
7574
|
+
className: (0, import_clsx36.default)(
|
|
7450
7575
|
"p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
|
|
7451
7576
|
((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
|
|
7452
7577
|
),
|
|
7453
|
-
children: /* @__PURE__ */ (0,
|
|
7578
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Subheader, { children: (_b = column.header) == null ? void 0 : _b.toString() })
|
|
7454
7579
|
},
|
|
7455
7580
|
index
|
|
7456
7581
|
);
|
|
7457
7582
|
}) }) }),
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7583
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tbody", { children: allRows.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7459
7584
|
"tr",
|
|
7460
7585
|
{
|
|
7461
7586
|
className: "border-t border-border-primary-normal divide-x divide-border-primary-normal",
|
|
@@ -7463,10 +7588,10 @@ function SimpleTable({
|
|
|
7463
7588
|
var _a;
|
|
7464
7589
|
const rawValue = column.id ? row[column.id] : null;
|
|
7465
7590
|
const cellValue = rawValue != null ? rawValue : null;
|
|
7466
|
-
return /* @__PURE__ */ (0,
|
|
7591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7467
7592
|
"td",
|
|
7468
7593
|
{
|
|
7469
|
-
className: (0,
|
|
7594
|
+
className: (0, import_clsx36.default)(
|
|
7470
7595
|
"p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
|
|
7471
7596
|
(_a = column.meta) == null ? void 0 : _a.headerWidth
|
|
7472
7597
|
),
|
|
@@ -7488,10 +7613,10 @@ var import_react36 = require("react");
|
|
|
7488
7613
|
var import_react35 = require("react");
|
|
7489
7614
|
|
|
7490
7615
|
// src/components/Spinner.tsx
|
|
7491
|
-
var
|
|
7616
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7492
7617
|
var Spinner = ({ size = "small", testid }) => {
|
|
7493
7618
|
const dimension = size === "large" ? 48 : 24;
|
|
7494
|
-
return /* @__PURE__ */ (0,
|
|
7619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
7495
7620
|
"svg",
|
|
7496
7621
|
{
|
|
7497
7622
|
"data-testid": testid,
|
|
@@ -7503,14 +7628,14 @@ var Spinner = ({ size = "small", testid }) => {
|
|
|
7503
7628
|
className: "spinner",
|
|
7504
7629
|
"aria-label": "Loading",
|
|
7505
7630
|
children: [
|
|
7506
|
-
/* @__PURE__ */ (0,
|
|
7507
|
-
/* @__PURE__ */ (0,
|
|
7508
|
-
/* @__PURE__ */ (0,
|
|
7509
|
-
/* @__PURE__ */ (0,
|
|
7510
|
-
/* @__PURE__ */ (0,
|
|
7511
|
-
/* @__PURE__ */ (0,
|
|
7512
|
-
/* @__PURE__ */ (0,
|
|
7513
|
-
/* @__PURE__ */ (0,
|
|
7631
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
7632
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
7633
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
7634
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
7635
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
7636
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
7637
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
7638
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
7514
7639
|
]
|
|
7515
7640
|
}
|
|
7516
7641
|
);
|
|
@@ -7519,7 +7644,7 @@ Spinner.displayName = "Spinner";
|
|
|
7519
7644
|
|
|
7520
7645
|
// src/components/PDFViewer/PDFPage.tsx
|
|
7521
7646
|
var import_react34 = require("react");
|
|
7522
|
-
var
|
|
7647
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7523
7648
|
function PdfPage({
|
|
7524
7649
|
file,
|
|
7525
7650
|
pageNumber,
|
|
@@ -7536,7 +7661,7 @@ function PdfPage({
|
|
|
7536
7661
|
scale: isMobile ? 1 : 1.3
|
|
7537
7662
|
});
|
|
7538
7663
|
if (!pdfDocument) return null;
|
|
7539
|
-
return /* @__PURE__ */ (0,
|
|
7664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7540
7665
|
"canvas",
|
|
7541
7666
|
{
|
|
7542
7667
|
ref: canvasRef,
|
|
@@ -7547,8 +7672,8 @@ function PdfPage({
|
|
|
7547
7672
|
}
|
|
7548
7673
|
|
|
7549
7674
|
// src/components/PDFViewer/PDFElement.tsx
|
|
7550
|
-
var
|
|
7551
|
-
var
|
|
7675
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
7676
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
7552
7677
|
function PDFElement({
|
|
7553
7678
|
b64,
|
|
7554
7679
|
testid,
|
|
@@ -7562,7 +7687,7 @@ function PDFElement({
|
|
|
7562
7687
|
if (pdfHook === null) {
|
|
7563
7688
|
return null;
|
|
7564
7689
|
}
|
|
7565
|
-
return /* @__PURE__ */ (0,
|
|
7690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7566
7691
|
PDFElementInternal,
|
|
7567
7692
|
{
|
|
7568
7693
|
b64,
|
|
@@ -7589,7 +7714,7 @@ function PDFElementInternal({
|
|
|
7589
7714
|
canvasRef
|
|
7590
7715
|
});
|
|
7591
7716
|
const pagesArr = new Array((_a = pdfDocument == null ? void 0 : pdfDocument.numPages) != null ? _a : 1).fill(null);
|
|
7592
|
-
return /* @__PURE__ */ (0,
|
|
7717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7593
7718
|
"div",
|
|
7594
7719
|
{
|
|
7595
7720
|
className: "flex flex-col space-y-4",
|
|
@@ -7597,14 +7722,14 @@ function PDFElementInternal({
|
|
|
7597
7722
|
minHeight: 871,
|
|
7598
7723
|
minWidth: 654
|
|
7599
7724
|
} : void 0,
|
|
7600
|
-
children: !!pdfDocument && !!b64 && !error ? /* @__PURE__ */ (0,
|
|
7725
|
+
children: !!pdfDocument && !!b64 && !error ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Stack, { sizing: "layout-group", children: pagesArr.length > 1 ? pagesArr.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7601
7726
|
"div",
|
|
7602
7727
|
{
|
|
7603
|
-
className: (0,
|
|
7728
|
+
className: (0, import_clsx37.default)(
|
|
7604
7729
|
"flex justify-center border-border-primary-normal",
|
|
7605
7730
|
isMobile ? "border-0" : "border"
|
|
7606
7731
|
),
|
|
7607
|
-
children: /* @__PURE__ */ (0,
|
|
7732
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7608
7733
|
PdfPage,
|
|
7609
7734
|
{
|
|
7610
7735
|
usePDF,
|
|
@@ -7615,14 +7740,14 @@ function PDFElementInternal({
|
|
|
7615
7740
|
)
|
|
7616
7741
|
},
|
|
7617
7742
|
`${testid}-pdf-page-${i + 1}`
|
|
7618
|
-
)) : /* @__PURE__ */ (0,
|
|
7743
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7619
7744
|
"div",
|
|
7620
7745
|
{
|
|
7621
|
-
className: (0,
|
|
7746
|
+
className: (0, import_clsx37.default)(
|
|
7622
7747
|
"flex justify-center border-border-primary-normal",
|
|
7623
7748
|
isMobile ? "border-0" : "border"
|
|
7624
7749
|
),
|
|
7625
|
-
children: /* @__PURE__ */ (0,
|
|
7750
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7626
7751
|
"canvas",
|
|
7627
7752
|
{
|
|
7628
7753
|
"data-testid": testid ? `${testid}-pdf-content` : void 0,
|
|
@@ -7631,7 +7756,7 @@ function PDFElementInternal({
|
|
|
7631
7756
|
}
|
|
7632
7757
|
)
|
|
7633
7758
|
}
|
|
7634
|
-
) }) : /* @__PURE__ */ (0,
|
|
7759
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7635
7760
|
Stack,
|
|
7636
7761
|
{
|
|
7637
7762
|
justify: "center",
|
|
@@ -7639,7 +7764,7 @@ function PDFElementInternal({
|
|
|
7639
7764
|
height: "full",
|
|
7640
7765
|
flexGrow: 1,
|
|
7641
7766
|
"data-testid": testid ? `${testid}-pdf-${error ? "error" : "loading"}` : void 0,
|
|
7642
|
-
children: error ? error : /* @__PURE__ */ (0,
|
|
7767
|
+
children: error ? error : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Spinner, { size: "large" })
|
|
7643
7768
|
}
|
|
7644
7769
|
)
|
|
7645
7770
|
}
|
|
@@ -7647,26 +7772,26 @@ function PDFElementInternal({
|
|
|
7647
7772
|
}
|
|
7648
7773
|
|
|
7649
7774
|
// src/components/PDFViewer/DownloadIcon.tsx
|
|
7650
|
-
var
|
|
7775
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
7651
7776
|
function DownloadIcon({
|
|
7652
7777
|
onClick,
|
|
7653
7778
|
isDownloading,
|
|
7654
7779
|
testid
|
|
7655
7780
|
}) {
|
|
7656
|
-
return /* @__PURE__ */ (0,
|
|
7781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7657
7782
|
Button,
|
|
7658
7783
|
{
|
|
7659
7784
|
testid,
|
|
7660
7785
|
iconOnly: true,
|
|
7661
7786
|
variant: "tertiary",
|
|
7662
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
7787
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: isDownloading ? "cached" : "download" }),
|
|
7663
7788
|
onClick
|
|
7664
7789
|
}
|
|
7665
7790
|
);
|
|
7666
7791
|
}
|
|
7667
7792
|
|
|
7668
7793
|
// src/components/PDFViewer/PDFNavigation.tsx
|
|
7669
|
-
var
|
|
7794
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7670
7795
|
function PdfNavigation({
|
|
7671
7796
|
currentIndex,
|
|
7672
7797
|
total,
|
|
@@ -7678,7 +7803,7 @@ function PdfNavigation({
|
|
|
7678
7803
|
testid,
|
|
7679
7804
|
fileName
|
|
7680
7805
|
}) {
|
|
7681
|
-
return /* @__PURE__ */ (0,
|
|
7806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7682
7807
|
Stack,
|
|
7683
7808
|
{
|
|
7684
7809
|
horizontal: true,
|
|
@@ -7687,44 +7812,44 @@ function PdfNavigation({
|
|
|
7687
7812
|
sizing: "layout-group",
|
|
7688
7813
|
testid: testid ? `${testid}-pdf-navigation` : void 0,
|
|
7689
7814
|
children: [
|
|
7690
|
-
/* @__PURE__ */ (0,
|
|
7691
|
-
/* @__PURE__ */ (0,
|
|
7815
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Stack, { horizontal: true, items: "center", children: [
|
|
7816
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7692
7817
|
Button,
|
|
7693
7818
|
{
|
|
7694
7819
|
iconOnly: true,
|
|
7695
7820
|
variant: "tertiary",
|
|
7696
7821
|
onClick: onPrev,
|
|
7697
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
7822
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "chevron_backward" }),
|
|
7698
7823
|
disabled: disablePrev,
|
|
7699
7824
|
testid: testid ? `${testid}-pdf-file-previous-button` : void 0
|
|
7700
7825
|
}
|
|
7701
7826
|
),
|
|
7702
|
-
/* @__PURE__ */ (0,
|
|
7827
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Heading3, { className: "text-text-primary-normal whitespace-nowrap", children: [
|
|
7703
7828
|
currentIndex + 1,
|
|
7704
7829
|
" / ",
|
|
7705
7830
|
total
|
|
7706
7831
|
] }),
|
|
7707
|
-
/* @__PURE__ */ (0,
|
|
7832
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7708
7833
|
Button,
|
|
7709
7834
|
{
|
|
7710
7835
|
iconOnly: true,
|
|
7711
7836
|
variant: "tertiary",
|
|
7712
7837
|
onClick: onNext,
|
|
7713
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
7838
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "chevron_forward" }),
|
|
7714
7839
|
disabled: disableNext,
|
|
7715
7840
|
testid: testid ? `${testid}-pdf-file-next-button` : void 0
|
|
7716
7841
|
}
|
|
7717
7842
|
),
|
|
7718
|
-
/* @__PURE__ */ (0,
|
|
7843
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Paragraph, { children: (fileName == null ? void 0 : fileName.endsWith(".pdf")) ? fileName : `${fileName}.pdf` })
|
|
7719
7844
|
] }),
|
|
7720
|
-
extraActions && /* @__PURE__ */ (0,
|
|
7845
|
+
extraActions && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center gap-2", children: extraActions })
|
|
7721
7846
|
]
|
|
7722
7847
|
}
|
|
7723
7848
|
) });
|
|
7724
7849
|
}
|
|
7725
7850
|
|
|
7726
7851
|
// src/components/PDFViewer/index.tsx
|
|
7727
|
-
var
|
|
7852
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7728
7853
|
function PDFViewer(props) {
|
|
7729
7854
|
const {
|
|
7730
7855
|
isOpen,
|
|
@@ -7776,7 +7901,7 @@ function PDFViewer(props) {
|
|
|
7776
7901
|
onClose();
|
|
7777
7902
|
}
|
|
7778
7903
|
if (!isMounted) return null;
|
|
7779
|
-
return /* @__PURE__ */ (0,
|
|
7904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7780
7905
|
Modal,
|
|
7781
7906
|
{
|
|
7782
7907
|
testid,
|
|
@@ -7785,7 +7910,7 @@ function PDFViewer(props) {
|
|
|
7785
7910
|
onClose: handleClose,
|
|
7786
7911
|
noWrapper: true,
|
|
7787
7912
|
showButtons: isMobile && customFooter ? !!customActions : !!encodedPdfs.length,
|
|
7788
|
-
customActions: !!encodedPdfs.length && !isMobile && withPagination ? /* @__PURE__ */ (0,
|
|
7913
|
+
customActions: !!encodedPdfs.length && !isMobile && withPagination ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7789
7914
|
PdfNavigation,
|
|
7790
7915
|
{
|
|
7791
7916
|
testid,
|
|
@@ -7801,7 +7926,7 @@ function PDFViewer(props) {
|
|
|
7801
7926
|
) : customActions,
|
|
7802
7927
|
fixedHeightScrolling: true,
|
|
7803
7928
|
headerIconAlign: "right",
|
|
7804
|
-
headerIcon: !isMobile ? /* @__PURE__ */ (0,
|
|
7929
|
+
headerIcon: !isMobile ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7805
7930
|
DownloadIcon,
|
|
7806
7931
|
{
|
|
7807
7932
|
testid: testid ? `${testid}-download-icon` : void 0,
|
|
@@ -7812,7 +7937,7 @@ function PDFViewer(props) {
|
|
|
7812
7937
|
title: isMobile ? title != null ? title : encodedPdfs[currentIndex].fileName : void 0,
|
|
7813
7938
|
size: isMobile ? "screen" : "large",
|
|
7814
7939
|
headerClassname: "bg-brand-400 desktop:bg-background-grouped-primary-normal p-mobile-layout-padding text-brand-text-action-primary-normal",
|
|
7815
|
-
children: /* @__PURE__ */ (0,
|
|
7940
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7816
7941
|
PDFElement,
|
|
7817
7942
|
{
|
|
7818
7943
|
testid,
|
|
@@ -7827,8 +7952,8 @@ function PDFViewer(props) {
|
|
|
7827
7952
|
|
|
7828
7953
|
// src/components/ListGroup.tsx
|
|
7829
7954
|
var import_react37 = require("react");
|
|
7830
|
-
var
|
|
7831
|
-
var
|
|
7955
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
7956
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7832
7957
|
function ListGroup({
|
|
7833
7958
|
title,
|
|
7834
7959
|
defaultOpen = false,
|
|
@@ -7848,24 +7973,24 @@ function ListGroup({
|
|
|
7848
7973
|
if (!isControlled) setUncontrolledOpen(next);
|
|
7849
7974
|
onToggle == null ? void 0 : onToggle(next);
|
|
7850
7975
|
};
|
|
7851
|
-
return /* @__PURE__ */ (0,
|
|
7852
|
-
/* @__PURE__ */ (0,
|
|
7976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { "data-testid": testid, className: (0, import_clsx38.default)("rounded-sm", className), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Stack, { sizing: "layout", noGap: true, children: [
|
|
7977
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
7853
7978
|
"button",
|
|
7854
7979
|
{
|
|
7855
7980
|
type: "button",
|
|
7856
7981
|
onClick: toggle,
|
|
7857
|
-
className: (0,
|
|
7982
|
+
className: (0, import_clsx38.default)(
|
|
7858
7983
|
"w-full flex items-center justify-between text-left",
|
|
7859
7984
|
disabled && "opacity-50 cursor-not-allowed"
|
|
7860
7985
|
),
|
|
7861
7986
|
"aria-expanded": isOpen,
|
|
7862
7987
|
children: [
|
|
7863
|
-
/* @__PURE__ */ (0,
|
|
7864
|
-
/* @__PURE__ */ (0,
|
|
7988
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label, { children: title }),
|
|
7989
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7865
7990
|
Icon,
|
|
7866
7991
|
{
|
|
7867
7992
|
name: "expand_more",
|
|
7868
|
-
className: (0,
|
|
7993
|
+
className: (0, import_clsx38.default)(
|
|
7869
7994
|
"transition-transform duration-200",
|
|
7870
7995
|
isOpen ? "rotate-180" : "rotate-0"
|
|
7871
7996
|
)
|
|
@@ -7874,14 +7999,14 @@ function ListGroup({
|
|
|
7874
7999
|
]
|
|
7875
8000
|
}
|
|
7876
8001
|
),
|
|
7877
|
-
isOpen && /* @__PURE__ */ (0,
|
|
8002
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Stack, { sizing: "layout", paddingTop: true, children })
|
|
7878
8003
|
] }) });
|
|
7879
8004
|
}
|
|
7880
8005
|
|
|
7881
8006
|
// src/components/Pagination.tsx
|
|
7882
8007
|
var import_react38 = require("react");
|
|
7883
|
-
var
|
|
7884
|
-
var
|
|
8008
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
8009
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7885
8010
|
var Pagination = ({
|
|
7886
8011
|
totalPages,
|
|
7887
8012
|
currentPage,
|
|
@@ -7945,7 +8070,7 @@ var Pagination = ({
|
|
|
7945
8070
|
return tokens;
|
|
7946
8071
|
}, [totalPages, currentPage]);
|
|
7947
8072
|
if (totalPages <= 1) return null;
|
|
7948
|
-
const buttonClass = (0,
|
|
8073
|
+
const buttonClass = (0, import_clsx39.default)(
|
|
7949
8074
|
"cursor-pointer disabled:cursor-default",
|
|
7950
8075
|
paddingUsingComponentGap,
|
|
7951
8076
|
"w-8 h-8",
|
|
@@ -7956,14 +8081,14 @@ var Pagination = ({
|
|
|
7956
8081
|
"focus:bg-background-grouped-secondary-normal focus:outline-0",
|
|
7957
8082
|
"disabled:bg-transparent disabled:text-text-action-primary-disabled"
|
|
7958
8083
|
);
|
|
7959
|
-
return /* @__PURE__ */ (0,
|
|
8084
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
7960
8085
|
"nav",
|
|
7961
8086
|
{
|
|
7962
8087
|
id,
|
|
7963
8088
|
"data-testid": testid,
|
|
7964
8089
|
"aria-label": "Pagination",
|
|
7965
8090
|
onKeyDown: handleKey,
|
|
7966
|
-
className: (0,
|
|
8091
|
+
className: (0, import_clsx39.default)(
|
|
7967
8092
|
"flex items-center",
|
|
7968
8093
|
"border border-border-primary-normal",
|
|
7969
8094
|
"bg-background-grouped-primary-normal",
|
|
@@ -7971,19 +8096,19 @@ var Pagination = ({
|
|
|
7971
8096
|
className
|
|
7972
8097
|
),
|
|
7973
8098
|
children: [
|
|
7974
|
-
/* @__PURE__ */ (0,
|
|
8099
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7975
8100
|
"button",
|
|
7976
8101
|
{
|
|
7977
8102
|
disabled: disabled || currentPage <= 1,
|
|
7978
8103
|
"aria-label": "Previous page",
|
|
7979
8104
|
onClick: () => goTo(currentPage - 1),
|
|
7980
|
-
className: (0,
|
|
7981
|
-
children: /* @__PURE__ */ (0,
|
|
8105
|
+
className: (0, import_clsx39.default)(buttonClass, "border-r-1 border-border-primary-normal"),
|
|
8106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "keyboard_arrow_left" })
|
|
7982
8107
|
}
|
|
7983
8108
|
),
|
|
7984
|
-
/* @__PURE__ */ (0,
|
|
8109
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { className: (0, import_clsx39.default)("flex items-center"), children: pageTokens.map((token, index) => {
|
|
7985
8110
|
if (token === "ellipsis") {
|
|
7986
|
-
return /* @__PURE__ */ (0,
|
|
8111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7987
8112
|
"li",
|
|
7988
8113
|
{
|
|
7989
8114
|
className: "w-8 h-8 select-none text-text-action-primary-disabled",
|
|
@@ -7993,29 +8118,29 @@ var Pagination = ({
|
|
|
7993
8118
|
);
|
|
7994
8119
|
}
|
|
7995
8120
|
const selected = token === currentPage;
|
|
7996
|
-
return /* @__PURE__ */ (0,
|
|
8121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7997
8122
|
"button",
|
|
7998
8123
|
{
|
|
7999
8124
|
"aria-label": `Page ${token}`,
|
|
8000
8125
|
"aria-current": selected ? "page" : void 0,
|
|
8001
8126
|
disabled,
|
|
8002
8127
|
onClick: () => goTo(token),
|
|
8003
|
-
className: (0,
|
|
8128
|
+
className: (0, import_clsx39.default)(
|
|
8004
8129
|
buttonClass,
|
|
8005
8130
|
selected && "border-x-1 bg-background-grouped-secondary-normal border-border-primary-normal"
|
|
8006
8131
|
),
|
|
8007
|
-
children: /* @__PURE__ */ (0,
|
|
8132
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Subheader, { align: "center", weight: "bold", children: token })
|
|
8008
8133
|
}
|
|
8009
8134
|
) }, token);
|
|
8010
8135
|
}) }),
|
|
8011
|
-
/* @__PURE__ */ (0,
|
|
8136
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
8012
8137
|
"button",
|
|
8013
8138
|
{
|
|
8014
8139
|
disabled: disabled || currentPage >= totalPages,
|
|
8015
8140
|
"aria-label": "Next page",
|
|
8016
8141
|
onClick: () => goTo(currentPage + 1),
|
|
8017
|
-
className: (0,
|
|
8018
|
-
children: /* @__PURE__ */ (0,
|
|
8142
|
+
className: (0, import_clsx39.default)(buttonClass, "border-l-1 border-border-primary-normal"),
|
|
8143
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "keyboard_arrow_right" })
|
|
8019
8144
|
}
|
|
8020
8145
|
)
|
|
8021
8146
|
]
|
|
@@ -8025,12 +8150,12 @@ var Pagination = ({
|
|
|
8025
8150
|
Pagination.displayName = "Pagination";
|
|
8026
8151
|
|
|
8027
8152
|
// src/components/SkeletonParagraph.tsx
|
|
8028
|
-
var
|
|
8153
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
8029
8154
|
function SkeletonParagraph({
|
|
8030
8155
|
className = "",
|
|
8031
8156
|
heightClassName = "h-6"
|
|
8032
8157
|
}) {
|
|
8033
|
-
return /* @__PURE__ */ (0,
|
|
8158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
8034
8159
|
"div",
|
|
8035
8160
|
{
|
|
8036
8161
|
"aria-label": "Loading content",
|
|
@@ -8041,9 +8166,9 @@ function SkeletonParagraph({
|
|
|
8041
8166
|
}
|
|
8042
8167
|
|
|
8043
8168
|
// src/components/EmptyCartIcon.tsx
|
|
8044
|
-
var
|
|
8169
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
8045
8170
|
function EmptyCartIcon() {
|
|
8046
|
-
return /* @__PURE__ */ (0,
|
|
8171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
8047
8172
|
"svg",
|
|
8048
8173
|
{
|
|
8049
8174
|
width: "211",
|
|
@@ -8051,7 +8176,7 @@ function EmptyCartIcon() {
|
|
|
8051
8176
|
viewBox: "0 0 211 196",
|
|
8052
8177
|
fill: "none",
|
|
8053
8178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8054
|
-
children: /* @__PURE__ */ (0,
|
|
8179
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
8055
8180
|
"path",
|
|
8056
8181
|
{
|
|
8057
8182
|
"fill-rule": "evenodd",
|
|
@@ -8064,10 +8189,35 @@ function EmptyCartIcon() {
|
|
|
8064
8189
|
);
|
|
8065
8190
|
}
|
|
8066
8191
|
|
|
8067
|
-
// src/components/
|
|
8068
|
-
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
8192
|
+
// src/components/SearchResultImage/index.tsx
|
|
8069
8193
|
var import_react39 = require("react");
|
|
8070
|
-
var
|
|
8194
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
8195
|
+
function SearchResultImage({
|
|
8196
|
+
width = 20,
|
|
8197
|
+
height = 20,
|
|
8198
|
+
src,
|
|
8199
|
+
alt
|
|
8200
|
+
}) {
|
|
8201
|
+
const [imageError, setImageError] = (0, import_react39.useState)(false);
|
|
8202
|
+
const showPlaceholder = imageError || !src;
|
|
8203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: showPlaceholder ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ImagePlaceholder, { width, height }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
8204
|
+
"img",
|
|
8205
|
+
{
|
|
8206
|
+
src,
|
|
8207
|
+
alt,
|
|
8208
|
+
width,
|
|
8209
|
+
height,
|
|
8210
|
+
draggable: false,
|
|
8211
|
+
loading: "lazy",
|
|
8212
|
+
onError: () => setImageError(true)
|
|
8213
|
+
}
|
|
8214
|
+
) });
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
// src/components/Alert.tsx
|
|
8218
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
8219
|
+
var import_react40 = require("react");
|
|
8220
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
8071
8221
|
function Alert(_a) {
|
|
8072
8222
|
var _b = _a, {
|
|
8073
8223
|
id,
|
|
@@ -8087,10 +8237,10 @@ function Alert(_a) {
|
|
|
8087
8237
|
"onClose"
|
|
8088
8238
|
]);
|
|
8089
8239
|
const isError = variant === "error";
|
|
8090
|
-
const handleClose = (0,
|
|
8240
|
+
const handleClose = (0, import_react40.useCallback)(() => {
|
|
8091
8241
|
if (onClose) onClose();
|
|
8092
8242
|
}, [onClose]);
|
|
8093
|
-
return /* @__PURE__ */ (0,
|
|
8243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
8094
8244
|
Stack,
|
|
8095
8245
|
__spreadProps(__spreadValues({
|
|
8096
8246
|
id,
|
|
@@ -8106,36 +8256,36 @@ function Alert(_a) {
|
|
|
8106
8256
|
horizontalMobile: true
|
|
8107
8257
|
}, rest), {
|
|
8108
8258
|
children: [
|
|
8109
|
-
/* @__PURE__ */ (0,
|
|
8259
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
8110
8260
|
"div",
|
|
8111
8261
|
{
|
|
8112
|
-
className: (0,
|
|
8262
|
+
className: (0, import_clsx40.default)("min-w-[2px] min-h-full flex", {
|
|
8113
8263
|
"bg-background-critical-normal": isError,
|
|
8114
8264
|
"bg-background-warning-normal": !isError
|
|
8115
8265
|
})
|
|
8116
8266
|
}
|
|
8117
8267
|
),
|
|
8118
|
-
/* @__PURE__ */ (0,
|
|
8268
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
8119
8269
|
"span",
|
|
8120
8270
|
{
|
|
8121
|
-
className: (0,
|
|
8271
|
+
className: (0, import_clsx40.default)({
|
|
8122
8272
|
"text-icon-critical-normal": isError,
|
|
8123
8273
|
"text-icon-warning-normal": !isError
|
|
8124
8274
|
}),
|
|
8125
|
-
children: /* @__PURE__ */ (0,
|
|
8275
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "warning" })
|
|
8126
8276
|
}
|
|
8127
8277
|
),
|
|
8128
|
-
/* @__PURE__ */ (0,
|
|
8129
|
-
/* @__PURE__ */ (0,
|
|
8130
|
-
/* @__PURE__ */ (0,
|
|
8278
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Stack, { flexGrow: 1, sizing: "component", children: [
|
|
8279
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading2, { children: title }),
|
|
8280
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Paragraph, { children: message })
|
|
8131
8281
|
] }),
|
|
8132
|
-
dismissible && /* @__PURE__ */ (0,
|
|
8282
|
+
dismissible && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
8133
8283
|
Button,
|
|
8134
8284
|
{
|
|
8135
8285
|
"aria-label": "Dismiss alert",
|
|
8136
8286
|
iconOnly: true,
|
|
8137
8287
|
variant: "tertiary",
|
|
8138
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
8288
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { name: "close" }),
|
|
8139
8289
|
onClick: handleClose
|
|
8140
8290
|
}
|
|
8141
8291
|
)
|
|
@@ -8170,6 +8320,7 @@ function Alert(_a) {
|
|
|
8170
8320
|
Paragraph,
|
|
8171
8321
|
ProductImagePreview,
|
|
8172
8322
|
Search,
|
|
8323
|
+
SearchResultImage,
|
|
8173
8324
|
Select,
|
|
8174
8325
|
SimpleTable,
|
|
8175
8326
|
SkeletonParagraph,
|