@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,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface AvatarProps {
|
|
4
|
+
img?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
size?: "small" | "normal";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.JSX.Element;
|
|
13
|
+
declare namespace Avatar {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { type AvatarProps as A, Avatar as a };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface AvatarProps {
|
|
4
|
+
img?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
size?: "small" | "normal";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.JSX.Element;
|
|
13
|
+
declare namespace Avatar {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { type AvatarProps as A, Avatar as a };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface TagProps {
|
|
4
|
+
type?: "success" | "warning" | "blue" | "processing" | "failed";
|
|
5
|
+
className?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
icon?: React.ReactElement;
|
|
8
|
+
size?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const Tag: React$1.FC<TagProps>;
|
|
12
|
+
|
|
13
|
+
export { type TagProps as T, Tag as a };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface TagProps {
|
|
4
|
+
type?: "success" | "warning" | "blue" | "processing" | "failed";
|
|
5
|
+
className?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
icon?: React.ReactElement;
|
|
8
|
+
size?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const Tag: React$1.FC<TagProps>;
|
|
12
|
+
|
|
13
|
+
export { type TagProps as T, Tag as a };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface AvatarProps {
|
|
4
|
-
img?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
name: string;
|
|
7
|
-
height?: number;
|
|
8
|
-
width?: number;
|
|
9
|
-
size?: "small" | "normal";
|
|
10
|
-
}
|
|
2
|
+
import { A as AvatarProps } from '../../types-mhQmqhsR.mjs';
|
|
11
3
|
|
|
12
4
|
declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.JSX.Element;
|
|
13
5
|
declare namespace Avatar {
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface AvatarProps {
|
|
4
|
-
img?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
name: string;
|
|
7
|
-
height?: number;
|
|
8
|
-
width?: number;
|
|
9
|
-
size?: "small" | "normal";
|
|
10
|
-
}
|
|
2
|
+
import { A as AvatarProps } from '../../types-mhQmqhsR.js';
|
|
11
3
|
|
|
12
4
|
declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.JSX.Element;
|
|
13
5
|
declare namespace Avatar {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CustomRangePicker,
|
|
3
3
|
RangePicker_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-ZTRM4HZJ.mjs";
|
|
4
|
+
} from "../../chunk-35KDS27M.mjs";
|
|
6
5
|
import "../../chunk-E4FCLHYA.mjs";
|
|
7
6
|
import "../../chunk-MLCMZRUC.mjs";
|
|
8
7
|
import "../../chunk-QKTMWS4J.mjs";
|
|
8
|
+
import "../../chunk-ZTRM4HZJ.mjs";
|
|
9
9
|
import "../../chunk-FWCSY2DS.mjs";
|
|
10
10
|
export {
|
|
11
11
|
CustomRangePicker as RangePicker,
|
package/dist/atom/Tag/Tag.d.mts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { T as TagProps } from '../../types-D4MD2w3_.mjs';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
type?: "success" | "warning" | "blue" | "processing" | "failed";
|
|
5
|
-
className?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
icon?: React.ReactElement;
|
|
8
|
-
size?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare const Tag: React$1.FC<TagProps>;
|
|
4
|
+
declare const Tag: React.FC<TagProps>;
|
|
12
5
|
|
|
13
6
|
export { Tag, Tag as default };
|
package/dist/atom/Tag/Tag.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { T as TagProps } from '../../types-D4MD2w3_.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
type?: "success" | "warning" | "blue" | "processing" | "failed";
|
|
5
|
-
className?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
icon?: React.ReactElement;
|
|
8
|
-
size?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare const Tag: React$1.FC<TagProps>;
|
|
4
|
+
declare const Tag: React.FC<TagProps>;
|
|
12
5
|
|
|
13
6
|
export { Tag, Tag as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar
|
|
3
|
+
} from "./chunk-IWO2Y5QX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Tag
|
|
6
|
+
} from "./chunk-4VZB2KR2.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__spreadValues
|
|
9
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
10
|
+
|
|
11
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
|
|
14
|
+
// src/molecules/UserProfile/UserProfile.module.scss
|
|
15
|
+
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" };
|
|
16
|
+
|
|
17
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var UserProfile = ({
|
|
20
|
+
firstName,
|
|
21
|
+
lastName,
|
|
22
|
+
email,
|
|
23
|
+
profileImg,
|
|
24
|
+
className = "",
|
|
25
|
+
avatarHeight = 32,
|
|
26
|
+
avatarWidth = 32,
|
|
27
|
+
avatarSize = "normal",
|
|
28
|
+
showTag = false,
|
|
29
|
+
tagProps,
|
|
30
|
+
uniqueKey
|
|
31
|
+
}) => {
|
|
32
|
+
const fullName = `${firstName} ${lastName}`;
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx(UserProfile_module_default.userProfile, className), children: [
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
Avatar,
|
|
36
|
+
{
|
|
37
|
+
img: profileImg,
|
|
38
|
+
name: fullName,
|
|
39
|
+
className: "tw-w-full tw-h-full tw-border-none",
|
|
40
|
+
height: avatarHeight,
|
|
41
|
+
width: avatarWidth,
|
|
42
|
+
size: avatarSize
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileContent, children: [
|
|
46
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileHeader, children: [
|
|
47
|
+
/* @__PURE__ */ jsxs("p", { className: clsx(UserProfile_module_default.profileName, "tw-typography-body2Bold"), children: [
|
|
48
|
+
firstName,
|
|
49
|
+
" ",
|
|
50
|
+
lastName
|
|
51
|
+
] }),
|
|
52
|
+
showTag && tagProps && /* @__PURE__ */ jsx(Tag, __spreadValues({}, tagProps))
|
|
53
|
+
] }),
|
|
54
|
+
email && /* @__PURE__ */ jsx("p", { className: clsx(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask"), children: email })
|
|
55
|
+
] })
|
|
56
|
+
] }, uniqueKey);
|
|
57
|
+
};
|
|
58
|
+
UserProfile.displayName = "UserProfile";
|
|
59
|
+
var UserProfile_default = UserProfile;
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
UserProfile,
|
|
63
|
+
UserProfile_default
|
|
64
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button
|
|
3
|
+
} from "./chunk-SWRFCTJW.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
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Tag
|
|
3
|
+
} from "./chunk-4VZB2KR2.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Avatar
|
|
6
|
+
} from "./chunk-IWO2Y5QX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__spreadValues
|
|
9
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
10
|
+
|
|
11
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
|
|
14
|
+
// src/molecules/UserProfile/UserProfile.module.scss
|
|
15
|
+
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" };
|
|
16
|
+
|
|
17
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var UserProfile = ({
|
|
20
|
+
firstName,
|
|
21
|
+
lastName,
|
|
22
|
+
email,
|
|
23
|
+
profileImg,
|
|
24
|
+
className = "",
|
|
25
|
+
avatarHeight = 32,
|
|
26
|
+
avatarWidth = 32,
|
|
27
|
+
avatarSize = "normal",
|
|
28
|
+
showTag = false,
|
|
29
|
+
tagProps,
|
|
30
|
+
uniqueKey
|
|
31
|
+
}) => {
|
|
32
|
+
const fullName = `${firstName} ${lastName}`;
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx(UserProfile_module_default.userProfile, className), children: [
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
Avatar,
|
|
36
|
+
{
|
|
37
|
+
img: profileImg,
|
|
38
|
+
name: fullName,
|
|
39
|
+
className: "tw-w-full tw-h-full tw-border-none",
|
|
40
|
+
height: avatarHeight,
|
|
41
|
+
width: avatarWidth,
|
|
42
|
+
size: avatarSize
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileContent, children: [
|
|
46
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileHeader, children: [
|
|
47
|
+
/* @__PURE__ */ jsxs("p", { className: clsx(UserProfile_module_default.profileName, "tw-typography-body2Bold"), children: [
|
|
48
|
+
firstName,
|
|
49
|
+
" ",
|
|
50
|
+
lastName
|
|
51
|
+
] }),
|
|
52
|
+
showTag && tagProps && /* @__PURE__ */ jsx(Tag, __spreadValues({}, tagProps))
|
|
53
|
+
] }),
|
|
54
|
+
email && /* @__PURE__ */ jsx("p", { className: clsx(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask"), children: email })
|
|
55
|
+
] })
|
|
56
|
+
] }, uniqueKey);
|
|
57
|
+
};
|
|
58
|
+
UserProfile.displayName = "UserProfile";
|
|
59
|
+
var UserProfile_default = UserProfile;
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
UserProfile,
|
|
63
|
+
UserProfile_default
|
|
64
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Tag
|
|
3
|
+
} from "./chunk-4VZB2KR2.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Avatar
|
|
6
|
+
} from "./chunk-IWO2Y5QX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__spreadValues
|
|
9
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
10
|
+
|
|
11
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
|
|
14
|
+
// src/molecules/UserProfile/UserProfile.module.scss
|
|
15
|
+
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" };
|
|
16
|
+
|
|
17
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var UserProfile = ({
|
|
20
|
+
firstName = "",
|
|
21
|
+
lastName = "",
|
|
22
|
+
email = "",
|
|
23
|
+
profileImg = "",
|
|
24
|
+
className = "",
|
|
25
|
+
avatarHeight = 32,
|
|
26
|
+
avatarWidth = 32,
|
|
27
|
+
avatarSize = "normal",
|
|
28
|
+
showTag = false,
|
|
29
|
+
tagProps,
|
|
30
|
+
uniqueKey = "",
|
|
31
|
+
nameClassName = "",
|
|
32
|
+
emailClassName = ""
|
|
33
|
+
}) => {
|
|
34
|
+
const fullName = `${firstName} ${lastName}`;
|
|
35
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx(UserProfile_module_default.userProfile, className), children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
Avatar,
|
|
38
|
+
{
|
|
39
|
+
img: profileImg,
|
|
40
|
+
name: fullName,
|
|
41
|
+
className: "tw-w-full tw-h-full tw-border-none",
|
|
42
|
+
height: avatarHeight,
|
|
43
|
+
width: avatarWidth,
|
|
44
|
+
size: avatarSize
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileContent, children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileHeader, children: [
|
|
49
|
+
/* @__PURE__ */ jsxs("p", { className: clsx(nameClassName || clsx(UserProfile_module_default.profileName, "tw-typography-body2Bold")), children: [
|
|
50
|
+
firstName,
|
|
51
|
+
" ",
|
|
52
|
+
lastName
|
|
53
|
+
] }),
|
|
54
|
+
showTag && tagProps && /* @__PURE__ */ jsx(Tag, __spreadValues({}, tagProps))
|
|
55
|
+
] }),
|
|
56
|
+
email && /* @__PURE__ */ jsx("p", { className: clsx(emailClassName || clsx(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask")), children: email })
|
|
57
|
+
] })
|
|
58
|
+
] }, uniqueKey);
|
|
59
|
+
};
|
|
60
|
+
UserProfile.displayName = "UserProfile";
|
|
61
|
+
var UserProfile_default = UserProfile;
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
UserProfile,
|
|
65
|
+
UserProfile_default
|
|
66
|
+
};
|
|
@@ -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,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar
|
|
3
|
+
} from "./chunk-X76GNSBB.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Tag
|
|
6
|
+
} from "./chunk-4VZB2KR2.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__spreadValues
|
|
9
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
10
|
+
|
|
11
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
|
|
14
|
+
// src/molecules/UserProfile/UserProfile.module.scss
|
|
15
|
+
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" };
|
|
16
|
+
|
|
17
|
+
// src/molecules/UserProfile/UserProfile.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var UserProfile = ({
|
|
20
|
+
firstName,
|
|
21
|
+
lastName,
|
|
22
|
+
email,
|
|
23
|
+
profileImg,
|
|
24
|
+
className = "",
|
|
25
|
+
avatarHeight = 32,
|
|
26
|
+
avatarWidth = 32,
|
|
27
|
+
avatarSize = "normal",
|
|
28
|
+
showTag = false,
|
|
29
|
+
tagProps,
|
|
30
|
+
uniqueKey
|
|
31
|
+
}) => {
|
|
32
|
+
const fullName = `${firstName} ${lastName}`;
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx(UserProfile_module_default.userProfile, className), children: [
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
Avatar,
|
|
36
|
+
{
|
|
37
|
+
img: profileImg,
|
|
38
|
+
name: fullName,
|
|
39
|
+
className: "tw-w-full tw-h-full tw-border-none",
|
|
40
|
+
height: avatarHeight,
|
|
41
|
+
width: avatarWidth,
|
|
42
|
+
size: avatarSize
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileContent, children: [
|
|
46
|
+
/* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileHeader, children: [
|
|
47
|
+
/* @__PURE__ */ jsxs("p", { className: clsx(UserProfile_module_default.profileName, "tw-typography-body2Bold"), children: [
|
|
48
|
+
firstName,
|
|
49
|
+
" ",
|
|
50
|
+
lastName
|
|
51
|
+
] }),
|
|
52
|
+
showTag && tagProps && /* @__PURE__ */ jsx(Tag, __spreadValues({}, tagProps))
|
|
53
|
+
] }),
|
|
54
|
+
email && /* @__PURE__ */ jsx("p", { className: clsx(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask"), children: email })
|
|
55
|
+
] })
|
|
56
|
+
] }, uniqueKey);
|
|
57
|
+
};
|
|
58
|
+
UserProfile.displayName = "UserProfile";
|
|
59
|
+
var UserProfile_default = UserProfile;
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
UserProfile,
|
|
63
|
+
UserProfile_default
|
|
64
|
+
};
|