@itilite/lumina-ui 1.0.0 → 1.0.1-alpha
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/README.md +43 -10
- package/dist/AdvancedDateRangePicker-ozItnkhp.d.mts +57 -0
- package/dist/AdvancedDateRangePicker-ozItnkhp.d.ts +57 -0
- package/dist/Table-BOq-_9Nr.d.mts +121 -0
- package/dist/Table-BOq-_9Nr.d.ts +121 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +2 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +2 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.js +791 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +11 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +17 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +17 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.js +370 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.mjs +8 -0
- package/dist/atom/Avatar/Avatar.d.mts +9 -0
- package/dist/atom/Avatar/Avatar.d.ts +9 -0
- package/dist/atom/Avatar/Avatar.js +123 -0
- package/dist/atom/Avatar/Avatar.mjs +9 -0
- package/dist/{Button.js → atom/Button/Button.js} +1 -1
- package/dist/{Button.mjs → atom/Button/Button.mjs} +2 -2
- package/dist/{Checkbox.mjs → atom/Checkbox/Checkbox.mjs} +2 -2
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +19 -0
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +19 -0
- package/dist/atom/LoadingSpinner/LoadingSpinner.js +90 -0
- package/dist/atom/LoadingSpinner/LoadingSpinner.mjs +9 -0
- package/dist/{Modal.d.mts → atom/Modal/Modal.d.mts} +1 -1
- package/dist/{Modal.d.ts → atom/Modal/Modal.d.ts} +1 -1
- package/dist/{Modal.js → atom/Modal/Modal.js} +1 -1
- package/dist/atom/Modal/Modal.mjs +10 -0
- package/dist/{Radio.mjs → atom/Radio/Radio.mjs} +2 -2
- package/dist/atom/RangePicker/Chevron.d.mts +13 -0
- package/dist/atom/RangePicker/Chevron.d.ts +13 -0
- package/dist/atom/RangePicker/Chevron.js +110 -0
- package/dist/atom/RangePicker/Chevron.mjs +7 -0
- package/dist/atom/RangePicker/RangePicker.d.mts +26 -0
- package/dist/atom/RangePicker/RangePicker.d.ts +26 -0
- package/dist/atom/RangePicker/RangePicker.js +1465 -0
- package/dist/atom/RangePicker/RangePicker.mjs +13 -0
- package/dist/atom/Select/Select.d.mts +40 -0
- package/dist/atom/Select/Select.d.ts +40 -0
- package/dist/atom/Select/Select.js +805 -0
- package/dist/atom/Select/Select.mjs +11 -0
- package/dist/atom/Slider/Slider.d.mts +34 -0
- package/dist/atom/Slider/Slider.d.ts +34 -0
- package/dist/atom/Slider/Slider.js +107 -0
- package/dist/atom/Slider/Slider.mjs +9 -0
- package/dist/{Switch.mjs → atom/Switch/Switch.mjs} +2 -2
- package/dist/atom/Table/Table.d.mts +3 -0
- package/dist/atom/Table/Table.d.ts +3 -0
- package/dist/atom/Table/Table.js +306 -0
- package/dist/atom/Table/Table.mjs +9 -0
- package/dist/atom/Tag/Tag.d.mts +6 -0
- package/dist/atom/Tag/Tag.d.ts +6 -0
- package/dist/atom/Tag/Tag.js +108 -0
- package/dist/atom/Tag/Tag.mjs +9 -0
- package/dist/{Tooltip.mjs → atom/Tooltip/Tooltip.mjs} +2 -2
- package/dist/chunk-4JX54OKI.mjs +627 -0
- package/dist/chunk-4VZB2KR2.mjs +51 -0
- package/dist/{chunk-HISCHZ5H.mjs → chunk-AF2RKLH6.mjs} +1 -1
- package/dist/chunk-D3N7VFER.mjs +73 -0
- package/dist/chunk-GU5F7Z7I.mjs +681 -0
- package/dist/chunk-IWO2Y5QX.mjs +89 -0
- package/dist/chunk-N2WTNCQU.mjs +66 -0
- package/dist/chunk-N4DPPZVJ.mjs +269 -0
- package/dist/chunk-PQ3B2FEB.mjs +249 -0
- package/dist/chunk-QKTMWS4J.mjs +43 -0
- package/dist/{chunk-N355RJGH.mjs → chunk-UQJ3BDM4.mjs} +1 -1
- package/dist/chunk-V3CHJHUX.mjs +424 -0
- package/dist/chunk-ZTRM4HZJ.mjs +53 -0
- package/dist/index.d.mts +18 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.js +2544 -6
- package/dist/index.mjs +49 -11
- 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 +1634 -1282
- 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 +9 -32
- package/dist/Modal.mjs +0 -10
- /package/dist/{Button.d.mts → atom/Button/Button.d.mts} +0 -0
- /package/dist/{Button.d.ts → atom/Button/Button.d.ts} +0 -0
- /package/dist/{Checkbox.d.mts → atom/Checkbox/Checkbox.d.mts} +0 -0
- /package/dist/{Checkbox.d.ts → atom/Checkbox/Checkbox.d.ts} +0 -0
- /package/dist/{Checkbox.js → atom/Checkbox/Checkbox.js} +0 -0
- /package/dist/{Radio.d.mts → atom/Radio/Radio.d.mts} +0 -0
- /package/dist/{Radio.d.ts → atom/Radio/Radio.d.ts} +0 -0
- /package/dist/{Radio.js → atom/Radio/Radio.js} +0 -0
- /package/dist/{Switch.d.mts → atom/Switch/Switch.d.mts} +0 -0
- /package/dist/{Switch.d.ts → atom/Switch/Switch.d.ts} +0 -0
- /package/dist/{Switch.js → atom/Switch/Switch.js} +0 -0
- /package/dist/{Tooltip.d.mts → atom/Tooltip/Tooltip.d.mts} +0 -0
- /package/dist/{Tooltip.d.ts → atom/Tooltip/Tooltip.d.ts} +0 -0
- /package/dist/{Tooltip.js → atom/Tooltip/Tooltip.js} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
Modal_default
|
|
6
|
-
} from "./chunk-N355RJGH.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Button_default
|
|
9
|
-
} from "./chunk-HISCHZ5H.mjs";
|
|
2
|
+
UserProfile_default
|
|
3
|
+
} from "./chunk-N2WTNCQU.mjs";
|
|
10
4
|
import {
|
|
11
5
|
Radio_default
|
|
12
6
|
} from "./chunk-2EBPXGRY.mjs";
|
|
13
7
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
8
|
+
RangePicker_default
|
|
9
|
+
} from "./chunk-4JX54OKI.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Select_default
|
|
12
|
+
} from "./chunk-GU5F7Z7I.mjs";
|
|
16
13
|
import {
|
|
17
14
|
Tooltip_default
|
|
18
15
|
} from "./chunk-MLCMZRUC.mjs";
|
|
16
|
+
import {
|
|
17
|
+
Slider_default
|
|
18
|
+
} from "./chunk-D3N7VFER.mjs";
|
|
19
|
+
import {
|
|
20
|
+
Switch_default
|
|
21
|
+
} from "./chunk-MNARBWAJ.mjs";
|
|
22
|
+
import {
|
|
23
|
+
Table
|
|
24
|
+
} from "./chunk-PQ3B2FEB.mjs";
|
|
25
|
+
import {
|
|
26
|
+
Tag_default
|
|
27
|
+
} from "./chunk-4VZB2KR2.mjs";
|
|
28
|
+
import {
|
|
29
|
+
AdvancedDateRangePicker
|
|
30
|
+
} from "./chunk-V3CHJHUX.mjs";
|
|
31
|
+
import "./chunk-N4DPPZVJ.mjs";
|
|
32
|
+
import "./chunk-ZTRM4HZJ.mjs";
|
|
33
|
+
import {
|
|
34
|
+
Avatar_default
|
|
35
|
+
} from "./chunk-IWO2Y5QX.mjs";
|
|
36
|
+
import {
|
|
37
|
+
Checkbox_default
|
|
38
|
+
} from "./chunk-UQZNUEZE.mjs";
|
|
39
|
+
import {
|
|
40
|
+
Modal_default
|
|
41
|
+
} from "./chunk-UQJ3BDM4.mjs";
|
|
42
|
+
import {
|
|
43
|
+
Button_default
|
|
44
|
+
} from "./chunk-AF2RKLH6.mjs";
|
|
45
|
+
import {
|
|
46
|
+
LoadingSpinner_default
|
|
47
|
+
} from "./chunk-QKTMWS4J.mjs";
|
|
19
48
|
import "./chunk-FWCSY2DS.mjs";
|
|
20
49
|
export {
|
|
50
|
+
AdvancedDateRangePicker,
|
|
51
|
+
Avatar_default as Avatar,
|
|
21
52
|
Button_default as Button,
|
|
22
53
|
Checkbox_default as Checkbox,
|
|
54
|
+
LoadingSpinner_default as LoadingSpinner,
|
|
23
55
|
Modal_default as Modal,
|
|
24
56
|
Radio_default as Radio,
|
|
57
|
+
RangePicker_default as RangePicker,
|
|
58
|
+
Select_default as Select,
|
|
59
|
+
Slider_default as Slider,
|
|
25
60
|
Switch_default as Switch,
|
|
26
|
-
|
|
61
|
+
Table,
|
|
62
|
+
Tag_default as Tag,
|
|
63
|
+
Tooltip_default as Tooltip,
|
|
64
|
+
UserProfile_default as UserProfile
|
|
27
65
|
};
|
|
@@ -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
|
+
};
|