@hanzo/docs 16.3.0 → 16.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/.turbo/turbo-build.log +199 -0
  2. package/LICENSE +21 -0
  3. package/dist/cli/build.d.ts +28 -53
  4. package/dist/mdx/vite.d.ts +0 -1
  5. package/dist/mdx/vite.js +0 -4
  6. package/dist/ui/components/accordion.d.ts +1 -1
  7. package/dist/ui/components/accordion.js +1 -1
  8. package/dist/ui/components/banner.d.ts +1 -1
  9. package/dist/ui/components/banner.js +1 -1
  10. package/dist/ui/components/callout.d.ts +1 -1
  11. package/dist/ui/components/callout.js +1 -1
  12. package/dist/ui/components/card.d.ts +1 -1
  13. package/dist/ui/components/card.js +1 -1
  14. package/dist/ui/components/codeblock.d.ts +1 -1
  15. package/dist/ui/components/codeblock.js +1 -1
  16. package/dist/ui/components/dialog/search.d.ts +1 -1
  17. package/dist/ui/components/dialog/search.js +1 -1
  18. package/dist/ui/components/dynamic-codeblock.d.ts +1 -1
  19. package/dist/ui/components/dynamic-codeblock.js +1 -1
  20. package/dist/ui/components/files.d.ts +1 -1
  21. package/dist/ui/components/files.js +1 -1
  22. package/dist/ui/components/github-info.d.ts +1 -1
  23. package/dist/ui/components/github-info.js +1 -1
  24. package/dist/ui/components/heading.d.ts +1 -1
  25. package/dist/ui/components/heading.js +1 -1
  26. package/dist/ui/components/image-zoom.d.ts +1 -1
  27. package/dist/ui/components/image-zoom.js +1 -1
  28. package/dist/ui/components/inline-toc.d.ts +1 -1
  29. package/dist/ui/components/inline-toc.js +1 -1
  30. package/dist/ui/components/steps.d.ts +1 -1
  31. package/dist/ui/components/steps.js +1 -1
  32. package/dist/ui/components/tabs.d.ts +1 -1
  33. package/dist/ui/components/tabs.js +1 -1
  34. package/dist/ui/components/type-table.d.ts +1 -1
  35. package/dist/ui/components/type-table.js +1 -1
  36. package/dist/ui/components/ui/button.d.ts +1 -1
  37. package/dist/ui/components/ui/button.js +1 -1
  38. package/dist/ui/contexts/i18n.d.ts +1 -1
  39. package/dist/ui/contexts/i18n.js +1 -1
  40. package/dist/ui/contexts/tree.d.ts +1 -1
  41. package/dist/ui/contexts/tree.js +1 -1
  42. package/dist/ui/i18n.d.ts +1 -1
  43. package/dist/ui/i18n.js +1 -1
  44. package/dist/ui/index.d.ts +2 -0
  45. package/dist/ui/index.js +0 -0
  46. package/dist/ui/layouts/docs.d.ts +1 -1
  47. package/dist/ui/layouts/docs.js +1 -1
  48. package/dist/ui/layouts/home/navbar.d.ts +1 -1
  49. package/dist/ui/layouts/home/navbar.js +1 -1
  50. package/dist/ui/layouts/home.d.ts +1 -1
  51. package/dist/ui/layouts/home.js +1 -1
  52. package/dist/ui/layouts/shared.d.ts +1 -1
  53. package/dist/ui/layouts/shared.js +1 -1
  54. package/dist/ui/mdx.d.ts +2 -2
  55. package/dist/ui/mdx.js +2 -2
  56. package/dist/ui/og.d.ts +1 -1
  57. package/dist/ui/og.js +1 -1
  58. package/dist/ui/page.d.ts +1 -1
  59. package/dist/ui/page.js +1 -1
  60. package/dist/ui/provider/base.d.ts +1 -1
  61. package/dist/ui/provider/base.js +1 -1
  62. package/dist/ui/utils/use-copy-button.d.ts +1 -1
  63. package/dist/ui/utils/use-copy-button.js +1 -1
  64. package/package.json +411 -109
  65. package/scripts/copy-css.js +8 -28
  66. package/src/mdx/vite.ts +0 -1
  67. package/src/ui/components/accordion.ts +1 -1
  68. package/src/ui/components/banner.ts +1 -1
  69. package/src/ui/components/callout.ts +1 -1
  70. package/src/ui/components/card.ts +1 -1
  71. package/src/ui/components/codeblock.ts +1 -1
  72. package/src/ui/components/dialog/search.ts +1 -1
  73. package/src/ui/components/dynamic-codeblock.ts +1 -1
  74. package/src/ui/components/files.ts +1 -1
  75. package/src/ui/components/github-info.ts +1 -1
  76. package/src/ui/components/heading.ts +1 -1
  77. package/src/ui/components/image-zoom.ts +1 -1
  78. package/src/ui/components/inline-toc.ts +1 -1
  79. package/src/ui/components/steps.ts +1 -1
  80. package/src/ui/components/tabs.ts +1 -1
  81. package/src/ui/components/type-table.ts +1 -1
  82. package/src/ui/components/ui/button.ts +1 -1
  83. package/src/ui/contexts/i18n.ts +1 -1
  84. package/src/ui/contexts/tree.ts +1 -1
  85. package/src/ui/i18n.ts +1 -1
  86. package/src/ui/index.ts +2 -0
  87. package/src/ui/layouts/docs.ts +1 -1
  88. package/src/ui/layouts/home/navbar.ts +1 -1
  89. package/src/ui/layouts/home.ts +1 -1
  90. package/src/ui/layouts/shared.ts +1 -1
  91. package/src/ui/mdx.ts +2 -2
  92. package/src/ui/og.ts +1 -1
  93. package/src/ui/page.ts +1 -1
  94. package/src/ui/provider/base.ts +1 -1
  95. package/src/ui/utils/use-copy-button.ts +1 -1
  96. package/tsup.config.ts +23 -7
  97. package/dist/mdx/plugins/index-file.d.ts +0 -1
  98. package/dist/mdx/plugins/index-file.js +0 -2
  99. package/dist/mdx/plugins/json-schema.d.ts +0 -2
  100. package/dist/mdx/plugins/json-schema.js +0 -6
  101. package/dist/mdx/plugins/last-modified.d.ts +0 -2
  102. package/dist/mdx/plugins/last-modified.js +0 -6
  103. package/dist/openapi/css/preset.css +0 -1
  104. package/dist/twoslash/twoslash.css +0 -225
  105. package/dist/ui/components/dialog/search-algolia.d.ts +0 -1
  106. package/dist/ui/components/dialog/search-algolia.js +0 -2
  107. package/dist/ui/components/dialog/search-default.d.ts +0 -1
  108. package/dist/ui/components/dialog/search-default.js +0 -2
  109. package/dist/ui/components/dialog/search-orama.d.ts +0 -1
  110. package/dist/ui/components/dialog/search-orama.js +0 -2
  111. package/dist/ui/components/sidebar/base.d.ts +0 -1
  112. package/dist/ui/components/sidebar/base.js +0 -2
  113. package/dist/ui/components/sidebar/link-item.d.ts +0 -1
  114. package/dist/ui/components/sidebar/link-item.js +0 -2
  115. package/dist/ui/components/sidebar/page-tree.d.ts +0 -1
  116. package/dist/ui/components/sidebar/page-tree.js +0 -2
  117. package/dist/ui/components/toc/clerk.d.ts +0 -1
  118. package/dist/ui/components/toc/clerk.js +0 -2
  119. package/dist/ui/components/toc/default.d.ts +0 -1
  120. package/dist/ui/components/toc/default.js +0 -2
  121. package/dist/ui/components/toc/index.d.ts +0 -1
  122. package/dist/ui/components/toc/index.js +0 -2
  123. package/dist/ui/components/ui/accordion.d.ts +0 -1
  124. package/dist/ui/components/ui/accordion.js +0 -2
  125. package/dist/ui/components/ui/collapsible.d.ts +0 -1
  126. package/dist/ui/components/ui/collapsible.js +0 -2
  127. package/dist/ui/components/ui/navigation-menu.d.ts +0 -1
  128. package/dist/ui/components/ui/navigation-menu.js +0 -2
  129. package/dist/ui/components/ui/popover.d.ts +0 -1
  130. package/dist/ui/components/ui/popover.js +0 -2
  131. package/dist/ui/components/ui/scroll-area.d.ts +0 -1
  132. package/dist/ui/components/ui/scroll-area.js +0 -2
  133. package/dist/ui/components/ui/tabs.d.ts +0 -1
  134. package/dist/ui/components/ui/tabs.js +0 -2
  135. package/dist/ui/css/black.css +0 -1
  136. package/dist/ui/css/catppuccin.css +0 -1
  137. package/dist/ui/css/dusk.css +0 -1
  138. package/dist/ui/css/layouts/docs.css +0 -1
  139. package/dist/ui/css/layouts/home.css +0 -1
  140. package/dist/ui/css/layouts/notebook.css +0 -1
  141. package/dist/ui/css/neutral.css +0 -1
  142. package/dist/ui/css/ocean.css +0 -1
  143. package/dist/ui/css/preset.css +0 -10
  144. package/dist/ui/css/purple.css +0 -1
  145. package/dist/ui/css/shadcn.css +0 -1
  146. package/dist/ui/css/solar.css +0 -1
  147. package/dist/ui/css/style.css +0 -9
  148. package/dist/ui/css/vitepress.css +0 -1
  149. package/dist/ui/image-zoom.css +0 -77
  150. package/dist/ui/layouts/docs/page.d.ts +0 -1
  151. package/dist/ui/layouts/docs/page.js +0 -2
  152. package/dist/ui/layouts/notebook/page.d.ts +0 -1
  153. package/dist/ui/layouts/notebook/page.js +0 -2
  154. package/dist/ui/layouts/notebook.d.ts +0 -1
  155. package/dist/ui/layouts/notebook.js +0 -2
  156. package/dist/ui/provider/next.d.ts +0 -1
  157. package/dist/ui/provider/next.js +0 -2
  158. package/dist/ui/provider/react-router.d.ts +0 -1
  159. package/dist/ui/provider/react-router.js +0 -2
  160. package/dist/ui/provider/tanstack.d.ts +0 -1
  161. package/dist/ui/provider/tanstack.js +0 -2
  162. package/dist/ui/provider/waku.d.ts +0 -1
  163. package/dist/ui/provider/waku.js +0 -2
  164. package/dist/ui/style.css +0 -3180
  165. package/src/mdx/plugins/index-file.ts +0 -1
  166. package/src/mdx/plugins/json-schema.ts +0 -2
  167. package/src/mdx/plugins/last-modified.ts +0 -2
  168. package/src/ui/components/dialog/search-algolia.ts +0 -1
  169. package/src/ui/components/dialog/search-default.ts +0 -1
  170. package/src/ui/components/dialog/search-orama.ts +0 -1
  171. package/src/ui/components/sidebar/base.ts +0 -1
  172. package/src/ui/components/sidebar/link-item.ts +0 -1
  173. package/src/ui/components/sidebar/page-tree.ts +0 -1
  174. package/src/ui/components/toc/clerk.ts +0 -1
  175. package/src/ui/components/toc/default.ts +0 -1
  176. package/src/ui/components/toc/index.ts +0 -1
  177. package/src/ui/components/ui/accordion.ts +0 -1
  178. package/src/ui/components/ui/collapsible.ts +0 -1
  179. package/src/ui/components/ui/navigation-menu.ts +0 -1
  180. package/src/ui/components/ui/popover.ts +0 -1
  181. package/src/ui/components/ui/scroll-area.ts +0 -1
  182. package/src/ui/components/ui/tabs.ts +0 -1
  183. package/src/ui/layouts/docs/page.ts +0 -1
  184. package/src/ui/layouts/notebook/page.ts +0 -1
  185. package/src/ui/layouts/notebook.ts +0 -1
  186. package/src/ui/provider/next.ts +0 -1
  187. package/src/ui/provider/react-router.ts +0 -1
  188. package/src/ui/provider/tanstack.ts +0 -1
  189. package/src/ui/provider/waku.ts +0 -1
@@ -5,53 +5,33 @@ import { fileURLToPath } from 'url';
5
5
  const __dirname = dirname(fileURLToPath(import.meta.url));
6
6
  const root = join(__dirname, '..');
7
7
 
8
- // Copy CSS files from @hanzo/docs-base-ui
9
- const uiCssSource = join(root, 'node_modules/@hanzo/docs-base-ui/css');
10
- const uiCssDest = join(root, 'dist/ui/css');
11
-
12
- // Copy style.css from dist
13
- const uiDistSource = join(root, 'node_modules/@hanzo/docs-base-ui/dist');
14
- const uiDistDest = join(root, 'dist/ui');
15
-
16
- // Copy twoslash.css from @hanzo/docs-twoslash (styles folder)
17
- const twoslashStylesSource = join(root, 'node_modules/@hanzo/docs-twoslash/styles');
8
+ // Copy twoslash.css from fumadocs-twoslash (styles folder)
9
+ const twoslashStylesSource = join(root, 'node_modules/fumadocs-twoslash/styles');
18
10
  const twoslashDistDest = join(root, 'dist/twoslash');
19
11
 
20
- // Copy openapi CSS from @hanzo/docs-openapi
21
- const openapiCssSource = join(root, 'node_modules/@hanzo/docs-openapi/css');
12
+ // Copy openapi CSS from fumadocs-openapi
13
+ const openapiCssSource = join(root, 'node_modules/fumadocs-openapi/css');
22
14
  const openapiCssDest = join(root, 'dist/openapi/css');
23
15
 
24
16
  try {
25
- mkdirSync(uiCssDest, { recursive: true });
26
- cpSync(uiCssSource, uiCssDest, { recursive: true });
27
- cpSync(join(uiDistSource, 'style.css'), join(uiDistDest, 'style.css'));
28
- // image-zoom.css is in dist/components/
29
- cpSync(join(uiDistSource, 'components/image-zoom.css'), join(uiDistDest, 'image-zoom.css'));
30
-
31
- // Copy theme directory for CSS relative references (preset.css references ../dist/theme/typography)
32
- // From dist/ui/css/, ../dist/theme/ resolves to dist/ui/dist/theme/
33
- const themeSource = join(uiDistSource, 'theme');
34
- const themeDest = join(root, 'dist/ui/dist/theme');
35
- if (existsSync(themeSource)) {
36
- mkdirSync(themeDest, { recursive: true });
37
- cpSync(themeSource, themeDest, { recursive: true });
38
- }
39
-
40
17
  // Copy twoslash.css if it exists
41
18
  mkdirSync(twoslashDistDest, { recursive: true });
42
19
  const twoslashCssSrc = join(twoslashStylesSource, 'twoslash.css');
43
20
  if (existsSync(twoslashCssSrc)) {
44
21
  cpSync(twoslashCssSrc, join(twoslashDistDest, 'twoslash.css'));
22
+ console.log('Copied twoslash.css');
45
23
  }
46
24
 
47
25
  // Copy openapi CSS if it exists
48
26
  if (existsSync(openapiCssSource)) {
49
27
  mkdirSync(openapiCssDest, { recursive: true });
50
28
  cpSync(openapiCssSource, openapiCssDest, { recursive: true });
29
+ console.log('Copied openapi CSS');
51
30
  }
52
31
 
53
32
  console.log('CSS files copied successfully');
54
33
  } catch (error) {
55
34
  console.error('Error copying CSS files:', error);
56
- process.exit(1);
35
+ // Don't fail build if CSS copy fails - these are optional
36
+ console.log('Continuing without CSS files');
57
37
  }
package/src/mdx/vite.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from '@hanzo/docs-mdx/vite';
2
- export { default } from '@hanzo/docs-mdx/vite';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/accordion';
1
+ export * from '@hanzo/docs-radix-ui/components/accordion';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/banner';
1
+ export * from '@hanzo/docs-radix-ui/components/banner';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/callout';
1
+ export * from '@hanzo/docs-radix-ui/components/callout';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/card';
1
+ export * from '@hanzo/docs-radix-ui/components/card';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/codeblock';
1
+ export * from '@hanzo/docs-radix-ui/components/codeblock';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/dialog/search';
1
+ export * from '@hanzo/docs-radix-ui/components/dialog/search';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/dynamic-codeblock';
1
+ export * from '@hanzo/docs-radix-ui/components/dynamic-codeblock';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/files';
1
+ export * from '@hanzo/docs-radix-ui/components/files';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/github-info';
1
+ export * from '@hanzo/docs-radix-ui/components/github-info';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/heading';
1
+ export * from '@hanzo/docs-radix-ui/components/heading';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/image-zoom';
1
+ export * from '@hanzo/docs-radix-ui/components/image-zoom';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/inline-toc';
1
+ export * from '@hanzo/docs-radix-ui/components/inline-toc';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/steps';
1
+ export * from '@hanzo/docs-radix-ui/components/steps';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/tabs';
1
+ export * from '@hanzo/docs-radix-ui/components/tabs';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/type-table';
1
+ export * from '@hanzo/docs-radix-ui/components/type-table';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/button';
1
+ export * from '@hanzo/docs-radix-ui/components/ui/button';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/contexts/i18n';
1
+ export * from '@hanzo/docs-radix-ui/contexts/i18n';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/contexts/tree';
1
+ export * from '@hanzo/docs-radix-ui/contexts/tree';
package/src/ui/i18n.ts CHANGED
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/i18n';
1
+ export * from '@hanzo/docs-radix-ui/i18n';
@@ -0,0 +1,2 @@
1
+ // UI components are re-exported via specific subpaths like ./ui/mdx, ./ui/page, ./ui/components/*
2
+ export {};
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/layouts/docs';
1
+ export * from '@hanzo/docs-radix-ui/layouts/docs';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/layouts/home/navbar';
1
+ export * from '@hanzo/docs-radix-ui/layouts/home/navbar';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/layouts/home';
1
+ export * from '@hanzo/docs-radix-ui/layouts/home';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/layouts/shared';
1
+ export * from '@hanzo/docs-radix-ui/layouts/shared';
package/src/ui/mdx.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from '@hanzo/docs-base-ui/mdx';
2
- export { default } from '@hanzo/docs-base-ui/mdx';
1
+ export * from '@hanzo/docs-radix-ui/mdx';
2
+ export { default } from '@hanzo/docs-radix-ui/mdx';
package/src/ui/og.ts CHANGED
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/og';
1
+ export * from '@hanzo/docs-radix-ui/og';
package/src/ui/page.ts CHANGED
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/page';
1
+ export * from '@hanzo/docs-radix-ui/page';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/provider/base';
1
+ export * from '@hanzo/docs-radix-ui/provider/base';
@@ -1 +1 @@
1
- export * from '@hanzo/docs-base-ui/utils/use-copy-button';
1
+ export * from '@hanzo/docs-radix-ui/utils/use-copy-button';
package/tsup.config.ts CHANGED
@@ -26,26 +26,42 @@ const entries = getEntries('./src');
26
26
  export default defineConfig({
27
27
  entry: entries,
28
28
  format: ['esm'],
29
- dts: true, // Generate declaration files for type support
29
+ dts: true,
30
30
  splitting: false,
31
31
  clean: true,
32
32
  external: [
33
+ // Core packages (we re-export from these)
33
34
  '@hanzo/docs-core',
34
- '@hanzo/docs-ui',
35
- '@hanzo/docs-base-ui',
36
35
  '@hanzo/docs-mdx',
36
+ '@hanzo/docs-ui',
37
+ '@hanzo/docs-radix-ui',
37
38
  '@hanzo/docs-openapi',
38
39
  '@hanzo/docs-twoslash',
40
+ '@hanzo/docs-obsidian',
41
+ '@hanzo/docs-mdx-remote',
42
+ '@hanzo/docs-cli',
43
+ // Hanzo packages (peer dependencies)
44
+ '@hanzo/ui',
45
+ '@hanzo/mdx',
39
46
  '@hanzo/docs-typescript',
40
47
  '@hanzo/docs-docgen',
41
- '@hanzo/docs-cli',
42
- '@hanzo/mdx-runtime',
43
48
  '@hanzo/docs-python',
44
- '@hanzo/docs-obsidian',
45
49
  '@hanzo/docs-content-collections',
46
50
  '@hanzo/docs-press',
51
+ '@hanzo/mdx-runtime',
52
+ // React ecosystem
47
53
  'react',
48
54
  'react-dom',
49
- 'next'
55
+ 'next',
56
+ // Optional integrations
57
+ 'algoliasearch',
58
+ '@orama/orama',
59
+ '@orama/core',
60
+ '@oramacloud/client',
61
+ '@tanstack/react-router',
62
+ 'react-router',
63
+ 'waku',
64
+ 'zod',
65
+ 'lucide-react'
50
66
  ],
51
67
  });
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-mdx/plugins/index-file';
@@ -1,2 +0,0 @@
1
- // src/mdx/plugins/index-file.ts
2
- export * from "@hanzo/docs-mdx/plugins/index-file";
@@ -1,2 +0,0 @@
1
- export * from '@hanzo/docs-mdx/plugins/json-schema';
2
- export { default } from '@hanzo/docs-mdx/plugins/json-schema';
@@ -1,6 +0,0 @@
1
- // src/mdx/plugins/json-schema.ts
2
- export * from "@hanzo/docs-mdx/plugins/json-schema";
3
- import { default as default2 } from "@hanzo/docs-mdx/plugins/json-schema";
4
- export {
5
- default2 as default
6
- };
@@ -1,2 +0,0 @@
1
- export * from '@hanzo/docs-mdx/plugins/last-modified';
2
- export { default } from '@hanzo/docs-mdx/plugins/last-modified';
@@ -1,6 +0,0 @@
1
- // src/mdx/plugins/last-modified.ts
2
- export * from "@hanzo/docs-mdx/plugins/last-modified";
3
- import { default as default2 } from "@hanzo/docs-mdx/plugins/last-modified";
4
- export {
5
- default2 as default
6
- };
@@ -1 +0,0 @@
1
- @source '../dist/**/*.js';
@@ -1,225 +0,0 @@
1
- /* ===== Basic ===== */
2
- @theme {
3
- --color-twoslash-error-foreground: #d45656;
4
- --color-twoslash-error: #d4565620;
5
- --color-twoslash-tag-foreground: #3772cf;
6
- --color-twoslash-tag: #3772cf20;
7
- --color-twoslash-tag-warn-foreground: #c37d0d;
8
- --color-twoslash-tag-warn: #c37d0d20;
9
- --color-twoslash-tag-annotate-foreground: #1ba673;
10
- --color-twoslash-tag-annotate: #1ba67320;
11
- }
12
-
13
- .twoslash-meta-line {
14
- display: flex;
15
- }
16
-
17
- .twoslash-completion-list,
18
- .twoslash-popup-container {
19
- position: relative;
20
- user-select: none;
21
- display: flex;
22
- margin-top: 8px;
23
- width: 20rem;
24
- margin-right: -20rem;
25
- flex-direction: column;
26
- white-space: normal;
27
- box-shadow:
28
- 0 4px 6px -1px rgb(0 0 0 / 0.1),
29
- 0 2px 4px -2px rgb(0 0 0 / 0.1);
30
- border: 1px solid var(--color-fd-border);
31
- border-radius: 6px;
32
- padding: 8px;
33
- z-index: 8;
34
- color: var(--color-fd-popover-foreground);
35
- background-color: var(--color-fd-popover);
36
- }
37
-
38
- .twoslash-completion-cursor {
39
- display: inline-flex;
40
- flex-direction: column;
41
- }
42
-
43
- .twoslash-completion-list:hover {
44
- user-select: auto;
45
- }
46
-
47
- .twoslash-popup-arrow {
48
- position: absolute;
49
- top: -4px;
50
- left: 1em;
51
- transform: rotate(-45deg);
52
- pointer-events: none;
53
- width: 6px;
54
- height: 6px;
55
- border-top-width: 1px;
56
- border-right-width: 1px;
57
- border-color: var(--color-fd-primary);
58
- background-color: var(--color-fd-popover);
59
- }
60
-
61
- .twoslash-popup-docs-tag {
62
- display: flex;
63
- flex-direction: row;
64
- gap: 0.5em;
65
- }
66
-
67
- .twoslash-popup-docs-tag-name {
68
- font-weight: 600;
69
- }
70
-
71
- .twoslash-popup-code {
72
- font-size: 13px !important;
73
- overflow-wrap: anywhere;
74
- }
75
-
76
- .twoslash-popup-code .line {
77
- padding-left: 0 !important;
78
- }
79
-
80
- .twoslash-popup-docs,
81
- .twoslash-popup-docs-tags {
82
- font-size: 14px !important;
83
- line-height: 20px !important;
84
- margin-top: 8px !important;
85
- }
86
-
87
- /* ===== Hover Info ===== */
88
- .twoslash:hover .twoslash-hover {
89
- border-color: currentColor;
90
- }
91
-
92
- .twoslash .twoslash-hover {
93
- /* Reset button styles to make it behave like inline text */
94
- all: unset;
95
-
96
- /* Restore the original hover indicator styles */
97
- position: relative;
98
- transition: border 300ms;
99
- border-bottom: 1px dotted;
100
- border-color: transparent;
101
- }
102
-
103
- /* ===== Error Line ===== */
104
- .twoslash .twoslash-error-line {
105
- position: relative;
106
- background-color: var(--twoslash-error-bg);
107
- border-left: 3px solid var(--color-twoslash-error-foreground);
108
- color: var(--color-twoslash-error-foreground);
109
- padding: 6px 12px;
110
- margin: 0.2em 0;
111
- }
112
-
113
- .twoslash .twoslash-error {
114
- text-decoration: wavy underline var(--color-twoslash-error-foreground);
115
- padding-bottom: 2px;
116
- }
117
-
118
- /* ===== Completions ===== */
119
- .twoslash-completion-cursor::before {
120
- width: 1px;
121
- height: 1.4em;
122
- content: ' ';
123
- background-color: var(--color-fd-foreground);
124
- }
125
-
126
- .twoslash-completion-list {
127
- display: inline-flex;
128
- }
129
-
130
- .twoslash-completion-list li {
131
- font-size: 13px;
132
- display: inline-flex;
133
- align-items: center;
134
- overflow: hidden;
135
- text-overflow: ellipsis;
136
- white-space: nowrap;
137
- gap: 0.5rem;
138
- }
139
-
140
- .twoslash-completion-list li span.twoslash-completions-unmatched {
141
- color: var(--color-fd-muted-foreground);
142
- }
143
-
144
- .twoslash-completion-list .deprecated {
145
- text-decoration: line-through;
146
- opacity: 0.5;
147
- }
148
-
149
- /* Icons */
150
- .twoslash-completion-list .twoslash-completions-icon {
151
- width: 1em;
152
- flex: none;
153
- color: var(--color-fd-muted-foreground);
154
- }
155
-
156
- /* Custom Tags */
157
- .twoslash .twoslash-tag-line {
158
- position: relative;
159
- background-color: var(--color-twoslash-tag);
160
- border-left: 3px solid var(--color-twoslash-tag-foreground);
161
- color: var(--color-twoslash-tag-foreground);
162
- padding: 6px 10px;
163
- margin: 0.2em 0;
164
- display: flex;
165
- align-items: center;
166
- gap: 0.3em;
167
- }
168
-
169
- .twoslash .twoslash-tag-line .twoslash-tag-icon {
170
- width: 1.1em;
171
- color: inherit;
172
- }
173
-
174
- .twoslash .twoslash-tag-line.twoslash-tag-error-line {
175
- background-color: var(--color-twoslash-error);
176
- border-left: 3px solid var(--color-twoslash-error-foreground);
177
- color: var(--color-twoslash-error-foreground);
178
- }
179
-
180
- .twoslash .twoslash-tag-line.twoslash-tag-warn-line {
181
- background-color: var(--color-twoslash-tag-warn);
182
- border-left: 3px solid var(--color-twoslash-tag-warn-foreground);
183
- color: var(--color-twoslash-tag-warn-foreground);
184
- }
185
-
186
- .twoslash .twoslash-tag-line.twoslash-tag-annotate-line {
187
- background-color: var(--color-twoslash-tag-annotate);
188
- border-left: 3px solid var(--color-twoslash-tag-annotate-foreground);
189
- color: var(--color-twoslash-tag-annotate-foreground);
190
- }
191
-
192
- /* Respect people's wishes to not have animations */
193
- @media (prefers-reduced-motion: reduce) {
194
- .twoslash * {
195
- transition: none !important;
196
- }
197
- }
198
-
199
- .fd-twoslash-popover {
200
- z-index: 50;
201
- min-width: 240px;
202
- max-width: min(450px, 96vw);
203
- max-height: 400px;
204
- overflow: auto;
205
- border-radius: var(--radius-xl);
206
- border: 1px solid var(--color-fd-border);
207
- background-color: var(--color-fd-popover);
208
- padding: calc(var(--spacing) * 3);
209
- font-size: var(--text-sm);
210
- color: var(--color-fd-popover-foreground);
211
- box-shadow: var(--shadow-md);
212
- transform-origin: var(--radix-popover-content-transform-origin);
213
- }
214
-
215
- .fd-twoslash-popover[data-state='open'] {
216
- animation: var(--animate-fd-popover-in);
217
- }
218
-
219
- .fd-twoslash-popover[data-state='closed'] {
220
- animation: var(--animate-fd-popover-out);
221
- }
222
-
223
- .fd-twoslash-popover:focus-visible {
224
- outline-style: none;
225
- }
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/dialog/search-algolia';
@@ -1,2 +0,0 @@
1
- // src/ui/components/dialog/search-algolia.ts
2
- export * from "@hanzo/docs-base-ui/components/dialog/search-algolia";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/dialog/search-default';
@@ -1,2 +0,0 @@
1
- // src/ui/components/dialog/search-default.ts
2
- export * from "@hanzo/docs-base-ui/components/dialog/search-default";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/dialog/search-orama';
@@ -1,2 +0,0 @@
1
- // src/ui/components/dialog/search-orama.ts
2
- export * from "@hanzo/docs-base-ui/components/dialog/search-orama";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/sidebar/base';
@@ -1,2 +0,0 @@
1
- // src/ui/components/sidebar/base.ts
2
- export * from "@hanzo/docs-base-ui/components/sidebar/base";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/sidebar/link-item';
@@ -1,2 +0,0 @@
1
- // src/ui/components/sidebar/link-item.ts
2
- export * from "@hanzo/docs-base-ui/components/sidebar/link-item";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/sidebar/page-tree';
@@ -1,2 +0,0 @@
1
- // src/ui/components/sidebar/page-tree.ts
2
- export * from "@hanzo/docs-base-ui/components/sidebar/page-tree";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/toc/clerk';
@@ -1,2 +0,0 @@
1
- // src/ui/components/toc/clerk.ts
2
- export * from "@hanzo/docs-base-ui/components/toc/clerk";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/toc/default';
@@ -1,2 +0,0 @@
1
- // src/ui/components/toc/default.ts
2
- export * from "@hanzo/docs-base-ui/components/toc/default";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/toc/index';
@@ -1,2 +0,0 @@
1
- // src/ui/components/toc/index.ts
2
- export * from "@hanzo/docs-base-ui/components/toc/index";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/accordion';
@@ -1,2 +0,0 @@
1
- // src/ui/components/ui/accordion.ts
2
- export * from "@hanzo/docs-base-ui/components/ui/accordion";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/collapsible';
@@ -1,2 +0,0 @@
1
- // src/ui/components/ui/collapsible.ts
2
- export * from "@hanzo/docs-base-ui/components/ui/collapsible";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/navigation-menu';
@@ -1,2 +0,0 @@
1
- // src/ui/components/ui/navigation-menu.ts
2
- export * from "@hanzo/docs-base-ui/components/ui/navigation-menu";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/popover';
@@ -1,2 +0,0 @@
1
- // src/ui/components/ui/popover.ts
2
- export * from "@hanzo/docs-base-ui/components/ui/popover";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/scroll-area';
@@ -1,2 +0,0 @@
1
- // src/ui/components/ui/scroll-area.ts
2
- export * from "@hanzo/docs-base-ui/components/ui/scroll-area";
@@ -1 +0,0 @@
1
- export * from '@hanzo/docs-base-ui/components/ui/tabs';
@@ -1,2 +0,0 @@
1
- // src/ui/components/ui/tabs.ts
2
- export * from "@hanzo/docs-base-ui/components/ui/tabs";
@@ -1 +0,0 @@
1
- @import '@hanzo/docs-ui/css/colors/black.css';
@@ -1 +0,0 @@
1
- @import '@hanzo/docs-ui/css/colors/catppuccin.css';
@@ -1 +0,0 @@
1
- @import '@hanzo/docs-ui/css/colors/dusk.css';
@@ -1 +0,0 @@
1
- @source '../../dist/layouts/docs/**/*.js';