svelte-docsmith 0.5.1 → 0.7.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 (327) hide show
  1. package/README.md +6 -2
  2. package/dist/{markdown-layout.svelte → buildtime/markdown-layout.svelte} +1 -1
  3. package/dist/{markdown-layout.svelte.d.ts → buildtime/markdown-layout.svelte.d.ts} +2 -2
  4. package/dist/{vite.d.ts → buildtime/vite/collect.d.ts} +5 -23
  5. package/dist/buildtime/vite/collect.js +101 -0
  6. package/dist/buildtime/vite/extract.d.ts +30 -0
  7. package/dist/buildtime/vite/extract.js +104 -0
  8. package/dist/buildtime/vite/frontmatter.d.ts +6 -0
  9. package/dist/buildtime/vite/frontmatter.js +20 -0
  10. package/dist/buildtime/vite/git.d.ts +2 -0
  11. package/dist/buildtime/vite/git.js +11 -0
  12. package/dist/buildtime/vite/index.d.ts +25 -0
  13. package/dist/buildtime/vite/index.js +141 -0
  14. package/dist/buildtime/vite/pages.d.ts +6 -0
  15. package/dist/buildtime/vite/pages.js +23 -0
  16. package/dist/{ui → components/chrome}/copy-button.svelte +1 -1
  17. package/dist/{ui → components/chrome}/search-trigger.svelte +1 -1
  18. package/dist/{ui → components/chrome}/search.svelte +5 -5
  19. package/dist/{ui → components/chrome}/search.svelte.d.ts +1 -1
  20. package/dist/{ui → components/chrome}/table-of-contents.svelte +2 -2
  21. package/dist/{ui → components/chrome}/table-of-contents.svelte.d.ts +1 -1
  22. package/dist/{ui → components/chrome}/theme-toggle.svelte +1 -1
  23. package/dist/{ui → components/docs}/accordion-item.svelte +1 -1
  24. package/dist/{ui → components/docs}/accordion.svelte +1 -1
  25. package/dist/{ui → components/docs}/badge.svelte +1 -1
  26. package/dist/{ui → components/docs}/live-example.svelte +3 -3
  27. package/dist/{ui → components/docs}/tab-item.svelte +1 -1
  28. package/dist/{ui → components/docs}/tabs.svelte +1 -1
  29. package/dist/{ui → components}/layouts/docs-footer.svelte +1 -1
  30. package/dist/{ui → components}/layouts/docs-footer.svelte.d.ts +1 -1
  31. package/dist/{ui → components}/layouts/docs-header.svelte +3 -3
  32. package/dist/{ui → components}/layouts/docs-header.svelte.d.ts +1 -1
  33. package/dist/{ui → components}/layouts/docs-mobile-header.svelte +3 -3
  34. package/dist/{ui → components}/layouts/docs-mobile-header.svelte.d.ts +1 -1
  35. package/dist/{ui → components}/layouts/docs-shell.svelte +44 -10
  36. package/dist/{ui → components}/layouts/docs-shell.svelte.d.ts +12 -1
  37. package/dist/{ui → components}/layouts/docs-sidebar.svelte +3 -3
  38. package/dist/{ui → components}/layouts/docs-sidebar.svelte.d.ts +1 -1
  39. package/dist/{ui → components}/layouts/error-page.svelte +1 -1
  40. package/dist/{ui → components}/layouts/error-page.svelte.d.ts +1 -1
  41. package/dist/components/layouts/page-feedback.svelte +51 -0
  42. package/dist/components/layouts/page-feedback.svelte.d.ts +9 -0
  43. package/dist/{ui → components}/layouts/prev-next-nav.svelte +1 -1
  44. package/dist/{ui → components}/layouts/prev-next-nav.svelte.d.ts +1 -1
  45. package/dist/{ui → components}/layouts/seo-head.svelte +2 -2
  46. package/dist/{ui → components}/layouts/seo-head.svelte.d.ts +1 -1
  47. package/dist/{ui → components}/markdown/pre.svelte +2 -2
  48. package/dist/{ui → components}/markdown/types.d.ts +1 -1
  49. package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte +1 -1
  50. package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte +1 -1
  51. package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte +1 -1
  52. package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte.d.ts +1 -1
  53. package/dist/{ui → components}/shadcn/accordion/accordion.svelte +1 -1
  54. package/dist/{ui → components}/shadcn/badge/badge.svelte +1 -1
  55. package/dist/{ui → components}/shadcn/badge/badge.svelte.d.ts +1 -1
  56. package/dist/{ui → components}/shadcn/button/button.svelte +1 -1
  57. package/dist/{ui → components}/shadcn/button/button.svelte.d.ts +1 -1
  58. package/dist/{ui → components}/shadcn/command/command-dialog.svelte +1 -1
  59. package/dist/{ui → components}/shadcn/command/command-dialog.svelte.d.ts +1 -1
  60. package/dist/{ui → components}/shadcn/command/command-empty.svelte +1 -1
  61. package/dist/{ui → components}/shadcn/command/command-group.svelte +1 -1
  62. package/dist/{ui → components}/shadcn/command/command-input.svelte +1 -1
  63. package/dist/{ui → components}/shadcn/command/command-item.svelte +1 -1
  64. package/dist/{ui → components}/shadcn/command/command-link-item.svelte +1 -1
  65. package/dist/{ui → components}/shadcn/command/command-list.svelte +1 -1
  66. package/dist/{ui → components}/shadcn/command/command-separator.svelte +1 -1
  67. package/dist/{ui → components}/shadcn/command/command-shortcut.svelte +1 -1
  68. package/dist/{ui → components}/shadcn/command/command-shortcut.svelte.d.ts +1 -1
  69. package/dist/{ui → components}/shadcn/command/command.svelte +1 -1
  70. package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte +1 -1
  71. package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte.d.ts +1 -1
  72. package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte +1 -1
  73. package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte +1 -1
  74. package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte.d.ts +1 -1
  75. package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte +1 -1
  76. package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte.d.ts +1 -1
  77. package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte +1 -1
  78. package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte +1 -1
  79. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  80. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +1 -1
  81. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte +1 -1
  82. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte.d.ts +1 -1
  83. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte +1 -1
  84. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte +1 -1
  85. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte +1 -1
  86. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -1
  87. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  88. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte +1 -1
  89. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte +1 -1
  90. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +1 -1
  91. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
  92. package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  93. package/dist/{ui → components}/shadcn/input/input.svelte +1 -1
  94. package/dist/{ui → components}/shadcn/input/input.svelte.d.ts +1 -1
  95. package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte +1 -1
  96. package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte.d.ts +1 -1
  97. package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte +1 -1
  98. package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte +1 -1
  99. package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte.d.ts +1 -1
  100. package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte +1 -1
  101. package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte.d.ts +1 -1
  102. package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte +1 -1
  103. package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte.d.ts +1 -1
  104. package/dist/{ui → components}/shadcn/input-group/input-group.svelte +1 -1
  105. package/dist/{ui → components}/shadcn/input-group/input-group.svelte.d.ts +1 -1
  106. package/dist/{ui → components}/shadcn/popover/popover-content.svelte +1 -1
  107. package/dist/{ui → components}/shadcn/popover/popover-content.svelte.d.ts +1 -1
  108. package/dist/{ui → components}/shadcn/popover/popover-description.svelte +1 -1
  109. package/dist/{ui → components}/shadcn/popover/popover-description.svelte.d.ts +1 -1
  110. package/dist/{ui → components}/shadcn/popover/popover-header.svelte +1 -1
  111. package/dist/{ui → components}/shadcn/popover/popover-header.svelte.d.ts +1 -1
  112. package/dist/{ui → components}/shadcn/popover/popover-title.svelte +1 -1
  113. package/dist/{ui → components}/shadcn/popover/popover-title.svelte.d.ts +1 -1
  114. package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte +1 -1
  115. package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte +1 -1
  116. package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte +1 -1
  117. package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte.d.ts +1 -1
  118. package/dist/{ui → components}/shadcn/separator/separator.svelte +1 -1
  119. package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte +1 -1
  120. package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte.d.ts +1 -1
  121. package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte +1 -1
  122. package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte +1 -1
  123. package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte.d.ts +1 -1
  124. package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte +1 -1
  125. package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte.d.ts +1 -1
  126. package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte +1 -1
  127. package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte +1 -1
  128. package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte +1 -1
  129. package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte +1 -1
  130. package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte +1 -1
  131. package/dist/{ui → components}/shadcn/tabs/tabs.svelte +1 -1
  132. package/dist/{ui → components}/shadcn/textarea/textarea.svelte +1 -1
  133. package/dist/{ui → components}/shadcn/textarea/textarea.svelte.d.ts +1 -1
  134. package/dist/core/config.d.ts +65 -0
  135. package/dist/{config.js → core/config.js} +0 -22
  136. package/dist/core/content.d.ts +68 -0
  137. package/dist/core/content.js +7 -0
  138. package/dist/core/index.d.ts +3 -0
  139. package/dist/core/index.js +6 -0
  140. package/dist/core/nav.d.ts +17 -0
  141. package/dist/core/nav.js +22 -0
  142. package/dist/{content.d.ts → fallbacks/content.d.ts} +3 -3
  143. package/dist/fallbacks/content.js +3 -0
  144. package/dist/{llms.d.ts → fallbacks/llms.d.ts} +2 -3
  145. package/dist/fallbacks/llms.js +3 -0
  146. package/dist/fallbacks/missing-plugin.d.ts +7 -0
  147. package/dist/fallbacks/missing-plugin.js +11 -0
  148. package/dist/{search.d.ts → fallbacks/search.d.ts} +3 -3
  149. package/dist/fallbacks/search.js +3 -0
  150. package/dist/{generate-llms.d.ts → generate/llms.d.ts} +1 -1
  151. package/dist/index.d.ts +23 -23
  152. package/dist/index.js +24 -24
  153. package/dist/search/create-search.d.ts +1 -1
  154. package/dist/theme.css +57 -57
  155. package/dist/themes/darkmatter.css +6 -4
  156. package/dist/themes/tangerine.css +3 -6
  157. package/package.json +21 -13
  158. package/dist/config.d.ts +0 -141
  159. package/dist/content.js +0 -4
  160. package/dist/llms.js +0 -4
  161. package/dist/search.js +0 -4
  162. package/dist/vite.js +0 -366
  163. /package/dist/{highlight.d.ts → buildtime/highlight.d.ts} +0 -0
  164. /package/dist/{highlight.js → buildtime/highlight.js} +0 -0
  165. /package/dist/{preprocess.d.ts → buildtime/preprocess.d.ts} +0 -0
  166. /package/dist/{preprocess.js → buildtime/preprocess.js} +0 -0
  167. /package/dist/{ui → components/chrome}/background-pattern.svelte +0 -0
  168. /package/dist/{ui → components/chrome}/background-pattern.svelte.d.ts +0 -0
  169. /package/dist/{ui → components/chrome}/copy-button.svelte.d.ts +0 -0
  170. /package/dist/{ui → components/chrome}/search-trigger.svelte.d.ts +0 -0
  171. /package/dist/{ui → components/chrome}/theme-provider.svelte +0 -0
  172. /package/dist/{ui → components/chrome}/theme-provider.svelte.d.ts +0 -0
  173. /package/dist/{ui → components/chrome}/theme-toggle.svelte.d.ts +0 -0
  174. /package/dist/{ui → components/docs}/accordion-item.svelte.d.ts +0 -0
  175. /package/dist/{ui → components/docs}/accordion.svelte.d.ts +0 -0
  176. /package/dist/{ui → components/docs}/badge.svelte.d.ts +0 -0
  177. /package/dist/{ui → components/docs}/callout.svelte +0 -0
  178. /package/dist/{ui → components/docs}/callout.svelte.d.ts +0 -0
  179. /package/dist/{ui → components/docs}/card-grid.svelte +0 -0
  180. /package/dist/{ui → components/docs}/card-grid.svelte.d.ts +0 -0
  181. /package/dist/{ui → components/docs}/card.svelte +0 -0
  182. /package/dist/{ui → components/docs}/card.svelte.d.ts +0 -0
  183. /package/dist/{ui → components/docs}/file-tree-item.svelte +0 -0
  184. /package/dist/{ui → components/docs}/file-tree-item.svelte.d.ts +0 -0
  185. /package/dist/{ui → components/docs}/file-tree.svelte +0 -0
  186. /package/dist/{ui → components/docs}/file-tree.svelte.d.ts +0 -0
  187. /package/dist/{ui → components/docs}/kbd.svelte +0 -0
  188. /package/dist/{ui → components/docs}/kbd.svelte.d.ts +0 -0
  189. /package/dist/{ui → components/docs}/live-example.svelte.d.ts +0 -0
  190. /package/dist/{ui → components/docs}/prop.svelte +0 -0
  191. /package/dist/{ui → components/docs}/prop.svelte.d.ts +0 -0
  192. /package/dist/{ui → components/docs}/props-table.svelte +0 -0
  193. /package/dist/{ui → components/docs}/props-table.svelte.d.ts +0 -0
  194. /package/dist/{ui → components/docs}/step.svelte +0 -0
  195. /package/dist/{ui → components/docs}/step.svelte.d.ts +0 -0
  196. /package/dist/{ui → components/docs}/steps.svelte +0 -0
  197. /package/dist/{ui → components/docs}/steps.svelte.d.ts +0 -0
  198. /package/dist/{ui → components/docs}/tab-item.svelte.d.ts +0 -0
  199. /package/dist/{ui → components/docs}/tabs-phase.svelte +0 -0
  200. /package/dist/{ui → components/docs}/tabs-phase.svelte.d.ts +0 -0
  201. /package/dist/{ui → components/docs}/tabs.svelte.d.ts +0 -0
  202. /package/dist/{ui → components}/icons/github.svelte +0 -0
  203. /package/dist/{ui → components}/icons/github.svelte.d.ts +0 -0
  204. /package/dist/{ui → components}/layouts/breadcrumbs.svelte +0 -0
  205. /package/dist/{ui → components}/layouts/breadcrumbs.svelte.d.ts +0 -0
  206. /package/dist/{ui → components}/layouts/copy-page-menu.svelte +0 -0
  207. /package/dist/{ui → components}/layouts/copy-page-menu.svelte.d.ts +0 -0
  208. /package/dist/{ui → components}/markdown/code.svelte +0 -0
  209. /package/dist/{ui → components}/markdown/code.svelte.d.ts +0 -0
  210. /package/dist/{ui → components}/markdown/h2.svelte +0 -0
  211. /package/dist/{ui → components}/markdown/h2.svelte.d.ts +0 -0
  212. /package/dist/{ui → components}/markdown/h3.svelte +0 -0
  213. /package/dist/{ui → components}/markdown/h3.svelte.d.ts +0 -0
  214. /package/dist/{ui → components}/markdown/index.d.ts +0 -0
  215. /package/dist/{ui → components}/markdown/index.js +0 -0
  216. /package/dist/{ui → components}/markdown/pre.svelte.d.ts +0 -0
  217. /package/dist/{ui → components}/markdown/table.svelte +0 -0
  218. /package/dist/{ui → components}/markdown/table.svelte.d.ts +0 -0
  219. /package/dist/{types.js → components/markdown/types.js} +0 -0
  220. /package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte.d.ts +0 -0
  221. /package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte.d.ts +0 -0
  222. /package/dist/{ui → components}/shadcn/accordion/accordion.svelte.d.ts +0 -0
  223. /package/dist/{ui → components}/shadcn/accordion/index.d.ts +0 -0
  224. /package/dist/{ui → components}/shadcn/accordion/index.js +0 -0
  225. /package/dist/{ui → components}/shadcn/badge/index.d.ts +0 -0
  226. /package/dist/{ui → components}/shadcn/badge/index.js +0 -0
  227. /package/dist/{ui → components}/shadcn/button/index.d.ts +0 -0
  228. /package/dist/{ui → components}/shadcn/button/index.js +0 -0
  229. /package/dist/{ui → components}/shadcn/command/command-empty.svelte.d.ts +0 -0
  230. /package/dist/{ui → components}/shadcn/command/command-group.svelte.d.ts +0 -0
  231. /package/dist/{ui → components}/shadcn/command/command-input.svelte.d.ts +0 -0
  232. /package/dist/{ui → components}/shadcn/command/command-item.svelte.d.ts +0 -0
  233. /package/dist/{ui → components}/shadcn/command/command-link-item.svelte.d.ts +0 -0
  234. /package/dist/{ui → components}/shadcn/command/command-list.svelte.d.ts +0 -0
  235. /package/dist/{ui → components}/shadcn/command/command-loading.svelte +0 -0
  236. /package/dist/{ui → components}/shadcn/command/command-loading.svelte.d.ts +0 -0
  237. /package/dist/{ui → components}/shadcn/command/command-separator.svelte.d.ts +0 -0
  238. /package/dist/{ui → components}/shadcn/command/command.svelte.d.ts +0 -0
  239. /package/dist/{ui → components}/shadcn/command/index.d.ts +0 -0
  240. /package/dist/{ui → components}/shadcn/command/index.js +0 -0
  241. /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte +0 -0
  242. /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte.d.ts +0 -0
  243. /package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte.d.ts +0 -0
  244. /package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte.d.ts +0 -0
  245. /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte +0 -0
  246. /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte.d.ts +0 -0
  247. /package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte.d.ts +0 -0
  248. /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte +0 -0
  249. /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte.d.ts +0 -0
  250. /package/dist/{ui → components}/shadcn/dialog/dialog.svelte +0 -0
  251. /package/dist/{ui → components}/shadcn/dialog/dialog.svelte.d.ts +0 -0
  252. /package/dist/{ui → components}/shadcn/dialog/index.d.ts +0 -0
  253. /package/dist/{ui → components}/shadcn/dialog/index.js +0 -0
  254. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte +0 -0
  255. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +0 -0
  256. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +0 -0
  257. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte +0 -0
  258. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte.d.ts +0 -0
  259. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte.d.ts +0 -0
  260. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte +0 -0
  261. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte.d.ts +0 -0
  262. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte +0 -0
  263. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +0 -0
  264. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +0 -0
  265. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte.d.ts +0 -0
  266. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +0 -0
  267. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +0 -0
  268. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte +0 -0
  269. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte.d.ts +0 -0
  270. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte +0 -0
  271. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +0 -0
  272. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte +0 -0
  273. /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte.d.ts +0 -0
  274. /package/dist/{ui → components}/shadcn/dropdown-menu/index.d.ts +0 -0
  275. /package/dist/{ui → components}/shadcn/dropdown-menu/index.js +0 -0
  276. /package/dist/{ui → components}/shadcn/input/index.d.ts +0 -0
  277. /package/dist/{ui → components}/shadcn/input/index.js +0 -0
  278. /package/dist/{ui → components}/shadcn/input-group/index.d.ts +0 -0
  279. /package/dist/{ui → components}/shadcn/input-group/index.js +0 -0
  280. /package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte.d.ts +0 -0
  281. /package/dist/{ui → components}/shadcn/popover/index.d.ts +0 -0
  282. /package/dist/{ui → components}/shadcn/popover/index.js +0 -0
  283. /package/dist/{ui → components}/shadcn/popover/popover-close.svelte +0 -0
  284. /package/dist/{ui → components}/shadcn/popover/popover-close.svelte.d.ts +0 -0
  285. /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte +0 -0
  286. /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte.d.ts +0 -0
  287. /package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte.d.ts +0 -0
  288. /package/dist/{ui → components}/shadcn/popover/popover.svelte +0 -0
  289. /package/dist/{ui → components}/shadcn/popover/popover.svelte.d.ts +0 -0
  290. /package/dist/{ui → components}/shadcn/scroll-area/index.d.ts +0 -0
  291. /package/dist/{ui → components}/shadcn/scroll-area/index.js +0 -0
  292. /package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte.d.ts +0 -0
  293. /package/dist/{ui → components}/shadcn/separator/index.d.ts +0 -0
  294. /package/dist/{ui → components}/shadcn/separator/index.js +0 -0
  295. /package/dist/{ui → components}/shadcn/separator/separator.svelte.d.ts +0 -0
  296. /package/dist/{ui → components}/shadcn/sheet/index.d.ts +0 -0
  297. /package/dist/{ui → components}/shadcn/sheet/index.js +0 -0
  298. /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte +0 -0
  299. /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte.d.ts +0 -0
  300. /package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte.d.ts +0 -0
  301. /package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte.d.ts +0 -0
  302. /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte +0 -0
  303. /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte.d.ts +0 -0
  304. /package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte.d.ts +0 -0
  305. /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte +0 -0
  306. /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte.d.ts +0 -0
  307. /package/dist/{ui → components}/shadcn/sheet/sheet.svelte +0 -0
  308. /package/dist/{ui → components}/shadcn/sheet/sheet.svelte.d.ts +0 -0
  309. /package/dist/{ui → components}/shadcn/tabs/index.d.ts +0 -0
  310. /package/dist/{ui → components}/shadcn/tabs/index.js +0 -0
  311. /package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte.d.ts +0 -0
  312. /package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte.d.ts +0 -0
  313. /package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte.d.ts +0 -0
  314. /package/dist/{ui → components}/shadcn/tabs/tabs.svelte.d.ts +0 -0
  315. /package/dist/{ui → components}/shadcn/textarea/index.d.ts +0 -0
  316. /package/dist/{ui → components}/shadcn/textarea/index.js +0 -0
  317. /package/dist/{generate-llms.js → generate/llms.js} +0 -0
  318. /package/dist/{sitemap.d.ts → generate/sitemap.d.ts} +0 -0
  319. /package/dist/{sitemap.js → generate/sitemap.js} +0 -0
  320. /package/dist/{clipboard.svelte.d.ts → utils/clipboard.svelte.d.ts} +0 -0
  321. /package/dist/{clipboard.svelte.js → utils/clipboard.svelte.js} +0 -0
  322. /package/dist/{shadcn.d.ts → utils/cn.d.ts} +0 -0
  323. /package/dist/{shadcn.js → utils/cn.js} +0 -0
  324. /package/dist/{normalize-path.d.ts → utils/normalize-path.d.ts} +0 -0
  325. /package/dist/{normalize-path.js → utils/normalize-path.js} +0 -0
  326. /package/dist/{types.d.ts → utils/types.d.ts} +0 -0
  327. /package/dist/{ui/markdown → utils}/types.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  declare const DialogHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type DialogHeader = ReturnType<typeof DialogHeader>;
5
5
  export default DialogHeader;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Dialog as DialogPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Dialog as DialogPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -2,7 +2,7 @@
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
3
3
  import MinusIcon from '@lucide/svelte/icons/minus';
4
4
  import CheckIcon from '@lucide/svelte/icons/check';
5
- import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
5
+ import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
6
6
  import type { Snippet } from 'svelte';
7
7
 
8
8
  let {
@@ -1,5 +1,5 @@
1
1
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
2
- import { type WithoutChildrenOrChild } from '../../../shadcn.js';
2
+ import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  type $$ComponentProps = WithoutChildrenOrChild<DropdownMenuPrimitive.CheckboxItemProps> & {
5
5
  children?: Snippet;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
2
+ import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
3
3
  import DropdownMenuPortal from './dropdown-menu-portal.svelte';
4
4
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
5
5
  import type { ComponentProps } from 'svelte';
@@ -1,4 +1,4 @@
1
- import { type WithoutChildrenOrChild } from '../../../shadcn.js';
1
+ import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
2
2
  import DropdownMenuPortal from './dropdown-menu-portal.svelte';
3
3
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
4
4
  import type { ComponentProps } from 'svelte';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
  import type { ComponentProps } from 'svelte';
5
5
 
6
6
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn } from '../../../shadcn.js';
2
+ import { cn } from '../../../utils/cn.js';
3
3
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
4
4
 
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from '../../../shadcn.js';
2
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
3
3
  import type { HTMLAttributes } from 'svelte/elements';
4
4
 
5
5
  let {
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../../../shadcn.js';
1
+ import { type WithElementRef } from '../../../utils/cn.js';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
3
  type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
4
4
  inset?: boolean;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
3
3
  import CheckIcon from '@lucide/svelte/icons/check';
4
- import { cn, type WithoutChild } from '../../../shadcn.js';
4
+ import { cn, type WithoutChild } from '../../../utils/cn.js';
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  declare const DropdownMenuShortcut: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
4
4
  type DropdownMenuShortcut = ReturnType<typeof DropdownMenuShortcut>;
5
5
  export default DropdownMenuShortcut;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
3
3
  import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
4
- import { cn } from '../../../shadcn.js';
4
+ import { cn } from '../../../utils/cn.js';
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
4
4
 
5
5
  type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
6
6
 
@@ -1,5 +1,5 @@
1
1
  import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
4
4
  type Props = WithElementRef<Omit<HTMLInputAttributes, 'type'> & ({
5
5
  type: 'file';
@@ -21,7 +21,7 @@
21
21
  </script>
22
22
 
23
23
  <script lang="ts">
24
- import { cn, type WithElementRef } from '../../../shadcn.js';
24
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
25
25
  import type { HTMLAttributes } from 'svelte/elements';
26
26
 
27
27
  let {
@@ -22,7 +22,7 @@ export declare const inputGroupAddonVariants: import("tailwind-variants").TVRetu
22
22
  };
23
23
  }, undefined, "text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none", unknown, unknown, undefined>>;
24
24
  export type InputGroupAddonAlign = VariantProps<typeof inputGroupAddonVariants>['align'];
25
- import { type WithElementRef } from '../../../shadcn.js';
25
+ import { type WithElementRef } from '../../../utils/cn.js';
26
26
  import type { HTMLAttributes } from 'svelte/elements';
27
27
  type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
28
28
  align?: InputGroupAddonAlign;
@@ -20,7 +20,7 @@
20
20
  </script>
21
21
 
22
22
  <script lang="ts">
23
- import { cn } from '../../../shadcn.js';
23
+ import { cn } from '../../../utils/cn.js';
24
24
  import type { ComponentProps } from 'svelte';
25
25
  import { Button } from '../button/index.js';
26
26
 
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn } from '../../../shadcn.js';
2
+ import { cn } from '../../../utils/cn.js';
3
3
  import type { ComponentProps } from 'svelte';
4
4
  import { Input } from '../input/index.js';
5
5
 
@@ -2,7 +2,7 @@ declare const InputGroupInput: import("svelte").Component<(Omit<import("svelte/e
2
2
  type: "file";
3
3
  files?: FileList;
4
4
  } | {
5
- type?: "number" | "time" | "url" | "search" | "text" | "button" | "image" | "hidden" | "color" | "submit" | "reset" | "checkbox" | "radio" | (string & {}) | "tel" | "email" | "date" | "datetime-local" | "month" | "password" | "range" | "week";
5
+ type?: "number" | "url" | "button" | "search" | "time" | "image" | "text" | "hidden" | "color" | "submit" | "reset" | "checkbox" | "radio" | (string & {}) | "tel" | "email" | "date" | "datetime-local" | "month" | "password" | "range" | "week";
6
6
  files?: undefined;
7
7
  })) & {
8
8
  ref?: HTMLElement | null | undefined;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from '../../../shadcn.js';
2
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
3
3
  import type { HTMLAttributes } from 'svelte/elements';
4
4
 
5
5
  let {
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../../../shadcn.js';
1
+ import { type WithElementRef } from '../../../utils/cn.js';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
3
  declare const InputGroupText: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
4
4
  type InputGroupText = ReturnType<typeof InputGroupText>;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn } from '../../../shadcn.js';
2
+ import { cn } from '../../../utils/cn.js';
3
3
  import { Textarea } from '../textarea/index.js';
4
4
  import type { ComponentProps } from 'svelte';
5
5
 
@@ -1,3 +1,3 @@
1
- declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../shadcn.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
1
+ declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../utils/cn.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
2
2
  type InputGroupTextarea = ReturnType<typeof InputGroupTextarea>;
3
3
  export default InputGroupTextarea;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from '../../../shadcn.js';
2
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
3
3
  import type { HTMLAttributes } from 'svelte/elements';
4
4
 
5
5
  let {
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../../../shadcn.js';
1
+ import { type WithElementRef } from '../../../utils/cn.js';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
3
  declare const InputGroup: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type InputGroup = ReturnType<typeof InputGroup>;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { Popover as PopoverPrimitive } from 'bits-ui';
3
3
  import PopoverPortal from './popover-portal.svelte';
4
- import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
4
+ import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
5
5
  import type { ComponentProps } from 'svelte';
6
6
 
7
7
  let {
@@ -1,6 +1,6 @@
1
1
  import { Popover as PopoverPrimitive } from 'bits-ui';
2
2
  import PopoverPortal from './popover-portal.svelte';
3
- import { type WithoutChildrenOrChild } from '../../../shadcn.js';
3
+ import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
4
4
  import type { ComponentProps } from 'svelte';
5
5
  type $$ComponentProps = PopoverPrimitive.ContentProps & {
6
6
  portalProps?: WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  declare const PopoverDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type PopoverDescription = ReturnType<typeof PopoverDescription>;
5
5
  export default PopoverDescription;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  declare const PopoverHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type PopoverHeader = ReturnType<typeof PopoverHeader>;
5
5
  export default PopoverHeader;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  declare const PopoverTitle: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type PopoverTitle = ReturnType<typeof PopoverTitle>;
5
5
  export default PopoverTitle;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn } from '../../../shadcn.js';
2
+ import { cn } from '../../../utils/cn.js';
3
3
  import { Popover as PopoverPrimitive } from 'bits-ui';
4
4
 
5
5
  let {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
3
- import { cn, type WithoutChild } from '../../../shadcn.js';
3
+ import { cn, type WithoutChild } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
3
3
  import { Scrollbar } from './index.js';
4
- import { cn, type WithoutChild } from '../../../shadcn.js';
4
+ import { cn, type WithoutChild } from '../../../utils/cn.js';
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
2
- import { type WithoutChild } from '../../../shadcn.js';
2
+ import { type WithoutChild } from '../../../utils/cn.js';
3
3
  type $$ComponentProps = WithoutChild<ScrollAreaPrimitive.RootProps> & {
4
4
  orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
5
5
  scrollbarXClasses?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Separator as SeparatorPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -9,7 +9,7 @@
9
9
  import SheetOverlay from './sheet-overlay.svelte';
10
10
  import { Button } from '../button/index.js';
11
11
  import XIcon from '@lucide/svelte/icons/x';
12
- import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
12
+ import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
13
13
  import type { ComponentProps } from 'svelte';
14
14
 
15
15
  let {
@@ -2,7 +2,7 @@ export type Side = 'top' | 'right' | 'bottom' | 'left';
2
2
  import { Dialog as SheetPrimitive } from 'bits-ui';
3
3
  import type { Snippet } from 'svelte';
4
4
  import SheetPortal from './sheet-portal.svelte';
5
- import { type WithoutChildrenOrChild } from '../../../shadcn.js';
5
+ import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
6
6
  import type { ComponentProps } from 'svelte';
7
7
  type $$ComponentProps = WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {
8
8
  portalProps?: WithoutChildrenOrChild<ComponentProps<typeof SheetPortal>>;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Dialog as SheetPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from '../../../shadcn.js';
2
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
3
3
  import type { HTMLAttributes } from 'svelte/elements';
4
4
 
5
5
  let {
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../../../shadcn.js';
1
+ import { type WithElementRef } from '../../../utils/cn.js';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
3
  declare const SheetFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type SheetFooter = ReturnType<typeof SheetFooter>;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- import { cn, type WithElementRef } from '../../../shadcn.js';
3
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import { type WithElementRef } from '../../../shadcn.js';
2
+ import { type WithElementRef } from '../../../utils/cn.js';
3
3
  declare const SheetHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
4
  type SheetHeader = ReturnType<typeof SheetHeader>;
5
5
  export default SheetHeader;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Dialog as SheetPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Dialog as SheetPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Tabs as TabsPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -19,7 +19,7 @@
19
19
 
20
20
  <script lang="ts">
21
21
  import { Tabs as TabsPrimitive } from 'bits-ui';
22
- import { cn } from '../../../shadcn.js';
22
+ import { cn } from '../../../utils/cn.js';
23
23
 
24
24
  let {
25
25
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Tabs as TabsPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Tabs as TabsPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef, type WithoutChildren } from '../../../shadcn.js';
2
+ import { cn, type WithElementRef, type WithoutChildren } from '../../../utils/cn.js';
3
3
  import type { HTMLTextareaAttributes } from 'svelte/elements';
4
4
 
5
5
  let {
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../../../shadcn.js';
1
+ import { type WithElementRef } from '../../../utils/cn.js';
2
2
  import type { HTMLTextareaAttributes } from 'svelte/elements';
3
3
  declare const Textarea: import("svelte").Component<Omit<WithElementRef<HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
4
4
  type Textarea = ReturnType<typeof Textarea>;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Static site configuration passed to `DocsShell`. Content-derived data (the
3
+ * sidebar nav) is NOT here — it comes from your content collection at runtime.
4
+ */
5
+ /** A link rendered in the header nav or footer. */
6
+ export type DocsmithLink = {
7
+ label: string;
8
+ href: string;
9
+ /** Open in a new tab with `rel="noopener"`. */
10
+ external?: boolean;
11
+ };
12
+ /** A titled column of links in the footer. */
13
+ export type DocsmithFooterColumn = {
14
+ title: string;
15
+ links: DocsmithLink[];
16
+ };
17
+ export type DocsmithConfig = {
18
+ /** Site title, shown in the header/sidebar and in the `<title>` suffix. */
19
+ title: string;
20
+ /**
21
+ * Default meta description, used for pages whose frontmatter has none (and
22
+ * as the site's social-share description).
23
+ */
24
+ description?: string;
25
+ /**
26
+ * Canonical site origin, e.g. `https://docs.example.com`. When set, DocsShell
27
+ * emits `<link rel="canonical">` and absolute Open Graph URLs.
28
+ */
29
+ url?: string;
30
+ /** Default social-share image (absolute URL, or a path resolved against `url`). */
31
+ ogImage?: string;
32
+ /**
33
+ * Base URL for the "Edit this page" link, pointing at the directory that maps
34
+ * to your app's working directory in the repo, e.g.
35
+ * `https://github.com/you/repo/edit/main/apps/docs`. DocsShell appends each
36
+ * page's source path. Omit to hide the edit link.
37
+ */
38
+ editUrl?: string;
39
+ /** Optional GitHub URL; renders a link in the header when set. */
40
+ github?: string;
41
+ /** Optional version string, shown in the header (e.g. your library version). */
42
+ version?: string;
43
+ /** Optional logo image src; falls back to the built-in book mark. */
44
+ logo?: string;
45
+ /** Top-level header navigation links. */
46
+ nav?: DocsmithLink[];
47
+ /** Footer content, driven by data. */
48
+ footer?: {
49
+ /** Copyright / attribution line. */
50
+ copyright?: string;
51
+ /** Titled columns of links. */
52
+ columns?: DocsmithFooterColumn[];
53
+ /**
54
+ * Show the "Powered by Svelte DocSmith" attribution in the footer.
55
+ * Defaults to `true`; set `false` to hide it.
56
+ */
57
+ poweredBy?: boolean;
58
+ };
59
+ };
60
+ /**
61
+ * Validate a {@link DocsmithConfig} at build time. Purely a pass-through for
62
+ * typed callers; the runtime checks catch untyped or dynamically-built configs
63
+ * with a real error message instead of a blank header.
64
+ */
65
+ export declare function defineConfig(config: DocsmithConfig): DocsmithConfig;
@@ -65,25 +65,3 @@ export function defineConfig(config) {
65
65
  }
66
66
  return config;
67
67
  }
68
- /**
69
- * Derive sidebar nav from a content collection: group by `section`, order by
70
- * `order` within a group, and order groups by the smallest `order` they
71
- * contain. Entries without a `section` fall under "Docs".
72
- */
73
- export function navFromContent(content) {
74
- const groups = new Map();
75
- for (const item of content) {
76
- const section = item.section ?? 'Docs';
77
- const order = item.order ?? 0;
78
- const group = groups.get(section) ?? { minOrder: Infinity, items: [] };
79
- group.items.push({ title: item.title, url: item.path, order });
80
- group.minOrder = Math.min(group.minOrder, order);
81
- groups.set(section, group);
82
- }
83
- return [...groups.entries()]
84
- .sort((a, b) => a[1].minOrder - b[1].minOrder)
85
- .map(([title, group]) => ({
86
- title,
87
- items: group.items.sort((a, b) => a.order - b.order).map(({ title, url }) => ({ title, url }))
88
- }));
89
- }