@orangecheck/ui 0.6.1 → 0.8.0

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
@@ -1,5 +1,5 @@
1
1
  import { Boxes, ChevronDown, Check } from 'lucide-react';
2
- import Link from 'next/link';
2
+ import Link5 from 'next/link';
3
3
  import { useState, useRef, useEffect, useId } from 'react';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import { useOcSession } from '@orangecheck/auth-client';
@@ -137,30 +137,30 @@ function EcosystemSwitcher({
137
137
  children: [
138
138
  /* @__PURE__ */ jsx("div", { className: "label-mono text-primary border-b px-4 py-2", children: "\xA7 the family" }),
139
139
  /* @__PURE__ */ jsx("ul", { className: "py-1", children: ENTRIES.map((e) => {
140
- const isActive = e.slug === current;
140
+ const isActive2 = e.slug === current;
141
141
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
142
- Link,
142
+ Link5,
143
143
  {
144
144
  href: e.href,
145
145
  onClick: () => setOpen(false),
146
- "aria-current": isActive ? "page" : void 0,
147
- className: "group flex items-baseline gap-3 px-4 py-2 transition-colors " + (isActive ? "bg-primary/5" : "hover:bg-muted"),
146
+ "aria-current": isActive2 ? "page" : void 0,
147
+ className: "group flex items-baseline gap-3 px-4 py-2 transition-colors " + (isActive2 ? "bg-primary/5" : "hover:bg-muted"),
148
148
  children: [
149
149
  /* @__PURE__ */ jsx(
150
150
  "span",
151
151
  {
152
- className: "font-display flex-1 text-[12px] font-semibold tracking-tight " + (isActive ? "text-primary" : "text-foreground group-hover:text-primary transition-colors"),
152
+ className: "font-display flex-1 text-[12px] font-semibold tracking-tight " + (isActive2 ? "text-primary" : "text-foreground group-hover:text-primary transition-colors"),
153
153
  children: e.label
154
154
  }
155
155
  ),
156
156
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-mono text-[10px] tracking-wider uppercase", children: e.sub }),
157
- isActive && /* @__PURE__ */ jsx(Check, { className: "text-primary h-3 w-3" })
157
+ isActive2 && /* @__PURE__ */ jsx(Check, { className: "text-primary h-3 w-3" })
158
158
  ]
159
159
  }
160
160
  ) }, e.slug);
161
161
  }) }),
162
162
  /* @__PURE__ */ jsx("div", { className: "border-t px-4 py-2 font-mono text-[10px] tracking-widest uppercase", children: /* @__PURE__ */ jsx(
163
- Link,
163
+ Link5,
164
164
  {
165
165
  href: "https://docs.ochk.io",
166
166
  onClick: () => setOpen(false),
@@ -415,31 +415,31 @@ function OcLogoDropdown({
415
415
  }
416
416
  ),
417
417
  /* @__PURE__ */ jsx("ul", { role: "none", className: "pb-1", children: sectionEntries.map((e) => {
418
- const isActive = e.slug === current;
419
- const href = isActive ? homeHref : e.origin;
418
+ const isActive2 = e.slug === current;
419
+ const href = isActive2 ? homeHref : e.origin;
420
420
  return /* @__PURE__ */ jsx("li", { role: "none", children: /* @__PURE__ */ jsxs(
421
- Link,
421
+ Link5,
422
422
  {
423
423
  href,
424
424
  role: "menuitem",
425
425
  onClick: () => setOpen(false),
426
- "aria-current": isActive ? "page" : void 0,
427
- className: "group flex items-center gap-2 px-4 py-2 transition-colors " + (isActive ? "bg-primary/8 border-primary -ml-px border-l-2" : "hover:bg-muted -ml-px border-l-2 border-transparent"),
428
- "data-oc-logo-dropdown-item": isActive ? "current" : "sibling",
426
+ "aria-current": isActive2 ? "page" : void 0,
427
+ className: "group flex items-center gap-2 px-4 py-2 transition-colors " + (isActive2 ? "bg-primary/8 border-primary -ml-px border-l-2" : "hover:bg-muted -ml-px border-l-2 border-transparent"),
428
+ "data-oc-logo-dropdown-item": isActive2 ? "current" : "sibling",
429
429
  "data-oc-entry-category": e.category,
430
430
  children: [
431
431
  /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col leading-tight", children: [
432
432
  /* @__PURE__ */ jsx(
433
433
  "span",
434
434
  {
435
- className: "font-display text-[12px] font-semibold tracking-tight " + (isActive ? "text-primary" : "text-foreground group-hover:text-primary transition-colors"),
435
+ className: "font-display text-[12px] font-semibold tracking-tight " + (isActive2 ? "text-primary" : "text-foreground group-hover:text-primary transition-colors"),
436
436
  children: e.label
437
437
  }
438
438
  ),
439
439
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground mt-0.5 font-mono text-[10px] tracking-wide", children: e.sub })
440
440
  ] }),
441
441
  /* @__PURE__ */ jsx(MenuCategoryChip, { category: e.category }),
442
- isActive ? /* @__PURE__ */ jsxs("span", { className: "text-primary inline-flex shrink-0 items-center gap-1 font-mono text-[10px] tracking-widest uppercase", children: [
442
+ isActive2 ? /* @__PURE__ */ jsxs("span", { className: "text-primary inline-flex shrink-0 items-center gap-1 font-mono text-[10px] tracking-widest uppercase", children: [
443
443
  "home",
444
444
  /* @__PURE__ */ jsx(Check, { className: "h-3 w-3" })
445
445
  ] }) : null
@@ -450,7 +450,7 @@ function OcLogoDropdown({
450
450
  ] }, category);
451
451
  }) }),
452
452
  /* @__PURE__ */ jsx("div", { className: "border-t px-4 py-2 font-mono text-[10px] tracking-widest uppercase", children: /* @__PURE__ */ jsx(
453
- Link,
453
+ Link5,
454
454
  {
455
455
  href: "https://docs.ochk.io",
456
456
  onClick: () => setOpen(false),
@@ -492,6 +492,8 @@ function OcAccountMenuView({
492
492
  signInUrl = "/signin",
493
493
  signInLabel = "sign in",
494
494
  menuItems,
495
+ primaryNavLinks,
496
+ secondaryNavLinks,
495
497
  showFamilyDashboard,
496
498
  build,
497
499
  siteState,
@@ -613,7 +615,16 @@ function OcAccountMenuView({
613
615
  /* @__PURE__ */ jsx("div", { className: "text-foreground/90 font-mono text-[11px] leading-tight break-all", children: account.didOc }),
614
616
  displayName ? /* @__PURE__ */ jsx("div", { className: "text-muted-foreground/80 mt-1 font-mono text-[10px] tracking-wide", children: displayName }) : null
615
617
  ] }),
616
- /* @__PURE__ */ jsxs("div", { className: "p-1", children: [
618
+ primaryNavLinks && primaryNavLinks.length > 0 ? /* @__PURE__ */ jsx(
619
+ PopoverSection,
620
+ {
621
+ label: "navigate",
622
+ items: primaryNavLinks,
623
+ onItemClick: () => setOpen(false)
624
+ }
625
+ ) : null,
626
+ /* @__PURE__ */ jsxs("div", { className: "p-1", "data-oc-account-menu-section": "account", children: [
627
+ primaryNavLinks && primaryNavLinks.length > 0 ? /* @__PURE__ */ jsx("div", { className: "text-muted-foreground/60 px-3 pb-1 pt-2 font-mono text-[10px] tracking-widest uppercase", children: "\xA7 account" }) : null,
617
628
  menuItems?.map((item) => {
618
629
  const onClick = () => setOpen(false);
619
630
  const cls = "hover:bg-accent flex items-center gap-2 px-3 py-2 font-mono text-[11px] tracking-wide transition-colors";
@@ -643,7 +654,7 @@ function OcAccountMenuView({
643
654
  },
644
655
  item.href
645
656
  ) : /* @__PURE__ */ jsx(
646
- Link,
657
+ Link5,
647
658
  {
648
659
  href: item.href,
649
660
  onClick,
@@ -699,6 +710,15 @@ function OcAccountMenuView({
699
710
  }
700
711
  )
701
712
  ] }),
713
+ secondaryNavLinks && secondaryNavLinks.length > 0 ? /* @__PURE__ */ jsx(
714
+ PopoverSection,
715
+ {
716
+ label: "more",
717
+ items: secondaryNavLinks,
718
+ onItemClick: () => setOpen(false),
719
+ bordered: true
720
+ }
721
+ ) : null,
702
722
  build ? /* @__PURE__ */ jsx(BuildFooter, { hostname, build, state: siteState }) : null
703
723
  ]
704
724
  }
@@ -707,6 +727,66 @@ function OcAccountMenuView({
707
727
  }
708
728
  );
709
729
  }
730
+ function PopoverSection({
731
+ label,
732
+ items,
733
+ onItemClick,
734
+ bordered
735
+ }) {
736
+ const cls = "hover:bg-accent flex items-center gap-2 px-3 py-2 font-mono text-[11px] tracking-wide transition-colors";
737
+ return /* @__PURE__ */ jsxs(
738
+ "div",
739
+ {
740
+ className: "p-1 " + (bordered ? "border-border border-t" : ""),
741
+ "data-oc-account-menu-section": label,
742
+ children: [
743
+ /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground/60 px-3 pt-2 pb-1 font-mono text-[10px] tracking-widest uppercase", children: [
744
+ "\xA7 ",
745
+ label
746
+ ] }),
747
+ items.map((item) => {
748
+ const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
749
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", "aria-hidden": true, children: "\u2192" }),
750
+ /* @__PURE__ */ jsx("span", { className: "flex-1", children: item.label }),
751
+ item.external ? /* @__PURE__ */ jsx(
752
+ "span",
753
+ {
754
+ className: "text-muted-foreground/70 text-[10px]",
755
+ "aria-hidden": true,
756
+ children: "\u2197"
757
+ }
758
+ ) : null
759
+ ] });
760
+ return item.external ? /* @__PURE__ */ jsx(
761
+ "a",
762
+ {
763
+ href: item.href,
764
+ target: "_blank",
765
+ rel: "noreferrer",
766
+ onClick: onItemClick,
767
+ role: "menuitem",
768
+ className: cls,
769
+ "data-oc-account-menu-item": "",
770
+ children: inner
771
+ },
772
+ item.href
773
+ ) : /* @__PURE__ */ jsx(
774
+ Link5,
775
+ {
776
+ href: item.href,
777
+ onClick: onItemClick,
778
+ role: "menuitem",
779
+ className: cls,
780
+ "data-oc-account-menu-item": "",
781
+ children: inner
782
+ },
783
+ item.href
784
+ );
785
+ })
786
+ ]
787
+ }
788
+ );
789
+ }
710
790
  function BuildFooter({
711
791
  hostname,
712
792
  build,
@@ -748,6 +828,319 @@ function BuildFooter({
748
828
  }
749
829
  );
750
830
  }
831
+ function isActive(pathname, link) {
832
+ if (link.external) return false;
833
+ if (link.matchExact) return pathname === link.href;
834
+ if (link.href === "/") return pathname === "/";
835
+ return pathname === link.href || pathname.startsWith(link.href + "/");
836
+ }
837
+ function OcPrimaryNav({ activePath, links, className }) {
838
+ return /* @__PURE__ */ jsx(
839
+ "nav",
840
+ {
841
+ "aria-label": "primary",
842
+ className: "flex min-w-0 items-center justify-start overflow-x-auto gap-0.5 sm:gap-1 whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden " + (className ?? ""),
843
+ "data-oc-primary-nav": "",
844
+ children: links.map((link) => {
845
+ const active = isActive(activePath, link);
846
+ const className2 = "font-display relative shrink-0 px-2 py-1 sm:px-3 text-[11px] sm:text-[12px] font-semibold tracking-wider uppercase transition-colors " + (active ? 'text-primary after:bg-primary after:absolute after:inset-x-2 after:-bottom-[13px] after:h-px after:content-[""]' : "text-muted-foreground hover:text-foreground");
847
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [
848
+ link.label,
849
+ link.external ? /* @__PURE__ */ jsx(
850
+ "span",
851
+ {
852
+ "aria-hidden": true,
853
+ className: "text-muted-foreground/60 ml-1 text-[9px]",
854
+ children: "\u2197"
855
+ }
856
+ ) : null
857
+ ] });
858
+ return link.external ? /* @__PURE__ */ jsx(
859
+ "a",
860
+ {
861
+ href: link.href,
862
+ target: "_blank",
863
+ rel: "noreferrer",
864
+ className: className2,
865
+ "data-oc-primary-nav-item": "",
866
+ children: content
867
+ },
868
+ link.href
869
+ ) : /* @__PURE__ */ jsx(
870
+ Link5,
871
+ {
872
+ href: link.href,
873
+ "aria-current": active ? "page" : void 0,
874
+ className: className2,
875
+ "data-oc-primary-nav-item": active ? "active" : "sibling",
876
+ children: content
877
+ },
878
+ link.href
879
+ );
880
+ })
881
+ }
882
+ );
883
+ }
884
+ function OcDashboardShell({
885
+ rootHref = "/dashboard",
886
+ siteLabel,
887
+ tools,
888
+ active,
889
+ eyebrow,
890
+ title,
891
+ description,
892
+ children,
893
+ className
894
+ }) {
895
+ const [drawerOpen, setDrawerOpen] = useState(false);
896
+ useEffect(() => {
897
+ if (!drawerOpen) return;
898
+ function onKey(e) {
899
+ if (e.key === "Escape") setDrawerOpen(false);
900
+ }
901
+ document.addEventListener("keydown", onKey);
902
+ const prevOverflow = document.body.style.overflow;
903
+ document.body.style.overflow = "hidden";
904
+ return () => {
905
+ document.removeEventListener("keydown", onKey);
906
+ document.body.style.overflow = prevOverflow;
907
+ };
908
+ }, [drawerOpen]);
909
+ const hasHeader = Boolean(title) || Boolean(eyebrow);
910
+ return /* @__PURE__ */ jsxs(
911
+ "div",
912
+ {
913
+ className: "container " + (className ?? ""),
914
+ "data-oc-dashboard-shell": "",
915
+ children: [
916
+ /* @__PURE__ */ jsxs("div", { className: "flex min-h-[calc(100vh-3rem)] flex-col md:flex-row md:gap-8", children: [
917
+ /* @__PURE__ */ jsx(
918
+ Sidebar,
919
+ {
920
+ rootHref,
921
+ siteLabel,
922
+ tools,
923
+ active,
924
+ variant: "desktop"
925
+ }
926
+ ),
927
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
928
+ /* @__PURE__ */ jsxs("div", { className: "border-border flex items-center justify-between border-b py-3 md:hidden", children: [
929
+ /* @__PURE__ */ jsxs(
930
+ "button",
931
+ {
932
+ type: "button",
933
+ onClick: () => setDrawerOpen(true),
934
+ className: "text-muted-foreground hover:text-foreground inline-flex h-9 items-center gap-2 px-1 font-mono text-[11px] tracking-widest uppercase transition-colors",
935
+ "aria-label": "open dashboard tools",
936
+ "aria-expanded": drawerOpen,
937
+ "data-oc-dashboard-mobile-trigger": "",
938
+ children: [
939
+ /* @__PURE__ */ jsx("span", { className: "text-[14px] leading-none", children: "\u2261" }),
940
+ /* @__PURE__ */ jsx("span", { children: "tools" })
941
+ ]
942
+ }
943
+ ),
944
+ /* @__PURE__ */ jsx(
945
+ Link5,
946
+ {
947
+ href: rootHref,
948
+ className: "text-primary font-mono text-[11px] tracking-widest uppercase",
949
+ children: "\xA7 dashboard"
950
+ }
951
+ )
952
+ ] }),
953
+ /* @__PURE__ */ jsxs("div", { className: "pt-6 md:pt-3", children: [
954
+ hasHeader && /* @__PURE__ */ jsxs("div", { className: "max-w-3xl", children: [
955
+ eyebrow ? /* @__PURE__ */ jsx("div", { className: "label-mono text-primary mb-3 font-mono text-[10px] tracking-widest uppercase", children: eyebrow }) : null,
956
+ title ? /* @__PURE__ */ jsx("h1", { className: "font-display text-2xl font-bold tracking-tight sm:text-3xl", children: title }) : null,
957
+ description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-3 max-w-[64ch] text-sm leading-relaxed", children: description }) : null
958
+ ] }),
959
+ /* @__PURE__ */ jsx("div", { className: hasHeader ? "mt-8 pb-12" : "pb-12", children })
960
+ ] })
961
+ ] })
962
+ ] }),
963
+ drawerOpen ? /* @__PURE__ */ jsxs(
964
+ "div",
965
+ {
966
+ className: "fixed inset-0 z-50 md:hidden",
967
+ role: "dialog",
968
+ "aria-modal": "true",
969
+ "aria-label": "dashboard tools",
970
+ "data-oc-dashboard-drawer": "",
971
+ children: [
972
+ /* @__PURE__ */ jsx(
973
+ "div",
974
+ {
975
+ className: "absolute inset-0 bg-background/80 backdrop-blur-sm",
976
+ onClick: () => setDrawerOpen(false),
977
+ "aria-hidden": true
978
+ }
979
+ ),
980
+ /* @__PURE__ */ jsx("div", { className: "bg-background absolute top-0 left-0 h-full w-[85vw] max-w-sm border-r shadow-xl", children: /* @__PURE__ */ jsx(
981
+ Sidebar,
982
+ {
983
+ rootHref,
984
+ siteLabel,
985
+ tools,
986
+ active,
987
+ variant: "drawer",
988
+ onClose: () => setDrawerOpen(false)
989
+ }
990
+ ) })
991
+ ]
992
+ }
993
+ ) : null
994
+ ]
995
+ }
996
+ );
997
+ }
998
+ function Sidebar({
999
+ rootHref,
1000
+ siteLabel,
1001
+ tools,
1002
+ active,
1003
+ variant,
1004
+ onClose
1005
+ }) {
1006
+ const isDrawer = variant === "drawer";
1007
+ return /* @__PURE__ */ jsxs(
1008
+ "aside",
1009
+ {
1010
+ className: isDrawer ? "flex h-full w-full flex-col bg-card" : "hidden md:sticky md:top-4 md:flex md:h-[calc(100vh-2rem)] md:w-56 md:shrink-0 md:flex-col md:self-start md:overflow-y-auto md:rounded md:border md:bg-card/40 lg:w-60",
1011
+ "aria-label": "dashboard tools",
1012
+ "data-oc-dashboard-sidebar": variant,
1013
+ children: [
1014
+ /* @__PURE__ */ jsxs("div", { className: "border-b px-4 py-3", children: [
1015
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1016
+ /* @__PURE__ */ jsx(
1017
+ Link5,
1018
+ {
1019
+ href: rootHref,
1020
+ onClick: onClose,
1021
+ className: "hover:text-foreground font-display text-sm font-bold tracking-tight",
1022
+ children: "\xA7 dashboard"
1023
+ }
1024
+ ),
1025
+ isDrawer ? /* @__PURE__ */ jsx(
1026
+ "button",
1027
+ {
1028
+ type: "button",
1029
+ onClick: onClose,
1030
+ className: "text-muted-foreground hover:text-foreground -mr-2 inline-flex h-8 w-8 items-center justify-center rounded font-mono text-lg",
1031
+ "aria-label": "close navigation",
1032
+ children: "\xD7"
1033
+ }
1034
+ ) : null
1035
+ ] }),
1036
+ siteLabel ? /* @__PURE__ */ jsx("div", { className: "text-muted-foreground/70 mt-1 font-mono text-[10px] tracking-widest uppercase", children: siteLabel }) : null
1037
+ ] }),
1038
+ /* @__PURE__ */ jsxs("nav", { className: "flex-1 overflow-y-auto px-2 py-3", children: [
1039
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground/60 mb-1 px-3 font-mono text-[10px] tracking-widest uppercase", children: "\xA7 tools" }),
1040
+ /* @__PURE__ */ jsx("ul", { className: "space-y-0.5", children: tools.map((tool) => {
1041
+ const isActive2 = tool.id === active;
1042
+ const innerCls = "flex items-baseline gap-2 rounded px-3 py-1.5 text-[12.5px] transition-colors " + (isActive2 ? "bg-primary/10 text-primary font-semibold" : "text-muted-foreground hover:text-foreground hover:bg-muted/30");
1043
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [
1044
+ tool.icon ? /* @__PURE__ */ jsx(
1045
+ "span",
1046
+ {
1047
+ className: "shrink-0 font-mono text-[11px] " + (isActive2 ? "text-primary" : "text-muted-foreground/70"),
1048
+ "aria-hidden": true,
1049
+ children: tool.icon
1050
+ }
1051
+ ) : null,
1052
+ /* @__PURE__ */ jsxs("span", { className: "flex-1 leading-tight", children: [
1053
+ /* @__PURE__ */ jsx("span", { children: tool.label }),
1054
+ tool.tagline ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/60 mt-0.5 block font-mono text-[10px] tracking-wide normal-case", children: tool.tagline }) : null
1055
+ ] }),
1056
+ tool.external ? /* @__PURE__ */ jsx(
1057
+ "span",
1058
+ {
1059
+ className: "text-muted-foreground/60 text-[10px]",
1060
+ "aria-hidden": true,
1061
+ children: "\u2197"
1062
+ }
1063
+ ) : null
1064
+ ] });
1065
+ return /* @__PURE__ */ jsx("li", { children: tool.external ? /* @__PURE__ */ jsx(
1066
+ "a",
1067
+ {
1068
+ href: tool.href,
1069
+ target: "_blank",
1070
+ rel: "noreferrer",
1071
+ onClick: onClose,
1072
+ className: innerCls,
1073
+ "data-oc-dashboard-tool": isActive2 ? "active" : "sibling",
1074
+ children: content
1075
+ }
1076
+ ) : /* @__PURE__ */ jsx(
1077
+ Link5,
1078
+ {
1079
+ href: tool.href,
1080
+ onClick: onClose,
1081
+ "aria-current": isActive2 ? "page" : void 0,
1082
+ className: innerCls,
1083
+ "data-oc-dashboard-tool": isActive2 ? "active" : "sibling",
1084
+ children: content
1085
+ }
1086
+ ) }, tool.id);
1087
+ }) })
1088
+ ] })
1089
+ ]
1090
+ }
1091
+ );
1092
+ }
1093
+ function OcDashboardHub({ tools, className }) {
1094
+ return /* @__PURE__ */ jsx(
1095
+ "ul",
1096
+ {
1097
+ className: "grid gap-px border-t border-l sm:grid-cols-2 " + (className ?? ""),
1098
+ "data-oc-dashboard-hub": "",
1099
+ children: tools.map((tool) => {
1100
+ const content = /* @__PURE__ */ jsxs("span", { className: "flex h-full flex-col gap-3 p-5 transition-colors", children: [
1101
+ /* @__PURE__ */ jsxs("span", { className: "flex items-baseline gap-3", children: [
1102
+ tool.icon ? /* @__PURE__ */ jsx(
1103
+ "span",
1104
+ {
1105
+ className: "text-primary font-mono text-[13px]",
1106
+ "aria-hidden": true,
1107
+ children: tool.icon
1108
+ }
1109
+ ) : null,
1110
+ /* @__PURE__ */ jsx("span", { className: "font-display text-foreground text-base font-bold tracking-tight", children: tool.label }),
1111
+ tool.external ? /* @__PURE__ */ jsx(
1112
+ "span",
1113
+ {
1114
+ className: "text-muted-foreground/60 ml-auto text-xs",
1115
+ "aria-hidden": true,
1116
+ children: "\u2197"
1117
+ }
1118
+ ) : /* @__PURE__ */ jsx(
1119
+ "span",
1120
+ {
1121
+ className: "text-muted-foreground/60 ml-auto text-xs",
1122
+ "aria-hidden": true,
1123
+ children: "\u2192"
1124
+ }
1125
+ )
1126
+ ] }),
1127
+ tool.tagline ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm leading-relaxed", children: tool.tagline }) : null
1128
+ ] });
1129
+ const cls = "hover:bg-muted/30 group block border-r border-b transition-colors";
1130
+ return /* @__PURE__ */ jsx("li", { children: tool.external ? /* @__PURE__ */ jsx(
1131
+ "a",
1132
+ {
1133
+ href: tool.href,
1134
+ target: "_blank",
1135
+ rel: "noreferrer",
1136
+ className: cls,
1137
+ children: content
1138
+ }
1139
+ ) : /* @__PURE__ */ jsx(Link5, { href: tool.href, className: cls, children: content }) }, tool.id);
1140
+ })
1141
+ }
1142
+ );
1143
+ }
751
1144
  function AppShell({
752
1145
  eyebrow,
753
1146
  title,
@@ -831,7 +1224,7 @@ function CtaLink({
831
1224
  if (external) {
832
1225
  return /* @__PURE__ */ jsx("a", { href, target: "_blank", rel: "noreferrer", className: cls, children: text });
833
1226
  }
834
- return /* @__PURE__ */ jsx(Link, { href, className: cls, children: text });
1227
+ return /* @__PURE__ */ jsx(Link5, { href, className: cls, children: text });
835
1228
  }
836
1229
  var TONE_CLASS3 = {
837
1230
  default: "",
@@ -871,6 +1264,6 @@ function StatTile({ children, ...item }) {
871
1264
  ] });
872
1265
  }
873
1266
 
874
- export { AppShell, EcosystemSwitcher, EmptyState, FAMILY_PROPERTIES, OcAccountMenu, OcAccountMenuView, OcLogoDropdown, SITE_STATE_LABEL, SectionHeader, StatGrid, StatTile, findFamilyProperty };
1267
+ export { AppShell, EcosystemSwitcher, EmptyState, FAMILY_PROPERTIES, OcAccountMenu, OcAccountMenuView, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, SectionHeader, StatGrid, StatTile, findFamilyProperty };
875
1268
  //# sourceMappingURL=index.mjs.map
876
1269
  //# sourceMappingURL=index.mjs.map