@dmsi/wedgekit-react 0.0.922 → 0.0.986
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-LFBTRFTS.js → chunk-2UNLVJU5.js} +4 -4
- package/dist/{chunk-PXIW3XJX.js → chunk-34J6RA4C.js} +1 -1
- package/dist/{chunk-NGXKXYB5.js → chunk-6FZNEFN3.js} +1 -1
- package/dist/{chunk-Z7XANQ47.js → chunk-6M2N7DVS.js} +4 -2
- package/dist/{chunk-RAJY6INK.js → chunk-BBU7JOY2.js} +1 -1
- package/dist/{chunk-UUKHQUSF.js → chunk-F6QO73TV.js} +1 -1
- package/dist/{chunk-BRCBTEQ2.js → chunk-FGXTI3WE.js} +1 -1
- package/dist/{chunk-EJVCDJ7U.js → chunk-HDFO56DN.js} +1 -1
- package/dist/{chunk-XWYDWH4W.js → chunk-HTICQWRA.js} +1 -1
- package/dist/{chunk-N36EJLRW.js → chunk-JZZ4LF6B.js} +2 -2
- package/dist/{chunk-27DJTEAB.js → chunk-MB6IRHTN.js} +1 -1
- package/dist/{chunk-ZACRFGND.js → chunk-NBTWFTSF.js} +94 -65
- package/dist/{chunk-FAW3WWOQ.js → chunk-OC5AXLJY.js} +1 -1
- package/dist/{chunk-VABOQRYA.js → chunk-POZD6R3P.js} +1 -1
- package/dist/{chunk-YYRFXTO7.js → chunk-RLJU65SD.js} +21 -29
- package/dist/{chunk-F7F5BKW5.js → chunk-TBZ243DS.js} +1 -1
- package/dist/{chunk-2EAVEFWY.js → chunk-WHWZ5VVQ.js} +3 -2
- package/dist/{chunk-FSXKJXPN.js → chunk-Y7RCYDF6.js} +8 -2
- package/dist/{chunk-BMAZBFUU.js → chunk-ZMTHWJ7F.js} +15 -2
- package/dist/chunk-ZRFXUER3.js +468 -0
- package/dist/components/Alert.cjs +15 -2
- package/dist/components/Alert.js +2 -2
- package/dist/components/Breadcrumbs.cjs +8 -2
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.cjs +15 -2
- package/dist/components/Button.js +1 -1
- package/dist/components/CalendarRange.cjs +385 -106
- package/dist/components/CalendarRange.css +55 -3
- package/dist/components/CalendarRange.js +14 -14
- package/dist/components/CompactImagesPreview.cjs +7 -4
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/ContentTab.cjs +15 -2
- package/dist/components/ContentTab.js +2 -2
- package/dist/components/ContentTabs.cjs +15 -2
- package/dist/components/ContentTabs.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +385 -106
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +55 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +14 -14
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +385 -106
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +55 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +14 -14
- package/dist/components/DataGrid/PinnedColumns.cjs +385 -106
- package/dist/components/DataGrid/PinnedColumns.css +55 -3
- package/dist/components/DataGrid/PinnedColumns.js +14 -14
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +385 -106
- package/dist/components/DataGrid/TableBody/LoadingCell.css +55 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +14 -14
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +385 -106
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +55 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +14 -14
- package/dist/components/DataGrid/TableBody/index.cjs +385 -106
- package/dist/components/DataGrid/TableBody/index.css +55 -3
- package/dist/components/DataGrid/TableBody/index.js +14 -14
- package/dist/components/DataGrid/index.cjs +385 -106
- package/dist/components/DataGrid/index.css +55 -3
- package/dist/components/DataGrid/index.js +14 -14
- package/dist/components/DataGrid/utils.cjs +385 -106
- package/dist/components/DataGrid/utils.css +55 -3
- package/dist/components/DataGrid/utils.js +14 -14
- package/dist/components/DataGridCell.cjs +7 -4
- package/dist/components/DataGridCell.js +2 -2
- package/dist/components/DateInput.cjs +385 -106
- package/dist/components/DateInput.css +55 -3
- package/dist/components/DateInput.js +14 -14
- package/dist/components/DateRangeInput.cjs +385 -106
- package/dist/components/DateRangeInput.css +55 -3
- package/dist/components/DateRangeInput.js +14 -14
- package/dist/components/EmblaCarousel/index.cjs +94 -65
- package/dist/components/EmblaCarousel/index.js +1 -1
- package/dist/components/FilterGroup.cjs +23 -4
- package/dist/components/FilterGroup.js +3 -3
- package/dist/components/Link.cjs +8 -2
- package/dist/components/Link.js +1 -1
- package/dist/components/Menu.cjs +7 -4
- package/dist/components/Menu.js +2 -2
- package/dist/components/MenuOption.cjs +7 -4
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.css +55 -3
- package/dist/components/MobileDataGrid/ColumnList.js +4 -4
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +385 -106
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +55 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +14 -14
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +3 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +385 -106
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +55 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +14 -14
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +3 -3
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +24 -7
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +9 -9
- package/dist/components/MobileDataGrid/index.cjs +386 -107
- package/dist/components/MobileDataGrid/index.css +55 -3
- package/dist/components/MobileDataGrid/index.js +14 -14
- package/dist/components/Modal.cjs +23 -6
- package/dist/components/Modal.js +6 -6
- package/dist/components/ModalButtons.cjs +15 -2
- package/dist/components/ModalButtons.js +2 -2
- package/dist/components/ModalHeader.cjs +17 -3
- package/dist/components/ModalHeader.js +2 -2
- package/dist/components/NavigationTab.cjs +15 -2
- package/dist/components/NavigationTab.js +2 -2
- package/dist/components/NavigationTabs.cjs +15 -2
- package/dist/components/NavigationTabs.js +2 -2
- package/dist/components/NestedMenu.cjs +22 -6
- package/dist/components/NestedMenu.js +3 -3
- package/dist/components/Notification.cjs +15 -2
- package/dist/components/Notification.js +1 -1
- package/dist/components/OptionPill.cjs +15 -2
- package/dist/components/OptionPill.js +2 -2
- package/dist/components/PDFViewer/DownloadIcon.cjs +25 -7
- package/dist/components/PDFViewer/DownloadIcon.js +4 -4
- package/dist/components/PDFViewer/PDFNavigation.cjs +15 -2
- package/dist/components/PDFViewer/PDFNavigation.js +2 -2
- package/dist/components/PDFViewer/index.cjs +40 -13
- package/dist/components/PDFViewer/index.js +15 -13
- package/dist/components/Password.cjs +7 -4
- package/dist/components/Password.js +2 -2
- package/dist/components/ProductImagePreview/index.cjs +7 -4
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/ProjectBar.cjs +7 -4
- package/dist/components/ProjectBar.js +2 -2
- package/dist/components/Stepper.cjs +61 -15
- package/dist/components/Stepper.js +42 -12
- package/dist/components/Time.js +1 -1
- package/dist/components/Toast.cjs +15 -2
- package/dist/components/Toast.js +1 -1
- package/dist/components/Tooltip.cjs +7 -4
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Upload.cjs +15 -2
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +479 -171
- package/dist/components/index.css +55 -3
- package/dist/components/index.js +14 -14
- package/dist/components/useMenuSystem.cjs +7 -4
- package/dist/components/useMenuSystem.js +2 -2
- package/dist/hooks/index.cjs +346 -73
- package/dist/hooks/index.js +2 -2
- package/dist/index.css +55 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-WOWPMA26.js +0 -170
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalContent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-POZD6R3P.js";
|
|
4
4
|
import {
|
|
5
5
|
useGridContext
|
|
6
6
|
} from "./chunk-5IFPG6TS.js";
|
|
7
7
|
import {
|
|
8
8
|
Modal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JZZ4LF6B.js";
|
|
10
10
|
import {
|
|
11
11
|
Heading2
|
|
12
12
|
} from "./chunk-MXSJF6TW.js";
|
|
13
13
|
import {
|
|
14
14
|
Button
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZMTHWJ7F.js";
|
|
16
16
|
import {
|
|
17
17
|
Stack
|
|
18
18
|
} from "./chunk-BGBIXG5Y.js";
|
|
@@ -60,7 +60,7 @@ function RowDetailModalProvider() {
|
|
|
60
60
|
iconOnly: true,
|
|
61
61
|
variant: "tertiary",
|
|
62
62
|
onClick: closeRowDetail,
|
|
63
|
-
leftIcon: /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "
|
|
63
|
+
leftIcon: /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 24 }) })
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
]
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HT57FLRW.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZMTHWJ7F.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
9
|
} from "./chunk-NKUETCDA.js";
|
|
@@ -13,7 +13,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
13
13
|
function DownloadIcon({
|
|
14
14
|
onClick,
|
|
15
15
|
isDownloading,
|
|
16
|
-
testid
|
|
16
|
+
testid,
|
|
17
|
+
colorClassName
|
|
17
18
|
}) {
|
|
18
19
|
return /* @__PURE__ */ jsx(Tooltip, { message: "Download", position: "bottom", children: /* @__PURE__ */ jsx(
|
|
19
20
|
Button,
|
|
@@ -21,6 +22,7 @@ function DownloadIcon({
|
|
|
21
22
|
testid,
|
|
22
23
|
iconOnly: true,
|
|
23
24
|
variant: "tertiary",
|
|
25
|
+
colorClassName,
|
|
24
26
|
leftIcon: /* @__PURE__ */ jsx(Icon, { name: isDownloading ? "cached" : "download" }),
|
|
25
27
|
onClick
|
|
26
28
|
}
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-4RJKB7LC.js";
|
|
4
4
|
import {
|
|
5
5
|
ModalButtons
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F6QO73TV.js";
|
|
7
7
|
import {
|
|
8
8
|
ModalContent
|
|
9
9
|
} from "./chunk-WVVEOCEH.js";
|
|
10
10
|
import {
|
|
11
11
|
ModalHeader
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WHWZ5VVQ.js";
|
|
13
13
|
import {
|
|
14
14
|
ModalScrim
|
|
15
15
|
} from "./chunk-E7LGUC2B.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-WVGXD7HT.js";
|
|
11
11
|
|
|
12
12
|
// src/components/EmblaCarousel/index.tsx
|
|
13
|
-
import { useCallback as useCallback3, useEffect as useEffect3, useRef } from "react";
|
|
13
|
+
import React, { useCallback as useCallback3, useEffect as useEffect3, useRef } from "react";
|
|
14
14
|
import useEmblaCarousel from "embla-carousel-react";
|
|
15
15
|
import Autoplay from "embla-carousel-autoplay";
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ var useSelectedSnapDisplay = (emblaApi) => {
|
|
|
20
20
|
const [selectedSnap, setSelectedSnap] = useState(0);
|
|
21
21
|
const [snapCount, setSnapCount] = useState(0);
|
|
22
22
|
const updateScrollSnapState = useCallback((emblaApi2) => {
|
|
23
|
-
setSnapCount(emblaApi2.
|
|
23
|
+
setSnapCount(emblaApi2.snapList().length);
|
|
24
24
|
setSelectedSnap(emblaApi2.selectedSnap());
|
|
25
25
|
}, []);
|
|
26
26
|
useEffect(() => {
|
|
@@ -82,6 +82,26 @@ var EmblaCarousel = ({
|
|
|
82
82
|
options,
|
|
83
83
|
autoplay ? [autoplayPlugin] : []
|
|
84
84
|
);
|
|
85
|
+
const emblaRootRef = useRef(null);
|
|
86
|
+
const [emblaHeight, setEmblaHeight] = React.useState(
|
|
87
|
+
void 0
|
|
88
|
+
);
|
|
89
|
+
useEffect3(() => {
|
|
90
|
+
if (!emblaApi || !leftRightChevrons) return;
|
|
91
|
+
const updateHeight = () => {
|
|
92
|
+
const selectedIndex = emblaApi.selectedSnap();
|
|
93
|
+
const slide = emblaApi.slideNodes()[selectedIndex];
|
|
94
|
+
if (slide && emblaRootRef.current) {
|
|
95
|
+
setEmblaHeight(slide.offsetHeight);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
updateHeight();
|
|
99
|
+
emblaApi.on("select", updateHeight).on("reinit", updateHeight);
|
|
100
|
+
return () => {
|
|
101
|
+
emblaApi.off("select", updateHeight);
|
|
102
|
+
emblaApi.off("reinit", updateHeight);
|
|
103
|
+
};
|
|
104
|
+
}, [emblaApi, leftRightChevrons]);
|
|
85
105
|
useEffect3(() => {
|
|
86
106
|
var _a, _b;
|
|
87
107
|
if (!emblaApi || !autoplay) return;
|
|
@@ -155,72 +175,81 @@ var EmblaCarousel = ({
|
|
|
155
175
|
onNextButtonClick();
|
|
156
176
|
(_b = (_a = emblaApi == null ? void 0 : emblaApi.plugins()) == null ? void 0 : _a.autoplay) == null ? void 0 : _b.reset();
|
|
157
177
|
};
|
|
158
|
-
return /* @__PURE__ */ jsxs(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
children
|
|
167
|
-
|
|
168
|
-
) }),
|
|
169
|
-
!leftRightChevrons ? /* @__PURE__ */ jsxs("div", { className: "justify-between hidden desktop:flex", children: [
|
|
170
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
171
|
-
/* @__PURE__ */ jsx(
|
|
172
|
-
PrevButton,
|
|
173
|
-
{
|
|
174
|
-
circleChevron: true,
|
|
175
|
-
onClick: handlePrev,
|
|
176
|
-
disabled: prevBtnDisabled
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
NextButton,
|
|
178
|
+
return /* @__PURE__ */ jsxs(
|
|
179
|
+
"section",
|
|
180
|
+
{
|
|
181
|
+
className: "w-full m-auto grid gap-4 relative",
|
|
182
|
+
"data-testid": testid,
|
|
183
|
+
ref: leftRightChevrons ? emblaRootRef : void 0,
|
|
184
|
+
style: leftRightChevrons && emblaHeight ? { height: emblaHeight, transition: "height 0.3s ease" } : void 0,
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ jsx("div", { className: "embla__viewport overflow-hidden", ref: emblaRef, children: /* @__PURE__ */ jsx(
|
|
187
|
+
"div",
|
|
181
188
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
189
|
+
className: clsx(
|
|
190
|
+
"embla__container flex touch-pan-y touch-pinch-zoom",
|
|
191
|
+
!leftRightChevrons && "desktop:pb-3 gap-2"
|
|
192
|
+
),
|
|
193
|
+
children
|
|
185
194
|
}
|
|
186
|
-
)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
195
|
+
) }),
|
|
196
|
+
!leftRightChevrons ? /* @__PURE__ */ jsxs("div", { className: "justify-between hidden desktop:flex", children: [
|
|
197
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
198
|
+
/* @__PURE__ */ jsx(
|
|
199
|
+
PrevButton,
|
|
200
|
+
{
|
|
201
|
+
circleChevron: true,
|
|
202
|
+
onClick: handlePrev,
|
|
203
|
+
disabled: prevBtnDisabled
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ jsx(
|
|
207
|
+
NextButton,
|
|
208
|
+
{
|
|
209
|
+
circleChevron: true,
|
|
210
|
+
onClick: handleNext,
|
|
211
|
+
disabled: nextBtnDisabled
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ jsx(
|
|
216
|
+
SelectedSnapDisplay,
|
|
217
|
+
{
|
|
218
|
+
selectedSnap,
|
|
219
|
+
snapCount
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
223
|
+
/* @__PURE__ */ jsx(
|
|
224
|
+
PrevButton,
|
|
225
|
+
{
|
|
226
|
+
className: "absolute top-1/2 -translate-y-1/2 left-0 border-transparent! size-10! desktop:size-12!",
|
|
227
|
+
iconClassName: clsx(
|
|
228
|
+
"size-6! desktop:size-8!",
|
|
229
|
+
chevronThemeColor && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
|
|
230
|
+
!chevronThemeColor && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
|
|
231
|
+
),
|
|
232
|
+
onClick: handlePrev,
|
|
233
|
+
disabled: prevBtnDisabled
|
|
234
|
+
}
|
|
217
235
|
),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
236
|
+
/* @__PURE__ */ jsx(
|
|
237
|
+
NextButton,
|
|
238
|
+
{
|
|
239
|
+
className: "absolute top-1/2 -translate-y-1/2 right-0 border-transparent! size-10! desktop:size-12!",
|
|
240
|
+
iconClassName: clsx(
|
|
241
|
+
"size-6! desktop:size-8!",
|
|
242
|
+
chevronThemeColor && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
|
|
243
|
+
!chevronThemeColor && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
|
|
244
|
+
),
|
|
245
|
+
onClick: handleNext,
|
|
246
|
+
disabled: nextBtnDisabled
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
] })
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
);
|
|
224
253
|
};
|
|
225
254
|
var EmblaCarousel_default = EmblaCarousel;
|
|
226
255
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RowDetailModalProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2UNLVJU5.js";
|
|
4
4
|
import {
|
|
5
5
|
GridContextProvider
|
|
6
6
|
} from "./chunk-M7INAUAJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ColumnList,
|
|
9
9
|
no_results_image_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HDFO56DN.js";
|
|
11
11
|
import {
|
|
12
12
|
useGridContext
|
|
13
13
|
} from "./chunk-5IFPG6TS.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
useInfiniteScroll,
|
|
50
50
|
useTableLayout
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZRFXUER3.js";
|
|
52
52
|
import {
|
|
53
53
|
useMatchesMobile
|
|
54
54
|
} from "./chunk-WVGXD7HT.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
calculateCursorPosition,
|
|
60
60
|
formatDate,
|
|
61
61
|
isValidDate
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-TBZ243DS.js";
|
|
63
63
|
import {
|
|
64
64
|
formatCurrencyDisplay
|
|
65
65
|
} from "./chunk-5UH6QUFB.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./chunk-MXSJF6TW.js";
|
|
72
72
|
import {
|
|
73
73
|
Button
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ZMTHWJ7F.js";
|
|
75
75
|
import {
|
|
76
76
|
Stack
|
|
77
77
|
} from "./chunk-BGBIXG5Y.js";
|
|
@@ -733,7 +733,8 @@ function DataGrid({
|
|
|
733
733
|
const {
|
|
734
734
|
columns: tableColumns,
|
|
735
735
|
setColumns: setTableColumns,
|
|
736
|
-
getSavedLayout
|
|
736
|
+
getSavedLayout,
|
|
737
|
+
resetToDefaults
|
|
737
738
|
} = useTableLayout(columns, id != null ? id : testid);
|
|
738
739
|
const [columnOrder, setColumnOrder] = useState3(
|
|
739
740
|
tableColumns.map((c) => c.id)
|
|
@@ -761,21 +762,8 @@ function DataGrid({
|
|
|
761
762
|
[tableColumns]
|
|
762
763
|
);
|
|
763
764
|
const resetDefaultColumnVisibility = useCallback(() => {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
var _a2, _b2;
|
|
767
|
-
const columnId = column.id;
|
|
768
|
-
const isVisible = (_b2 = (_a2 = column.meta) == null ? void 0 : _a2.visible) != null ? _b2 : true;
|
|
769
|
-
const persistedIndex = prev.findIndex((col) => col.id === columnId);
|
|
770
|
-
if (persistedIndex !== -1) {
|
|
771
|
-
prev[persistedIndex].meta = __spreadProps(__spreadValues({}, prev[persistedIndex].meta), {
|
|
772
|
-
visible: isVisible
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
});
|
|
776
|
-
return [...prev];
|
|
777
|
-
}, true);
|
|
778
|
-
}, [columns, setTableColumns]);
|
|
765
|
+
resetToDefaults();
|
|
766
|
+
}, [resetToDefaults]);
|
|
779
767
|
useEffect(() => {
|
|
780
768
|
updateColumnVisibility(true);
|
|
781
769
|
}, [updateColumnVisibility]);
|
|
@@ -811,14 +799,18 @@ function DataGrid({
|
|
|
811
799
|
const toggleColumnVisibility = useCallback(
|
|
812
800
|
(columnId, isVisible) => {
|
|
813
801
|
setTableColumns((prev) => {
|
|
814
|
-
const
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
802
|
+
const newColumns = prev.map((col) => {
|
|
803
|
+
if (col.id === columnId) {
|
|
804
|
+
return __spreadProps(__spreadValues({}, col), {
|
|
805
|
+
meta: __spreadProps(__spreadValues({}, col.meta), {
|
|
806
|
+
visible: isVisible
|
|
807
|
+
})
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
return col;
|
|
811
|
+
});
|
|
812
|
+
return newColumns;
|
|
813
|
+
});
|
|
822
814
|
},
|
|
823
815
|
[setTableColumns]
|
|
824
816
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MXSJF6TW.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZMTHWJ7F.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
9
|
} from "./chunk-NKUETCDA.js";
|
|
@@ -34,7 +34,8 @@ var ModalHeader = ({
|
|
|
34
34
|
id,
|
|
35
35
|
"data-testid": testid,
|
|
36
36
|
className: clsx(
|
|
37
|
-
"flex
|
|
37
|
+
"flex items-center",
|
|
38
|
+
headerIconAlign === void 0 && "justify-between",
|
|
38
39
|
headerIconAlign === "center" && "justify-center",
|
|
39
40
|
headerIconAlign === "right" && "justify-end",
|
|
40
41
|
headerIconAlign === "left" && "justify-start",
|
|
@@ -25,6 +25,7 @@ var Link = (_a) => {
|
|
|
25
25
|
underline = false,
|
|
26
26
|
testid,
|
|
27
27
|
active,
|
|
28
|
+
block = false,
|
|
28
29
|
addOverflow
|
|
29
30
|
} = _b, props = __objRest(_b, [
|
|
30
31
|
"as",
|
|
@@ -38,6 +39,7 @@ var Link = (_a) => {
|
|
|
38
39
|
"underline",
|
|
39
40
|
"testid",
|
|
40
41
|
"active",
|
|
42
|
+
"block",
|
|
41
43
|
"addOverflow"
|
|
42
44
|
]);
|
|
43
45
|
const Component = as;
|
|
@@ -67,7 +69,10 @@ var Link = (_a) => {
|
|
|
67
69
|
"underline decoration-[10%] underline-offset-[32%]",
|
|
68
70
|
!disabled && "hover:decoration-current",
|
|
69
71
|
!disabled && "active:decoration-decoration-underline",
|
|
70
|
-
"flex flex-col
|
|
72
|
+
"flex flex-col justify-center",
|
|
73
|
+
align === "left" && "items-start",
|
|
74
|
+
align === "center" && "items-center",
|
|
75
|
+
align === "right" && "items-end",
|
|
71
76
|
baseTransition,
|
|
72
77
|
primaryStateStyles,
|
|
73
78
|
secondaryStateStyles,
|
|
@@ -83,7 +88,8 @@ var Link = (_a) => {
|
|
|
83
88
|
align === "right" && "text-right",
|
|
84
89
|
paddingY,
|
|
85
90
|
addOverflow && "whitespace-nowrap text-ellipsis overflow-hidden",
|
|
86
|
-
className
|
|
91
|
+
className,
|
|
92
|
+
block ? "w-full" : "w-fit"
|
|
87
93
|
)
|
|
88
94
|
}, props), {
|
|
89
95
|
style: __spreadProps(__spreadValues({}, props.style), {
|
|
@@ -34,7 +34,8 @@ var Button = (_a) => {
|
|
|
34
34
|
href,
|
|
35
35
|
id,
|
|
36
36
|
testid,
|
|
37
|
-
isLoading
|
|
37
|
+
isLoading,
|
|
38
|
+
fontNormal = false
|
|
38
39
|
} = _b, props = __objRest(_b, [
|
|
39
40
|
"variant",
|
|
40
41
|
"as",
|
|
@@ -50,7 +51,8 @@ var Button = (_a) => {
|
|
|
50
51
|
"href",
|
|
51
52
|
"id",
|
|
52
53
|
"testid",
|
|
53
|
-
"isLoading"
|
|
54
|
+
"isLoading",
|
|
55
|
+
"fontNormal"
|
|
54
56
|
]);
|
|
55
57
|
const primaryVariantStyles = variant === "primary" && clsx(
|
|
56
58
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -77,6 +79,15 @@ var Button = (_a) => {
|
|
|
77
79
|
"active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
|
|
78
80
|
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
79
81
|
);
|
|
82
|
+
const quarternaryOutlinedVariantStyles = variant === "quarternary-outlined" && clsx(
|
|
83
|
+
"bg-transparent border-transparent",
|
|
84
|
+
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-primary-normal",
|
|
85
|
+
"bg-transparent border-transparent",
|
|
86
|
+
"hover:bg-transparent hover:border-border-primary-normal hover:text-text-primary-normal",
|
|
87
|
+
"focus:bg-transparent focus:border-border-primary-normal focus:text-text-primary-normal focus:outline-0",
|
|
88
|
+
"active:bg-transparent active:border-transparent active:text-text-primary-active",
|
|
89
|
+
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
90
|
+
);
|
|
80
91
|
const primaryCriticalVariantStyles = variant === "primary-critical" && clsx(
|
|
81
92
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
82
93
|
"bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
|
|
@@ -120,6 +131,7 @@ var Button = (_a) => {
|
|
|
120
131
|
primaryVariantStyles,
|
|
121
132
|
secondaryVariantStyles,
|
|
122
133
|
tertiaryVariantStyles,
|
|
134
|
+
quarternaryOutlinedVariantStyles,
|
|
123
135
|
primaryCriticalVariantStyles,
|
|
124
136
|
secondaryCriticalVariantStyles,
|
|
125
137
|
tertiaryCriticalVariantStyles,
|
|
@@ -130,6 +142,7 @@ var Button = (_a) => {
|
|
|
130
142
|
const labelClasses = clsx(
|
|
131
143
|
"min-h-6 flex items-center justify-center",
|
|
132
144
|
classNameLabel,
|
|
145
|
+
fontNormal && "font-normal!",
|
|
133
146
|
componentPaddingXUsingComponentGap,
|
|
134
147
|
typography.buttonLabel
|
|
135
148
|
);
|