docs: Add shadcn examples for svelte and vue - #6522
Conversation
Ports the react lib-shadcn and kitchen-sink-shadcn examples to svelte (shadcn-svelte / bits-ui) and vue (shadcn-vue / reka-ui), one variant per framework: - lib-shadcn: single-file basic demos with the same features object, fully internal state, debounced global search, and the numbered walkthrough comments from the react originals - kitchen-sink-shadcn: same architecture as react - identical hooks/features.ts, createTableHook with injected table/cell/header components, the operator-based filter engine, faceted filters, grouping/aggregation, pinning, resizing, and drag reordering wired directly with @dnd-kit-svelte / dnd-kit-vue - date filters cross the calendar boundary as ISO strings since both ports use @internationalized/date rather than JS Date - registers all four under Component Library Examples in docs/config.json Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 432 files, which is 132 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (432)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit b029b55
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Ports the four React shadcn examples to Svelte and Vue — one variant per framework (shadcn-svelte/bits-ui and shadcn-vue/reka-ui, versus React's radix/base pair):
examples/svelte/lib-shadcn,examples/vue/lib-shadcn— Basic examples: single-file demos with the same features object as the React originals (sorting + pagination + global filtering, registeredsortFns/filterFns), fully internal state,@tanstack/pacer-debounced search, stress-test button, and the numbered walkthrough comments preserved.examples/svelte/kitchen-sink-shadcn,examples/vue/kitchen-sink-shadcn— full parity with the React kitchen-sinks: identicalhooks/features.ts(14 features, meta helpers, fuzzy/aggregation fns),createTableHookwith the same injected table/cell/header component registry, the operator-based filter-builder engine, hand-portedfacetedcombobox, grouping + aggregation, sticky pinning, resizing, and drag reordering in the sort list / view options.Implementation notes:
@dnd-kit-svelteanddnd-kit-vue(thesortable.tsxwrapper abstraction was not ported); both verified with real pointer-drag Playwright runs during development.@internationalized/date, so date filter values cross the boundary as ISO strings and the shared operator engine logic stays identical to React's.new-york-v4registry.Subscribewrappers (native fine-grained reactivity), Svelte checkbox uses its separateindeterminateprop, no Svelte devtools panel (@tanstack/svelte-table-devtoolsisn't published), no react-scan/react-compiler bits..gitignoregains!examples/**/src/lib/— the blanketlibbuild-output rule was silently swallowing example source directories.docs/config.json.Verification:
test:types(svelte-check / vue-tsc) andvite buildpass for all four; e2e smoke specs pass (render + regenerate, zero console/page errors); sherif clean (pre-existing preact warning only);test:docslink check passes.🤖 Generated with Claude Code