asta-ui 0.3.0 → 0.4.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.
Files changed (179) hide show
  1. package/dist/accordion.js +1 -1
  2. package/dist/base/card-checkout.js +1 -1
  3. package/dist/base/footer-aui-025.d.ts +2 -0
  4. package/dist/base/footer-aui-025.js +9 -0
  5. package/dist/base/footer-aui-026.d.ts +2 -0
  6. package/dist/base/footer-aui-026.js +9 -0
  7. package/dist/base/footer-aui-027.d.ts +2 -0
  8. package/dist/base/footer-aui-027.js +9 -0
  9. package/dist/base/footer-aui-028.d.ts +2 -0
  10. package/dist/base/footer-aui-028.js +9 -0
  11. package/dist/base/navbar-aui-009.d.ts +2 -0
  12. package/dist/base/navbar-aui-009.js +9 -0
  13. package/dist/base/navbar-aui-010.d.ts +2 -0
  14. package/dist/base/navbar-aui-010.js +9 -0
  15. package/dist/base/navbar-aui-011.d.ts +2 -0
  16. package/dist/base/navbar-aui-011.js +9 -0
  17. package/dist/base/navbar-aui-012.d.ts +2 -0
  18. package/dist/base/navbar-aui-012.js +9 -0
  19. package/dist/base/navbar-aui-013.d.ts +2 -0
  20. package/dist/base/navbar-aui-013.js +9 -0
  21. package/dist/base/navbar-aui-014.d.ts +2 -0
  22. package/dist/base/navbar-aui-014.js +9 -0
  23. package/dist/base/now-playing.js +1 -1
  24. package/dist/base/payment-received.js +1 -1
  25. package/dist/base/pricing-aui-021.d.ts +2 -0
  26. package/dist/base/pricing-aui-021.js +9 -0
  27. package/dist/base/pricing-aui-022.d.ts +2 -0
  28. package/dist/base/pricing-aui-022.js +9 -0
  29. package/dist/base/pricing-aui-023.d.ts +2 -0
  30. package/dist/base/pricing-aui-023.js +9 -0
  31. package/dist/base/pricing-aui-024.d.ts +2 -0
  32. package/dist/base/pricing-aui-024.js +9 -0
  33. package/dist/base/sign-in-aui-015.d.ts +2 -0
  34. package/dist/base/sign-in-aui-015.js +9 -0
  35. package/dist/base/sign-in-aui-016.d.ts +2 -0
  36. package/dist/base/sign-in-aui-016.js +9 -0
  37. package/dist/base/sign-in-aui-017.d.ts +2 -0
  38. package/dist/base/sign-in-aui-017.js +9 -0
  39. package/dist/base/sign-in-aui-018.d.ts +2 -0
  40. package/dist/base/sign-in-aui-018.js +9 -0
  41. package/dist/base/sign-in-aui-019.d.ts +2 -0
  42. package/dist/base/sign-in-aui-019.js +9 -0
  43. package/dist/base/sign-in-aui-020.d.ts +2 -0
  44. package/dist/base/sign-in-aui-020.js +9 -0
  45. package/dist/base/spinner.js +1 -1
  46. package/dist/base.js +124 -4
  47. package/dist/card-checkout.js +1 -1
  48. package/dist/chunk-2SQQFICY.js +493 -0
  49. package/dist/{chunk-QJXPS55V.js → chunk-5TSQZY34.js} +1 -1
  50. package/dist/chunk-5U4H2CXC.js +308 -0
  51. package/dist/chunk-5WGDQ62P.js +122 -0
  52. package/dist/chunk-6B6NTRMC.js +293 -0
  53. package/dist/chunk-6NNHSXFD.js +539 -0
  54. package/dist/chunk-746WX2DF.js +480 -0
  55. package/dist/chunk-7GKCX4IE.js +636 -0
  56. package/dist/chunk-7SNVRPED.js +223 -0
  57. package/dist/chunk-BGVAXPHD.js +305 -0
  58. package/dist/chunk-F526V5BA.js +254 -0
  59. package/dist/chunk-LPTY5WXM.js +231 -0
  60. package/dist/chunk-MDI73RL6.js +245 -0
  61. package/dist/chunk-MUDW65ZT.js +220 -0
  62. package/dist/chunk-NZRQL3SA.js +201 -0
  63. package/dist/chunk-OFYGJUKP.js +278 -0
  64. package/dist/{chunk-NDBLIYMX.js → chunk-OKCSTMX3.js} +2 -2
  65. package/dist/chunk-P37H477M.js +236 -0
  66. package/dist/chunk-QSLS3ENY.js +469 -0
  67. package/dist/chunk-RRHQBGRO.js +327 -0
  68. package/dist/{chunk-2OGTIQVU.js → chunk-UEOEWP7L.js} +1 -1
  69. package/dist/{chunk-BP3LXM3X.js → chunk-UTGEGGSE.js} +1 -1
  70. package/dist/chunk-WNPMHOXE.js +136 -0
  71. package/dist/chunk-WTNNS7AX.js +362 -0
  72. package/dist/{chunk-AS6RA64I.js → chunk-XTP6ITUJ.js} +3 -1
  73. package/dist/footer-aui-025.d.ts +2 -0
  74. package/dist/footer-aui-025.js +9 -0
  75. package/dist/footer-aui-026.d.ts +2 -0
  76. package/dist/footer-aui-026.js +9 -0
  77. package/dist/footer-aui-027.d.ts +2 -0
  78. package/dist/footer-aui-027.js +9 -0
  79. package/dist/footer-aui-028.d.ts +2 -0
  80. package/dist/footer-aui-028.js +9 -0
  81. package/dist/index.js +125 -5
  82. package/dist/navbar-aui-009.d.ts +2 -0
  83. package/dist/navbar-aui-009.js +9 -0
  84. package/dist/navbar-aui-010.d.ts +2 -0
  85. package/dist/navbar-aui-010.js +9 -0
  86. package/dist/navbar-aui-011.d.ts +2 -0
  87. package/dist/navbar-aui-011.js +9 -0
  88. package/dist/navbar-aui-012.d.ts +2 -0
  89. package/dist/navbar-aui-012.js +9 -0
  90. package/dist/navbar-aui-013.d.ts +2 -0
  91. package/dist/navbar-aui-013.js +9 -0
  92. package/dist/navbar-aui-014.d.ts +2 -0
  93. package/dist/navbar-aui-014.js +9 -0
  94. package/dist/now-playing.js +1 -1
  95. package/dist/payment-received.js +1 -1
  96. package/dist/pricing-aui-021.d.ts +2 -0
  97. package/dist/pricing-aui-021.js +9 -0
  98. package/dist/pricing-aui-022.d.ts +2 -0
  99. package/dist/pricing-aui-022.js +9 -0
  100. package/dist/pricing-aui-023.d.ts +2 -0
  101. package/dist/pricing-aui-023.js +9 -0
  102. package/dist/pricing-aui-024.d.ts +2 -0
  103. package/dist/pricing-aui-024.js +9 -0
  104. package/dist/sign-in-aui-015.d.ts +2 -0
  105. package/dist/sign-in-aui-015.js +9 -0
  106. package/dist/sign-in-aui-016.d.ts +2 -0
  107. package/dist/sign-in-aui-016.js +9 -0
  108. package/dist/sign-in-aui-017.d.ts +2 -0
  109. package/dist/sign-in-aui-017.js +9 -0
  110. package/dist/sign-in-aui-018.d.ts +2 -0
  111. package/dist/sign-in-aui-018.js +9 -0
  112. package/dist/sign-in-aui-019.d.ts +2 -0
  113. package/dist/sign-in-aui-019.js +9 -0
  114. package/dist/sign-in-aui-020.d.ts +2 -0
  115. package/dist/sign-in-aui-020.js +9 -0
  116. package/dist/spinner.js +1 -1
  117. package/dist/types/components/kit/variants/footer-aui-025.d.ts +22 -0
  118. package/dist/types/components/kit/variants/footer-aui-026.d.ts +21 -0
  119. package/dist/types/components/kit/variants/footer-aui-027.d.ts +36 -0
  120. package/dist/types/components/kit/variants/footer-aui-028.d.ts +34 -0
  121. package/dist/types/components/kit/variants/navbar-aui-009.d.ts +62 -0
  122. package/dist/types/components/kit/variants/navbar-aui-010.d.ts +30 -0
  123. package/dist/types/components/kit/variants/navbar-aui-011.d.ts +65 -0
  124. package/dist/types/components/kit/variants/navbar-aui-012.d.ts +50 -0
  125. package/dist/types/components/kit/variants/navbar-aui-013.d.ts +70 -0
  126. package/dist/types/components/kit/variants/navbar-aui-014.d.ts +31 -0
  127. package/dist/types/components/kit/variants/pricing-aui-021.d.ts +30 -0
  128. package/dist/types/components/kit/variants/pricing-aui-022.d.ts +34 -0
  129. package/dist/types/components/kit/variants/pricing-aui-023.d.ts +26 -0
  130. package/dist/types/components/kit/variants/pricing-aui-024.d.ts +29 -0
  131. package/dist/types/components/kit/variants/sign-in-aui-015.d.ts +21 -0
  132. package/dist/types/components/kit/variants/sign-in-aui-016.d.ts +28 -0
  133. package/dist/types/components/kit/variants/sign-in-aui-017.d.ts +21 -0
  134. package/dist/types/components/kit/variants/sign-in-aui-018.d.ts +22 -0
  135. package/dist/types/components/kit/variants/sign-in-aui-019.d.ts +22 -0
  136. package/dist/types/components/kit/variants/sign-in-aui-020.d.ts +27 -0
  137. package/dist/types/packages/asta-ui/src/base/footer-aui-025.d.ts +2 -0
  138. package/dist/types/packages/asta-ui/src/base/footer-aui-026.d.ts +2 -0
  139. package/dist/types/packages/asta-ui/src/base/footer-aui-027.d.ts +2 -0
  140. package/dist/types/packages/asta-ui/src/base/footer-aui-028.d.ts +2 -0
  141. package/dist/types/packages/asta-ui/src/base/navbar-aui-009.d.ts +2 -0
  142. package/dist/types/packages/asta-ui/src/base/navbar-aui-010.d.ts +2 -0
  143. package/dist/types/packages/asta-ui/src/base/navbar-aui-011.d.ts +2 -0
  144. package/dist/types/packages/asta-ui/src/base/navbar-aui-012.d.ts +2 -0
  145. package/dist/types/packages/asta-ui/src/base/navbar-aui-013.d.ts +2 -0
  146. package/dist/types/packages/asta-ui/src/base/navbar-aui-014.d.ts +2 -0
  147. package/dist/types/packages/asta-ui/src/base/pricing-aui-021.d.ts +2 -0
  148. package/dist/types/packages/asta-ui/src/base/pricing-aui-022.d.ts +2 -0
  149. package/dist/types/packages/asta-ui/src/base/pricing-aui-023.d.ts +2 -0
  150. package/dist/types/packages/asta-ui/src/base/pricing-aui-024.d.ts +2 -0
  151. package/dist/types/packages/asta-ui/src/base/sign-in-aui-015.d.ts +2 -0
  152. package/dist/types/packages/asta-ui/src/base/sign-in-aui-016.d.ts +2 -0
  153. package/dist/types/packages/asta-ui/src/base/sign-in-aui-017.d.ts +2 -0
  154. package/dist/types/packages/asta-ui/src/base/sign-in-aui-018.d.ts +2 -0
  155. package/dist/types/packages/asta-ui/src/base/sign-in-aui-019.d.ts +2 -0
  156. package/dist/types/packages/asta-ui/src/base/sign-in-aui-020.d.ts +2 -0
  157. package/dist/types/packages/asta-ui/src/base.d.ts +40 -0
  158. package/dist/types/packages/asta-ui/src/footer-aui-025.d.ts +2 -0
  159. package/dist/types/packages/asta-ui/src/footer-aui-026.d.ts +2 -0
  160. package/dist/types/packages/asta-ui/src/footer-aui-027.d.ts +2 -0
  161. package/dist/types/packages/asta-ui/src/footer-aui-028.d.ts +2 -0
  162. package/dist/types/packages/asta-ui/src/index.d.ts +40 -0
  163. package/dist/types/packages/asta-ui/src/navbar-aui-009.d.ts +2 -0
  164. package/dist/types/packages/asta-ui/src/navbar-aui-010.d.ts +2 -0
  165. package/dist/types/packages/asta-ui/src/navbar-aui-011.d.ts +2 -0
  166. package/dist/types/packages/asta-ui/src/navbar-aui-012.d.ts +2 -0
  167. package/dist/types/packages/asta-ui/src/navbar-aui-013.d.ts +2 -0
  168. package/dist/types/packages/asta-ui/src/navbar-aui-014.d.ts +2 -0
  169. package/dist/types/packages/asta-ui/src/pricing-aui-021.d.ts +2 -0
  170. package/dist/types/packages/asta-ui/src/pricing-aui-022.d.ts +2 -0
  171. package/dist/types/packages/asta-ui/src/pricing-aui-023.d.ts +2 -0
  172. package/dist/types/packages/asta-ui/src/pricing-aui-024.d.ts +2 -0
  173. package/dist/types/packages/asta-ui/src/sign-in-aui-015.d.ts +2 -0
  174. package/dist/types/packages/asta-ui/src/sign-in-aui-016.d.ts +2 -0
  175. package/dist/types/packages/asta-ui/src/sign-in-aui-017.d.ts +2 -0
  176. package/dist/types/packages/asta-ui/src/sign-in-aui-018.d.ts +2 -0
  177. package/dist/types/packages/asta-ui/src/sign-in-aui-019.d.ts +2 -0
  178. package/dist/types/packages/asta-ui/src/sign-in-aui-020.d.ts +2 -0
  179. package/package.json +1 -1
@@ -0,0 +1,539 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/navbar-aui-009.tsx
4
+ import { Fragment, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
5
+ import { Fragment as Fragment2, jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var EASE = "cubic-bezier(.16,1,.3,1)";
8
+ var TW_EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
9
+ var FOCUS = "outline-none focus-visible:ring-2 focus-visible:ring-brand/50";
10
+ var HAIR = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]";
11
+ var HATCH = "bg-[repeating-linear-gradient(135deg,color-mix(in_srgb,var(--ink)_4%,transparent)_0_1px,transparent_1px_7px)]";
12
+ var CSS = `
13
+ @keyframes aui-009-rise { from { opacity: 0; transform: translateY(6px); } }
14
+ @keyframes aui-009-vp-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
15
+ @keyframes aui-009-vp-out { to { opacity: 0; transform: translateY(-4px) scale(.96); } }
16
+ @keyframes aui-009-from-l { from { opacity: 0; transform: translateX(-28px); } }
17
+ @keyframes aui-009-from-r { from { opacity: 0; transform: translateX(28px); } }
18
+ @keyframes aui-009-to-l { to { opacity: 0; transform: translateX(-28px); } }
19
+ @keyframes aui-009-to-r { to { opacity: 0; transform: translateX(28px); } }
20
+ @keyframes aui-009-drop { from { opacity: 0; transform: translateY(-6px); } }
21
+ .aui-009-in { animation: aui-009-rise .55s ${EASE} both; animation-delay: calc(var(--i, 0) * 50ms); }
22
+ .aui-009-vp { transform-origin: top center; }
23
+ .aui-009-vp[data-state=open] { animation: aui-009-vp-in .26s ${EASE}; }
24
+ .aui-009-vp[data-state=closed] { animation: aui-009-vp-out .16s ease-in forwards; }
25
+ .aui-009-c[data-motion=from-start] { animation: aui-009-from-l .3s ${EASE}; }
26
+ .aui-009-c[data-motion=from-end] { animation: aui-009-from-r .3s ${EASE}; }
27
+ .aui-009-c[data-motion=to-start] { animation: aui-009-to-l .3s ${EASE} forwards; }
28
+ .aui-009-c[data-motion=to-end] { animation: aui-009-to-r .3s ${EASE} forwards; }
29
+ .aui-009-t { animation: aui-009-rise .45s ${EASE} both; animation-delay: calc(40ms + var(--i, 0) * 40ms); }
30
+ .aui-009-sheet { animation: aui-009-drop .4s ${EASE} both; }
31
+ @media (prefers-reduced-motion: reduce) { .aui-009-m, .aui-009-m * { animation: none !important; transition-duration: 0s !important; } .aui-009-vp[data-state=closed] { visibility: hidden; } }
32
+ `;
33
+ var at = (n) => ({ "--i": n });
34
+ var reduced = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
35
+ var PATHS = {
36
+ map: "M2.5 4.5 6 3l4 1.5L13.5 3v8.5L10 13l-4-1.5-3.5 1.5ZM6 3v8.5M10 4.5V13",
37
+ check: "M3 8.5 6.5 12 13 4.5",
38
+ chart: "M3 13V8M6.5 13V4M10 13V9.5M13.5 13V6",
39
+ bolt: "M9 2 4 9h4l-1 5 5-7H8Z",
40
+ plug: "M6 2.5v3M10 2.5v3M4.5 5.5h7v2a3.5 3.5 0 0 1-7 0ZM8 11v2.5",
41
+ book: "M3 3.5h4a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 0 7 11.5H3ZM13 3.5H9.5A1.5 1.5 0 0 0 8 5v8a1.5 1.5 0 0 1 1.5-1.5H13Z",
42
+ grid: "M3 3h4v4H3ZM9 3h4v4H9ZM3 9h4v4H3ZM9 9h4v4H9Z",
43
+ play: "M5 3.5v9l7-4.5Z",
44
+ users: "M6 7a2.25 2.25 0 1 0 0-4.5A2.25 2.25 0 0 0 6 7ZM2 13c.4-2.2 2-3.5 4-3.5s3.6 1.3 4 3.5M11 3a2 2 0 0 1 0 4M12 9.6c1.2.4 1.9 1.6 2 3.4",
45
+ spark: "M8 2v3M8 11v3M2 8h3M11 8h3M4 4l2 2M10 10l2 2M12 4l-2 2M6 10l-2 2",
46
+ mail: "M2.5 4h11v8h-11ZM2.5 4.5 8 9l5.5-4.5"
47
+ };
48
+ function Glyph({ name }) {
49
+ return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: PATHS[name] }) });
50
+ }
51
+ var Badge = ({ icon, size = "h-6 w-6" }) => /* @__PURE__ */ jsx("span", { className: cx("grid shrink-0 place-items-center rounded-[7px] bg-paper text-brand shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_2px_7px_rgb(0_0_0/0.05)]", size), children: /* @__PURE__ */ jsx(Glyph, { name: icon }) });
52
+ var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5", className), fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 4 4 4-4 4" }) });
53
+ var Logo = () => /* @__PURE__ */ jsxs(Fragment2, { children: [
54
+ /* @__PURE__ */ jsx("span", { className: "grid h-6 w-6 place-items-center rounded-[7px] bg-ink text-paper", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 12.5 8 3.5l4 9M5.6 9.2h4.8" }) }) }),
55
+ "Astabyte"
56
+ ] });
57
+ var ITEMS = [
58
+ {
59
+ label: "Product",
60
+ menu: {
61
+ type: "products",
62
+ products: [
63
+ { title: "Roadmaps", description: "Plan the quarter in one view and share it with a link.", href: "#", icon: "map", preview: "roadmap" },
64
+ { title: "Issues", description: "Triage, assign and close work from the keyboard.", href: "#", icon: "check", preview: "issues" }
65
+ ],
66
+ features: [
67
+ { title: "Insights", description: "Cycle time and scope, live.", href: "#", icon: "chart" },
68
+ { title: "Automations", description: "Rules that move work for you.", href: "#", icon: "bolt" },
69
+ { title: "Integrations", description: "Git, Slack, Figma and 40 more.", href: "#", icon: "plug" }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ label: "Resources",
75
+ menu: {
76
+ type: "columns",
77
+ columns: [
78
+ {
79
+ heading: "Learn",
80
+ items: [
81
+ { title: "Guides", description: "From first project to scale", href: "#", icon: "book" },
82
+ { title: "Templates", description: "40 ready-made roadmaps", href: "#", icon: "grid" },
83
+ { title: "Webinars", description: "Live every second Tuesday", href: "#", icon: "play" }
84
+ ]
85
+ },
86
+ {
87
+ heading: "Company",
88
+ items: [
89
+ { title: "Customers", description: "How teams plan with us", href: "#", icon: "users" },
90
+ { title: "Changelog", description: "Shipped this week", href: "#", icon: "spark" },
91
+ { title: "Contact", description: "Talk to a person", href: "#", icon: "mail" }
92
+ ]
93
+ }
94
+ ],
95
+ cta: { title: "Your first roadmap in five minutes", description: "Free for teams up to ten.", label: "Start free", href: "#" }
96
+ }
97
+ },
98
+ { label: "Customers", href: "#" },
99
+ { label: "Pricing", href: "#" }
100
+ ];
101
+ function Peek({ kind }) {
102
+ const tone = "bg-[color-mix(in_srgb,var(--ink)_22%,transparent)] transition-colors duration-500 group-hover/t:bg-brand";
103
+ return /* @__PURE__ */ jsx(
104
+ "div",
105
+ {
106
+ "aria-hidden": true,
107
+ className: cx(
108
+ "absolute -bottom-px -right-px w-[58%] rounded-tl-[10px] bg-paper p-2.5 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_0_0_4px_var(--paper-2)] transition-transform duration-500 group-hover/t:-translate-x-1 group-hover/t:-translate-y-1",
109
+ TW_EASE
110
+ ),
111
+ children: kind === "roadmap" ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
112
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-between font-mono text-[8.5px] uppercase tracking-[0.08em] text-mute", children: [
113
+ /* @__PURE__ */ jsx("span", { children: "Jul" }),
114
+ /* @__PURE__ */ jsx("span", { children: "Aug" }),
115
+ /* @__PURE__ */ jsx("span", { children: "Sep" })
116
+ ] }),
117
+ [
118
+ [0, 50, "Billing"],
119
+ [26, 52, "Mobile"],
120
+ [54, 44, "Search"]
121
+ ].map(([l, w, t], i) => /* @__PURE__ */ jsx("span", { className: cx("flex h-3.5 items-center rounded-[4px] px-1.5 text-[8.5px] font-medium text-paper", tone), style: { marginLeft: `${l}%`, width: `${w}%`, transitionDelay: `${i * 60}ms` }, children: t }, t))
122
+ ] }) : /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1.5", children: ["Fix invoice rounding", "Dark mode for charts", "SSO for Enterprise"].map((t, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-[9.5px] text-ink-2", children: [
123
+ /* @__PURE__ */ jsx("span", { className: cx("h-2 w-2 shrink-0 rounded-full", tone), style: { transitionDelay: `${i * 60}ms` } }),
124
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: t }),
125
+ /* @__PURE__ */ jsxs("span", { className: "ml-auto font-mono text-[8.5px] text-mute", children: [
126
+ "NW-",
127
+ 214 + i
128
+ ] })
129
+ ] }, t)) })
130
+ }
131
+ );
132
+ }
133
+ var tile = cx(
134
+ "group/t relative flex flex-col gap-1.5 overflow-hidden rounded-[6px] p-3.5 transition-[opacity,box-shadow] duration-300",
135
+ "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_7%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_15%,transparent)]",
136
+ "group-has-[a:hover]/m:opacity-65 hover:!opacity-100",
137
+ FOCUS
138
+ );
139
+ var Tint = ({ dir = "b" }) => /* @__PURE__ */ jsx(
140
+ "span",
141
+ {
142
+ "aria-hidden": true,
143
+ className: cx(
144
+ "pointer-events-none absolute inset-0 from-transparent from-40% to-[color-mix(in_srgb,var(--brand)_8%,transparent)] opacity-0 transition-opacity duration-500 group-hover/t:opacity-100",
145
+ dir === "b" ? "bg-linear-to-b" : "bg-linear-to-r"
146
+ )
147
+ }
148
+ );
149
+ var Nudge = () => /* @__PURE__ */ jsx(Chevron, { className: cx("-translate-x-0.5 text-mute transition-[translate,color] duration-300 group-hover/t:translate-x-0 group-hover/t:text-ink", TW_EASE) });
150
+ function Panel({ menu }) {
151
+ if (menu.type === "products")
152
+ return /* @__PURE__ */ jsxs("div", { className: "group/m flex w-[min(660px,calc(100cqw-24px))] flex-col gap-2 p-2", children: [
153
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: menu.products.map((p, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("a", { href: p.href, style: at(n), className: cx(tile, HATCH, "aui-009-t h-[164px]"), children: [
154
+ /* @__PURE__ */ jsx(Tint, {}),
155
+ /* @__PURE__ */ jsxs("span", { className: "relative flex items-center gap-2 text-[14px] font-medium tracking-[-0.01em] text-ink", children: [
156
+ p.icon && /* @__PURE__ */ jsx(Badge, { icon: p.icon }),
157
+ p.title,
158
+ /* @__PURE__ */ jsx(Nudge, {})
159
+ ] }),
160
+ p.description && /* @__PURE__ */ jsx("span", { className: "relative max-w-[30ch] text-[12.5px] leading-snug text-mute", children: p.description }),
161
+ /* @__PURE__ */ jsx(Peek, { kind: p.preview })
162
+ ] }) }, p.title)) }),
163
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-2", children: menu.features.map((f, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("a", { href: f.href, style: at(n + 2), className: cx(tile, "aui-009-t"), children: [
164
+ /* @__PURE__ */ jsx(Tint, { dir: "r" }),
165
+ /* @__PURE__ */ jsxs("span", { className: "relative flex items-center gap-2 text-[13.5px] font-medium text-ink", children: [
166
+ f.icon && /* @__PURE__ */ jsx(Badge, { icon: f.icon }),
167
+ f.title,
168
+ /* @__PURE__ */ jsx(Nudge, {})
169
+ ] }),
170
+ f.description && /* @__PURE__ */ jsx("span", { className: "relative text-[12px] leading-snug text-mute", children: f.description })
171
+ ] }) }, f.title)) })
172
+ ] });
173
+ return /* @__PURE__ */ jsxs("div", { className: "group/m grid w-[min(640px,calc(100cqw-24px))] grid-cols-[1fr_1fr_190px] items-stretch gap-2 p-2", children: [
174
+ menu.columns.map((c, ci) => /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-0.5 pt-1.5", children: [
175
+ /* @__PURE__ */ jsx("span", { className: "mb-1 px-2.5 font-mono text-[10.5px] uppercase tracking-[0.08em] text-mute", children: c.heading }),
176
+ c.items.map((it, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
177
+ "a",
178
+ {
179
+ href: it.href,
180
+ style: at(ci * 3 + n),
181
+ className: cx(
182
+ "aui-009-t group/t flex items-center gap-2.5 rounded-[8px] px-2.5 py-2 transition-[background-color,opacity] duration-200 hover:bg-paper-2 group-has-[a:hover]/m:opacity-65 hover:!opacity-100",
183
+ FOCUS
184
+ ),
185
+ children: [
186
+ it.icon && /* @__PURE__ */ jsx(Badge, { icon: it.icon, size: "h-7 w-7" }),
187
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
188
+ /* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium leading-tight text-ink", children: it.title }),
189
+ it.description && /* @__PURE__ */ jsx("span", { className: "truncate text-[12px] leading-snug text-mute", children: it.description })
190
+ ] })
191
+ ]
192
+ }
193
+ ) }, it.title))
194
+ ] }, c.heading)),
195
+ /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
196
+ "a",
197
+ {
198
+ href: menu.cta.href,
199
+ style: at(6),
200
+ className: cx(
201
+ "aui-009-t group/t relative flex min-h-[188px] flex-col justify-between overflow-hidden rounded-[6px] bg-ink p-4 text-paper transition-opacity duration-300 group-has-[a:hover]/m:opacity-75 hover:!opacity-100",
202
+ FOCUS
203
+ ),
204
+ children: [
205
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-14 -top-14 h-44 w-44 rounded-full bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--brand)_75%,transparent),transparent)] transition-transform duration-700 group-hover/t:scale-125", TW_EASE) }),
206
+ /* @__PURE__ */ jsx("span", { className: "relative h-2 w-2 rounded-full bg-brand" }),
207
+ /* @__PURE__ */ jsxs("span", { className: "relative", children: [
208
+ /* @__PURE__ */ jsx("span", { className: "block text-[15px] font-medium leading-tight tracking-[-0.02em]", children: menu.cta.title }),
209
+ /* @__PURE__ */ jsx("span", { className: "mt-1 block text-[12.5px] text-paper/60", children: menu.cta.description }),
210
+ /* @__PURE__ */ jsxs("span", { className: "mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
211
+ menu.cta.label,
212
+ /* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/t:translate-x-0.5", TW_EASE) })
213
+ ] })
214
+ ] })
215
+ ]
216
+ }
217
+ ) })
218
+ ] });
219
+ }
220
+ var flat = (m) => m.type === "products" ? [...m.products, ...m.features] : m.columns.flatMap((c) => c.items);
221
+ function useMega(labels, root, openOnMount, delay = 700) {
222
+ const [m, setM] = useState({ value: "", last: "", dir: "" });
223
+ const timer = useRef(void 0);
224
+ const hoverAt = useRef(0);
225
+ const current = useRef("");
226
+ const wasOpen = useRef(false);
227
+ const panelRef = useRef(null);
228
+ const innerRef = useRef(null);
229
+ const triggers = useRef(/* @__PURE__ */ new Map());
230
+ const open = (v) => {
231
+ clearTimeout(timer.current);
232
+ setM((p) => p.value === v ? p : { value: v, last: v, dir: p.value ? labels.indexOf(v) > labels.indexOf(p.value) ? "from-end" : "from-start" : "" });
233
+ };
234
+ const close = useCallback((focus = false) => {
235
+ clearTimeout(timer.current);
236
+ if (focus) triggers.current.get(current.current)?.focus();
237
+ setM((p) => p.value ? { ...p, value: "", dir: "" } : p);
238
+ }, []);
239
+ const later = () => {
240
+ clearTimeout(timer.current);
241
+ timer.current = setTimeout(() => close(), 150);
242
+ };
243
+ const cancel = () => clearTimeout(timer.current);
244
+ useEffect(() => {
245
+ current.current = m.value;
246
+ if (!m.value) return;
247
+ const down = (e) => !root.current?.contains(e.target) && close();
248
+ const key = (e) => e.key === "Escape" && close(true);
249
+ const focus = (e) => !root.current?.contains(e.target) && close();
250
+ document.addEventListener("pointerdown", down);
251
+ document.addEventListener("keydown", key);
252
+ document.addEventListener("focusin", focus);
253
+ return () => {
254
+ document.removeEventListener("pointerdown", down);
255
+ document.removeEventListener("keydown", key);
256
+ document.removeEventListener("focusin", focus);
257
+ };
258
+ }, [m.value, root, close]);
259
+ useEffect(() => () => clearTimeout(timer.current), []);
260
+ useEffect(() => {
261
+ if (!openOnMount) return;
262
+ const t = setTimeout(() => setM({ value: openOnMount, last: openOnMount, dir: "" }), delay);
263
+ return () => clearTimeout(t);
264
+ }, [openOnMount, delay]);
265
+ useLayoutEffect(() => {
266
+ const box = panelRef.current;
267
+ const el = innerRef.current?.firstElementChild;
268
+ if (!box || !el || !m.value) {
269
+ wasOpen.current = false;
270
+ return;
271
+ }
272
+ const fit = (instant) => {
273
+ if (instant) box.style.transition = "none";
274
+ box.style.width = `${el.offsetWidth}px`;
275
+ box.style.height = `${el.offsetHeight}px`;
276
+ if (instant) {
277
+ void box.offsetWidth;
278
+ box.style.transition = "";
279
+ }
280
+ };
281
+ fit(!wasOpen.current);
282
+ wasOpen.current = true;
283
+ const ro = new ResizeObserver(() => fit(true));
284
+ ro.observe(el);
285
+ return () => ro.disconnect();
286
+ }, [m.value]);
287
+ const register = (label) => (el) => {
288
+ if (el) triggers.current.set(label, el);
289
+ else triggers.current.delete(label);
290
+ };
291
+ const enter = (label, mouse) => {
292
+ if (!mouse) return;
293
+ if (current.current !== label) hoverAt.current = Date.now();
294
+ open(label);
295
+ };
296
+ const click = (label) => m.value === label && Date.now() - hoverAt.current > 400 ? close() : open(label);
297
+ const focusFirst = () => requestAnimationFrame(() => panelRef.current?.querySelector("a")?.focus());
298
+ const triggerKeys = (label, e) => {
299
+ if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey && m.value === label) {
300
+ e.preventDefault();
301
+ open(label);
302
+ focusFirst();
303
+ }
304
+ };
305
+ const panelKeys = (e) => {
306
+ const first = panelRef.current?.querySelector("a");
307
+ if (e.key === "Tab" && e.shiftKey && e.target === first) {
308
+ e.preventDefault();
309
+ triggers.current.get(current.current)?.focus();
310
+ }
311
+ };
312
+ const ended = (e) => {
313
+ if (e.target === e.currentTarget) setM((p) => p.value ? p : { ...p, last: "" });
314
+ };
315
+ return { m, panelRef, innerRef, close, later, cancel, register, enter, click, triggerKeys, panelKeys, ended };
316
+ }
317
+ function MinimalNavbar({
318
+ brand = /* @__PURE__ */ jsx(Logo, {}),
319
+ brandHref = "/",
320
+ items = ITEMS,
321
+ active = 2,
322
+ secondary = { label: "Sign in", href: "#" },
323
+ cta = { label: "Start free", href: "#" },
324
+ openOnMount,
325
+ className
326
+ }) {
327
+ const [hover, setHover] = useState(null);
328
+ const [sheet, setSheet] = useState(false);
329
+ const [section, setSection] = useState(null);
330
+ const root = useRef(null);
331
+ const { panelRef: megaPanel, innerRef: megaInner, ...mega } = useMega(items.map((x) => x.label), root, openOnMount, 700);
332
+ const value = mega.m.value;
333
+ const lastMenu = items.find((x) => x.label === mega.m.last)?.menu;
334
+ const row = useRef(null);
335
+ const mark = useRef(null);
336
+ const burger = useRef(null);
337
+ const anim = useRef(null);
338
+ const openIndex = items.findIndex((it) => it.label === value);
339
+ const target = hover ?? (openIndex >= 0 ? openIndex : active);
340
+ const targetRef = useRef(target);
341
+ const id = useId();
342
+ const place = useCallback((animate) => {
343
+ const r = row.current;
344
+ const el = mark.current;
345
+ if (!r || !el) return;
346
+ const a = r.querySelectorAll("[data-glide]")[targetRef.current];
347
+ if (!a || a.offsetWidth === 0) {
348
+ el.style.opacity = "0";
349
+ return;
350
+ }
351
+ const rr = r.getBoundingClientRect();
352
+ const ar = a.getBoundingClientRect();
353
+ const to = { x: ar.left - rr.left + 10, w: ar.width - 20 };
354
+ let from = null;
355
+ if (el.style.opacity === "1") {
356
+ const m = el.getBoundingClientRect();
357
+ from = { x: m.left - rr.left, w: m.width };
358
+ }
359
+ anim.current?.cancel();
360
+ el.style.width = `${to.w}px`;
361
+ el.style.transform = `translateX(${to.x}px)`;
362
+ el.style.opacity = "1";
363
+ if (!animate || !from || from.w === 0 || reduced() || Math.abs(from.x - to.x) < 1) return;
364
+ const t = (b) => `translateX(${b.x}px) scaleX(${b.w / to.w})`;
365
+ const left = Math.min(from.x, to.x);
366
+ const span = Math.max(from.x + from.w, to.x + to.w) - left;
367
+ anim.current = el.animate([{ transform: t(from) }, { transform: t({ x: left, w: span }), offset: 0.42 }, { transform: t(to) }], { duration: 600, easing: EASE });
368
+ }, []);
369
+ useLayoutEffect(() => {
370
+ targetRef.current = target;
371
+ place(true);
372
+ }, [target, place]);
373
+ useEffect(() => {
374
+ const r = row.current;
375
+ if (!r) return;
376
+ const ro = new ResizeObserver(() => place(false));
377
+ ro.observe(r);
378
+ return () => ro.disconnect();
379
+ }, [place]);
380
+ useEffect(() => () => anim.current?.cancel(), []);
381
+ const close = useCallback((focus) => {
382
+ setSheet(false);
383
+ if (focus) burger.current?.focus();
384
+ }, []);
385
+ useEffect(() => {
386
+ if (!sheet) return;
387
+ const down = (e) => !root.current?.contains(e.target) && close(false);
388
+ const key = (e) => e.key === "Escape" && close(true);
389
+ document.addEventListener("pointerdown", down);
390
+ document.addEventListener("keydown", key);
391
+ return () => {
392
+ document.removeEventListener("pointerdown", down);
393
+ document.removeEventListener("keydown", key);
394
+ };
395
+ }, [sheet, close]);
396
+ const pill = cx(
397
+ "group/p flex h-8 items-center gap-1 rounded-lg px-2.5 text-[14px] font-medium text-ink/70 transition-colors duration-200 hover:bg-paper-2 hover:text-ink aria-expanded:bg-paper-2 aria-expanded:text-ink",
398
+ FOCUS
399
+ );
400
+ return /* @__PURE__ */ jsxs("header", { ref: root, className: cx("aui-009-m @container sticky top-0 z-30 w-full bg-paper shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_9%,transparent)]", className), children: [
401
+ /* @__PURE__ */ jsx("style", { href: "asta-navbar-aui-009", precedence: "asta", children: CSS }),
402
+ /* @__PURE__ */ jsxs("div", { ref: row, className: "relative mx-auto flex h-14 max-w-[1120px] items-center px-4", children: [
403
+ /* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center", children: /* @__PURE__ */ jsx("a", { href: brandHref, style: at(0), className: cx("aui-009-in flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-[-0.02em] text-ink", FOCUS), children: brand }) }),
404
+ /* @__PURE__ */ jsx("nav", { "aria-label": "Main", className: "hidden @min-[640px]:block", children: /* @__PURE__ */ jsx("ul", { className: "flex items-center gap-px", onPointerLeave: () => setHover(null), children: items.map((it, n) => /* @__PURE__ */ jsx("li", { className: "aui-009-in", style: at(n + 1), onPointerEnter: () => setHover(n), children: it.menu ? /* @__PURE__ */ jsx(Fragment2, { children: /* @__PURE__ */ jsxs(
405
+ "button",
406
+ {
407
+ ref: mega.register(it.label),
408
+ type: "button",
409
+ "aria-expanded": value === it.label,
410
+ "aria-controls": `${id}-m${n}`,
411
+ onPointerEnter: (e) => mega.enter(it.label, e.pointerType === "mouse"),
412
+ onPointerLeave: (e) => e.pointerType === "mouse" && mega.later(),
413
+ onClick: () => mega.click(it.label),
414
+ onKeyDown: (e) => mega.triggerKeys(it.label, e),
415
+ "data-glide": true,
416
+ className: cx(pill, "pr-2"),
417
+ children: [
418
+ it.label,
419
+ /* @__PURE__ */ jsx(Chevron, { className: cx("rotate-90 text-mute transition-transform duration-300 group-aria-expanded/p:-rotate-90", TW_EASE) })
420
+ ]
421
+ }
422
+ ) }) : /* @__PURE__ */ jsx("a", { href: it.href, "data-glide": true, "aria-current": n === active ? "page" : void 0, className: cx(pill, n === active && "text-ink"), children: it.label }) }, it.label)) }) }),
423
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-0 top-full z-40 hidden justify-center pt-1.5 @min-[640px]:flex", children: mega.m.last && /* @__PURE__ */ jsx(
424
+ "div",
425
+ {
426
+ ref: megaPanel,
427
+ "data-state": value ? "open" : "closed",
428
+ onPointerEnter: mega.cancel,
429
+ onPointerLeave: (e) => e.pointerType === "mouse" && mega.later(),
430
+ onClick: (e) => e.target.closest("a") && mega.close(),
431
+ onKeyDown: mega.panelKeys,
432
+ onAnimationEnd: mega.ended,
433
+ className: cx(
434
+ "aui-009-vp pointer-events-auto relative overflow-hidden rounded-[8px] bg-paper shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_16px_36px_-12px_rgb(0_0_0/0.22)]",
435
+ "transition-[width,height] duration-300 data-[state=closed]:pointer-events-none",
436
+ TW_EASE
437
+ ),
438
+ children: /* @__PURE__ */ jsx("div", { ref: megaInner, id: `${id}-m${items.findIndex((x) => x.label === mega.m.last)}`, "data-motion": mega.m.dir || void 0, className: "aui-009-c absolute left-0 top-0", children: lastMenu && /* @__PURE__ */ jsx(Panel, { menu: lastMenu }) }, mega.m.last)
439
+ }
440
+ ) }),
441
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center justify-end gap-1.5", children: [
442
+ /* @__PURE__ */ jsx(
443
+ "a",
444
+ {
445
+ href: secondary.href,
446
+ style: at(items.length + 1),
447
+ className: cx("aui-009-in hidden h-8 items-center rounded-lg px-3 text-[13px] font-medium text-ink/70 transition-colors hover:bg-paper-2 hover:text-ink @min-[760px]:inline-flex", FOCUS),
448
+ children: secondary.label
449
+ }
450
+ ),
451
+ /* @__PURE__ */ jsxs(
452
+ "a",
453
+ {
454
+ href: cta.href,
455
+ style: at(items.length + 2),
456
+ className: cx(
457
+ "aui-009-in group/cta inline-flex h-8 items-center gap-1 rounded-lg bg-ink pl-3 pr-2.5 text-[13px] font-medium text-paper transition-transform duration-300 hover:-translate-y-px active:translate-y-0 active:scale-[.97] focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
458
+ TW_EASE,
459
+ FOCUS
460
+ ),
461
+ children: [
462
+ cta.label,
463
+ /* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/cta:translate-x-0.5", TW_EASE) })
464
+ ]
465
+ }
466
+ ),
467
+ /* @__PURE__ */ jsxs(
468
+ "button",
469
+ {
470
+ ref: burger,
471
+ type: "button",
472
+ "aria-label": sheet ? "Close menu" : "Open menu",
473
+ "aria-expanded": sheet,
474
+ "aria-controls": id,
475
+ onClick: () => setSheet((v) => !v),
476
+ className: cx("relative flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-paper-2 @min-[640px]:hidden", FOCUS),
477
+ children: [
478
+ /* @__PURE__ */ jsx("span", { className: cx("absolute h-[1.5px] w-4 rounded-full bg-ink transition-transform duration-500", TW_EASE, sheet ? "rotate-45" : "-translate-y-[3.5px]") }),
479
+ /* @__PURE__ */ jsx("span", { className: cx("absolute h-[1.5px] w-4 rounded-full bg-ink transition-transform duration-500", TW_EASE, sheet ? "-rotate-45" : "translate-y-[3.5px]") })
480
+ ]
481
+ }
482
+ )
483
+ ] }),
484
+ /* @__PURE__ */ jsx("span", { ref: mark, "aria-hidden": true, style: { opacity: 0 }, className: "pointer-events-none absolute -bottom-px left-0 hidden h-[2px] origin-left rounded-full bg-ink transition-opacity duration-300 @min-[640px]:block" })
485
+ ] }),
486
+ sheet && /* @__PURE__ */ jsxs("nav", { id, "aria-label": "Main", className: "aui-009-sheet absolute inset-x-0 top-full max-h-[70vh] overflow-y-auto bg-paper pb-4 shadow-[0_24px_40px_-24px_rgb(0_0_0/0.3)] @min-[640px]:hidden", children: [
487
+ items.map(
488
+ (it, n) => it.menu ? /* @__PURE__ */ jsxs("div", { className: "aui-009-in shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_7%,transparent)]", style: at(n), children: [
489
+ /* @__PURE__ */ jsxs(
490
+ "button",
491
+ {
492
+ type: "button",
493
+ "aria-expanded": section === it.label,
494
+ onClick: () => setSection((s) => s === it.label ? null : it.label),
495
+ className: cx("flex h-12 w-full items-center justify-between px-4 text-[16px] font-medium text-ink", FOCUS),
496
+ children: [
497
+ it.label,
498
+ /* @__PURE__ */ jsx(Chevron, { className: cx("text-mute transition-transform duration-300", TW_EASE, section === it.label ? "-rotate-90" : "rotate-90") })
499
+ ]
500
+ }
501
+ ),
502
+ /* @__PURE__ */ jsx("div", { className: cx("grid transition-[grid-template-rows] duration-500", TW_EASE, section === it.label ? "grid-rows-[1fr]" : "grid-rows-[0fr]"), children: /* @__PURE__ */ jsxs("ul", { className: "overflow-hidden px-2", inert: section !== it.label || void 0, children: [
503
+ flat(it.menu).map((t) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("a", { href: t.href, onClick: () => close(false), className: cx("flex items-center gap-3 rounded-[8px] px-2 py-2 hover:bg-paper-2", FOCUS), children: [
504
+ t.icon && /* @__PURE__ */ jsx(Badge, { icon: t.icon, size: "h-7 w-7" }),
505
+ /* @__PURE__ */ jsxs("span", { className: "flex flex-col", children: [
506
+ /* @__PURE__ */ jsx("span", { className: "text-[14px] font-medium text-ink", children: t.title }),
507
+ t.description && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: t.description })
508
+ ] })
509
+ ] }) }, t.title)),
510
+ /* @__PURE__ */ jsx("li", { "aria-hidden": true, className: "h-2" })
511
+ ] }) })
512
+ ] }, it.label) : /* @__PURE__ */ jsxs(
513
+ "a",
514
+ {
515
+ href: it.href,
516
+ onClick: () => close(false),
517
+ style: at(n),
518
+ className: cx("aui-009-in flex h-12 items-center justify-between px-4 text-[16px] font-medium text-ink shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_7%,transparent)]", FOCUS),
519
+ children: [
520
+ it.label,
521
+ n === active && /* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 rounded-full bg-brand" })
522
+ ]
523
+ },
524
+ it.label
525
+ )
526
+ ),
527
+ /* @__PURE__ */ jsxs("div", { className: "aui-009-in mt-4 grid grid-cols-2 gap-2 px-4", style: at(items.length), children: [
528
+ /* @__PURE__ */ jsx("a", { href: secondary.href, className: cx("flex h-10 items-center justify-center rounded-lg text-[14px] font-medium text-ink", HAIR, FOCUS), children: secondary.label }),
529
+ /* @__PURE__ */ jsx("a", { href: cta.href, className: cx("flex h-10 items-center justify-center rounded-lg bg-ink text-[14px] font-medium text-paper", FOCUS), children: cta.label })
530
+ ] })
531
+ ] })
532
+ ] });
533
+ }
534
+ var navbar_aui_009_default = MinimalNavbar;
535
+
536
+ export {
537
+ MinimalNavbar,
538
+ navbar_aui_009_default
539
+ };