@12-apps/ui 6.39.2 → 6.39.4
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/_internal/components/data-display/Avatar/Avatar.js +3 -3
- package/dist/_internal/components/data-display/Avatar/Avatar.view.js +2 -2
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +1 -1
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +1 -1
- package/dist/_internal/components/data-display/Chart/SpecChart.js +3 -3
- package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +18 -18
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +26 -25
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -2
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +4 -3
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +3 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +4 -4
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +3 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +15 -15
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +6 -5
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +4 -4
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +2 -2
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +2 -2
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +4 -4
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +3 -3
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +5 -5
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +2 -2
- package/dist/_internal/components/data-display/Progress/Progress.js +2 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.hooks.js +2 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.js +4 -4
- package/dist/_internal/components/data-display/index.js +25 -25
- package/dist/_internal/components/feedback/Dialog/Dialog.js +2 -1
- package/dist/_internal/components/feedback/Dialog/Dialog.paper.js +8 -0
- package/dist/_internal/components/feedback/Dialog/Dialog.paper.js.map +1 -0
- package/dist/_internal/components/feedback/index.js +5 -4
- package/dist/_internal/components/index.js +33 -32
- package/dist/_internal/components/layout/Separator/Separator.js +2 -2
- package/dist/_internal/components/layout/Separator/Separator.styles.js +3 -1
- package/dist/_internal/components/layout/index.js +2 -2
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +7 -6
- package/dist/_internal/components/navigation/index.js +7 -6
- package/dist/_internal/social-login-button/social-login-button.js +3 -3
- package/dist/_internal/user-avatar/user-avatar.js +4 -4
- package/dist/charts.js +6 -6
- package/dist/{chunk-FX26DAFF.js → chunk-3OBC6BOV.js} +2 -2
- package/dist/{chunk-KRQUPE4K.js → chunk-4CXCOR6F.js} +5 -5
- package/dist/{chunk-LYVTJLCF.js → chunk-56JF5PZK.js} +4 -4
- package/dist/{chunk-3FNXOCBD.js → chunk-5CQ5HYJW.js} +2 -2
- package/dist/{chunk-D2UDM2SU.js → chunk-6QXFBZ7Q.js} +4 -4
- package/dist/{chunk-I3F4C5SS.js → chunk-7RRXLCOO.js} +2 -2
- package/dist/{chunk-27LOJVR3.js → chunk-ASYR22BJ.js} +2 -2
- package/dist/{chunk-JCL7WK4G.js → chunk-BSUG4KMP.js} +7 -7
- package/dist/{chunk-QA2ZGCRL.js → chunk-CTKQCKRD.js} +2 -2
- package/dist/{chunk-CSN3F36H.js → chunk-DIM6SUGY.js} +4 -4
- package/dist/{chunk-PCBZYORN.js → chunk-EDKLXA5W.js} +5 -5
- package/dist/{chunk-PGPPN63I.js → chunk-EMEXXAQI.js} +2 -2
- package/dist/{chunk-4OAKGKK5.js → chunk-F4WFUQYR.js} +5 -5
- package/dist/{chunk-LCHCE2G5.js → chunk-FWSMIUWA.js} +2 -2
- package/dist/{chunk-CPWWMGYR.js → chunk-G62KCU3D.js} +2 -2
- package/dist/{chunk-R6SBP5M5.js → chunk-GOWBYHYW.js} +4 -4
- package/dist/{chunk-BFMDA6UO.js → chunk-GWEENWIS.js} +2 -2
- package/dist/{chunk-EHYI2WCJ.js → chunk-ISFFETTG.js} +4 -4
- package/dist/{chunk-4OW4O4A2.js → chunk-JBI7ITL2.js} +5 -5
- package/dist/{chunk-SKT2V2OX.js → chunk-JQWAANGN.js} +2 -2
- package/dist/{chunk-J5VWGQSR.js → chunk-K6VKL62Z.js} +2 -2
- package/dist/{chunk-GLHNMTP6.js → chunk-KAIUDBHM.js} +5 -5
- package/dist/{chunk-SV6JGFHG.js → chunk-KBZFBHLO.js} +3 -3
- package/dist/{chunk-HBRQPG7H.js → chunk-MYWROMGO.js} +2 -2
- package/dist/{chunk-EQXIW5MQ.js → chunk-O4AHF45C.js} +4 -4
- package/dist/{chunk-KXLUMEDX.js → chunk-QTNHAX2Z.js} +3 -3
- package/dist/{chunk-QB3TVUPD.js → chunk-R3JYC63P.js} +8 -8
- package/dist/{chunk-D46SLMCX.js → chunk-SYNB3IIB.js} +12 -1
- package/dist/chunk-SYNB3IIB.js.map +1 -0
- package/dist/{chunk-4ALF5PB5.js → chunk-SZ3YFVO5.js} +4 -4
- package/dist/{chunk-DDRKYNPB.js → chunk-TFMDZQK4.js} +4 -4
- package/dist/{chunk-H67EL3CG.js → chunk-TKKQ7RGT.js} +2 -2
- package/dist/{chunk-PRIBOWX4.js → chunk-U4O47P6S.js} +3 -3
- package/dist/{chunk-GVH7C2PT.js → chunk-UEROWH53.js} +20 -12
- package/dist/chunk-UEROWH53.js.map +1 -0
- package/dist/{chunk-GLFTIGOF.js → chunk-UITQ7KMK.js} +2 -2
- package/dist/{chunk-SBIZXZPP.js → chunk-W7F2QIAT.js} +2 -2
- package/dist/{chunk-DUBTI4DI.js → chunk-WHQKH57H.js} +3 -3
- package/dist/{chunk-74P3YX7R.js → chunk-X4ZRPE37.js} +2 -2
- package/dist/{chunk-IG23YZZR.js → chunk-XSSCSRUX.js} +7 -4
- package/dist/chunk-XSSCSRUX.js.map +1 -0
- package/dist/chunk-Y4O4DITI.js +25 -0
- package/dist/chunk-Y4O4DITI.js.map +1 -0
- package/dist/{chunk-TNQDSTIA.js → chunk-Y6C4MYZE.js} +7 -7
- package/dist/{chunk-F44R7US6.js → chunk-YOJASBHJ.js} +2 -2
- package/dist/data-display/Avatar.js +3 -3
- package/dist/data-display/CardKit.js +8 -8
- package/dist/data-display/Chart.js +6 -6
- package/dist/data-display/DataViews.js +35 -34
- package/dist/data-display/FleetMap.js +5 -5
- package/dist/data-display/HoverCard.js +2 -2
- package/dist/data-display/Lightbox.js +3 -3
- package/dist/data-display/MapPreview.js +2 -2
- package/dist/data-display/Progress.js +2 -2
- package/dist/data-display/Sheet.js +4 -4
- package/dist/feedback/ConfirmAction.js +3 -3
- package/dist/feedback/Dialog.js +2 -1
- package/dist/layout/Separator.js +2 -2
- package/dist/navigation/AppHeader.js +7 -6
- package/dist/social-login-button.js +3 -3
- package/dist/types/components/feedback/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/feedback/Dialog/Dialog.paper.d.ts +31 -0
- package/dist/types/components/feedback/Dialog/Dialog.paper.d.ts.map +1 -0
- package/dist/types/components/layout/Separator/Separator.d.ts.map +1 -1
- package/dist/types/components/layout/Separator/Separator.styles.d.ts +21 -0
- package/dist/types/components/layout/Separator/Separator.styles.d.ts.map +1 -1
- package/dist/user-avatar.js +4 -4
- package/package.json +1 -1
- package/src/components/feedback/Dialog/Dialog.paper.ts +64 -0
- package/src/components/feedback/Dialog/Dialog.tsx +12 -11
- package/src/components/layout/Separator/Separator.styles.ts +32 -0
- package/src/components/layout/Separator/Separator.tsx +4 -2
- package/dist/chunk-D46SLMCX.js.map +0 -1
- package/dist/chunk-GVH7C2PT.js.map +0 -1
- package/dist/chunk-IG23YZZR.js.map +0 -1
- /package/dist/{chunk-FX26DAFF.js.map → chunk-3OBC6BOV.js.map} +0 -0
- /package/dist/{chunk-KRQUPE4K.js.map → chunk-4CXCOR6F.js.map} +0 -0
- /package/dist/{chunk-LYVTJLCF.js.map → chunk-56JF5PZK.js.map} +0 -0
- /package/dist/{chunk-3FNXOCBD.js.map → chunk-5CQ5HYJW.js.map} +0 -0
- /package/dist/{chunk-D2UDM2SU.js.map → chunk-6QXFBZ7Q.js.map} +0 -0
- /package/dist/{chunk-I3F4C5SS.js.map → chunk-7RRXLCOO.js.map} +0 -0
- /package/dist/{chunk-27LOJVR3.js.map → chunk-ASYR22BJ.js.map} +0 -0
- /package/dist/{chunk-JCL7WK4G.js.map → chunk-BSUG4KMP.js.map} +0 -0
- /package/dist/{chunk-QA2ZGCRL.js.map → chunk-CTKQCKRD.js.map} +0 -0
- /package/dist/{chunk-CSN3F36H.js.map → chunk-DIM6SUGY.js.map} +0 -0
- /package/dist/{chunk-PCBZYORN.js.map → chunk-EDKLXA5W.js.map} +0 -0
- /package/dist/{chunk-PGPPN63I.js.map → chunk-EMEXXAQI.js.map} +0 -0
- /package/dist/{chunk-4OAKGKK5.js.map → chunk-F4WFUQYR.js.map} +0 -0
- /package/dist/{chunk-LCHCE2G5.js.map → chunk-FWSMIUWA.js.map} +0 -0
- /package/dist/{chunk-CPWWMGYR.js.map → chunk-G62KCU3D.js.map} +0 -0
- /package/dist/{chunk-R6SBP5M5.js.map → chunk-GOWBYHYW.js.map} +0 -0
- /package/dist/{chunk-BFMDA6UO.js.map → chunk-GWEENWIS.js.map} +0 -0
- /package/dist/{chunk-EHYI2WCJ.js.map → chunk-ISFFETTG.js.map} +0 -0
- /package/dist/{chunk-4OW4O4A2.js.map → chunk-JBI7ITL2.js.map} +0 -0
- /package/dist/{chunk-SKT2V2OX.js.map → chunk-JQWAANGN.js.map} +0 -0
- /package/dist/{chunk-J5VWGQSR.js.map → chunk-K6VKL62Z.js.map} +0 -0
- /package/dist/{chunk-GLHNMTP6.js.map → chunk-KAIUDBHM.js.map} +0 -0
- /package/dist/{chunk-SV6JGFHG.js.map → chunk-KBZFBHLO.js.map} +0 -0
- /package/dist/{chunk-HBRQPG7H.js.map → chunk-MYWROMGO.js.map} +0 -0
- /package/dist/{chunk-EQXIW5MQ.js.map → chunk-O4AHF45C.js.map} +0 -0
- /package/dist/{chunk-KXLUMEDX.js.map → chunk-QTNHAX2Z.js.map} +0 -0
- /package/dist/{chunk-QB3TVUPD.js.map → chunk-R3JYC63P.js.map} +0 -0
- /package/dist/{chunk-4ALF5PB5.js.map → chunk-SZ3YFVO5.js.map} +0 -0
- /package/dist/{chunk-DDRKYNPB.js.map → chunk-TFMDZQK4.js.map} +0 -0
- /package/dist/{chunk-H67EL3CG.js.map → chunk-TKKQ7RGT.js.map} +0 -0
- /package/dist/{chunk-PRIBOWX4.js.map → chunk-U4O47P6S.js.map} +0 -0
- /package/dist/{chunk-GLFTIGOF.js.map → chunk-UITQ7KMK.js.map} +0 -0
- /package/dist/{chunk-SBIZXZPP.js.map → chunk-W7F2QIAT.js.map} +0 -0
- /package/dist/{chunk-DUBTI4DI.js.map → chunk-WHQKH57H.js.map} +0 -0
- /package/dist/{chunk-74P3YX7R.js.map → chunk-X4ZRPE37.js.map} +0 -0
- /package/dist/{chunk-TNQDSTIA.js.map → chunk-Y6C4MYZE.js.map} +0 -0
- /package/dist/{chunk-F44R7US6.js.map → chunk-YOJASBHJ.js.map} +0 -0
|
@@ -1,42 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseCard
|
|
3
|
+
} from "../chunk-3RMDIO4G.js";
|
|
1
4
|
import {
|
|
2
5
|
DataViewsTableBase
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-SZ3YFVO5.js";
|
|
7
|
+
import "../chunk-GWEENWIS.js";
|
|
5
8
|
import {
|
|
6
9
|
DataViewsGrid
|
|
7
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-U4O47P6S.js";
|
|
8
11
|
import {
|
|
9
12
|
BaseListCard
|
|
10
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-ISFFETTG.js";
|
|
11
14
|
import "../chunk-GZT7MLLO.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-F44R7US6.js";
|
|
14
|
-
import "../chunk-2JCRNWHE.js";
|
|
15
|
-
import {
|
|
16
|
-
BaseCard
|
|
17
|
-
} from "../chunk-3RMDIO4G.js";
|
|
15
|
+
import "../chunk-4CXCOR6F.js";
|
|
18
16
|
import "../chunk-BYH5GPLT.js";
|
|
17
|
+
import "../chunk-YOJASBHJ.js";
|
|
18
|
+
import "../chunk-2JCRNWHE.js";
|
|
19
19
|
import "../chunk-ZOLAYP2D.js";
|
|
20
20
|
import {
|
|
21
21
|
DragContainerProvider,
|
|
22
22
|
DropIndicator,
|
|
23
23
|
useDragItem
|
|
24
24
|
} from "../chunk-K4EKTMTC.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-KAIUDBHM.js";
|
|
26
|
+
import "../chunk-MYWROMGO.js";
|
|
27
27
|
import {
|
|
28
28
|
DataViewsBoard
|
|
29
29
|
} from "../chunk-UGGJ3KDT.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-TKKQ7RGT.js";
|
|
31
31
|
import "../chunk-L7NQCLFU.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-WHQKH57H.js";
|
|
33
33
|
import "../chunk-X4F32GUB.js";
|
|
34
34
|
import "../chunk-4GWHYLEB.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-UITQ7KMK.js";
|
|
36
|
+
import "../chunk-X4ZRPE37.js";
|
|
37
37
|
import "../chunk-OAEYCKBN.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-BSUG4KMP.js";
|
|
39
39
|
import "../chunk-57FZM6GH.js";
|
|
40
|
+
import "../chunk-GCZJH4XL.js";
|
|
40
41
|
import "../chunk-7D7CJRL7.js";
|
|
41
42
|
import "../chunk-CBOB5AV6.js";
|
|
42
43
|
import "../chunk-2S752BIJ.js";
|
|
@@ -47,24 +48,24 @@ import "../chunk-3KREF4ZF.js";
|
|
|
47
48
|
import "../chunk-62UAI62O.js";
|
|
48
49
|
import "../chunk-6N2EDWMG.js";
|
|
49
50
|
import "../chunk-O5UGAL2V.js";
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-QA2ZGCRL.js";
|
|
51
|
+
import "../chunk-QTNHAX2Z.js";
|
|
52
|
+
import "../chunk-ASYR22BJ.js";
|
|
53
|
+
import "../chunk-CTKQCKRD.js";
|
|
54
54
|
import "../chunk-5M4TYFR3.js";
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-R2XVTUVR.js";
|
|
59
|
-
import "../chunk-6N4AA2Y7.js";
|
|
55
|
+
import "../chunk-3OBC6BOV.js";
|
|
56
|
+
import "../chunk-7RRXLCOO.js";
|
|
57
|
+
import "../chunk-TFMDZQK4.js";
|
|
60
58
|
import "../chunk-YCCY77W5.js";
|
|
59
|
+
import "../chunk-R2XVTUVR.js";
|
|
61
60
|
import "../chunk-YLGY3D52.js";
|
|
61
|
+
import "../chunk-6N4AA2Y7.js";
|
|
62
62
|
import "../chunk-XIG3DXXX.js";
|
|
63
63
|
import "../chunk-HR7YTBR7.js";
|
|
64
64
|
import "../chunk-DZEC6RFM.js";
|
|
65
|
-
import "../chunk-
|
|
65
|
+
import "../chunk-EDKLXA5W.js";
|
|
66
66
|
import "../chunk-D4FZ3ANG.js";
|
|
67
67
|
import "../chunk-YGQX7BNI.js";
|
|
68
|
+
import "../chunk-IMLIIW77.js";
|
|
68
69
|
import "../chunk-LLZWB32X.js";
|
|
69
70
|
import {
|
|
70
71
|
DataViewsScopeTabs,
|
|
@@ -73,13 +74,15 @@ import {
|
|
|
73
74
|
} from "../chunk-PL2AB5HJ.js";
|
|
74
75
|
import "../chunk-U5FOJBLG.js";
|
|
75
76
|
import "../chunk-BWHOCNGW.js";
|
|
76
|
-
import "../chunk-IMLIIW77.js";
|
|
77
77
|
import "../chunk-OB56SZGL.js";
|
|
78
78
|
import {
|
|
79
79
|
DEFAULT_RAILS,
|
|
80
80
|
ListCardGroup,
|
|
81
81
|
RAIL_COUNT
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-O4AHF45C.js";
|
|
83
|
+
import {
|
|
84
|
+
DEFAULT_CELL_WIDTH
|
|
85
|
+
} from "../chunk-COYGTEN5.js";
|
|
83
86
|
import {
|
|
84
87
|
cardMinWidthForZoom,
|
|
85
88
|
cardScaleForZoom
|
|
@@ -93,9 +96,6 @@ import {
|
|
|
93
96
|
DataViewsCopyProvider,
|
|
94
97
|
useDataViewsCopy
|
|
95
98
|
} from "../chunk-KHG57NAE.js";
|
|
96
|
-
import {
|
|
97
|
-
DEFAULT_CELL_WIDTH
|
|
98
|
-
} from "../chunk-COYGTEN5.js";
|
|
99
99
|
import "../chunk-NCS2TBIP.js";
|
|
100
100
|
import "../chunk-Y4KKS6WL.js";
|
|
101
101
|
import "../chunk-MQJDMQJZ.js";
|
|
@@ -158,14 +158,15 @@ import "../chunk-RNIU447I.js";
|
|
|
158
158
|
import "../chunk-C3UKR3NT.js";
|
|
159
159
|
import "../chunk-D6KL74KI.js";
|
|
160
160
|
import "../chunk-XCBQXSTR.js";
|
|
161
|
-
import "../chunk-FWPFCK4D.js";
|
|
162
161
|
import "../chunk-3AOQBR7N.js";
|
|
162
|
+
import "../chunk-FWPFCK4D.js";
|
|
163
163
|
import "../chunk-4WCDMCIS.js";
|
|
164
164
|
import "../chunk-BJZOBG24.js";
|
|
165
165
|
import "../chunk-EMYESBIT.js";
|
|
166
166
|
import "../chunk-KFJKOVDD.js";
|
|
167
|
-
import "../chunk-
|
|
167
|
+
import "../chunk-UEROWH53.js";
|
|
168
168
|
import "../chunk-2WU52FLP.js";
|
|
169
|
+
import "../chunk-Y4O4DITI.js";
|
|
169
170
|
import "../chunk-GVGJMH77.js";
|
|
170
171
|
import "../chunk-GYXUCS37.js";
|
|
171
172
|
import "../chunk-CN46HGXE.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-RQWZYD6H.js";
|
|
2
2
|
import {
|
|
3
3
|
FleetMap
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-K6VKL62Z.js";
|
|
5
|
+
import "../chunk-W7F2QIAT.js";
|
|
6
|
+
import "../chunk-FWSMIUWA.js";
|
|
7
7
|
import "../chunk-5JCGBCFJ.js";
|
|
8
8
|
import "../chunk-BTQZ3EX3.js";
|
|
9
9
|
import "../chunk-ZCPSND5Y.js";
|
|
@@ -18,13 +18,13 @@ import "../chunk-BEGTLELZ.js";
|
|
|
18
18
|
import "../chunk-E2QIKJX2.js";
|
|
19
19
|
import "../chunk-EMPVMZAB.js";
|
|
20
20
|
import "../chunk-7WDPC46N.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-F4WFUQYR.js";
|
|
22
|
+
import "../chunk-ODFJTEIL.js";
|
|
22
23
|
import "../chunk-VIUDWOV6.js";
|
|
23
24
|
import "../chunk-VNOFFVRQ.js";
|
|
24
25
|
import "../chunk-WRCLYSTX.js";
|
|
25
26
|
import "../chunk-4NQXHPQR.js";
|
|
26
27
|
import "../chunk-ZZ4MMUBY.js";
|
|
27
|
-
import "../chunk-ODFJTEIL.js";
|
|
28
28
|
import "../chunk-QSRZOXQI.js";
|
|
29
29
|
import "../chunk-5NT2M2JI.js";
|
|
30
30
|
import "../chunk-H2J2MTRE.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-6OS4AKWT.js";
|
|
2
2
|
import {
|
|
3
3
|
HoverCard
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DIM6SUGY.js";
|
|
5
|
+
import "../chunk-SXYIXCUB.js";
|
|
5
6
|
import "../chunk-NRIV2CQ2.js";
|
|
6
7
|
import "../chunk-BSYPPO2I.js";
|
|
7
8
|
import "../chunk-ZHV7TCAC.js";
|
|
8
|
-
import "../chunk-SXYIXCUB.js";
|
|
9
9
|
import "../chunk-HPK33ACY.js";
|
|
10
10
|
import "../chunk-FQ6UW7IY.js";
|
|
11
11
|
import "../chunk-6JAIFIPW.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../chunk-UM35GGCS.js";
|
|
2
2
|
import {
|
|
3
3
|
Lightbox_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6QXFBZ7Q.js";
|
|
5
5
|
import "../chunk-UOS7DEQZ.js";
|
|
6
6
|
import "../chunk-HJPPNVCF.js";
|
|
7
7
|
import "../chunk-M6PWPEAV.js";
|
|
8
8
|
import "../chunk-BAFDSAWY.js";
|
|
9
9
|
import "../chunk-N2GEKC4J.js";
|
|
10
10
|
import "../chunk-IVJKILIX.js";
|
|
11
|
-
import "../chunk-2DWBJJK6.js";
|
|
12
|
-
import "../chunk-ASCUWG55.js";
|
|
13
11
|
import "../chunk-TZASFX6G.js";
|
|
14
12
|
import "../chunk-TEQYTEM2.js";
|
|
15
13
|
import "../chunk-3KA6MYIR.js";
|
|
14
|
+
import "../chunk-2DWBJJK6.js";
|
|
15
|
+
import "../chunk-ASCUWG55.js";
|
|
16
16
|
import "../chunk-FQ6UW7IY.js";
|
|
17
17
|
import "../chunk-6JAIFIPW.js";
|
|
18
18
|
import "../chunk-N3GAFIXG.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-EJDOH7IN.js";
|
|
2
2
|
import {
|
|
3
3
|
MapPreview
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-F4WFUQYR.js";
|
|
5
|
+
import "../chunk-ODFJTEIL.js";
|
|
5
6
|
import "../chunk-VIUDWOV6.js";
|
|
6
7
|
import "../chunk-VNOFFVRQ.js";
|
|
7
8
|
import "../chunk-WRCLYSTX.js";
|
|
8
9
|
import "../chunk-4NQXHPQR.js";
|
|
9
10
|
import "../chunk-ZZ4MMUBY.js";
|
|
10
|
-
import "../chunk-ODFJTEIL.js";
|
|
11
11
|
import "../chunk-QSRZOXQI.js";
|
|
12
12
|
import "../chunk-5NT2M2JI.js";
|
|
13
13
|
import "../chunk-H2J2MTRE.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-QOB473HS.js";
|
|
2
2
|
import {
|
|
3
3
|
Progress
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JBI7ITL2.js";
|
|
5
|
+
import "../chunk-5JEOLUWJ.js";
|
|
5
6
|
import "../chunk-RIF6L54B.js";
|
|
6
7
|
import "../chunk-RUEKY3VR.js";
|
|
7
|
-
import "../chunk-5JEOLUWJ.js";
|
|
8
8
|
import "../chunk-PE4ZW3IA.js";
|
|
9
9
|
import "../chunk-2BYKTBDL.js";
|
|
10
10
|
import "../chunk-AG66JBNH.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../chunk-ITACE45O.js";
|
|
2
2
|
import {
|
|
3
3
|
Sheet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-EJYJLVPK.js";
|
|
6
|
-
import "../chunk-LYVTJLCF.js";
|
|
7
|
-
import "../chunk-CRN4KKNI.js";
|
|
4
|
+
} from "../chunk-R3JYC63P.js";
|
|
8
5
|
import "../chunk-3U3H3BZM.js";
|
|
6
|
+
import "../chunk-EJYJLVPK.js";
|
|
9
7
|
import {
|
|
10
8
|
SheetContent,
|
|
11
9
|
SheetFooter,
|
|
12
10
|
SheetHeader,
|
|
13
11
|
SheetOverlay
|
|
14
12
|
} from "../chunk-FPVYD7BO.js";
|
|
13
|
+
import "../chunk-56JF5PZK.js";
|
|
15
14
|
import "../chunk-IM4DMKH4.js";
|
|
15
|
+
import "../chunk-CRN4KKNI.js";
|
|
16
16
|
import "../chunk-HPK33ACY.js";
|
|
17
17
|
import "../chunk-TCAQOUIB.js";
|
|
18
18
|
import "../chunk-7ZPUN7TV.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-XCBQXSTR.js";
|
|
2
|
-
import {
|
|
3
|
-
ConfirmAction
|
|
4
|
-
} from "../chunk-FWPFCK4D.js";
|
|
5
2
|
import {
|
|
6
3
|
createConfirmButton
|
|
7
4
|
} from "../chunk-3AOQBR7N.js";
|
|
5
|
+
import {
|
|
6
|
+
ConfirmAction
|
|
7
|
+
} from "../chunk-FWPFCK4D.js";
|
|
8
8
|
import {
|
|
9
9
|
withConfirmation
|
|
10
10
|
} from "../chunk-4WCDMCIS.js";
|
package/dist/feedback/Dialog.js
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
DialogActions,
|
|
5
5
|
DialogContent,
|
|
6
6
|
DialogHeader
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-UEROWH53.js";
|
|
8
8
|
import "../chunk-2WU52FLP.js";
|
|
9
|
+
import "../chunk-Y4O4DITI.js";
|
|
9
10
|
import "../chunk-GVGJMH77.js";
|
|
10
11
|
import "../chunk-GYXUCS37.js";
|
|
11
12
|
import "../chunk-TYJR4GOF.js";
|
package/dist/layout/Separator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../chunk-CMMPGAMJ.js";
|
|
2
2
|
import {
|
|
3
3
|
Separator
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-XSSCSRUX.js";
|
|
5
|
+
import "../chunk-SYNB3IIB.js";
|
|
6
6
|
import "../chunk-PZBK3F52.js";
|
|
7
7
|
import "../chunk-YKCAJ2TN.js";
|
|
8
8
|
import "../chunk-PZ5AY32C.js";
|
|
@@ -17,16 +17,17 @@ import {
|
|
|
17
17
|
} from "../chunk-IQU4HKND.js";
|
|
18
18
|
import {
|
|
19
19
|
AppHeaderDetails
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-EJYJLVPK.js";
|
|
23
|
-
import "../chunk-LYVTJLCF.js";
|
|
24
|
-
import "../chunk-CRN4KKNI.js";
|
|
20
|
+
} from "../chunk-KBZFBHLO.js";
|
|
21
|
+
import "../chunk-R3JYC63P.js";
|
|
25
22
|
import "../chunk-3U3H3BZM.js";
|
|
23
|
+
import "../chunk-EJYJLVPK.js";
|
|
26
24
|
import "../chunk-FPVYD7BO.js";
|
|
25
|
+
import "../chunk-56JF5PZK.js";
|
|
27
26
|
import "../chunk-IM4DMKH4.js";
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-CRN4KKNI.js";
|
|
28
|
+
import "../chunk-UEROWH53.js";
|
|
29
29
|
import "../chunk-2WU52FLP.js";
|
|
30
|
+
import "../chunk-Y4O4DITI.js";
|
|
30
31
|
import "../chunk-GVGJMH77.js";
|
|
31
32
|
import "../chunk-GYXUCS37.js";
|
|
32
33
|
import "../chunk-2EAAWOZ2.js";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
GoogleIcon,
|
|
5
5
|
SocialLoginButton,
|
|
6
6
|
SocialLoginContainer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5CQ5HYJW.js";
|
|
8
8
|
import "./chunk-INGPH3YQ.js";
|
|
9
9
|
import "./chunk-6GP2DOOO.js";
|
|
10
10
|
import "./chunk-IJFAF3A7.js";
|
|
11
11
|
import "./chunk-5JSRM7WC.js";
|
|
12
12
|
import "./chunk-LKMMJKXU.js";
|
|
13
13
|
import "./chunk-CMMPGAMJ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XSSCSRUX.js";
|
|
15
|
+
import "./chunk-SYNB3IIB.js";
|
|
16
16
|
import "./chunk-VUHLNYAE.js";
|
|
17
17
|
import "./chunk-2GSIEDGN.js";
|
|
18
18
|
import "./chunk-WN5PNP6F.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Dialog/Dialog.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Dialog/Dialog.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AA6ExB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2ExC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqEpD,CAAC;AA0BF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsBpD,CAAC;AAEJ,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6BtD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* A caller's paper props, MERGED over the variant's rather than replacing them
|
|
4
|
+
* (FUT-2613).
|
|
5
|
+
*
|
|
6
|
+
* MUI reaches the paper through two props, and both used to replace ours whole:
|
|
7
|
+
* `PaperProps` (spread after ours) and `slotProps.paper` (which MUI itself puts
|
|
8
|
+
* over `PaperProps`). A caller asking for one class, or one `sx` tweak, lost
|
|
9
|
+
* the variant's radius, width, background and the paper's test id with it.
|
|
10
|
+
*
|
|
11
|
+
* Only the keys the merge reads are typed here; every other key the caller
|
|
12
|
+
* passed rides the spread through untouched.
|
|
13
|
+
*/
|
|
14
|
+
interface PaperSlotValue {
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
className?: string;
|
|
17
|
+
'data-testid'?: string;
|
|
18
|
+
}
|
|
19
|
+
/** A paper slot as MUI takes it: an object, or a function of the owner state. */
|
|
20
|
+
type PaperSlot<O> = PaperSlotValue | ((ownerState: O) => PaperSlotValue);
|
|
21
|
+
/**
|
|
22
|
+
* The one paper slot to hand MUI: the variant's `look`, then `PaperProps`, then
|
|
23
|
+
* `slotProps.paper`. A function slot stays a function, so MUI still calls it
|
|
24
|
+
* with its owner state and its result merges the same way.
|
|
25
|
+
*
|
|
26
|
+
* `testId` names the paper unless the caller's props name it; the drawer passes
|
|
27
|
+
* none, because its id already sits on the Drawer root.
|
|
28
|
+
*/
|
|
29
|
+
export declare function mergedPaperSlot<O>(look: SxProps<Theme>, testId: string | undefined, legacy: PaperSlotValue | undefined, slot: PaperSlot<O> | undefined): PaperSlot<O>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=Dialog.paper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.paper.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Dialog/Dialog.paper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,UAAU,cAAc;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iFAAiF;AACjF,KAAK,SAAS,CAAC,CAAC,IAAI,cAAc,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,KAAK,cAAc,CAAC,CAAC;AAwBzE;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,EACpB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,cAAc,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAC7B,SAAS,CAAC,CAAC,CAAC,CAKd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Separator/Separator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Separator/Separator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
|
|
@@ -16,6 +16,27 @@ type SeparatorStyleArgs = Required<Pick<SeparatorProps, 'variant' | 'orientation
|
|
|
16
16
|
* four sides, against 16px above and below for the unlabelled one.
|
|
17
17
|
*/
|
|
18
18
|
export declare const separatorBlockMargin: (theme: Theme, size: SeparatorSize, margin: number | string | undefined, isHorizontal: boolean) => string;
|
|
19
|
+
/**
|
|
20
|
+
* What a labelled separator's rules add to {@link separatorStyles}, and whether
|
|
21
|
+
* the group stretches to its parent (FUT-2617).
|
|
22
|
+
*
|
|
23
|
+
* A labelled VERTICAL separator is a flex COLUMN — rule, label, rule — and with
|
|
24
|
+
* no `length` each rule is `height: 100%` of a column whose height is its own
|
|
25
|
+
* content: both resolved to 0px and only the label showed. So the column
|
|
26
|
+
* stretches to the row it sits in and the two rules split what the label
|
|
27
|
+
* leaves, equally (`flex: 1 1 0`), never shorter than a visible minimum. With a
|
|
28
|
+
* `length` the rule is exactly that long: no grow, no shrink, no basis, and the
|
|
29
|
+
* column keeps its content height, centred as before.
|
|
30
|
+
*
|
|
31
|
+
* Only the labelled branch reads this. The plain separator keeps
|
|
32
|
+
* `separatorStyles` as is, since `flex: 1 1 0` there would widen a vertical
|
|
33
|
+
* separator sitting in a row. The horizontal rules already shrink around the
|
|
34
|
+
* label in their row, so they are left alone.
|
|
35
|
+
*/
|
|
36
|
+
export declare const labelledSeparatorLayout: (theme: Theme, isHorizontal: boolean, length: SeparatorProps["length"]) => {
|
|
37
|
+
rule: CSSObject;
|
|
38
|
+
group: CSSObject;
|
|
39
|
+
};
|
|
19
40
|
export declare const separatorStyles: (theme: Theme, { variant, orientation, size, color, blockMargin, length }: SeparatorStyleArgs) => CSSObject;
|
|
20
41
|
export {};
|
|
21
42
|
//# sourceMappingURL=Separator.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Separator/Separator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAEV,cAAc,EACd,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAuB3B,+DAA+D;AAC/D,eAAO,MAAM,eAAe,GAC1B,MAAM,aAAa,EACnB,SAAS,MAAM,GAAG,MAAM,KACvB,MAAM,GAAG,MAAmD,CAAC;AAyDhE,KAAK,kBAAkB,GAAG,QAAQ,CAChC,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,aAAa,GAAG,MAAM,CAAC,CACzD,GACC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IACzC,+FAA+F;IAC/F,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,EACZ,MAAM,aAAa,EACnB,QAAQ,MAAM,GAAG,MAAM,GAAG,SAAS,EACnC,cAAc,OAAO,KACpB,MAIF,CAAC;AAaF,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,EACZ,4DAA4D,kBAAkB,KAC7E,SA8BF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Separator.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Separator/Separator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAEV,cAAc,EACd,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAuB3B,+DAA+D;AAC/D,eAAO,MAAM,eAAe,GAC1B,MAAM,aAAa,EACnB,SAAS,MAAM,GAAG,MAAM,KACvB,MAAM,GAAG,MAAmD,CAAC;AAyDhE,KAAK,kBAAkB,GAAG,QAAQ,CAChC,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,aAAa,GAAG,MAAM,CAAC,CACzD,GACC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IACzC,+FAA+F;IAC/F,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,EACZ,MAAM,aAAa,EACnB,QAAQ,MAAM,GAAG,MAAM,GAAG,SAAS,EACnC,cAAc,OAAO,KACpB,MAIF,CAAC;AAaF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,KAAK,EACZ,cAAc,OAAO,EACrB,QAAQ,cAAc,CAAC,QAAQ,CAAC,KAC/B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CASrC,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,EACZ,4DAA4D,kBAAkB,KAC7E,SA8BF,CAAC"}
|
package/dist/user-avatar.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UserAvatar,
|
|
3
3
|
UserMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JQWAANGN.js";
|
|
5
5
|
import "./chunk-UDQSIRAP.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-EMEXXAQI.js";
|
|
7
|
+
import "./chunk-Y6C4MYZE.js";
|
|
8
|
+
import "./chunk-MTEQEPNY.js";
|
|
8
9
|
import "./chunk-6ZZGK5DT.js";
|
|
9
10
|
import "./chunk-3ZVUNSFF.js";
|
|
10
|
-
import "./chunk-MTEQEPNY.js";
|
|
11
11
|
import "./chunk-VUHLNYAE.js";
|
|
12
12
|
import "./chunk-2GSIEDGN.js";
|
|
13
13
|
import "./chunk-WN5PNP6F.js";
|
package/package.json
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A caller's paper props, MERGED over the variant's rather than replacing them
|
|
5
|
+
* (FUT-2613).
|
|
6
|
+
*
|
|
7
|
+
* MUI reaches the paper through two props, and both used to replace ours whole:
|
|
8
|
+
* `PaperProps` (spread after ours) and `slotProps.paper` (which MUI itself puts
|
|
9
|
+
* over `PaperProps`). A caller asking for one class, or one `sx` tweak, lost
|
|
10
|
+
* the variant's radius, width, background and the paper's test id with it.
|
|
11
|
+
*
|
|
12
|
+
* Only the keys the merge reads are typed here; every other key the caller
|
|
13
|
+
* passed rides the spread through untouched.
|
|
14
|
+
*/
|
|
15
|
+
interface PaperSlotValue {
|
|
16
|
+
sx?: SxProps<Theme>;
|
|
17
|
+
className?: string;
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** A paper slot as MUI takes it: an object, or a function of the owner state. */
|
|
22
|
+
type PaperSlot<O> = PaperSlotValue | ((ownerState: O) => PaperSlotValue);
|
|
23
|
+
|
|
24
|
+
/** Our look first, then whatever `sx` the caller adds — so the caller's escape hatch still wins. */
|
|
25
|
+
function sxList(caller: SxProps<Theme> | undefined): readonly unknown[] {
|
|
26
|
+
if (caller === undefined) return [];
|
|
27
|
+
return Array.isArray(caller) ? caller : [caller];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function mergeOver(
|
|
31
|
+
look: SxProps<Theme>,
|
|
32
|
+
testId: string | undefined,
|
|
33
|
+
legacy: PaperSlotValue | undefined,
|
|
34
|
+
slot: PaperSlotValue | undefined,
|
|
35
|
+
): PaperSlotValue {
|
|
36
|
+
// MUI's own order: `slotProps.paper` over `PaperProps`.
|
|
37
|
+
const caller: PaperSlotValue = { ...legacy, ...slot };
|
|
38
|
+
return {
|
|
39
|
+
...caller,
|
|
40
|
+
sx: [look, ...sxList(legacy?.sx), ...sxList(slot?.sx)] as SxProps<Theme>,
|
|
41
|
+
// A key the caller set to `undefined` does not erase the dialog's id.
|
|
42
|
+
'data-testid': caller['data-testid'] ?? testId,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The one paper slot to hand MUI: the variant's `look`, then `PaperProps`, then
|
|
48
|
+
* `slotProps.paper`. A function slot stays a function, so MUI still calls it
|
|
49
|
+
* with its owner state and its result merges the same way.
|
|
50
|
+
*
|
|
51
|
+
* `testId` names the paper unless the caller's props name it; the drawer passes
|
|
52
|
+
* none, because its id already sits on the Drawer root.
|
|
53
|
+
*/
|
|
54
|
+
export function mergedPaperSlot<O>(
|
|
55
|
+
look: SxProps<Theme>,
|
|
56
|
+
testId: string | undefined,
|
|
57
|
+
legacy: PaperSlotValue | undefined,
|
|
58
|
+
slot: PaperSlot<O> | undefined,
|
|
59
|
+
): PaperSlot<O> {
|
|
60
|
+
if (typeof slot === 'function') {
|
|
61
|
+
return (ownerState: O) => mergeOver(look, testId, legacy, slot(ownerState));
|
|
62
|
+
}
|
|
63
|
+
return mergeOver(look, testId, legacy, slot);
|
|
64
|
+
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
DIALOG_TITLE,
|
|
21
21
|
DIALOG_TITLED_BODY_PADDING_TOP_UNITS,
|
|
22
22
|
} from './Dialog.metrics';
|
|
23
|
+
import { mergedPaperSlot } from './Dialog.paper';
|
|
23
24
|
import { backdropSxOf, variantStylesOf } from './Dialog.styles';
|
|
24
25
|
import { childTestId, resolveTestId, slotTestId, withoutTestIdProps } from '../../../platform/test-id';
|
|
25
26
|
import type {
|
|
@@ -74,15 +75,11 @@ function bodyOf(children: React.ReactNode, hasTitle: boolean): React.ReactNode {
|
|
|
74
75
|
return <Box sx={{ ...BODY_SX, pt }}>{children}</Box>;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
/** Our look first, then whatever `sx` the caller adds — so the caller's escape hatch still wins. */
|
|
78
|
-
function withCallerSx(own: SxProps<Theme>, caller: SxProps<Theme> | undefined): SxProps<Theme> {
|
|
79
|
-
return [own, ...(Array.isArray(caller) ? caller : caller === undefined ? [] : [caller])] as SxProps<Theme>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
78
|
/**
|
|
83
79
|
* The drawer variant: MUI's `Drawer`, with the variant's look on the Drawer's
|
|
84
80
|
* OWN paper — on an inner Box it left the paper 0px wide and clipped the panel —
|
|
85
|
-
* and a caller's paper props merged over it rather than replacing it.
|
|
81
|
+
* and a caller's paper props merged over it rather than replacing it. The
|
|
82
|
+
* test id stays on the Drawer root, so the paper carries none of its own.
|
|
86
83
|
*/
|
|
87
84
|
function DrawerDialog({
|
|
88
85
|
paperSx,
|
|
@@ -95,13 +92,13 @@ function DrawerDialog({
|
|
|
95
92
|
drawerProps: DrawerProps;
|
|
96
93
|
children: React.ReactNode;
|
|
97
94
|
}) {
|
|
98
|
-
const { PaperProps: callerPaper, ...rest } = drawerProps;
|
|
95
|
+
const { PaperProps: callerPaper, slotProps, ...rest } = drawerProps;
|
|
99
96
|
return (
|
|
100
97
|
<Drawer
|
|
101
98
|
anchor="right"
|
|
102
99
|
data-testid={testId}
|
|
103
100
|
{...rest}
|
|
104
|
-
|
|
101
|
+
slotProps={{ ...slotProps, paper: mergedPaperSlot(paperSx, undefined, callerPaper, slotProps?.paper) }}
|
|
105
102
|
>
|
|
106
103
|
{children}
|
|
107
104
|
</Drawer>
|
|
@@ -133,7 +130,7 @@ export const Dialog: React.FC<DialogProps> = (rawProps) => {
|
|
|
133
130
|
// Native's name for it and is not a DOM attribute. The native `Dialog` does
|
|
134
131
|
// the same in reverse.
|
|
135
132
|
const testId = resolveTestId(others, 'dialog');
|
|
136
|
-
const props = withoutTestIdProps(others);
|
|
133
|
+
const { PaperProps: callerPaper, slotProps, ...props } = withoutTestIdProps(others);
|
|
137
134
|
const paperSx = variantStylesOf(theme, {
|
|
138
135
|
variant, size, borderRadius, glass, gradient, glow, pulse,
|
|
139
136
|
});
|
|
@@ -158,7 +155,11 @@ export const Dialog: React.FC<DialogProps> = (rawProps) => {
|
|
|
158
155
|
|
|
159
156
|
if (variant === 'drawer') {
|
|
160
157
|
return (
|
|
161
|
-
<DrawerDialog
|
|
158
|
+
<DrawerDialog
|
|
159
|
+
paperSx={paperSx}
|
|
160
|
+
testId={testId}
|
|
161
|
+
drawerProps={{ ...props, PaperProps: callerPaper, slotProps, open, onClose }}
|
|
162
|
+
>
|
|
162
163
|
{header}
|
|
163
164
|
{body}
|
|
164
165
|
</DrawerDialog>
|
|
@@ -172,8 +173,8 @@ export const Dialog: React.FC<DialogProps> = (rawProps) => {
|
|
|
172
173
|
fullScreen={variant === 'fullscreen'}
|
|
173
174
|
BackdropComponent={backdrop ? Backdrop : undefined}
|
|
174
175
|
BackdropProps={{ sx: backdropSxOf(theme, glass) }}
|
|
175
|
-
PaperProps={{ sx: paperSx, 'data-testid': testId }}
|
|
176
176
|
{...props}
|
|
177
|
+
slotProps={{ ...slotProps, paper: mergedPaperSlot(paperSx, testId, callerPaper, slotProps?.paper) }}
|
|
177
178
|
>
|
|
178
179
|
{header}
|
|
179
180
|
{body}
|
|
@@ -128,6 +128,38 @@ const ruleLength = (theme: Theme, length: SeparatorProps['length']): string => {
|
|
|
128
128
|
return length <= 1 ? `${length * 100}%` : rem(theme, length);
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
+
/**
|
|
132
|
+
* What a labelled separator's rules add to {@link separatorStyles}, and whether
|
|
133
|
+
* the group stretches to its parent (FUT-2617).
|
|
134
|
+
*
|
|
135
|
+
* A labelled VERTICAL separator is a flex COLUMN — rule, label, rule — and with
|
|
136
|
+
* no `length` each rule is `height: 100%` of a column whose height is its own
|
|
137
|
+
* content: both resolved to 0px and only the label showed. So the column
|
|
138
|
+
* stretches to the row it sits in and the two rules split what the label
|
|
139
|
+
* leaves, equally (`flex: 1 1 0`), never shorter than a visible minimum. With a
|
|
140
|
+
* `length` the rule is exactly that long: no grow, no shrink, no basis, and the
|
|
141
|
+
* column keeps its content height, centred as before.
|
|
142
|
+
*
|
|
143
|
+
* Only the labelled branch reads this. The plain separator keeps
|
|
144
|
+
* `separatorStyles` as is, since `flex: 1 1 0` there would widen a vertical
|
|
145
|
+
* separator sitting in a row. The horizontal rules already shrink around the
|
|
146
|
+
* label in their row, so they are left alone.
|
|
147
|
+
*/
|
|
148
|
+
export const labelledSeparatorLayout = (
|
|
149
|
+
theme: Theme,
|
|
150
|
+
isHorizontal: boolean,
|
|
151
|
+
length: SeparatorProps['length'],
|
|
152
|
+
): { rule: CSSObject; group: CSSObject } => {
|
|
153
|
+
if (isHorizontal) return { rule: {}, group: {} };
|
|
154
|
+
if (length) return { rule: { flex: 'none' }, group: {} };
|
|
155
|
+
return {
|
|
156
|
+
// A design 16px, as long as the gap beside the label at the default
|
|
157
|
+
// spacing, so a short or unsized row still shows two rules and not a word.
|
|
158
|
+
rule: { flex: '1 1 0', minHeight: rem(theme, 16) },
|
|
159
|
+
group: { alignSelf: 'stretch' },
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
|
|
131
163
|
export const separatorStyles = (
|
|
132
164
|
theme: Theme,
|
|
133
165
|
{ variant, orientation, size, color, blockMargin, length }: SeparatorStyleArgs,
|