@customafk/lunas-ui 0.0.2-c → 0.0.2-d
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.
|
@@ -4,7 +4,7 @@ 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?: "default" | "
|
|
7
|
+
variant?: "default" | "secondary" | "outline" | "destructive" | "destructive-secondary" | "destructive-outline" | "sort-outline" | "normal" | null | undefined;
|
|
8
8
|
size?: "small" | "default" | "base" | "large" | null | undefined;
|
|
9
9
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
26
26
|
ref?: React.Ref<HTMLInputElement>;
|
|
27
27
|
} & {
|
|
28
28
|
asChild?: boolean;
|
|
29
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
29
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "onChange" | "type"> & {
|
|
30
30
|
value?: string;
|
|
31
31
|
onValueChange?: (search: string) => void;
|
|
32
32
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -52,7 +52,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
52
52
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
53
|
} & {
|
|
54
54
|
asChild?: boolean;
|
|
55
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "
|
|
55
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
56
56
|
heading?: React.ReactNode;
|
|
57
57
|
value?: string;
|
|
58
58
|
forceMount?: boolean;
|
|
@@ -70,7 +70,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
70
70
|
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
72
|
asChild?: boolean;
|
|
73
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "
|
|
73
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "onSelect" | "disabled"> & {
|
|
74
74
|
disabled?: boolean;
|
|
75
75
|
onSelect?: (value: string) => void;
|
|
76
76
|
value?: string;
|
|
@@ -2048,10 +2048,6 @@ var UserSheet = ({
|
|
|
2048
2048
|
useEffect2(() => {
|
|
2049
2049
|
setActiveItem(initialActiveItem);
|
|
2050
2050
|
}, [initialActiveItem]);
|
|
2051
|
-
useEffect2(() => {
|
|
2052
|
-
if (!activeItem) return;
|
|
2053
|
-
onSelectItem?.(activeItem);
|
|
2054
|
-
}, [activeItem, onSelectItem]);
|
|
2055
2051
|
return /* @__PURE__ */ jsxs16(Sheet, { children: [
|
|
2056
2052
|
/* @__PURE__ */ jsx28(SheetTrigger, { className: "rounded-full border border-ui-border-200", children: /* @__PURE__ */ jsx28(UserAvatar_default, { fullname, email, src: avatar, size: 36 }) }),
|
|
2057
2053
|
/* @__PURE__ */ jsxs16(SheetContent, { className: "w-64", children: [
|
|
@@ -2094,7 +2090,10 @@ var UserSheet = ({
|
|
|
2094
2090
|
name: "Th\xF4ng tin t\xE0i kho\u1EA3n",
|
|
2095
2091
|
isActive: activeItem === "PROFILE",
|
|
2096
2092
|
leftIcon: /* @__PURE__ */ jsx28(Lucide2UserIcon_default, { color: "currentColor", size: 16 }),
|
|
2097
|
-
onClick: () =>
|
|
2093
|
+
onClick: () => {
|
|
2094
|
+
setActiveItem("PROFILE");
|
|
2095
|
+
onSelectItem?.("PROFILE");
|
|
2096
|
+
}
|
|
2098
2097
|
}
|
|
2099
2098
|
),
|
|
2100
2099
|
/* @__PURE__ */ jsx28(
|
|
@@ -2103,7 +2102,10 @@ var UserSheet = ({
|
|
|
2103
2102
|
name: "Thi\u1EBFt l\u1EADp an to\xE0n",
|
|
2104
2103
|
isActive: activeItem === "SECURITY",
|
|
2105
2104
|
leftIcon: /* @__PURE__ */ jsx28(Lucide2LockIcon_default, { color: "currentColor", size: 16 }),
|
|
2106
|
-
onClick: () =>
|
|
2105
|
+
onClick: () => {
|
|
2106
|
+
setActiveItem("SECURITY");
|
|
2107
|
+
onSelectItem?.("SECURITY");
|
|
2108
|
+
}
|
|
2107
2109
|
}
|
|
2108
2110
|
),
|
|
2109
2111
|
/* @__PURE__ */ jsx28(
|
|
@@ -2112,7 +2114,10 @@ var UserSheet = ({
|
|
|
2112
2114
|
name: "Th\xF4ng b\xE1o",
|
|
2113
2115
|
isActive: activeItem === "NOTIFICATION",
|
|
2114
2116
|
leftIcon: /* @__PURE__ */ jsx28(Lucide2NotiIcon_default, { color: "currentColor", size: 16 }),
|
|
2115
|
-
onClick: () =>
|
|
2117
|
+
onClick: () => {
|
|
2118
|
+
setActiveItem("NOTIFICATION");
|
|
2119
|
+
onSelectItem?.("NOTIFICATION");
|
|
2120
|
+
}
|
|
2116
2121
|
}
|
|
2117
2122
|
),
|
|
2118
2123
|
/* @__PURE__ */ jsx28(
|
|
@@ -2121,7 +2126,10 @@ var UserSheet = ({
|
|
|
2121
2126
|
name: "Danh s\xE1ch \u0111\u01A1n h\xE0ng",
|
|
2122
2127
|
isActive: activeItem === "RESERVATION",
|
|
2123
2128
|
leftIcon: /* @__PURE__ */ jsx28(Lucide2ReservationIcon_default, { color: "currentColor", size: 16 }),
|
|
2124
|
-
onClick: () =>
|
|
2129
|
+
onClick: () => {
|
|
2130
|
+
setActiveItem("RESERVATION");
|
|
2131
|
+
onSelectItem?.("RESERVATION");
|
|
2132
|
+
}
|
|
2125
2133
|
}
|
|
2126
2134
|
),
|
|
2127
2135
|
/* @__PURE__ */ jsx28(
|
|
@@ -2130,7 +2138,10 @@ var UserSheet = ({
|
|
|
2130
2138
|
name: "Danh s\xE1ch \u0111\u1ECBa ch\u1EC9",
|
|
2131
2139
|
isActive: activeItem === "ADDRESS",
|
|
2132
2140
|
leftIcon: /* @__PURE__ */ jsx28(Lucide2AddressIcon_default, { color: "currentColor", size: 16 }),
|
|
2133
|
-
onClick: () =>
|
|
2141
|
+
onClick: () => {
|
|
2142
|
+
setActiveItem("ADDRESS");
|
|
2143
|
+
onSelectItem?.("ADDRESS");
|
|
2144
|
+
}
|
|
2134
2145
|
}
|
|
2135
2146
|
)
|
|
2136
2147
|
]
|
|
@@ -2142,7 +2153,10 @@ var UserSheet = ({
|
|
|
2142
2153
|
name: "\u0110\u0103ng xu\u1EA5t",
|
|
2143
2154
|
isActive: activeItem === "LOGOUT",
|
|
2144
2155
|
leftIcon: /* @__PURE__ */ jsx28(Lucide2LogOutIcon_default, { color: "currentColor", size: 16 }),
|
|
2145
|
-
onClick: () =>
|
|
2156
|
+
onClick: () => {
|
|
2157
|
+
setActiveItem("LOGOUT");
|
|
2158
|
+
onSelectItem?.("LOGOUT");
|
|
2159
|
+
}
|
|
2146
2160
|
}
|
|
2147
2161
|
) })
|
|
2148
2162
|
] })
|