@amateescu/portal-ui-components 0.0.13-beta0 → 0.0.13-beta1
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._avatar_1q3yh_1{background-color:#41b06e;vertical-align:middle;text-transform:uppercase}._pointer_1q3yh_7{cursor:pointer}._flexRowCenter_1q3yh_11{display:flex;flex-direction:row;align-content:center;align-items:center}._userTitle_1q3yh_18{font-size:12px;color:#626367;margin-left:10px}[dir=rtl] ._userTitle_1q3yh_18{margin-right:10px}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as he, jsxs as Ft } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import gt, { useRef as Ie, forwardRef as De, useImperativeHandle as ft, useContext as Ke, useState as Ze, useEffect as Te, createContext as
|
|
4
|
-
import
|
|
3
|
+
import gt, { useRef as Ie, forwardRef as De, useImperativeHandle as ft, useContext as Ke, useState as Ze, useEffect as Te, createContext as qt } from "react";
|
|
4
|
+
import Gt from "../../utils/cn.js";
|
|
5
5
|
import { a as Ee } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
6
6
|
import { I as He, D as Yt, K as re, R as Ae, a1 as Ut, g as le, m as ae, s as ge, u as B, a2 as Kt, C as J, z as Zt, r as fe, y as Pe, c as M, k as Qt, b as Jt, _ as Qe, p as Le, q as vt, h as eo, t as ke, o as ve, a9 as to, j as oo, aa as no, v as ro, A as Je, ab as io, ac as et, i as bt, ad as ao, x as tt } from "../../useId-D0OLY2mt.js";
|
|
7
7
|
import { R as lo, T as so, c as co, M as uo, a as ye, u as mo, S as po, E as go, b as ht, d as fo, s as vo, e as bo, f as ho, g as $o, D as Co } from "../../EllipsisOutlined-Cm0_b9Em.js";
|
|
8
8
|
import { i as Be, C as $t, d as yo, u as Ve, e as se, z as Ct, g as wo, f as xo, h as So, j as Oo, B as ot } from "../../PurePanel-CEtW2cn_.js";
|
|
9
|
-
const pe = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
9
|
+
import '../../assets/UserInfoDropdown.css';const pe = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
10
10
|
function Io(e, t) {
|
|
11
11
|
return pe.reduce((o, n) => {
|
|
12
12
|
const r = e[`${n}1`], l = e[`${n}3`], i = e[`${n}6`], c = e[`${n}7`];
|
|
@@ -329,7 +329,7 @@ const Re = /* @__PURE__ */ a.createContext({}), Xo = (e) => {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
|
-
},
|
|
332
|
+
}, qo = (e) => {
|
|
333
333
|
const {
|
|
334
334
|
controlHeight: t,
|
|
335
335
|
controlHeightLG: o,
|
|
@@ -362,8 +362,8 @@ const Re = /* @__PURE__ */ a.createContext({}), Xo = (e) => {
|
|
|
362
362
|
avatarColor: t
|
|
363
363
|
});
|
|
364
364
|
return [Xo(n), Fo(n)];
|
|
365
|
-
},
|
|
366
|
-
var
|
|
365
|
+
}, qo);
|
|
366
|
+
var Go = function(e, t) {
|
|
367
367
|
var o = {};
|
|
368
368
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
369
369
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -408,7 +408,7 @@ const Yo = (e, t) => {
|
|
|
408
408
|
draggable: h,
|
|
409
409
|
children: E,
|
|
410
410
|
crossOrigin: z
|
|
411
|
-
} = e, P =
|
|
411
|
+
} = e, P = Go(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]), I = Zt((A) => {
|
|
412
412
|
var W, U;
|
|
413
413
|
return (U = (W = w ?? (f == null ? void 0 : f.size)) !== null && W !== void 0 ? W : A) !== null && U !== void 0 ? U : "default";
|
|
414
414
|
}), $ = Object.keys(typeof I == "object" ? I || {} : {}).some((A) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(A)), D = Wo($), k = a.useMemo(() => {
|
|
@@ -428,7 +428,7 @@ const Yo = (e, t) => {
|
|
|
428
428
|
const S = p("avatar", C), N = Pe(S), [R, V, Z] = wt(S, N), H = M({
|
|
429
429
|
[`${S}-lg`]: I === "large",
|
|
430
430
|
[`${S}-sm`]: I === "small"
|
|
431
|
-
}), X = /* @__PURE__ */ a.isValidElement(x),
|
|
431
|
+
}), X = /* @__PURE__ */ a.isValidElement(x), q = b || (f == null ? void 0 : f.shape) || "circle", Y = M(S, H, m == null ? void 0 : m.className, `${S}-${q}`, {
|
|
432
432
|
[`${S}-image`]: X || x && i,
|
|
433
433
|
[`${S}-icon`]: !!O
|
|
434
434
|
}, Z, N, j, T, V), F = typeof I == "number" ? {
|
|
@@ -682,7 +682,7 @@ function Ne(e) {
|
|
|
682
682
|
function $e(e, t) {
|
|
683
683
|
return e ? t : {};
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function qe(e, t, o) {
|
|
686
686
|
const {
|
|
687
687
|
componentCls: n,
|
|
688
688
|
boxShadowPopoverArrow: r,
|
|
@@ -1034,7 +1034,7 @@ const nn = (e) => {
|
|
|
1034
1034
|
})
|
|
1035
1035
|
},
|
|
1036
1036
|
// Arrow Style
|
|
1037
|
-
|
|
1037
|
+
qe(e, "var(--antd-arrow-background-color)"),
|
|
1038
1038
|
// Pure Render
|
|
1039
1039
|
{
|
|
1040
1040
|
[`${t}-pure`]: {
|
|
@@ -1138,32 +1138,32 @@ const dn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1138
1138
|
getPrefixCls: T,
|
|
1139
1139
|
direction: _
|
|
1140
1140
|
} = a.useContext(J), h = fe("Tooltip"), E = a.useRef(null), z = () => {
|
|
1141
|
-
var
|
|
1142
|
-
(
|
|
1141
|
+
var G;
|
|
1142
|
+
(G = E.current) === null || G === void 0 || G.forceAlign();
|
|
1143
1143
|
};
|
|
1144
1144
|
a.useImperativeHandle(t, () => {
|
|
1145
|
-
var
|
|
1145
|
+
var G;
|
|
1146
1146
|
return {
|
|
1147
1147
|
forceAlign: z,
|
|
1148
1148
|
forcePopupAlign: () => {
|
|
1149
1149
|
h.deprecated(!1, "forcePopupAlign", "forceAlign"), z();
|
|
1150
1150
|
},
|
|
1151
|
-
nativeElement: (
|
|
1151
|
+
nativeElement: (G = E.current) === null || G === void 0 ? void 0 : G.nativeElement
|
|
1152
1152
|
};
|
|
1153
|
-
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"]].forEach((
|
|
1154
|
-
let [te, ne] =
|
|
1153
|
+
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"]].forEach((G) => {
|
|
1154
|
+
let [te, ne] = G;
|
|
1155
1155
|
h.deprecated(!(te in e), te, ne);
|
|
1156
1156
|
}), process.env.NODE_ENV !== "production" && h(!f || typeof f == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && h(!g || typeof g == "boolean" || !("arrowPointAtCenter" in g), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
1157
1157
|
const [P, I] = Le(!1, {
|
|
1158
1158
|
value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
|
|
1159
1159
|
defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
|
|
1160
|
-
}), $ = !v && !C && v !== 0, D = (
|
|
1160
|
+
}), $ = !v && !C && v !== 0, D = (G) => {
|
|
1161
1161
|
var te, ne;
|
|
1162
|
-
I($ ? !1 :
|
|
1162
|
+
I($ ? !1 : G), $ || ((te = e.onOpenChange) === null || te === void 0 || te.call(e, G), (ne = e.onVisibleChange) === null || ne === void 0 || ne.call(e, G));
|
|
1163
1163
|
}, k = a.useMemo(() => {
|
|
1164
|
-
var
|
|
1164
|
+
var G, te;
|
|
1165
1165
|
let ne = w;
|
|
1166
|
-
return typeof g == "object" && (ne = (te = (
|
|
1166
|
+
return typeof g == "object" && (ne = (te = (G = g.pointAtCenter) !== null && G !== void 0 ? G : g.arrowPointAtCenter) !== null && te !== void 0 ? te : w), b || St({
|
|
1167
1167
|
arrowPointAtCenter: ne,
|
|
1168
1168
|
autoAdjustOverflow: x,
|
|
1169
1169
|
arrowWidth: y ? O.sizePopupArrow : 0,
|
|
@@ -1179,13 +1179,13 @@ const dn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1179
1179
|
mouseEnterDelay: Z = 0.1,
|
|
1180
1180
|
mouseLeaveDelay: H = 0.1,
|
|
1181
1181
|
overlayStyle: X,
|
|
1182
|
-
rootClassName:
|
|
1182
|
+
rootClassName: q
|
|
1183
1183
|
} = e, Y = cn(e, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName"]), F = T("tooltip", r), K = T(), A = e["data-popover-inject"];
|
|
1184
1184
|
let W = P;
|
|
1185
1185
|
!("open" in e) && !("visible" in e) && $ && (W = !1);
|
|
1186
1186
|
const U = /* @__PURE__ */ a.isValidElement(u) && !yo(u) ? u : /* @__PURE__ */ a.createElement("span", null, u), ie = U.props, je = !ie.className || typeof ie.className == "string" ? M(ie.className, l || `${F}-open`) : ie.className, [me, L, oe] = Ot(F, !A), ee = It(F, s), At = ee.arrowStyle, Lt = Object.assign(Object.assign({}, d), ee.overlayStyle), kt = M(c, {
|
|
1187
1187
|
[`${F}-rtl`]: _ === "rtl"
|
|
1188
|
-
}, ee.className,
|
|
1188
|
+
}, ee.className, q, L, oe), [Vt, Wt] = Ve("Tooltip", Y.zIndex), Xt = /* @__PURE__ */ a.createElement(Qo, Object.assign({}, Y, {
|
|
1189
1189
|
zIndex: Vt,
|
|
1190
1190
|
showArrow: y,
|
|
1191
1191
|
placement: V,
|
|
@@ -1290,7 +1290,7 @@ const un = (e) => {
|
|
|
1290
1290
|
})
|
|
1291
1291
|
},
|
|
1292
1292
|
// Arrow Style
|
|
1293
|
-
|
|
1293
|
+
qe(e, "var(--antd-arrow-background-color)"),
|
|
1294
1294
|
// Pure Render
|
|
1295
1295
|
{
|
|
1296
1296
|
[`${t}-pure`]: {
|
|
@@ -1478,9 +1478,9 @@ const hn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1478
1478
|
/* @__PURE__ */ a.isValidElement(u) && ((k = u == null ? void 0 : (D = u.props).onKeyDown) === null || k === void 0 || k.call(D, $)), E($);
|
|
1479
1479
|
}
|
|
1480
1480
|
})));
|
|
1481
|
-
}),
|
|
1482
|
-
|
|
1483
|
-
process.env.NODE_ENV !== "production" && (
|
|
1481
|
+
}), Ge = hn;
|
|
1482
|
+
Ge._InternalPanelDoNotUseOrYouWillBeFired = vn;
|
|
1483
|
+
process.env.NODE_ENV !== "production" && (Ge.displayName = "Popover");
|
|
1484
1484
|
const it = (e) => {
|
|
1485
1485
|
const {
|
|
1486
1486
|
size: t,
|
|
@@ -1528,7 +1528,7 @@ const it = (e) => {
|
|
|
1528
1528
|
placement: k,
|
|
1529
1529
|
trigger: D
|
|
1530
1530
|
});
|
|
1531
|
-
return P.push(/* @__PURE__ */ a.createElement(
|
|
1531
|
+
return P.push(/* @__PURE__ */ a.createElement(Ge, Object.assign({
|
|
1532
1532
|
key: "avatar-popover-key",
|
|
1533
1533
|
destroyTooltipOnHide: !0
|
|
1534
1534
|
}, S), /* @__PURE__ */ a.createElement(We, {
|
|
@@ -1883,7 +1883,7 @@ const at = {
|
|
|
1883
1883
|
}, r || /* @__PURE__ */ a.createElement(Nt, null)) : null, X = {
|
|
1884
1884
|
expanded: u ? /* @__PURE__ */ a.createElement(we, null) : /* @__PURE__ */ a.createElement(Me, null),
|
|
1885
1885
|
collapsed: u ? /* @__PURE__ */ a.createElement(Me, null) : /* @__PURE__ */ a.createElement(we, null)
|
|
1886
|
-
}[x ? "collapsed" : "expanded"],
|
|
1886
|
+
}[x ? "collapsed" : "expanded"], q = r !== null ? V || /* @__PURE__ */ a.createElement("div", {
|
|
1887
1887
|
className: `${h}-trigger`,
|
|
1888
1888
|
onClick: $,
|
|
1889
1889
|
style: {
|
|
@@ -1907,7 +1907,7 @@ const at = {
|
|
|
1907
1907
|
ref: t
|
|
1908
1908
|
}), /* @__PURE__ */ a.createElement("div", {
|
|
1909
1909
|
className: `${h}-children`
|
|
1910
|
-
}, l), d || O && V ?
|
|
1910
|
+
}, l), d || O && V ? q : null);
|
|
1911
1911
|
}, k = a.useMemo(() => ({
|
|
1912
1912
|
siderCollapsed: x
|
|
1913
1913
|
}), [x]);
|
|
@@ -1916,7 +1916,7 @@ const at = {
|
|
|
1916
1916
|
}, D()));
|
|
1917
1917
|
});
|
|
1918
1918
|
process.env.NODE_ENV !== "production" && (zn.displayName = "Sider");
|
|
1919
|
-
const Se = /* @__PURE__ */
|
|
1919
|
+
const Se = /* @__PURE__ */ qt({
|
|
1920
1920
|
prefixCls: "",
|
|
1921
1921
|
firstLevel: !0,
|
|
1922
1922
|
inlineCollapsed: !1
|
|
@@ -3087,9 +3087,9 @@ const Vn = {
|
|
|
3087
3087
|
return r.expandIcon || null;
|
|
3088
3088
|
if (typeof (s == null ? void 0 : s.expandIcon) == "function" || _e(s == null ? void 0 : s.expandIcon))
|
|
3089
3089
|
return (s == null ? void 0 : s.expandIcon) || null;
|
|
3090
|
-
const
|
|
3091
|
-
return se(
|
|
3092
|
-
className: M(`${$}-submenu-expand-icon`, /* @__PURE__ */ a.isValidElement(
|
|
3090
|
+
const q = (H = g ?? (r == null ? void 0 : r.expandIcon)) !== null && H !== void 0 ? H : s == null ? void 0 : s.expandIcon;
|
|
3091
|
+
return se(q, {
|
|
3092
|
+
className: M(`${$}-submenu-expand-icon`, /* @__PURE__ */ a.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
|
|
3093
3093
|
});
|
|
3094
3094
|
}, [g, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, $]), Z = a.useMemo(() => ({
|
|
3095
3095
|
prefixCls: $,
|
|
@@ -3261,7 +3261,7 @@ const Xn = (e) => {
|
|
|
3261
3261
|
// =============================================================
|
|
3262
3262
|
// == Arrow style ==
|
|
3263
3263
|
// =============================================================
|
|
3264
|
-
|
|
3264
|
+
qe(e, v, {
|
|
3265
3265
|
arrowPlacement: {
|
|
3266
3266
|
top: !0,
|
|
3267
3267
|
bottom: !0
|
|
@@ -3424,13 +3424,13 @@ const Xn = (e) => {
|
|
|
3424
3424
|
// Follow code may reuse in other components
|
|
3425
3425
|
[ye(e, "slide-up"), ye(e, "slide-down"), nt(e, "move-up"), nt(e, "move-down"), Be(e, "zoom-big")]
|
|
3426
3426
|
];
|
|
3427
|
-
},
|
|
3427
|
+
}, qn = (e) => Object.assign(Object.assign({
|
|
3428
3428
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
3429
3429
|
paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
|
|
3430
3430
|
}, Ne({
|
|
3431
3431
|
contentRadius: e.borderRadiusLG,
|
|
3432
3432
|
limitVerticalRadius: !0
|
|
3433
|
-
})), Fe(e)),
|
|
3433
|
+
})), Fe(e)), Gn = le("Dropdown", (e) => {
|
|
3434
3434
|
const {
|
|
3435
3435
|
marginXXS: t,
|
|
3436
3436
|
sizePopupArrow: o,
|
|
@@ -3442,7 +3442,7 @@ const Xn = (e) => {
|
|
|
3442
3442
|
dropdownEdgeChildPadding: n
|
|
3443
3443
|
});
|
|
3444
3444
|
return [Fn(l), Xn(l)];
|
|
3445
|
-
},
|
|
3445
|
+
}, qn, {
|
|
3446
3446
|
resetStyle: !1
|
|
3447
3447
|
}), be = (e) => {
|
|
3448
3448
|
var t;
|
|
@@ -3493,12 +3493,12 @@ const Xn = (e) => {
|
|
|
3493
3493
|
z.deprecated(!(oe in e), oe, ee);
|
|
3494
3494
|
});
|
|
3495
3495
|
}
|
|
3496
|
-
const $ = _("dropdown", r), D = Pe($), [k, S, N] =
|
|
3496
|
+
const $ = _("dropdown", r), D = Pe($), [k, S, N] = Gn($, D), [, R] = Ae(), V = a.Children.only(l), Z = se(V, {
|
|
3497
3497
|
className: M(`${$}-trigger`, {
|
|
3498
3498
|
[`${$}-rtl`]: h === "rtl"
|
|
3499
3499
|
}, V.props.className),
|
|
3500
3500
|
disabled: (t = V.props.disabled) !== null && t !== void 0 ? t : c
|
|
3501
|
-
}), H = c ? [] : i, X = !!(H != null && H.includes("contextMenu")), [
|
|
3501
|
+
}), H = c ? [] : i, X = !!(H != null && H.includes("contextMenu")), [q, Y] = Le(!1, {
|
|
3502
3502
|
value: f ?? v
|
|
3503
3503
|
}), F = bt((L) => {
|
|
3504
3504
|
g == null || g(L, {
|
|
@@ -3542,7 +3542,7 @@ const Xn = (e) => {
|
|
|
3542
3542
|
}, ve(e, ["rootClassName"]), {
|
|
3543
3543
|
mouseEnterDelay: b,
|
|
3544
3544
|
mouseLeaveDelay: w,
|
|
3545
|
-
visible:
|
|
3545
|
+
visible: q,
|
|
3546
3546
|
builtinPlacements: A,
|
|
3547
3547
|
arrow: !!n,
|
|
3548
3548
|
overlayClassName: K,
|
|
@@ -3635,14 +3635,14 @@ const er = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
3635
3635
|
[`${I}-gap-col-${O}`]: _
|
|
3636
3636
|
}, u, p, k), N = M(`${I}-item`, (n = w == null ? void 0 : w.item) !== null && n !== void 0 ? n : (r = i == null ? void 0 : i.classNames) === null || r === void 0 ? void 0 : r.item);
|
|
3637
3637
|
let R = 0;
|
|
3638
|
-
const V = z.map((X,
|
|
3638
|
+
const V = z.map((X, q) => {
|
|
3639
3639
|
var Y, F;
|
|
3640
|
-
X != null && (R =
|
|
3641
|
-
const K = (X == null ? void 0 : X.key) || `${N}-${
|
|
3640
|
+
X != null && (R = q);
|
|
3641
|
+
const K = (X == null ? void 0 : X.key) || `${N}-${q}`;
|
|
3642
3642
|
return /* @__PURE__ */ a.createElement(Qn, {
|
|
3643
3643
|
className: N,
|
|
3644
3644
|
key: K,
|
|
3645
|
-
index:
|
|
3645
|
+
index: q,
|
|
3646
3646
|
split: v,
|
|
3647
3647
|
style: (Y = x == null ? void 0 : x.item) !== null && Y !== void 0 ? Y : (F = i == null ? void 0 : i.styles) === null || F === void 0 ? void 0 : F.item
|
|
3648
3648
|
}, X);
|
|
@@ -3724,7 +3724,7 @@ const Dt = (e) => {
|
|
|
3724
3724
|
compactItemClassnames: H
|
|
3725
3725
|
} = Oo(N, n), X = M(R, H, m);
|
|
3726
3726
|
"overlay" in e && (V.overlay = C), "open" in e && (V.open = x), "placement" in e ? V.placement = O : V.placement = n === "rtl" ? "bottomLeft" : "bottomRight";
|
|
3727
|
-
const
|
|
3727
|
+
const q = /* @__PURE__ */ a.createElement(ot, {
|
|
3728
3728
|
type: l,
|
|
3729
3729
|
danger: i,
|
|
3730
3730
|
disabled: c,
|
|
@@ -3737,7 +3737,7 @@ const Dt = (e) => {
|
|
|
3737
3737
|
type: l,
|
|
3738
3738
|
danger: i,
|
|
3739
3739
|
icon: _
|
|
3740
|
-
}), [F, K] = E([
|
|
3740
|
+
}), [F, K] = E([q, Y]);
|
|
3741
3741
|
return /* @__PURE__ */ a.createElement(Ue.Compact, Object.assign({
|
|
3742
3742
|
className: X,
|
|
3743
3743
|
size: Z,
|
|
@@ -3747,11 +3747,16 @@ const Dt = (e) => {
|
|
|
3747
3747
|
Dt.__ANT_BUTTON = !0;
|
|
3748
3748
|
const Ht = be;
|
|
3749
3749
|
Ht.Button = Dt;
|
|
3750
|
-
const or = (e) => /* @__PURE__ */ a.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })),
|
|
3751
|
-
|
|
3750
|
+
const or = (e) => /* @__PURE__ */ a.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nr = "_avatar_1q3yh_1", rr = "_pointer_1q3yh_7", ir = "_flexRowCenter_1q3yh_11", ar = "_userTitle_1q3yh_18", Ce = {
|
|
3751
|
+
avatar: nr,
|
|
3752
|
+
pointer: rr,
|
|
3753
|
+
flexRowCenter: ir,
|
|
3754
|
+
userTitle: ar
|
|
3755
|
+
}, gr = ({ items: e, user: t, collapsed: o, handleMenuClick: n }) => /* @__PURE__ */ he(Ht, { menu: { items: e, onClick: n }, trigger: ["click"], children: /* @__PURE__ */ Ft("a", { onClick: (r) => r.preventDefault(), className: Ce.flexRowCenter, children: [
|
|
3756
|
+
/* @__PURE__ */ he(Bt, { className: Gt(Ce.avatar, Ce.pointer), size: "large", children: t[0] }),
|
|
3752
3757
|
!o && /* @__PURE__ */ he("span", { className: Ce.userTitle, children: t }),
|
|
3753
3758
|
!o && /* @__PURE__ */ he(or, {})
|
|
3754
3759
|
] }) });
|
|
3755
3760
|
export {
|
|
3756
|
-
|
|
3761
|
+
gr as UserInfoDropdown
|
|
3757
3762
|
};
|