@customafk/lunas-ui 0.0.2-h → 0.0.2-j
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/Atoms/Avatar/index.js +2 -3
- package/dist/Atoms/Button/index.d.ts +2 -2
- package/dist/Atoms/UserAvatar/index.d.ts +2 -2
- package/dist/Atoms/UserAvatar/index.js +23 -28
- package/dist/Authentication/ThankYou/index.js +13 -4
- package/dist/Icons/index.d.ts +1 -1
- package/dist/Icons/index.js +2 -3
- package/dist/Molecules/UserDropdown/index.js +42 -33
- package/dist/Organisms/Header/index.js +48 -35
- package/package.json +2 -1
|
@@ -10,8 +10,7 @@ var DEFAULT_ICON_SIZE = 24;
|
|
|
10
10
|
|
|
11
11
|
// packages/Icons/AvatarIcon.tsx
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
var AvatarIcon = (
|
|
14
|
-
const { bgColor, color, size } = props;
|
|
13
|
+
var AvatarIcon = ({ bgColor, color, size, ...Props }) => {
|
|
15
14
|
return /* @__PURE__ */ jsxs(
|
|
16
15
|
"svg",
|
|
17
16
|
{
|
|
@@ -20,7 +19,7 @@ var AvatarIcon = (props) => {
|
|
|
20
19
|
height: size ?? DEFAULT_ICON_SIZE,
|
|
21
20
|
viewBox: "0 0 96 96",
|
|
22
21
|
fill: "none",
|
|
23
|
-
...
|
|
22
|
+
...Props,
|
|
24
23
|
children: [
|
|
25
24
|
/* @__PURE__ */ jsx(
|
|
26
25
|
"path",
|
|
@@ -4,8 +4,8 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
8
|
-
size?: "
|
|
7
|
+
variant?: "normal" | "default" | "outline" | "secondary" | "destructive" | "destructive-secondary" | "destructive-outline" | "sort-outline" | null | undefined;
|
|
8
|
+
size?: "small" | "default" | "base" | "large" | null | undefined;
|
|
9
9
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
10
10
|
|
|
11
11
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
|
|
3
3
|
interface IProps {
|
|
4
4
|
readonly fullname: string;
|
|
@@ -7,6 +7,6 @@ interface IProps {
|
|
|
7
7
|
readonly size?: number;
|
|
8
8
|
readonly isButton?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const UserAvatar:
|
|
10
|
+
declare const UserAvatar: FC<IProps>;
|
|
11
11
|
|
|
12
12
|
export { UserAvatar as default };
|
|
@@ -3,15 +3,14 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
|
|
5
5
|
// packages/Atoms/UserAvatar/index.tsx
|
|
6
|
-
import {
|
|
6
|
+
import { memo } from "react";
|
|
7
7
|
|
|
8
8
|
// packages/utils/constants.ts
|
|
9
9
|
var DEFAULT_ICON_SIZE = 24;
|
|
10
10
|
|
|
11
11
|
// packages/Icons/AvatarIcon.tsx
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
var AvatarIcon = (
|
|
14
|
-
const { bgColor, color, size } = props;
|
|
13
|
+
var AvatarIcon = ({ bgColor, color, size, ...Props }) => {
|
|
15
14
|
return /* @__PURE__ */ jsxs(
|
|
16
15
|
"svg",
|
|
17
16
|
{
|
|
@@ -20,7 +19,7 @@ var AvatarIcon = (props) => {
|
|
|
20
19
|
height: size ?? DEFAULT_ICON_SIZE,
|
|
21
20
|
viewBox: "0 0 96 96",
|
|
22
21
|
fill: "none",
|
|
23
|
-
...
|
|
22
|
+
...Props,
|
|
24
23
|
children: [
|
|
25
24
|
/* @__PURE__ */ jsx(
|
|
26
25
|
"path",
|
|
@@ -433,33 +432,29 @@ var cn = (...inputs) => {
|
|
|
433
432
|
|
|
434
433
|
// packages/Atoms/UserAvatar/index.tsx
|
|
435
434
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
436
|
-
var UserAvatar = memo(
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
435
|
+
var UserAvatar = memo(({ fullname, email, src: source, size, isButton = true }) => {
|
|
436
|
+
const Comp = isButton ? "button" : "div";
|
|
437
|
+
return /* @__PURE__ */ jsx2(
|
|
438
|
+
Comp,
|
|
439
|
+
{
|
|
440
|
+
disabled: !isButton,
|
|
441
|
+
className: cn(
|
|
442
|
+
"flex size-fit items-center justify-center rounded-full transition-all duration-300",
|
|
443
|
+
"enabled:hover:shadow-ui-flat",
|
|
444
|
+
"enabled:hover:scale-110"
|
|
445
|
+
),
|
|
446
|
+
children: source ? /* @__PURE__ */ jsx2(
|
|
447
|
+
"img",
|
|
441
448
|
{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
"enabled:hover:shadow-ui-flat",
|
|
447
|
-
"enabled:hover:scale-110"
|
|
448
|
-
),
|
|
449
|
-
children: source ? /* @__PURE__ */ jsx2(
|
|
450
|
-
"img",
|
|
451
|
-
{
|
|
452
|
-
style: { width: size, height: size },
|
|
453
|
-
className: cn("rounded-full object-fill"),
|
|
454
|
-
src: source,
|
|
455
|
-
alt: fullname
|
|
456
|
-
}
|
|
457
|
-
) : /* @__PURE__ */ jsx2(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size })
|
|
449
|
+
style: { width: size, height: size },
|
|
450
|
+
className: cn("rounded-full object-fill"),
|
|
451
|
+
src: source,
|
|
452
|
+
alt: fullname
|
|
458
453
|
}
|
|
459
|
-
)
|
|
454
|
+
) : /* @__PURE__ */ jsx2(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size })
|
|
460
455
|
}
|
|
461
|
-
)
|
|
462
|
-
);
|
|
456
|
+
);
|
|
457
|
+
});
|
|
463
458
|
UserAvatar.displayName = "UserAvatar";
|
|
464
459
|
var UserAvatar_default = UserAvatar;
|
|
465
460
|
export {
|
|
@@ -812,10 +812,19 @@ var ThankYou = () => {
|
|
|
812
812
|
] }),
|
|
813
813
|
/* @__PURE__ */ jsx6("p", { className: "text-ui-note font-light text-ui-text-700", children: "Ch\xFAng t\xF4i \u0111\xE3 g\u1EEDi email x\xE1c nh\u1EADn t\u1EDBi \u0111\u1ECBa ch\u1EC9 c\u1EE7a b\u1EA1n. Vui l\xF2ng ki\u1EC3m tra h\u1ED9p th\u01B0 v\xE0 l\xE0m theo h\u01B0\u1EDBng d\u1EABn \u0111\u1EC3 k\xEDch ho\u1EA1t t\xE0i kho\u1EA3n." }),
|
|
814
814
|
/* @__PURE__ */ jsx6("p", { className: "text-ui-note font-light text-ui-text-400", children: "N\u1EBFu b\u1EA1n kh\xF4ng th\u1EA5y email x\xE1c nh\u1EADn, h\xE3y ki\u1EC3m tra trong m\u1EE5c \u201CTh\u01B0 r\xE1c\u201D ho\u1EB7c \u201CQu\u1EA3ng c\xE1o\u201D c\u1EE7a b\u1EA1n." }),
|
|
815
|
-
/* @__PURE__ */ jsx6(Flex_default, { py: "2", pr: "2", children: /* @__PURE__ */ jsx6(
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
815
|
+
/* @__PURE__ */ jsx6(Flex_default, { py: "2", pr: "2", children: /* @__PURE__ */ jsx6(
|
|
816
|
+
"a",
|
|
817
|
+
{
|
|
818
|
+
href: "https://gmail.com",
|
|
819
|
+
target: "_blank",
|
|
820
|
+
rel: "noreferrer",
|
|
821
|
+
onClick: () => window.close(),
|
|
822
|
+
children: /* @__PURE__ */ jsxs2(Button_default, { className: "rounded-sm", children: [
|
|
823
|
+
/* @__PURE__ */ jsx6(Lucide2MailIcon_default, { color: "currentColor" }),
|
|
824
|
+
/* @__PURE__ */ jsx6("span", { children: "Ki\u1EC3m tra email" })
|
|
825
|
+
] })
|
|
826
|
+
}
|
|
827
|
+
) })
|
|
819
828
|
] }),
|
|
820
829
|
/* @__PURE__ */ jsxs2(Flex_default, { vertical: true, width: "full", px: "2", gapY: "1", align: "start", children: [
|
|
821
830
|
/* @__PURE__ */ jsx6(Separator, { className: "mb-2" }),
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { I as IIconProps } from '../types-BgHhiNa-.js';
|
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
|
|
5
5
|
declare const AvatarIcon: {
|
|
6
|
-
(
|
|
6
|
+
({ bgColor, color, size, ...Props }: IIconProps): react_jsx_runtime.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
|
package/dist/Icons/index.js
CHANGED
|
@@ -3,8 +3,7 @@ var DEFAULT_ICON_SIZE = 24;
|
|
|
3
3
|
|
|
4
4
|
// packages/Icons/AvatarIcon.tsx
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
var AvatarIcon = (
|
|
7
|
-
const { bgColor, color, size } = props;
|
|
6
|
+
var AvatarIcon = ({ bgColor, color, size, ...Props }) => {
|
|
8
7
|
return /* @__PURE__ */ jsxs(
|
|
9
8
|
"svg",
|
|
10
9
|
{
|
|
@@ -13,7 +12,7 @@ var AvatarIcon = (props) => {
|
|
|
13
12
|
height: size ?? DEFAULT_ICON_SIZE,
|
|
14
13
|
viewBox: "0 0 96 96",
|
|
15
14
|
fill: "none",
|
|
16
|
-
...
|
|
15
|
+
...Props,
|
|
17
16
|
children: [
|
|
18
17
|
/* @__PURE__ */ jsx(
|
|
19
18
|
"path",
|
|
@@ -289,9 +289,10 @@ var cn = (...inputs) => {
|
|
|
289
289
|
|
|
290
290
|
// packages/Atoms/XButton/index.tsx
|
|
291
291
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
292
|
-
var XButton = ({ isDisabled, onClick }) => {
|
|
292
|
+
var XButton = ({ isButton = true, isDisabled, onClick }) => {
|
|
293
|
+
const Comp = isButton ? "button" : "div";
|
|
293
294
|
return /* @__PURE__ */ jsx2(
|
|
294
|
-
|
|
295
|
+
Comp,
|
|
295
296
|
{
|
|
296
297
|
disabled: isDisabled,
|
|
297
298
|
className: cn(
|
|
@@ -363,7 +364,20 @@ var SheetContent = forwardRef(
|
|
|
363
364
|
...props,
|
|
364
365
|
children: [
|
|
365
366
|
children,
|
|
366
|
-
/* @__PURE__ */ jsx3(
|
|
367
|
+
/* @__PURE__ */ jsx3(
|
|
368
|
+
SheetPrimitive.Close,
|
|
369
|
+
{
|
|
370
|
+
className: cn(
|
|
371
|
+
"absolute right-4 top-4",
|
|
372
|
+
"rounded-full",
|
|
373
|
+
"enabled:hover:bg-ui-surface-100",
|
|
374
|
+
"enabled:hover:text-ui-text-700",
|
|
375
|
+
"enabled:active:bg-ui-surface-200",
|
|
376
|
+
"enabled:active:text-ui-text-900"
|
|
377
|
+
),
|
|
378
|
+
children: /* @__PURE__ */ jsx3(XButton_default, { isButton: false })
|
|
379
|
+
}
|
|
380
|
+
)
|
|
367
381
|
]
|
|
368
382
|
}
|
|
369
383
|
)
|
|
@@ -400,12 +414,11 @@ var SheetDescription = forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
400
414
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
401
415
|
|
|
402
416
|
// packages/Atoms/UserAvatar/index.tsx
|
|
403
|
-
import {
|
|
417
|
+
import { memo as memo2 } from "react";
|
|
404
418
|
|
|
405
419
|
// packages/Icons/AvatarIcon.tsx
|
|
406
420
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
407
|
-
var AvatarIcon = (
|
|
408
|
-
const { bgColor, color, size } = props;
|
|
421
|
+
var AvatarIcon = ({ bgColor, color, size, ...Props }) => {
|
|
409
422
|
return /* @__PURE__ */ jsxs2(
|
|
410
423
|
"svg",
|
|
411
424
|
{
|
|
@@ -414,7 +427,7 @@ var AvatarIcon = (props) => {
|
|
|
414
427
|
height: size ?? DEFAULT_ICON_SIZE,
|
|
415
428
|
viewBox: "0 0 96 96",
|
|
416
429
|
fill: "none",
|
|
417
|
-
...
|
|
430
|
+
...Props,
|
|
418
431
|
children: [
|
|
419
432
|
/* @__PURE__ */ jsx4(
|
|
420
433
|
"path",
|
|
@@ -583,38 +596,34 @@ var color_hash_default = colorHash;
|
|
|
583
596
|
|
|
584
597
|
// packages/Atoms/UserAvatar/index.tsx
|
|
585
598
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
586
|
-
var UserAvatar = memo2(
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
599
|
+
var UserAvatar = memo2(({ fullname, email, src: source, size, isButton = true }) => {
|
|
600
|
+
const Comp = isButton ? "button" : "div";
|
|
601
|
+
return /* @__PURE__ */ jsx5(
|
|
602
|
+
Comp,
|
|
603
|
+
{
|
|
604
|
+
disabled: !isButton,
|
|
605
|
+
className: cn(
|
|
606
|
+
"flex size-fit items-center justify-center rounded-full transition-all duration-300",
|
|
607
|
+
"enabled:hover:shadow-ui-flat",
|
|
608
|
+
"enabled:hover:scale-110"
|
|
609
|
+
),
|
|
610
|
+
children: source ? /* @__PURE__ */ jsx5(
|
|
611
|
+
"img",
|
|
591
612
|
{
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
"enabled:hover:shadow-ui-flat",
|
|
597
|
-
"enabled:hover:scale-110"
|
|
598
|
-
),
|
|
599
|
-
children: source ? /* @__PURE__ */ jsx5(
|
|
600
|
-
"img",
|
|
601
|
-
{
|
|
602
|
-
style: { width: size, height: size },
|
|
603
|
-
className: cn("rounded-full object-fill"),
|
|
604
|
-
src: source,
|
|
605
|
-
alt: fullname
|
|
606
|
-
}
|
|
607
|
-
) : /* @__PURE__ */ jsx5(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size })
|
|
613
|
+
style: { width: size, height: size },
|
|
614
|
+
className: cn("rounded-full object-fill"),
|
|
615
|
+
src: source,
|
|
616
|
+
alt: fullname
|
|
608
617
|
}
|
|
609
|
-
)
|
|
618
|
+
) : /* @__PURE__ */ jsx5(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size })
|
|
610
619
|
}
|
|
611
|
-
)
|
|
612
|
-
);
|
|
620
|
+
);
|
|
621
|
+
});
|
|
613
622
|
UserAvatar.displayName = "UserAvatar";
|
|
614
623
|
var UserAvatar_default = UserAvatar;
|
|
615
624
|
|
|
616
625
|
// packages/Layout/Flex/index.tsx
|
|
617
|
-
import { forwardRef as
|
|
626
|
+
import { forwardRef as forwardRef2, memo as memo3, useMemo } from "react";
|
|
618
627
|
|
|
619
628
|
// packages/Layout/Flex/flexVariant.ts
|
|
620
629
|
import { cva as cva2 } from "class-variance-authority";
|
|
@@ -917,7 +926,7 @@ var commonLayout = cva3("", {
|
|
|
917
926
|
// packages/Layout/Flex/index.tsx
|
|
918
927
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
919
928
|
var Flex = memo3(
|
|
920
|
-
|
|
929
|
+
forwardRef2(
|
|
921
930
|
({
|
|
922
931
|
vertical = false,
|
|
923
932
|
wrap = "nowrap",
|
|
@@ -1137,9 +1137,10 @@ var Lucide2XIcon_default = Lucide2XIcon;
|
|
|
1137
1137
|
|
|
1138
1138
|
// packages/Atoms/XButton/index.tsx
|
|
1139
1139
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1140
|
-
var XButton = ({ isDisabled, onClick }) => {
|
|
1140
|
+
var XButton = ({ isButton = true, isDisabled, onClick }) => {
|
|
1141
|
+
const Comp = isButton ? "button" : "div";
|
|
1141
1142
|
return /* @__PURE__ */ jsx12(
|
|
1142
|
-
|
|
1143
|
+
Comp,
|
|
1143
1144
|
{
|
|
1144
1145
|
disabled: isDisabled,
|
|
1145
1146
|
className: cn(
|
|
@@ -1211,7 +1212,20 @@ var SheetContent = forwardRef5(
|
|
|
1211
1212
|
...props,
|
|
1212
1213
|
children: [
|
|
1213
1214
|
children,
|
|
1214
|
-
/* @__PURE__ */ jsx13(
|
|
1215
|
+
/* @__PURE__ */ jsx13(
|
|
1216
|
+
SheetPrimitive.Close,
|
|
1217
|
+
{
|
|
1218
|
+
className: cn(
|
|
1219
|
+
"absolute right-4 top-4",
|
|
1220
|
+
"rounded-full",
|
|
1221
|
+
"enabled:hover:bg-ui-surface-100",
|
|
1222
|
+
"enabled:hover:text-ui-text-700",
|
|
1223
|
+
"enabled:active:bg-ui-surface-200",
|
|
1224
|
+
"enabled:active:text-ui-text-900"
|
|
1225
|
+
),
|
|
1226
|
+
children: /* @__PURE__ */ jsx13(XButton_default, { isButton: false })
|
|
1227
|
+
}
|
|
1228
|
+
)
|
|
1215
1229
|
]
|
|
1216
1230
|
}
|
|
1217
1231
|
)
|
|
@@ -1271,6 +1285,7 @@ var Lucide2FillCartIcon = ({ color, size }) => {
|
|
|
1271
1285
|
var Lucide2FillCartIcon_default = Lucide2FillCartIcon;
|
|
1272
1286
|
|
|
1273
1287
|
// packages/Molecules/CartSheet/index.tsx
|
|
1288
|
+
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
1274
1289
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1275
1290
|
var CartSheet = ({
|
|
1276
1291
|
isNew,
|
|
@@ -1303,7 +1318,8 @@ var CartSheet = ({
|
|
|
1303
1318
|
/* @__PURE__ */ jsx15(Button_default, { className: "px-5 py-3", onClick: onCheckout, children: "Thanh to\xE1n" })
|
|
1304
1319
|
] })
|
|
1305
1320
|
] })
|
|
1306
|
-
] }) })
|
|
1321
|
+
] }) }),
|
|
1322
|
+
/* @__PURE__ */ jsx15(VisuallyHidden, { children: /* @__PURE__ */ jsx15(SheetTitle, {}) })
|
|
1307
1323
|
] });
|
|
1308
1324
|
};
|
|
1309
1325
|
var CartSheet_default = memo5(CartSheet);
|
|
@@ -1657,12 +1673,11 @@ var MenuItem = ({
|
|
|
1657
1673
|
var MenuItem_default = memo6(MenuItem);
|
|
1658
1674
|
|
|
1659
1675
|
// packages/Atoms/UserAvatar/index.tsx
|
|
1660
|
-
import {
|
|
1676
|
+
import { memo as memo7 } from "react";
|
|
1661
1677
|
|
|
1662
1678
|
// packages/Icons/AvatarIcon.tsx
|
|
1663
1679
|
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1664
|
-
var AvatarIcon = (
|
|
1665
|
-
const { bgColor, color, size } = props;
|
|
1680
|
+
var AvatarIcon = ({ bgColor, color, size, ...Props }) => {
|
|
1666
1681
|
return /* @__PURE__ */ jsxs14(
|
|
1667
1682
|
"svg",
|
|
1668
1683
|
{
|
|
@@ -1671,7 +1686,7 @@ var AvatarIcon = (props) => {
|
|
|
1671
1686
|
height: size ?? DEFAULT_ICON_SIZE,
|
|
1672
1687
|
viewBox: "0 0 96 96",
|
|
1673
1688
|
fill: "none",
|
|
1674
|
-
...
|
|
1689
|
+
...Props,
|
|
1675
1690
|
children: [
|
|
1676
1691
|
/* @__PURE__ */ jsx20(
|
|
1677
1692
|
"path",
|
|
@@ -1840,33 +1855,29 @@ var color_hash_default = colorHash;
|
|
|
1840
1855
|
|
|
1841
1856
|
// packages/Atoms/UserAvatar/index.tsx
|
|
1842
1857
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1843
|
-
var UserAvatar = memo7(
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1858
|
+
var UserAvatar = memo7(({ fullname, email, src: source, size, isButton = true }) => {
|
|
1859
|
+
const Comp = isButton ? "button" : "div";
|
|
1860
|
+
return /* @__PURE__ */ jsx21(
|
|
1861
|
+
Comp,
|
|
1862
|
+
{
|
|
1863
|
+
disabled: !isButton,
|
|
1864
|
+
className: cn(
|
|
1865
|
+
"flex size-fit items-center justify-center rounded-full transition-all duration-300",
|
|
1866
|
+
"enabled:hover:shadow-ui-flat",
|
|
1867
|
+
"enabled:hover:scale-110"
|
|
1868
|
+
),
|
|
1869
|
+
children: source ? /* @__PURE__ */ jsx21(
|
|
1870
|
+
"img",
|
|
1848
1871
|
{
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
"enabled:hover:shadow-ui-flat",
|
|
1854
|
-
"enabled:hover:scale-110"
|
|
1855
|
-
),
|
|
1856
|
-
children: source ? /* @__PURE__ */ jsx21(
|
|
1857
|
-
"img",
|
|
1858
|
-
{
|
|
1859
|
-
style: { width: size, height: size },
|
|
1860
|
-
className: cn("rounded-full object-fill"),
|
|
1861
|
-
src: source,
|
|
1862
|
-
alt: fullname
|
|
1863
|
-
}
|
|
1864
|
-
) : /* @__PURE__ */ jsx21(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size })
|
|
1872
|
+
style: { width: size, height: size },
|
|
1873
|
+
className: cn("rounded-full object-fill"),
|
|
1874
|
+
src: source,
|
|
1875
|
+
alt: fullname
|
|
1865
1876
|
}
|
|
1866
|
-
)
|
|
1877
|
+
) : /* @__PURE__ */ jsx21(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size })
|
|
1867
1878
|
}
|
|
1868
|
-
)
|
|
1869
|
-
);
|
|
1879
|
+
);
|
|
1880
|
+
});
|
|
1870
1881
|
UserAvatar.displayName = "UserAvatar";
|
|
1871
1882
|
var UserAvatar_default = UserAvatar;
|
|
1872
1883
|
|
|
@@ -2036,6 +2047,7 @@ Lucide2UserIcon.displayName = "Lucide2UserIcon";
|
|
|
2036
2047
|
var Lucide2UserIcon_default = Lucide2UserIcon;
|
|
2037
2048
|
|
|
2038
2049
|
// packages/Molecules/UserSheet/index.tsx
|
|
2050
|
+
import { VisuallyHidden as VisuallyHidden2 } from "@radix-ui/react-visually-hidden";
|
|
2039
2051
|
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2040
2052
|
var UserSheet = ({
|
|
2041
2053
|
initialActiveItem,
|
|
@@ -2049,7 +2061,7 @@ var UserSheet = ({
|
|
|
2049
2061
|
setActiveItem(initialActiveItem);
|
|
2050
2062
|
}, [initialActiveItem]);
|
|
2051
2063
|
return /* @__PURE__ */ jsxs16(Sheet, { children: [
|
|
2052
|
-
/* @__PURE__ */ jsx28(SheetTrigger, { className: "rounded-full border border-ui-border-200", children: /* @__PURE__ */ jsx28(UserAvatar_default, { fullname, email, src: avatar, size: 36 }) }),
|
|
2064
|
+
/* @__PURE__ */ jsx28(SheetTrigger, { className: "rounded-full border border-ui-border-200", children: /* @__PURE__ */ jsx28(UserAvatar_default, { isButton: false, fullname, email, src: avatar, size: 36 }) }),
|
|
2053
2065
|
/* @__PURE__ */ jsxs16(SheetContent, { className: "w-64", children: [
|
|
2054
2066
|
/* @__PURE__ */ jsx28(Flex_default, { vertical: true, gapY: "3", width: "full", px: "6", pt: "6", pb: "4", align: "start", children: !fullname || !email ? /* @__PURE__ */ jsxs16(Fragment2, { children: [
|
|
2055
2067
|
/* @__PURE__ */ jsx28(Skeleton, { className: "size-16 rounded-full" }),
|
|
@@ -2159,7 +2171,8 @@ var UserSheet = ({
|
|
|
2159
2171
|
}
|
|
2160
2172
|
}
|
|
2161
2173
|
) })
|
|
2162
|
-
] })
|
|
2174
|
+
] }),
|
|
2175
|
+
/* @__PURE__ */ jsx28(VisuallyHidden2, { children: /* @__PURE__ */ jsx28(SheetTitle, {}) })
|
|
2163
2176
|
] });
|
|
2164
2177
|
};
|
|
2165
2178
|
var UserSheet_default = memo8(UserSheet);
|
|
@@ -2184,7 +2197,7 @@ var Header = memo9((props) => {
|
|
|
2184
2197
|
"header",
|
|
2185
2198
|
{
|
|
2186
2199
|
className: cn(
|
|
2187
|
-
"relative flex h-fit w-full items-center justify-start bg-ui-surface-50 py-2 pl-8 pr-4 shadow-ui-sticky-nav",
|
|
2200
|
+
"relative flex h-fit min-h-[3.375rem] w-full items-center justify-start bg-ui-surface-50 py-2 pl-8 pr-4 shadow-ui-sticky-nav",
|
|
2188
2201
|
className
|
|
2189
2202
|
),
|
|
2190
2203
|
children: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customafk/lunas-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.2-
|
|
4
|
+
"version": "0.0.2-j",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://docs.customafk.com",
|
|
7
7
|
"repository": {
|
|
@@ -308,6 +308,7 @@
|
|
|
308
308
|
"@radix-ui/react-slider": "^1.2.1",
|
|
309
309
|
"@radix-ui/react-slot": "^1.1.0",
|
|
310
310
|
"@radix-ui/react-switch": "^1.1.1",
|
|
311
|
+
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
311
312
|
"class-variance-authority": "^0.7.0",
|
|
312
313
|
"clsx": "^2.1.1",
|
|
313
314
|
"cmdk": "^1.0.0",
|