@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,52 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
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 {
|
|
42
43
|
InputBase
|
|
43
44
|
} from "../chunk-NWTVBVBC.js";
|
|
44
45
|
import "../chunk-HXGJVYGQ.js";
|
|
45
46
|
import "../chunk-WVUIIBRR.js";
|
|
46
|
-
import "../chunk-75USUR3I.js";
|
|
47
|
-
import "../chunk-PS6UJZVH.js";
|
|
48
47
|
import "../chunk-M7WHWZ2J.js";
|
|
49
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-Q3G6Z5DM.js";
|
|
50
49
|
import "../chunk-YD2JJ2VL.js";
|
|
51
50
|
import {
|
|
52
51
|
findDocumentRoot
|
|
@@ -60,17 +59,22 @@ import {
|
|
|
60
59
|
parseInputDate
|
|
61
60
|
} from "../chunk-DQRQZE6O.js";
|
|
62
61
|
import "../chunk-5UH6QUFB.js";
|
|
62
|
+
import "../chunk-XJF4S3RB.js";
|
|
63
|
+
import "../chunk-ZCJWOHFN.js";
|
|
64
|
+
import "../chunk-PS6UJZVH.js";
|
|
65
|
+
import "../chunk-XR733AKC.js";
|
|
63
66
|
import "../chunk-BYC6QID5.js";
|
|
64
|
-
import "../chunk-
|
|
67
|
+
import "../chunk-CQLRGYHM.js";
|
|
65
68
|
import "../chunk-KBJZUVLM.js";
|
|
66
|
-
import "../chunk-
|
|
69
|
+
import "../chunk-YLC7OHW2.js";
|
|
67
70
|
import "../chunk-MXSJF6TW.js";
|
|
71
|
+
import "../chunk-HVYK7COK.js";
|
|
72
|
+
import "../chunk-SBRRNFOP.js";
|
|
73
|
+
import "../chunk-MTGNBARV.js";
|
|
68
74
|
import "../chunk-WMPWWFUJ.js";
|
|
69
|
-
import "../chunk-AX4M7X4Z.js";
|
|
70
75
|
import {
|
|
71
76
|
Icon
|
|
72
77
|
} from "../chunk-NKUETCDA.js";
|
|
73
|
-
import "../chunk-45AHDOAU.js";
|
|
74
78
|
import "../chunk-7KWFEH56.js";
|
|
75
79
|
import {
|
|
76
80
|
__objRest,
|
|
@@ -471,7 +471,39 @@ var import_clsx7 = __toESM(require("clsx"), 1);
|
|
|
471
471
|
|
|
472
472
|
// src/components/Button.tsx
|
|
473
473
|
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
474
|
+
|
|
475
|
+
// src/components/Spinner.tsx
|
|
474
476
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
477
|
+
var Spinner = ({ size = "small", testid }) => {
|
|
478
|
+
const dimension = size === "large" ? 48 : 24;
|
|
479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
480
|
+
"svg",
|
|
481
|
+
{
|
|
482
|
+
"data-testid": testid,
|
|
483
|
+
width: dimension,
|
|
484
|
+
height: dimension,
|
|
485
|
+
viewBox: "0 0 24 24",
|
|
486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
487
|
+
fill: "#1D1E1E",
|
|
488
|
+
className: "spinner",
|
|
489
|
+
"aria-label": "Loading",
|
|
490
|
+
children: [
|
|
491
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "4", r: "2", opacity: "1" }),
|
|
492
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "17.666", cy: "6.334", r: "2", opacity: "0.125" }),
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "20", cy: "12", r: "2", opacity: "0.25" }),
|
|
494
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "17.666", cy: "17.666", r: "2", opacity: "0.375" }),
|
|
495
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "20", r: "2", opacity: "0.5" }),
|
|
496
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "6.334", cy: "17.666", r: "2", opacity: "0.625" }),
|
|
497
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "4", cy: "12", r: "2", opacity: "0.75" }),
|
|
498
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "6.334", cy: "6.334", r: "2", opacity: "0.875" })
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
);
|
|
502
|
+
};
|
|
503
|
+
Spinner.displayName = "Spinner";
|
|
504
|
+
|
|
505
|
+
// src/components/Button.tsx
|
|
506
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
475
507
|
var Button = (_a) => {
|
|
476
508
|
var _b = _a, {
|
|
477
509
|
variant = "primary",
|
|
@@ -487,7 +519,8 @@ var Button = (_a) => {
|
|
|
487
519
|
colorClassName,
|
|
488
520
|
href,
|
|
489
521
|
id,
|
|
490
|
-
testid
|
|
522
|
+
testid,
|
|
523
|
+
isLoading
|
|
491
524
|
} = _b, props = __objRest(_b, [
|
|
492
525
|
"variant",
|
|
493
526
|
"as",
|
|
@@ -502,7 +535,8 @@ var Button = (_a) => {
|
|
|
502
535
|
"colorClassName",
|
|
503
536
|
"href",
|
|
504
537
|
"id",
|
|
505
|
-
"testid"
|
|
538
|
+
"testid",
|
|
539
|
+
"isLoading"
|
|
506
540
|
]);
|
|
507
541
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx6.default)(
|
|
508
542
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -586,7 +620,7 @@ var Button = (_a) => {
|
|
|
586
620
|
typography.buttonLabel
|
|
587
621
|
);
|
|
588
622
|
const Element = href && !as ? "a" : as;
|
|
589
|
-
return /* @__PURE__ */ (0,
|
|
623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
590
624
|
Element,
|
|
591
625
|
__spreadProps(__spreadValues({
|
|
592
626
|
id,
|
|
@@ -600,7 +634,8 @@ var Button = (_a) => {
|
|
|
600
634
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
601
635
|
children: [
|
|
602
636
|
leftIcon && leftIcon,
|
|
603
|
-
|
|
637
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, { size: "small" }),
|
|
638
|
+
!iconOnly && !isLoading && children && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
604
639
|
rightIcon && rightIcon
|
|
605
640
|
]
|
|
606
641
|
})
|
|
@@ -609,7 +644,7 @@ var Button = (_a) => {
|
|
|
609
644
|
Button.displayName = "Button";
|
|
610
645
|
|
|
611
646
|
// src/components/OptionPill.tsx
|
|
612
|
-
var
|
|
647
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
613
648
|
var OptionPill = (_a) => {
|
|
614
649
|
var _b = _a, {
|
|
615
650
|
id,
|
|
@@ -660,7 +695,7 @@ var OptionPill = (_a) => {
|
|
|
660
695
|
disabled && !selected && "text-text-primary-disabled",
|
|
661
696
|
disabled && selected && "text-text-on-action-primary-disabled"
|
|
662
697
|
);
|
|
663
|
-
return /* @__PURE__ */ (0,
|
|
698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
664
699
|
"div",
|
|
665
700
|
__spreadProps(__spreadValues(__spreadValues({
|
|
666
701
|
id,
|
|
@@ -678,7 +713,7 @@ var OptionPill = (_a) => {
|
|
|
678
713
|
textColor
|
|
679
714
|
),
|
|
680
715
|
children: [
|
|
681
|
-
/* @__PURE__ */ (0,
|
|
716
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
682
717
|
Label,
|
|
683
718
|
{
|
|
684
719
|
id: id ? `${id}-label` : void 0,
|
|
@@ -688,7 +723,7 @@ var OptionPill = (_a) => {
|
|
|
688
723
|
children
|
|
689
724
|
}
|
|
690
725
|
),
|
|
691
|
-
removable && /* @__PURE__ */ (0,
|
|
726
|
+
removable && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
692
727
|
Button,
|
|
693
728
|
{
|
|
694
729
|
id: id ? `${id}-remove-button` : void 0,
|
|
@@ -701,7 +736,7 @@ var OptionPill = (_a) => {
|
|
|
701
736
|
),
|
|
702
737
|
iconOnly: true,
|
|
703
738
|
variant: "tertiary",
|
|
704
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
739
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 16 })
|
|
705
740
|
}
|
|
706
741
|
)
|
|
707
742
|
]
|
|
@@ -727,7 +762,7 @@ var import_clsx10 = __toESM(require("clsx"), 1);
|
|
|
727
762
|
|
|
728
763
|
// src/components/Link.tsx
|
|
729
764
|
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
730
|
-
var
|
|
765
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
731
766
|
var Link = (_a) => {
|
|
732
767
|
var _b = _a, {
|
|
733
768
|
as = "a",
|
|
@@ -772,7 +807,7 @@ var Link = (_a) => {
|
|
|
772
807
|
const disabledStyles = disabled && (0, import_clsx8.default)("pointer-events-none cursor-default");
|
|
773
808
|
const underlineStyles = underline ? "decoration-current" : "decoration-decoration-underline";
|
|
774
809
|
const paddingY = paddedY && componentPaddingY;
|
|
775
|
-
return /* @__PURE__ */ (0,
|
|
810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
776
811
|
Component,
|
|
777
812
|
__spreadProps(__spreadValues({
|
|
778
813
|
className: (0, import_clsx8.default)(
|
|
@@ -851,7 +886,7 @@ function formatCurrencyDisplay(value) {
|
|
|
851
886
|
}
|
|
852
887
|
|
|
853
888
|
// src/components/Input.tsx
|
|
854
|
-
var
|
|
889
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
855
890
|
var InputBase = (_a) => {
|
|
856
891
|
var _b = _a, {
|
|
857
892
|
id,
|
|
@@ -946,7 +981,7 @@ var InputBase = (_a) => {
|
|
|
946
981
|
const inputInvalidClass = (0, import_clsx9.default)(
|
|
947
982
|
"has-[[data-error]]:border-transparent has-[[data-error]]:not-focus-within:outline-border-primary-error has-[[data-error]]:not-focus-within:outline-1"
|
|
948
983
|
);
|
|
949
|
-
return /* @__PURE__ */ (0,
|
|
984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
950
985
|
"label",
|
|
951
986
|
{
|
|
952
987
|
id,
|
|
@@ -961,8 +996,8 @@ var InputBase = (_a) => {
|
|
|
961
996
|
),
|
|
962
997
|
style: __spreadValues({}, props.style),
|
|
963
998
|
children: [
|
|
964
|
-
label && /* @__PURE__ */ (0,
|
|
965
|
-
/* @__PURE__ */ (0,
|
|
999
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: (0, import_clsx9.default)("flex items-center", componentGap), children: [
|
|
1000
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
966
1001
|
Label,
|
|
967
1002
|
{
|
|
968
1003
|
id: id ? `${id}-label` : void 0,
|
|
@@ -973,7 +1008,7 @@ var InputBase = (_a) => {
|
|
|
973
1008
|
children: label
|
|
974
1009
|
}
|
|
975
1010
|
),
|
|
976
|
-
required && /* @__PURE__ */ (0,
|
|
1011
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
977
1012
|
"span",
|
|
978
1013
|
{
|
|
979
1014
|
className: (0, import_clsx9.default)(typography.label, "text-text-critical-normal"),
|
|
@@ -981,7 +1016,7 @@ var InputBase = (_a) => {
|
|
|
981
1016
|
}
|
|
982
1017
|
)
|
|
983
1018
|
] }),
|
|
984
|
-
/* @__PURE__ */ (0,
|
|
1019
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
985
1020
|
"div",
|
|
986
1021
|
{
|
|
987
1022
|
className: (0, import_clsx9.default)(
|
|
@@ -999,7 +1034,7 @@ var InputBase = (_a) => {
|
|
|
999
1034
|
},
|
|
1000
1035
|
children: [
|
|
1001
1036
|
before,
|
|
1002
|
-
/* @__PURE__ */ (0,
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1003
1038
|
"input",
|
|
1004
1039
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1005
1040
|
ref: (el) => {
|
|
@@ -1024,12 +1059,12 @@ var InputBase = (_a) => {
|
|
|
1024
1059
|
style: __spreadProps(__spreadValues({}, props.style), { width })
|
|
1025
1060
|
})
|
|
1026
1061
|
),
|
|
1027
|
-
secondaryIconColor ? /* @__PURE__ */ (0,
|
|
1062
|
+
secondaryIconColor ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "contents text-text-secondary-normal", children: after }) : after,
|
|
1028
1063
|
rightAdornment
|
|
1029
1064
|
]
|
|
1030
1065
|
}
|
|
1031
1066
|
),
|
|
1032
|
-
caption && /* @__PURE__ */ (0,
|
|
1067
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1033
1068
|
"div",
|
|
1034
1069
|
{
|
|
1035
1070
|
id: id ? `${id}-caption` : void 0,
|
|
@@ -1124,9 +1159,9 @@ var Input = (_a) => {
|
|
|
1124
1159
|
if (props.before) return props.before;
|
|
1125
1160
|
switch (variant) {
|
|
1126
1161
|
case "search":
|
|
1127
|
-
return !removeSearchIcon ? /* @__PURE__ */ (0,
|
|
1162
|
+
return !removeSearchIcon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "search" }) }) : null;
|
|
1128
1163
|
case "currency":
|
|
1129
|
-
return /* @__PURE__ */ (0,
|
|
1164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "attach_money" }) });
|
|
1130
1165
|
default:
|
|
1131
1166
|
return null;
|
|
1132
1167
|
}
|
|
@@ -1136,7 +1171,7 @@ var Input = (_a) => {
|
|
|
1136
1171
|
switch (variant) {
|
|
1137
1172
|
case "search": {
|
|
1138
1173
|
const hasValue = displayValue.length > 0;
|
|
1139
|
-
return hasValue && !props.readOnly ? /* @__PURE__ */ (0,
|
|
1174
|
+
return hasValue && !props.readOnly ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1140
1175
|
Icon,
|
|
1141
1176
|
{
|
|
1142
1177
|
id: id ? `${id}-clear-button` : void 0,
|
|
@@ -1148,11 +1183,11 @@ var Input = (_a) => {
|
|
|
1148
1183
|
) : null;
|
|
1149
1184
|
}
|
|
1150
1185
|
case "finder":
|
|
1151
|
-
return /* @__PURE__ */ (0,
|
|
1186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "search" });
|
|
1152
1187
|
case "uom":
|
|
1153
|
-
return uom ? /* @__PURE__ */ (0,
|
|
1188
|
+
return uom ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Paragraph, { color: "text-secondary-normal", children: uom.toUpperCase() }) : null;
|
|
1154
1189
|
case "percentage":
|
|
1155
|
-
return /* @__PURE__ */ (0,
|
|
1190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "percent" }) });
|
|
1156
1191
|
default:
|
|
1157
1192
|
return null;
|
|
1158
1193
|
}
|
|
@@ -1272,7 +1307,7 @@ var Input = (_a) => {
|
|
|
1272
1307
|
onBlur == null ? void 0 : onBlur(e);
|
|
1273
1308
|
};
|
|
1274
1309
|
const inputProps = getInputProps();
|
|
1275
|
-
return /* @__PURE__ */ (0,
|
|
1310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1276
1311
|
InputBase,
|
|
1277
1312
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
1278
1313
|
before: getBeforeElement(),
|
|
@@ -1285,15 +1320,15 @@ var Input = (_a) => {
|
|
|
1285
1320
|
);
|
|
1286
1321
|
};
|
|
1287
1322
|
Input.displayName = "Input";
|
|
1288
|
-
var Finder = (props) => /* @__PURE__ */ (0,
|
|
1289
|
-
var UOM = (props) => /* @__PURE__ */ (0,
|
|
1323
|
+
var Finder = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "finder" }));
|
|
1324
|
+
var UOM = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "uom" }));
|
|
1290
1325
|
var Currency = (props) => {
|
|
1291
1326
|
var _a;
|
|
1292
1327
|
const handleCurrencyChange = (e) => {
|
|
1293
1328
|
var _a2;
|
|
1294
1329
|
(_a2 = props.onChange) == null ? void 0 : _a2.call(props, e);
|
|
1295
1330
|
};
|
|
1296
|
-
return /* @__PURE__ */ (0,
|
|
1331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1297
1332
|
Input,
|
|
1298
1333
|
__spreadProps(__spreadValues({}, props), {
|
|
1299
1334
|
variant: "currency",
|
|
@@ -1302,14 +1337,14 @@ var Currency = (props) => {
|
|
|
1302
1337
|
})
|
|
1303
1338
|
);
|
|
1304
1339
|
};
|
|
1305
|
-
var Percentage = (props) => /* @__PURE__ */ (0,
|
|
1340
|
+
var Percentage = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadProps(__spreadValues({}, props), { variant: "percentage" }));
|
|
1306
1341
|
Finder.displayName = "Finder";
|
|
1307
1342
|
UOM.displayName = "UOM";
|
|
1308
1343
|
Currency.displayName = "Currency";
|
|
1309
1344
|
Percentage.displayName = "Percentage";
|
|
1310
1345
|
|
|
1311
1346
|
// src/components/Search.tsx
|
|
1312
|
-
var
|
|
1347
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1313
1348
|
var Search = (_a) => {
|
|
1314
1349
|
var _b = _a, {
|
|
1315
1350
|
id,
|
|
@@ -1351,8 +1386,8 @@ var Search = (_a) => {
|
|
|
1351
1386
|
}
|
|
1352
1387
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1353
1388
|
}, [props.value]);
|
|
1354
|
-
return /* @__PURE__ */ (0,
|
|
1355
|
-
/* @__PURE__ */ (0,
|
|
1389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
1390
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1356
1391
|
Input,
|
|
1357
1392
|
__spreadValues({
|
|
1358
1393
|
id,
|
|
@@ -1426,7 +1461,7 @@ var Search = (_a) => {
|
|
|
1426
1461
|
Search.displayName = "Search";
|
|
1427
1462
|
|
|
1428
1463
|
// src/components/FilterGroup.tsx
|
|
1429
|
-
var
|
|
1464
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1430
1465
|
var FilterGroup = (_a) => {
|
|
1431
1466
|
var _b = _a, {
|
|
1432
1467
|
id,
|
|
@@ -1466,7 +1501,7 @@ var FilterGroup = (_a) => {
|
|
|
1466
1501
|
shouldShowAll ? childArray.length : 5
|
|
1467
1502
|
);
|
|
1468
1503
|
const showShowMoreLink = showMore && !isSummary && childArray.length > 5 && !showAllItems && isExpanded;
|
|
1469
|
-
return /* @__PURE__ */ (0,
|
|
1504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1470
1505
|
"div",
|
|
1471
1506
|
__spreadProps(__spreadValues({
|
|
1472
1507
|
id,
|
|
@@ -1477,7 +1512,7 @@ var FilterGroup = (_a) => {
|
|
|
1477
1512
|
isSummary ? layoutPaddingBottom : componentPaddingBottom
|
|
1478
1513
|
),
|
|
1479
1514
|
children: [
|
|
1480
|
-
/* @__PURE__ */ (0,
|
|
1515
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1481
1516
|
"div",
|
|
1482
1517
|
{
|
|
1483
1518
|
className: (0, import_clsx10.default)(
|
|
@@ -1486,8 +1521,8 @@ var FilterGroup = (_a) => {
|
|
|
1486
1521
|
),
|
|
1487
1522
|
onClick: handleToggleExpanded,
|
|
1488
1523
|
children: [
|
|
1489
|
-
/* @__PURE__ */ (0,
|
|
1490
|
-
type !== "summary" ? /* @__PURE__ */ (0,
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Label, { children: label }),
|
|
1525
|
+
type !== "summary" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1491
1526
|
Icon,
|
|
1492
1527
|
{
|
|
1493
1528
|
name: "keyboard_arrow_down",
|
|
@@ -1500,7 +1535,7 @@ var FilterGroup = (_a) => {
|
|
|
1500
1535
|
"text-icon-action-primary-normal"
|
|
1501
1536
|
)
|
|
1502
1537
|
}
|
|
1503
|
-
) : /* @__PURE__ */ (0,
|
|
1538
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1504
1539
|
Link,
|
|
1505
1540
|
{
|
|
1506
1541
|
id: id ? `${id}-clear-all` : void 0,
|
|
@@ -1513,7 +1548,7 @@ var FilterGroup = (_a) => {
|
|
|
1513
1548
|
]
|
|
1514
1549
|
}
|
|
1515
1550
|
),
|
|
1516
|
-
/* @__PURE__ */ (0,
|
|
1551
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1517
1552
|
"div",
|
|
1518
1553
|
{
|
|
1519
1554
|
className: (0, import_clsx10.default)(
|
|
@@ -1524,7 +1559,7 @@ var FilterGroup = (_a) => {
|
|
|
1524
1559
|
),
|
|
1525
1560
|
isExpanded || isSummary ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
1526
1561
|
),
|
|
1527
|
-
children: /* @__PURE__ */ (0,
|
|
1562
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1528
1563
|
"div",
|
|
1529
1564
|
{
|
|
1530
1565
|
className: (0, import_clsx10.default)(
|
|
@@ -1533,7 +1568,7 @@ var FilterGroup = (_a) => {
|
|
|
1533
1568
|
(isExpanded || isSummary || internalExpanded) && "mt-mobile-component-gap desktop:mt-desktop-component-gap compact:mt-desktop-compact-component-gap"
|
|
1534
1569
|
),
|
|
1535
1570
|
children: [
|
|
1536
|
-
!isSummary && showSearchField && /* @__PURE__ */ (0,
|
|
1571
|
+
!isSummary && showSearchField && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1537
1572
|
Search,
|
|
1538
1573
|
{
|
|
1539
1574
|
id: id ? `${id}-search` : void 0,
|
|
@@ -1543,8 +1578,8 @@ var FilterGroup = (_a) => {
|
|
|
1543
1578
|
value: searchValue
|
|
1544
1579
|
}
|
|
1545
1580
|
),
|
|
1546
|
-
/* @__PURE__ */ (0,
|
|
1547
|
-
showShowMoreLink && /* @__PURE__ */ (0,
|
|
1581
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_clsx10.default)(isSummary && `flex flex-col ${componentGap}`), children: visibleChildren }),
|
|
1582
|
+
showShowMoreLink && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1548
1583
|
Link,
|
|
1549
1584
|
{
|
|
1550
1585
|
id: id ? `${id}-show-more` : void 0,
|
|
@@ -1591,7 +1626,7 @@ var FilterGroupItem = (_a) => {
|
|
|
1591
1626
|
"children",
|
|
1592
1627
|
"onClick"
|
|
1593
1628
|
]);
|
|
1594
|
-
return /* @__PURE__ */ (0,
|
|
1629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1595
1630
|
"div",
|
|
1596
1631
|
__spreadProps(__spreadValues({
|
|
1597
1632
|
id,
|
|
@@ -1602,16 +1637,16 @@ var FilterGroupItem = (_a) => {
|
|
|
1602
1637
|
"flex items-center justify-between *:first:flex-1 cursor-pointer",
|
|
1603
1638
|
type !== "summary" ? "*:first:py-mobile-component-padding *:first:desktop:py-desktop-component-padding *:first:compact:py-desktop-compact-component-padding" : ""
|
|
1604
1639
|
),
|
|
1605
|
-
children: /* @__PURE__ */ (0,
|
|
1640
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1606
1641
|
FilterGroupItemChildComponent,
|
|
1607
1642
|
__spreadProps(__spreadValues({}, props), {
|
|
1608
1643
|
id: id ? `${id}-child` : void 0,
|
|
1609
1644
|
"data-testid": testid ? `${testid}-child` : void 0,
|
|
1610
1645
|
type,
|
|
1611
1646
|
count: props.count,
|
|
1612
|
-
children: /* @__PURE__ */ (0,
|
|
1647
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "flex items-center justify-between w-full", children: [
|
|
1613
1648
|
children,
|
|
1614
|
-
type !== "summary" && props.count && /* @__PURE__ */ (0,
|
|
1649
|
+
type !== "summary" && props.count && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { children: [
|
|
1615
1650
|
"(",
|
|
1616
1651
|
props.count,
|
|
1617
1652
|
")"
|
|
@@ -1635,7 +1670,7 @@ var FilterGroupItemChildComponent = (_a) => {
|
|
|
1635
1670
|
"children"
|
|
1636
1671
|
]);
|
|
1637
1672
|
if (type === "checkbox") {
|
|
1638
|
-
return /* @__PURE__ */ (0,
|
|
1673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1639
1674
|
Checkbox,
|
|
1640
1675
|
__spreadValues({
|
|
1641
1676
|
paragraphClassName: "w-full",
|
|
@@ -1644,9 +1679,9 @@ var FilterGroupItemChildComponent = (_a) => {
|
|
|
1644
1679
|
);
|
|
1645
1680
|
}
|
|
1646
1681
|
if (type === "summary") {
|
|
1647
|
-
return /* @__PURE__ */ (0,
|
|
1682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(OptionPill, __spreadProps(__spreadValues({ removable: true }, props), { children })) });
|
|
1648
1683
|
}
|
|
1649
|
-
return /* @__PURE__ */ (0,
|
|
1684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Link, __spreadProps(__spreadValues({ variant: "secondary" }, props), { children }));
|
|
1650
1685
|
};
|
|
1651
1686
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1652
1687
|
0 && (module.exports = {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
OptionPill
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7ZL4GBAD.js";
|
|
5
|
+
import {
|
|
6
|
+
Link
|
|
7
|
+
} from "../chunk-MO52RSXV.js";
|
|
5
8
|
import {
|
|
6
9
|
Search
|
|
7
10
|
} from "../chunk-BKBJOF4J.js";
|
|
@@ -13,14 +16,12 @@ import {
|
|
|
13
16
|
Checkbox
|
|
14
17
|
} from "../chunk-M7WHWZ2J.js";
|
|
15
18
|
import "../chunk-5UH6QUFB.js";
|
|
19
|
+
import "../chunk-HVYK7COK.js";
|
|
20
|
+
import "../chunk-SBRRNFOP.js";
|
|
16
21
|
import "../chunk-WMPWWFUJ.js";
|
|
17
|
-
import {
|
|
18
|
-
Link
|
|
19
|
-
} from "../chunk-MO52RSXV.js";
|
|
20
22
|
import {
|
|
21
23
|
Icon
|
|
22
24
|
} from "../chunk-NKUETCDA.js";
|
|
23
|
-
import "../chunk-45AHDOAU.js";
|
|
24
25
|
import {
|
|
25
26
|
baseTransition,
|
|
26
27
|
componentGap,
|