@publish.os/nextjs 0.0.1-alpha.4 → 0.0.1-alpha.6

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 (229) hide show
  1. package/README.md +1 -1
  2. package/dist/config/createNextConfig.js +3 -3
  3. package/dist/index.js +7 -5
  4. package/dist/kernel/components/blocks/color-palette.js +35 -4
  5. package/dist/kernel/components/blocks/design-system-preview.js +18 -17
  6. package/dist/kernel/components/blocks/link-playground.js +3 -3
  7. package/dist/kernel/components/blocks/logo-block.js +1 -1
  8. package/dist/kernel/components/blocks/nav-breadcrumb.js +2 -12
  9. package/dist/kernel/components/blocks/navbar.js +1 -1
  10. package/dist/kernel/components/blocks/navigation-progress-playground.js +2 -2
  11. package/dist/kernel/components/mdx/components/image.js +1 -1
  12. package/dist/kernel/components/ui/breadcrumb-trail.d.ts +3 -1
  13. package/dist/kernel/components/ui/breadcrumb-trail.js +1 -0
  14. package/dist/kernel/components/ui/breadcrumb.d.ts +1 -5
  15. package/dist/kernel/components/ui/breadcrumb.js +1 -16
  16. package/dist/kernel/components/ui/button-group.d.ts +2 -2
  17. package/dist/kernel/components/ui/button-group.js +2 -3
  18. package/dist/kernel/components/ui/button.d.ts +3 -4
  19. package/dist/kernel/components/ui/button.js +4 -12
  20. package/dist/kernel/components/ui/card.d.ts +1 -1
  21. package/dist/kernel/components/ui/menu.js +5 -5
  22. package/dist/kernel/components/ui/navigation-menu.js +2 -2
  23. package/dist/kernel/components/ui/popover.js +5 -11
  24. package/dist/kernel/components/ui/select.js +5 -5
  25. package/dist/kernel/components/ui/tag.d.ts +14 -0
  26. package/dist/kernel/components/ui/tag.js +76 -0
  27. package/dist/kernel/components/ui/text.d.ts +1 -1
  28. package/dist/kernel/components/ui/text.js +109 -106
  29. package/dist/kernel/components/ui/theme-toggle.js +1 -1
  30. package/dist/kernel/components/ui/tooltip.js +2 -2
  31. package/dist/kernel/defaults.registry.d.ts +63 -72
  32. package/dist/kernel/defaults.registry.js +62 -70
  33. package/dist/kernel/routes/agent/markdown.js +2 -2
  34. package/dist/kernel/routes/metadata/feed.js +2 -2
  35. package/dist/kernel/routes/metadata/llms.js +4 -2
  36. package/dist/kernel/routes/metadata/og-image.d.ts +1 -1
  37. package/dist/kernel/routes/metadata/robots.js +2 -2
  38. package/dist/kernel/routes/metadata/sitemap.js +2 -2
  39. package/dist/utils/cn.d.ts +1 -1
  40. package/package.json +4 -9
  41. package/release/package.json +4 -3
  42. package/release/release.json +5 -5
  43. package/release/{pnpm-lock.yaml → runtime-pnpm-lock.yaml} +348 -224
  44. package/dist/cache/tags.cjs +0 -79
  45. package/dist/cache/tags.d.cts +0 -13
  46. package/dist/config/createNextConfig.cjs +0 -52
  47. package/dist/config/createNextConfig.d.cts +0 -8
  48. package/dist/config.cjs +0 -78
  49. package/dist/config.d.cts +0 -101
  50. package/dist/config.d.ts +0 -101
  51. package/dist/config.js +0 -48
  52. package/dist/index.cjs +0 -1266
  53. package/dist/index.d.cts +0 -18
  54. package/dist/kernel/components/blocks/AgentActions.cjs +0 -425
  55. package/dist/kernel/components/blocks/AgentActions.d.cts +0 -52
  56. package/dist/kernel/components/blocks/animated-icon-swap.cjs +0 -101
  57. package/dist/kernel/components/blocks/animated-icon-swap.d.cts +0 -16
  58. package/dist/kernel/components/blocks/color-palette.cjs +0 -413
  59. package/dist/kernel/components/blocks/color-palette.d.cts +0 -7
  60. package/dist/kernel/components/blocks/design-system-preview.cjs +0 -592
  61. package/dist/kernel/components/blocks/design-system-preview.d.cts +0 -29
  62. package/dist/kernel/components/blocks/link-playground.cjs +0 -816
  63. package/dist/kernel/components/blocks/link-playground.d.cts +0 -5
  64. package/dist/kernel/components/blocks/logo-block.cjs +0 -156
  65. package/dist/kernel/components/blocks/logo-block.d.cts +0 -21
  66. package/dist/kernel/components/blocks/nav-breadcrumb.cjs +0 -122
  67. package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +0 -11
  68. package/dist/kernel/components/blocks/navbar.cjs +0 -154
  69. package/dist/kernel/components/blocks/navbar.d.cts +0 -16
  70. package/dist/kernel/components/blocks/navigation-progress-playground.cjs +0 -735
  71. package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +0 -5
  72. package/dist/kernel/components/blocks/navigation-progress.cjs +0 -270
  73. package/dist/kernel/components/blocks/navigation-progress.d.cts +0 -16
  74. package/dist/kernel/components/blocks/next-prev.cjs +0 -142
  75. package/dist/kernel/components/blocks/next-prev.d.cts +0 -11
  76. package/dist/kernel/components/blocks/page-list.cjs +0 -59
  77. package/dist/kernel/components/blocks/page-list.d.cts +0 -11
  78. package/dist/kernel/components/blocks/search.cjs +0 -717
  79. package/dist/kernel/components/blocks/search.d.cts +0 -77
  80. package/dist/kernel/components/blocks/sidebar-node.cjs +0 -309
  81. package/dist/kernel/components/blocks/sidebar-node.d.cts +0 -8
  82. package/dist/kernel/components/blocks/sidebar.cjs +0 -317
  83. package/dist/kernel/components/blocks/sidebar.d.cts +0 -33
  84. package/dist/kernel/components/blocks/theme-toggle.cjs +0 -31
  85. package/dist/kernel/components/blocks/theme-toggle.d.cts +0 -6
  86. package/dist/kernel/components/blocks/toc.cjs +0 -356
  87. package/dist/kernel/components/blocks/toc.d.cts +0 -10
  88. package/dist/kernel/components/mdx/components/blockquote.cjs +0 -66
  89. package/dist/kernel/components/mdx/components/blockquote.d.cts +0 -6
  90. package/dist/kernel/components/mdx/components/callout.cjs +0 -137
  91. package/dist/kernel/components/mdx/components/callout.d.cts +0 -18
  92. package/dist/kernel/components/mdx/components/code-block.cjs +0 -39
  93. package/dist/kernel/components/mdx/components/code-block.d.cts +0 -9
  94. package/dist/kernel/components/mdx/components/figure-caption.cjs +0 -63
  95. package/dist/kernel/components/mdx/components/figure-caption.d.cts +0 -6
  96. package/dist/kernel/components/mdx/components/figure.cjs +0 -78
  97. package/dist/kernel/components/mdx/components/figure.d.cts +0 -10
  98. package/dist/kernel/components/mdx/components/footnotes.cjs +0 -66
  99. package/dist/kernel/components/mdx/components/footnotes.d.cts +0 -6
  100. package/dist/kernel/components/mdx/components/heading-copy-link.cjs +0 -108
  101. package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +0 -23
  102. package/dist/kernel/components/mdx/components/heading.cjs +0 -166
  103. package/dist/kernel/components/mdx/components/heading.d.cts +0 -8
  104. package/dist/kernel/components/mdx/components/hr.cjs +0 -34
  105. package/dist/kernel/components/mdx/components/hr.d.cts +0 -9
  106. package/dist/kernel/components/mdx/components/image-zoom.cjs +0 -49
  107. package/dist/kernel/components/mdx/components/image-zoom.d.cts +0 -10
  108. package/dist/kernel/components/mdx/components/image.cjs +0 -192
  109. package/dist/kernel/components/mdx/components/image.d.cts +0 -21
  110. package/dist/kernel/components/mdx/components/inline-code.cjs +0 -66
  111. package/dist/kernel/components/mdx/components/inline-code.d.cts +0 -6
  112. package/dist/kernel/components/mdx/components/kbd.cjs +0 -34
  113. package/dist/kernel/components/mdx/components/kbd.d.cts +0 -10
  114. package/dist/kernel/components/mdx/components/link.cjs +0 -49
  115. package/dist/kernel/components/mdx/components/link.d.cts +0 -11
  116. package/dist/kernel/components/mdx/components/paragraph.cjs +0 -87
  117. package/dist/kernel/components/mdx/components/paragraph.d.cts +0 -5
  118. package/dist/kernel/components/mdx/components/pre.cjs +0 -66
  119. package/dist/kernel/components/mdx/components/pre.d.cts +0 -6
  120. package/dist/kernel/components/mdx/components/strikethrough.cjs +0 -63
  121. package/dist/kernel/components/mdx/components/strikethrough.d.cts +0 -6
  122. package/dist/kernel/components/mdx/components/table.cjs +0 -59
  123. package/dist/kernel/components/mdx/components/table.d.cts +0 -10
  124. package/dist/kernel/components/mdx/components/task-list.cjs +0 -88
  125. package/dist/kernel/components/mdx/components/task-list.d.cts +0 -8
  126. package/dist/kernel/components/mdx/components/video-player.cjs +0 -173
  127. package/dist/kernel/components/mdx/components/video-player.d.cts +0 -18
  128. package/dist/kernel/components/mdx/components/video.cjs +0 -185
  129. package/dist/kernel/components/mdx/components/video.d.cts +0 -15
  130. package/dist/kernel/components/mdx/error-boundary.cjs +0 -62
  131. package/dist/kernel/components/mdx/error-boundary.d.cts +0 -8
  132. package/dist/kernel/components/mdx/error-fallback.cjs +0 -58
  133. package/dist/kernel/components/mdx/error-fallback.d.cts +0 -9
  134. package/dist/kernel/components/mdx/mdx.cjs +0 -141
  135. package/dist/kernel/components/mdx/mdx.d.cts +0 -22
  136. package/dist/kernel/components/mdx/rehype-heading-ids.cjs +0 -113
  137. package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +0 -10
  138. package/dist/kernel/components/mdx/types.cjs +0 -18
  139. package/dist/kernel/components/mdx/types.d.cts +0 -18
  140. package/dist/kernel/components/ui/accordion.cjs +0 -104
  141. package/dist/kernel/components/ui/accordion.d.cts +0 -16
  142. package/dist/kernel/components/ui/badge.cjs +0 -75
  143. package/dist/kernel/components/ui/badge.d.cts +0 -12
  144. package/dist/kernel/components/ui/badge.d.ts +0 -12
  145. package/dist/kernel/components/ui/badge.js +0 -47
  146. package/dist/kernel/components/ui/breadcrumb-trail.cjs +0 -238
  147. package/dist/kernel/components/ui/breadcrumb-trail.d.cts +0 -13
  148. package/dist/kernel/components/ui/breadcrumb.cjs +0 -399
  149. package/dist/kernel/components/ui/breadcrumb.d.cts +0 -52
  150. package/dist/kernel/components/ui/button-group.cjs +0 -144
  151. package/dist/kernel/components/ui/button-group.d.cts +0 -19
  152. package/dist/kernel/components/ui/button.cjs +0 -147
  153. package/dist/kernel/components/ui/button.d.cts +0 -23
  154. package/dist/kernel/components/ui/card.cjs +0 -133
  155. package/dist/kernel/components/ui/card.d.cts +0 -17
  156. package/dist/kernel/components/ui/dialog.cjs +0 -149
  157. package/dist/kernel/components/ui/dialog.d.cts +0 -22
  158. package/dist/kernel/components/ui/drawer.cjs +0 -163
  159. package/dist/kernel/components/ui/drawer.d.cts +0 -24
  160. package/dist/kernel/components/ui/input.cjs +0 -96
  161. package/dist/kernel/components/ui/input.d.cts +0 -18
  162. package/dist/kernel/components/ui/kbd.cjs +0 -105
  163. package/dist/kernel/components/ui/kbd.d.cts +0 -13
  164. package/dist/kernel/components/ui/link.cjs +0 -253
  165. package/dist/kernel/components/ui/link.d.cts +0 -31
  166. package/dist/kernel/components/ui/menu.cjs +0 -301
  167. package/dist/kernel/components/ui/menu.d.cts +0 -70
  168. package/dist/kernel/components/ui/meta-key.cjs +0 -34
  169. package/dist/kernel/components/ui/meta-key.d.cts +0 -12
  170. package/dist/kernel/components/ui/navigation-menu.cjs +0 -253
  171. package/dist/kernel/components/ui/navigation-menu.d.cts +0 -47
  172. package/dist/kernel/components/ui/popover.cjs +0 -168
  173. package/dist/kernel/components/ui/popover.d.cts +0 -24
  174. package/dist/kernel/components/ui/progress.cjs +0 -112
  175. package/dist/kernel/components/ui/progress.d.cts +0 -16
  176. package/dist/kernel/components/ui/scroll-area.cjs +0 -413
  177. package/dist/kernel/components/ui/scroll-area.d.cts +0 -58
  178. package/dist/kernel/components/ui/select.cjs +0 -244
  179. package/dist/kernel/components/ui/select.d.cts +0 -40
  180. package/dist/kernel/components/ui/separator.cjs +0 -73
  181. package/dist/kernel/components/ui/separator.d.cts +0 -8
  182. package/dist/kernel/components/ui/table.cjs +0 -131
  183. package/dist/kernel/components/ui/table.d.cts +0 -11
  184. package/dist/kernel/components/ui/tabs.cjs +0 -450
  185. package/dist/kernel/components/ui/tabs.d.cts +0 -82
  186. package/dist/kernel/components/ui/text.cjs +0 -184
  187. package/dist/kernel/components/ui/text.d.cts +0 -17
  188. package/dist/kernel/components/ui/theme-toggle.cjs +0 -108
  189. package/dist/kernel/components/ui/theme-toggle.d.cts +0 -10
  190. package/dist/kernel/components/ui/toast.cjs +0 -154
  191. package/dist/kernel/components/ui/toast.d.cts +0 -26
  192. package/dist/kernel/components/ui/tooltip.cjs +0 -127
  193. package/dist/kernel/components/ui/tooltip.d.cts +0 -20
  194. package/dist/kernel/defaults.registry.cjs +0 -541
  195. package/dist/kernel/defaults.registry.d.cts +0 -469
  196. package/dist/kernel/routes/agent/markdown.cjs +0 -202
  197. package/dist/kernel/routes/agent/markdown.d.cts +0 -58
  198. package/dist/kernel/routes/layouts/group.cjs +0 -181
  199. package/dist/kernel/routes/layouts/group.d.cts +0 -20
  200. package/dist/kernel/routes/metadata/feed.cjs +0 -293
  201. package/dist/kernel/routes/metadata/feed.d.cts +0 -20
  202. package/dist/kernel/routes/metadata/llms.cjs +0 -239
  203. package/dist/kernel/routes/metadata/llms.d.cts +0 -26
  204. package/dist/kernel/routes/metadata/og-image.cjs +0 -630
  205. package/dist/kernel/routes/metadata/og-image.d.cts +0 -62
  206. package/dist/kernel/routes/metadata/robots.cjs +0 -148
  207. package/dist/kernel/routes/metadata/robots.d.cts +0 -6
  208. package/dist/kernel/routes/metadata/sitemap.cjs +0 -192
  209. package/dist/kernel/routes/metadata/sitemap.d.cts +0 -8
  210. package/dist/kernel/routes/pages/group.cjs +0 -263
  211. package/dist/kernel/routes/pages/group.d.cts +0 -17
  212. package/dist/kernel/routes/pages/leaf.cjs +0 -421
  213. package/dist/kernel/routes/pages/leaf.d.cts +0 -36
  214. package/dist/kernel/routes/pages/root.cjs +0 -229
  215. package/dist/kernel/routes/pages/root.d.cts +0 -16
  216. package/dist/keyboard-shortcuts.cjs +0 -345
  217. package/dist/keyboard-shortcuts.d.cts +0 -34
  218. package/dist/resolvers/manifest-resolver.cjs +0 -111
  219. package/dist/resolvers/manifest-resolver.d.cts +0 -13
  220. package/dist/search.cjs +0 -411
  221. package/dist/search.d.cts +0 -20
  222. package/dist/types.cjs +0 -30
  223. package/dist/types.d.cts +0 -269
  224. package/dist/utils/cn.cjs +0 -49
  225. package/dist/utils/cn.d.cts +0 -15
  226. package/dist/utils/heading-ids.cjs +0 -119
  227. package/dist/utils/heading-ids.d.cts +0 -15
  228. package/dist/utils/pretty-date.cjs +0 -55
  229. package/dist/utils/pretty-date.d.cts +0 -6
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @publish.os/nextjs
2
2
 
3
- PublishOS runtime package for generated Next.js applications. Tenant source
3
+ PublishOS runtime package for generated Next.js applications. Project source
4
4
  pins its exact version in `publish.os.config.json`; the CLI obtains and verifies
5
5
  it automatically. Do not install it into the host application.
6
6
 
@@ -5,9 +5,9 @@ function createNextConfig(_options) {
5
5
  cacheComponents: true,
6
6
  cacheLife: {
7
7
  page: {
8
- stale: 60 * 60 * 24,
9
- revalidate: 60 * 60 * 24 * 30,
10
- expire: 60 * 60 * 24 * 365
8
+ stale: 60 * 5,
9
+ revalidate: 60 * 60,
10
+ expire: 60 * 60 * 24
11
11
  },
12
12
  feed: {
13
13
  stale: 60 * 60,
package/dist/index.js CHANGED
@@ -57,9 +57,9 @@ function createNextConfig(_options) {
57
57
  cacheComponents: true,
58
58
  cacheLife: {
59
59
  page: {
60
- stale: 60 * 60 * 24,
61
- revalidate: 60 * 60 * 24 * 30,
62
- expire: 60 * 60 * 24 * 365
60
+ stale: 60 * 5,
61
+ revalidate: 60 * 60,
62
+ expire: 60 * 60 * 24
63
63
  },
64
64
  feed: {
65
65
  stale: 60 * 60,
@@ -111,8 +111,8 @@ function PageList({ tree, currentPath, className }) {
111
111
  import { cacheLife, cacheTag } from "next/cache";
112
112
 
113
113
  // src/kernel/routes/response.ts
114
- var CACHE_CONTROL = "public, max-age=300, s-maxage=86400, stale-while-revalidate=3600, must-revalidate";
115
- var CDN_CACHE_CONTROL = "public, max-age=2592000, stale-while-revalidate=31536000";
114
+ var CACHE_CONTROL = "public, max-age=300, s-maxage=3600, stale-while-revalidate=3600, must-revalidate";
115
+ var CDN_CACHE_CONTROL = "public, max-age=3600, stale-while-revalidate=3600, must-revalidate";
116
116
  var SHORT_CACHE_CONTROL = "public, max-age=60, s-maxage=600, stale-while-revalidate=300, must-revalidate";
117
117
  var SHORT_CDN_CACHE_CONTROL = "public, max-age=300, stale-while-revalidate=3600";
118
118
  function cacheControl(policy) {
@@ -344,6 +344,8 @@ ${linkLines.join("\n")}` : "";
344
344
 
345
345
  ${llmsSummary(manifest)}
346
346
 
347
+ ## Pages
348
+
347
349
  ${lines.join("\n")}${linkSection}
348
350
  `;
349
351
  }
@@ -38,9 +38,34 @@ var DEFAULT_TOKEN_NAMES = [
38
38
  "surface-hover",
39
39
  "surface-active",
40
40
  "surface-overlay",
41
- "surface-menu",
42
- "surface-menu-border",
43
- "surface-menu-foreground",
41
+ "menu-surface-1",
42
+ "menu-surface-2",
43
+ "menu-surface-3",
44
+ "menu-surface-4",
45
+ "menu-foreground-1",
46
+ "menu-foreground-2",
47
+ "menu-foreground-3",
48
+ "menu-foreground-4",
49
+ "menu-highlight-surface",
50
+ "menu-highlight-foreground",
51
+ "menu-option-highlight-surface",
52
+ "menu-option-highlight-foreground",
53
+ "menu-stroke-1",
54
+ "menu-stroke-2",
55
+ "menu-stroke-3",
56
+ "menu-stroke-4",
57
+ "tooltip-surface-1",
58
+ "tooltip-surface-2",
59
+ "tooltip-surface-3",
60
+ "tooltip-surface-4",
61
+ "tooltip-foreground-1",
62
+ "tooltip-foreground-2",
63
+ "tooltip-foreground-3",
64
+ "tooltip-foreground-4",
65
+ "tooltip-stroke-1",
66
+ "tooltip-stroke-2",
67
+ "tooltip-stroke-3",
68
+ "tooltip-stroke-4",
44
69
  "accent-1",
45
70
  "accent-solid",
46
71
  "accent-solid-hover",
@@ -132,13 +157,19 @@ function deriveTokenGroup(name) {
132
157
  var COLOR_TOKEN_PREFIXES = [
133
158
  "accent-",
134
159
  "color-",
160
+ "danger-",
135
161
  "focus-ring",
136
162
  "foreground-",
163
+ "info-",
137
164
  "kitchen-sink-",
165
+ "menu-",
138
166
  "palette-",
167
+ "success-",
139
168
  "stroke-",
140
169
  "surface-",
141
- "typography-"
170
+ "tooltip-",
171
+ "typography-",
172
+ "warning-"
142
173
  ];
143
174
  function isColorTokenName(name) {
144
175
  if (name.startsWith("tw-")) return false;
@@ -11,7 +11,6 @@ import {
11
11
  AccordionPanel,
12
12
  AccordionTrigger
13
13
  } from "../ui/accordion.js";
14
- import { Badge } from "../ui/badge.js";
15
14
  import {
16
15
  Breadcrumb,
17
16
  BreadcrumbItem,
@@ -108,6 +107,7 @@ import {
108
107
  TabsPanel,
109
108
  TabsTab
110
109
  } from "../ui/tabs.js";
110
+ import { Tag } from "../ui/tag.js";
111
111
  import { Text } from "../ui/text.js";
112
112
  import {
113
113
  Toast,
@@ -175,15 +175,15 @@ function UiPreview({ items = [] }) {
175
175
  return /* @__PURE__ */ jsxs("div", { className: "grid border-l border-t border-stroke-3 md:grid-cols-2 xl:grid-cols-4", children: [
176
176
  items.map((item) => /* @__PURE__ */ jsx(PreviewCell, { name: item.name, children: item.children }, item.name)),
177
177
  !hasFixture(items, "Button") && /* @__PURE__ */ jsx(PreviewCell, { name: "Button", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
178
- /* @__PURE__ */ jsx(Button, { children: "Primary" }),
179
- /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Secondary" }),
178
+ /* @__PURE__ */ jsx(Button, { children: "Solid" }),
179
+ /* @__PURE__ */ jsx(Button, { variant: "soft", children: "Soft" }),
180
180
  /* @__PURE__ */ jsx(Button, { disabled: true, variant: "outline", children: "Disabled" })
181
181
  ] }) }),
182
182
  /* @__PURE__ */ jsx(PreviewCell, { name: "ButtonGroup", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-4", children: [
183
183
  /* @__PURE__ */ jsxs(ButtonGroup, { children: [
184
- /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Draft" }),
185
- /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Preview" }),
186
- /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Publish" })
184
+ /* @__PURE__ */ jsx(Button, { variant: "soft", children: "Draft" }),
185
+ /* @__PURE__ */ jsx(Button, { variant: "soft", children: "Preview" }),
186
+ /* @__PURE__ */ jsx(Button, { variant: "soft", children: "Publish" })
187
187
  ] }),
188
188
  /* @__PURE__ */ jsxs(ButtonGroup, { children: [
189
189
  /* @__PURE__ */ jsx(ButtonGroupText, { size: "sm", children: "v1.2.0" }),
@@ -191,14 +191,15 @@ function UiPreview({ items = [] }) {
191
191
  /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", children: "Copy" })
192
192
  ] }),
193
193
  /* @__PURE__ */ jsxs(ButtonGroup, { orientation: "vertical", children: [
194
- /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Move up" }),
195
- /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Move down" })
194
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "soft", children: "Move up" }),
195
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "soft", children: "Move down" })
196
196
  ] })
197
197
  ] }) }),
198
- /* @__PURE__ */ jsx(PreviewCell, { name: "Badge", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-2", children: [
199
- /* @__PURE__ */ jsx(Badge, { variant: "primary", children: "Primary" }),
200
- /* @__PURE__ */ jsx(Badge, { children: "Default" }),
201
- /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Outline" })
198
+ /* @__PURE__ */ jsx(PreviewCell, { name: "Tag", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-2", children: [
199
+ /* @__PURE__ */ jsx(Tag, { children: "Solid" }),
200
+ /* @__PURE__ */ jsx(Tag, { variant: "soft", children: "Soft" }),
201
+ /* @__PURE__ */ jsx(Tag, { variant: "outline", children: "Outline" }),
202
+ /* @__PURE__ */ jsx(Tag, { borderStyle: "dotted", tone: "accent", variant: "soft", children: "Beta" })
202
203
  ] }) }),
203
204
  /* @__PURE__ */ jsx(PreviewCell, { name: "Input", children: /* @__PURE__ */ jsxs(
204
205
  "label",
@@ -242,7 +243,7 @@ function UiPreview({ items = [] }) {
242
243
  }
243
244
  ),
244
245
  /* @__PURE__ */ jsx(Link, { color: "accent", disabled: true, href: "#", variant: "link.standalone", children: "Disabled link" }),
245
- /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", variant: "button.primary", children: "Link as button" })
246
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", variant: "button.solid", children: "Link as button" })
246
247
  ] }) }),
247
248
  /* @__PURE__ */ jsx(PreviewCell, { name: "Link colors", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
248
249
  /* @__PURE__ */ jsx(Link, { href: "/ds", color: "green-300", children: "Docs" }),
@@ -287,8 +288,8 @@ function UiPreview({ items = [] }) {
287
288
  ] }) }),
288
289
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
289
290
  /* @__PURE__ */ jsx(Link, { href: "#", variant: "link.inline", children: "Link inline" }),
290
- /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", variant: "button.secondary", children: "Link button" }),
291
- /* @__PURE__ */ jsx(Button, { size: "sm", variant: "secondary", children: "Button" })
291
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "sm", variant: "button.soft", children: "Link button" }),
292
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "soft", children: "Button" })
292
293
  ] })
293
294
  ] }) }),
294
295
  /* @__PURE__ */ jsx(PreviewCell, { name: "Text", children: /* @__PURE__ */ jsxs("div", { className: "max-w-xs space-y-2", children: [
@@ -476,7 +477,7 @@ function MdxPreview({ items = [] }) {
476
477
  !hasFixture(items, "Link") && /* @__PURE__ */ jsx(PreviewCell, { name: "Link", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
477
478
  /* @__PURE__ */ jsx(Link, { color: "default", href: "/ds", variant: "link.standalone", children: "Default standalone" }),
478
479
  /* @__PURE__ */ jsx(Link, { color: "accent", href: "/ds", variant: "link.inline", children: "Accent inline" }),
479
- /* @__PURE__ */ jsx(Link, { href: "/ds", size: "sm", variant: "button.primary", children: "Button link" })
480
+ /* @__PURE__ */ jsx(Link, { href: "/ds", size: "sm", variant: "button.solid", children: "Button link" })
480
481
  ] }) }),
481
482
  /* @__PURE__ */ jsx(PreviewCell, { name: "MDX Links", children: /* @__PURE__ */ jsxs("div", { className: "max-w-md space-y-4 text-sm leading-7 text-foreground-2", children: [
482
483
  /* @__PURE__ */ jsxs("p", { children: [
@@ -545,7 +546,7 @@ function CopyToClipboardPreview() {
545
546
  }
546
547
  ),
547
548
  onClick: handleCopy,
548
- variant: "secondary",
549
+ variant: "soft",
549
550
  children: "Copy"
550
551
  }
551
552
  );
@@ -326,7 +326,7 @@ function LinkSet({ settings }) {
326
326
  children: "Disabled link"
327
327
  }
328
328
  ),
329
- /* @__PURE__ */ jsx(Link, { href: "#", size: "lg", variant: "button.primary", children: "Link as button" })
329
+ /* @__PURE__ */ jsx(Link, { href: "#", size: "lg", variant: "button.solid", children: "Link as button" })
330
330
  ] });
331
331
  }
332
332
  function SizeScale({ settings }) {
@@ -518,7 +518,7 @@ function LinkPlayground() {
518
518
  ] }),
519
519
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
520
520
  /* @__PURE__ */ jsx(Button, { onClick: reset, size: "xs", variant: "outline", children: "Reset" }),
521
- /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "xs", variant: "secondary", children: copyState === "copied" ? "Copied" : "Copy" })
521
+ /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "xs", variant: "soft", children: copyState === "copied" ? "Copied" : "Copy" })
522
522
  ] })
523
523
  ] }) }),
524
524
  /* @__PURE__ */ jsxs("div", { className: "grid gap-4 border-b border-stroke-3 px-4 py-5", children: [
@@ -780,7 +780,7 @@ function LinkPlayground() {
780
780
  value: output
781
781
  }
782
782
  ),
783
- /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "sm", variant: "secondary", children: copyState === "copied" ? "Copied output" : "Copy output" })
783
+ /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "sm", variant: "soft", children: copyState === "copied" ? "Copied output" : "Copy output" })
784
784
  ] }) })
785
785
  ] })
786
786
  ] })
@@ -58,7 +58,7 @@ function LogoBlockImage({
58
58
  siteName
59
59
  }) {
60
60
  return (
61
- // biome-ignore lint/performance/noImgElement: Tenant-provided logos are public SVG/raster files and need browser-native intrinsic sizing.
61
+ // biome-ignore lint/performance/noImgElement: Project-provided logos are public SVG/raster files and need browser-native intrinsic sizing.
62
62
  /* @__PURE__ */ jsx(
63
63
  "img",
64
64
  {
@@ -1,7 +1,5 @@
1
1
  // src/kernel/components/blocks/nav-breadcrumb.tsx
2
- import {
3
- BreadcrumbTrail
4
- } from "../ui/breadcrumb.js";
2
+ import { CollapsibleBreadcrumbTrail } from "../ui/breadcrumb-trail.js";
5
3
  import { jsx } from "react/jsx-runtime";
6
4
  function titleFor(node) {
7
5
  return node.title;
@@ -84,15 +82,7 @@ function NavBreadcrumb({
84
82
  title: crumb.title
85
83
  }));
86
84
  if (items.length === 0) return null;
87
- return /* @__PURE__ */ jsx(
88
- BreadcrumbTrail,
89
- {
90
- collapseAfter: 1,
91
- collapseBefore: 2,
92
- items,
93
- size: "sm"
94
- }
95
- );
85
+ return /* @__PURE__ */ jsx(CollapsibleBreadcrumbTrail, { items, size: "sm" });
96
86
  }
97
87
  export {
98
88
  NavBreadcrumb
@@ -109,7 +109,7 @@ function Navbar({
109
109
  href: "/",
110
110
  rightIcon: /* @__PURE__ */ jsx(ArrowRight, { "aria-hidden": "true", size: 14 }),
111
111
  size: "sm",
112
- variant: "button.primary",
112
+ variant: "button.solid",
113
113
  children: "Start"
114
114
  }
115
115
  ),
@@ -464,7 +464,7 @@ function NavigationProgressPlayground() {
464
464
  /* @__PURE__ */ jsx("h1", { className: "text-sm font-semibold text-foreground-1", children: "Navigation Progress" }),
465
465
  /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs leading-5 text-foreground-3", children: "Tune, trigger, copy." })
466
466
  ] }),
467
- /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "xs", variant: "secondary", children: copyState === "copied" ? "Copied" : "Copy" })
467
+ /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "xs", variant: "soft", children: copyState === "copied" ? "Copied" : "Copy" })
468
468
  ] }) }),
469
469
  /* @__PURE__ */ jsxs("div", { className: "border-b border-stroke-3 px-4 py-4", children: [
470
470
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-1 rounded-button border border-stroke-2 bg-surface-2 p-1", children: presetOrder.map((preset) => /* @__PURE__ */ jsx(
@@ -710,7 +710,7 @@ function NavigationProgressPlayground() {
710
710
  value: output
711
711
  }
712
712
  ),
713
- /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "sm", variant: "secondary", children: copyState === "copied" ? "Copied output" : "Copy output" })
713
+ /* @__PURE__ */ jsx(Button, { onClick: copyOutput, size: "sm", variant: "soft", children: copyState === "copied" ? "Copied output" : "Copy output" })
714
714
  ] }) })
715
715
  ] })
716
716
  ] })
@@ -118,7 +118,7 @@ function Image({
118
118
  }
119
119
  )
120
120
  ) : (
121
- // biome-ignore lint/performance/noImgElement: MDX media supports generated tenant assets, SVGs, and remote CDN images without requiring Next image optimizer configuration.
121
+ // biome-ignore lint/performance/noImgElement: MDX media supports generated project assets, SVGs, and remote CDN images without requiring Next image optimizer configuration.
122
122
  /* @__PURE__ */ jsx(
123
123
  "img",
124
124
  {
@@ -7,7 +7,9 @@ import 'class-variance-authority';
7
7
  import 'react';
8
8
  import 'next/link';
9
9
 
10
- type CollapsibleBreadcrumbTrailProps = Omit<BreadcrumbTrailProps, "collapseAfter" | "collapseBefore" | "collapsed">;
10
+ type CollapsibleBreadcrumbTrailProps = BreadcrumbTrailProps & {
11
+ menuLabel?: string;
12
+ };
11
13
  declare function CollapsibleBreadcrumbTrail({ className, items, menuLabel, size, variant, }: CollapsibleBreadcrumbTrailProps): react_jsx_runtime.JSX.Element;
12
14
 
13
15
  export { CollapsibleBreadcrumbTrail, type CollapsibleBreadcrumbTrailProps };
@@ -182,6 +182,7 @@ function CollapsibleBreadcrumbTrail({
182
182
  {
183
183
  "aria-hidden": "true",
184
184
  className: "pointer-events-none absolute left-0 top-0 h-0 overflow-hidden",
185
+ inert: true,
185
186
  style: { visibility: "hidden" },
186
187
  children: /* @__PURE__ */ jsxs(
187
188
  "ol",
@@ -34,11 +34,7 @@ type BreadcrumbTrailItem = {
34
34
  };
35
35
  type BreadcrumbTrailProps = {
36
36
  className?: string;
37
- collapseAfter?: number;
38
- collapseBefore?: number;
39
- collapsed?: boolean;
40
37
  items: BreadcrumbTrailItem[];
41
- menuLabel?: string;
42
38
  } & BreadcrumbSizeProps & BreadcrumbStyleProps;
43
39
  declare function BreadcrumbTrailEntry({ item, size, variant, }: {
44
40
  item: BreadcrumbTrailItem;
@@ -47,6 +43,6 @@ declare function BreadcrumbTrailMenu({ hidden, menuLabel, size, }: {
47
43
  hidden: BreadcrumbTrailItem[];
48
44
  menuLabel: string;
49
45
  } & BreadcrumbSizeProps & BreadcrumbStyleProps): react_jsx_runtime.JSX.Element;
50
- declare function BreadcrumbTrail({ className, collapsed, items, menuLabel, size, variant, }: BreadcrumbTrailProps): react_jsx_runtime.JSX.Element;
46
+ declare function BreadcrumbTrail({ className, items, size, variant, }: BreadcrumbTrailProps): react_jsx_runtime.JSX.Element;
51
47
 
52
48
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BreadcrumbStyleVariant, BreadcrumbTrail, BreadcrumbTrailEntry, type BreadcrumbTrailItem, BreadcrumbTrailMenu, type BreadcrumbTrailProps, type BreadcrumbVariantProps, breadcrumbVariants };
@@ -1,5 +1,4 @@
1
1
  // src/kernel/components/ui/breadcrumb.tsx
2
- import { CollapsibleBreadcrumbTrail } from "./breadcrumb-trail.js";
3
2
  import { buttonVariants } from "./button.js";
4
3
  import {
5
4
  linkVariants
@@ -268,7 +267,7 @@ function BreadcrumbEllipsis({
268
267
  role: "presentation",
269
268
  ...props,
270
269
  children: [
271
- "...",
270
+ "\u2026",
272
271
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
273
272
  ]
274
273
  }
@@ -327,24 +326,10 @@ function BreadcrumbTrailMenu({
327
326
  }
328
327
  function BreadcrumbTrail({
329
328
  className,
330
- collapsed = false,
331
329
  items,
332
- menuLabel = "Show hidden breadcrumb links",
333
330
  size,
334
331
  variant
335
332
  }) {
336
- if (collapsed) {
337
- return /* @__PURE__ */ jsx(
338
- CollapsibleBreadcrumbTrail,
339
- {
340
- className,
341
- items,
342
- menuLabel,
343
- size,
344
- variant
345
- }
346
- );
347
- }
348
333
  return /* @__PURE__ */ jsx(Breadcrumb, { className, children: /* @__PURE__ */ jsx(BreadcrumbList, { className: "flex-nowrap overflow-hidden", size, children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
349
334
  index > 0 ? /* @__PURE__ */ jsx(BreadcrumbSeparator, { className: "shrink-0", size }) : null,
350
335
  /* @__PURE__ */ jsx(BreadcrumbTrailEntry, { item, size, variant })
@@ -11,8 +11,8 @@ declare const buttonGroupVariants: (props?: ({
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & VariantProps<typeof buttonGroupVariants>;
13
13
  declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
14
- type ButtonGroupTextProps = Omit<ComponentPropsWithoutRef<"div">, "color"> & Pick<ButtonVariantProps, "color" | "size" | "variant">;
15
- declare function ButtonGroupText({ className, color, size, variant, ...props }: ButtonGroupTextProps): react_jsx_runtime.JSX.Element;
14
+ type ButtonGroupTextProps = Omit<ComponentPropsWithoutRef<"div">, "color"> & Pick<ButtonVariantProps, "size" | "variant">;
15
+ declare function ButtonGroupText({ className, size, variant, ...props }: ButtonGroupTextProps): react_jsx_runtime.JSX.Element;
16
16
  type ButtonGroupSeparatorProps = SeparatorProps;
17
17
  declare function ButtonGroupSeparator({ className, orientation, ...props }: ButtonGroupSeparatorProps): react_jsx_runtime.JSX.Element;
18
18
 
@@ -72,16 +72,15 @@ function ButtonGroup({
72
72
  }
73
73
  function ButtonGroupText({
74
74
  className,
75
- color,
76
75
  size,
77
- variant = "secondary",
76
+ variant = "soft",
78
77
  ...props
79
78
  }) {
80
79
  return /* @__PURE__ */ jsx(
81
80
  "div",
82
81
  {
83
82
  className: cn(
84
- buttonVariants({ color, iconOnly: false, size, variant }),
83
+ buttonVariants({ iconOnly: false, size, variant }),
85
84
  "pointer-events-none",
86
85
  className
87
86
  ),
@@ -4,10 +4,9 @@ import { VariantProps } from 'class-variance-authority';
4
4
  import { ReactNode, ButtonHTMLAttributes } from 'react';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
7
+ variant?: "solid" | "soft" | "outline" | "ghost" | null | undefined;
8
8
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
9
9
  iconOnly?: boolean | null | undefined;
10
- color?: "default" | null | undefined;
11
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
11
  type ButtonVariantProps = VariantProps<typeof buttonVariants>;
13
12
  type ButtonProps = {
@@ -17,7 +16,7 @@ type ButtonProps = {
17
16
  leftIcon?: ReactNode;
18
17
  loading?: boolean;
19
18
  rightIcon?: ReactNode;
20
- } & ButtonVariantProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className" | "color">;
21
- declare function Button({ active, children, className, color, disabled, iconOnly, leftIcon, loading, rightIcon, size, type, variant, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
19
+ } & ButtonVariantProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
20
+ declare function Button({ active, children, className, disabled, iconOnly, leftIcon, loading, rightIcon, size, type, variant, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
22
21
 
23
22
  export { Button, type ButtonProps, type ButtonVariantProps, buttonVariants };
@@ -36,8 +36,8 @@ var buttonVariants = cva(
36
36
  {
37
37
  variants: {
38
38
  variant: {
39
- primary: "border-accent-solid bg-accent-solid text-accent-foreground shadow-sm hover:not-data-disabled:border-accent-solid-hover hover:not-data-disabled:bg-accent-solid-hover active:not-data-disabled:border-accent-solid-active active:not-data-disabled:bg-accent-solid-active data-[state=path-active]:border-accent-solid-hover data-[state=path-active]:bg-accent-solid-hover",
40
- secondary: "border-stroke-2 bg-surface-2 text-foreground-1 hover:not-data-disabled:bg-surface-hover active:not-data-disabled:bg-surface-active data-[state=path-active]:border-accent-border data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1",
39
+ solid: "border-accent-solid bg-accent-solid text-accent-foreground shadow-sm hover:not-data-disabled:border-accent-solid-hover hover:not-data-disabled:bg-accent-solid-hover active:not-data-disabled:border-accent-solid-active active:not-data-disabled:bg-accent-solid-active data-[state=path-active]:border-accent-solid-hover data-[state=path-active]:bg-accent-solid-hover",
40
+ soft: "border-0 bg-accent-soft text-accent-1 hover:not-data-disabled:bg-accent-soft-hover active:not-data-disabled:bg-accent-soft-active data-[state=path-active]:bg-accent-soft-active",
41
41
  outline: "border-stroke-2 bg-transparent text-foreground-1 hover:not-data-disabled:bg-surface-hover active:not-data-disabled:bg-surface-active data-[state=path-active]:border-accent-border data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1",
42
42
  ghost: "border-transparent bg-transparent text-foreground-2 hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1 active:not-data-disabled:bg-surface-active data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1"
43
43
  },
@@ -51,9 +51,6 @@ var buttonVariants = cva(
51
51
  iconOnly: {
52
52
  false: "",
53
53
  true: "gap-0 px-0"
54
- },
55
- color: {
56
- default: ""
57
54
  }
58
55
  },
59
56
  compoundVariants: [
@@ -64,10 +61,9 @@ var buttonVariants = cva(
64
61
  { className: "size-12 p-0", iconOnly: true, size: "xl" }
65
62
  ],
66
63
  defaultVariants: {
67
- color: "default",
68
64
  iconOnly: false,
69
65
  size: "md",
70
- variant: "primary"
66
+ variant: "solid"
71
67
  }
72
68
  }
73
69
  );
@@ -84,7 +80,6 @@ function Button({
84
80
  active,
85
81
  children,
86
82
  className,
87
- color,
88
83
  disabled,
89
84
  iconOnly,
90
85
  leftIcon,
@@ -98,10 +93,7 @@ function Button({
98
93
  return /* @__PURE__ */ jsxs(
99
94
  BaseButton,
100
95
  {
101
- className: cn(
102
- buttonVariants({ color, iconOnly, size, variant }),
103
- className
104
- ),
96
+ className: cn(buttonVariants({ iconOnly, size, variant }), className),
105
97
  "data-state": active ? "path-active" : void 0,
106
98
  disabled: disabled || loading,
107
99
  focusableWhenDisabled: loading,
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
  import { HTMLAttributes } from 'react';
5
5
 
6
6
  declare const cardVariants: (props?: ({
7
- variant?: "ghost" | "default" | "inset" | "elevated" | null | undefined;
7
+ variant?: "ghost" | "inset" | "default" | "elevated" | null | undefined;
8
8
  padding?: "sm" | "md" | "lg" | "none" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  type CardProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>;
@@ -74,7 +74,7 @@ function MenuPopup({ className, ...props }) {
74
74
  BaseMenu.Popup,
75
75
  {
76
76
  className: cn(
77
- "animate-popup min-w-44 rounded-popup border border-[color:var(--surface-menu-border)] bg-surface-menu p-1 text-surface-menu-foreground shadow-lg outline-none",
77
+ "animate-popup min-w-44 rounded-popup border border-[color:var(--menu-stroke-3)] bg-menu-surface-1 p-1 text-menu-foreground-1 shadow-lg outline-none [--text-foreground:var(--menu-foreground-1)] [--text-muted-foreground:var(--menu-foreground-4)]",
78
78
  className
79
79
  ),
80
80
  ...props
@@ -85,7 +85,7 @@ function MenuArrow({ className, ...props }) {
85
85
  return /* @__PURE__ */ jsx(
86
86
  BaseMenu.Arrow,
87
87
  {
88
- className: cn("fill-surface-menu text-surface-menu", className),
88
+ className: cn("fill-menu-surface-1 text-menu-surface-1", className),
89
89
  ...props
90
90
  }
91
91
  );
@@ -94,8 +94,8 @@ function MenuViewport({ className, ...props }) {
94
94
  return /* @__PURE__ */ jsx(BaseMenu.Viewport, { className: cn("outline-none", className), ...props });
95
95
  }
96
96
  var menuItemClassName = [
97
- "flex cursor-default select-none items-center gap-2 rounded-[max(calc(var(--radius-popup)_-_0.25rem),0px)] px-2 py-1.5 text-sm text-surface-menu-foreground outline-none",
98
- "data-[highlighted]:bg-surface-menu-hover data-[highlighted]:text-surface-menu-hover-foreground data-[state=checked]:bg-surface-menu-active data-[state=checked]:text-surface-menu-active-foreground data-disabled:pointer-events-none data-disabled:text-surface-menu-disabled-foreground"
97
+ "flex cursor-default select-none items-center gap-2 rounded-[max(calc(var(--radius-popup)_-_0.25rem),0px)] px-2 py-1.5 text-sm text-menu-foreground-1 outline-none",
98
+ "data-[highlighted]:bg-menu-highlight-surface data-[highlighted]:text-menu-highlight-foreground data-[state=checked]:bg-menu-surface-4 data-[state=checked]:text-menu-foreground-1 data-[state=checked]:data-[highlighted]:bg-menu-highlight-surface data-[state=checked]:data-[highlighted]:text-menu-highlight-foreground data-disabled:pointer-events-none data-disabled:text-menu-foreground-4"
99
99
  ].join(" ");
100
100
  function MenuItem({ className, ...props }) {
101
101
  return /* @__PURE__ */ jsx(BaseMenu.Item, { className: cn(menuItemClassName, className), ...props });
@@ -190,7 +190,7 @@ function MenuGroupLabel({ className, ...props }) {
190
190
  BaseMenu.GroupLabel,
191
191
  {
192
192
  className: cn(
193
- "px-2 py-1 text-xs font-medium text-surface-menu-disabled-foreground",
193
+ "px-2 py-1 text-xs font-medium text-menu-foreground-4",
194
194
  className
195
195
  ),
196
196
  ...props
@@ -149,7 +149,7 @@ function NavigationMenuPopup({
149
149
  BaseNavigationMenu.Popup,
150
150
  {
151
151
  className: cn(
152
- "animate-popup min-w-56 rounded-popup border border-[color:var(--surface-menu-border)] bg-surface-menu p-2 text-surface-menu-foreground shadow-lg outline-none",
152
+ "animate-popup min-w-56 rounded-popup border border-[color:var(--menu-stroke-3)] bg-menu-surface-1 p-2 text-menu-foreground-1 shadow-lg outline-none [--text-foreground:var(--menu-foreground-1)] [--text-muted-foreground:var(--menu-foreground-4)]",
153
153
  className
154
154
  ),
155
155
  ...props
@@ -176,7 +176,7 @@ function NavigationMenuArrow({
176
176
  BaseNavigationMenu.Arrow,
177
177
  {
178
178
  className: cn(
179
- "size-2 rotate-45 border border-[color:var(--surface-menu-border)] bg-surface-menu",
179
+ "size-2 rotate-45 border border-[color:var(--menu-stroke-3)] bg-menu-surface-1",
180
180
  className
181
181
  ),
182
182
  ...props
@@ -64,7 +64,7 @@ function PopoverPopup({ className, ...props }) {
64
64
  BasePopover.Popup,
65
65
  {
66
66
  className: cn(
67
- "animate-popup w-72 rounded-popup border border-[color:var(--surface-menu-border)] bg-surface-menu p-4 text-surface-menu-foreground shadow-lg outline-none",
67
+ "animate-popup w-72 rounded-popup border border-[color:var(--menu-stroke-3)] bg-menu-surface-1 p-4 text-menu-foreground-1 shadow-lg outline-none [--text-foreground:var(--menu-foreground-1)] [--text-muted-foreground:var(--menu-foreground-4)]",
68
68
  className
69
69
  ),
70
70
  ...props
@@ -75,10 +75,7 @@ function PopoverTitle({ className, ...props }) {
75
75
  return /* @__PURE__ */ jsx(
76
76
  BasePopover.Title,
77
77
  {
78
- className: cn(
79
- "text-sm font-semibold text-surface-menu-foreground",
80
- className
81
- ),
78
+ className: cn("text-sm font-semibold text-menu-foreground-1", className),
82
79
  ...props
83
80
  }
84
81
  );
@@ -90,10 +87,7 @@ function PopoverDescription({
90
87
  return /* @__PURE__ */ jsx(
91
88
  BasePopover.Description,
92
89
  {
93
- className: cn(
94
- "mt-1 text-sm leading-6 text-surface-menu-disabled-foreground",
95
- className
96
- ),
90
+ className: cn("mt-1 text-sm leading-6 text-menu-foreground-4", className),
97
91
  ...props
98
92
  }
99
93
  );
@@ -103,7 +97,7 @@ function PopoverClose({ className, ...props }) {
103
97
  BasePopover.Close,
104
98
  {
105
99
  className: cn(
106
- "inline-flex size-8 items-center justify-center rounded-button text-surface-menu-disabled-foreground transition-colors hover:bg-surface-menu-hover hover:text-surface-menu-hover-foreground",
100
+ "inline-flex size-8 items-center justify-center rounded-button text-menu-foreground-4 transition-colors hover:bg-menu-surface-3 hover:text-menu-foreground-1",
107
101
  "focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
108
102
  className
109
103
  ),
@@ -116,7 +110,7 @@ function PopoverArrow({ className, ...props }) {
116
110
  BasePopover.Arrow,
117
111
  {
118
112
  className: cn(
119
- "size-2 rotate-45 border border-[color:var(--surface-menu-border)] bg-surface-menu",
113
+ "size-2 rotate-45 border border-[color:var(--menu-stroke-3)] bg-menu-surface-1",
120
114
  className
121
115
  ),
122
116
  ...props