@orangecheck/app-design 0.5.12 → 0.5.13

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.mjs CHANGED
@@ -2671,18 +2671,22 @@ function AppShell({
2671
2671
  function AccountMenu({
2672
2672
  name,
2673
2673
  detail,
2674
- items
2674
+ items,
2675
+ nameFrom = "sm"
2675
2676
  }) {
2676
2677
  const initial = name.trim().charAt(0).toUpperCase() || "\xB7";
2677
2678
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
2678
2679
  /* @__PURE__ */ jsxs(
2679
2680
  DropdownMenuTrigger,
2680
2681
  {
2681
- className: "inline-flex h-10 items-center gap-2.5 rounded-full border border-border bg-card pl-1 pr-1 text-[0.9375rem] outline-none transition-colors hover:border-oca-hairline-strong focus-visible:ring-2 focus-visible:ring-ring sm:pr-3.5",
2682
+ className: cn(
2683
+ "inline-flex h-10 items-center gap-2.5 rounded-full border border-border bg-card pl-1 pr-1 text-[0.9375rem] outline-none transition-colors hover:border-oca-hairline-strong focus-visible:ring-2 focus-visible:ring-ring",
2684
+ nameFrom === "lg" ? "lg:pr-3.5" : "sm:pr-3.5"
2685
+ ),
2682
2686
  "aria-label": `Account: ${name}`,
2683
2687
  children: [
2684
2688
  /* @__PURE__ */ jsx("span", { className: "flex size-8 items-center justify-center rounded-full bg-foreground text-[0.8125rem] font-medium text-background", children: initial }),
2685
- /* @__PURE__ */ jsx("span", { className: "max-w-[10rem] truncate max-sm:hidden", children: name })
2689
+ /* @__PURE__ */ jsx("span", { className: cn("max-w-[10rem] truncate", nameFrom === "lg" ? "max-lg:hidden" : "max-sm:hidden"), children: name })
2686
2690
  ]
2687
2691
  }
2688
2692
  ),