@xenide-io/the-old-ui-theme 0.9.2 → 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.2",
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",
@@ -671,7 +671,7 @@ button:hover > .ph-card {
671
671
  color: var(--ph-text-primary);
672
672
  font-family: inherit;
673
673
  font-size: 0.875rem;
674
- line-height: 1.5;
674
+ line-height: 1.6;
675
675
  overflow-wrap: anywhere;
676
676
  }
677
677
  .suite-ai-markdown > :first-child {
@@ -684,64 +684,117 @@ button:hover > .ph-card {
684
684
  .suite-ai-markdown h2,
685
685
  .suite-ai-markdown h3,
686
686
  .suite-ai-markdown h4 {
687
- margin: 0.75rem 0 0.25rem;
688
- font-weight: 600;
689
- line-height: 1.25;
687
+ margin: 1rem 0 0.375rem;
688
+ color: var(--ph-text-primary);
689
+ font-weight: 650;
690
+ letter-spacing: -0.012em;
691
+ line-height: 1.2;
690
692
  }
691
- .suite-ai-markdown h1 { font-size: 1.25rem; }
692
- .suite-ai-markdown h2 { font-size: 1.125rem; }
693
+ .suite-ai-markdown h1 { font-size: 1.2rem; }
694
+ .suite-ai-markdown h2 { font-size: 1.05rem; }
693
695
  .suite-ai-markdown h3,
694
- .suite-ai-markdown h4 { font-size: 1rem; }
696
+ .suite-ai-markdown h4 { font-size: 0.9375rem; }
695
697
  .suite-ai-markdown p,
696
698
  .suite-ai-markdown ul,
697
699
  .suite-ai-markdown ol,
698
700
  .suite-ai-markdown blockquote,
699
701
  .suite-ai-markdown pre,
700
702
  .suite-ai-markdown table {
701
- margin: 0.5rem 0;
703
+ margin: 0.625rem 0;
704
+ }
705
+ .suite-ai-markdown strong {
706
+ color: var(--ph-text-primary);
707
+ font-weight: 650;
708
+ }
709
+ .suite-ai-markdown em {
710
+ color: var(--ph-text-secondary);
702
711
  }
703
712
  .suite-ai-markdown ul,
704
713
  .suite-ai-markdown ol {
705
- padding-left: 1.25rem;
714
+ padding-left: 1.375rem;
706
715
  }
707
716
  .suite-ai-markdown ul { list-style: disc; }
708
717
  .suite-ai-markdown ol { list-style: decimal; }
709
- .suite-ai-markdown li + li { margin-top: 0.125rem; }
718
+ .suite-ai-markdown li { padding-left: 0.125rem; }
719
+ .suite-ai-markdown li + li { margin-top: 0.25rem; }
720
+ .suite-ai-markdown li::marker { color: var(--ph-brand); }
710
721
  .suite-ai-markdown pre {
711
- padding: 0.5rem;
722
+ padding: 0.75rem;
712
723
  overflow-x: auto;
713
- border: 1px solid var(--ph-border);
714
- border-radius: 6px;
715
- background: var(--ph-surface);
724
+ border: 1px solid var(--ph-border-subtle);
725
+ border-radius: 0.625rem;
726
+ background: color-mix(in oklab, var(--ph-surface) 80%, var(--ph-canvas));
727
+ box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ph-text-primary) 4%, transparent);
716
728
  }
717
729
  .suite-ai-markdown code {
730
+ font-family: var(--ph-font-monospace-stack, ui-monospace, monospace);
718
731
  font-size: 0.8125rem;
719
732
  }
720
733
  .suite-ai-markdown :not(pre) > code {
721
- padding: 0.1rem 0.25rem;
722
- border-radius: 4px;
723
- background: var(--ph-surface);
734
+ padding: 0.125rem 0.3rem;
735
+ border: 1px solid color-mix(in oklab, var(--ph-border) 80%, transparent);
736
+ border-radius: 0.25rem;
737
+ background: color-mix(in oklab, var(--ph-surface) 76%, var(--ph-canvas));
738
+ }
739
+ .suite-ai-markdown pre > code {
740
+ padding: 0;
741
+ border: 0;
742
+ background: transparent;
743
+ color: var(--ph-text-primary);
724
744
  }
725
745
  .suite-ai-markdown blockquote {
726
- padding-left: 0.75rem;
727
- border-left: 2px solid var(--ph-border);
746
+ padding: 0.625rem 0.75rem;
747
+ border-left: 3px solid var(--ph-brand);
748
+ border-radius: 0 0.5rem 0.5rem 0;
749
+ background: color-mix(in oklab, var(--ph-brand) 8%, transparent);
750
+ color: var(--ph-text-secondary);
751
+ }
752
+ .suite-ai-markdown blockquote > :first-child {
753
+ margin-top: 0;
754
+ }
755
+ .suite-ai-markdown blockquote > :last-child {
756
+ margin-bottom: 0;
728
757
  }
729
758
  .suite-ai-markdown table {
730
759
  display: block;
731
760
  max-width: 100%;
732
761
  overflow-x: auto;
733
- border-collapse: collapse;
762
+ border: 1px solid var(--ph-border-subtle);
763
+ border-radius: 0.5rem;
764
+ background: var(--ph-surface);
765
+ border-spacing: 0;
734
766
  }
735
767
  .suite-ai-markdown th,
736
768
  .suite-ai-markdown td {
737
769
  padding: 0.375rem 0.5rem;
738
- border: 1px solid var(--ph-border);
770
+ border-bottom: 1px solid var(--ph-border-subtle);
739
771
  text-align: left;
772
+ vertical-align: top;
773
+ }
774
+ .suite-ai-markdown th {
775
+ background: color-mix(in oklab, var(--ph-muted) 70%, var(--ph-surface));
776
+ color: var(--ph-text-secondary);
777
+ font-size: 0.75rem;
778
+ font-weight: 650;
779
+ letter-spacing: 0.02em;
780
+ text-transform: uppercase;
781
+ }
782
+ .suite-ai-markdown tr:last-child td {
783
+ border-bottom: 0;
740
784
  }
741
785
  .suite-ai-markdown a {
742
786
  color: var(--ph-brand);
743
- text-decoration: underline;
744
- text-underline-offset: 2px;
787
+ font-weight: 600;
788
+ text-decoration: underline solid color-mix(in oklab, currentColor 45%, transparent);
789
+ text-underline-offset: 0.16em;
790
+ }
791
+ .suite-ai-markdown a:hover {
792
+ color: var(--ph-brand-hover, var(--ph-brand));
793
+ }
794
+ .suite-ai-markdown hr {
795
+ margin: 1rem 0;
796
+ border: 0;
797
+ border-top: 1px solid var(--ph-border-subtle);
745
798
  }
746
799
 
747
800
  /* ── Auth / OAuth / launch handoff ──────────────────────────────────────
@@ -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