@itilite/lumina-ui 1.1.11 → 1.1.13
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/Avatar-DX2JwvAs.d.mts +17 -0
- package/dist/Avatar-DX2JwvAs.d.ts +17 -0
- package/dist/Tag-l7I5oeyk.d.mts +13 -0
- package/dist/Tag-l7I5oeyk.d.ts +13 -0
- package/dist/atom/Avatar/Avatar.d.mts +1 -9
- package/dist/atom/Avatar/Avatar.d.ts +1 -9
- package/dist/atom/RangePicker/RangePicker.mjs +2 -2
- package/dist/atom/Tag/Tag.d.mts +3 -10
- package/dist/atom/Tag/Tag.d.ts +3 -10
- package/dist/chunk-3S4X3YO2.mjs +64 -0
- package/dist/chunk-DLLT6V65.mjs +141 -0
- package/dist/chunk-I5VHKSQR.mjs +64 -0
- package/dist/chunk-N2WTNCQU.mjs +66 -0
- package/dist/chunk-N3YFQDW7.mjs +77 -0
- package/dist/chunk-QWK3MYDM.mjs +64 -0
- package/dist/chunk-SWRFCTJW.mjs +77 -0
- package/dist/chunk-UUEPD2FH.mjs +141 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +56 -2
- package/dist/index.mjs +23 -19
- package/dist/molecules/UserProfile/UserProfile.d.mts +23 -0
- package/dist/molecules/UserProfile/UserProfile.d.ts +23 -0
- package/dist/molecules/UserProfile/UserProfile.js +243 -0
- package/dist/molecules/UserProfile/UserProfile.mjs +11 -0
- package/dist/styles.css +281 -265
- package/dist/types-D4MD2w3_.d.mts +9 -0
- package/dist/types-D4MD2w3_.d.ts +9 -0
- package/dist/types-mhQmqhsR.d.mts +10 -0
- package/dist/types-mhQmqhsR.d.ts +10 -0
- package/package.json +1 -1
- package/dist/chunk-22VF7AVT.mjs +0 -618
- package/dist/chunk-2BNAAOBU.mjs +0 -670
- package/dist/chunk-2IMRLK6M.mjs +0 -44
- package/dist/chunk-2JIINZEK.mjs +0 -618
- package/dist/chunk-2LBFKQDZ.mjs +0 -660
- package/dist/chunk-2QQU6BYR.mjs +0 -678
- package/dist/chunk-2ZJBF5C4.mjs +0 -618
- package/dist/chunk-33JITG5Y.mjs +0 -621
- package/dist/chunk-3IMCN4K3.mjs +0 -670
- package/dist/chunk-3K2RTVMH.mjs +0 -584
- package/dist/chunk-3KBQQCET.mjs +0 -674
- package/dist/chunk-3KUHXNFH.mjs +0 -678
- package/dist/chunk-3PPNOIXN.mjs +0 -618
- package/dist/chunk-3XFY3TXJ.mjs +0 -611
- package/dist/chunk-3XW7HS5W.mjs +0 -618
- package/dist/chunk-3YDCRJYV.mjs +0 -618
- package/dist/chunk-447HZYZ4.mjs +0 -612
- package/dist/chunk-46F3B4U6.mjs +0 -618
- package/dist/chunk-4K5RZHL4.mjs +0 -618
- package/dist/chunk-4QHFP4YD.mjs +0 -666
- package/dist/chunk-4TFX4DHY.mjs +0 -702
- package/dist/chunk-4TWO6JES.mjs +0 -666
- package/dist/chunk-4UQVJ3ZU.mjs +0 -666
- package/dist/chunk-5247J65D.mjs +0 -670
- package/dist/chunk-5PFI6XBL.mjs +0 -618
- package/dist/chunk-66H5WSEJ.mjs +0 -618
- package/dist/chunk-6NZEDJ2M.mjs +0 -582
- package/dist/chunk-6OC6URNL.mjs +0 -73
- package/dist/chunk-6OGEXG5U.mjs +0 -618
- package/dist/chunk-6ROQXYVN.mjs +0 -672
- package/dist/chunk-6WNI6X5Q.mjs +0 -618
- package/dist/chunk-72PPCN6D.mjs +0 -675
- package/dist/chunk-74EGXFNN.mjs +0 -618
- package/dist/chunk-77NCDGJA.mjs +0 -707
- package/dist/chunk-7L3WTWF3.mjs +0 -677
- package/dist/chunk-7NGBIPZT.mjs +0 -618
- package/dist/chunk-7NM4FNMQ.mjs +0 -666
- package/dist/chunk-7YBBSVUA.mjs +0 -672
- package/dist/chunk-7Z52UP7P.mjs +0 -618
- package/dist/chunk-AC6WC7OO.mjs +0 -618
- package/dist/chunk-B3LDL3KD.mjs +0 -670
- package/dist/chunk-B63IXC6M.mjs +0 -618
- package/dist/chunk-B65LGQ47.mjs +0 -666
- package/dist/chunk-B6MTRO54.mjs +0 -618
- package/dist/chunk-BJBP5XYB.mjs +0 -618
- package/dist/chunk-BLLSWPCC.mjs +0 -618
- package/dist/chunk-BOYB7REJ.mjs +0 -670
- package/dist/chunk-BP2D64XI.mjs +0 -618
- package/dist/chunk-BP4XS2GF.mjs +0 -585
- package/dist/chunk-BRT5IPGQ.mjs +0 -618
- package/dist/chunk-BTIIO2CP.mjs +0 -582
- package/dist/chunk-C2J3VBFZ.mjs +0 -670
- package/dist/chunk-CDOR7GQP.mjs +0 -618
- package/dist/chunk-CI2RMA4V.mjs +0 -612
- package/dist/chunk-CNUIZOQJ.mjs +0 -669
- package/dist/chunk-CPBXPEST.mjs +0 -672
- package/dist/chunk-CVOLXLMU.mjs +0 -618
- package/dist/chunk-CWUCNC36.mjs +0 -666
- package/dist/chunk-CZBGN6GS.mjs +0 -612
- package/dist/chunk-D3APB62N.mjs +0 -618
- package/dist/chunk-D5B2TUSL.mjs +0 -591
- package/dist/chunk-D7TWXVL2.mjs +0 -674
- package/dist/chunk-DAZ53AD7.mjs +0 -671
- package/dist/chunk-DBY5U6IU.mjs +0 -618
- package/dist/chunk-DXTVU4M5.mjs +0 -618
- package/dist/chunk-DZBTD6QK.mjs +0 -666
- package/dist/chunk-E6UPDTDY.mjs +0 -611
- package/dist/chunk-EAK2IMM4.mjs +0 -37
- package/dist/chunk-EQT2Q2LW.mjs +0 -610
- package/dist/chunk-EWMCELQV.mjs +0 -670
- package/dist/chunk-EYKWBEHX.mjs +0 -612
- package/dist/chunk-FHLCFUP6.mjs +0 -666
- package/dist/chunk-FMPFLQZV.mjs +0 -670
- package/dist/chunk-G25YXZ74.mjs +0 -618
- package/dist/chunk-G6P5MKL3.mjs +0 -582
- package/dist/chunk-GSG6ZC3R.mjs +0 -37
- package/dist/chunk-H3MQUFTJ.mjs +0 -618
- package/dist/chunk-HKZRLVBX.mjs +0 -618
- package/dist/chunk-HQALJGVT.mjs +0 -618
- package/dist/chunk-I5GBZ3UX.mjs +0 -676
- package/dist/chunk-IQHBVGA4.mjs +0 -677
- package/dist/chunk-IUTUCRDD.mjs +0 -611
- package/dist/chunk-IV4V55OA.mjs +0 -672
- package/dist/chunk-J2RAFKAD.mjs +0 -618
- package/dist/chunk-JCMSG75Q.mjs +0 -51
- package/dist/chunk-JL34UFI7.mjs +0 -670
- package/dist/chunk-JTKSGGQM.mjs +0 -611
- package/dist/chunk-JZC2RRDH.mjs +0 -618
- package/dist/chunk-JZCHXA6R.mjs +0 -585
- package/dist/chunk-K3Y7VKT6.mjs +0 -670
- package/dist/chunk-KEVXNUFG.mjs +0 -672
- package/dist/chunk-KH7D4ESJ.mjs +0 -584
- package/dist/chunk-KQBCWIIM.mjs +0 -618
- package/dist/chunk-KRYAP7NG.mjs +0 -670
- package/dist/chunk-KU655POK.mjs +0 -657
- package/dist/chunk-L55SLVNX.mjs +0 -618
- package/dist/chunk-LCRYOZEV.mjs +0 -618
- package/dist/chunk-LH7PP6V2.mjs +0 -618
- package/dist/chunk-LJMMYKE2.mjs +0 -618
- package/dist/chunk-LK5TROLL.mjs +0 -666
- package/dist/chunk-MDR7DAKM.mjs +0 -618
- package/dist/chunk-MJZLCWZ5.mjs +0 -666
- package/dist/chunk-MKZTEJLS.mjs +0 -612
- package/dist/chunk-MOD7MLCD.mjs +0 -64
- package/dist/chunk-MQCOQHHP.mjs +0 -618
- package/dist/chunk-MSM4KUBM.mjs +0 -618
- package/dist/chunk-MTIUER63.mjs +0 -676
- package/dist/chunk-NBLV3UX5.mjs +0 -618
- package/dist/chunk-NLADSOJS.mjs +0 -618
- package/dist/chunk-NPMTWR3Y.mjs +0 -618
- package/dist/chunk-NQ6GKEO7.mjs +0 -670
- package/dist/chunk-NZSFYNUK.mjs +0 -618
- package/dist/chunk-OANBDTKG.mjs +0 -73
- package/dist/chunk-OCNF4O5U.mjs +0 -612
- package/dist/chunk-OCW5QSWA.mjs +0 -618
- package/dist/chunk-OQF7JZFS.mjs +0 -670
- package/dist/chunk-OT675HGC.mjs +0 -670
- package/dist/chunk-P47TCYKN.mjs +0 -618
- package/dist/chunk-P7TOGXPI.mjs +0 -672
- package/dist/chunk-PCAXXEEQ.mjs +0 -618
- package/dist/chunk-PDHMG7OZ.mjs +0 -672
- package/dist/chunk-PFGVOZGM.mjs +0 -618
- package/dist/chunk-PGAAFJOG.mjs +0 -576
- package/dist/chunk-PQSSDK3E.mjs +0 -618
- package/dist/chunk-PST7W3NG.mjs +0 -618
- package/dist/chunk-QGPBZ2YV.mjs +0 -664
- package/dist/chunk-QOPCJITC.mjs +0 -618
- package/dist/chunk-QSE52CRC.mjs +0 -618
- package/dist/chunk-QTP2QMPL.mjs +0 -669
- package/dist/chunk-QUZAACW5.mjs +0 -585
- package/dist/chunk-R47XX6IW.mjs +0 -611
- package/dist/chunk-RL6AEU6E.mjs +0 -612
- package/dist/chunk-RZ7V2KQZ.mjs +0 -621
- package/dist/chunk-S3CUYIE3.mjs +0 -585
- package/dist/chunk-T7T4HCHH.mjs +0 -618
- package/dist/chunk-TED2WCDG.mjs +0 -618
- package/dist/chunk-TENXL4LK.mjs +0 -107
- package/dist/chunk-TJLIMMMB.mjs +0 -612
- package/dist/chunk-TNOJDLON.mjs +0 -611
- package/dist/chunk-TOR67IHH.mjs +0 -672
- package/dist/chunk-TOV7NVKM.mjs +0 -618
- package/dist/chunk-TSYMIRRN.mjs +0 -618
- package/dist/chunk-TTSRI4V7.mjs +0 -708
- package/dist/chunk-UBS3DTE5.mjs +0 -672
- package/dist/chunk-UBW6RYVF.mjs +0 -670
- package/dist/chunk-UFAFA6RV.mjs +0 -585
- package/dist/chunk-UJNUFKR5.mjs +0 -43
- package/dist/chunk-VAZZJOSJ.mjs +0 -618
- package/dist/chunk-VCWXOX2B.mjs +0 -618
- package/dist/chunk-VHCLEOHZ.mjs +0 -618
- package/dist/chunk-VTZSCGME.mjs +0 -666
- package/dist/chunk-W33KZ2XR.mjs +0 -618
- package/dist/chunk-W7J4GMPI.mjs +0 -618
- package/dist/chunk-WOVMTYDV.mjs +0 -612
- package/dist/chunk-WR3USBWK.mjs +0 -672
- package/dist/chunk-WXYQARQ6.mjs +0 -618
- package/dist/chunk-XE4LPYOW.mjs +0 -581
- package/dist/chunk-XSDANHCE.mjs +0 -618
- package/dist/chunk-Y6XKW4NG.mjs +0 -618
- package/dist/chunk-YO5EDEA6.mjs +0 -618
- package/dist/chunk-YQSNJFZE.mjs +0 -618
- package/dist/chunk-Z6VG6AG7.mjs +0 -678
- package/dist/chunk-ZAPKQ4C3.mjs +0 -678
- package/dist/chunk-ZCWDQNHL.mjs +0 -618
- package/dist/chunk-ZF5JBNCI.mjs +0 -618
- package/dist/chunk-ZN7BHWOF.mjs +0 -672
- package/dist/chunk-ZUMHWVMV.mjs +0 -585
- package/dist/chunk-ZUQJKA5J.mjs +0 -666
- package/dist/chunk-ZWHWIGYQ.mjs +0 -618
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// src/atom/Button/Button.tsx
|
|
2
|
+
import { Button as AntButton } from "antd";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
|
|
5
|
+
// src/atom/Button/Button.module.scss
|
|
6
|
+
var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
|
|
7
|
+
|
|
8
|
+
// src/atom/Button/Button.tsx
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
function Button(props) {
|
|
11
|
+
const {
|
|
12
|
+
// type = "primary",
|
|
13
|
+
variant = "default",
|
|
14
|
+
size = "normal",
|
|
15
|
+
shape = "default",
|
|
16
|
+
className = "",
|
|
17
|
+
icon = null,
|
|
18
|
+
children,
|
|
19
|
+
onClick,
|
|
20
|
+
href = "",
|
|
21
|
+
disabled = false,
|
|
22
|
+
loading = false,
|
|
23
|
+
onHoverUnderline = false
|
|
24
|
+
} = props;
|
|
25
|
+
const buttonMap = {
|
|
26
|
+
default: "primary",
|
|
27
|
+
subtle: "default",
|
|
28
|
+
text: "text",
|
|
29
|
+
link: "link"
|
|
30
|
+
};
|
|
31
|
+
const sizeMap = {
|
|
32
|
+
small: "small",
|
|
33
|
+
normal: "middle",
|
|
34
|
+
// Map "default" to "middle"
|
|
35
|
+
large: "large"
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
AntButton,
|
|
39
|
+
{
|
|
40
|
+
className: clsx(
|
|
41
|
+
Button_module_default.button,
|
|
42
|
+
Button_module_default[`size_${size}`],
|
|
43
|
+
Button_module_default[`variant_${variant}`],
|
|
44
|
+
Button_module_default[`shape_${shape}`],
|
|
45
|
+
Button_module_default[`type_${type}`],
|
|
46
|
+
`size_${size}`,
|
|
47
|
+
`variant_${variant}`,
|
|
48
|
+
`shape_${shape}`,
|
|
49
|
+
// `type_${type}`,
|
|
50
|
+
className,
|
|
51
|
+
{
|
|
52
|
+
"tw-cursor-not-allowed": disabled,
|
|
53
|
+
"tw-opacity-40": disabled
|
|
54
|
+
},
|
|
55
|
+
disabled && Button_module_default.disabled,
|
|
56
|
+
onHoverUnderline && Button_module_default.onHoverUnderline
|
|
57
|
+
),
|
|
58
|
+
"data-testid": "lumina-button",
|
|
59
|
+
disabled,
|
|
60
|
+
href: href || void 0,
|
|
61
|
+
icon,
|
|
62
|
+
loading,
|
|
63
|
+
onClick,
|
|
64
|
+
shape,
|
|
65
|
+
size: sizeMap[size],
|
|
66
|
+
type: buttonMap[variant],
|
|
67
|
+
children
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
Button.displayName = "Button";
|
|
72
|
+
var Button_default = Button;
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
Button,
|
|
76
|
+
Button_default
|
|
77
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button
|
|
3
|
+
} from "./chunk-N3YFQDW7.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadProps,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
9
|
+
|
|
10
|
+
// src/atom/Modal/Modal.tsx
|
|
11
|
+
import { Modal as AntModal } from "antd";
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
|
|
14
|
+
// src/atom/Modal/Modal.module.scss
|
|
15
|
+
var Modal_module_default = { "modal": "Modal-module__modal___PKrAi", "footerMargintopDisable": "Modal-module__footerMargintopDisable___4B6u-", "ant-modal-footer": "Modal-module__ant-modal-footer___HKsDR", "okBtn": "Modal-module__okBtn___Ut8e5", "cancelBtn": "Modal-module__cancelBtn___i0Rm8" };
|
|
16
|
+
|
|
17
|
+
// src/atom/Modal/Modal.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var Close = (_a) => {
|
|
20
|
+
var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"svg",
|
|
23
|
+
__spreadProps(__spreadValues({
|
|
24
|
+
width: size,
|
|
25
|
+
height: size,
|
|
26
|
+
viewBox: "0 0 14 14",
|
|
27
|
+
fill: "none",
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
29
|
+
}, rest), {
|
|
30
|
+
children: /* @__PURE__ */ jsx(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L8.41421 7L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L7 8.41421L1.70711 13.7071C1.31658 14.0976 0.683417 14.0976 0.292893 13.7071C-0.0976311 13.3166 -0.0976311 12.6834 0.292893 12.2929L5.58579 7L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
|
|
34
|
+
fill: color
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
var Modal = (_a) => {
|
|
41
|
+
var _b = _a, {
|
|
42
|
+
className = "",
|
|
43
|
+
title = "",
|
|
44
|
+
children,
|
|
45
|
+
open = false,
|
|
46
|
+
handleOk,
|
|
47
|
+
handleCancel,
|
|
48
|
+
okText = "",
|
|
49
|
+
cancelText = "",
|
|
50
|
+
closeIcon = /* @__PURE__ */ jsx(Close, { color: "#6B7280" }),
|
|
51
|
+
bodyClassName = "modalBody",
|
|
52
|
+
outsideClickDisable = false,
|
|
53
|
+
hideCross = false,
|
|
54
|
+
okButtonLoading = false,
|
|
55
|
+
okButtonDisabled = false,
|
|
56
|
+
variant = "primary",
|
|
57
|
+
okBtnClasses = "",
|
|
58
|
+
cancelButtonAnalytics = {},
|
|
59
|
+
okButtonAnalytics = {},
|
|
60
|
+
footerMargintopDisable = true
|
|
61
|
+
} = _b, rest = __objRest(_b, [
|
|
62
|
+
"className",
|
|
63
|
+
"title",
|
|
64
|
+
"children",
|
|
65
|
+
"open",
|
|
66
|
+
"handleOk",
|
|
67
|
+
"handleCancel",
|
|
68
|
+
"okText",
|
|
69
|
+
"cancelText",
|
|
70
|
+
"closeIcon",
|
|
71
|
+
"bodyClassName",
|
|
72
|
+
"outsideClickDisable",
|
|
73
|
+
"hideCross",
|
|
74
|
+
"okButtonLoading",
|
|
75
|
+
"okButtonDisabled",
|
|
76
|
+
"variant",
|
|
77
|
+
"okBtnClasses",
|
|
78
|
+
"cancelButtonAnalytics",
|
|
79
|
+
"okButtonAnalytics",
|
|
80
|
+
"footerMargintopDisable"
|
|
81
|
+
]);
|
|
82
|
+
return /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
|
|
83
|
+
AntModal,
|
|
84
|
+
__spreadProps(__spreadValues({
|
|
85
|
+
title,
|
|
86
|
+
open,
|
|
87
|
+
onOk: handleOk,
|
|
88
|
+
onCancel: handleCancel,
|
|
89
|
+
className: clsx(Modal_module_default.modal, className, {
|
|
90
|
+
footerMargintopDisable
|
|
91
|
+
}),
|
|
92
|
+
okText,
|
|
93
|
+
cancelText,
|
|
94
|
+
closeIcon,
|
|
95
|
+
closable: !hideCross,
|
|
96
|
+
maskClosable: !outsideClickDisable,
|
|
97
|
+
footer: okText || cancelText ? /* @__PURE__ */ jsxs(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: clsx({
|
|
101
|
+
primaryFooter: variant === "primary",
|
|
102
|
+
secondaryFooter: variant === "secondary"
|
|
103
|
+
}),
|
|
104
|
+
children: [
|
|
105
|
+
cancelText && /* @__PURE__ */ jsx(
|
|
106
|
+
Button,
|
|
107
|
+
__spreadProps(__spreadValues({
|
|
108
|
+
onClick: handleCancel,
|
|
109
|
+
type: "secondary",
|
|
110
|
+
className: "cancelBtn",
|
|
111
|
+
variant: "subtle"
|
|
112
|
+
}, cancelButtonAnalytics), {
|
|
113
|
+
children: cancelText
|
|
114
|
+
})
|
|
115
|
+
),
|
|
116
|
+
okText && /* @__PURE__ */ jsx(
|
|
117
|
+
Button,
|
|
118
|
+
__spreadProps(__spreadValues({
|
|
119
|
+
onClick: handleOk,
|
|
120
|
+
className: clsx(okBtnClasses, "okBtn"),
|
|
121
|
+
loading: okButtonLoading,
|
|
122
|
+
disabled: okButtonDisabled
|
|
123
|
+
}, okButtonAnalytics), {
|
|
124
|
+
children: okText
|
|
125
|
+
})
|
|
126
|
+
)
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
) : null
|
|
130
|
+
}, rest), {
|
|
131
|
+
children: /* @__PURE__ */ jsx("div", { className: bodyClassName, children })
|
|
132
|
+
})
|
|
133
|
+
) });
|
|
134
|
+
};
|
|
135
|
+
Modal.displayName = "Modal";
|
|
136
|
+
var Modal_default = Modal;
|
|
137
|
+
|
|
138
|
+
export {
|
|
139
|
+
Modal,
|
|
140
|
+
Modal_default
|
|
141
|
+
};
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -70,7 +70,8 @@ __export(index_exports, {
|
|
|
70
70
|
Slider: () => Slider_default,
|
|
71
71
|
Switch: () => Switch_default,
|
|
72
72
|
Tag: () => Tag_default,
|
|
73
|
-
Tooltip: () => Tooltip_default
|
|
73
|
+
Tooltip: () => Tooltip_default,
|
|
74
|
+
UserProfile: () => UserProfile_default
|
|
74
75
|
});
|
|
75
76
|
module.exports = __toCommonJS(index_exports);
|
|
76
77
|
|
|
@@ -2002,6 +2003,58 @@ function Slider(props) {
|
|
|
2002
2003
|
}
|
|
2003
2004
|
Slider.displayName = "Slider";
|
|
2004
2005
|
var Slider_default = Slider;
|
|
2006
|
+
|
|
2007
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
2008
|
+
var import_clsx11 = __toESM(require("clsx"));
|
|
2009
|
+
|
|
2010
|
+
// src/molecules/UserProfile/UserProfile.module.scss
|
|
2011
|
+
var UserProfile_module_default = { "userProfile": "UserProfile-module__userProfile___cRMm9", "profileContent": "UserProfile-module__profileContent___tfy8E", "profileHeader": "UserProfile-module__profileHeader___5qYbt", "profileName": "UserProfile-module__profileName___x8pg-", "profileEmail": "UserProfile-module__profileEmail___ZWKDd" };
|
|
2012
|
+
|
|
2013
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
2014
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2015
|
+
var UserProfile = ({
|
|
2016
|
+
firstName = "",
|
|
2017
|
+
lastName = "",
|
|
2018
|
+
email = "",
|
|
2019
|
+
profileImg = "",
|
|
2020
|
+
className = "",
|
|
2021
|
+
avatarHeight = 32,
|
|
2022
|
+
avatarWidth = 32,
|
|
2023
|
+
avatarSize = "normal",
|
|
2024
|
+
showTag = false,
|
|
2025
|
+
tagProps,
|
|
2026
|
+
uniqueKey = "",
|
|
2027
|
+
nameClassName = "",
|
|
2028
|
+
emailClassName = ""
|
|
2029
|
+
}) => {
|
|
2030
|
+
const fullName = `${firstName} ${lastName}`;
|
|
2031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: (0, import_clsx11.default)(UserProfile_module_default.userProfile, className), children: [
|
|
2032
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2033
|
+
Avatar,
|
|
2034
|
+
{
|
|
2035
|
+
img: profileImg,
|
|
2036
|
+
name: fullName,
|
|
2037
|
+
className: "tw-w-full tw-h-full tw-border-none",
|
|
2038
|
+
height: avatarHeight,
|
|
2039
|
+
width: avatarWidth,
|
|
2040
|
+
size: avatarSize
|
|
2041
|
+
}
|
|
2042
|
+
),
|
|
2043
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: UserProfile_module_default.profileContent, children: [
|
|
2044
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: UserProfile_module_default.profileHeader, children: [
|
|
2045
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: (0, import_clsx11.default)(nameClassName || (0, import_clsx11.default)(UserProfile_module_default.profileName, "tw-typography-body2Bold")), children: [
|
|
2046
|
+
firstName,
|
|
2047
|
+
" ",
|
|
2048
|
+
lastName
|
|
2049
|
+
] }),
|
|
2050
|
+
showTag && tagProps && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Tag, __spreadValues({}, tagProps))
|
|
2051
|
+
] }),
|
|
2052
|
+
email && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: (0, import_clsx11.default)(emailClassName || (0, import_clsx11.default)(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask")), children: email })
|
|
2053
|
+
] })
|
|
2054
|
+
] }, uniqueKey);
|
|
2055
|
+
};
|
|
2056
|
+
UserProfile.displayName = "UserProfile";
|
|
2057
|
+
var UserProfile_default = UserProfile;
|
|
2005
2058
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2006
2059
|
0 && (module.exports = {
|
|
2007
2060
|
Avatar,
|
|
@@ -2015,5 +2068,6 @@ var Slider_default = Slider;
|
|
|
2015
2068
|
Slider,
|
|
2016
2069
|
Switch,
|
|
2017
2070
|
Tag,
|
|
2018
|
-
Tooltip
|
|
2071
|
+
Tooltip,
|
|
2072
|
+
UserProfile
|
|
2019
2073
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RangePicker_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
3
|
+
} from "./chunk-35KDS27M.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Slider_default
|
|
6
|
+
} from "./chunk-D3N7VFER.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Select_default
|
|
9
|
+
} from "./chunk-E4FCLHYA.mjs";
|
|
5
10
|
import {
|
|
6
11
|
Switch_default
|
|
7
12
|
} from "./chunk-MNARBWAJ.mjs";
|
|
8
13
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
Tooltip_default
|
|
15
|
+
} from "./chunk-MLCMZRUC.mjs";
|
|
16
|
+
import {
|
|
17
|
+
UserProfile_default
|
|
18
|
+
} from "./chunk-N2WTNCQU.mjs";
|
|
11
19
|
import {
|
|
12
20
|
Tag_default
|
|
13
21
|
} from "./chunk-4VZB2KR2.mjs";
|
|
14
22
|
import {
|
|
15
23
|
Avatar_default
|
|
16
24
|
} from "./chunk-IWO2Y5QX.mjs";
|
|
17
|
-
import {
|
|
18
|
-
Modal_default
|
|
19
|
-
} from "./chunk-UQJ3BDM4.mjs";
|
|
20
|
-
import {
|
|
21
|
-
Button_default
|
|
22
|
-
} from "./chunk-AF2RKLH6.mjs";
|
|
23
25
|
import {
|
|
24
26
|
Checkbox_default
|
|
25
27
|
} from "./chunk-UQZNUEZE.mjs";
|
|
26
|
-
import {
|
|
27
|
-
Select_default
|
|
28
|
-
} from "./chunk-E4FCLHYA.mjs";
|
|
29
|
-
import {
|
|
30
|
-
Tooltip_default
|
|
31
|
-
} from "./chunk-MLCMZRUC.mjs";
|
|
32
28
|
import {
|
|
33
29
|
LoadingSpinner_default
|
|
34
30
|
} from "./chunk-QKTMWS4J.mjs";
|
|
35
31
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
32
|
+
Modal_default
|
|
33
|
+
} from "./chunk-UQJ3BDM4.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Button_default
|
|
36
|
+
} from "./chunk-AF2RKLH6.mjs";
|
|
37
|
+
import {
|
|
38
|
+
Radio_default
|
|
39
|
+
} from "./chunk-2EBPXGRY.mjs";
|
|
40
|
+
import "./chunk-ZTRM4HZJ.mjs";
|
|
38
41
|
import "./chunk-FWCSY2DS.mjs";
|
|
39
42
|
export {
|
|
40
43
|
Avatar_default as Avatar,
|
|
@@ -48,5 +51,6 @@ export {
|
|
|
48
51
|
Slider_default as Slider,
|
|
49
52
|
Switch_default as Switch,
|
|
50
53
|
Tag_default as Tag,
|
|
51
|
-
Tooltip_default as Tooltip
|
|
54
|
+
Tooltip_default as Tooltip,
|
|
55
|
+
UserProfile_default as UserProfile
|
|
52
56
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { T as TagProps } from '../../types-D4MD2w3_.mjs';
|
|
3
|
+
import { A as AvatarProps } from '../../types-mhQmqhsR.mjs';
|
|
4
|
+
|
|
5
|
+
interface UserProfileProps {
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
profileImg?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
avatarHeight?: number;
|
|
12
|
+
avatarWidth?: number;
|
|
13
|
+
avatarSize?: AvatarProps["size"];
|
|
14
|
+
showTag?: boolean;
|
|
15
|
+
tagProps?: TagProps;
|
|
16
|
+
uniqueKey?: string;
|
|
17
|
+
nameClassName?: string;
|
|
18
|
+
emailClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const UserProfile: React.FC<UserProfileProps>;
|
|
22
|
+
|
|
23
|
+
export { UserProfile, UserProfile as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { T as TagProps } from '../../types-D4MD2w3_.js';
|
|
3
|
+
import { A as AvatarProps } from '../../types-mhQmqhsR.js';
|
|
4
|
+
|
|
5
|
+
interface UserProfileProps {
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
profileImg?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
avatarHeight?: number;
|
|
12
|
+
avatarWidth?: number;
|
|
13
|
+
avatarSize?: AvatarProps["size"];
|
|
14
|
+
showTag?: boolean;
|
|
15
|
+
tagProps?: TagProps;
|
|
16
|
+
uniqueKey?: string;
|
|
17
|
+
nameClassName?: string;
|
|
18
|
+
emailClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const UserProfile: React.FC<UserProfileProps>;
|
|
22
|
+
|
|
23
|
+
export { UserProfile, UserProfile as default };
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
60
|
+
var UserProfile_exports = {};
|
|
61
|
+
__export(UserProfile_exports, {
|
|
62
|
+
UserProfile: () => UserProfile,
|
|
63
|
+
default: () => UserProfile_default
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(UserProfile_exports);
|
|
66
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
67
|
+
|
|
68
|
+
// src/atom/Avatar/Avatar.tsx
|
|
69
|
+
var import_clsx = __toESM(require("clsx"));
|
|
70
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
71
|
+
var COLOR_MAP = {
|
|
72
|
+
A: "#6455BF",
|
|
73
|
+
B: "#C46273",
|
|
74
|
+
C: "#52A79E",
|
|
75
|
+
D: "#DF8654",
|
|
76
|
+
E: "#B8639F",
|
|
77
|
+
F: "#6455BF",
|
|
78
|
+
G: "#C46273",
|
|
79
|
+
H: "#52A79E",
|
|
80
|
+
I: "#DF8654",
|
|
81
|
+
J: "#B8639F",
|
|
82
|
+
K: "#6455BF",
|
|
83
|
+
L: "#C46273",
|
|
84
|
+
M: "#52A79E",
|
|
85
|
+
N: "#DF8654",
|
|
86
|
+
O: "#B8639F",
|
|
87
|
+
P: "#6455BF",
|
|
88
|
+
Q: "#C46273",
|
|
89
|
+
R: "#52A79E",
|
|
90
|
+
S: "#DF8654",
|
|
91
|
+
T: "#B8639F",
|
|
92
|
+
U: "#6455BF",
|
|
93
|
+
V: "#C46273",
|
|
94
|
+
W: "#52A79E",
|
|
95
|
+
X: "#DF8654",
|
|
96
|
+
Y: "#B8639F",
|
|
97
|
+
Z: "#6455BF",
|
|
98
|
+
0: "#6455BF",
|
|
99
|
+
1: "#C46273",
|
|
100
|
+
6: "#C46273",
|
|
101
|
+
2: "#52A79E",
|
|
102
|
+
7: "#52A79E",
|
|
103
|
+
3: "#DF8654",
|
|
104
|
+
8: "#DF8654",
|
|
105
|
+
4: "#B8639F",
|
|
106
|
+
9: "#B8639F"
|
|
107
|
+
};
|
|
108
|
+
function Avatar({
|
|
109
|
+
img,
|
|
110
|
+
className,
|
|
111
|
+
name,
|
|
112
|
+
height = 28,
|
|
113
|
+
width = 28,
|
|
114
|
+
size = "normal"
|
|
115
|
+
}) {
|
|
116
|
+
var _a;
|
|
117
|
+
const firstChar = (_a = name == null ? void 0 : name[0]) == null ? void 0 : _a.toUpperCase();
|
|
118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
style: { height, width },
|
|
122
|
+
className: "tw-rounded-full tw-flex tw-items-center",
|
|
123
|
+
children: !img && name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
style: {
|
|
127
|
+
backgroundColor: COLOR_MAP[firstChar],
|
|
128
|
+
height,
|
|
129
|
+
width
|
|
130
|
+
},
|
|
131
|
+
className: (0, import_clsx.default)(
|
|
132
|
+
{ "tw-text-font-size-10": size === "small" },
|
|
133
|
+
`tw-text-white tw-font-medium tw-rounded-full tw-flex tw-items-center tw-justify-center`,
|
|
134
|
+
className
|
|
135
|
+
),
|
|
136
|
+
children: firstChar
|
|
137
|
+
}
|
|
138
|
+
) : img ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
139
|
+
"img",
|
|
140
|
+
{
|
|
141
|
+
src: img,
|
|
142
|
+
style: { height, width },
|
|
143
|
+
alt: name,
|
|
144
|
+
className: (0, import_clsx.default)("tw-rounded-full tw-object-cover", className)
|
|
145
|
+
}
|
|
146
|
+
) : null
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
Avatar.displayName = "Avatar";
|
|
151
|
+
|
|
152
|
+
// src/atom/Tag/Tag.tsx
|
|
153
|
+
var import_antd = require("antd");
|
|
154
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
155
|
+
|
|
156
|
+
// src/atom/Tag/Tag.module.scss
|
|
157
|
+
var Tag_module_default = { "tag": "Tag-module__tag___PIkhI", "small": "Tag-module__small___nG5XQ", "success": "Tag-module__success___99fad", "blue": "Tag-module__blue___Zky2Z", "warning": "Tag-module__warning___KXsly", "processing": "Tag-module__processing___OssXC", "bookingConfirmed": "Tag-module__bookingConfirmed___potR4", "bookingRescheduled": "Tag-module__bookingRescheduled___ynrwI", "bookingRescheduledPending": "Tag-module__bookingRescheduledPending___K3GqS", "failed": "Tag-module__failed___dvpyQ", "bookingPending": "Tag-module__bookingPending___64umX" };
|
|
158
|
+
|
|
159
|
+
// src/atom/Tag/Tag.tsx
|
|
160
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
161
|
+
var Tag = (_a) => {
|
|
162
|
+
var _b = _a, {
|
|
163
|
+
type = "success",
|
|
164
|
+
className = "",
|
|
165
|
+
title = "",
|
|
166
|
+
icon = null,
|
|
167
|
+
size = ""
|
|
168
|
+
} = _b, rest = __objRest(_b, [
|
|
169
|
+
"type",
|
|
170
|
+
"className",
|
|
171
|
+
"title",
|
|
172
|
+
"icon",
|
|
173
|
+
"size"
|
|
174
|
+
]);
|
|
175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
176
|
+
import_antd.Tag,
|
|
177
|
+
__spreadProps(__spreadValues({
|
|
178
|
+
className: (0, import_clsx2.default)(
|
|
179
|
+
Tag_module_default.tag,
|
|
180
|
+
size === "small" && Tag_module_default.small,
|
|
181
|
+
Tag_module_default[type],
|
|
182
|
+
className
|
|
183
|
+
),
|
|
184
|
+
icon
|
|
185
|
+
}, rest), {
|
|
186
|
+
children: title
|
|
187
|
+
})
|
|
188
|
+
);
|
|
189
|
+
};
|
|
190
|
+
Tag.displayName = "Tag";
|
|
191
|
+
|
|
192
|
+
// src/molecules/UserProfile/UserProfile.module.scss
|
|
193
|
+
var UserProfile_module_default = { "userProfile": "UserProfile-module__userProfile___cRMm9", "profileContent": "UserProfile-module__profileContent___tfy8E", "profileHeader": "UserProfile-module__profileHeader___5qYbt", "profileName": "UserProfile-module__profileName___x8pg-", "profileEmail": "UserProfile-module__profileEmail___ZWKDd" };
|
|
194
|
+
|
|
195
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
196
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
197
|
+
var UserProfile = ({
|
|
198
|
+
firstName = "",
|
|
199
|
+
lastName = "",
|
|
200
|
+
email = "",
|
|
201
|
+
profileImg = "",
|
|
202
|
+
className = "",
|
|
203
|
+
avatarHeight = 32,
|
|
204
|
+
avatarWidth = 32,
|
|
205
|
+
avatarSize = "normal",
|
|
206
|
+
showTag = false,
|
|
207
|
+
tagProps,
|
|
208
|
+
uniqueKey = "",
|
|
209
|
+
nameClassName = "",
|
|
210
|
+
emailClassName = ""
|
|
211
|
+
}) => {
|
|
212
|
+
const fullName = `${firstName} ${lastName}`;
|
|
213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import_clsx3.default)(UserProfile_module_default.userProfile, className), children: [
|
|
214
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
215
|
+
Avatar,
|
|
216
|
+
{
|
|
217
|
+
img: profileImg,
|
|
218
|
+
name: fullName,
|
|
219
|
+
className: "tw-w-full tw-h-full tw-border-none",
|
|
220
|
+
height: avatarHeight,
|
|
221
|
+
width: avatarWidth,
|
|
222
|
+
size: avatarSize
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: UserProfile_module_default.profileContent, children: [
|
|
226
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: UserProfile_module_default.profileHeader, children: [
|
|
227
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("p", { className: (0, import_clsx3.default)(nameClassName || (0, import_clsx3.default)(UserProfile_module_default.profileName, "tw-typography-body2Bold")), children: [
|
|
228
|
+
firstName,
|
|
229
|
+
" ",
|
|
230
|
+
lastName
|
|
231
|
+
] }),
|
|
232
|
+
showTag && tagProps && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Tag, __spreadValues({}, tagProps))
|
|
233
|
+
] }),
|
|
234
|
+
email && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: (0, import_clsx3.default)(emailClassName || (0, import_clsx3.default)(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask")), children: email })
|
|
235
|
+
] })
|
|
236
|
+
] }, uniqueKey);
|
|
237
|
+
};
|
|
238
|
+
UserProfile.displayName = "UserProfile";
|
|
239
|
+
var UserProfile_default = UserProfile;
|
|
240
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
241
|
+
0 && (module.exports = {
|
|
242
|
+
UserProfile
|
|
243
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UserProfile,
|
|
3
|
+
UserProfile_default
|
|
4
|
+
} from "../../chunk-N2WTNCQU.mjs";
|
|
5
|
+
import "../../chunk-4VZB2KR2.mjs";
|
|
6
|
+
import "../../chunk-IWO2Y5QX.mjs";
|
|
7
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
8
|
+
export {
|
|
9
|
+
UserProfile,
|
|
10
|
+
UserProfile_default as default
|
|
11
|
+
};
|