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

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 (220) hide show
  1. package/README.md +3 -5
  2. package/compiler-assets/nextjs/defaults/app/globals.css +6 -0
  3. package/compiler-assets/nextjs/defaults/group/layout.tsx +23 -0
  4. package/compiler-assets/nextjs/defaults/group/leaf.tsx +48 -0
  5. package/compiler-assets/nextjs/defaults/group/page.tsx +50 -0
  6. package/compiler-assets/nextjs/defaults/project/next.config.mjs +45 -0
  7. package/compiler-assets/nextjs/defaults/project/postcss.config.mjs +5 -0
  8. package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +41 -0
  9. package/compiler-assets/nextjs/defaults/root/css/animation.css +90 -0
  10. package/compiler-assets/nextjs/defaults/root/css/components/dialog.css +21 -0
  11. package/compiler-assets/nextjs/defaults/root/css/components/drawer.css +21 -0
  12. package/compiler-assets/nextjs/defaults/root/css/components/menu.css +23 -0
  13. package/compiler-assets/nextjs/defaults/root/css/components/navigation-menu.css +25 -0
  14. package/compiler-assets/nextjs/defaults/root/css/components/popover.css +17 -0
  15. package/compiler-assets/nextjs/defaults/root/css/components/select.css +23 -0
  16. package/compiler-assets/nextjs/defaults/root/css/components/toast.css +19 -0
  17. package/compiler-assets/nextjs/defaults/root/css/components/tooltip.css +15 -0
  18. package/compiler-assets/nextjs/defaults/root/css/layout.css +22 -0
  19. package/compiler-assets/nextjs/defaults/root/css/media.css +81 -0
  20. package/compiler-assets/nextjs/defaults/root/css/radius.css +49 -0
  21. package/compiler-assets/nextjs/defaults/root/css/scrollbar.css +43 -0
  22. package/compiler-assets/nextjs/defaults/root/css/shadow.css +145 -0
  23. package/compiler-assets/nextjs/defaults/root/css/typography.css +607 -0
  24. package/compiler-assets/nextjs/defaults/root/css/zindex.css +39 -0
  25. package/compiler-assets/nextjs/defaults/root/globals.css +191 -0
  26. package/compiler-assets/nextjs/defaults/root/layout.tsx +19 -0
  27. package/compiler-assets/nextjs/defaults/root/page.tsx +61 -0
  28. package/compiler-assets/nextjs/defaults/root/theme.css +50 -0
  29. package/compiler-assets/nextjs/defaults/source/_internal/logger.ts +21 -0
  30. package/compiler-assets/nextjs/shims/generated-group-layout.tsx +19 -0
  31. package/compiler-assets/nextjs/shims/generated-group-page.tsx +18 -0
  32. package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +21 -0
  33. package/compiler-assets/nextjs/shims/global-layout.tsx +134 -0
  34. package/compiler-assets/nextjs/shims/markdown-route.ts +29 -0
  35. package/compiler-assets/nextjs/shims/og-image-route.ts +18 -0
  36. package/compiler-assets/nextjs/shims/powered-by-footer.tsx +40 -0
  37. package/compiler-assets/nextjs/shims/providers.tsx +13 -0
  38. package/compiler-assets/nextjs/shims/proxy.ts +317 -0
  39. package/compiler-assets/nextjs/shims/publish-os-theme-provider.tsx +77 -0
  40. package/compiler-assets/nextjs/shims/root-page.tsx +13 -0
  41. package/compiler-assets/nextjs/shims/theme-defaults.css +177 -0
  42. package/dist/button-CFdx-ohV.d.ts +20 -0
  43. package/dist/cache/tags.js +6 -14
  44. package/dist/compiler.d.ts +100 -0
  45. package/dist/compiler.js +13379 -0
  46. package/dist/config/createNextConfig.d.ts +2 -1
  47. package/dist/config/createNextConfig.js +16 -12
  48. package/dist/icons.d.ts +1 -0
  49. package/dist/icons.js +2 -0
  50. package/dist/index.d.ts +303 -15
  51. package/dist/index.js +30 -1198
  52. package/dist/kernel/components/blocks/AgentActions.d.ts +9 -3
  53. package/dist/kernel/components/blocks/AgentActions.js +114 -200
  54. package/dist/kernel/components/blocks/animated-icon-swap.js +4 -25
  55. package/dist/kernel/components/blocks/color-palette.js +88 -169
  56. package/dist/kernel/components/blocks/design-system-preview.d.ts +38 -6
  57. package/dist/kernel/components/blocks/design-system-preview.js +44 -52
  58. package/dist/kernel/components/blocks/link-playground.js +23 -71
  59. package/dist/kernel/components/blocks/logo-block.js +18 -47
  60. package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +1 -1
  61. package/dist/kernel/components/blocks/nav-breadcrumb.js +28 -42
  62. package/dist/kernel/components/blocks/navbar.d.ts +1 -1
  63. package/dist/kernel/components/blocks/navbar.js +14 -41
  64. package/dist/kernel/components/blocks/navigation-progress-playground.js +56 -149
  65. package/dist/kernel/components/blocks/navigation-progress.js +53 -157
  66. package/dist/kernel/components/blocks/next-prev.d.ts +1 -1
  67. package/dist/kernel/components/blocks/next-prev.js +16 -42
  68. package/dist/kernel/components/blocks/page-list.d.ts +1 -1
  69. package/dist/kernel/components/blocks/page-list.js +11 -16
  70. package/dist/kernel/components/blocks/search.d.ts +13 -2
  71. package/dist/kernel/components/blocks/search.js +116 -247
  72. package/dist/kernel/components/blocks/sidebar-node.d.ts +2 -2
  73. package/dist/kernel/components/blocks/sidebar-node.js +56 -95
  74. package/dist/kernel/components/blocks/sidebar.d.ts +5 -23
  75. package/dist/kernel/components/blocks/sidebar.js +35 -103
  76. package/dist/kernel/components/blocks/theme-toggle.d.ts +7 -3
  77. package/dist/kernel/components/blocks/theme-toggle.js +2 -2
  78. package/dist/kernel/components/blocks/toc.js +42 -178
  79. package/dist/kernel/components/mdx/components/blockquote.js +3 -24
  80. package/dist/kernel/components/mdx/components/callout.d.ts +1 -1
  81. package/dist/kernel/components/mdx/components/callout.js +15 -47
  82. package/dist/kernel/components/mdx/components/code-block.js +2 -2
  83. package/dist/kernel/components/mdx/components/figure-caption.js +6 -24
  84. package/dist/kernel/components/mdx/components/figure.js +9 -36
  85. package/dist/kernel/components/mdx/components/footnotes.js +3 -24
  86. package/dist/kernel/components/mdx/components/heading-copy-link.js +13 -37
  87. package/dist/kernel/components/mdx/components/heading.d.ts +8 -3
  88. package/dist/kernel/components/mdx/components/heading.js +32 -116
  89. package/dist/kernel/components/mdx/components/hr.d.ts +5 -3
  90. package/dist/kernel/components/mdx/components/hr.js +2 -2
  91. package/dist/kernel/components/mdx/components/image-zoom.js +2 -3
  92. package/dist/kernel/components/mdx/components/image.js +22 -62
  93. package/dist/kernel/components/mdx/components/inline-code.js +3 -24
  94. package/dist/kernel/components/mdx/components/kbd.d.ts +9 -4
  95. package/dist/kernel/components/mdx/components/kbd.js +2 -2
  96. package/dist/kernel/components/mdx/components/link.d.ts +1 -2
  97. package/dist/kernel/components/mdx/components/link.js +2 -2
  98. package/dist/kernel/components/mdx/components/paragraph.js +13 -41
  99. package/dist/kernel/components/mdx/components/pre.js +3 -24
  100. package/dist/kernel/components/mdx/components/strikethrough.js +6 -24
  101. package/dist/kernel/components/mdx/components/table.js +2 -2
  102. package/dist/kernel/components/mdx/components/task-list.js +6 -28
  103. package/dist/kernel/components/mdx/components/video-player.js +53 -88
  104. package/dist/kernel/components/mdx/components/video.js +27 -75
  105. package/dist/kernel/components/mdx/error-boundary.d.ts +1 -1
  106. package/dist/kernel/components/mdx/error-boundary.js +12 -15
  107. package/dist/kernel/components/mdx/error-fallback.js +4 -4
  108. package/dist/kernel/components/mdx/mdx.d.ts +68 -11
  109. package/dist/kernel/components/mdx/mdx.js +29 -29
  110. package/dist/kernel/components/mdx/rehype-heading-ids.js +11 -67
  111. package/dist/kernel/components/mdx/types.d.ts +1 -1
  112. package/dist/kernel/components/ui/accordion.js +3 -26
  113. package/dist/kernel/components/ui/breadcrumb-trail.d.ts +23 -7
  114. package/dist/kernel/components/ui/breadcrumb-trail.js +32 -80
  115. package/dist/kernel/components/ui/breadcrumb.d.ts +1 -1
  116. package/dist/kernel/components/ui/breadcrumb.js +20 -54
  117. package/dist/kernel/components/ui/button-group.d.ts +4 -3
  118. package/dist/kernel/components/ui/button-group.js +7 -30
  119. package/dist/kernel/components/ui/button.js +13 -36
  120. package/dist/kernel/components/ui/card.d.ts +2 -2
  121. package/dist/kernel/components/ui/card.js +2 -23
  122. package/dist/kernel/components/ui/dialog.d.ts +9 -9
  123. package/dist/kernel/components/ui/dialog.js +15 -33
  124. package/dist/kernel/components/ui/drawer.d.ts +10 -10
  125. package/dist/kernel/components/ui/drawer.js +15 -33
  126. package/dist/kernel/components/ui/input.js +6 -30
  127. package/dist/kernel/components/ui/kbd.js +10 -31
  128. package/dist/kernel/components/ui/link.d.ts +1 -1
  129. package/dist/kernel/components/ui/link.js +53 -104
  130. package/dist/kernel/components/ui/menu.d.ts +21 -21
  131. package/dist/kernel/components/ui/menu.js +10 -32
  132. package/dist/kernel/components/ui/meta-key.d.ts +9 -4
  133. package/dist/kernel/components/ui/meta-key.js +2 -2
  134. package/dist/kernel/components/ui/navigation-menu.d.ts +14 -14
  135. package/dist/kernel/components/ui/navigation-menu.js +9 -30
  136. package/dist/kernel/components/ui/popover.d.ts +10 -10
  137. package/dist/kernel/components/ui/popover.js +19 -34
  138. package/dist/kernel/components/ui/progress.js +2 -25
  139. package/dist/kernel/components/ui/scroll-area.js +39 -118
  140. package/dist/kernel/components/ui/select.d.ts +15 -15
  141. package/dist/kernel/components/ui/select.js +19 -35
  142. package/dist/kernel/components/ui/separator.js +2 -25
  143. package/dist/kernel/components/ui/table.js +2 -23
  144. package/dist/kernel/components/ui/tabs.js +39 -99
  145. package/dist/kernel/components/ui/tag.d.ts +2 -2
  146. package/dist/kernel/components/ui/tag.js +4 -25
  147. package/dist/kernel/components/ui/text.d.ts +2 -2
  148. package/dist/kernel/components/ui/text.js +3 -25
  149. package/dist/kernel/components/ui/theme-toggle.d.ts +18 -4
  150. package/dist/kernel/components/ui/theme-toggle.js +18 -44
  151. package/dist/kernel/components/ui/toast.d.ts +10 -10
  152. package/dist/kernel/components/ui/toast.js +13 -35
  153. package/dist/kernel/components/ui/tooltip.d.ts +8 -8
  154. package/dist/kernel/components/ui/tooltip.js +8 -29
  155. package/dist/kernel/defaults.registry.d.ts +1 -1
  156. package/dist/kernel/defaults.registry.js +2 -2
  157. package/dist/kernel/framework-icons.d.ts +1 -0
  158. package/dist/kernel/framework-icons.js +39 -0
  159. package/dist/kernel/routes/agent/markdown.js +36 -65
  160. package/dist/kernel/routes/layouts/group.d.ts +1 -1
  161. package/dist/kernel/routes/layouts/group.js +20 -109
  162. package/dist/kernel/routes/metadata/feed.d.ts +1 -2
  163. package/dist/kernel/routes/metadata/feed.js +46 -127
  164. package/dist/kernel/routes/metadata/llms.d.ts +1 -2
  165. package/dist/kernel/routes/metadata/llms.js +40 -120
  166. package/dist/kernel/routes/metadata/og-image.d.ts +10 -0
  167. package/dist/kernel/routes/metadata/og-image.js +264 -198
  168. package/dist/kernel/routes/metadata/robots.d.ts +1 -2
  169. package/dist/kernel/routes/metadata/robots.js +21 -90
  170. package/dist/kernel/routes/metadata/sitemap.d.ts +1 -2
  171. package/dist/kernel/routes/metadata/sitemap.js +36 -102
  172. package/dist/kernel/routes/pages/group.d.ts +1 -1
  173. package/dist/kernel/routes/pages/group.js +42 -137
  174. package/dist/kernel/routes/pages/leaf.d.ts +1 -1
  175. package/dist/kernel/routes/pages/leaf.js +74 -213
  176. package/dist/kernel/routes/pages/root.d.ts +1 -1
  177. package/dist/kernel/routes/pages/root.js +37 -108
  178. package/dist/keyboard-shortcuts.js +69 -141
  179. package/dist/link-CYaCRDb6.d.ts +35 -0
  180. package/dist/resolvers/manifest-resolver.d.ts +3 -3
  181. package/dist/resolvers/manifest-resolver.js +15 -21
  182. package/dist/route-metadata-og-image-BeKKFHg7.d.ts +58 -0
  183. package/dist/search.d.ts +81 -4
  184. package/dist/search.js +124 -195
  185. package/dist/sidebar-types-Bgchdfd6.d.ts +25 -0
  186. package/dist/theme-scope.d.ts +15 -0
  187. package/dist/theme-scope.js +23 -0
  188. package/dist/types-B_b3C0U6.d.ts +63 -0
  189. package/dist/types-CIwwieNw.d.ts +127 -0
  190. package/dist/types-DHBm7-j6.d.ts +57 -0
  191. package/dist/types-sM2g9nW0.d.ts +12 -0
  192. package/dist/types.d.ts +0 -1
  193. package/dist/types.js +1 -1
  194. package/dist/utils/cn.d.ts +5 -9
  195. package/dist/utils/cn.js +13 -7
  196. package/dist/utils/heading-ids.js +20 -47
  197. package/dist/utils/pretty-date.js +7 -13
  198. package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.dark.png +0 -0
  199. package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.png +0 -0
  200. package/init/seed/minimal/publish.os/docs/content/get-started.mdx +54 -0
  201. package/init/seed/minimal/publish.os/docs/content/groups.mdx +31 -0
  202. package/init/seed/minimal/publish.os/docs/content/theme.mdx +64 -0
  203. package/init/seed/minimal/publish.os/publish.os.config.json +21 -0
  204. package/init/seed/minimal/publish.os/theme.css +47 -0
  205. package/init/seed/minimal/seed.json +13 -0
  206. package/package.json +469 -35
  207. package/release/{package.json → app/lucide/package.json} +11 -5
  208. package/release/app/lucide/pnpm-lock.yaml.template +2905 -0
  209. package/release/app/lucide/pnpm-workspace.yaml +11 -0
  210. package/release/app/phosphor/package.json +30 -0
  211. package/release/app/phosphor/pnpm-lock.yaml.template +2908 -0
  212. package/release/app/phosphor/pnpm-workspace.yaml +11 -0
  213. package/release/app/tabler/package.json +30 -0
  214. package/release/app/tabler/pnpm-lock.yaml.template +2911 -0
  215. package/release/app/tabler/pnpm-workspace.yaml +11 -0
  216. package/release/compiler/package.json +20 -0
  217. package/release/compiler/pnpm-lock.yaml.template +2432 -0
  218. package/release/compiler/pnpm-workspace.yaml +11 -0
  219. package/release/release.json +29 -5
  220. package/release/runtime-pnpm-lock.yaml +0 -1316
@@ -1,36 +1,13 @@
1
- // src/kernel/components/ui/link.tsx
2
- import { buttonVariants } from "./button.js";
3
-
4
- // src/utils/cn.ts
5
- import { clsx } from "clsx";
6
- import { extendTailwindMerge } from "tailwind-merge";
7
- var twMerge = extendTailwindMerge({
8
- extend: {
9
- classGroups: {
10
- z: [
11
- "z-content",
12
- "z-nav",
13
- "z-overlay",
14
- "z-modal",
15
- "z-search",
16
- "z-toast",
17
- "z-progress"
18
- ]
19
- }
20
- }
21
- });
22
- function cn(...inputs) {
23
- return twMerge(clsx(inputs));
24
- }
25
-
26
- // src/kernel/components/ui/link.tsx
1
+ // src/components/ui/link.tsx
2
+ import { buttonVariants } from "@publish.os/nextjs/kernel/components/ui/button";
3
+ import { cn } from "@publish.os/nextjs/utils/cn";
27
4
  import { cva } from "class-variance-authority";
28
5
  import NextLink from "next/link";
29
6
 
30
7
  // ../../node_modules/.pnpm/tailwindcss@4.3.0/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs
31
8
  var l = { inherit: "inherit", current: "currentcolor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "oklch(98.4% 0.003 247.858)", 100: "oklch(96.8% 0.007 247.896)", 200: "oklch(92.9% 0.013 255.508)", 300: "oklch(86.9% 0.022 252.894)", 400: "oklch(70.4% 0.04 256.788)", 500: "oklch(55.4% 0.046 257.417)", 600: "oklch(44.6% 0.043 257.281)", 700: "oklch(37.2% 0.044 257.287)", 800: "oklch(27.9% 0.041 260.031)", 900: "oklch(20.8% 0.042 265.755)", 950: "oklch(12.9% 0.042 264.695)" }, gray: { 50: "oklch(98.5% 0.002 247.839)", 100: "oklch(96.7% 0.003 264.542)", 200: "oklch(92.8% 0.006 264.531)", 300: "oklch(87.2% 0.01 258.338)", 400: "oklch(70.7% 0.022 261.325)", 500: "oklch(55.1% 0.027 264.364)", 600: "oklch(44.6% 0.03 256.802)", 700: "oklch(37.3% 0.034 259.733)", 800: "oklch(27.8% 0.033 256.848)", 900: "oklch(21% 0.034 264.665)", 950: "oklch(13% 0.028 261.692)" }, zinc: { 50: "oklch(98.5% 0 0)", 100: "oklch(96.7% 0.001 286.375)", 200: "oklch(92% 0.004 286.32)", 300: "oklch(87.1% 0.006 286.286)", 400: "oklch(70.5% 0.015 286.067)", 500: "oklch(55.2% 0.016 285.938)", 600: "oklch(44.2% 0.017 285.786)", 700: "oklch(37% 0.013 285.805)", 800: "oklch(27.4% 0.006 286.033)", 900: "oklch(21% 0.006 285.885)", 950: "oklch(14.1% 0.005 285.823)" }, neutral: { 50: "oklch(98.5% 0 0)", 100: "oklch(97% 0 0)", 200: "oklch(92.2% 0 0)", 300: "oklch(87% 0 0)", 400: "oklch(70.8% 0 0)", 500: "oklch(55.6% 0 0)", 600: "oklch(43.9% 0 0)", 700: "oklch(37.1% 0 0)", 800: "oklch(26.9% 0 0)", 900: "oklch(20.5% 0 0)", 950: "oklch(14.5% 0 0)" }, stone: { 50: "oklch(98.5% 0.001 106.423)", 100: "oklch(97% 0.001 106.424)", 200: "oklch(92.3% 0.003 48.717)", 300: "oklch(86.9% 0.005 56.366)", 400: "oklch(70.9% 0.01 56.259)", 500: "oklch(55.3% 0.013 58.071)", 600: "oklch(44.4% 0.011 73.639)", 700: "oklch(37.4% 0.01 67.558)", 800: "oklch(26.8% 0.007 34.298)", 900: "oklch(21.6% 0.006 56.043)", 950: "oklch(14.7% 0.004 49.25)" }, mauve: { 50: "oklch(98.5% 0 0)", 100: "oklch(96% 0.003 325.6)", 200: "oklch(92.2% 0.005 325.62)", 300: "oklch(86.5% 0.012 325.68)", 400: "oklch(71.1% 0.019 323.02)", 500: "oklch(54.2% 0.034 322.5)", 600: "oklch(43.5% 0.029 321.78)", 700: "oklch(36.4% 0.029 323.89)", 800: "oklch(26.3% 0.024 320.12)", 900: "oklch(21.2% 0.019 322.12)", 950: "oklch(14.5% 0.008 326)" }, olive: { 50: "oklch(98.8% 0.003 106.5)", 100: "oklch(96.6% 0.005 106.5)", 200: "oklch(93% 0.007 106.5)", 300: "oklch(88% 0.011 106.6)", 400: "oklch(73.7% 0.021 106.9)", 500: "oklch(58% 0.031 107.3)", 600: "oklch(46.6% 0.025 107.3)", 700: "oklch(39.4% 0.023 107.4)", 800: "oklch(28.6% 0.016 107.4)", 900: "oklch(22.8% 0.013 107.4)", 950: "oklch(15.3% 0.006 107.1)" }, mist: { 50: "oklch(98.7% 0.002 197.1)", 100: "oklch(96.3% 0.002 197.1)", 200: "oklch(92.5% 0.005 214.3)", 300: "oklch(87.2% 0.007 219.6)", 400: "oklch(72.3% 0.014 214.4)", 500: "oklch(56% 0.021 213.5)", 600: "oklch(45% 0.017 213.2)", 700: "oklch(37.8% 0.015 216)", 800: "oklch(27.5% 0.011 216.9)", 900: "oklch(21.8% 0.008 223.9)", 950: "oklch(14.8% 0.004 228.8)" }, taupe: { 50: "oklch(98.6% 0.002 67.8)", 100: "oklch(96% 0.002 17.2)", 200: "oklch(92.2% 0.005 34.3)", 300: "oklch(86.8% 0.007 39.5)", 400: "oklch(71.4% 0.014 41.2)", 500: "oklch(54.7% 0.021 43.1)", 600: "oklch(43.8% 0.017 39.3)", 700: "oklch(36.7% 0.016 35.7)", 800: "oklch(26.8% 0.011 36.5)", 900: "oklch(21.4% 0.009 43.1)", 950: "oklch(14.7% 0.004 49.3)" }, red: { 50: "oklch(97.1% 0.013 17.38)", 100: "oklch(93.6% 0.032 17.717)", 200: "oklch(88.5% 0.062 18.334)", 300: "oklch(80.8% 0.114 19.571)", 400: "oklch(70.4% 0.191 22.216)", 500: "oklch(63.7% 0.237 25.331)", 600: "oklch(57.7% 0.245 27.325)", 700: "oklch(50.5% 0.213 27.518)", 800: "oklch(44.4% 0.177 26.899)", 900: "oklch(39.6% 0.141 25.723)", 950: "oklch(25.8% 0.092 26.042)" }, orange: { 50: "oklch(98% 0.016 73.684)", 100: "oklch(95.4% 0.038 75.164)", 200: "oklch(90.1% 0.076 70.697)", 300: "oklch(83.7% 0.128 66.29)", 400: "oklch(75% 0.183 55.934)", 500: "oklch(70.5% 0.213 47.604)", 600: "oklch(64.6% 0.222 41.116)", 700: "oklch(55.3% 0.195 38.402)", 800: "oklch(47% 0.157 37.304)", 900: "oklch(40.8% 0.123 38.172)", 950: "oklch(26.6% 0.079 36.259)" }, amber: { 50: "oklch(98.7% 0.022 95.277)", 100: "oklch(96.2% 0.059 95.617)", 200: "oklch(92.4% 0.12 95.746)", 300: "oklch(87.9% 0.169 91.605)", 400: "oklch(82.8% 0.189 84.429)", 500: "oklch(76.9% 0.188 70.08)", 600: "oklch(66.6% 0.179 58.318)", 700: "oklch(55.5% 0.163 48.998)", 800: "oklch(47.3% 0.137 46.201)", 900: "oklch(41.4% 0.112 45.904)", 950: "oklch(27.9% 0.077 45.635)" }, yellow: { 50: "oklch(98.7% 0.026 102.212)", 100: "oklch(97.3% 0.071 103.193)", 200: "oklch(94.5% 0.129 101.54)", 300: "oklch(90.5% 0.182 98.111)", 400: "oklch(85.2% 0.199 91.936)", 500: "oklch(79.5% 0.184 86.047)", 600: "oklch(68.1% 0.162 75.834)", 700: "oklch(55.4% 0.135 66.442)", 800: "oklch(47.6% 0.114 61.907)", 900: "oklch(42.1% 0.095 57.708)", 950: "oklch(28.6% 0.066 53.813)" }, lime: { 50: "oklch(98.6% 0.031 120.757)", 100: "oklch(96.7% 0.067 122.328)", 200: "oklch(93.8% 0.127 124.321)", 300: "oklch(89.7% 0.196 126.665)", 400: "oklch(84.1% 0.238 128.85)", 500: "oklch(76.8% 0.233 130.85)", 600: "oklch(64.8% 0.2 131.684)", 700: "oklch(53.2% 0.157 131.589)", 800: "oklch(45.3% 0.124 130.933)", 900: "oklch(40.5% 0.101 131.063)", 950: "oklch(27.4% 0.072 132.109)" }, green: { 50: "oklch(98.2% 0.018 155.826)", 100: "oklch(96.2% 0.044 156.743)", 200: "oklch(92.5% 0.084 155.995)", 300: "oklch(87.1% 0.15 154.449)", 400: "oklch(79.2% 0.209 151.711)", 500: "oklch(72.3% 0.219 149.579)", 600: "oklch(62.7% 0.194 149.214)", 700: "oklch(52.7% 0.154 150.069)", 800: "oklch(44.8% 0.119 151.328)", 900: "oklch(39.3% 0.095 152.535)", 950: "oklch(26.6% 0.065 152.934)" }, emerald: { 50: "oklch(97.9% 0.021 166.113)", 100: "oklch(95% 0.052 163.051)", 200: "oklch(90.5% 0.093 164.15)", 300: "oklch(84.5% 0.143 164.978)", 400: "oklch(76.5% 0.177 163.223)", 500: "oklch(69.6% 0.17 162.48)", 600: "oklch(59.6% 0.145 163.225)", 700: "oklch(50.8% 0.118 165.612)", 800: "oklch(43.2% 0.095 166.913)", 900: "oklch(37.8% 0.077 168.94)", 950: "oklch(26.2% 0.051 172.552)" }, teal: { 50: "oklch(98.4% 0.014 180.72)", 100: "oklch(95.3% 0.051 180.801)", 200: "oklch(91% 0.096 180.426)", 300: "oklch(85.5% 0.138 181.071)", 400: "oklch(77.7% 0.152 181.912)", 500: "oklch(70.4% 0.14 182.503)", 600: "oklch(60% 0.118 184.704)", 700: "oklch(51.1% 0.096 186.391)", 800: "oklch(43.7% 0.078 188.216)", 900: "oklch(38.6% 0.063 188.416)", 950: "oklch(27.7% 0.046 192.524)" }, cyan: { 50: "oklch(98.4% 0.019 200.873)", 100: "oklch(95.6% 0.045 203.388)", 200: "oklch(91.7% 0.08 205.041)", 300: "oklch(86.5% 0.127 207.078)", 400: "oklch(78.9% 0.154 211.53)", 500: "oklch(71.5% 0.143 215.221)", 600: "oklch(60.9% 0.126 221.723)", 700: "oklch(52% 0.105 223.128)", 800: "oklch(45% 0.085 224.283)", 900: "oklch(39.8% 0.07 227.392)", 950: "oklch(30.2% 0.056 229.695)" }, sky: { 50: "oklch(97.7% 0.013 236.62)", 100: "oklch(95.1% 0.026 236.824)", 200: "oklch(90.1% 0.058 230.902)", 300: "oklch(82.8% 0.111 230.318)", 400: "oklch(74.6% 0.16 232.661)", 500: "oklch(68.5% 0.169 237.323)", 600: "oklch(58.8% 0.158 241.966)", 700: "oklch(50% 0.134 242.749)", 800: "oklch(44.3% 0.11 240.79)", 900: "oklch(39.1% 0.09 240.876)", 950: "oklch(29.3% 0.066 243.157)" }, blue: { 50: "oklch(97% 0.014 254.604)", 100: "oklch(93.2% 0.032 255.585)", 200: "oklch(88.2% 0.059 254.128)", 300: "oklch(80.9% 0.105 251.813)", 400: "oklch(70.7% 0.165 254.624)", 500: "oklch(62.3% 0.214 259.815)", 600: "oklch(54.6% 0.245 262.881)", 700: "oklch(48.8% 0.243 264.376)", 800: "oklch(42.4% 0.199 265.638)", 900: "oklch(37.9% 0.146 265.522)", 950: "oklch(28.2% 0.091 267.935)" }, indigo: { 50: "oklch(96.2% 0.018 272.314)", 100: "oklch(93% 0.034 272.788)", 200: "oklch(87% 0.065 274.039)", 300: "oklch(78.5% 0.115 274.713)", 400: "oklch(67.3% 0.182 276.935)", 500: "oklch(58.5% 0.233 277.117)", 600: "oklch(51.1% 0.262 276.966)", 700: "oklch(45.7% 0.24 277.023)", 800: "oklch(39.8% 0.195 277.366)", 900: "oklch(35.9% 0.144 278.697)", 950: "oklch(25.7% 0.09 281.288)" }, violet: { 50: "oklch(96.9% 0.016 293.756)", 100: "oklch(94.3% 0.029 294.588)", 200: "oklch(89.4% 0.057 293.283)", 300: "oklch(81.1% 0.111 293.571)", 400: "oklch(70.2% 0.183 293.541)", 500: "oklch(60.6% 0.25 292.717)", 600: "oklch(54.1% 0.281 293.009)", 700: "oklch(49.1% 0.27 292.581)", 800: "oklch(43.2% 0.232 292.759)", 900: "oklch(38% 0.189 293.745)", 950: "oklch(28.3% 0.141 291.089)" }, purple: { 50: "oklch(97.7% 0.014 308.299)", 100: "oklch(94.6% 0.033 307.174)", 200: "oklch(90.2% 0.063 306.703)", 300: "oklch(82.7% 0.119 306.383)", 400: "oklch(71.4% 0.203 305.504)", 500: "oklch(62.7% 0.265 303.9)", 600: "oklch(55.8% 0.288 302.321)", 700: "oklch(49.6% 0.265 301.924)", 800: "oklch(43.8% 0.218 303.724)", 900: "oklch(38.1% 0.176 304.987)", 950: "oklch(29.1% 0.149 302.717)" }, fuchsia: { 50: "oklch(97.7% 0.017 320.058)", 100: "oklch(95.2% 0.037 318.852)", 200: "oklch(90.3% 0.076 319.62)", 300: "oklch(83.3% 0.145 321.434)", 400: "oklch(74% 0.238 322.16)", 500: "oklch(66.7% 0.295 322.15)", 600: "oklch(59.1% 0.293 322.896)", 700: "oklch(51.8% 0.253 323.949)", 800: "oklch(45.2% 0.211 324.591)", 900: "oklch(40.1% 0.17 325.612)", 950: "oklch(29.3% 0.136 325.661)" }, pink: { 50: "oklch(97.1% 0.014 343.198)", 100: "oklch(94.8% 0.028 342.258)", 200: "oklch(89.9% 0.061 343.231)", 300: "oklch(82.3% 0.12 346.018)", 400: "oklch(71.8% 0.202 349.761)", 500: "oklch(65.6% 0.241 354.308)", 600: "oklch(59.2% 0.249 0.584)", 700: "oklch(52.5% 0.223 3.958)", 800: "oklch(45.9% 0.187 3.815)", 900: "oklch(40.8% 0.153 2.432)", 950: "oklch(28.4% 0.109 3.907)" }, rose: { 50: "oklch(96.9% 0.015 12.422)", 100: "oklch(94.1% 0.03 12.58)", 200: "oklch(89.2% 0.058 10.001)", 300: "oklch(81% 0.117 11.638)", 400: "oklch(71.2% 0.194 13.428)", 500: "oklch(64.5% 0.246 16.439)", 600: "oklch(58.6% 0.253 17.585)", 700: "oklch(51.4% 0.222 16.935)", 800: "oklch(45.5% 0.188 13.697)", 900: "oklch(41% 0.159 10.272)", 950: "oklch(27.1% 0.105 12.094)" } };
32
9
 
33
- // src/kernel/components/ui/link.tsx
10
+ // src/components/ui/link.tsx
34
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
35
12
  var linkVariants = cva(
36
13
  [
@@ -45,7 +22,7 @@ var linkVariants = cva(
45
22
  "active:text-[color-mix(in_oklch,var(--link-color)_var(--link-active-text-opacity),transparent)]",
46
23
  "data-[state=path-active]:text-[color-mix(in_oklch,var(--link-color)_var(--link-active-text-opacity),transparent)]",
47
24
  "transition-colors duration-[var(--link-transition-duration)] ease-out",
48
- "focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
25
+ "focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
49
26
  "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
50
27
  "[&_svg]:mb-0.5 [&_svg]:inline [&_svg]:size-[1em] [&_svg]:shrink-0"
51
28
  ].join(" "),
@@ -72,62 +49,50 @@ var linkVariants = cva(
72
49
  variant: "standalone"
73
50
  }
74
51
  }
75
- );
76
- var linkTextDecorationReset = "group/link !no-underline hover:!no-underline active:!no-underline";
77
- var linkUnderlineClasses = [
52
+ ), linkTextDecorationReset = "group/link !no-underline hover:!no-underline active:!no-underline", linkUnderlineClasses = [
78
53
  "inline underline decoration-[length:var(--link-underline-thickness)] decoration-[color-mix(in_oklch,var(--link-underline-color)_var(--link-underline-opacity),transparent)] underline-offset-[var(--link-underline-offset)] transition-[text-decoration-color] duration-[var(--link-transition-duration)] ease-out",
79
54
  "group-hover/link:decoration-[color-mix(in_oklch,var(--link-hover-underline-color,var(--link-underline-color))_var(--link-hover-underline-opacity),transparent)]",
80
55
  "group-active/link:decoration-[color-mix(in_oklch,var(--link-active-underline-color,var(--link-hover-underline-color,var(--link-underline-color)))_var(--link-active-underline-opacity),transparent)]",
81
56
  "data-[state=path-active]:decoration-[color-mix(in_oklch,var(--link-active-underline-color,var(--link-hover-underline-color,var(--link-underline-color)))_var(--link-active-underline-opacity),transparent)]"
82
57
  ].join(" ");
83
58
  function namedLinkColor(color) {
84
- if (color === "accent") return "accent";
85
- if (color === "default") return "default";
86
- return null;
59
+ return color === "accent" ? "accent" : color === "default" ? "default" : null;
87
60
  }
88
61
  function tailwindColorValue(color) {
89
- const named = l[color];
90
- if (typeof named === "string") {
62
+ let named = l[color];
63
+ if (typeof named == "string")
91
64
  return named === "current" || named === "currentcolor" ? "currentColor" : named;
92
- }
93
- const match = color.match(/^(.+)-([0-9]{2,3})$/);
94
- if (!match) return void 0;
95
- const [, paletteName, shade] = match;
96
- if (!paletteName || !shade) return void 0;
97
- const palette = l[paletteName];
98
- if (!palette || typeof palette === "string") return void 0;
99
- return palette[shade];
65
+ let match = color.match(/^(.+)-([0-9]{2,3})$/);
66
+ if (!match) return;
67
+ let [, paletteName, shade] = match;
68
+ if (!paletteName || !shade) return;
69
+ let palette = l[paletteName];
70
+ if (!(!palette || typeof palette == "string"))
71
+ return palette[shade];
100
72
  }
101
73
  function linkColorValue(color) {
102
- if (!color || color === "accent" || color === "default") return void 0;
74
+ if (!color || color === "accent" || color === "default") return;
103
75
  if (color.startsWith("var(")) return color;
104
76
  if (color.startsWith("--")) return `var(${color})`;
105
- if (color.startsWith("#") || color.startsWith("rgb(") || color.startsWith("rgba(") || color.startsWith("hsl(") || color.startsWith("hsla(") || color.startsWith("oklch(") || color.startsWith("oklab(") || color.startsWith("lch(") || color.startsWith("lab(") || color.startsWith("color(")) {
77
+ if (color.startsWith("#") || color.startsWith("rgb(") || color.startsWith("rgba(") || color.startsWith("hsl(") || color.startsWith("hsla(") || color.startsWith("oklch(") || color.startsWith("oklab(") || color.startsWith("lch(") || color.startsWith("lab(") || color.startsWith("color("))
106
78
  return color;
107
- }
108
- const tailwindColor = tailwindColorValue(color);
109
- if (tailwindColor) return `var(--color-${color}, ${tailwindColor})`;
110
- return `var(--color-${color}, var(--${color}))`;
79
+ let tailwindColor = tailwindColorValue(color);
80
+ return tailwindColor ? `var(--color-${color}, ${tailwindColor})` : `var(--color-${color}, var(--${color}))`;
111
81
  }
112
82
  function isExternalHref(href) {
113
83
  return /^[a-z][a-z0-9+.-]*:/i.test(href) && !href.startsWith("mailto:") && !href.startsWith("tel:");
114
84
  }
115
85
  function mergeRel(rel) {
116
- const values = new Set((rel ?? "").split(/\s+/).filter(Boolean));
117
- values.add("noopener");
118
- values.add("noreferrer");
119
- return Array.from(values).join(" ");
86
+ let values = new Set((rel ?? "").split(/\s+/).filter(Boolean));
87
+ return values.add("noopener"), values.add("noreferrer"), Array.from(values).join(" ");
120
88
  }
121
89
  function resolveLinkVariant(variant) {
122
- if (variant?.startsWith("button.")) {
123
- return {
124
- buttonVariant: variant.slice("button.".length),
125
- linkVariant: null
126
- };
127
- }
128
- return {
90
+ return variant?.startsWith("button.") ? {
91
+ buttonVariant: variant.slice(7),
92
+ linkVariant: null
93
+ } : {
129
94
  buttonVariant: null,
130
- linkVariant: variant?.slice("link.".length) ?? "standalone"
95
+ linkVariant: variant?.slice(5) ?? "standalone"
131
96
  };
132
97
  }
133
98
  function Link({
@@ -147,18 +112,11 @@ function Link({
147
112
  variant = "link.standalone",
148
113
  ...props
149
114
  }) {
150
- const { buttonVariant, linkVariant } = resolveLinkVariant(variant);
151
- const resolvedColor = namedLinkColor(color);
152
- const customColor = linkColorValue(color);
153
- const resolvedStyle = customColor ? { ...style, "--link-color": customColor } : style;
154
- const state = active ? "path-active" : void 0;
155
- const label = buttonVariant ? children : /* @__PURE__ */ jsx("span", { className: linkUnderlineClasses, "data-state": state, children });
156
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [
115
+ let { buttonVariant, linkVariant } = resolveLinkVariant(variant), resolvedColor = namedLinkColor(color), customColor = linkColorValue(color), resolvedStyle = customColor ? { ...style, "--link-color": customColor } : style, state = active ? "path-active" : void 0, content = /* @__PURE__ */ jsxs(Fragment, { children: [
157
116
  leftIcon ? /* @__PURE__ */ jsx("span", { className: "mr-1 inline-flex shrink-0", children: leftIcon }) : null,
158
- label,
117
+ buttonVariant ? children : /* @__PURE__ */ jsx("span", { className: linkUnderlineClasses, "data-state": state, children }),
159
118
  rightIcon ? /* @__PURE__ */ jsx("span", { className: "ml-1 inline-flex shrink-0", children: rightIcon }) : null
160
- ] });
161
- const classes = cn(
119
+ ] }), classes = cn(
162
120
  buttonVariant ? buttonVariants({
163
121
  iconOnly,
164
122
  size,
@@ -170,46 +128,37 @@ function Link({
170
128
  }),
171
129
  buttonVariant ? linkTextDecorationReset : void 0,
172
130
  className
173
- );
174
- const disabledProps = {
175
- "aria-disabled": disabled ? true : void 0,
131
+ ), disabledProps = {
132
+ "aria-disabled": disabled ? !0 : void 0,
176
133
  "data-disabled": disabled ? "" : void 0,
177
134
  tabIndex: disabled ? -1 : props.tabIndex
178
- };
179
- const ariaCurrent = active ? "page" : void 0;
180
- const commonProps = {
181
- "aria-current": ariaCurrent,
135
+ }, commonProps = {
136
+ "aria-current": active ? "page" : void 0,
182
137
  className: classes,
183
138
  "data-state": state,
184
139
  style: resolvedStyle,
185
140
  ...props,
186
141
  ...disabledProps
187
142
  };
188
- if (disabled || href.startsWith("#") || href.startsWith("mailto:") || href.startsWith("tel:")) {
189
- return /* @__PURE__ */ jsx(
190
- "a",
191
- {
192
- href: disabled ? void 0 : href,
193
- rel,
194
- target,
195
- ...commonProps,
196
- children: content
197
- }
198
- );
199
- }
200
- if (isExternalHref(href)) {
201
- return /* @__PURE__ */ jsx(
202
- "a",
203
- {
204
- href,
205
- rel: target === "_blank" || !target ? mergeRel(rel) : rel,
206
- target: target ?? "_blank",
207
- ...commonProps,
208
- children: content
209
- }
210
- );
211
- }
212
- return /* @__PURE__ */ jsx(NextLink, { href, ...commonProps, children: content });
143
+ return disabled || href.startsWith("#") || href.startsWith("mailto:") || href.startsWith("tel:") ? /* @__PURE__ */ jsx(
144
+ "a",
145
+ {
146
+ href: disabled ? void 0 : href,
147
+ rel,
148
+ target,
149
+ ...commonProps,
150
+ children: content
151
+ }
152
+ ) : isExternalHref(href) ? /* @__PURE__ */ jsx(
153
+ "a",
154
+ {
155
+ href,
156
+ rel: target === "_blank" || !target ? mergeRel(rel) : rel,
157
+ target: target ?? "_blank",
158
+ ...commonProps,
159
+ children: content
160
+ }
161
+ ) : /* @__PURE__ */ jsx(NextLink, { href, ...commonProps, children: content });
213
162
  }
214
163
  export {
215
164
  Link,
@@ -1,27 +1,27 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Menu as Menu$1 } from '@base-ui/react/menu';
3
- import { ComponentPropsWithoutRef } from 'react';
3
+ import { ComponentPropsWithRef } from 'react';
4
4
 
5
- type MenuProps = ComponentPropsWithoutRef<typeof Menu$1.Root>;
6
- type MenuArrowProps = ComponentPropsWithoutRef<typeof Menu$1.Arrow>;
7
- type MenuBackdropProps = ComponentPropsWithoutRef<typeof Menu$1.Backdrop>;
8
- type MenuTriggerProps = ComponentPropsWithoutRef<typeof Menu$1.Trigger>;
9
- type MenuPortalProps = ComponentPropsWithoutRef<typeof Menu$1.Portal>;
10
- type MenuPositionerProps = ComponentPropsWithoutRef<typeof Menu$1.Positioner>;
11
- type MenuPopupProps = ComponentPropsWithoutRef<typeof Menu$1.Popup>;
12
- type MenuViewportProps = ComponentPropsWithoutRef<typeof Menu$1.Viewport>;
13
- type MenuItemProps = ComponentPropsWithoutRef<typeof Menu$1.Item>;
14
- type MenuLinkItemProps = ComponentPropsWithoutRef<typeof Menu$1.LinkItem>;
15
- type MenuSubmenuRootProps = ComponentPropsWithoutRef<typeof Menu$1.SubmenuRoot>;
16
- type MenuSubmenuTriggerProps = ComponentPropsWithoutRef<typeof Menu$1.SubmenuTrigger>;
17
- type MenuCheckboxItemProps = ComponentPropsWithoutRef<typeof Menu$1.CheckboxItem>;
18
- type MenuCheckboxItemIndicatorProps = ComponentPropsWithoutRef<typeof Menu$1.CheckboxItemIndicator>;
19
- type MenuRadioGroupProps = ComponentPropsWithoutRef<typeof Menu$1.RadioGroup>;
20
- type MenuRadioItemProps = ComponentPropsWithoutRef<typeof Menu$1.RadioItem>;
21
- type MenuRadioItemIndicatorProps = ComponentPropsWithoutRef<typeof Menu$1.RadioItemIndicator>;
22
- type MenuGroupProps = ComponentPropsWithoutRef<typeof Menu$1.Group>;
23
- type MenuGroupLabelProps = ComponentPropsWithoutRef<typeof Menu$1.GroupLabel>;
24
- type MenuSeparatorProps = ComponentPropsWithoutRef<typeof Menu$1.Separator>;
5
+ type MenuProps = ComponentPropsWithRef<typeof Menu$1.Root>;
6
+ type MenuArrowProps = ComponentPropsWithRef<typeof Menu$1.Arrow>;
7
+ type MenuBackdropProps = ComponentPropsWithRef<typeof Menu$1.Backdrop>;
8
+ type MenuTriggerProps = ComponentPropsWithRef<typeof Menu$1.Trigger>;
9
+ type MenuPortalProps = ComponentPropsWithRef<typeof Menu$1.Portal>;
10
+ type MenuPositionerProps = ComponentPropsWithRef<typeof Menu$1.Positioner>;
11
+ type MenuPopupProps = ComponentPropsWithRef<typeof Menu$1.Popup>;
12
+ type MenuViewportProps = ComponentPropsWithRef<typeof Menu$1.Viewport>;
13
+ type MenuItemProps = ComponentPropsWithRef<typeof Menu$1.Item>;
14
+ type MenuLinkItemProps = ComponentPropsWithRef<typeof Menu$1.LinkItem>;
15
+ type MenuSubmenuRootProps = ComponentPropsWithRef<typeof Menu$1.SubmenuRoot>;
16
+ type MenuSubmenuTriggerProps = ComponentPropsWithRef<typeof Menu$1.SubmenuTrigger>;
17
+ type MenuCheckboxItemProps = ComponentPropsWithRef<typeof Menu$1.CheckboxItem>;
18
+ type MenuCheckboxItemIndicatorProps = ComponentPropsWithRef<typeof Menu$1.CheckboxItemIndicator>;
19
+ type MenuRadioGroupProps = ComponentPropsWithRef<typeof Menu$1.RadioGroup>;
20
+ type MenuRadioItemProps = ComponentPropsWithRef<typeof Menu$1.RadioItem>;
21
+ type MenuRadioItemIndicatorProps = ComponentPropsWithRef<typeof Menu$1.RadioItemIndicator>;
22
+ type MenuGroupProps = ComponentPropsWithRef<typeof Menu$1.Group>;
23
+ type MenuGroupLabelProps = ComponentPropsWithRef<typeof Menu$1.GroupLabel>;
24
+ type MenuSeparatorProps = ComponentPropsWithRef<typeof Menu$1.Separator>;
25
25
  declare function MenuRoot(props: MenuProps): react_jsx_runtime.JSX.Element;
26
26
  declare function MenuTrigger({ className, ...props }: MenuTriggerProps): react_jsx_runtime.JSX.Element;
27
27
  declare function MenuPortal(props: MenuPortalProps): react_jsx_runtime.JSX.Element;
@@ -1,32 +1,10 @@
1
1
  "use client";
2
2
 
3
- // src/kernel/components/ui/menu.tsx
3
+ // src/components/ui/menu.tsx
4
4
  import { Menu as BaseMenu } from "@base-ui/react/menu";
5
-
6
- // src/utils/cn.ts
7
- import { clsx } from "clsx";
8
- import { extendTailwindMerge } from "tailwind-merge";
9
- var twMerge = extendTailwindMerge({
10
- extend: {
11
- classGroups: {
12
- z: [
13
- "z-content",
14
- "z-nav",
15
- "z-overlay",
16
- "z-modal",
17
- "z-search",
18
- "z-toast",
19
- "z-progress"
20
- ]
21
- }
22
- }
23
- });
24
- function cn(...inputs) {
25
- return twMerge(clsx(inputs));
26
- }
27
-
28
- // src/kernel/components/ui/menu.tsx
29
- import { Check } from "lucide-react";
5
+ import { FrameworkCheckIcon as Check } from "@publish.os/nextjs/kernel/framework-icons";
6
+ import { useThemeScope } from "@publish.os/nextjs/theme-scope";
7
+ import { cn } from "@publish.os/nextjs/utils/cn";
30
8
  import { jsx } from "react/jsx-runtime";
31
9
  function MenuRoot(props) {
32
10
  return /* @__PURE__ */ jsx(BaseMenu.Root, { ...props });
@@ -36,7 +14,7 @@ function MenuTrigger({ className, ...props }) {
36
14
  BaseMenu.Trigger,
37
15
  {
38
16
  className: cn(
39
- "rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
17
+ "rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
40
18
  className
41
19
  ),
42
20
  ...props
@@ -44,7 +22,8 @@ function MenuTrigger({ className, ...props }) {
44
22
  );
45
23
  }
46
24
  function MenuPortal(props) {
47
- return /* @__PURE__ */ jsx(BaseMenu.Portal, { ...props });
25
+ let themeScope = useThemeScope();
26
+ return /* @__PURE__ */ jsx(BaseMenu.Portal, { ...props, ...themeScope });
48
27
  }
49
28
  function MenuBackdrop({ className, ...props }) {
50
29
  return /* @__PURE__ */ jsx(
@@ -74,7 +53,7 @@ function MenuPopup({ className, ...props }) {
74
53
  BaseMenu.Popup,
75
54
  {
76
55
  className: cn(
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)]",
56
+ "animate-popup min-w-44 rounded-popup border border-menu-stroke-3 bg-menu-surface-1 p-1 text-menu-foreground-1 shadow-menu outline-none [--text-foreground:var(--menu-foreground-1)] [--text-muted-foreground:var(--menu-foreground-4)]",
78
57
  className
79
58
  ),
80
59
  ...props
@@ -201,13 +180,12 @@ function MenuSeparator({ className, ...props }) {
201
180
  return /* @__PURE__ */ jsx(
202
181
  BaseMenu.Separator,
203
182
  {
204
- className: cn("my-1 h-px shrink-0 bg-stroke-3", className),
183
+ className: cn("my-1 h-px shrink-0 bg-menu-stroke-3", className),
205
184
  ...props
206
185
  }
207
186
  );
208
187
  }
209
- var createMenuHandle = BaseMenu.createHandle;
210
- var Menu = Object.assign(MenuRoot, {
188
+ var createMenuHandle = BaseMenu.createHandle, Menu = Object.assign(MenuRoot, {
211
189
  Arrow: MenuArrow,
212
190
  Backdrop: MenuBackdrop,
213
191
  CheckboxItem: MenuCheckboxItem,
@@ -1,8 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { KbdProps } from './kbd.js';
3
- import { ComponentPropsWithoutRef } from 'react';
4
- import 'class-variance-authority/types';
5
- import 'class-variance-authority';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { HTMLAttributes, ComponentPropsWithoutRef } from 'react';
5
+
6
+ declare const kbdVariants: (props?: ({
7
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
8
+ square?: boolean | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ type KbdProps = HTMLAttributes<HTMLElement> & VariantProps<typeof kbdVariants>;
6
11
 
7
12
  type MetaKeyProps = Omit<KbdProps, "children"> & {
8
13
  children?: ComponentPropsWithoutRef<"kbd">["children"];
@@ -1,5 +1,5 @@
1
- // src/kernel/components/ui/meta-key.tsx
2
- import { Kbd } from "./kbd.js";
1
+ // src/components/ui/meta-key.tsx
2
+ import { Kbd } from "@publish.os/nextjs/kernel/components/ui/kbd";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  function MetaKey({ children, ...props }) {
5
5
  return /* @__PURE__ */ jsx(Kbd, { ...props, children: children ?? "\u2318" });
@@ -1,20 +1,20 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
3
- import { ComponentPropsWithoutRef } from 'react';
3
+ import { ComponentPropsWithRef } from 'react';
4
4
 
5
- type NavigationMenuProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Root>;
6
- type NavigationMenuListProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.List>;
7
- type NavigationMenuItemProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Item>;
8
- type NavigationMenuTriggerProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Trigger>;
9
- type NavigationMenuIconProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Icon>;
10
- type NavigationMenuContentProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Content>;
11
- type NavigationMenuLinkProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Link>;
12
- type NavigationMenuBackdropProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Backdrop>;
13
- type NavigationMenuPortalProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Portal>;
14
- type NavigationMenuPositionerProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Positioner>;
15
- type NavigationMenuPopupProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Popup>;
16
- type NavigationMenuViewportProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Viewport>;
17
- type NavigationMenuArrowProps = ComponentPropsWithoutRef<typeof NavigationMenu$1.Arrow>;
5
+ type NavigationMenuProps = ComponentPropsWithRef<typeof NavigationMenu$1.Root>;
6
+ type NavigationMenuListProps = ComponentPropsWithRef<typeof NavigationMenu$1.List>;
7
+ type NavigationMenuItemProps = ComponentPropsWithRef<typeof NavigationMenu$1.Item>;
8
+ type NavigationMenuTriggerProps = ComponentPropsWithRef<typeof NavigationMenu$1.Trigger>;
9
+ type NavigationMenuIconProps = ComponentPropsWithRef<typeof NavigationMenu$1.Icon>;
10
+ type NavigationMenuContentProps = ComponentPropsWithRef<typeof NavigationMenu$1.Content>;
11
+ type NavigationMenuLinkProps = ComponentPropsWithRef<typeof NavigationMenu$1.Link>;
12
+ type NavigationMenuBackdropProps = ComponentPropsWithRef<typeof NavigationMenu$1.Backdrop>;
13
+ type NavigationMenuPortalProps = ComponentPropsWithRef<typeof NavigationMenu$1.Portal>;
14
+ type NavigationMenuPositionerProps = ComponentPropsWithRef<typeof NavigationMenu$1.Positioner>;
15
+ type NavigationMenuPopupProps = ComponentPropsWithRef<typeof NavigationMenu$1.Popup>;
16
+ type NavigationMenuViewportProps = ComponentPropsWithRef<typeof NavigationMenu$1.Viewport>;
17
+ type NavigationMenuArrowProps = ComponentPropsWithRef<typeof NavigationMenu$1.Arrow>;
18
18
  declare function NavigationMenuRoot({ className, ...props }: NavigationMenuProps): react_jsx_runtime.JSX.Element;
19
19
  declare function NavigationMenuList({ className, ...props }: NavigationMenuListProps): react_jsx_runtime.JSX.Element;
20
20
  declare function NavigationMenuItem(props: NavigationMenuItemProps): react_jsx_runtime.JSX.Element;
@@ -1,31 +1,9 @@
1
1
  "use client";
2
2
 
3
- // src/kernel/components/ui/navigation-menu.tsx
3
+ // src/components/ui/navigation-menu.tsx
4
4
  import { NavigationMenu as BaseNavigationMenu } from "@base-ui/react/navigation-menu";
5
-
6
- // src/utils/cn.ts
7
- import { clsx } from "clsx";
8
- import { extendTailwindMerge } from "tailwind-merge";
9
- var twMerge = extendTailwindMerge({
10
- extend: {
11
- classGroups: {
12
- z: [
13
- "z-content",
14
- "z-nav",
15
- "z-overlay",
16
- "z-modal",
17
- "z-search",
18
- "z-toast",
19
- "z-progress"
20
- ]
21
- }
22
- }
23
- });
24
- function cn(...inputs) {
25
- return twMerge(clsx(inputs));
26
- }
27
-
28
- // src/kernel/components/ui/navigation-menu.tsx
5
+ import { useThemeScope } from "@publish.os/nextjs/theme-scope";
6
+ import { cn } from "@publish.os/nextjs/utils/cn";
29
7
  import { jsx } from "react/jsx-runtime";
30
8
  function NavigationMenuRoot({
31
9
  className,
@@ -54,7 +32,7 @@ function NavigationMenuItem(props) {
54
32
  var navigationMenuTriggerClassName = [
55
33
  "inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-button px-3 py-1.5 text-sm font-medium leading-none text-foreground-2 outline-none transition-colors duration-150 ease-out",
56
34
  "hover:bg-surface-hover hover:text-foreground-1 active:bg-surface-active data-[popup-open]:bg-surface-active data-[popup-open]:text-foreground-1",
57
- "focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
35
+ "focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
58
36
  "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
59
37
  ].join(" ");
60
38
  function NavigationMenuTrigger({
@@ -105,7 +83,7 @@ function NavigationMenuLink({
105
83
  {
106
84
  className: cn(
107
85
  navigationMenuTriggerClassName,
108
- "!no-underline hover:!no-underline active:!no-underline data-active:bg-surface-active data-active:text-foreground-1 data-[state=path-active]:bg-surface-active data-[state=path-active]:text-foreground-1",
86
+ "!no-underline hover:!no-underline active:!no-underline data-active:bg-navigation-menu-highlight-surface data-active:text-navigation-menu-highlight-foreground data-[state=path-active]:bg-navigation-menu-highlight-surface data-[state=path-active]:text-navigation-menu-highlight-foreground",
109
87
  className
110
88
  ),
111
89
  ...props
@@ -125,7 +103,8 @@ function NavigationMenuBackdrop({
125
103
  );
126
104
  }
127
105
  function NavigationMenuPortal(props) {
128
- return /* @__PURE__ */ jsx(BaseNavigationMenu.Portal, { ...props });
106
+ let themeScope = useThemeScope();
107
+ return /* @__PURE__ */ jsx(BaseNavigationMenu.Portal, { ...props, ...themeScope });
129
108
  }
130
109
  function NavigationMenuPositioner({
131
110
  className,
@@ -149,7 +128,7 @@ function NavigationMenuPopup({
149
128
  BaseNavigationMenu.Popup,
150
129
  {
151
130
  className: cn(
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)]",
131
+ "animate-popup min-w-56 rounded-popup border border-navigation-menu-stroke-3 bg-navigation-menu-surface-1 p-2 text-navigation-menu-foreground-1 shadow-navigation-menu outline-none [--text-foreground:var(--navigation-menu-foreground-1)] [--text-muted-foreground:var(--navigation-menu-foreground-4)]",
153
132
  className
154
133
  ),
155
134
  ...props
@@ -176,7 +155,7 @@ function NavigationMenuArrow({
176
155
  BaseNavigationMenu.Arrow,
177
156
  {
178
157
  className: cn(
179
- "size-2 rotate-45 border border-[color:var(--menu-stroke-3)] bg-menu-surface-1",
158
+ "size-2 rotate-45 border border-navigation-menu-stroke-3 bg-navigation-menu-surface-1",
180
159
  className
181
160
  ),
182
161
  ...props
@@ -1,16 +1,16 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Popover as Popover$1 } from '@base-ui/react/popover';
3
- import { ComponentPropsWithoutRef } from 'react';
3
+ import { ComponentPropsWithRef } from 'react';
4
4
 
5
- type PopoverProps = ComponentPropsWithoutRef<typeof Popover$1.Root>;
6
- type PopoverTriggerProps = ComponentPropsWithoutRef<typeof Popover$1.Trigger>;
7
- type PopoverPortalProps = ComponentPropsWithoutRef<typeof Popover$1.Portal>;
8
- type PopoverPositionerProps = ComponentPropsWithoutRef<typeof Popover$1.Positioner>;
9
- type PopoverPopupProps = ComponentPropsWithoutRef<typeof Popover$1.Popup>;
10
- type PopoverTitleProps = ComponentPropsWithoutRef<typeof Popover$1.Title>;
11
- type PopoverDescriptionProps = ComponentPropsWithoutRef<typeof Popover$1.Description>;
12
- type PopoverCloseProps = ComponentPropsWithoutRef<typeof Popover$1.Close>;
13
- type PopoverArrowProps = ComponentPropsWithoutRef<typeof Popover$1.Arrow>;
5
+ type PopoverProps = ComponentPropsWithRef<typeof Popover$1.Root>;
6
+ type PopoverTriggerProps = ComponentPropsWithRef<typeof Popover$1.Trigger>;
7
+ type PopoverPortalProps = ComponentPropsWithRef<typeof Popover$1.Portal>;
8
+ type PopoverPositionerProps = ComponentPropsWithRef<typeof Popover$1.Positioner>;
9
+ type PopoverPopupProps = ComponentPropsWithRef<typeof Popover$1.Popup>;
10
+ type PopoverTitleProps = ComponentPropsWithRef<typeof Popover$1.Title>;
11
+ type PopoverDescriptionProps = ComponentPropsWithRef<typeof Popover$1.Description>;
12
+ type PopoverCloseProps = ComponentPropsWithRef<typeof Popover$1.Close>;
13
+ type PopoverArrowProps = ComponentPropsWithRef<typeof Popover$1.Arrow>;
14
14
  declare function Popover(props: PopoverProps): react_jsx_runtime.JSX.Element;
15
15
  declare function PopoverTrigger({ className, ...props }: PopoverTriggerProps): react_jsx_runtime.JSX.Element;
16
16
  declare function PopoverPortal(props: PopoverPortalProps): react_jsx_runtime.JSX.Element;