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
@@ -14,7 +14,7 @@
14
14
  import {
15
15
  Badge as ShadcnBadge,
16
16
  type BadgeVariant as ShadcnVariant
17
- } from './shadcn/badge/index.js';
17
+ } from '../shadcn/badge/index.js';
18
18
 
19
19
  const {
20
20
  variant = 'default',
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- import { useClipboard } from '../clipboard.svelte.js';
3
- import { Button } from './shadcn/button/index.js';
4
- import CopyButton from './copy-button.svelte';
2
+ import { useClipboard } from '../../utils/clipboard.svelte.js';
3
+ import { Button } from '../shadcn/button/index.js';
4
+ import CopyButton from '../chrome/copy-button.svelte';
5
5
  import Code from '@lucide/svelte/icons/code';
6
6
  import type { Snippet } from 'svelte';
7
7
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { getContext, type Snippet } from 'svelte';
3
- import * as TabsPrimitive from './shadcn/tabs/index.js';
3
+ import * as TabsPrimitive from '../shadcn/tabs/index.js';
4
4
  import { TABS_PHASE, getTabsContext, type TabsPhase } from './tabs.svelte';
5
5
 
6
6
  const {
@@ -20,7 +20,7 @@
20
20
 
21
21
  <script lang="ts">
22
22
  import { setContext, type Snippet } from 'svelte';
23
- import * as TabsPrimitive from './shadcn/tabs/index.js';
23
+ import * as TabsPrimitive from '../shadcn/tabs/index.js';
24
24
  import TabsPhaseScope from './tabs-phase.svelte';
25
25
 
26
26
  const {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { DocsmithConfig } from '../../config.js';
2
+ import type { DocsmithConfig } from '../../core/index.js';
3
3
  import BookOpenText from '@lucide/svelte/icons/book-open-text';
4
4
 
5
5
  const { config }: { config: DocsmithConfig } = $props();
@@ -1,4 +1,4 @@
1
- import type { DocsmithConfig } from '../../config.js';
1
+ import type { DocsmithConfig } from '../../core/index.js';
2
2
  type $$ComponentProps = {
3
3
  config: DocsmithConfig;
4
4
  };
@@ -3,9 +3,9 @@
3
3
  import { Button } from '../shadcn/button/index.js';
4
4
  import { Separator } from '../shadcn/separator/index.js';
5
5
  import GithubIcon from '../icons/github.svelte';
6
- import SearchTrigger from '../search-trigger.svelte';
7
- import ThemeToggle from '../theme-toggle.svelte';
8
- import type { DocsmithConfig } from '../../config.js';
6
+ import SearchTrigger from '../chrome/search-trigger.svelte';
7
+ import ThemeToggle from '../chrome/theme-toggle.svelte';
8
+ import type { DocsmithConfig } from '../../core/index.js';
9
9
  import BookOpenText from '@lucide/svelte/icons/book-open-text';
10
10
  import type { Snippet } from 'svelte';
11
11
 
@@ -1,4 +1,4 @@
1
- import type { DocsmithConfig } from '../../config.js';
1
+ import type { DocsmithConfig } from '../../core/index.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  type $$ComponentProps = {
4
4
  config: DocsmithConfig;
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
2
  import { page } from '$app/state';
3
- import type { DocsmithConfig, NavGroup } from '../../config.js';
3
+ import type { DocsmithConfig, NavGroup } from '../../core/index.js';
4
4
  import type { TocItem } from '../../toc/index.js';
5
5
  import DocsSidebar from './docs-sidebar.svelte';
6
- import TableOfContents from '../table-of-contents.svelte';
7
- import ThemeToggle from '../theme-toggle.svelte';
6
+ import TableOfContents from '../chrome/table-of-contents.svelte';
7
+ import ThemeToggle from '../chrome/theme-toggle.svelte';
8
8
  import { Button } from '../shadcn/button/index.js';
9
9
  import * as Popover from '../shadcn/popover/index.js';
10
10
  import { ScrollArea } from '../shadcn/scroll-area/index.js';
@@ -1,4 +1,4 @@
1
- import type { DocsmithConfig, NavGroup } from '../../config.js';
1
+ import type { DocsmithConfig, NavGroup } from '../../core/index.js';
2
2
  import type { TocItem } from '../../toc/index.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  type $$ComponentProps = {
@@ -6,13 +6,13 @@
6
6
  type DocsContentItem,
7
7
  type DocsmithConfig,
8
8
  type SearchDoc
9
- } from '../../config.js';
9
+ } from '../../core/index.js';
10
10
  import { createToc } from '../../toc/index.js';
11
11
  import { createSearchState } from '../../search/context.svelte.js';
12
- import { normalizePath } from '../../normalize-path.js';
13
- import Search from '../search.svelte';
14
- import BackgroundPattern from '../background-pattern.svelte';
15
- import ThemeProvider from '../theme-provider.svelte';
12
+ import { normalizePath } from '../../utils/normalize-path.js';
13
+ import Search from '../chrome/search.svelte';
14
+ import BackgroundPattern from '../chrome/background-pattern.svelte';
15
+ import ThemeProvider from '../chrome/theme-provider.svelte';
16
16
  import DocsHeader from './docs-header.svelte';
17
17
  import DocsFooter from './docs-footer.svelte';
18
18
  import DocsMobileHeader from './docs-mobile-header.svelte';
@@ -20,9 +20,10 @@
20
20
  import PrevNextNav from './prev-next-nav.svelte';
21
21
  import Breadcrumbs, { type Crumb } from './breadcrumbs.svelte';
22
22
  import CopyPageMenu from './copy-page-menu.svelte';
23
+ import PageFeedback from './page-feedback.svelte';
23
24
  import SeoHead from './seo-head.svelte';
24
25
  import SquarePen from '@lucide/svelte/icons/square-pen';
25
- import TableOfContents from '../table-of-contents.svelte';
26
+ import TableOfContents from '../chrome/table-of-contents.svelte';
26
27
  import type { Snippet } from 'svelte';
27
28
 
28
29
  const {
@@ -36,6 +37,8 @@
36
37
  seo,
37
38
  pattern = false,
38
39
  copyPage = false,
40
+ readingTime = true,
41
+ feedback,
39
42
  layout = 'docs'
40
43
  }: {
41
44
  config: DocsmithConfig;
@@ -67,6 +70,17 @@
67
70
  * catch-all `<path>.md` endpoint over the `svelte-docsmith/llms` index.
68
71
  */
69
72
  copyPage?: boolean;
73
+ /**
74
+ * Show the estimated reading time on doc pages (computed at build time).
75
+ * Defaults to `true`; set `false` to hide it.
76
+ */
77
+ readingTime?: boolean;
78
+ /**
79
+ * Show the "Was this page helpful?" widget at the foot of doc pages. Pass
80
+ * `true` for the UI alone, or a callback `(vote, path) => void` to also
81
+ * record votes (wire it to your analytics). Omit to hide it.
82
+ */
83
+ feedback?: boolean | ((vote: 'up' | 'down', path: string) => void);
70
84
  /**
71
85
  * `docs` (default): the three-column shell — sidebar, content, in-page TOC.
72
86
  * `page`: full-bleed content with the same header/footer/background but no
@@ -110,6 +124,10 @@
110
124
  });
111
125
  const showFooterMeta = $derived(Boolean(editHref || lastUpdatedLabel));
112
126
 
127
+ const readingTimeLabel = $derived(
128
+ readingTime && currentEntry?.readingTime ? `${currentEntry.readingTime} min read` : undefined
129
+ );
130
+
113
131
  // Ordered flat page list drives the prev/next links.
114
132
  const flatNav = $derived(nav.flatMap((group) => group.items));
115
133
  const pageIndex = $derived(flatNav.findIndex((item) => item.url === pathname));
@@ -203,11 +221,16 @@
203
221
  >
204
222
  <div class="flex items-start justify-between gap-4">
205
223
  <Breadcrumbs items={breadcrumbs} />
206
- {#if copyPage && currentEntry}
207
- <div class="shrink-0">
224
+ <div class="flex shrink-0 items-center gap-3">
225
+ {#if readingTimeLabel}
226
+ <span class="text-muted-foreground text-sm whitespace-nowrap">
227
+ {readingTimeLabel}
228
+ </span>
229
+ {/if}
230
+ {#if copyPage && currentEntry}
208
231
  <CopyPageMenu path={pathname} origin={config.url ?? ''} />
209
- </div>
210
- {/if}
232
+ {/if}
233
+ </div>
211
234
  </div>
212
235
  {@render children()}
213
236
 
@@ -232,6 +255,17 @@
232
255
  </div>
233
256
  {/if}
234
257
 
258
+ {#if feedback && currentEntry}
259
+ {#key pathname}
260
+ <div class="mt-8">
261
+ <PageFeedback
262
+ path={pathname}
263
+ onfeedback={typeof feedback === 'function' ? feedback : undefined}
264
+ />
265
+ </div>
266
+ {/key}
267
+ {/if}
268
+
235
269
  <PrevNextNav {prev} {next} bordered={!showFooterMeta} />
236
270
  </main>
237
271
 
@@ -1,4 +1,4 @@
1
- import { type DocsContentItem, type DocsmithConfig, type SearchDoc } from '../../config.js';
1
+ import { type DocsContentItem, type DocsmithConfig, type SearchDoc } from '../../core/index.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  type $$ComponentProps = {
4
4
  config: DocsmithConfig;
@@ -33,6 +33,17 @@ type $$ComponentProps = {
33
33
  * catch-all `<path>.md` endpoint over the `svelte-docsmith/llms` index.
34
34
  */
35
35
  copyPage?: boolean;
36
+ /**
37
+ * Show the estimated reading time on doc pages (computed at build time).
38
+ * Defaults to `true`; set `false` to hide it.
39
+ */
40
+ readingTime?: boolean;
41
+ /**
42
+ * Show the "Was this page helpful?" widget at the foot of doc pages. Pass
43
+ * `true` for the UI alone, or a callback `(vote, path) => void` to also
44
+ * record votes (wire it to your analytics). Omit to hide it.
45
+ */
46
+ feedback?: boolean | ((vote: 'up' | 'down', path: string) => void);
36
47
  /**
37
48
  * `docs` (default): the three-column shell — sidebar, content, in-page TOC.
38
49
  * `page`: full-bleed content with the same header/footer/background but no
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
2
  import { page } from '$app/state';
3
- import { cn } from '../../shadcn.js';
4
- import { normalizePath } from '../../normalize-path.js';
5
- import type { NavGroup } from '../../config.js';
3
+ import { cn } from '../../utils/cn.js';
4
+ import { normalizePath } from '../../utils/normalize-path.js';
5
+ import type { NavGroup } from '../../core/index.js';
6
6
 
7
7
  const { nav, class: className = '' }: { nav: NavGroup[]; class?: string } = $props();
8
8
  </script>
@@ -1,4 +1,4 @@
1
- import type { NavGroup } from '../../config.js';
1
+ import type { NavGroup } from '../../core/index.js';
2
2
  type $$ComponentProps = {
3
3
  nav: NavGroup[];
4
4
  class?: string;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { page } from '$app/state';
3
- import type { DocsContentItem, DocsmithConfig, SearchDoc } from '../../config.js';
3
+ import type { DocsContentItem, DocsmithConfig, SearchDoc } from '../../core/index.js';
4
4
  import DocsShell from './docs-shell.svelte';
5
5
  import ArrowLeft from '@lucide/svelte/icons/arrow-left';
6
6
  import type { Snippet } from 'svelte';
@@ -1,4 +1,4 @@
1
- import type { DocsContentItem, DocsmithConfig, SearchDoc } from '../../config.js';
1
+ import type { DocsContentItem, DocsmithConfig, SearchDoc } from '../../core/index.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  type $$ComponentProps = {
4
4
  config: DocsmithConfig;
@@ -0,0 +1,51 @@
1
+ <script lang="ts">
2
+ import { Button } from '../shadcn/button/index.js';
3
+ import ThumbsUp from '@lucide/svelte/icons/thumbs-up';
4
+ import ThumbsDown from '@lucide/svelte/icons/thumbs-down';
5
+
6
+ const {
7
+ path,
8
+ onfeedback
9
+ }: {
10
+ /** The current page path, passed to the callback so it can attribute votes. */
11
+ path: string;
12
+ /** Called once per page when the reader votes; wire it to your analytics. */
13
+ onfeedback?: (vote: 'up' | 'down', path: string) => void;
14
+ } = $props();
15
+
16
+ let vote = $state<'up' | 'down' | null>(null);
17
+
18
+ function cast(value: 'up' | 'down') {
19
+ if (vote) return;
20
+ vote = value;
21
+ onfeedback?.(value, path);
22
+ }
23
+ </script>
24
+
25
+ <div class="flex flex-col items-center gap-2.5 text-center">
26
+ {#if vote}
27
+ <p class="text-muted-foreground text-sm">Thanks for your feedback!</p>
28
+ {:else}
29
+ <p class="text-muted-foreground text-sm">Was this page helpful?</p>
30
+ <div class="flex items-center gap-2">
31
+ <Button
32
+ variant="outline"
33
+ size="sm"
34
+ onclick={() => cast('up')}
35
+ aria-label="Yes, this page was helpful"
36
+ >
37
+ <ThumbsUp />
38
+ Yes
39
+ </Button>
40
+ <Button
41
+ variant="outline"
42
+ size="sm"
43
+ onclick={() => cast('down')}
44
+ aria-label="No, this page was not helpful"
45
+ >
46
+ <ThumbsDown />
47
+ No
48
+ </Button>
49
+ </div>
50
+ {/if}
51
+ </div>
@@ -0,0 +1,9 @@
1
+ type $$ComponentProps = {
2
+ /** The current page path, passed to the callback so it can attribute votes. */
3
+ path: string;
4
+ /** Called once per page when the reader votes; wire it to your analytics. */
5
+ onfeedback?: (vote: 'up' | 'down', path: string) => void;
6
+ };
7
+ declare const PageFeedback: import("svelte").Component<$$ComponentProps, {}, "">;
8
+ type PageFeedback = ReturnType<typeof PageFeedback>;
9
+ export default PageFeedback;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { NavItem } from '../../config.js';
2
+ import type { NavItem } from '../../core/index.js';
3
3
 
4
4
  const {
5
5
  prev,
@@ -1,4 +1,4 @@
1
- import type { NavItem } from '../../config.js';
1
+ import type { NavItem } from '../../core/index.js';
2
2
  type $$ComponentProps = {
3
3
  prev?: NavItem;
4
4
  next?: NavItem;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { page } from '$app/state';
3
- import { normalizePath } from '../../normalize-path.js';
4
- import type { DocsmithConfig } from '../../config.js';
3
+ import { normalizePath } from '../../utils/normalize-path.js';
4
+ import type { DocsmithConfig } from '../../core/index.js';
5
5
 
6
6
  const {
7
7
  config,
@@ -1,4 +1,4 @@
1
- import type { DocsmithConfig } from '../../config.js';
1
+ import type { DocsmithConfig } from '../../core/index.js';
2
2
  type $$ComponentProps = {
3
3
  config: DocsmithConfig;
4
4
  /** The page's own title (frontmatter or override); omit for the site root. */
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
- import { useClipboard } from '../../clipboard.svelte.js';
2
+ import { useClipboard } from '../../utils/clipboard.svelte.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  import { ScrollArea } from '../shadcn/scroll-area/index.js';
5
- import CopyButton from '../copy-button.svelte';
5
+ import CopyButton from '../chrome/copy-button.svelte';
6
6
 
7
7
  const clipboard = useClipboard();
8
8
 
@@ -1,3 +1,3 @@
1
1
  import type { HTMLAttributes } from 'svelte/elements';
2
- import type { WithChildren } from '../../types.js';
2
+ import type { WithChildren } from '../../utils/types.js';
3
3
  export type HeadingProps = WithChildren<HTMLAttributes<HTMLHeadingElement>>;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } 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,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } 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 { Accordion as AccordionPrimitive } from 'bits-ui';
3
- import { cn, type WithoutChild } from '../../../shadcn.js';
3
+ import { cn, type WithoutChild } from '../../../utils/cn.js';
4
4
  import ChevronDownIcon from '@lucide/svelte/icons/chevron-down';
5
5
  import ChevronUpIcon from '@lucide/svelte/icons/chevron-up';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { Accordion as AccordionPrimitive } from 'bits-ui';
2
- import { type WithoutChild } from '../../../shadcn.js';
2
+ import { type WithoutChild } from '../../../utils/cn.js';
3
3
  type $$ComponentProps = WithoutChild<AccordionPrimitive.TriggerProps> & {
4
4
  level?: AccordionPrimitive.HeaderProps['level'];
5
5
  };
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } 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),
@@ -24,7 +24,7 @@
24
24
 
25
25
  <script lang="ts">
26
26
  import type { HTMLAnchorAttributes } from 'svelte/elements';
27
- import { cn, type WithElementRef } from '../../../shadcn.js';
27
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
28
28
 
29
29
  let {
30
30
  ref = $bindable(null),
@@ -29,7 +29,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
29
29
  }, undefined, "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:ring-[3px] [&>svg]:pointer-events-none", unknown, unknown, undefined>>;
30
30
  export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
31
31
  import type { HTMLAnchorAttributes } from 'svelte/elements';
32
- import { type WithElementRef } from '../../../shadcn.js';
32
+ import { type WithElementRef } from '../../../utils/cn.js';
33
33
  type $$ComponentProps = WithElementRef<HTMLAnchorAttributes> & {
34
34
  variant?: BadgeVariant;
35
35
  };
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" module>
2
- import { cn, type WithElementRef } from '../../../shadcn.js';
2
+ import { cn, type WithElementRef } from '../../../utils/cn.js';
3
3
  import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
4
4
  import { type VariantProps, tv } from 'tailwind-variants';
5
5
 
@@ -1,4 +1,4 @@
1
- import { type WithElementRef } from '../../../shadcn.js';
1
+ import { type WithElementRef } from '../../../utils/cn.js';
2
2
  import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
3
3
  import { type VariantProps } from 'tailwind-variants';
4
4
  export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
@@ -3,7 +3,7 @@
3
3
  import type { Snippet } from 'svelte';
4
4
  import Command from './command.svelte';
5
5
  import * as Dialog from '../dialog/index.js';
6
- import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
6
+ import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
7
7
 
8
8
  let {
9
9
  open = $bindable(false),
@@ -1,6 +1,6 @@
1
1
  import type { Command as CommandPrimitive, Dialog as DialogPrimitive } from 'bits-ui';
2
2
  import type { Snippet } from 'svelte';
3
- import { type WithoutChildrenOrChild } from '../../../shadcn.js';
3
+ import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
4
4
  type $$ComponentProps = WithoutChildrenOrChild<DialogPrimitive.RootProps> & WithoutChildrenOrChild<CommandPrimitive.RootProps> & {
5
5
  portalProps?: DialogPrimitive.PortalProps;
6
6
  children: Snippet;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Command as CommandPrimitive } 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 { Command as CommandPrimitive, useId } 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 { Command as CommandPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
  import * as InputGroup from '../input-group/index.js';
5
5
  import SearchIcon from '@lucide/svelte/icons/search';
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Command as CommandPrimitive } from 'bits-ui';
3
- import { cn } from '../../../shadcn.js';
3
+ import { cn } from '../../../utils/cn.js';
4
4
  import CheckIcon from '@lucide/svelte/icons/check';
5
5
 
6
6
  let {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Command as CommandPrimitive } 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 { Command as CommandPrimitive } 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 { Command as CommandPrimitive } 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 CommandShortcut: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
4
4
  type CommandShortcut = ReturnType<typeof CommandShortcut>;
@@ -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 { Command as CommandPrimitive } from 'bits-ui';
4
4
 
5
5
  export type CommandRootApi = CommandPrimitive.Root;
@@ -3,7 +3,7 @@
3
3
  import DialogPortal from './dialog-portal.svelte';
4
4
  import type { Snippet } from 'svelte';
5
5
  import * as Dialog from './index.js';
6
- import { cn, type WithoutChildrenOrChild } from '../../../shadcn.js';
6
+ import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
7
7
  import type { ComponentProps } from 'svelte';
8
8
  import { Button } from '../button/index.js';
9
9
  import XIcon from '@lucide/svelte/icons/x';
@@ -1,7 +1,7 @@
1
1
  import { Dialog as DialogPrimitive } from 'bits-ui';
2
2
  import DialogPortal from './dialog-portal.svelte';
3
3
  import type { Snippet } from 'svelte';
4
- import { type WithoutChildrenOrChild } from '../../../shadcn.js';
4
+ import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
5
5
  import type { ComponentProps } from 'svelte';
6
6
  type $$ComponentProps = WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
7
7
  portalProps?: WithoutChildrenOrChild<ComponentProps<typeof DialogPortal>>;
@@ -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,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
  import { Dialog as DialogPrimitive } from 'bits-ui';
5
5
  import { Button } from '../button/index.js';
@@ -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
  showCloseButton?: boolean;
@@ -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),