@customafk/lunas-ui 0.0.2-c → 0.0.2-e
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,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?: "default" | "
|
|
8
|
-
size?: "
|
|
7
|
+
variant?: "default" | "secondary" | "outline" | "destructive" | "destructive-secondary" | "destructive-outline" | "sort-outline" | "normal" | null | undefined;
|
|
8
|
+
size?: "default" | "base" | "large" | "small" | null | undefined;
|
|
9
9
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
10
10
|
|
|
11
11
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -8,7 +8,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
}, "
|
|
11
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
12
12
|
label?: string;
|
|
13
13
|
shouldFilter?: boolean;
|
|
14
14
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -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
|
-
}, "
|
|
29
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
30
30
|
value?: string;
|
|
31
31
|
onValueChange?: (search: string) => void;
|
|
32
32
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -36,7 +36,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
36
36
|
ref?: React.Ref<HTMLDivElement>;
|
|
37
37
|
} & {
|
|
38
38
|
asChild?: boolean;
|
|
39
|
-
}, "
|
|
39
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
40
40
|
label?: string;
|
|
41
41
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -45,14 +45,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
45
45
|
ref?: React.Ref<HTMLDivElement>;
|
|
46
46
|
} & {
|
|
47
47
|
asChild?: boolean;
|
|
48
|
-
}, "
|
|
48
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
49
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
50
50
|
children?: React.ReactNode;
|
|
51
51
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
52
52
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
53
|
} & {
|
|
54
54
|
asChild?: boolean;
|
|
55
|
-
}, "
|
|
55
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
56
56
|
heading?: React.ReactNode;
|
|
57
57
|
value?: string;
|
|
58
58
|
forceMount?: boolean;
|
|
@@ -61,7 +61,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
61
61
|
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
} & {
|
|
63
63
|
asChild?: boolean;
|
|
64
|
-
}, "
|
|
64
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
65
65
|
alwaysRender?: boolean;
|
|
66
66
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
67
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -70,7 +70,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
70
70
|
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
72
|
asChild?: boolean;
|
|
73
|
-
}, "
|
|
73
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
74
74
|
disabled?: boolean;
|
|
75
75
|
onSelect?: (value: string) => void;
|
|
76
76
|
value?: string;
|
|
@@ -254,13 +254,13 @@ var ScrollBar = forwardRef(({ className, orientation = "vertical", ...props }, r
|
|
|
254
254
|
ref,
|
|
255
255
|
orientation,
|
|
256
256
|
className: cn(
|
|
257
|
-
"flex touch-none select-none transition-
|
|
257
|
+
"flex touch-none select-none bg-ui-border-100 transition-all duration-300",
|
|
258
258
|
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
259
259
|
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
260
260
|
className
|
|
261
261
|
),
|
|
262
262
|
...props,
|
|
263
|
-
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "
|
|
263
|
+
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-ui-border-400" })
|
|
264
264
|
}
|
|
265
265
|
));
|
|
266
266
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -1069,13 +1069,13 @@ var ScrollBar = forwardRef4(({ className, orientation = "vertical", ...props },
|
|
|
1069
1069
|
ref,
|
|
1070
1070
|
orientation,
|
|
1071
1071
|
className: cn(
|
|
1072
|
-
"flex touch-none select-none transition-
|
|
1072
|
+
"flex touch-none select-none bg-ui-border-100 transition-all duration-300",
|
|
1073
1073
|
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
1074
1074
|
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
1075
1075
|
className
|
|
1076
1076
|
),
|
|
1077
1077
|
...props,
|
|
1078
|
-
children: /* @__PURE__ */ jsx9(ScrollAreaPrimitive.ScrollAreaThumb, { className: "
|
|
1078
|
+
children: /* @__PURE__ */ jsx9(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-ui-border-400" })
|
|
1079
1079
|
}
|
|
1080
1080
|
));
|
|
1081
1081
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -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
|
] })
|