@xenide-io/the-old-ui-theme 0.9.3 → 0.9.4

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/suite.js CHANGED
@@ -2750,13 +2750,13 @@ function SuiteUserMenu({
2750
2750
  const router = (0, import_navigation2.useRouter)();
2751
2751
  const initials = fallbackInitials != null ? fallbackInitials : computeInitials(name, email);
2752
2752
  const fallbackColor = avatarColorClass(email || name || "?");
2753
- const avatar = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border border-ph-border", children: image ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2753
+ const avatar = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "inline-flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "inline-flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-ph-border", children: image ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2754
2754
  import_image2.default,
2755
2755
  {
2756
2756
  src: image,
2757
2757
  alt: "",
2758
- width: 40,
2759
- height: 40,
2758
+ width: 32,
2759
+ height: 32,
2760
2760
  className: "h-full w-full object-cover",
2761
2761
  unoptimized: true
2762
2762
  }
@@ -2764,12 +2764,12 @@ function SuiteUserMenu({
2764
2764
  "span",
2765
2765
  {
2766
2766
  className: cn(
2767
- "flex h-full w-full items-center justify-center text-sm font-semibold",
2767
+ "flex h-full w-full items-center justify-center text-xs font-semibold",
2768
2768
  fallbackColor
2769
2769
  ),
2770
2770
  children: initials
2771
2771
  }
2772
- ) });
2772
+ ) }) });
2773
2773
  const accountMenu = /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2774
2774
  DropdownMenu,
2775
2775
  {
package/dist/suite.mjs CHANGED
@@ -1906,13 +1906,13 @@ function SuiteUserMenu({
1906
1906
  const router = useRouter2();
1907
1907
  const initials = fallbackInitials != null ? fallbackInitials : computeInitials(name, email);
1908
1908
  const fallbackColor = avatarColorClass(email || name || "?");
1909
- const avatar = /* @__PURE__ */ jsx13("span", { className: "inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border border-ph-border", children: image ? /* @__PURE__ */ jsx13(
1909
+ const avatar = /* @__PURE__ */ jsx13("span", { className: "inline-flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ jsx13("span", { className: "inline-flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-ph-border", children: image ? /* @__PURE__ */ jsx13(
1910
1910
  Image2,
1911
1911
  {
1912
1912
  src: image,
1913
1913
  alt: "",
1914
- width: 40,
1915
- height: 40,
1914
+ width: 32,
1915
+ height: 32,
1916
1916
  className: "h-full w-full object-cover",
1917
1917
  unoptimized: true
1918
1918
  }
@@ -1920,12 +1920,12 @@ function SuiteUserMenu({
1920
1920
  "span",
1921
1921
  {
1922
1922
  className: cn2(
1923
- "flex h-full w-full items-center justify-center text-sm font-semibold",
1923
+ "flex h-full w-full items-center justify-center text-xs font-semibold",
1924
1924
  fallbackColor
1925
1925
  ),
1926
1926
  children: initials
1927
1927
  }
1928
- ) });
1928
+ ) }) });
1929
1929
  const accountMenu = /* @__PURE__ */ jsxs11(
1930
1930
  DropdownMenu,
1931
1931
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenide-io/the-old-ui-theme",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "Props-driven React components and theme tokens inspired by classic interface design — optimized for Next.js apps and internal tools.",
5
5
  "author": "Xenide",
6
6
  "license": "MIT",
@@ -82,28 +82,31 @@ export function SuiteUserMenu({
82
82
  const initials = fallbackInitials ?? computeInitials(name, email);
83
83
  const fallbackColor = avatarColorClass(email || name || "?");
84
84
 
85
- // Match Tides Avatar `sm` (40px). Colour comes from theme `--ph-*` tokens.
85
+ // Visual avatar is 32px (Avatar `xs`); the 40px trigger keeps a comfortable
86
+ // tap target. Colour comes from theme `--ph-*` tokens.
86
87
  const avatar = (
87
- <span className="inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border border-ph-border">
88
- {image ? (
89
- <Image
90
- src={image}
91
- alt=""
92
- width={40}
93
- height={40}
94
- className="h-full w-full object-cover"
95
- unoptimized
96
- />
97
- ) : (
98
- <span
99
- className={cn(
100
- "flex h-full w-full items-center justify-center text-sm font-semibold",
101
- fallbackColor,
102
- )}
103
- >
104
- {initials}
105
- </span>
106
- )}
88
+ <span className="inline-flex h-10 w-10 items-center justify-center">
89
+ <span className="inline-flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-ph-border">
90
+ {image ? (
91
+ <Image
92
+ src={image}
93
+ alt=""
94
+ width={32}
95
+ height={32}
96
+ className="h-full w-full object-cover"
97
+ unoptimized
98
+ />
99
+ ) : (
100
+ <span
101
+ className={cn(
102
+ "flex h-full w-full items-center justify-center text-xs font-semibold",
103
+ fallbackColor,
104
+ )}
105
+ >
106
+ {initials}
107
+ </span>
108
+ )}
109
+ </span>
107
110
  </span>
108
111
  );
109
112