@m4l/components 9.74.0 → 9.74.2-beta-pkg-802-ajustes-mf-53.0
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/components/AccountPopover/AccountPopover.js +5 -5
- package/components/AccountPopover/AccountPopover.styles.d.ts.map +1 -1
- package/components/AccountPopover/AccountPopover.styles.js +114 -26
- package/components/AccountPopover/slots/AccountPopoverEnum.d.ts +8 -0
- package/components/AccountPopover/slots/AccountPopoverEnum.d.ts.map +1 -1
- package/components/AccountPopover/slots/AccountPopoverEnum.js +2 -2
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +24 -0
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts.map +1 -1
- package/components/AccountPopover/slots/AccountPopoverSlots.js +66 -34
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts.map +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +101 -75
- package/components/AccountPopover/subcomponents/MenuPopover/types.d.ts +1 -1
- package/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.d.ts +1 -1
- package/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.d.ts.map +1 -1
- package/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.js +13 -10
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +9 -8
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts.map +1 -1
- package/components/MenuActions/constants.d.ts +1 -1
- package/components/extended/mui/Autocomplete/constants.d.ts +1 -1
- package/components/extended/mui/DatePicker/constants.d.ts +1 -1
- package/package.json +11 -11
|
@@ -19,12 +19,12 @@ const se = (v) => {
|
|
|
19
19
|
userData: u,
|
|
20
20
|
settingsHandleOpen: O,
|
|
21
21
|
size: y
|
|
22
|
-
} = v, { avatarUrl: M, firstName: z
|
|
22
|
+
} = v, { avatarUrl: M, firstName: z, lastName: E } = u, [P, l] = c("unLoad"), [o, a] = c(null), [k, m] = c([]), [d, p] = c(), r = b(void 0), { networkOperation: f } = D(), { currentLocale: N } = _(), e = N?.localeString, { currentSize: s } = q(y), R = {
|
|
23
23
|
size: s
|
|
24
24
|
};
|
|
25
25
|
j(() => {
|
|
26
26
|
let t = !0;
|
|
27
|
-
return !!o && d !== e && r.current !== e ? (r.current = e, l("loading"),
|
|
27
|
+
return !!o && d !== e && r.current !== e ? (r.current = e, l("loading"), f({
|
|
28
28
|
method: "GET",
|
|
29
29
|
responseToCamelCase: !0,
|
|
30
30
|
endPoint: "menus",
|
|
@@ -33,9 +33,9 @@ const se = (v) => {
|
|
|
33
33
|
locale: e
|
|
34
34
|
}
|
|
35
35
|
}).then((n) => {
|
|
36
|
-
t && (l("loaded"), m(Array.isArray(n.data) ? n.data : []),
|
|
36
|
+
t && (l("loaded"), m(Array.isArray(n.data) ? n.data : []), p(e));
|
|
37
37
|
}).catch((n) => {
|
|
38
|
-
t && (l("unLoad"), m([]),
|
|
38
|
+
t && (l("unLoad"), m([]), p(void 0));
|
|
39
39
|
}).finally(() => {
|
|
40
40
|
r.current === e && (r.current = void 0);
|
|
41
41
|
}), function() {
|
|
@@ -43,7 +43,7 @@ const se = (v) => {
|
|
|
43
43
|
}) : function() {
|
|
44
44
|
t = !1;
|
|
45
45
|
};
|
|
46
|
-
}, [o, e, d,
|
|
46
|
+
}, [o, e, d, f]);
|
|
47
47
|
const U = h(() => {
|
|
48
48
|
a(null);
|
|
49
49
|
}, [a]), x = h((t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountPopover.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AccountPopover/AccountPopover.styles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountPopover.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AccountPopover/AccountPopover.styles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAmB/C,eAAO,MAAM,oBAAoB,EAAE,oBAuOlC,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { getIconPaintStyles as o } from "@m4l/base";
|
|
|
2
2
|
import { getTypographyStyles as r } from "../../utils/getTypographyStyles.js";
|
|
3
3
|
import { ACCOUNT_POPOVER_WIDTH as n } from "./constants.js";
|
|
4
4
|
import { MENUITEM_CLASSES as e } from "../extended/mui/MenuItem/constants.js";
|
|
5
|
-
|
|
5
|
+
import { CLIPBOARD_CLASSES as p } from "../extended/mui/Clipboard/constants.js";
|
|
6
|
+
const i = (s) => ({
|
|
6
7
|
"&&&": {
|
|
7
8
|
border: 0,
|
|
8
9
|
padding: `${s.vars.size.baseSpacings["sp1-5"]} ${s.vars.size.baseSpacings.sp2}`,
|
|
@@ -15,12 +16,12 @@ const a = (s) => ({
|
|
|
15
16
|
scope: `.${e.menuItemIcon}.M4LIcon-root`
|
|
16
17
|
})
|
|
17
18
|
}
|
|
18
|
-
}),
|
|
19
|
+
}), b = {
|
|
19
20
|
/** Styles for the account trigger and its selected avatar surface. */
|
|
20
|
-
iconButtonRoot: ({ theme: s, ownerState:
|
|
21
|
+
iconButtonRoot: ({ theme: s, ownerState: a }) => ({
|
|
21
22
|
"&&&": {
|
|
22
|
-
width: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][
|
|
23
|
-
height: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][
|
|
23
|
+
width: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][a?.size ?? "medium"].box,
|
|
24
|
+
height: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][a?.size ?? "medium"].box,
|
|
24
25
|
flexShrink: 0,
|
|
25
26
|
padding: 0,
|
|
26
27
|
border: `${s.vars.size.baseSpacings["sp0-5"]} solid transparent`,
|
|
@@ -37,7 +38,7 @@ const a = (s) => ({
|
|
|
37
38
|
}
|
|
38
39
|
}),
|
|
39
40
|
/** Styles for the user avatar inside the account trigger. */
|
|
40
|
-
avatar: ({ theme: s, ownerState:
|
|
41
|
+
avatar: ({ theme: s, ownerState: a }) => ({
|
|
41
42
|
"&&&": {
|
|
42
43
|
width: "100%",
|
|
43
44
|
height: "100%",
|
|
@@ -45,41 +46,59 @@ const a = (s) => ({
|
|
|
45
46
|
backgroundColor: "transparent",
|
|
46
47
|
borderRadius: s.vars.size.borderRadius.r2,
|
|
47
48
|
boxShadow: "none",
|
|
48
|
-
...r(s.generalSettings.isMobile,
|
|
49
|
+
...r(s.generalSettings.isMobile, a?.size ?? "medium", "captionDens")
|
|
49
50
|
}
|
|
50
51
|
}),
|
|
51
52
|
/** Styles for the user avatar in the popover header. */
|
|
52
|
-
avatarPopover: ({ theme: s, ownerState:
|
|
53
|
+
avatarPopover: ({ theme: s, ownerState: a }) => ({
|
|
53
54
|
"&&&": {
|
|
54
|
-
width: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][
|
|
55
|
-
height: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][
|
|
55
|
+
width: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][a?.size ?? "medium"].container,
|
|
56
|
+
height: s.vars.size[s.generalSettings.isMobile ? "mobile" : "desktop"][a?.size ?? "medium"].container,
|
|
56
57
|
flexShrink: 0,
|
|
57
58
|
border: s.vars.size.borderStroke.actionInput,
|
|
58
59
|
borderColor: s.vars.palette.border.default,
|
|
59
60
|
borderRadius: s.vars.size.borderRadius.r2,
|
|
60
61
|
backgroundColor: s.vars.palette.background.base,
|
|
61
62
|
color: s.vars.palette.text.primary,
|
|
62
|
-
...r(s.generalSettings.isMobile,
|
|
63
|
+
...r(s.generalSettings.isMobile, a?.size ?? "medium", "captionDens")
|
|
63
64
|
}
|
|
64
65
|
}),
|
|
65
66
|
/** Styles for the popover displayed when the user opens the avatar trigger. */
|
|
66
|
-
popoverRoot: ({ theme: s, ownerState:
|
|
67
|
+
popoverRoot: ({ theme: s, ownerState: a }) => ({
|
|
67
68
|
"&&& .MuiPaper-root": {
|
|
68
69
|
width: n,
|
|
69
70
|
boxSizing: "border-box",
|
|
70
71
|
display: "flex",
|
|
71
72
|
flexDirection: "column",
|
|
72
73
|
gap: s.vars.size.baseSpacings["sp0-5"],
|
|
73
|
-
marginTop:
|
|
74
|
+
marginTop: a?.anchorOrigin?.vertical === "bottom" && a?.transformOrigin?.vertical === "top" ? s.vars.size.baseSpacings.sp2 : 0,
|
|
74
75
|
// Rail placement needs a horizontal gap instead of the top-bar vertical offset.
|
|
75
|
-
marginLeft:
|
|
76
|
+
marginLeft: a?.anchorOrigin?.horizontal === "right" && a?.transformOrigin?.horizontal === "left" ? s.vars.size.baseSpacings.sp2 : 0,
|
|
76
77
|
padding: s.vars.size.baseSpacings.sp3,
|
|
77
78
|
backgroundColor: s.vars.palette.background.default,
|
|
78
79
|
borderRadius: s.vars.size.borderRadius.r3,
|
|
79
80
|
boxShadow: s.vars.customShadows.z3
|
|
80
81
|
}
|
|
81
82
|
}),
|
|
82
|
-
/**
|
|
83
|
+
/** Share a soft accent surface across the user and business identities. */
|
|
84
|
+
identityCard: ({ theme: s }) => ({
|
|
85
|
+
display: "flex",
|
|
86
|
+
flexDirection: "column",
|
|
87
|
+
minWidth: 0,
|
|
88
|
+
padding: s.vars.size.baseSpacings.sp2,
|
|
89
|
+
marginBottom: s.vars.size.baseSpacings.sp2,
|
|
90
|
+
borderRadius: s.vars.size.borderRadius.r2,
|
|
91
|
+
backgroundColor: s.vars.palette.background.default,
|
|
92
|
+
backgroundImage: `linear-gradient(180deg, transparent, ${s.vars.palette.primary.opacity})`
|
|
93
|
+
}),
|
|
94
|
+
/** Separate user and business rows while retaining the shared card surface. */
|
|
95
|
+
identityDivider: ({ theme: s }) => ({
|
|
96
|
+
height: "1px",
|
|
97
|
+
flexShrink: 0,
|
|
98
|
+
margin: `${s.vars.size.baseSpacings.sp1} ${s.vars.size.baseSpacings.sp2}`,
|
|
99
|
+
backgroundColor: s.vars.palette.background.default
|
|
100
|
+
}),
|
|
101
|
+
/** Styles for the user identity header inside the shared identity card. */
|
|
83
102
|
userDataContainer: ({ theme: s }) => ({
|
|
84
103
|
display: "flex",
|
|
85
104
|
flexDirection: "row",
|
|
@@ -87,9 +106,10 @@ const a = (s) => ({
|
|
|
87
106
|
gap: s.vars.size.baseSpacings.sp3,
|
|
88
107
|
width: "100%",
|
|
89
108
|
alignItems: "center",
|
|
90
|
-
|
|
109
|
+
padding: s.vars.size.baseSpacings.sp2,
|
|
110
|
+
boxSizing: "border-box"
|
|
91
111
|
}),
|
|
92
|
-
/** Styles for the identity text stack, shared by the name and
|
|
112
|
+
/** Styles for the identity text stack, shared by the name and email. */
|
|
93
113
|
userNameEmail: ({ theme: s }) => ({
|
|
94
114
|
display: "flex",
|
|
95
115
|
flexDirection: "column",
|
|
@@ -105,13 +125,79 @@ const a = (s) => ({
|
|
|
105
125
|
lineHeight: s.vars.size.baseSpacings.sp4
|
|
106
126
|
}
|
|
107
127
|
}),
|
|
108
|
-
/**
|
|
128
|
+
/** Keep the user's email within the available header width. */
|
|
109
129
|
email: ({ theme: s }) => ({
|
|
110
|
-
|
|
130
|
+
minWidth: 0,
|
|
131
|
+
"&&&": {
|
|
111
132
|
color: s.vars.palette.text.secondary
|
|
112
133
|
}
|
|
113
134
|
}),
|
|
114
|
-
/**
|
|
135
|
+
/** Group the active business row on the shared user and business surface without introducing an account action. */
|
|
136
|
+
companyCard: ({ theme: s }) => ({
|
|
137
|
+
display: "flex",
|
|
138
|
+
alignItems: "center",
|
|
139
|
+
gap: s.vars.size.baseSpacings.sp3,
|
|
140
|
+
padding: s.vars.size.baseSpacings.sp2,
|
|
141
|
+
minWidth: 0
|
|
142
|
+
}),
|
|
143
|
+
/** Paint the business icon in the theme's primary accent surface. */
|
|
144
|
+
companyIcon: ({ theme: s }) => ({
|
|
145
|
+
"&&&": {
|
|
146
|
+
boxSizing: "border-box",
|
|
147
|
+
width: s.vars.size.baseSpacings.sp8,
|
|
148
|
+
height: s.vars.size.baseSpacings.sp8,
|
|
149
|
+
padding: s.vars.size.baseSpacings.sp2,
|
|
150
|
+
borderRadius: s.vars.size.borderRadius.r2,
|
|
151
|
+
backgroundColor: s.vars.palette.primary.selectedOpacity,
|
|
152
|
+
flexShrink: 0,
|
|
153
|
+
// Icon's SVG inherits the outer box size, so constrain the glyph inside its padded surface.
|
|
154
|
+
"& .MuiSvgIcon-root": {
|
|
155
|
+
width: s.vars.size.baseSpacings.sp4,
|
|
156
|
+
height: s.vars.size.baseSpacings.sp4,
|
|
157
|
+
flexShrink: 0
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}),
|
|
161
|
+
/** Allow company text to wrap beside the fixed-size business icon. */
|
|
162
|
+
companyDetails: ({ theme: s }) => ({
|
|
163
|
+
display: "flex",
|
|
164
|
+
flexDirection: "column",
|
|
165
|
+
alignItems: "flex-start",
|
|
166
|
+
gap: s.vars.size.baseSpacings.sp1,
|
|
167
|
+
flex: 1,
|
|
168
|
+
minWidth: 0
|
|
169
|
+
}),
|
|
170
|
+
/** Preserve the complete legal business name, including long unbroken values. */
|
|
171
|
+
businessName: () => ({
|
|
172
|
+
"&&&": {
|
|
173
|
+
whiteSpace: "normal",
|
|
174
|
+
overflowWrap: "anywhere",
|
|
175
|
+
maxWidth: "100%"
|
|
176
|
+
}
|
|
177
|
+
}),
|
|
178
|
+
/** Keep the copyable ID and its action together on a compact bordered surface. */
|
|
179
|
+
accountId: ({ theme: s }) => ({
|
|
180
|
+
display: "flex",
|
|
181
|
+
alignItems: "center",
|
|
182
|
+
gap: s.vars.size.baseSpacings.sp1,
|
|
183
|
+
padding: `${s.vars.size.baseSpacings["sp0-5"]} ${s.vars.size.baseSpacings.sp1}`,
|
|
184
|
+
border: s.vars.size.borderStroke.actionInput,
|
|
185
|
+
borderColor: s.vars.palette.border.default,
|
|
186
|
+
borderRadius: s.vars.size.borderRadius.r1,
|
|
187
|
+
backgroundColor: s.vars.palette.background.default,
|
|
188
|
+
maxWidth: "100%",
|
|
189
|
+
boxSizing: "border-box"
|
|
190
|
+
}),
|
|
191
|
+
/** Fit the shared copy button to the account-ID chip without affecting other Clipboard consumers. */
|
|
192
|
+
accountIdCopy: ({ theme: s }) => ({
|
|
193
|
+
[`&&&.${p.iconButton}`]: {
|
|
194
|
+
width: s.vars.size.baseSpacings.sp4,
|
|
195
|
+
height: s.vars.size.baseSpacings.sp4,
|
|
196
|
+
padding: 0,
|
|
197
|
+
flexShrink: 0
|
|
198
|
+
}
|
|
199
|
+
}),
|
|
200
|
+
/** Styles for the version row outside the shared identity card. */
|
|
115
201
|
versionContainer: ({ theme: s }) => ({
|
|
116
202
|
display: "flex",
|
|
117
203
|
flexDirection: "row",
|
|
@@ -119,15 +205,17 @@ const a = (s) => ({
|
|
|
119
205
|
minHeight: s.vars.size.baseSpacings.sp4,
|
|
120
206
|
gap: s.vars.size.baseSpacings.sp1,
|
|
121
207
|
alignItems: "center",
|
|
122
|
-
minWidth: 0
|
|
208
|
+
minWidth: 0,
|
|
209
|
+
justifyContent: "space-between",
|
|
210
|
+
padding: `${s.vars.size.baseSpacings.sp1} ${s.vars.size.baseSpacings.sp2}`
|
|
123
211
|
}),
|
|
124
212
|
/** Styles for the version label in the popover. */
|
|
125
213
|
version: () => ({
|
|
126
214
|
minWidth: 0
|
|
127
215
|
}),
|
|
128
216
|
/** Styles for the preferences menu entry. */
|
|
129
|
-
menuItemSetting: ({ theme: s }) =>
|
|
130
|
-
/** Styles for the branch icon
|
|
217
|
+
menuItemSetting: ({ theme: s }) => i(s),
|
|
218
|
+
/** Styles for the branch icon trailing the version label. */
|
|
131
219
|
versionIcon: ({ theme: s }) => ({
|
|
132
220
|
"&&&": {
|
|
133
221
|
width: s.vars.size.baseSpacings["sp3-5"],
|
|
@@ -136,7 +224,7 @@ const a = (s) => ({
|
|
|
136
224
|
}
|
|
137
225
|
}),
|
|
138
226
|
/** Styles for additional menu entries supplied by the backend. */
|
|
139
|
-
menuItem: ({ theme: s }) =>
|
|
227
|
+
menuItem: ({ theme: s }) => i(s),
|
|
140
228
|
/** Styles for the divider separating identity, actions, and logout. */
|
|
141
229
|
divider: ({ theme: s }) => ({
|
|
142
230
|
height: `calc(${s.vars.size.baseSpacings.sp3} + 1px)`,
|
|
@@ -156,8 +244,8 @@ const a = (s) => ({
|
|
|
156
244
|
/** Styles for the progress indicator while additional actions are loading. */
|
|
157
245
|
circularPropress: () => ({}),
|
|
158
246
|
/** Styles for the logout menu entry. */
|
|
159
|
-
menuItemLogout: ({ theme: s }) =>
|
|
247
|
+
menuItemLogout: ({ theme: s }) => i(s)
|
|
160
248
|
};
|
|
161
249
|
export {
|
|
162
|
-
|
|
250
|
+
b as accountPopoverStyles
|
|
163
251
|
};
|
|
@@ -3,6 +3,8 @@ export declare enum AccountPopoverSlots {
|
|
|
3
3
|
avatar = "avatar",
|
|
4
4
|
avatarPopover = "avatarPopover",
|
|
5
5
|
popoverRoot = "popoverRoot",
|
|
6
|
+
identityCard = "identityCard",
|
|
7
|
+
identityDivider = "identityDivider",
|
|
6
8
|
userDataContainer = "userDataContainer",
|
|
7
9
|
userNameEmail = "userNameEmail",
|
|
8
10
|
divider = "divider",
|
|
@@ -12,6 +14,12 @@ export declare enum AccountPopoverSlots {
|
|
|
12
14
|
menuItemLogout = "menuItemLogout",
|
|
13
15
|
fullName = "fullName",
|
|
14
16
|
email = "email",
|
|
17
|
+
companyCard = "companyCard",
|
|
18
|
+
companyIcon = "companyIcon",
|
|
19
|
+
companyDetails = "companyDetails",
|
|
20
|
+
businessName = "businessName",
|
|
21
|
+
accountId = "accountId",
|
|
22
|
+
accountIdCopy = "accountIdCopy",
|
|
15
23
|
versionContainer = "versionContainer",
|
|
16
24
|
version = "version",
|
|
17
25
|
versionIcon = "versionIcon"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountPopoverEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/AccountPopover/slots/AccountPopoverEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B"}
|
|
1
|
+
{"version":3,"file":"AccountPopoverEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/AccountPopover/slots/AccountPopoverEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var i = /* @__PURE__ */ ((a) => (a.iconButtonRoot = "iconButtonRoot", a.avatar = "avatar", a.avatarPopover = "avatarPopover", a.popoverRoot = "popoverRoot", a.identityCard = "identityCard", a.identityDivider = "identityDivider", a.userDataContainer = "userDataContainer", a.userNameEmail = "userNameEmail", a.divider = "divider", a.circularPropress = "circularPropress", a.menuItemSetting = "menuItemSetting", a.menuItem = "menuItem", a.menuItemLogout = "menuItemLogout", a.fullName = "fullName", a.email = "email", a.companyCard = "companyCard", a.companyIcon = "companyIcon", a.companyDetails = "companyDetails", a.businessName = "businessName", a.accountId = "accountId", a.accountIdCopy = "accountIdCopy", a.versionContainer = "versionContainer", a.version = "version", a.versionIcon = "versionIcon", a))(i || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
i as AccountPopoverSlots
|
|
4
4
|
};
|
|
@@ -13,6 +13,12 @@ export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pi
|
|
|
13
13
|
export declare const UserDataContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
14
14
|
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
15
15
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const IdentityCardStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
17
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
18
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export declare const IdentityDividerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
22
|
export declare const UserNameEmailStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
17
23
|
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
18
24
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -37,6 +43,24 @@ export declare const FullNametStyled: import('@emotion/styled').StyledComponent<
|
|
|
37
43
|
export declare const EmailtStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "classes" | "children" | "className" | "sx" | "p" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "size" | "variant" | "dataTestid" | "paragraph" | "disabled" | "skeletonWidth" | "ellipsis" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
38
44
|
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
39
45
|
}, {}, {}>;
|
|
46
|
+
export declare const CompanyCardStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
47
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
48
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
49
|
+
export declare const CompanyIconStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/base').IconProps, "src" | "icon" | keyof import('@m4l/base').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
50
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
51
|
+
}, {}, {}>;
|
|
52
|
+
export declare const CompanyDetailsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
53
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
54
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
55
|
+
export declare const BusinessNameStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "classes" | "children" | "className" | "sx" | "p" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "size" | "variant" | "dataTestid" | "paragraph" | "disabled" | "skeletonWidth" | "ellipsis" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
56
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
57
|
+
}, {}, {}>;
|
|
58
|
+
export declare const AccountIdStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
59
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
60
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
61
|
+
export declare const AccountIdCopyStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').ClipboardProps, keyof import('../..').ClipboardProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
62
|
+
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
63
|
+
}, {}, {}>;
|
|
40
64
|
export declare const VersionContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
41
65
|
ownerState?: (Partial<import('../types').AccountPopoverOwnerState> & Record<string, unknown>) | undefined;
|
|
42
66
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountPopoverSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/AccountPopover/slots/AccountPopoverSlots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountPopoverSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/AccountPopover/slots/AccountPopoverSlots.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,oBAAoB;;UAGO,CAAC;AACzC,eAAO,MAAM,YAAY;;UAGO,CAAC;AACjC,eAAO,MAAM,mBAAmB;;UAGO,CAAC;AACxC,eAAO,MAAM,aAAa;;UAGW,CAAC;AACtC,eAAO,MAAM,uBAAuB;;6NAGO,CAAC;AAC5C,eAAO,MAAM,kBAAkB;;6NAGO,CAAC;AACvC,eAAO,MAAM,qBAAqB;;6NAGO,CAAC;AAC1C,eAAO,MAAM,mBAAmB;;6NAGO,CAAC;AACxC,eAAO,MAAM,aAAa;;6NAGO,CAAC;AAClC,eAAO,MAAM,sBAAsB;;UAGO,CAAC;AAC3C,eAAO,MAAM,sBAAsB;;UAGM,CAAC;AAC1C,eAAO,MAAM,oBAAoB;;UAGO,CAAC;AACzC,eAAO,MAAM,cAAc;;UAGO,CAAC;AACnC,eAAO,MAAM,eAAe;;UAGM,CAAC;AACnC,eAAO,MAAM,YAAY;;UAGM,CAAC;AAChC,eAAO,MAAM,iBAAiB;;6NAGO,CAAC;AACtC,eAAO,MAAM,iBAAiB;;UAGO,CAAC;AACtC,eAAO,MAAM,oBAAoB;;6NAGO,CAAC;AACzC,eAAO,MAAM,kBAAkB;;UAGO,CAAC;AACvC,eAAO,MAAM,eAAe;;6NAGO,CAAC;AACpC,eAAO,MAAM,mBAAmB;;UAGO,CAAC;AACxC,eAAO,MAAM,sBAAsB;;6NAGO,CAAC;AAC3C,eAAO,MAAM,aAAa;;UAGO,CAAC;AAClC,eAAO,MAAM,iBAAiB;;UAGO,CAAC"}
|
|
@@ -2,77 +2,109 @@ import { styled as o } from "@mui/material/styles";
|
|
|
2
2
|
import { ACCOUNT_KEY_POPOVER as t } from "../constants.js";
|
|
3
3
|
import { AccountPopoverSlots as e } from "./AccountPopoverEnum.js";
|
|
4
4
|
import { accountPopoverStyles as n } from "../AccountPopover.styles.js";
|
|
5
|
-
import { Typography as
|
|
5
|
+
import { Typography as a, Icon as s } from "@m4l/base";
|
|
6
6
|
import { IconButton as i } from "../../extended/mui/IconButton/IconButton.js";
|
|
7
7
|
import { Avatar as m } from "../../extended/mui/Avatar/Avatar.js";
|
|
8
8
|
import { Popover as l } from "../../extended/mui/Popover/Popover.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Clipboard as c } from "../../extended/mui/Clipboard/Clipboard.js";
|
|
10
|
+
import { CircularProgress as d } from "../../extended/mui/CircularProgress/CircularProgress.js";
|
|
11
|
+
import { MenuItem as r } from "../../extended/mui/MenuItem/MenuItem.js";
|
|
11
12
|
const g = o(i, {
|
|
12
13
|
name: t,
|
|
13
14
|
slot: e.iconButtonRoot
|
|
14
|
-
})(n?.iconButtonRoot),
|
|
15
|
+
})(n?.iconButtonRoot), A = o(m, {
|
|
15
16
|
name: t,
|
|
16
17
|
slot: e.avatar
|
|
17
|
-
})(n?.avatar),
|
|
18
|
+
})(n?.avatar), E = o(m, {
|
|
18
19
|
name: t,
|
|
19
20
|
slot: e.avatarPopover
|
|
20
|
-
})(n?.avatarPopover),
|
|
21
|
+
})(n?.avatarPopover), R = o(l, {
|
|
21
22
|
name: t,
|
|
22
23
|
slot: e.popoverRoot
|
|
23
|
-
})(n?.popoverRoot),
|
|
24
|
+
})(n?.popoverRoot), B = o("div", {
|
|
24
25
|
name: t,
|
|
25
26
|
slot: e.userDataContainer
|
|
26
|
-
})(n?.userDataContainer),
|
|
27
|
+
})(n?.userDataContainer), M = o("div", {
|
|
28
|
+
name: t,
|
|
29
|
+
slot: e.identityCard
|
|
30
|
+
})(n?.identityCard), V = o("div", {
|
|
31
|
+
name: t,
|
|
32
|
+
slot: e.identityDivider
|
|
33
|
+
})(n?.identityDivider), b = o("div", {
|
|
27
34
|
name: t,
|
|
28
35
|
slot: e.userNameEmail
|
|
29
|
-
})(n?.userNameEmail),
|
|
36
|
+
})(n?.userNameEmail), L = o("div", {
|
|
30
37
|
name: t,
|
|
31
38
|
slot: e.divider
|
|
32
|
-
})(n?.divider),
|
|
39
|
+
})(n?.divider), O = o(d, {
|
|
33
40
|
name: t,
|
|
34
41
|
slot: e.circularPropress
|
|
35
|
-
})(n?.circularPropress),
|
|
42
|
+
})(n?.circularPropress), U = o(r, {
|
|
36
43
|
name: t,
|
|
37
44
|
slot: e.menuItemSetting
|
|
38
|
-
})(n?.menuItemSetting),
|
|
45
|
+
})(n?.menuItemSetting), T = o(r, {
|
|
39
46
|
name: t,
|
|
40
47
|
slot: e.menuItemLogout
|
|
41
|
-
})(n?.menuItemLogout),
|
|
48
|
+
})(n?.menuItemLogout), _ = o(r, {
|
|
42
49
|
name: t,
|
|
43
50
|
slot: e.menuItem
|
|
44
|
-
})(n?.menuItem),
|
|
51
|
+
})(n?.menuItem), h = o(a, {
|
|
45
52
|
name: t,
|
|
46
53
|
slot: e.fullName
|
|
47
|
-
})(n?.fullName)
|
|
48
|
-
o(r, {
|
|
54
|
+
})(n?.fullName), x = o(a, {
|
|
49
55
|
name: t,
|
|
50
56
|
slot: e.email
|
|
51
|
-
})(n?.email)
|
|
52
|
-
|
|
57
|
+
})(n?.email), F = o("div", {
|
|
58
|
+
name: t,
|
|
59
|
+
slot: e.companyCard
|
|
60
|
+
})(n?.companyCard), K = o(s, {
|
|
61
|
+
name: t,
|
|
62
|
+
slot: e.companyIcon
|
|
63
|
+
})(n?.companyIcon), Y = o("div", {
|
|
64
|
+
name: t,
|
|
65
|
+
slot: e.companyDetails
|
|
66
|
+
})(n?.companyDetails), j = o(a, {
|
|
67
|
+
name: t,
|
|
68
|
+
slot: e.businessName
|
|
69
|
+
})(n?.businessName), k = o("div", {
|
|
70
|
+
name: t,
|
|
71
|
+
slot: e.accountId
|
|
72
|
+
})(n?.accountId), q = o(c, {
|
|
73
|
+
name: t,
|
|
74
|
+
slot: e.accountIdCopy
|
|
75
|
+
})(n?.accountIdCopy), w = o("div", {
|
|
53
76
|
name: t,
|
|
54
77
|
slot: e.versionContainer
|
|
55
|
-
})(n?.versionContainer),
|
|
78
|
+
})(n?.versionContainer), z = o(a, {
|
|
56
79
|
name: t,
|
|
57
80
|
slot: e.version
|
|
58
|
-
})(n?.version),
|
|
81
|
+
})(n?.version), G = o(s, {
|
|
59
82
|
name: t,
|
|
60
83
|
slot: e.versionIcon
|
|
61
84
|
})(n?.versionIcon);
|
|
62
85
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
86
|
+
q as AccountIdCopyStyled,
|
|
87
|
+
k as AccountIdStyled,
|
|
88
|
+
E as AvatarPopoverStyled,
|
|
89
|
+
A as AvatarStyled,
|
|
90
|
+
j as BusinessNameStyled,
|
|
91
|
+
O as CircularProgressStyled,
|
|
92
|
+
F as CompanyCardStyled,
|
|
93
|
+
Y as CompanyDetailsStyled,
|
|
94
|
+
K as CompanyIconStyled,
|
|
95
|
+
L as DividerStyled,
|
|
96
|
+
x as EmailtStyled,
|
|
97
|
+
h as FullNametStyled,
|
|
68
98
|
g as IconButtonRootStyled,
|
|
69
|
-
|
|
70
|
-
V as
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
99
|
+
M as IdentityCardStyled,
|
|
100
|
+
V as IdentityDividerStyled,
|
|
101
|
+
T as MenuItemLogoutStyled,
|
|
102
|
+
U as MenuItemSettingsStyled,
|
|
103
|
+
_ as MenuItemStyled,
|
|
104
|
+
R as PopoverStyled,
|
|
105
|
+
B as UserDataContainerStyled,
|
|
106
|
+
b as UserNameEmailStyled,
|
|
107
|
+
w as VersionContainerStyled,
|
|
108
|
+
G as VersionIconStyled,
|
|
109
|
+
z as VersionStyled
|
|
78
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPopover.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MenuPopover.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAe3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4DA4IlD,CAAC"}
|
|
@@ -1,96 +1,122 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEnvironment as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as g } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEnvironment as G, useModuleDictionary as j } from "@m4l/core";
|
|
3
|
+
import { Typography as z, Icon as u } from "@m4l/base";
|
|
4
|
+
import { PlaceBuildingOutlined as w } from "@m4l/icons";
|
|
5
|
+
import { TEST_PROP_ID as O } from "../../../../test/constants_no_mock.js";
|
|
6
|
+
import { DEFAULT_ACCOUNT_POPOVER_TRANSFORM_ORIGIN as K, DEFAULT_ACCOUNT_POPOVER_ANCHOR_ORIGIN as Y, ACCOUNT_KEY_POPOVER as q, PATH_VERSION as J, PATH_CONFIGURATION as Q, ACCOUNT_MENU_MODULE_ICONS as X, PATH_SIGN_OFF as Z } from "../../constants.js";
|
|
7
|
+
import { PopoverStyled as ee, IdentityCardStyled as te, UserDataContainerStyled as oe, AvatarPopoverStyled as ne, UserNameEmailStyled as re, FullNametStyled as le, EmailtStyled as ae, IdentityDividerStyled as ce, CompanyCardStyled as ie, CompanyIconStyled as se, CompanyDetailsStyled as de, BusinessNameStyled as me, AccountIdStyled as pe, AccountIdCopyStyled as ue, VersionContainerStyled as ye, VersionStyled as he, VersionIconStyled as ve, DividerStyled as b, CircularProgressStyled as Se, MenuItemSettingsStyled as _e, MenuItemStyled as Ce, MenuItemLogoutStyled as Ie } from "../../slots/AccountPopoverSlots.js";
|
|
8
|
+
import { getNameDataTestId as D } from "../../tests/utils.js";
|
|
9
|
+
import Ne from "../MyAvatar/MyAvatar.js";
|
|
10
|
+
import { useTheme as Ae } from "@mui/material";
|
|
11
|
+
import { resolveAccountMenuIconUrl as ge } from "../../helpers/resolveAccountMenuIconUrl.js";
|
|
12
|
+
import { getComponentClasses as Oe } from "../../../../utils/getComponentSlotRoot.js";
|
|
13
|
+
import { AccountPopoverSlots as be } from "../../slots/AccountPopoverEnum.js";
|
|
14
|
+
import { usePopoverContainer as De } from "../../../../hooks/usePopoverContainer/usePopoverContainer.js";
|
|
15
|
+
const We = (f) => {
|
|
13
16
|
const {
|
|
14
|
-
version:
|
|
15
|
-
handleClose:
|
|
16
|
-
anchorEl:
|
|
17
|
-
userData:
|
|
18
|
-
settingsHandleOpen:
|
|
19
|
-
handleLogOut:
|
|
20
|
-
itemHandleClick:
|
|
21
|
-
data:
|
|
22
|
-
asyncState:
|
|
23
|
-
size:
|
|
24
|
-
anchorOrigin:
|
|
25
|
-
transformOrigin:
|
|
26
|
-
} =
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
17
|
+
version: y,
|
|
18
|
+
handleClose: c,
|
|
19
|
+
anchorEl: i,
|
|
20
|
+
userData: E,
|
|
21
|
+
settingsHandleOpen: P,
|
|
22
|
+
handleLogOut: T,
|
|
23
|
+
itemHandleClick: $,
|
|
24
|
+
data: d = [],
|
|
25
|
+
asyncState: U,
|
|
26
|
+
size: t,
|
|
27
|
+
anchorOrigin: h = Y,
|
|
28
|
+
transformOrigin: v = K
|
|
29
|
+
} = f, { hostApiRemote: x } = G(), R = De(i), { firstName: S, lastName: _, avatarUrl: k, id: C, accountId: l, accountBusinessName: L } = E, m = [S?.trim(), _?.trim()].filter(Boolean).join(" "), s = L?.trim(), I = l != null, M = !!s || I, N = Oe(q, be), { getLabel: r } = j(), p = r("account_popover.label_copy_account_id"), V = !p || /^(ND:|N_D:)/u.test(p) ? "Copy account ID" : p, a = Ae().size.baseSpacings.sp2, F = (n) => {
|
|
30
|
+
$(n), c();
|
|
31
|
+
}, B = () => {
|
|
32
|
+
c(), P();
|
|
33
|
+
}, H = () => {
|
|
34
|
+
T(), c();
|
|
32
35
|
};
|
|
33
|
-
return
|
|
34
|
-
|
|
36
|
+
return i ? /* @__PURE__ */ o(
|
|
37
|
+
ee,
|
|
35
38
|
{
|
|
36
|
-
size:
|
|
37
|
-
ownerState: { size:
|
|
38
|
-
open: !!
|
|
39
|
-
anchorEl:
|
|
40
|
-
container:
|
|
41
|
-
onClose:
|
|
42
|
-
anchorOrigin:
|
|
43
|
-
transformOrigin:
|
|
44
|
-
...process.env.NODE_ENV !== "production" ? { [
|
|
39
|
+
size: t,
|
|
40
|
+
ownerState: { size: t, anchorOrigin: h, transformOrigin: v },
|
|
41
|
+
open: !!i,
|
|
42
|
+
anchorEl: i,
|
|
43
|
+
container: R ?? void 0,
|
|
44
|
+
onClose: c,
|
|
45
|
+
anchorOrigin: h,
|
|
46
|
+
transformOrigin: v,
|
|
47
|
+
...process.env.NODE_ENV !== "production" ? { [O]: D("popover") } : {},
|
|
45
48
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
/* @__PURE__ */ o(
|
|
50
|
+
te,
|
|
51
|
+
{
|
|
52
|
+
className: N.identityCard,
|
|
53
|
+
...process.env.NODE_ENV !== "production" ? { [O]: D("identity-card") } : {},
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ o(oe, { children: [
|
|
56
|
+
/* @__PURE__ */ e(Ne, { size: t, avatarUrl: k, firstName: S, lastName: _, slotAvatar: ne }),
|
|
57
|
+
/* @__PURE__ */ o(re, { children: [
|
|
58
|
+
m && /* @__PURE__ */ e(le, { size: t, variant: "captionDens", ellipsis: !0, skeletonWidth: `calc(${m.length}ex + ${a})`, children: m }),
|
|
59
|
+
/* @__PURE__ */ e(ae, { size: t, variant: "bodyStandard", color: "text.secondary", ellipsis: !0, title: C, children: C })
|
|
60
|
+
] })
|
|
61
|
+
] }),
|
|
62
|
+
M && /* @__PURE__ */ o(g, { children: [
|
|
63
|
+
/* @__PURE__ */ e(ce, { role: "separator", className: N.identityDivider }),
|
|
64
|
+
/* @__PURE__ */ o(ie, { role: "group", "aria-label": s || `ID ${l}`, children: [
|
|
65
|
+
/* @__PURE__ */ e(se, { src: /* @__PURE__ */ e(w, {}), color: "primary.enabled" }),
|
|
66
|
+
/* @__PURE__ */ o(de, { children: [
|
|
67
|
+
s && /* @__PURE__ */ e(me, { size: t, variant: "bodyStandard", children: s }),
|
|
68
|
+
I && /* @__PURE__ */ o(pe, { children: [
|
|
69
|
+
/* @__PURE__ */ e(z, { size: t, variant: "bodyStandard", color: "text.secondary", ellipsis: !0, children: `ID ${l}` }),
|
|
70
|
+
/* @__PURE__ */ e(ue, { value: l, size: "small", ariaLabel: V })
|
|
71
|
+
] })
|
|
72
|
+
] })
|
|
73
|
+
] })
|
|
74
|
+
] })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ o(ye, { children: [
|
|
79
|
+
/* @__PURE__ */ e(he, { size: t, variant: "bodyStandard", color: "text.secondary", ellipsis: !0, skeletonWidth: `calc(${y.length}ex + ${a})`, children: `${r("account_popover.label_version")} ${y}` }),
|
|
80
|
+
/* @__PURE__ */ e(ve, { src: J, color: "text.secondary" })
|
|
55
81
|
] }),
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
|
|
82
|
+
/* @__PURE__ */ e(b, {}),
|
|
83
|
+
U === "loading" ? /* @__PURE__ */ e(Se, {}) : /* @__PURE__ */ o(g, { children: [
|
|
58
84
|
/* @__PURE__ */ e(
|
|
59
|
-
|
|
85
|
+
_e,
|
|
60
86
|
{
|
|
61
|
-
size:
|
|
62
|
-
skeletonWidth: `calc(${
|
|
63
|
-
onClick:
|
|
64
|
-
label:
|
|
65
|
-
endAdornment: /* @__PURE__ */ e(
|
|
87
|
+
size: t,
|
|
88
|
+
skeletonWidth: `calc(${r("account_popover.label_settings").length}ex + ${a})`,
|
|
89
|
+
onClick: B,
|
|
90
|
+
label: r("account_popover.label_settings"),
|
|
91
|
+
endAdornment: /* @__PURE__ */ e(u, { src: Q })
|
|
66
92
|
}
|
|
67
93
|
),
|
|
68
|
-
Array.isArray(
|
|
69
|
-
const
|
|
94
|
+
Array.isArray(d) && d.length > 0 && d.map((n) => {
|
|
95
|
+
const A = X.get(n.moduleId ?? ""), W = ge(x, n.iconUrl);
|
|
70
96
|
return /* @__PURE__ */ e(
|
|
71
|
-
|
|
97
|
+
Ce,
|
|
72
98
|
{
|
|
73
|
-
size:
|
|
99
|
+
size: t,
|
|
74
100
|
variant: "body",
|
|
75
|
-
skeletonWidth: `calc(${
|
|
76
|
-
onClick: () =>
|
|
77
|
-
label:
|
|
78
|
-
endAdornment:
|
|
101
|
+
skeletonWidth: `calc(${n.title.length}ex + ${a})`,
|
|
102
|
+
onClick: () => F(n),
|
|
103
|
+
label: n.title,
|
|
104
|
+
endAdornment: A ? /* @__PURE__ */ e(u, { src: A }) : W
|
|
79
105
|
},
|
|
80
|
-
`${
|
|
106
|
+
`${n.title}-${n.moduleId}`
|
|
81
107
|
);
|
|
82
108
|
}),
|
|
83
|
-
/* @__PURE__ */ e(
|
|
109
|
+
/* @__PURE__ */ e(b, {})
|
|
84
110
|
] }),
|
|
85
111
|
/* @__PURE__ */ e(
|
|
86
|
-
|
|
112
|
+
Ie,
|
|
87
113
|
{
|
|
88
|
-
size:
|
|
114
|
+
size: t,
|
|
89
115
|
variant: "body",
|
|
90
|
-
skeletonWidth: `calc(${
|
|
91
|
-
onClick:
|
|
92
|
-
label:
|
|
93
|
-
endAdornment: /* @__PURE__ */ e(
|
|
116
|
+
skeletonWidth: `calc(${r("account_popover.label_logout").length}ex + ${a})`,
|
|
117
|
+
onClick: H,
|
|
118
|
+
label: r("account_popover.label_logout"),
|
|
119
|
+
endAdornment: /* @__PURE__ */ e(u, { src: Z })
|
|
94
120
|
}
|
|
95
121
|
)
|
|
96
122
|
]
|
|
@@ -98,5 +124,5 @@ const _e = (g) => {
|
|
|
98
124
|
) : null;
|
|
99
125
|
};
|
|
100
126
|
export {
|
|
101
|
-
|
|
127
|
+
We as MenuPopover
|
|
102
128
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountPopoverProps, AsyncTypes, RightMenuData } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Extended properties for the account menu surface.
|
|
4
4
|
*/
|
|
5
5
|
export interface MenuPopoverProps extends AccountPopoverProps {
|
|
6
6
|
data: Array<RightMenuData> | [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MyAvatarProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Display a user avatar from the supplied image URL.
|
|
4
|
-
* Without an image, use
|
|
4
|
+
* Without an image, use real initials or a neutral user icon when names are absent.
|
|
5
5
|
* @param props - The avatar data, size, and styled slot.
|
|
6
6
|
* @returns The user avatar.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MyAvatar.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MyAvatar.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/AccountPopover/subcomponents/MyAvatar/MyAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAmBpD"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Icon as m } from "@m4l/base";
|
|
3
|
+
import { UserSingleOutlined as c } from "@m4l/icons";
|
|
4
|
+
function u(a) {
|
|
5
|
+
const { avatarUrl: r, firstName: o, lastName: i, size: e, slotAvatar: s } = a, n = [o, i].map((l) => l?.trim().charAt(0) ?? "").join("").toUpperCase();
|
|
6
|
+
return /* @__PURE__ */ t(
|
|
5
7
|
s,
|
|
6
8
|
{
|
|
7
9
|
alt: "User avatar",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
size: e,
|
|
11
|
+
...r ? {
|
|
12
|
+
src: r
|
|
13
|
+
} : {
|
|
14
|
+
children: n || /* @__PURE__ */ t(m, { icon: /* @__PURE__ */ t(c, {}) })
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
);
|
|
15
18
|
}
|
|
16
19
|
export {
|
|
17
|
-
|
|
20
|
+
u as default
|
|
18
21
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { Maybe } from '@m4l/core';
|
|
2
2
|
import { AccountPopoverProps } from '../../types';
|
|
3
|
+
import { AvatarStyled } from '../../slots/AccountPopoverSlots';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Properties used to render the shared account avatar.
|
|
5
6
|
*/
|
|
6
7
|
export interface MyAvatarProps extends Pick<AccountPopoverProps, 'size'> {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* URL of the user's avatar image.
|
|
9
10
|
*/
|
|
10
11
|
avatarUrl: Maybe<string>;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* The user's first name, when available.
|
|
13
14
|
*/
|
|
14
|
-
firstName
|
|
15
|
+
firstName?: string;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* The user's last name, when available.
|
|
17
18
|
*/
|
|
18
|
-
lastName
|
|
19
|
+
lastName?: string;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Styled avatar slot used in the trigger or menu.
|
|
21
22
|
*/
|
|
22
|
-
slotAvatar:
|
|
23
|
+
slotAvatar: typeof AvatarStyled;
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/AccountPopover/subcomponents/MyAvatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACtE;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/AccountPopover/subcomponents/MyAvatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACtE;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,OAAO,YAAY,CAAC;CACjC"}
|
|
@@ -20,5 +20,5 @@ export declare const MENU_ACTIONS_EMPTY = "menu_action_empty";
|
|
|
20
20
|
* Prefijo de la clave que se utiliza cuando un ítem del menú está cargando en React.
|
|
21
21
|
*/
|
|
22
22
|
export declare const MENU_ACTIONS_ = "menu_action_";
|
|
23
|
-
export declare const MENU_ACTIONS_CLASSES: Record<"root" | "
|
|
23
|
+
export declare const MENU_ACTIONS_CLASSES: Record<"root" | "iconButton" | "selected" | "menuList" | "menuLoader" | "headerMenuActions" | "footerMenuActions", string>;
|
|
24
24
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -36,5 +36,5 @@ export declare const AUTOCOMPLETE_POPOVER_MAX_HEIGHT = "200px";
|
|
|
36
36
|
* Promote narrow anchors to a readable dropdown width when consumers do not override it.
|
|
37
37
|
*/
|
|
38
38
|
export declare const AUTOCOMPLETE_POPOVER_MIN_READABLE_WIDTH_PX = 180;
|
|
39
|
-
export declare const AUTOCOMPLETE_CLASSES: Record<"menuItem" | "root" | "image" | "typography" | "
|
|
39
|
+
export declare const AUTOCOMPLETE_CLASSES: Record<"menuItem" | "root" | "image" | "typography" | "iconButton" | "paper" | "multiple" | "menuList" | "circularProgress" | "chip" | "popper" | "popoverScrollWrapper" | "adorments" | "skeletonAutocomplete" | "textField" | "renderInputText" | "containerMultipleValues" | "containerWrapper" | "wrapperStartAdornment" | "startAdornmentRoot" | "wrapperEndAdornment" | "refreshRotating", string>;
|
|
40
40
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const DATE_PICKER_KEY_COMPONENT = "M4LDatePicker";
|
|
2
|
-
export declare const DATE_PICKER_CLASSES: Record<"root" | "dialog" | "
|
|
2
|
+
export declare const DATE_PICKER_CLASSES: Record<"root" | "dialog" | "iconButton" | "layout" | "actionsContainer" | "textField" | "desktopPaper" | "calendarHeader", string>;
|
|
3
3
|
//# sourceMappingURL=constants.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.74.0",
|
|
3
|
+
"version": "9.74.2-beta-pkg-802-ajustes-mf-53.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eventemitter3": "4.0.7",
|
|
34
34
|
"react-router-dom": "6.29.0",
|
|
35
35
|
"mustache": "4.2.0",
|
|
36
|
-
"@m4l/base": "^1.
|
|
36
|
+
"@m4l/base": "^1.7.1",
|
|
37
37
|
"@m4l/icons": "^1.0.0",
|
|
38
38
|
"@emotion/react": "11.14.0",
|
|
39
39
|
"react-toastify": "10.0.5",
|
|
@@ -54,23 +54,23 @@
|
|
|
54
54
|
"nprogress": "0.2.0",
|
|
55
55
|
"react-transition-group": "4.4.5",
|
|
56
56
|
"react-rnd": "10.5.2",
|
|
57
|
-
"@mui/x-date-pickers": "6.20.2",
|
|
58
57
|
"react-dropzone": "14.4.1",
|
|
59
|
-
"
|
|
60
|
-
"react-color": "2.19.3",
|
|
61
|
-
"react-spinners": "0.13.8",
|
|
58
|
+
"@mui/x-date-pickers": "6.20.2",
|
|
62
59
|
"@tanstack/react-virtual": "3.13.23",
|
|
63
|
-
"
|
|
64
|
-
"react-
|
|
65
|
-
"react-
|
|
60
|
+
"react-spinners": "0.13.8",
|
|
61
|
+
"react-color": "2.19.3",
|
|
62
|
+
"react-draggable": "4.5.0",
|
|
66
63
|
"chart.js": "4.5.1",
|
|
67
64
|
"chartjs-chart-error-bars": "4.4.5",
|
|
68
65
|
"qrcode.react": "3.2.0",
|
|
66
|
+
"simplebar-react": "3.2.6",
|
|
67
|
+
"react-resizable-panels": "2.1.9",
|
|
68
|
+
"react-simple-code-editor": "0.14.1",
|
|
69
69
|
"react-data-grid": "7.0.0-beta.47",
|
|
70
70
|
"react-dnd": "16.0.1",
|
|
71
71
|
"react-dnd-html5-backend": "16.0.1",
|
|
72
|
-
"react-resizable": "3.1.3",
|
|
73
72
|
"date-fns": "2.30.0",
|
|
74
|
-
"react-window": "1.8.11"
|
|
73
|
+
"react-window": "1.8.11",
|
|
74
|
+
"react-resizable": "3.1.3"
|
|
75
75
|
}
|
|
76
76
|
}
|