@hilum/ui 2.1.0 → 2.1.2
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/index.js +16 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/account-menu.tsx +18 -17
package/dist/index.js
CHANGED
|
@@ -231,8 +231,7 @@ var AccountMenuContent = React17.forwardRef(({ className, sideOffset = 8, ...pro
|
|
|
231
231
|
ref,
|
|
232
232
|
sideOffset,
|
|
233
233
|
className: cn(
|
|
234
|
-
"w-
|
|
235
|
-
"ring-1 ring-ground-800",
|
|
234
|
+
"w-72 overflow-hidden rounded-xl border border-border bg-card p-0 text-foreground shadow-elevated",
|
|
236
235
|
className
|
|
237
236
|
),
|
|
238
237
|
...props
|
|
@@ -244,49 +243,49 @@ var AccountMenuHeader = React17.forwardRef(
|
|
|
244
243
|
"div",
|
|
245
244
|
{
|
|
246
245
|
ref,
|
|
247
|
-
className: cn("flex flex-col items-center px-
|
|
246
|
+
className: cn("flex flex-col items-center px-5 py-5 text-center", className),
|
|
248
247
|
...props,
|
|
249
248
|
children: [
|
|
250
|
-
/* @__PURE__ */ jsxs(Avatar, { size: "
|
|
249
|
+
/* @__PURE__ */ jsxs(Avatar, { size: "lg", className: "mb-3", children: [
|
|
251
250
|
avatarSrc && /* @__PURE__ */ jsx(AvatarImage, { src: avatarSrc, alt: avatarAlt ?? "" }),
|
|
252
|
-
/* @__PURE__ */ jsx(AvatarFallback, { className: "bg-brand-primary text-
|
|
251
|
+
/* @__PURE__ */ jsx(AvatarFallback, { className: "bg-brand-primary text-primary-foreground", children: fallback })
|
|
253
252
|
] }),
|
|
254
|
-
/* @__PURE__ */ jsx("p", { className: "body
|
|
255
|
-
email && /* @__PURE__ */ jsx("p", { className: "
|
|
253
|
+
/* @__PURE__ */ jsx("p", { className: "body font-medium leading-tight text-foreground", children: name }),
|
|
254
|
+
email && /* @__PURE__ */ jsx("p", { className: "caption text-muted-foreground", children: email })
|
|
256
255
|
]
|
|
257
256
|
}
|
|
258
257
|
)
|
|
259
258
|
);
|
|
260
259
|
AccountMenuHeader.displayName = "AccountMenuHeader";
|
|
261
260
|
var AccountMenuSection = React17.forwardRef(
|
|
262
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-
|
|
261
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-2", className), ...props })
|
|
263
262
|
);
|
|
264
263
|
AccountMenuSection.displayName = "AccountMenuSection";
|
|
265
|
-
var AccountMenuItem = React17.forwardRef(({ icon, trailing, description, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
264
|
+
var AccountMenuItem = React17.forwardRef(({ icon, trailing, description, destructive, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
266
265
|
DropdownMenuItem,
|
|
267
266
|
{
|
|
268
267
|
ref,
|
|
269
268
|
className: cn(
|
|
270
|
-
"min-h-
|
|
269
|
+
"min-h-10 rounded-md px-2.5 py-2",
|
|
271
270
|
"group",
|
|
272
|
-
"focus:bg-
|
|
271
|
+
destructive ? "text-destructive focus:bg-destructive/10 focus:text-destructive" : "text-foreground focus:bg-muted focus:text-foreground",
|
|
273
272
|
"data-[disabled]:opacity-40",
|
|
274
|
-
"[&_svg:not([class*='size-'])]:size-
|
|
273
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
275
274
|
className
|
|
276
275
|
),
|
|
277
276
|
...props,
|
|
278
277
|
children: [
|
|
279
|
-
icon && /* @__PURE__ */ jsx("span", { className: "flex size-
|
|
278
|
+
icon && /* @__PURE__ */ jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", children: icon }),
|
|
280
279
|
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
281
|
-
/* @__PURE__ */ jsx("span", { className: "body
|
|
282
|
-
description && /* @__PURE__ */ jsx("span", { className: "
|
|
280
|
+
/* @__PURE__ */ jsx("span", { className: "body truncate font-medium leading-tight", children }),
|
|
281
|
+
description && /* @__PURE__ */ jsx("span", { className: "caption truncate font-normal text-muted-foreground group-focus:text-muted-foreground", children: description })
|
|
283
282
|
] }),
|
|
284
|
-
trailing && /* @__PURE__ */ jsx("span", { className: "ml-3 shrink-0 text-
|
|
283
|
+
trailing && /* @__PURE__ */ jsx("span", { className: "caption ml-3 shrink-0 text-muted-foreground", children: trailing })
|
|
285
284
|
]
|
|
286
285
|
}
|
|
287
286
|
));
|
|
288
287
|
AccountMenuItem.displayName = "AccountMenuItem";
|
|
289
|
-
var AccountMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuSeparator, { ref, className: cn("m-0 bg-
|
|
288
|
+
var AccountMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuSeparator, { ref, className: cn("m-0 bg-border", className), ...props }));
|
|
290
289
|
AccountMenuSeparator.displayName = "AccountMenuSeparator";
|
|
291
290
|
var AccordionRoot = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Accordion.Root, { ref, className: cn("divide-y divide-border", className), ...props }));
|
|
292
291
|
AccordionRoot.displayName = "Accordion";
|