@dmsi/wedgekit-react 0.0.552 → 0.0.554
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-WNGFRQ4Y.js → chunk-TXPN24PW.js} +13 -13
- package/dist/{chunk-Z2QAJY5I.js → chunk-UAMI54FE.js} +1 -1
- 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 +1 -1
- package/dist/{chunk-EZ4KZYKG.js → chunk-YWQEMS2C.js} +3 -3
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
--shadow-4: 0px 0px 4px 0px rgba(0, 0, 0, 0.12), 0px 4px 4px 0px rgba(0, 0, 0, 0.12);
|
|
118
118
|
--shadow-16: 0px 0px 16px 0px rgba(0, 0, 0, 0.12), 0px 16px 16px 0px rgba(0, 0, 0, 0.12);
|
|
119
119
|
--shadow-nav-tab: 0px -4px 4px -4px rgba(0, 0, 0, 0.32) inset;
|
|
120
|
+
--shadow-access-card: 0 1px 2px 0 rgba(0, 0, 0, 0.25), 0 1px 4px 0 rgba(0, 0, 0, 0.15);
|
|
120
121
|
--color-decoration-underline: transparent;
|
|
121
122
|
--text-display-1-desktop: 32px;
|
|
122
123
|
--text-display-1-mobile: 32px;
|
|
@@ -621,6 +622,12 @@
|
|
|
621
622
|
max-width: 1536px;
|
|
622
623
|
}
|
|
623
624
|
}
|
|
625
|
+
.-m-0\.75 {
|
|
626
|
+
margin: calc(var(--spacing) * -0.75);
|
|
627
|
+
}
|
|
628
|
+
.-m-\[3px\] {
|
|
629
|
+
margin: calc(3px * -1);
|
|
630
|
+
}
|
|
624
631
|
.m-4 {
|
|
625
632
|
margin: calc(var(--spacing) * 4);
|
|
626
633
|
}
|
|
@@ -669,6 +676,9 @@
|
|
|
669
676
|
.mr-auto {
|
|
670
677
|
margin-right: auto;
|
|
671
678
|
}
|
|
679
|
+
.mb-2 {
|
|
680
|
+
margin-bottom: calc(var(--spacing) * 2);
|
|
681
|
+
}
|
|
672
682
|
.mb-3 {
|
|
673
683
|
margin-bottom: calc(var(--spacing) * 3);
|
|
674
684
|
}
|
|
@@ -678,6 +688,9 @@
|
|
|
678
688
|
.mb-mobile-container-padding {
|
|
679
689
|
margin-bottom: var(--spacing-mobile-container-padding);
|
|
680
690
|
}
|
|
691
|
+
.mb-mobile-layout-group-gap {
|
|
692
|
+
margin-bottom: var(--spacing-mobile-layout-group-gap);
|
|
693
|
+
}
|
|
681
694
|
.-ml-px {
|
|
682
695
|
margin-left: -1px;
|
|
683
696
|
}
|
|
@@ -1958,6 +1971,9 @@
|
|
|
1958
1971
|
.p-6 {
|
|
1959
1972
|
padding: calc(var(--spacing) * 6);
|
|
1960
1973
|
}
|
|
1974
|
+
.p-\[4px\] {
|
|
1975
|
+
padding: 4px;
|
|
1976
|
+
}
|
|
1961
1977
|
.p-\[calc\(var\(--spacing-desktop-component-padding\)_-_1px\)\] {
|
|
1962
1978
|
padding: calc(var(--spacing-desktop-component-padding) - 1px);
|
|
1963
1979
|
}
|
|
@@ -2069,6 +2085,9 @@
|
|
|
2069
2085
|
.pt-mobile-layout-padding {
|
|
2070
2086
|
padding-top: var(--spacing-mobile-layout-padding);
|
|
2071
2087
|
}
|
|
2088
|
+
.pr-4 {
|
|
2089
|
+
padding-right: calc(var(--spacing) * 4);
|
|
2090
|
+
}
|
|
2072
2091
|
.pr-mobile-component-padding {
|
|
2073
2092
|
padding-right: var(--spacing-mobile-component-padding);
|
|
2074
2093
|
}
|
|
@@ -2313,6 +2332,9 @@
|
|
|
2313
2332
|
.text-inherit {
|
|
2314
2333
|
color: inherit;
|
|
2315
2334
|
}
|
|
2335
|
+
.text-neutral-000 {
|
|
2336
|
+
color: var(--color-neutral-000);
|
|
2337
|
+
}
|
|
2316
2338
|
.text-neutral-100 {
|
|
2317
2339
|
color: var(--color-neutral-100);
|
|
2318
2340
|
}
|
|
@@ -2424,6 +2446,9 @@
|
|
|
2424
2446
|
.opacity-70 {
|
|
2425
2447
|
opacity: 70%;
|
|
2426
2448
|
}
|
|
2449
|
+
.opacity-75 {
|
|
2450
|
+
opacity: 75%;
|
|
2451
|
+
}
|
|
2427
2452
|
.opacity-100 {
|
|
2428
2453
|
opacity: 100%;
|
|
2429
2454
|
}
|
|
@@ -2463,6 +2488,15 @@
|
|
|
2463
2488
|
var(--tw-ring-shadow),
|
|
2464
2489
|
var(--tw-shadow);
|
|
2465
2490
|
}
|
|
2491
|
+
.shadow-access-card {
|
|
2492
|
+
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgba(0, 0, 0, 0.25)), 0 1px 4px 0 var(--tw-shadow-color, rgba(0, 0, 0, 0.15));
|
|
2493
|
+
box-shadow:
|
|
2494
|
+
var(--tw-inset-shadow),
|
|
2495
|
+
var(--tw-inset-ring-shadow),
|
|
2496
|
+
var(--tw-ring-offset-shadow),
|
|
2497
|
+
var(--tw-ring-shadow),
|
|
2498
|
+
var(--tw-shadow);
|
|
2499
|
+
}
|
|
2466
2500
|
.shadow-nav-tab {
|
|
2467
2501
|
--tw-shadow: 0px -4px 4px -4px var(--tw-shadow-color, rgba(0, 0, 0, 0.32)) inset;
|
|
2468
2502
|
box-shadow:
|
|
@@ -3894,6 +3928,11 @@
|
|
|
3894
3928
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
3895
3929
|
}
|
|
3896
3930
|
}
|
|
3931
|
+
.compact\:mb-desktop-compact-layout-group-gap {
|
|
3932
|
+
&:where([data-compact]) {
|
|
3933
|
+
margin-bottom: var(--spacing-desktop-compact-layout-group-gap);
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3897
3936
|
.compact\:grid-cols-1 {
|
|
3898
3937
|
&:where([data-compact]) {
|
|
3899
3938
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
@@ -4220,6 +4259,11 @@
|
|
|
4220
4259
|
margin-bottom: var(--spacing-desktop-container-padding);
|
|
4221
4260
|
}
|
|
4222
4261
|
}
|
|
4262
|
+
.desktop\:mb-desktop-layout-group-gap {
|
|
4263
|
+
@container root (width >= 48rem) {
|
|
4264
|
+
margin-bottom: var(--spacing-desktop-layout-group-gap);
|
|
4265
|
+
}
|
|
4266
|
+
}
|
|
4223
4267
|
.desktop\:block {
|
|
4224
4268
|
@container root (width >= 48rem) {
|
|
4225
4269
|
display: block;
|
|
@@ -1,63 +1,67 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MobileDataGrid
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TXPN24PW.js";
|
|
4
4
|
import "../../chunk-M7INAUAJ.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-GYQA4UIK.js";
|
|
6
|
+
import "../../chunk-7ZCXZDJD.js";
|
|
7
|
+
import "../../chunk-FIVKYEC3.js";
|
|
8
|
+
import "../../chunk-YCDDBSVU.js";
|
|
9
|
+
import "../../chunk-3X3Y4TMS.js";
|
|
8
10
|
import "../../chunk-BQNPOGD5.js";
|
|
9
11
|
import "../../chunk-Y5GD2FJA.js";
|
|
10
12
|
import "../../chunk-MBZ55T2D.js";
|
|
11
13
|
import "../../chunk-2IKT6IHB.js";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-4DXOA7NZ.js";
|
|
15
|
-
import "../../chunk-5BRIDIUA.js";
|
|
14
|
+
import "../../chunk-RZ5EIDX4.js";
|
|
15
|
+
import "../../chunk-AGHBLWDZ.js";
|
|
16
16
|
import "../../chunk-5IFPG6TS.js";
|
|
17
17
|
import "../../chunk-AJ5M6MVX.js";
|
|
18
18
|
import "../../chunk-M4FM3B3R.js";
|
|
19
19
|
import "../../chunk-AT4AWD6B.js";
|
|
20
20
|
import "../../chunk-EWGHVZL5.js";
|
|
21
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-I5BV7UPG.js";
|
|
22
|
+
import "../../chunk-63WMDTVQ.js";
|
|
22
23
|
import "../../chunk-L3BXRDLP.js";
|
|
23
24
|
import "../../chunk-34VEVX5H.js";
|
|
24
25
|
import "../../chunk-LB7UT6F3.js";
|
|
25
26
|
import "../../chunk-MDB26F6T.js";
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-JADOJNBI.js";
|
|
27
|
+
import "../../chunk-ZDXJXDZT.js";
|
|
28
28
|
import "../../chunk-4RJKB7LC.js";
|
|
29
|
+
import "../../chunk-KV7LAH3T.js";
|
|
29
30
|
import "../../chunk-WVVEOCEH.js";
|
|
30
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-EJOPJIRO.js";
|
|
31
32
|
import "../../chunk-AG43RS4Q.js";
|
|
32
|
-
import "../../chunk-AKJUBFJK.js";
|
|
33
|
-
import "../../chunk-Z2QAJY5I.js";
|
|
34
|
-
import "../../chunk-BWPNXY7T.js";
|
|
35
33
|
import "../../chunk-QVWYTQKL.js";
|
|
36
|
-
import "../../chunk-
|
|
34
|
+
import "../../chunk-UAMI54FE.js";
|
|
35
|
+
import "../../chunk-75USUR3I.js";
|
|
36
|
+
import "../../chunk-BWPNXY7T.js";
|
|
37
|
+
import "../../chunk-DWICBU2V.js";
|
|
37
38
|
import "../../chunk-HGLOO52X.js";
|
|
38
39
|
import "../../chunk-MPYAHORM.js";
|
|
39
|
-
import "../../chunk-
|
|
40
|
+
import "../../chunk-YWQEMS2C.js";
|
|
40
41
|
import "../../chunk-BKBJOF4J.js";
|
|
41
42
|
import "../../chunk-NWTVBVBC.js";
|
|
42
43
|
import "../../chunk-HXGJVYGQ.js";
|
|
43
44
|
import "../../chunk-WVUIIBRR.js";
|
|
44
|
-
import "../../chunk-75USUR3I.js";
|
|
45
|
-
import "../../chunk-PS6UJZVH.js";
|
|
46
45
|
import "../../chunk-M7WHWZ2J.js";
|
|
47
|
-
import "../../chunk-
|
|
46
|
+
import "../../chunk-Q3G6Z5DM.js";
|
|
48
47
|
import "../../chunk-YD2JJ2VL.js";
|
|
49
48
|
import "../../chunk-VXWSAIB5.js";
|
|
50
49
|
import "../../chunk-DQRQZE6O.js";
|
|
51
50
|
import "../../chunk-5UH6QUFB.js";
|
|
51
|
+
import "../../chunk-XJF4S3RB.js";
|
|
52
|
+
import "../../chunk-ZCJWOHFN.js";
|
|
53
|
+
import "../../chunk-PS6UJZVH.js";
|
|
54
|
+
import "../../chunk-XR733AKC.js";
|
|
52
55
|
import "../../chunk-BYC6QID5.js";
|
|
53
|
-
import "../../chunk-
|
|
56
|
+
import "../../chunk-CQLRGYHM.js";
|
|
54
57
|
import "../../chunk-KBJZUVLM.js";
|
|
55
|
-
import "../../chunk-
|
|
58
|
+
import "../../chunk-YLC7OHW2.js";
|
|
56
59
|
import "../../chunk-MXSJF6TW.js";
|
|
60
|
+
import "../../chunk-HVYK7COK.js";
|
|
61
|
+
import "../../chunk-SBRRNFOP.js";
|
|
62
|
+
import "../../chunk-MTGNBARV.js";
|
|
57
63
|
import "../../chunk-WMPWWFUJ.js";
|
|
58
|
-
import "../../chunk-AX4M7X4Z.js";
|
|
59
64
|
import "../../chunk-NKUETCDA.js";
|
|
60
|
-
import "../../chunk-45AHDOAU.js";
|
|
61
65
|
import "../../chunk-7KWFEH56.js";
|
|
62
66
|
import "../../chunk-ORMEWXMH.js";
|
|
63
67
|
export {
|
|
@@ -263,7 +263,39 @@ Heading3.displayName = "Heading3";
|
|
|
263
263
|
|
|
264
264
|
// src/components/Button.tsx
|
|
265
265
|
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
266
|
+
|
|
267
|
+
// src/components/Spinner.tsx
|
|
266
268
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
269
|
+
var Spinner = ({ size = "small", testid }) => {
|
|
270
|
+
const dimension = size === "large" ? 48 : 24;
|
|
271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
272
|
+
"svg",
|
|
273
|
+
{
|
|
274
|
+
"data-testid": testid,
|
|
275
|
+
width: dimension,
|
|
276
|
+
height: dimension,
|
|
277
|
+
viewBox: "0 0 24 24",
|
|
278
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
279
|
+
fill: "#1D1E1E",
|
|
280
|
+
className: "spinner",
|
|
281
|
+
"aria-label": "Loading",
|
|
282
|
+
children: [
|
|
283
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
285
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
286
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
288
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
289
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
290
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
};
|
|
295
|
+
Spinner.displayName = "Spinner";
|
|
296
|
+
|
|
297
|
+
// src/components/Button.tsx
|
|
298
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
267
299
|
var Button = (_a) => {
|
|
268
300
|
var _b = _a, {
|
|
269
301
|
variant = "primary",
|
|
@@ -279,7 +311,8 @@ var Button = (_a) => {
|
|
|
279
311
|
colorClassName,
|
|
280
312
|
href,
|
|
281
313
|
id,
|
|
282
|
-
testid
|
|
314
|
+
testid,
|
|
315
|
+
isLoading
|
|
283
316
|
} = _b, props = __objRest(_b, [
|
|
284
317
|
"variant",
|
|
285
318
|
"as",
|
|
@@ -294,7 +327,8 @@ var Button = (_a) => {
|
|
|
294
327
|
"colorClassName",
|
|
295
328
|
"href",
|
|
296
329
|
"id",
|
|
297
|
-
"testid"
|
|
330
|
+
"testid",
|
|
331
|
+
"isLoading"
|
|
298
332
|
]);
|
|
299
333
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx3.default)(
|
|
300
334
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -378,7 +412,7 @@ var Button = (_a) => {
|
|
|
378
412
|
typography.buttonLabel
|
|
379
413
|
);
|
|
380
414
|
const Element = href && !as ? "a" : as;
|
|
381
|
-
return /* @__PURE__ */ (0,
|
|
415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
382
416
|
Element,
|
|
383
417
|
__spreadProps(__spreadValues({
|
|
384
418
|
id,
|
|
@@ -392,7 +426,8 @@ var Button = (_a) => {
|
|
|
392
426
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
393
427
|
children: [
|
|
394
428
|
leftIcon && leftIcon,
|
|
395
|
-
|
|
429
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Spinner, { size: "small" }),
|
|
430
|
+
!iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
396
431
|
rightIcon && rightIcon
|
|
397
432
|
]
|
|
398
433
|
})
|
|
@@ -402,7 +437,7 @@ Button.displayName = "Button";
|
|
|
402
437
|
|
|
403
438
|
// src/components/Icon.tsx
|
|
404
439
|
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
405
|
-
var
|
|
440
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
406
441
|
function Icon(_a) {
|
|
407
442
|
var _b = _a, {
|
|
408
443
|
name,
|
|
@@ -417,7 +452,7 @@ function Icon(_a) {
|
|
|
417
452
|
]);
|
|
418
453
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
419
454
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
420
|
-
return /* @__PURE__ */ (0,
|
|
455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
421
456
|
"span",
|
|
422
457
|
__spreadProps(__spreadValues({}, props), {
|
|
423
458
|
"data-testid": testid,
|
|
@@ -437,7 +472,7 @@ function Icon(_a) {
|
|
|
437
472
|
|
|
438
473
|
// src/components/ModalHeader.tsx
|
|
439
474
|
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
440
|
-
var
|
|
475
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
441
476
|
var ModalHeader = ({
|
|
442
477
|
title,
|
|
443
478
|
hideCloseIcon,
|
|
@@ -450,7 +485,7 @@ var ModalHeader = ({
|
|
|
450
485
|
titleAs: TitleComponent
|
|
451
486
|
}) => {
|
|
452
487
|
const Title = TitleComponent || Heading2;
|
|
453
|
-
return /* @__PURE__ */ (0,
|
|
488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
454
489
|
"div",
|
|
455
490
|
{
|
|
456
491
|
id,
|
|
@@ -465,9 +500,9 @@ var ModalHeader = ({
|
|
|
465
500
|
headerClassname
|
|
466
501
|
),
|
|
467
502
|
children: [
|
|
468
|
-
/* @__PURE__ */ (0,
|
|
503
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center flex-1", layoutGroupGap), children: [
|
|
469
504
|
headerIcon,
|
|
470
|
-
title && /* @__PURE__ */ (0,
|
|
505
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
471
506
|
Title,
|
|
472
507
|
{
|
|
473
508
|
id: id ? `${id}-title` : void 0,
|
|
@@ -477,7 +512,7 @@ var ModalHeader = ({
|
|
|
477
512
|
}
|
|
478
513
|
)
|
|
479
514
|
] }),
|
|
480
|
-
!hideCloseIcon && /* @__PURE__ */ (0,
|
|
515
|
+
!hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
481
516
|
Button,
|
|
482
517
|
{
|
|
483
518
|
id: id ? `${id}-close-button` : void 0,
|
|
@@ -485,7 +520,7 @@ var ModalHeader = ({
|
|
|
485
520
|
iconOnly: true,
|
|
486
521
|
variant: "tertiary",
|
|
487
522
|
onClick: onClose,
|
|
488
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
523
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-brand-text-action-primary-normal desktop:text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "close", size: 24 }) })
|
|
489
524
|
}
|
|
490
525
|
)
|
|
491
526
|
]
|
|
@@ -496,14 +531,14 @@ ModalHeader.displayName = "ModalHeader";
|
|
|
496
531
|
|
|
497
532
|
// src/components/ModalContent.tsx
|
|
498
533
|
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
499
|
-
var
|
|
534
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
500
535
|
function ModalContent({
|
|
501
536
|
fixedHeightScrolling,
|
|
502
537
|
children,
|
|
503
538
|
id,
|
|
504
539
|
testid
|
|
505
540
|
}) {
|
|
506
|
-
return /* @__PURE__ */ (0,
|
|
541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
507
542
|
"div",
|
|
508
543
|
{
|
|
509
544
|
id,
|
|
@@ -521,7 +556,7 @@ ModalContent.displayName = "ModalContent";
|
|
|
521
556
|
|
|
522
557
|
// src/components/ModalButtons.tsx
|
|
523
558
|
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
524
|
-
var
|
|
559
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
525
560
|
var ModalButtons = ({
|
|
526
561
|
onClose,
|
|
527
562
|
onContinue,
|
|
@@ -529,7 +564,7 @@ var ModalButtons = ({
|
|
|
529
564
|
id,
|
|
530
565
|
testid
|
|
531
566
|
}) => {
|
|
532
|
-
return /* @__PURE__ */ (0,
|
|
567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
533
568
|
"div",
|
|
534
569
|
{
|
|
535
570
|
id,
|
|
@@ -539,26 +574,26 @@ var ModalButtons = ({
|
|
|
539
574
|
layoutPaddding,
|
|
540
575
|
layoutGroupGap
|
|
541
576
|
),
|
|
542
|
-
children: customActions != null ? customActions : /* @__PURE__ */ (0,
|
|
543
|
-
/* @__PURE__ */ (0,
|
|
577
|
+
children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
578
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
544
579
|
Button,
|
|
545
580
|
{
|
|
546
581
|
id: id ? `${id}-close-button` : void 0,
|
|
547
582
|
testid: testid ? `${testid}-close-button` : void 0,
|
|
548
583
|
variant: "secondary",
|
|
549
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
584
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 24 }),
|
|
550
585
|
onClick: onClose,
|
|
551
586
|
className: "max-sm:w-full",
|
|
552
587
|
children: "Close"
|
|
553
588
|
}
|
|
554
589
|
),
|
|
555
|
-
/* @__PURE__ */ (0,
|
|
590
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
556
591
|
Button,
|
|
557
592
|
{
|
|
558
593
|
id: id ? `${id}-continue-button` : void 0,
|
|
559
594
|
testid: testid ? `${testid}-continue-button` : void 0,
|
|
560
595
|
variant: "primary",
|
|
561
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
596
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "check", size: 24 }),
|
|
562
597
|
className: "max-sm:w-full",
|
|
563
598
|
onClick: onContinue,
|
|
564
599
|
children: "Continue"
|
|
@@ -572,7 +607,7 @@ ModalButtons.displayName = "ModalButtons";
|
|
|
572
607
|
|
|
573
608
|
// src/components/ModalScrim.tsx
|
|
574
609
|
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
575
|
-
var
|
|
610
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
576
611
|
var ModalScrim = ({
|
|
577
612
|
show = false,
|
|
578
613
|
size = "small",
|
|
@@ -582,7 +617,7 @@ var ModalScrim = ({
|
|
|
582
617
|
id,
|
|
583
618
|
testid
|
|
584
619
|
}) => {
|
|
585
|
-
return /* @__PURE__ */ (0,
|
|
620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
586
621
|
"div",
|
|
587
622
|
{
|
|
588
623
|
id,
|
|
@@ -671,7 +706,7 @@ var useMounted = () => {
|
|
|
671
706
|
};
|
|
672
707
|
|
|
673
708
|
// src/components/Modal.tsx
|
|
674
|
-
var
|
|
709
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
675
710
|
var fadeInScale = (element, duration = 300) => element.animate(
|
|
676
711
|
[
|
|
677
712
|
{ opacity: 0, transform: "scale(0.95)" },
|
|
@@ -844,7 +879,7 @@ var Modal = ({
|
|
|
844
879
|
return null;
|
|
845
880
|
}
|
|
846
881
|
return (0, import_react_dom.createPortal)(
|
|
847
|
-
/* @__PURE__ */ (0,
|
|
882
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
848
883
|
ModalScrim,
|
|
849
884
|
{
|
|
850
885
|
id: id ? `${id}-scrim` : void 0,
|
|
@@ -853,7 +888,7 @@ var Modal = ({
|
|
|
853
888
|
ref: bgRef,
|
|
854
889
|
show: open,
|
|
855
890
|
onClick: backgroundClickHandler,
|
|
856
|
-
children: /* @__PURE__ */ (0,
|
|
891
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
857
892
|
"div",
|
|
858
893
|
{
|
|
859
894
|
id,
|
|
@@ -868,7 +903,7 @@ var Modal = ({
|
|
|
868
903
|
),
|
|
869
904
|
onClick: (e) => e.stopPropagation(),
|
|
870
905
|
children: [
|
|
871
|
-
/* @__PURE__ */ (0,
|
|
906
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
872
907
|
ModalHeader,
|
|
873
908
|
{
|
|
874
909
|
id: id ? `${id}-header` : void 0,
|
|
@@ -882,7 +917,7 @@ var Modal = ({
|
|
|
882
917
|
titleAs: TitleComponent
|
|
883
918
|
}
|
|
884
919
|
),
|
|
885
|
-
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0,
|
|
920
|
+
children && (size !== "screen" || noWrapper) ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
886
921
|
ModalContent,
|
|
887
922
|
{
|
|
888
923
|
id: id ? `${id}-content` : void 0,
|
|
@@ -891,7 +926,7 @@ var Modal = ({
|
|
|
891
926
|
children
|
|
892
927
|
}
|
|
893
928
|
) : children,
|
|
894
|
-
showButtons ? customFooter ? customActions : /* @__PURE__ */ (0,
|
|
929
|
+
showButtons ? customFooter ? customActions : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
895
930
|
ModalButtons,
|
|
896
931
|
{
|
|
897
932
|
id: id ? `${id}-buttons` : void 0,
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Modal
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZDXJXDZT.js";
|
|
5
5
|
import "../chunk-4RJKB7LC.js";
|
|
6
|
+
import "../chunk-KV7LAH3T.js";
|
|
6
7
|
import "../chunk-WVVEOCEH.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-EJOPJIRO.js";
|
|
8
9
|
import "../chunk-AG43RS4Q.js";
|
|
9
|
-
import "../chunk-AKJUBFJK.js";
|
|
10
10
|
import "../chunk-YD2JJ2VL.js";
|
|
11
11
|
import "../chunk-VXWSAIB5.js";
|
|
12
12
|
import "../chunk-DQRQZE6O.js";
|
|
13
13
|
import "../chunk-5UH6QUFB.js";
|
|
14
14
|
import "../chunk-MXSJF6TW.js";
|
|
15
|
+
import "../chunk-HVYK7COK.js";
|
|
16
|
+
import "../chunk-SBRRNFOP.js";
|
|
15
17
|
import "../chunk-NKUETCDA.js";
|
|
16
|
-
import "../chunk-45AHDOAU.js";
|
|
17
18
|
import "../chunk-7KWFEH56.js";
|
|
18
19
|
import "../chunk-ORMEWXMH.js";
|
|
19
20
|
export {
|
|
@@ -207,8 +207,38 @@ var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
|
207
207
|
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
208
208
|
);
|
|
209
209
|
|
|
210
|
-
// src/components/
|
|
210
|
+
// src/components/Spinner.tsx
|
|
211
211
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
212
|
+
var Spinner = ({ size = "small", testid }) => {
|
|
213
|
+
const dimension = size === "large" ? 48 : 24;
|
|
214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
215
|
+
"svg",
|
|
216
|
+
{
|
|
217
|
+
"data-testid": testid,
|
|
218
|
+
width: dimension,
|
|
219
|
+
height: dimension,
|
|
220
|
+
viewBox: "0 0 24 24",
|
|
221
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
222
|
+
fill: "#1D1E1E",
|
|
223
|
+
className: "spinner",
|
|
224
|
+
"aria-label": "Loading",
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
227
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
228
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
229
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
230
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
231
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
232
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
233
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
};
|
|
238
|
+
Spinner.displayName = "Spinner";
|
|
239
|
+
|
|
240
|
+
// src/components/Button.tsx
|
|
241
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
212
242
|
var Button = (_a) => {
|
|
213
243
|
var _b = _a, {
|
|
214
244
|
variant = "primary",
|
|
@@ -224,7 +254,8 @@ var Button = (_a) => {
|
|
|
224
254
|
colorClassName,
|
|
225
255
|
href,
|
|
226
256
|
id,
|
|
227
|
-
testid
|
|
257
|
+
testid,
|
|
258
|
+
isLoading
|
|
228
259
|
} = _b, props = __objRest(_b, [
|
|
229
260
|
"variant",
|
|
230
261
|
"as",
|
|
@@ -239,7 +270,8 @@ var Button = (_a) => {
|
|
|
239
270
|
"colorClassName",
|
|
240
271
|
"href",
|
|
241
272
|
"id",
|
|
242
|
-
"testid"
|
|
273
|
+
"testid",
|
|
274
|
+
"isLoading"
|
|
243
275
|
]);
|
|
244
276
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
245
277
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -323,7 +355,7 @@ var Button = (_a) => {
|
|
|
323
355
|
typography.buttonLabel
|
|
324
356
|
);
|
|
325
357
|
const Element = href && !as ? "a" : as;
|
|
326
|
-
return /* @__PURE__ */ (0,
|
|
358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
327
359
|
Element,
|
|
328
360
|
__spreadProps(__spreadValues({
|
|
329
361
|
id,
|
|
@@ -337,7 +369,8 @@ var Button = (_a) => {
|
|
|
337
369
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
338
370
|
children: [
|
|
339
371
|
leftIcon && leftIcon,
|
|
340
|
-
|
|
372
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Spinner, { size: "small" }),
|
|
373
|
+
!iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
341
374
|
rightIcon && rightIcon
|
|
342
375
|
]
|
|
343
376
|
})
|
|
@@ -347,7 +380,7 @@ Button.displayName = "Button";
|
|
|
347
380
|
|
|
348
381
|
// src/components/Icon.tsx
|
|
349
382
|
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
350
|
-
var
|
|
383
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
351
384
|
function Icon(_a) {
|
|
352
385
|
var _b = _a, {
|
|
353
386
|
name,
|
|
@@ -362,7 +395,7 @@ function Icon(_a) {
|
|
|
362
395
|
]);
|
|
363
396
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
364
397
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
365
|
-
return /* @__PURE__ */ (0,
|
|
398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
366
399
|
"span",
|
|
367
400
|
__spreadProps(__spreadValues({}, props), {
|
|
368
401
|
"data-testid": testid,
|
|
@@ -381,7 +414,7 @@ function Icon(_a) {
|
|
|
381
414
|
}
|
|
382
415
|
|
|
383
416
|
// src/components/ModalButtons.tsx
|
|
384
|
-
var
|
|
417
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
385
418
|
var ModalButtons = ({
|
|
386
419
|
onClose,
|
|
387
420
|
onContinue,
|
|
@@ -389,7 +422,7 @@ var ModalButtons = ({
|
|
|
389
422
|
id,
|
|
390
423
|
testid
|
|
391
424
|
}) => {
|
|
392
|
-
return /* @__PURE__ */ (0,
|
|
425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
393
426
|
"div",
|
|
394
427
|
{
|
|
395
428
|
id,
|
|
@@ -399,26 +432,26 @@ var ModalButtons = ({
|
|
|
399
432
|
layoutPaddding,
|
|
400
433
|
layoutGroupGap
|
|
401
434
|
),
|
|
402
|
-
children: customActions != null ? customActions : /* @__PURE__ */ (0,
|
|
403
|
-
/* @__PURE__ */ (0,
|
|
435
|
+
children: customActions != null ? customActions : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
436
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
404
437
|
Button,
|
|
405
438
|
{
|
|
406
439
|
id: id ? `${id}-close-button` : void 0,
|
|
407
440
|
testid: testid ? `${testid}-close-button` : void 0,
|
|
408
441
|
variant: "secondary",
|
|
409
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
442
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "close", size: 24 }),
|
|
410
443
|
onClick: onClose,
|
|
411
444
|
className: "max-sm:w-full",
|
|
412
445
|
children: "Close"
|
|
413
446
|
}
|
|
414
447
|
),
|
|
415
|
-
/* @__PURE__ */ (0,
|
|
448
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
416
449
|
Button,
|
|
417
450
|
{
|
|
418
451
|
id: id ? `${id}-continue-button` : void 0,
|
|
419
452
|
testid: testid ? `${testid}-continue-button` : void 0,
|
|
420
453
|
variant: "primary",
|
|
421
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
454
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "check", size: 24 }),
|
|
422
455
|
className: "max-sm:w-full",
|
|
423
456
|
onClick: onContinue,
|
|
424
457
|
children: "Continue"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalButtons
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KV7LAH3T.js";
|
|
4
|
+
import "../chunk-HVYK7COK.js";
|
|
5
|
+
import "../chunk-SBRRNFOP.js";
|
|
4
6
|
import "../chunk-NKUETCDA.js";
|
|
5
|
-
import "../chunk-45AHDOAU.js";
|
|
6
7
|
import "../chunk-7KWFEH56.js";
|
|
7
8
|
import "../chunk-ORMEWXMH.js";
|
|
8
9
|
export {
|