@designa8/vibedesign-openai-internal-v1-2-176b 0.0.2 → 0.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @designa8/vibedesign-openai-internal-v1-2-176b
2
2
 
3
- Complete design system generated by Atoms Design, version **0.0.2**.
3
+ Complete design system generated by Atoms Design, version **0.0.4**.
4
4
  Tokens, atoms, molecules, organisms, and templates — import from the package root;
5
5
  never hardcode visual values in consumer code.
6
6
 
package/dist/index.cjs CHANGED
@@ -5654,7 +5654,8 @@ var cn49 = (...parts) => parts.filter(Boolean).join(" ");
5654
5654
  var widths = {
5655
5655
  sm: "sm:w-[var(--container-modal-sm,400px)]",
5656
5656
  md: "sm:w-[var(--container-modal,480px)]",
5657
- lg: "sm:w-[var(--container-modal-lg,640px)]"
5657
+ lg: "sm:w-[var(--container-modal-lg,640px)]",
5658
+ xl: "sm:w-[var(--container-modal-xl,640px)]"
5658
5659
  };
5659
5660
  var Modal = React55.forwardRef(
5660
5661
  ({
@@ -5666,6 +5667,8 @@ var Modal = React55.forwardRef(
5666
5667
  tone = "default",
5667
5668
  footer,
5668
5669
  size = "md",
5670
+ placement = "center",
5671
+ hideHeader = false,
5669
5672
  closeOnScrimClick = true,
5670
5673
  hideClose = false,
5671
5674
  closeLabel = "Close",
@@ -5711,13 +5714,21 @@ var Modal = React55.forwardRef(
5711
5714
  };
5712
5715
  if (!mounted) return null;
5713
5716
  const state = open ? "open" : "closed";
5717
+ const showHeader = !hideHeader;
5718
+ const hasVisibleTitle = showHeader && Boolean(title);
5719
+ const hasVisibleDescription = showHeader && Boolean(description);
5720
+ const isTop = placement === "top";
5714
5721
  return (0, import_react_dom6.createPortal)(
5715
5722
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5716
5723
  "div",
5717
5724
  {
5718
5725
  "data-state": state,
5726
+ "data-placement": placement,
5719
5727
  "aria-hidden": !open,
5720
- className: "fixed inset-0 flex items-end justify-center p-base text-ink transition-[visibility] duration-200 data-[state=closed]:pointer-events-none data-[state=closed]:invisible sm:items-center",
5728
+ className: cn49(
5729
+ "fixed inset-0 flex justify-center p-base text-ink transition-[visibility] duration-200 data-[state=closed]:pointer-events-none data-[state=closed]:invisible",
5730
+ isTop ? "items-start pt-[12dvh]" : "items-end sm:items-center"
5731
+ ),
5721
5732
  style: { zIndex: "var(--z-modal, 1200)" },
5722
5733
  children: [
5723
5734
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
@@ -5735,13 +5746,15 @@ var Modal = React55.forwardRef(
5735
5746
  ref: setRefs,
5736
5747
  role: "dialog",
5737
5748
  "aria-modal": "true",
5738
- "aria-labelledby": title ? titleId : void 0,
5739
- "aria-label": title ? void 0 : ariaLabel,
5740
- "aria-describedby": description ? descId : void 0,
5749
+ "aria-labelledby": hasVisibleTitle ? titleId : void 0,
5750
+ "aria-label": hasVisibleTitle ? void 0 : ariaLabel,
5751
+ "aria-describedby": hasVisibleDescription ? descId : void 0,
5741
5752
  tabIndex: -1,
5742
5753
  "data-state": state,
5754
+ "data-placement": placement,
5743
5755
  className: cn49(
5744
- "relative flex max-h-[calc(100dvh-2rem)] w-full flex-col overflow-hidden rounded-lg border border-hairline bg-canvas text-ink shadow-modal",
5756
+ "relative flex w-full flex-col overflow-hidden rounded-lg border border-hairline bg-canvas text-ink shadow-modal",
5757
+ isTop ? "max-h-[calc(88dvh-2rem)]" : "max-h-[calc(100dvh-2rem)]",
5745
5758
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue",
5746
5759
  "transition duration-200 ease-out",
5747
5760
  "data-[state=open]:translate-y-0 data-[state=open]:scale-100 data-[state=open]:opacity-100",
@@ -5751,7 +5764,7 @@ var Modal = React55.forwardRef(
5751
5764
  ),
5752
5765
  ...props,
5753
5766
  children: [
5754
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex shrink-0 items-start justify-between gap-base px-lg pt-lg", children: [
5767
+ showHeader ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex shrink-0 items-start justify-between gap-base px-lg pt-lg", children: [
5755
5768
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex min-w-0 flex-col gap-sm", children: [
5756
5769
  icon ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5757
5770
  "span",
@@ -5780,8 +5793,17 @@ var Modal = React55.forwardRef(
5780
5793
  onClick: () => onOpenChange(false)
5781
5794
  }
5782
5795
  ) : null
5783
- ] }),
5784
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-lg pt-base pb-lg", children }),
5796
+ ] }) : null,
5797
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5798
+ "div",
5799
+ {
5800
+ className: cn49(
5801
+ "min-h-0 flex-1 overflow-y-auto overscroll-contain px-lg pb-lg",
5802
+ showHeader && "pt-base"
5803
+ ),
5804
+ children
5805
+ }
5806
+ ),
5785
5807
  footer ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex shrink-0 items-center justify-end gap-sm px-lg pb-lg", children: footer }) : null
5786
5808
  ]
5787
5809
  }
@@ -7588,6 +7610,7 @@ var defaultSidebarPromo = {
7588
7610
  icon: "zap"
7589
7611
  };
7590
7612
  var focusRing2 = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
7613
+ var countLabel = (count) => count > 9 ? "9+" : String(count);
7591
7614
  var SidebarDesktop = React72.forwardRef(
7592
7615
  ({
7593
7616
  brandName = "AI Platform",
@@ -7598,8 +7621,12 @@ var SidebarDesktop = React72.forwardRef(
7598
7621
  sections = defaultSidebarSections,
7599
7622
  promo = defaultSidebarPromo,
7600
7623
  userName = "Alex Smith",
7624
+ userAvatarSrc,
7625
+ onUserClick,
7626
+ notificationCount = 0,
7601
7627
  onSettingsClick,
7602
7628
  onNotificationsClick,
7629
+ onNavigate,
7603
7630
  folded: foldedProp,
7604
7631
  defaultFolded = false,
7605
7632
  onFoldedChange,
@@ -7616,6 +7643,9 @@ var SidebarDesktop = React72.forwardRef(
7616
7643
  onFoldedChange?.(v);
7617
7644
  };
7618
7645
  const currentOrg = organizations.find((o) => o.value === org);
7646
+ const unread = notificationCount > 0;
7647
+ const bellLabel = unread ? `Notifications, ${notificationCount} unread` : "Notifications";
7648
+ const promoItem = promo ? { label: promo.title, icon: promo.icon ?? "zap", href: promo.href } : null;
7619
7649
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7620
7650
  "aside",
7621
7651
  {
@@ -7668,25 +7698,36 @@ var SidebarDesktop = React72.forwardRef(
7668
7698
  ) }),
7669
7699
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("nav", { id: navId, "aria-label": "Main", className: "min-h-0 flex-1 overflow-y-auto overscroll-contain pb-sm", children: sections.map((section, si) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn63("flex flex-col gap-xxs", si > 0 && "mt-base"), children: [
7670
7700
  section.label ? folded ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "sr-only", children: section.label }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "px-base pb-xxs text-caption text-muted", children: section.label }) : null,
7671
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ul", { className: cn63("flex flex-col gap-xxs", folded ? "items-center" : "px-sm"), children: section.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("li", { className: folded ? void 0 : "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7672
- "a",
7673
- {
7674
- href: item.href,
7675
- "aria-current": item.active ? "page" : void 0,
7676
- "aria-label": folded ? item.label : void 0,
7677
- title: folded ? item.label : void 0,
7678
- className: cn63(
7679
- "flex cursor-pointer items-center rounded-sm text-body-md transition-colors duration-150 ease-out",
7680
- focusRing2,
7681
- folded ? "size-9 justify-center" : "h-9 w-full gap-sm px-sm",
7682
- item.active ? "bg-surface-strong text-ink" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
7683
- ),
7684
- children: [
7685
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { name: item.icon, size: 18, className: "text-body" }),
7686
- folded ? null : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "truncate", children: item.label })
7687
- ]
7688
- }
7689
- ) }, item.label)) })
7701
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("ul", { className: cn63("flex flex-col gap-xxs", folded ? "items-center" : "px-sm"), children: section.items.map((item) => {
7702
+ const hasBadge = item.badge !== void 0 && item.badge !== null && item.badge !== "";
7703
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("li", { className: folded ? void 0 : "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7704
+ "a",
7705
+ {
7706
+ href: item.href,
7707
+ "aria-current": item.active ? "page" : void 0,
7708
+ "aria-label": folded ? item.label : void 0,
7709
+ title: folded ? item.label : void 0,
7710
+ onClick: onNavigate ? (event) => onNavigate(item, event) : void 0,
7711
+ className: cn63(
7712
+ "flex cursor-pointer items-center rounded-sm text-body-md transition-colors duration-150 ease-out",
7713
+ focusRing2,
7714
+ folded ? "relative size-9 justify-center" : "h-9 w-full gap-sm px-sm",
7715
+ item.active ? "bg-surface-strong text-ink" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
7716
+ ),
7717
+ children: [
7718
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { name: item.icon, size: 18, className: "text-body" }),
7719
+ folded ? null : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: hasBadge ? "min-w-0 flex-1 truncate" : "truncate", children: item.label }),
7720
+ hasBadge ? folded ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7721
+ "span",
7722
+ {
7723
+ "aria-hidden": "true",
7724
+ className: "absolute right-xs top-xs h-2 w-2 rounded-full bg-primary"
7725
+ }
7726
+ ) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Badge, { size: "sm", className: "ml-auto", children: item.badge }) : null
7727
+ ]
7728
+ }
7729
+ ) }, item.label);
7730
+ }) })
7690
7731
  ] }, section.label ?? si)) }),
7691
7732
  /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn63("flex shrink-0 flex-col gap-sm border-t border-hairline-soft py-sm", folded ? "items-center" : "px-sm"), children: [
7692
7733
  promo ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
@@ -7695,6 +7736,7 @@ var SidebarDesktop = React72.forwardRef(
7695
7736
  href: promo.href,
7696
7737
  "aria-label": folded ? promo.title : void 0,
7697
7738
  title: folded ? promo.title : void 0,
7739
+ onClick: onNavigate && promoItem ? (event) => onNavigate(promoItem, event) : void 0,
7698
7740
  className: cn63(
7699
7741
  "group flex cursor-pointer items-center rounded-md transition-colors duration-150 ease-out hover:bg-surface-soft active:bg-surface-strong",
7700
7742
  focusRing2,
@@ -7720,14 +7762,60 @@ var SidebarDesktop = React72.forwardRef(
7720
7762
  }
7721
7763
  ) : null,
7722
7764
  /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn63("flex items-center", folded ? "flex-col gap-xs" : "justify-between gap-sm pl-xs"), children: [
7723
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "flex min-w-0 items-center gap-sm", children: [
7724
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Avatar, { name: userName, initials: userName.charAt(0), size: "md" }),
7765
+ onUserClick ? folded ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7766
+ Button,
7767
+ {
7768
+ variant: "ghost",
7769
+ size: "md",
7770
+ iconOnly: true,
7771
+ "aria-label": `Account: ${userName}`,
7772
+ onClick: onUserClick,
7773
+ className: "h-9 w-9",
7774
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Avatar, { name: userName, initials: userName.charAt(0), src: userAvatarSrc, size: "md" })
7775
+ }
7776
+ ) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
7777
+ Button,
7778
+ {
7779
+ variant: "ghost",
7780
+ size: "md",
7781
+ "aria-label": `Account: ${userName}`,
7782
+ onClick: onUserClick,
7783
+ className: "min-w-0 flex-1 justify-start gap-sm px-xs",
7784
+ children: [
7785
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Avatar, { name: userName, initials: userName.charAt(0), src: userAvatarSrc, size: "md" }),
7786
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "min-w-0 truncate text-body-md text-ink", children: userName })
7787
+ ]
7788
+ }
7789
+ ) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "flex min-w-0 items-center gap-sm", children: [
7790
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Avatar, { name: userName, initials: userName.charAt(0), src: userAvatarSrc, size: "md" }),
7725
7791
  folded ? null : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "truncate text-body-md text-ink", children: userName })
7726
7792
  ] }),
7727
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: cn63("flex items-center gap-xxs", folded && "flex-col"), children: [
7728
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IconButton, { icon: "settings", "aria-label": "Settings", variant: "ghost", size: "md", onClick: onSettingsClick }),
7729
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IconButton, { icon: "bell", "aria-label": "Notifications", variant: "ghost", size: "md", onClick: onNotificationsClick })
7730
- ] })
7793
+ onSettingsClick || onNotificationsClick ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: cn63("flex items-center gap-xxs", folded && "flex-col"), children: [
7794
+ onSettingsClick ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IconButton, { icon: "settings", "aria-label": "Settings", variant: "ghost", size: "md", onClick: onSettingsClick }) : null,
7795
+ onNotificationsClick ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "relative inline-flex", children: [
7796
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7797
+ IconButton,
7798
+ {
7799
+ icon: "bell",
7800
+ "aria-label": bellLabel,
7801
+ variant: "ghost",
7802
+ size: "md",
7803
+ onClick: onNotificationsClick
7804
+ }
7805
+ ),
7806
+ unread ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
7807
+ Badge,
7808
+ {
7809
+ "aria-hidden": "true",
7810
+ variant: "solid",
7811
+ tone: "error",
7812
+ size: "sm",
7813
+ className: "pointer-events-none absolute -right-xxs -top-xxs",
7814
+ children: countLabel(notificationCount)
7815
+ }
7816
+ ) : null
7817
+ ] }) : null
7818
+ ] }) : null
7731
7819
  ] })
7732
7820
  ] })
7733
7821
  ]
@@ -7742,6 +7830,7 @@ var React73 = __toESM(require("react"));
7742
7830
  var import_jsx_runtime73 = require("react/jsx-runtime");
7743
7831
  var cn64 = (...parts) => parts.filter(Boolean).join(" ");
7744
7832
  var focusRing3 = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue";
7833
+ var countLabel2 = (count) => count > 9 ? "9+" : String(count);
7745
7834
  var SidebarMobile = React73.forwardRef(
7746
7835
  ({
7747
7836
  brandName = "AI Platform",
@@ -7752,8 +7841,14 @@ var SidebarMobile = React73.forwardRef(
7752
7841
  sections = defaultSidebarSections,
7753
7842
  promo = defaultSidebarPromo,
7754
7843
  userName = "Alex Smith",
7844
+ userAvatarSrc,
7845
+ onUserClick,
7846
+ notificationCount = 0,
7755
7847
  onSettingsClick,
7756
7848
  onNotificationsClick,
7849
+ onNavigate,
7850
+ actions,
7851
+ drawerFooter,
7757
7852
  open: openProp,
7758
7853
  onOpenChange,
7759
7854
  className,
@@ -7764,6 +7859,8 @@ var SidebarMobile = React73.forwardRef(
7764
7859
  const open = openProp ?? inner;
7765
7860
  const org = organization ?? orgInner;
7766
7861
  const navId = React73.useId();
7862
+ const unread = notificationCount > 0;
7863
+ const bellLabel = unread ? `Notifications, ${notificationCount} unread` : "Notifications";
7767
7864
  const setOpen = React73.useCallback(
7768
7865
  (v) => {
7769
7866
  if (openProp === void 0) setInner(v);
@@ -7771,8 +7868,49 @@ var SidebarMobile = React73.forwardRef(
7771
7868
  },
7772
7869
  [openProp, onOpenChange]
7773
7870
  );
7871
+ const handleNavigate = (item, event) => {
7872
+ onNavigate?.(item, event);
7873
+ setOpen(false);
7874
+ };
7875
+ const promoItem = promo ? { label: promo.title, icon: promo.icon ?? "zap", href: promo.href } : null;
7876
+ const defaultFooter = /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex w-full items-center justify-between gap-sm", children: [
7877
+ onUserClick ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7878
+ Button,
7879
+ {
7880
+ variant: "ghost",
7881
+ size: "md",
7882
+ "aria-label": `Account: ${userName}`,
7883
+ onClick: onUserClick,
7884
+ className: "min-w-0 flex-1 justify-start gap-sm px-xs",
7885
+ children: [
7886
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Avatar, { name: userName, initials: userName.charAt(0), src: userAvatarSrc, size: "md" }),
7887
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "min-w-0 truncate text-body-md text-ink", children: userName })
7888
+ ]
7889
+ }
7890
+ ) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "flex min-w-0 items-center gap-sm", children: [
7891
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Avatar, { name: userName, initials: userName.charAt(0), src: userAvatarSrc, size: "md" }),
7892
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate text-body-md text-ink", children: userName })
7893
+ ] }),
7894
+ onSettingsClick || onNotificationsClick ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "flex items-center gap-xxs", children: [
7895
+ onSettingsClick ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IconButton, { icon: "settings", "aria-label": "Settings", variant: "ghost", size: "md", onClick: onSettingsClick }) : null,
7896
+ onNotificationsClick ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "relative inline-flex", children: [
7897
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IconButton, { icon: "bell", "aria-label": bellLabel, variant: "ghost", size: "md", onClick: onNotificationsClick }),
7898
+ unread ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7899
+ Badge,
7900
+ {
7901
+ "aria-hidden": "true",
7902
+ variant: "solid",
7903
+ tone: "error",
7904
+ size: "sm",
7905
+ className: "pointer-events-none absolute -right-xxs -top-xxs",
7906
+ children: countLabel2(notificationCount)
7907
+ }
7908
+ ) : null
7909
+ ] }) : null
7910
+ ] }) : null
7911
+ ] });
7774
7912
  return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("header", { ref, className: cn64("w-full", className), ...props, children: [
7775
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative flex h-14 w-full items-center rounded-lg border border-hairline bg-canvas px-sm text-ink", children: [
7913
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative flex h-14 w-full items-center justify-between rounded-lg border border-hairline bg-canvas px-sm text-ink", children: [
7776
7914
  /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7777
7915
  Button,
7778
7916
  {
@@ -7786,7 +7924,8 @@ var SidebarMobile = React73.forwardRef(
7786
7924
  children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { name: "menu", size: 20 })
7787
7925
  }
7788
7926
  ),
7789
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "pointer-events-none absolute inset-x-0 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "pointer-events-auto", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Logo, { name: brandName, href: brandHref, size: "md" }) }) })
7927
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "pointer-events-none absolute inset-x-0 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "pointer-events-auto", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Logo, { name: brandName, href: brandHref, size: "md" }) }) }),
7928
+ actions ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "relative z-10 flex shrink-0 items-center gap-xs", children: actions }) : null
7790
7929
  ] }),
7791
7930
  /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7792
7931
  Drawer,
@@ -7797,16 +7936,7 @@ var SidebarMobile = React73.forwardRef(
7797
7936
  side: "left",
7798
7937
  title: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Logo, { name: brandName, size: "md" }),
7799
7938
  "aria-label": brandName,
7800
- footer: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex w-full items-center justify-between gap-sm", children: [
7801
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "flex min-w-0 items-center gap-sm", children: [
7802
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Avatar, { name: userName, initials: userName.charAt(0), size: "md" }),
7803
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate text-body-md text-ink", children: userName })
7804
- ] }),
7805
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "flex items-center gap-xxs", children: [
7806
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IconButton, { icon: "settings", "aria-label": "Settings", variant: "ghost", size: "md", onClick: onSettingsClick }),
7807
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IconButton, { icon: "bell", "aria-label": "Notifications", variant: "ghost", size: "md", onClick: onNotificationsClick })
7808
- ] })
7809
- ] }),
7939
+ footer: drawerFooter ?? defaultFooter,
7810
7940
  children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-base", children: [
7811
7941
  /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
7812
7942
  Dropdown,
@@ -7822,28 +7952,33 @@ var SidebarMobile = React73.forwardRef(
7822
7952
  ),
7823
7953
  /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("nav", { "aria-label": "Main", className: "-mx-sm flex flex-col gap-base", children: sections.map((section, si) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-xxs", children: [
7824
7954
  section.label ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "px-sm pb-xxs text-caption text-muted", children: section.label }) : null,
7825
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("ul", { className: "flex flex-col gap-xxs", children: section.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7826
- "a",
7827
- {
7828
- href: item.href,
7829
- "aria-current": item.active ? "page" : void 0,
7830
- onClick: () => setOpen(false),
7831
- className: cn64(
7832
- "flex h-9 w-full cursor-pointer items-center gap-sm rounded-sm px-sm text-body-md transition-colors duration-150 ease-out",
7833
- focusRing3,
7834
- item.active ? "bg-surface-strong text-ink" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
7835
- ),
7836
- children: [
7837
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { name: item.icon, size: 18, className: "text-body" }),
7838
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate", children: item.label })
7839
- ]
7840
- }
7841
- ) }, item.label)) })
7955
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("ul", { className: "flex flex-col gap-xxs", children: section.items.map((item) => {
7956
+ const hasBadge = item.badge !== void 0 && item.badge !== null && item.badge !== "";
7957
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7958
+ "a",
7959
+ {
7960
+ href: item.href,
7961
+ "aria-current": item.active ? "page" : void 0,
7962
+ onClick: (event) => handleNavigate(item, event),
7963
+ className: cn64(
7964
+ "flex h-9 w-full cursor-pointer items-center gap-sm rounded-sm px-sm text-body-md transition-colors duration-150 ease-out",
7965
+ focusRing3,
7966
+ item.active ? "bg-surface-strong text-ink" : "text-ink hover:bg-surface-soft active:bg-surface-strong"
7967
+ ),
7968
+ children: [
7969
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { name: item.icon, size: 18, className: "text-body" }),
7970
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "min-w-0 flex-1 truncate", children: item.label }),
7971
+ hasBadge ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Badge, { size: "sm", className: "ml-auto", children: item.badge }) : null
7972
+ ]
7973
+ }
7974
+ ) }, item.label);
7975
+ }) })
7842
7976
  ] }, section.label ?? si)) }),
7843
- promo ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7977
+ promo && promoItem ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
7844
7978
  "a",
7845
7979
  {
7846
7980
  href: promo.href,
7981
+ onClick: (event) => handleNavigate(promoItem, event),
7847
7982
  className: cn64(
7848
7983
  "group flex cursor-pointer items-center gap-sm rounded-md border border-hairline px-md py-sm transition-colors duration-150 ease-out hover:bg-surface-soft active:bg-surface-strong",
7849
7984
  focusRing3