svelte-docsmith 0.5.0 → 0.6.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.
- package/dist/{markdown-layout.svelte → buildtime/markdown-layout.svelte} +1 -1
- package/dist/{markdown-layout.svelte.d.ts → buildtime/markdown-layout.svelte.d.ts} +2 -2
- package/dist/{vite.d.ts → buildtime/vite/collect.d.ts} +5 -23
- package/dist/buildtime/vite/collect.js +101 -0
- package/dist/buildtime/vite/extract.d.ts +30 -0
- package/dist/buildtime/vite/extract.js +104 -0
- package/dist/buildtime/vite/frontmatter.d.ts +6 -0
- package/dist/buildtime/vite/frontmatter.js +20 -0
- package/dist/buildtime/vite/git.d.ts +2 -0
- package/dist/buildtime/vite/git.js +11 -0
- package/dist/buildtime/vite/index.d.ts +25 -0
- package/dist/buildtime/vite/index.js +141 -0
- package/dist/buildtime/vite/pages.d.ts +6 -0
- package/dist/buildtime/vite/pages.js +23 -0
- package/dist/{ui → components/chrome}/copy-button.svelte +1 -1
- package/dist/{ui → components/chrome}/search-trigger.svelte +1 -1
- package/dist/{ui → components/chrome}/search.svelte +5 -5
- package/dist/{ui → components/chrome}/search.svelte.d.ts +1 -1
- package/dist/{ui → components/chrome}/table-of-contents.svelte +2 -2
- package/dist/{ui → components/chrome}/table-of-contents.svelte.d.ts +1 -1
- package/dist/{ui → components/chrome}/theme-toggle.svelte +1 -1
- package/dist/{ui → components/docs}/accordion-item.svelte +1 -1
- package/dist/{ui → components/docs}/accordion.svelte +1 -1
- package/dist/{ui → components/docs}/badge.svelte +1 -1
- package/dist/{ui → components/docs}/live-example.svelte +3 -3
- package/dist/{ui → components/docs}/tab-item.svelte +1 -1
- package/dist/{ui → components/docs}/tabs.svelte +1 -1
- package/dist/{ui → components}/layouts/docs-footer.svelte +1 -1
- package/dist/{ui → components}/layouts/docs-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-header.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-mobile-header.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-mobile-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-shell.svelte +44 -10
- package/dist/{ui → components}/layouts/docs-shell.svelte.d.ts +12 -1
- package/dist/{ui → components}/layouts/docs-sidebar.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-sidebar.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/error-page.svelte +1 -1
- package/dist/{ui → components}/layouts/error-page.svelte.d.ts +1 -1
- package/dist/components/layouts/page-feedback.svelte +51 -0
- package/dist/components/layouts/page-feedback.svelte.d.ts +9 -0
- package/dist/{ui → components}/layouts/prev-next-nav.svelte +1 -1
- package/dist/{ui → components}/layouts/prev-next-nav.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/seo-head.svelte +2 -2
- package/dist/{ui → components}/layouts/seo-head.svelte.d.ts +1 -1
- package/dist/{ui → components}/markdown/pre.svelte +2 -2
- package/dist/{ui → components}/markdown/types.d.ts +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion.svelte +1 -1
- package/dist/{ui → components}/shadcn/badge/badge.svelte +1 -1
- package/dist/{ui → components}/shadcn/badge/badge.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/button/button.svelte +1 -1
- package/dist/{ui → components}/shadcn/button/button.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command-dialog.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-dialog.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command-empty.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-group.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-input.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-link-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-list.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-shortcut.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-shortcut.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/input/input.svelte +1 -1
- package/dist/{ui → components}/shadcn/input/input.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-description.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-title.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/separator/separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs.svelte +1 -1
- package/dist/{ui → components}/shadcn/textarea/textarea.svelte +1 -1
- package/dist/{ui → components}/shadcn/textarea/textarea.svelte.d.ts +1 -1
- package/dist/core/config.d.ts +65 -0
- package/dist/{config.js → core/config.js} +0 -22
- package/dist/core/content.d.ts +68 -0
- package/dist/core/content.js +7 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +6 -0
- package/dist/core/nav.d.ts +17 -0
- package/dist/core/nav.js +22 -0
- package/dist/{content.d.ts → fallbacks/content.d.ts} +3 -3
- package/dist/fallbacks/content.js +3 -0
- package/dist/{llms.d.ts → fallbacks/llms.d.ts} +2 -3
- package/dist/fallbacks/llms.js +3 -0
- package/dist/fallbacks/missing-plugin.d.ts +7 -0
- package/dist/fallbacks/missing-plugin.js +11 -0
- package/dist/{search.d.ts → fallbacks/search.d.ts} +3 -3
- package/dist/fallbacks/search.js +3 -0
- package/dist/{generate-llms.d.ts → generate/llms.d.ts} +1 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +24 -24
- package/dist/search/create-search.d.ts +1 -1
- package/package.json +12 -12
- package/dist/config.d.ts +0 -141
- package/dist/content.js +0 -4
- package/dist/llms.js +0 -4
- package/dist/search.js +0 -4
- package/dist/vite.js +0 -366
- /package/dist/{highlight.d.ts → buildtime/highlight.d.ts} +0 -0
- /package/dist/{highlight.js → buildtime/highlight.js} +0 -0
- /package/dist/{preprocess.d.ts → buildtime/preprocess.d.ts} +0 -0
- /package/dist/{preprocess.js → buildtime/preprocess.js} +0 -0
- /package/dist/{ui → components/chrome}/background-pattern.svelte +0 -0
- /package/dist/{ui → components/chrome}/background-pattern.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/copy-button.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/search-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/theme-provider.svelte +0 -0
- /package/dist/{ui → components/chrome}/theme-provider.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/theme-toggle.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/accordion-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/accordion.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/badge.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/callout.svelte +0 -0
- /package/dist/{ui → components/docs}/callout.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/card-grid.svelte +0 -0
- /package/dist/{ui → components/docs}/card-grid.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/card.svelte +0 -0
- /package/dist/{ui → components/docs}/card.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/file-tree-item.svelte +0 -0
- /package/dist/{ui → components/docs}/file-tree-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/file-tree.svelte +0 -0
- /package/dist/{ui → components/docs}/file-tree.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/kbd.svelte +0 -0
- /package/dist/{ui → components/docs}/kbd.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/live-example.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/prop.svelte +0 -0
- /package/dist/{ui → components/docs}/prop.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/props-table.svelte +0 -0
- /package/dist/{ui → components/docs}/props-table.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/step.svelte +0 -0
- /package/dist/{ui → components/docs}/step.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/steps.svelte +0 -0
- /package/dist/{ui → components/docs}/steps.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tab-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tabs-phase.svelte +0 -0
- /package/dist/{ui → components/docs}/tabs-phase.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tabs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/icons/github.svelte +0 -0
- /package/dist/{ui → components}/icons/github.svelte.d.ts +0 -0
- /package/dist/{ui → components}/layouts/breadcrumbs.svelte +0 -0
- /package/dist/{ui → components}/layouts/breadcrumbs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/layouts/copy-page-menu.svelte +0 -0
- /package/dist/{ui → components}/layouts/copy-page-menu.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/code.svelte +0 -0
- /package/dist/{ui → components}/markdown/code.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/h2.svelte +0 -0
- /package/dist/{ui → components}/markdown/h2.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/h3.svelte +0 -0
- /package/dist/{ui → components}/markdown/h3.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/index.d.ts +0 -0
- /package/dist/{ui → components}/markdown/index.js +0 -0
- /package/dist/{ui → components}/markdown/pre.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/table.svelte +0 -0
- /package/dist/{ui → components}/markdown/table.svelte.d.ts +0 -0
- /package/dist/{types.js → components/markdown/types.js} +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/index.js +0 -0
- /package/dist/{ui → components}/shadcn/badge/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/badge/index.js +0 -0
- /package/dist/{ui → components}/shadcn/button/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/button/index.js +0 -0
- /package/dist/{ui → components}/shadcn/command/command-empty.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-input.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-link-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-list.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-loading.svelte +0 -0
- /package/dist/{ui → components}/shadcn/command/command-loading.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/index.js +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/index.js +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/input/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input-group/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/input-group/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/index.js +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/index.js +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/separator/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/separator/index.js +0 -0
- /package/dist/{ui → components}/shadcn/separator/separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/index.js +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/index.js +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/textarea/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/textarea/index.js +0 -0
- /package/dist/{generate-llms.js → generate/llms.js} +0 -0
- /package/dist/{sitemap.d.ts → generate/sitemap.d.ts} +0 -0
- /package/dist/{sitemap.js → generate/sitemap.js} +0 -0
- /package/dist/{clipboard.svelte.d.ts → utils/clipboard.svelte.d.ts} +0 -0
- /package/dist/{clipboard.svelte.js → utils/clipboard.svelte.js} +0 -0
- /package/dist/{shadcn.d.ts → utils/cn.d.ts} +0 -0
- /package/dist/{shadcn.js → utils/cn.js} +0 -0
- /package/dist/{normalize-path.d.ts → utils/normalize-path.d.ts} +0 -0
- /package/dist/{normalize-path.js → utils/normalize-path.js} +0 -0
- /package/dist/{types.d.ts → utils/types.d.ts} +0 -0
- /package/dist/{ui/markdown → utils}/types.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext, type Snippet } from 'svelte';
|
|
3
|
-
import * as TabsPrimitive from '
|
|
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 '
|
|
23
|
+
import * as TabsPrimitive from '../shadcn/tabs/index.js';
|
|
24
24
|
import TabsPhaseScope from './tabs-phase.svelte';
|
|
25
25
|
|
|
26
26
|
const {
|
|
@@ -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 '../../
|
|
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,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { page } from '$app/state';
|
|
3
|
-
import type { DocsmithConfig, NavGroup } from '../../
|
|
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';
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
type DocsContentItem,
|
|
7
7
|
type DocsmithConfig,
|
|
8
8
|
type SearchDoc
|
|
9
|
-
} from '../../
|
|
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
|
-
|
|
207
|
-
|
|
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
|
-
|
|
210
|
-
|
|
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 '../../
|
|
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 '../../
|
|
4
|
-
import { normalizePath } from '../../normalize-path.js';
|
|
5
|
-
import type { NavGroup } from '../../
|
|
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,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { page } from '$app/state';
|
|
3
|
-
import type { DocsContentItem, DocsmithConfig, SearchDoc } from '../../
|
|
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';
|
|
@@ -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,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 '../../
|
|
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,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,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Accordion as AccordionPrimitive } from 'bits-ui';
|
|
3
|
-
import { cn, type WithoutChild } from '../../../
|
|
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 '../../../
|
|
2
|
+
import { type WithoutChild } from '../../../utils/cn.js';
|
|
3
3
|
type $$ComponentProps = WithoutChild<AccordionPrimitive.TriggerProps> & {
|
|
4
4
|
level?: AccordionPrimitive.HeaderProps['level'];
|
|
5
5
|
};
|
|
@@ -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 '../../../
|
|
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 '../../../
|
|
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 '../../../
|
|
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 '../../../
|
|
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 '../../../
|
|
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 '../../../
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { type WithElementRef } from '../../../
|
|
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>;
|
|
@@ -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 '../../../
|
|
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 '../../../
|
|
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,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from '../../../
|
|
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 '../../../
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
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;
|