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