@dmsi/wedgekit-react 0.0.553 → 0.0.555
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-7COWXCPA.js → chunk-45SH6WHE.js} +3 -3
- package/dist/{chunk-KJ5OQPPV.js → chunk-63WMDTVQ.js} +1 -1
- package/dist/{chunk-FJFZBIRG.js → chunk-7ZCXZDJD.js} +3 -3
- package/dist/{chunk-FWCVZWE6.js → chunk-7ZL4GBAD.js} +3 -3
- package/dist/{chunk-5BRIDIUA.js → chunk-AGHBLWDZ.js} +3 -3
- package/dist/{chunk-QYKOR7LE.js → chunk-CQLRGYHM.js} +3 -3
- package/dist/{chunk-XRE52QTN.js → chunk-D5V3PUQQ.js} +6 -6
- package/dist/{chunk-Y3EFHKAG.js → chunk-DWICBU2V.js} +1 -1
- package/dist/{chunk-CMMQTIVM.js → chunk-EJOPJIRO.js} +3 -3
- package/dist/{chunk-K4SIZGMK.js → chunk-EQ2RAI53.js} +1 -1
- package/dist/{chunk-SBGGDIE3.js → chunk-FIVKYEC3.js} +7 -7
- package/dist/{chunk-QMMPHXVE.js → chunk-GVIXW2QS.js} +3 -3
- package/dist/{chunk-ZIPJMN2E.js → chunk-GYQA4UIK.js} +6 -6
- package/dist/{chunk-45AHDOAU.js → chunk-HVYK7COK.js} +9 -3
- package/dist/{chunk-AKJUBFJK.js → chunk-KV7LAH3T.js} +3 -3
- package/dist/{chunk-AX4M7X4Z.js → chunk-MTGNBARV.js} +5 -2
- package/dist/{chunk-MHXYGKWA.js → chunk-Q3G6Z5DM.js} +1 -1
- package/dist/{chunk-4DXOA7NZ.js → chunk-RZ5EIDX4.js} +1 -1
- package/dist/{chunk-PJL5XESN.js → chunk-TL4M56HJ.js} +1 -1
- package/dist/{chunk-Z2QAJY5I.js → chunk-UAMI54FE.js} +1 -1
- package/dist/{chunk-WNGFRQ4Y.js → chunk-WTT5VQPG.js} +15 -15
- package/dist/chunk-XJF4S3RB.js +82 -0
- package/dist/chunk-XR733AKC.js +82 -0
- package/dist/{chunk-7SFFUICM.js → chunk-YLC7OHW2.js} +6 -6
- package/dist/chunk-ZCJWOHFN.js +139 -0
- package/dist/{chunk-JADOJNBI.js → chunk-ZDXJXDZT.js} +4 -4
- package/dist/components/AccessCard.cjs +661 -0
- package/dist/components/AccessCard.js +13 -0
- package/dist/components/AccessCardGroup.cjs +365 -0
- package/dist/components/AccessCardGroup.js +11 -0
- package/dist/components/Accordion.cjs +5 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Alert.cjs +64 -28
- package/dist/components/Alert.js +4 -3
- package/dist/components/Button.cjs +38 -5
- package/dist/components/Button.js +2 -1
- package/dist/components/CalendarRange.cjs +298 -128
- package/dist/components/CalendarRange.css +44 -0
- package/dist/components/CalendarRange.js +28 -24
- package/dist/components/CompactImagesPreview.cjs +5 -2
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/ContentTab.cjs +42 -9
- package/dist/components/ContentTab.js +3 -2
- package/dist/components/ContentTabs.cjs +47 -14
- package/dist/components/ContentTabs.js +3 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +281 -111
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +44 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +28 -24
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +291 -121
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +44 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +28 -24
- package/dist/components/DataGrid/PinnedColumns.cjs +306 -136
- package/dist/components/DataGrid/PinnedColumns.css +44 -0
- package/dist/components/DataGrid/PinnedColumns.js +28 -24
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +282 -112
- package/dist/components/DataGrid/TableBody/LoadingCell.css +44 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +28 -24
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +288 -118
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +44 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +28 -24
- package/dist/components/DataGrid/TableBody/index.cjs +303 -133
- package/dist/components/DataGrid/TableBody/index.css +44 -0
- package/dist/components/DataGrid/TableBody/index.js +28 -24
- package/dist/components/DataGrid/index.cjs +392 -222
- package/dist/components/DataGrid/index.css +44 -0
- package/dist/components/DataGrid/index.js +28 -24
- package/dist/components/DataGrid/utils.cjs +282 -112
- package/dist/components/DataGrid/utils.css +44 -0
- package/dist/components/DataGrid/utils.js +28 -24
- package/dist/components/DataGridCell.js +3 -3
- package/dist/components/DateInput.cjs +311 -141
- package/dist/components/DateInput.css +44 -0
- package/dist/components/DateInput.js +28 -24
- package/dist/components/DateRangeInput.cjs +317 -147
- package/dist/components/DateRangeInput.css +44 -0
- package/dist/components/DateRangeInput.js +28 -24
- package/dist/components/FilterGroup.cjs +87 -52
- package/dist/components/FilterGroup.js +6 -5
- package/dist/components/InputGroup.cjs +1 -1
- package/dist/components/InputGroup.js +1 -1
- package/dist/components/ListGroup.cjs +5 -2
- package/dist/components/ListGroup.js +2 -2
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.cjs +5 -2
- package/dist/components/MobileDataGrid/ColumnList.js +3 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +288 -118
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +44 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +28 -24
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +5 -2
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +293 -120
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +44 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +28 -24
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +5 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +2 -2
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +94 -58
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +8 -7
- package/dist/components/MobileDataGrid/index.cjs +372 -199
- package/dist/components/MobileDataGrid/index.css +44 -0
- package/dist/components/MobileDataGrid/index.js +28 -24
- package/dist/components/Modal.cjs +64 -29
- package/dist/components/Modal.js +5 -4
- package/dist/components/ModalButtons.cjs +47 -14
- package/dist/components/ModalButtons.js +3 -2
- package/dist/components/ModalHeader.cjs +47 -12
- package/dist/components/ModalHeader.js +3 -2
- package/dist/components/NavigationTab.cjs +43 -10
- package/dist/components/NavigationTab.js +3 -2
- package/dist/components/NavigationTabs.cjs +48 -15
- package/dist/components/NavigationTabs.js +3 -2
- package/dist/components/NestedMenu.cjs +48 -13
- package/dist/components/NestedMenu.js +6 -5
- package/dist/components/Notification.cjs +68 -32
- package/dist/components/Notification.js +7 -6
- package/dist/components/OptionPill.cjs +48 -13
- package/dist/components/OptionPill.js +3 -2
- package/dist/components/PDFViewer/DownloadIcon.cjs +46 -13
- package/dist/components/PDFViewer/DownloadIcon.js +3 -2
- package/dist/components/PDFViewer/PDFElement.cjs +5 -2
- package/dist/components/PDFViewer/PDFElement.js +2 -2
- package/dist/components/PDFViewer/PDFNavigation.cjs +64 -28
- package/dist/components/PDFViewer/PDFNavigation.js +4 -3
- package/dist/components/PDFViewer/index.cjs +69 -61
- package/dist/components/PDFViewer/index.js +11 -11
- package/dist/components/ProductImagePreview/index.cjs +5 -2
- package/dist/components/ProductImagePreview/index.js +5 -5
- package/dist/components/Radio.js +5 -134
- package/dist/components/SideMenuGroup.cjs +5 -2
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +5 -2
- package/dist/components/SideMenuItem.js +3 -3
- package/dist/components/SimpleTable.cjs +5 -2
- package/dist/components/SimpleTable.js +2 -2
- package/dist/components/Stack.cjs +5 -2
- package/dist/components/Stack.js +1 -1
- package/dist/components/Stepper.cjs +73 -40
- package/dist/components/Stepper.js +4 -3
- package/dist/components/Swatch.cjs +5 -2
- package/dist/components/Swatch.js +3 -3
- package/dist/components/Time.cjs +5 -2
- package/dist/components/Time.js +2 -2
- package/dist/components/Toast.cjs +51 -16
- package/dist/components/Toast.js +4 -3
- package/dist/components/Upload.cjs +46 -38
- package/dist/components/Upload.js +6 -6
- package/dist/components/index.cjs +537 -231
- package/dist/components/index.css +44 -0
- package/dist/components/index.js +40 -30
- package/dist/index.css +44 -0
- package/package.json +3 -2
- package/dist/{chunk-EZ4KZYKG.js → chunk-YWQEMS2C.js} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
3
|
} from "./chunk-MDB26F6T.js";
|
|
4
|
+
import {
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-HVYK7COK.js";
|
|
4
7
|
import {
|
|
5
8
|
Icon
|
|
6
9
|
} from "./chunk-NKUETCDA.js";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-45AHDOAU.js";
|
|
10
10
|
|
|
11
11
|
// src/components/PDFViewer/DownloadIcon.tsx
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
MobileDataGridColumn
|
|
6
6
|
} from "./chunk-M4FM3B3R.js";
|
|
7
|
+
import {
|
|
8
|
+
Stack
|
|
9
|
+
} from "./chunk-MTGNBARV.js";
|
|
7
10
|
import {
|
|
8
11
|
Paragraph
|
|
9
12
|
} from "./chunk-WMPWWFUJ.js";
|
|
10
|
-
import {
|
|
11
|
-
Stack
|
|
12
|
-
} from "./chunk-AX4M7X4Z.js";
|
|
13
13
|
|
|
14
14
|
// src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
3
|
} from "./chunk-HXGJVYGQ.js";
|
|
4
|
+
import {
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-HVYK7COK.js";
|
|
4
7
|
import {
|
|
5
8
|
Icon
|
|
6
9
|
} from "./chunk-NKUETCDA.js";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-45AHDOAU.js";
|
|
10
10
|
import {
|
|
11
11
|
baseTransition,
|
|
12
12
|
componentGap,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
Subheader
|
|
12
12
|
} from "./chunk-BYC6QID5.js";
|
|
13
|
+
import {
|
|
14
|
+
Stack
|
|
15
|
+
} from "./chunk-MTGNBARV.js";
|
|
13
16
|
import {
|
|
14
17
|
Paragraph
|
|
15
18
|
} from "./chunk-WMPWWFUJ.js";
|
|
16
|
-
import {
|
|
17
|
-
Stack
|
|
18
|
-
} from "./chunk-AX4M7X4Z.js";
|
|
19
19
|
import {
|
|
20
20
|
Icon
|
|
21
21
|
} from "./chunk-NKUETCDA.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Card
|
|
3
3
|
} from "./chunk-KBJZUVLM.js";
|
|
4
|
+
import {
|
|
5
|
+
Stack
|
|
6
|
+
} from "./chunk-MTGNBARV.js";
|
|
4
7
|
import {
|
|
5
8
|
Paragraph
|
|
6
9
|
} from "./chunk-WMPWWFUJ.js";
|
|
7
|
-
import {
|
|
8
|
-
Stack
|
|
9
|
-
} from "./chunk-AX4M7X4Z.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
12
|
} from "./chunk-NKUETCDA.js";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
Heading3
|
|
3
3
|
} from "./chunk-MXSJF6TW.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-HVYK7COK.js";
|
|
7
7
|
import {
|
|
8
8
|
Stack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MTGNBARV.js";
|
|
10
|
+
import {
|
|
11
|
+
Paragraph
|
|
12
|
+
} from "./chunk-WMPWWFUJ.js";
|
|
10
13
|
import {
|
|
11
14
|
Icon
|
|
12
15
|
} from "./chunk-NKUETCDA.js";
|
|
13
|
-
import {
|
|
14
|
-
Button
|
|
15
|
-
} from "./chunk-45AHDOAU.js";
|
|
16
16
|
|
|
17
17
|
// src/components/PDFViewer/PDFNavigation.tsx
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Heading2
|
|
3
3
|
} from "./chunk-MXSJF6TW.js";
|
|
4
|
+
import {
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-HVYK7COK.js";
|
|
4
7
|
import {
|
|
5
8
|
Icon
|
|
6
9
|
} from "./chunk-NKUETCDA.js";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-45AHDOAU.js";
|
|
10
10
|
import {
|
|
11
11
|
layoutGroupGap,
|
|
12
12
|
layoutPaddding
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProductPrimaryImage
|
|
3
|
+
} from "./chunk-YCDDBSVU.js";
|
|
4
|
+
import {
|
|
5
|
+
Thumbnail
|
|
6
|
+
} from "./chunk-3X3Y4TMS.js";
|
|
1
7
|
import {
|
|
2
8
|
ZoomWindow
|
|
3
9
|
} from "./chunk-BQNPOGD5.js";
|
|
@@ -7,12 +13,6 @@ import {
|
|
|
7
13
|
import {
|
|
8
14
|
MobileImageCarousel
|
|
9
15
|
} from "./chunk-2IKT6IHB.js";
|
|
10
|
-
import {
|
|
11
|
-
ProductPrimaryImage
|
|
12
|
-
} from "./chunk-YCDDBSVU.js";
|
|
13
|
-
import {
|
|
14
|
-
Thumbnail
|
|
15
|
-
} from "./chunk-3X3Y4TMS.js";
|
|
16
16
|
import {
|
|
17
17
|
Grid
|
|
18
18
|
} from "./chunk-BWPNXY7T.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-YD2JJ2VL.js";
|
|
22
22
|
import {
|
|
23
23
|
Stack
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MTGNBARV.js";
|
|
25
25
|
|
|
26
26
|
// src/components/ProductImagePreview/useProductImagePreview.ts
|
|
27
27
|
import { useCallback, useEffect, useRef, useState, useMemo } from "react";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalContent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7ZCXZDJD.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-ZDXJXDZT.js";
|
|
10
10
|
import {
|
|
11
11
|
Heading2
|
|
12
12
|
} from "./chunk-MXSJF6TW.js";
|
|
13
|
+
import {
|
|
14
|
+
Button
|
|
15
|
+
} from "./chunk-HVYK7COK.js";
|
|
13
16
|
import {
|
|
14
17
|
Stack
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MTGNBARV.js";
|
|
16
19
|
import {
|
|
17
20
|
Icon
|
|
18
21
|
} from "./chunk-NKUETCDA.js";
|
|
19
|
-
import {
|
|
20
|
-
Button
|
|
21
|
-
} from "./chunk-45AHDOAU.js";
|
|
22
22
|
|
|
23
23
|
// src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
|
|
24
24
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Spinner
|
|
3
|
+
} from "./chunk-SBRRNFOP.js";
|
|
1
4
|
import {
|
|
2
5
|
baseTransition,
|
|
3
6
|
componentGap,
|
|
@@ -30,7 +33,8 @@ var Button = (_a) => {
|
|
|
30
33
|
colorClassName,
|
|
31
34
|
href,
|
|
32
35
|
id,
|
|
33
|
-
testid
|
|
36
|
+
testid,
|
|
37
|
+
isLoading
|
|
34
38
|
} = _b, props = __objRest(_b, [
|
|
35
39
|
"variant",
|
|
36
40
|
"as",
|
|
@@ -45,7 +49,8 @@ var Button = (_a) => {
|
|
|
45
49
|
"colorClassName",
|
|
46
50
|
"href",
|
|
47
51
|
"id",
|
|
48
|
-
"testid"
|
|
52
|
+
"testid",
|
|
53
|
+
"isLoading"
|
|
49
54
|
]);
|
|
50
55
|
const primaryVariantStyles = variant === "primary" && clsx(
|
|
51
56
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -143,7 +148,8 @@ var Button = (_a) => {
|
|
|
143
148
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
144
149
|
children: [
|
|
145
150
|
leftIcon && leftIcon,
|
|
146
|
-
|
|
151
|
+
isLoading && /* @__PURE__ */ jsx(Spinner, { size: "small" }),
|
|
152
|
+
!iconOnly && !isLoading && children && /* @__PURE__ */ jsx("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
147
153
|
rightIcon && rightIcon
|
|
148
154
|
]
|
|
149
155
|
})
|
|
@@ -82,7 +82,8 @@ var Stack = (_a) => {
|
|
|
82
82
|
bottom,
|
|
83
83
|
zIndex,
|
|
84
84
|
flexWrap,
|
|
85
|
-
className
|
|
85
|
+
className,
|
|
86
|
+
unclipEdges
|
|
86
87
|
} = _b, props = __objRest(_b, [
|
|
87
88
|
"children",
|
|
88
89
|
"items",
|
|
@@ -131,7 +132,8 @@ var Stack = (_a) => {
|
|
|
131
132
|
"bottom",
|
|
132
133
|
"zIndex",
|
|
133
134
|
"flexWrap",
|
|
134
|
-
"className"
|
|
135
|
+
"className",
|
|
136
|
+
"unclipEdges"
|
|
135
137
|
]);
|
|
136
138
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
137
139
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
@@ -223,6 +225,7 @@ var Stack = (_a) => {
|
|
|
223
225
|
elevation === 4 && "shadow-4",
|
|
224
226
|
elevation === 16 && "shadow-16",
|
|
225
227
|
rounded && "rounded",
|
|
228
|
+
unclipEdges && "-m-0.75 p-1",
|
|
226
229
|
className
|
|
227
230
|
),
|
|
228
231
|
children
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RowDetailModalProvider
|
|
3
|
+
} from "./chunk-GYQA4UIK.js";
|
|
1
4
|
import {
|
|
2
5
|
GridContextProvider
|
|
3
6
|
} from "./chunk-M7INAUAJ.js";
|
|
4
|
-
import {
|
|
5
|
-
RowDetailModalProvider
|
|
6
|
-
} from "./chunk-ZIPJMN2E.js";
|
|
7
7
|
import {
|
|
8
8
|
ColumnList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RZ5EIDX4.js";
|
|
10
10
|
import {
|
|
11
11
|
useGridContext
|
|
12
12
|
} from "./chunk-5IFPG6TS.js";
|
|
13
13
|
import {
|
|
14
14
|
Theme
|
|
15
15
|
} from "./chunk-EWGHVZL5.js";
|
|
16
|
-
import {
|
|
17
|
-
Tooltip
|
|
18
|
-
} from "./chunk-MDB26F6T.js";
|
|
19
16
|
import {
|
|
20
17
|
Select
|
|
21
18
|
} from "./chunk-I5BV7UPG.js";
|
|
19
|
+
import {
|
|
20
|
+
Tooltip
|
|
21
|
+
} from "./chunk-MDB26F6T.js";
|
|
22
22
|
import {
|
|
23
23
|
DataCellHeader,
|
|
24
24
|
DataGridCell,
|
|
25
25
|
DragAlongCell,
|
|
26
26
|
DraggableCellHeader
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DWICBU2V.js";
|
|
28
28
|
import {
|
|
29
29
|
Menu
|
|
30
30
|
} from "./chunk-HGLOO52X.js";
|
|
31
31
|
import {
|
|
32
32
|
MenuOption
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YWQEMS2C.js";
|
|
34
34
|
import {
|
|
35
35
|
Search
|
|
36
36
|
} from "./chunk-BKBJOF4J.js";
|
|
@@ -68,17 +68,17 @@ import {
|
|
|
68
68
|
Heading3
|
|
69
69
|
} from "./chunk-MXSJF6TW.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
72
|
-
} from "./chunk-
|
|
71
|
+
Button
|
|
72
|
+
} from "./chunk-HVYK7COK.js";
|
|
73
73
|
import {
|
|
74
74
|
Stack
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-MTGNBARV.js";
|
|
76
|
+
import {
|
|
77
|
+
Paragraph
|
|
78
|
+
} from "./chunk-WMPWWFUJ.js";
|
|
76
79
|
import {
|
|
77
80
|
Icon
|
|
78
81
|
} from "./chunk-NKUETCDA.js";
|
|
79
|
-
import {
|
|
80
|
-
Button
|
|
81
|
-
} from "./chunk-45AHDOAU.js";
|
|
82
82
|
import {
|
|
83
83
|
componentGap,
|
|
84
84
|
componentPadding,
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Radio
|
|
3
|
+
} from "./chunk-ZCJWOHFN.js";
|
|
4
|
+
import {
|
|
5
|
+
Caption
|
|
6
|
+
} from "./chunk-PS6UJZVH.js";
|
|
7
|
+
import {
|
|
8
|
+
Subheader
|
|
9
|
+
} from "./chunk-BYC6QID5.js";
|
|
10
|
+
import {
|
|
11
|
+
Icon
|
|
12
|
+
} from "./chunk-NKUETCDA.js";
|
|
13
|
+
|
|
14
|
+
// src/components/AccessCard.tsx
|
|
15
|
+
import clsx from "clsx";
|
|
16
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
function AccessCard(props) {
|
|
18
|
+
const {
|
|
19
|
+
title,
|
|
20
|
+
description,
|
|
21
|
+
status,
|
|
22
|
+
onClick,
|
|
23
|
+
onDefaultGrantedChange,
|
|
24
|
+
defaultGranted,
|
|
25
|
+
testid,
|
|
26
|
+
error,
|
|
27
|
+
unavailable
|
|
28
|
+
} = props;
|
|
29
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ jsxs(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
"data-testid": testid,
|
|
34
|
+
className: clsx(
|
|
35
|
+
"cursor-pointer bg-background-grouped-secondary-normal",
|
|
36
|
+
"px-4 py-2 gap-2",
|
|
37
|
+
"shadow-access-card rounded",
|
|
38
|
+
"flex items-center",
|
|
39
|
+
unavailable && "opacity-50 pointer-events-none"
|
|
40
|
+
),
|
|
41
|
+
onClick: (e) => {
|
|
42
|
+
const target = e.target;
|
|
43
|
+
const targetIsTheRadioComponent = target.closest("label");
|
|
44
|
+
if (targetIsTheRadioComponent || defaultGranted) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
onClick == null ? void 0 : onClick();
|
|
48
|
+
},
|
|
49
|
+
children: [
|
|
50
|
+
status === "granted" && /* @__PURE__ */ jsx(
|
|
51
|
+
Radio,
|
|
52
|
+
{
|
|
53
|
+
testid: testid ? `${testid}-radio` : void 0,
|
|
54
|
+
checked: defaultGranted,
|
|
55
|
+
onChange: () => {
|
|
56
|
+
if (unavailable) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
onDefaultGrantedChange == null ? void 0 : onDefaultGrantedChange();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 flex-1", children: [
|
|
64
|
+
/* @__PURE__ */ jsx(Subheader, { children: title }),
|
|
65
|
+
description && /* @__PURE__ */ jsx(Caption, { color: "text-primary-normal", children: description })
|
|
66
|
+
] }),
|
|
67
|
+
!defaultGranted && /* @__PURE__ */ jsx(
|
|
68
|
+
Icon,
|
|
69
|
+
{
|
|
70
|
+
name: status === "granted" ? "remove" : "add"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
error && /* @__PURE__ */ jsx(Caption, { style: "error", children: error })
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
AccessCard
|
|
82
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Subheader
|
|
3
|
+
} from "./chunk-BYC6QID5.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "./chunk-NKUETCDA.js";
|
|
7
|
+
|
|
8
|
+
// src/components/AccessCardGroup.tsx
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import { useState } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
function AccessCardGroup(props) {
|
|
13
|
+
const {
|
|
14
|
+
title,
|
|
15
|
+
children,
|
|
16
|
+
status,
|
|
17
|
+
expanded,
|
|
18
|
+
hasDefault,
|
|
19
|
+
onClick,
|
|
20
|
+
onGrantDenyClick,
|
|
21
|
+
testid,
|
|
22
|
+
unavailable
|
|
23
|
+
} = props;
|
|
24
|
+
const [expand, setExpand] = useState(expanded);
|
|
25
|
+
return /* @__PURE__ */ jsxs("div", { "data-testid": testid, className: "mb-mobile-layout-group-gap desktop:mb-desktop-layout-group-gap compact:mb-desktop-compact-layout-group-gap", children: [
|
|
26
|
+
/* @__PURE__ */ jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: clsx(
|
|
30
|
+
"flex items-center",
|
|
31
|
+
"p-2 pr-4 gap-2",
|
|
32
|
+
"rounded",
|
|
33
|
+
"bg-neutral-500 text-neutral-000",
|
|
34
|
+
"cursor-pointer",
|
|
35
|
+
expand && "mb-2",
|
|
36
|
+
unavailable && "opacity-75"
|
|
37
|
+
),
|
|
38
|
+
onClick: () => {
|
|
39
|
+
setExpand(!expand);
|
|
40
|
+
onClick == null ? void 0 : onClick();
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
Icon,
|
|
45
|
+
{
|
|
46
|
+
name: "keyboard_arrow_down",
|
|
47
|
+
className: clsx(
|
|
48
|
+
expand && "rotate-180",
|
|
49
|
+
"transform transition-all duration-300 ease-in-out"
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx(Subheader, { children: title }) }),
|
|
54
|
+
!hasDefault && /* @__PURE__ */ jsx(
|
|
55
|
+
Icon,
|
|
56
|
+
{
|
|
57
|
+
name: status === "granted" ? "remove" : "add",
|
|
58
|
+
onClick: (e) => {
|
|
59
|
+
e.stopPropagation();
|
|
60
|
+
onGrantDenyClick == null ? void 0 : onGrantDenyClick();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: clsx(
|
|
71
|
+
"grid transition-all duration-300 ease-in-out",
|
|
72
|
+
expand ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
73
|
+
),
|
|
74
|
+
children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden -m-[3px] p-[4px]", children })
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
AccessCardGroup
|
|
82
|
+
};
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
Heading2
|
|
3
3
|
} from "./chunk-MXSJF6TW.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-HVYK7COK.js";
|
|
7
7
|
import {
|
|
8
8
|
Stack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MTGNBARV.js";
|
|
10
|
+
import {
|
|
11
|
+
Paragraph
|
|
12
|
+
} from "./chunk-WMPWWFUJ.js";
|
|
10
13
|
import {
|
|
11
14
|
Icon
|
|
12
15
|
} from "./chunk-NKUETCDA.js";
|
|
13
|
-
import {
|
|
14
|
-
Button
|
|
15
|
-
} from "./chunk-45AHDOAU.js";
|
|
16
16
|
import {
|
|
17
17
|
__objRest,
|
|
18
18
|
__spreadProps,
|