diff --git a/.changeset/blue-drinks-rush.md b/.changeset/blue-drinks-rush.md new file mode 100644 index 0000000000..8c4f48a1a7 --- /dev/null +++ b/.changeset/blue-drinks-rush.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +chore: Add warning for incompatible dependency diff --git a/.changeset/chilly-planes-begin.md b/.changeset/chilly-planes-begin.md new file mode 100644 index 0000000000..04000bf197 --- /dev/null +++ b/.changeset/chilly-planes-begin.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: ensure path aliases resolve to the correct path diff --git a/.changeset/config.json b/.changeset/config.json index 01f6b72cbf..cee6df899d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -7,5 +7,5 @@ "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": ["playground-js", "playground-ts"] + "ignore": [] } diff --git a/.changeset/fair-beans-collect.md b/.changeset/fair-beans-collect.md new file mode 100644 index 0000000000..c95ef3710e --- /dev/null +++ b/.changeset/fair-beans-collect.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +feat: Improved error message when fetching the registry fails diff --git a/.changeset/flat-sloths-learn.md b/.changeset/flat-sloths-learn.md new file mode 100644 index 0000000000..2e593c746e --- /dev/null +++ b/.changeset/flat-sloths-learn.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix(cli)(next): Add missing ui alias option diff --git a/.changeset/good-turtles-hope.md b/.changeset/good-turtles-hope.md new file mode 100644 index 0000000000..f6645e4078 --- /dev/null +++ b/.changeset/good-turtles-hope.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +feat: allow import maps to be used as path aliases diff --git a/.changeset/hot-weeks-spend.md b/.changeset/hot-weeks-spend.md new file mode 100644 index 0000000000..f10ce5afcc --- /dev/null +++ b/.changeset/hot-weeks-spend.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: Improve error message when failing to fetch base colors. diff --git a/.changeset/loud-flies-smoke.md b/.changeset/loud-flies-smoke.md new file mode 100644 index 0000000000..4cc299cae4 --- /dev/null +++ b/.changeset/loud-flies-smoke.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: Ensure `utils.(js|ts)` is not fetched from the registry on `update` command diff --git a/.changeset/metal-streets-argue.md b/.changeset/metal-streets-argue.md new file mode 100644 index 0000000000..6719131320 --- /dev/null +++ b/.changeset/metal-streets-argue.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: respect `utils` path-alias diff --git a/.changeset/new-turkeys-breathe.md b/.changeset/new-turkeys-breathe.md new file mode 100644 index 0000000000..2ed3e270d9 --- /dev/null +++ b/.changeset/new-turkeys-breathe.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": major +--- + +Svelte 5 diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000000..68207ffa38 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,36 @@ +{ + "mode": "pre", + "tag": "next", + "initialVersions": { + "shadcn-svelte": "0.14.0", + "docs": "0.1.0", + "@shadcn-svelte/registry": "0.0.0", + "@shadcn-svelte/registry-template": "0.0.0", + "v4": "0.0.0" + }, + "changesets": [ + "blue-drinks-rush", + "chilly-planes-begin", + "fair-beans-collect", + "flat-sloths-learn", + "good-turtles-hope", + "hot-weeks-spend", + "loud-flies-smoke", + "metal-streets-argue", + "new-turkeys-breathe", + "sixty-lizards-end", + "small-words-jog", + "smooth-candies-shake", + "sweet-steaks-teach", + "swift-tips-share", + "ten-bats-beg", + "ten-spiders-do", + "thin-pens-tie", + "three-hounds-write", + "tired-squids-dance", + "tricky-trains-suffer", + "wicked-terms-give", + "yellow-oranges-invite", + "young-wombats-prove" + ] +} diff --git a/.changeset/sixty-lizards-end.md b/.changeset/sixty-lizards-end.md new file mode 100644 index 0000000000..589c36aad8 --- /dev/null +++ b/.changeset/sixty-lizards-end.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +breaking: svelte 5 + tailwindcss v4 diff --git a/.changeset/small-words-jog.md b/.changeset/small-words-jog.md new file mode 100644 index 0000000000..46988bfe2f --- /dev/null +++ b/.changeset/small-words-jog.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +feat: add customizable `typescript.config` path option to `components.json` diff --git a/.changeset/smooth-candies-shake.md b/.changeset/smooth-candies-shake.md new file mode 100644 index 0000000000..a2f02f7818 --- /dev/null +++ b/.changeset/smooth-candies-shake.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: remove dangling comma in 'components to install' list diff --git a/.changeset/sweet-steaks-teach.md b/.changeset/sweet-steaks-teach.md new file mode 100644 index 0000000000..37d1ff9272 --- /dev/null +++ b/.changeset/sweet-steaks-teach.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: workaround caching issue preventing the correct registry from being fetched diff --git a/.changeset/swift-tips-share.md b/.changeset/swift-tips-share.md new file mode 100644 index 0000000000..32351671f3 --- /dev/null +++ b/.changeset/swift-tips-share.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: ensure `ui` and `hooks` paths are normalized diff --git a/.changeset/ten-bats-beg.md b/.changeset/ten-bats-beg.md new file mode 100644 index 0000000000..10cfc83d6e --- /dev/null +++ b/.changeset/ten-bats-beg.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +chore: point to `tw3.shadcn-svelte.com` subdomain on `init` diff --git a/.changeset/ten-spiders-do.md b/.changeset/ten-spiders-do.md new file mode 100644 index 0000000000..bd330db4a0 --- /dev/null +++ b/.changeset/ten-spiders-do.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: Ensure `svelte-kit sync` executes locally diff --git a/.changeset/thin-pens-tie.md b/.changeset/thin-pens-tie.md new file mode 100644 index 0000000000..1e1f195cb0 --- /dev/null +++ b/.changeset/thin-pens-tie.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: disable ES transformations when stripping types diff --git a/.changeset/three-hounds-write.md b/.changeset/three-hounds-write.md new file mode 100644 index 0000000000..6ddc8908c7 --- /dev/null +++ b/.changeset/three-hounds-write.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +feat: add support for registry-item type `registry:style` diff --git a/.changeset/tired-squids-dance.md b/.changeset/tired-squids-dance.md new file mode 100644 index 0000000000..3bc9f50b97 --- /dev/null +++ b/.changeset/tired-squids-dance.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: always strip trailing slashes from path aliases diff --git a/.changeset/tricky-trains-suffer.md b/.changeset/tricky-trains-suffer.md new file mode 100644 index 0000000000..f26db5150c --- /dev/null +++ b/.changeset/tricky-trains-suffer.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: `update` command now properly updates components diff --git a/.changeset/wicked-terms-give.md b/.changeset/wicked-terms-give.md new file mode 100644 index 0000000000..a507e4ecdf --- /dev/null +++ b/.changeset/wicked-terms-give.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix: resolve deps from node_modules when evaluating their versions diff --git a/.changeset/yellow-oranges-invite.md b/.changeset/yellow-oranges-invite.md new file mode 100644 index 0000000000..1d73203034 --- /dev/null +++ b/.changeset/yellow-oranges-invite.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +chore: display the output of a package manager's `install` process during dependency installation diff --git a/.changeset/young-wombats-prove.md b/.changeset/young-wombats-prove.md new file mode 100644 index 0000000000..16745aad47 --- /dev/null +++ b/.changeset/young-wombats-prove.md @@ -0,0 +1,5 @@ +--- +"shadcn-svelte": patch +--- + +fix(next): add newline to end of `components.json` diff --git a/.github/ISSUE_TEMPLATE/3-bug_report.yml b/.github/ISSUE_TEMPLATE/3-bug_report.yml index f0990f591f..17bed58e14 100644 --- a/.github/ISSUE_TEMPLATE/3-bug_report.yml +++ b/.github/ISSUE_TEMPLATE/3-bug_report.yml @@ -44,7 +44,7 @@ body: id: system-info attributes: label: System Info - description: Output of `npx envinfo --system --npmPackages svelte,shadcn-svelte,tailwindcss,bits-ui,vaul-svelte,sveltekit-superforms,@sveltejs/kit,mode-watcher,formsnap,cmdk-sv,svelte-radix,lucide-svelte,svelte-sonner --binaries --browsers` + description: Output of `npx envinfo --system --npmPackages svelte,shadcn-svelte,tailwindcss,bits-ui,vaul-svelte,sveltekit-superforms,@sveltejs/kit,mode-watcher,formsnap,cmdk-sv,svelte-radix,@lucide/svelte,svelte-sonner --binaries --browsers` render: bash placeholder: System, Binaries, Browsers validations: diff --git a/.github/workflows/build-preview-tw-4.yml b/.github/workflows/build-preview-tw-4.yml deleted file mode 100644 index 34dc3f7b5e..0000000000 --- a/.github/workflows/build-preview-tw-4.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build Preview Tailwind 4 - -# cancel in-progress runs on new commits to same PR (github.event.number) -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: true - -on: - pull_request: - types: [opened, synchronize] - -jobs: - build-preview-tw-4: - if: github.head_ref == 'next-tailwind-4' || github.base_ref == 'next-tailwind-4' - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - - name: Install dependencies - run: pnpm install - - - name: Build site - env: - NODE_OPTIONS: --max-old-space-size=8192 - run: "pnpm build:v4" - - - name: Upload build artifact - uses: actions/upload-artifact@v4 - with: - name: preview-build-tailwind-4 - path: v4/.svelte-kit/cloudflare diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 22ad14b91f..7f14f4b90b 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -11,7 +11,7 @@ on: jobs: build-preview: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -20,13 +20,6 @@ jobs: node-version: 20 cache: pnpm - # Image cache setup - - name: Setup Image cache - uses: actions/cache@v4 - with: - path: "**/node_modules/.cache/imagetools" - key: ${{ runner.os }}-image-cache-${{ hashFiles('**/src/lib/img') }} - - name: Install dependencies run: pnpm install @@ -39,4 +32,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: preview-build - path: sites/docs/.svelte-kit/cloudflare + path: docs/.svelte-kit/cloudflare diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6558c3868d..fa9502c937 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ concurrency: jobs: check: - name: Run svelte-check - runs-on: ubuntu-latest + name: Svelte Check + runs-on: macos-latest steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -26,7 +26,7 @@ jobs: run: pnpm check lint: - runs-on: ubuntu-latest + runs-on: macos-latest name: Lint steps: - uses: actions/checkout@v4 @@ -43,7 +43,10 @@ jobs: cli-test: name: CLI-Tests - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -55,5 +58,8 @@ jobs: - name: Install dependencies run: pnpm install + - name: Build packages + run: pnpm build:cli + - name: Run tests run: pnpm -F shadcn-svelte test diff --git a/.github/workflows/deploy-preview-tw-4.yml b/.github/workflows/deploy-preview-tw-4.yml deleted file mode 100644 index 1457ca183d..0000000000 --- a/.github/workflows/deploy-preview-tw-4.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Upload Preview Deployment Tailwind 4 - -on: - workflow_run: - workflows: [Build Preview Tailwind 4] - types: - - completed - -permissions: - actions: read - deployments: write - contents: read - pull-requests: write - -jobs: - deploy-preview-tw-4: - runs-on: macos-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - - name: Download build artifact - uses: actions/download-artifact@v4 - id: preview-tw-4-build-artifact - with: - name: preview-build-tailwind-4 - path: build - github-token: ${{ secrets.GITHUB_TOKEN }} - run-id: ${{ github.event.workflow_run.id }} - - - name: Deploy to Cloudflare Pages - uses: AdrianGonz97/refined-cf-pages-action@v1 - with: - apiToken: ${{ secrets.CF_API_TOKEN }} - accountId: ${{ secrets.CF_ACCOUNT_ID }} - githubToken: ${{ secrets.GITHUB_TOKEN }} - projectName: scn-svelte-v4 - deploymentName: Preview Tailwind 4 - directory: ${{ steps.preview-tw-4-build-artifact.outputs.download-path }} diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 8031f5121d..fa3286e470 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -14,7 +14,7 @@ permissions: jobs: deploy-preview: - runs-on: ubuntu-latest + runs-on: macos-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Download build artifact diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 57a1b41184..627efcbd64 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -4,7 +4,7 @@ on: branches: - main paths: - - sites/docs/** + - docs/** workflow_dispatch: @@ -23,13 +23,6 @@ jobs: node-version: 20 cache: pnpm - # Image cache setup - - name: Setup Image cache - uses: actions/cache@v4 - with: - path: "**/node_modules/.cache/imagetools" - key: ${{ runner.os }}-image-cache-${{ hashFiles('**/src/lib/img') }} - - name: Install dependencies run: pnpm install @@ -46,5 +39,5 @@ jobs: githubToken: ${{ secrets.GITHUB_TOKEN }} projectName: shadcn-svelte directory: ./.svelte-kit/cloudflare - workingDirectory: sites/docs + workingDirectory: docs deploymentName: Production diff --git a/.github/workflows/deploy-tailwind-3.yml b/.github/workflows/deploy-tailwind-3.yml index df387a60a4..72fa1a2e14 100644 --- a/.github/workflows/deploy-tailwind-3.yml +++ b/.github/workflows/deploy-tailwind-3.yml @@ -23,12 +23,6 @@ jobs: node-version: 20 cache: pnpm - # Image cache setup - - name: Setup Image cache - uses: actions/cache@v4 - with: - path: "**/node_modules/.cache/imagetools" - key: ${{ runner.os }}-image-cache-${{ hashFiles('**/src/lib/img') }} - name: Install dependencies run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb23ce94d2..593bfe0c51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,11 +12,12 @@ jobs: release: name: Build & Publish Release if: github.repository == 'huntabyte/shadcn-svelte' - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/reproduire-close.yml b/.github/workflows/reproduire-close.yml index 02fbd03c7f..7ebf53c3c2 100644 --- a/.github/workflows/reproduire-close.yml +++ b/.github/workflows/reproduire-close.yml @@ -9,7 +9,7 @@ permissions: jobs: stale: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: diff --git a/.gitignore b/.gitignore index a0c54889ca..76e03c1913 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store node_modules +dist /build /.svelte-kit /package @@ -103,10 +104,18 @@ web_modules/ .yarn/build-state.yml .yarn/install-state.gz .pnp.* -packages/cli/dist -dist/ -dist generated-assets # JetBrains IDEs -.idea/ \ No newline at end of file +.idea/ + +.velite +docs/static/registry +docs/static/themes.css +docs/static/schema/registry.json +docs/static/schema/registry-item.json +docs/src/__registry__ + + + +registry-template/static/r \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 78a9495914..d2c5c8a013 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.15.1 \ No newline at end of file +v22.15.0 \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index bf51af84d7..3bd26efc29 100644 --- a/.prettierignore +++ b/.prettierignore @@ -17,10 +17,13 @@ CHANGELOG.md .github/ - - # docs site specific -sites/docs/src/__registry__/* -sites/docs/other/themes/dark.json -sites/docs/other/themes/light.json -sites/docs/static +docs/other/themes/dark.json +docs/other/themes/light.json +docs/static +docs/.velite +docs/src/__registry__ +packages/cli/test/fixtures +playgrounds +registry-template/static +.svelte-kit \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1d278a0663..e64caf59af 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,11 +1,13 @@ { // Enable the ESlint flat config support - "eslint.experimental.useFlatConfig": true, + "eslint.useFlatConfig": true, // Auto fix "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", - "source.organizeImports": "never" + "source.organizeImports": "never", + "source.removeUnusedImports": "never", + "source.removeUnused.ts": "never" }, // Enable eslint for all supported languages diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000000..3b462cb0c4 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,23 @@ +node_modules + +# Output +.output +.vercel +.netlify +.wrangler +/.svelte-kit +/build + +# OS +.DS_Store +Thumbs.db + +# Env +.env +.env.* +!.env.example +!.env.test + +# Vite +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/playgrounds/playground-js/.npmrc b/docs/.npmrc similarity index 100% rename from playgrounds/playground-js/.npmrc rename to docs/.npmrc diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000..8f97d62742 --- /dev/null +++ b/docs/README.md @@ -0,0 +1 @@ +# shadcn-svelte docs diff --git a/docs/content/about.md b/docs/content/about.md new file mode 100644 index 0000000000..aefaad03f5 --- /dev/null +++ b/docs/content/about.md @@ -0,0 +1,23 @@ +--- +title: About +description: Powered by amazing open source projects. +--- + +## About + +[shadcn-svelte](https://github.com/huntabyte/shadcn-svelte) is a port of [shadcn/ui](https://ui.shadcn.com) for Svelte/SvelteKit. It's maintained by [Huntabyte](https://twitter.com/huntabyte) and [CokaKoala](https://github.com/adriangonz97) and has received countless contributions from the community. + +## Credits + +- [shadcn](https://twitter.com/shadcn) - The brilliant mind behind the designs, methodology, and implementation of the original [shadcn/ui](https://ui.shadcn.com). +- [Bits UI](https://bits-ui.com) - The headless components that power this project. +- [Formsnap](https://formsnap.dev) - The form components that power this project. +- [Paneforge](https://paneforge.com) - The resizable components that power this project. +- [Vaul Svelte](https://vaul-svelte.com) - The drawer components that power this project. +- [Radix UI](https://radix-ui.com) - The headless components and examples that the original [shadcn/ui](https://ui.shadcn.com) was built on. +- [Shu Ding](https://shud.in) - The typography style is adapted from his work on Nextra. +- [Cal](https://cal.com) - Where shad copied the styles for the first component: the `Button`. + +## License + +MIT © [shadcn](https://shadcn.com) & [huntabyte](https://twitter.com/huntabyte) diff --git a/docs/content/changelog.md b/docs/content/changelog.md new file mode 100644 index 0000000000..0b3f83b499 --- /dev/null +++ b/docs/content/changelog.md @@ -0,0 +1,187 @@ +--- +title: Changelog +description: Latest updates and announcements. +--- + + + +## June 2025 + +### New Calendar Components + +We've completely overhauled the `Calendar` and `RangeCalendar` components to support dropdowns for the month and year selectors, and have added 30+ Calendar blocks to help you get started building your own calendar components. + +Check out the [Calendar](/docs/components/calendar) docs page and the [Calendar Blocks](/docs/blocks/calendar) page for more. + +## May 2025 + +### Tailwind v4 Support + +Tailwind v4 support has officially landed. You can see a full demo of the refreshed styles that come with it here: [https://v4.shadcn-svelte.com](https://v4.shadcn-svelte.com). + +This release includes several key changes, all outlined in the [Tailwind v4 migration guide](/docs/migration/tailwind-v4). If you're still using Svelte v5 with Tailwind v3, your project and the CLI will continue to work as expected until you're ready to upgrade. + +### Charts + +Charts have been added as a preview component to the project. See the [Charts](/charts) page for examples. + +If you're running Svelte v5 and Tailwind v4 you can add them to your project via the CLI. + +### Custom Registry Support + +We've added support for custom/remote registries - This means you can publish your own components and share them with the community via the `shadcn-svelte` CLI. + +See the [Registry documentation](/docs/registry) for more information. + +## March 2024 + +### Introducing Blocks + +[Blocks](/blocks) are ready-made components that you can use to build your apps. They are fully responsive, accessible, and composable, meaning they are built using the same principles as the rest of the components in shadcn-svelte. + +[v0](https://v0.dev) only supports React at the moment, so you can't customize them like you can the original from [shadcn/ui](https://ui.shadcn.com). However, if having support for Svelte interests you, I'm sure the v0 team would love to hear about it. :) + +### New Component: Breadcrumb + +We've added a new component to the project, [Breadcrumb](/docs/components/breadcrumb). + +### New Component: Scroll Area + +We've added a new component to the project, [Scroll Area](/docs/components/scroll-area), which is built on top of the [Scroll Area](https://bits-ui.com/docs/components/scroll-area) component from Bits UI. + +It supports both vertical and horizontal scrolling, and is designed to provide a consistent experience across all browsers and platforms. + +## February 2024 + +### New Component: Resizable + +We've added a new component to the project, [Resizable](/docs/components/resizable), which is built on top of [PaneForge](https://paneforge.com). PaneForge is still in an early stage, so be sure to raise any issues you find with the library on the [PaneForge GitHub](https://github.com/svecosystem/paneforge). + + +### Updated Icon Imports + +After some feedback about dev server performance, we've updated the way we import icons. With this change, we've decided to move away from the unmaintained `radix-icons-svelte` package to [svelte-radix](https://github.com/shinokada/svelte-radix) for the `new-york` style. + +Instead of importing icons like so: + +```ts +import { Check } from "@lucide/svelte"; +``` + +We now import them directly: + +```ts +import Check from "@lucide/svelte/icons/check"; +``` + +With deep imports, we're preventing Vite from optimizing the entire icon collections, and instead only optimizing the icons that are actually used in your project. From what we've seen, this has a massive impact on dev server performance. Enjoy! 🚀 + +### Major Forms Update + +Formsnap has been completely rewritten to be more flexible, easier to use, and less opinionated. This means we've had to make some changes to the way we use it in `shadcn-svelte`, but once you get the hang of it, you'll find it's much more powerful and less restrictive than the previous iteration. + +Since the changes are so significant, there isn't a direct migration path from the old version to the new version. You'll need to update your components to use the new API, as well as ensure you're using the latest version of `formsnap` and `sveltekit-superforms`. + +All of the `Form` components have been updated to use the new API, and you can see live examples of them on the [Forms Examples](/examples/forms) page. + +Visit the [Formsnap](https://formsnap.dev) documentation (which has also been updated) to learn more about the new API and how its used. + +## January 2024 + +We've added four new components to the project, [Carousel](/docs/components/carousel), [Drawer](/docs/components/drawer), [Sonner](/docs/components/sonner), & [Pagination](/docs/components/pagination). + +### New Component: Carousel + +We've added a new component to the project, [Carousel](/docs/components/carousel). + + + +
+ +
+ +### New Component: Drawer + +The Drawer is built on top of [vaul-svelte](https://vaul-svelte.com) and is a port of [vaul](https://vaul.emilkowalski.ski/), originally created by [Emil Kowalski](https://twitter.com/emilkowalski_) for React. + + + +
+ +
+ +### New Component: Sonner + +The Sonner component is provided by [svelte-sonner](https://svelte-sonner.vercel.app/), which is a Svelte port of [Sonner](https://sonner.emilkowal.ski/), originally created by [Emil Kowalski](https://twitter.com/emilkowalski_) for React. + + + +
+ +
+ +### New Component: Pagination + +Pagination leverages the [Pagination](https://bits-ui.com/docs/components/pagination) component from Bits UI. + +## December 2023 + +We've added three new components to the project, [Calendar](/docs/components/calendar), [Range Calendar](/docs/components/range-calendar), & [Date Picker](/docs/components/date-picker). + + +## November 2023 + +### New Component: Toggle Group + +We've added a new component to the library, [Toggle Group](/docs/components/toggle-group). + +## October 2023 + +We've added two new components to the library, [Command](/docs/components/command) & [Combobox](/docs/components/combobox). We've also made some updates to the `` component that you'll want to be aware of. + +### New Component: Command + +Command is a component that allows you to create a command palette. It's built on top of [cmdk-sv](https://cmdk-sv.com), which is a Svelte port of [cmdk](https://cmdk.paco.me). The library is still in its infancy, but we're excited to see where it goes. If you notice any issues, please [open an issue](https://github.com/huntabyte/cmdk-sv) with the library. + +Be sure to check out the [Command](/docs/components/command) docs for more information. + +### New Component: Combobox + +Combobox is a combination of the `` & `` components. It allows you to create a searchable dropdown menu. + +Be sure to check out the [Combobox](/docs/components/combobox) docs for more information. + +### Updates to Form + +#### Form.Label Changes + +Since we had to make some internal changes to formsnap to fix outstanding issues, there is a slight modification we have to make to the `` component. The `ids` returned from `getFormField()` is now a store, so we need to prefix it with `$` when we use it. + +```svelte title="form-label.svelte" {2} + +``` + +### Form.Control + +Formsnap introduced a new component `` which wraps non-traditional form elements. This allows us to ensure the components are accessible, and work well with the rest of the form components. You'll need to define & export that control in your `form/index.ts` file. + +```ts title="src/lib/ui/form/index.ts" +// ...rest +const Control = FormPrimitive.Control; + +export { + // ...rest + Control, + Control as FormControl, +}; +``` diff --git a/docs/content/cli.md b/docs/content/cli.md new file mode 100644 index 0000000000..e1e61405f1 --- /dev/null +++ b/docs/content/cli.md @@ -0,0 +1,127 @@ +--- +title: CLI +description: Use the CLI to add components to your project. +--- + + + +## init + +Use the `init` command to initialize dependencies for a new project. + +The `init` command installs dependencies, adds the `cn` util, and creates CSS variables for the project. + + + +You will be asked a few questions to configure `components.json`: + +```txt showLineNumbers +Which base color would you like to use? › Slate +Where is your global CSS file? (this file will be overwritten) › src/app.css +Configure the import alias for lib: › $lib +Configure the import alias for components: › $lib/components +Configure the import alias for utils: › $lib/utils +Configure the import alias for hooks: › $lib/hooks +Configure the import alias for ui: › $lib/components/ui +``` + +### Options + +```txt +Usage: shadcn-svelte init [options] + +initialize your project and install dependencies + +Options: + -c, --cwd the working directory (default: the current directory) + -o, --overwrite overwrite existing files (default: false) + --no-deps disable adding & installing dependencies + --base-color the base color for the components (choices: "slate", "gray", "zinc", "neutral", "stone") + --css path to the global CSS file + --components-alias import alias for components + --lib-alias import alias for lib + --utils-alias import alias for utils + --hooks-alias import alias for hooks + --ui-alias import alias for ui + --proxy fetch items from registry using a proxy + -h, --help display help for command +``` + +## add + +Use the `add` command to add components and dependencies to your project. + + + +You will be presented with a list of components to choose from: + +```txt +Which components would you like to add? › Space to select. Return to submit. + +◯ accordion +◯ alert +◯ alert-dialog +◯ aspect-ratio +◯ avatar +◯ badge +◯ button +◯ card +◯ checkbox +◯ collapsible +``` + +### Options + +```txt +Usage: shadcn-svelte add [options] [components...] + +add components to your project + +Arguments: + components the components to add or a url to the component + +Options: + -c, --cwd the working directory (default: the current directory) + --no-deps skips adding & installing package dependencies + -a, --all install all components to your project (default: false) + -y, --yes skip confirmation prompt (default: false) + -o, --overwrite overwrite existing files (default: false) + --proxy fetch components from registry using a proxy + -h, --help display help for command +``` + +## registry build + +Use the `registry build` command to generate the registry JSON files. + + + +This command reads the `registry.json` file and generates the registry JSON files into the `static/r` directory. + +### Options + +```txt +Usage: shadcn-svelte registry build [options] [registry] + +build components for a shadcn-svelte registry + +Arguments: + registry path to registry.json file (default: ./registry.json) + +Options: + -c, --cwd the working directory (default: the current directory) + -o, --output destination directory for json files (default: ./static/r) + -h, --help display help for command +``` + +## Outgoing Requests + +### Proxy + +This enables the use of a proxy when sending out requests to fetch from the `shadcn-svelte` registry. If the `HTTP_PROXY` or `http_proxy` environment variables have been set, the request library underneath will respect the proxy settings. + +```bash +HTTP_PROXY="" npx shadcn-svelte@latest init +``` diff --git a/docs/content/components-json.md b/docs/content/components-json.md new file mode 100644 index 0000000000..34a2b67768 --- /dev/null +++ b/docs/content/components-json.md @@ -0,0 +1,162 @@ +--- +title: components.json +description: Configuration for your project. +--- + + + +The `components.json` file holds configuration for your project. + +We use it to understand how your project is set up and how to generate components customized for your project. + + + +Note: The `components.json` file is optional and **only required if you're using the CLI** to add components to your project. If you're using the copy and paste method, you don't need this file. + + + +You can create a `components.json` file in your project by running the following command: + + + +See the [CLI section](/docs/cli) for more information. + +## $schema + +You can see the JSON Schema for `components.json` [here](https://shadcn-svelte.com/schema.json). + +```json title="components.json" +{ + "$schema": "https://shadcn-svelte.com/schema.json" +} +``` + +## tailwind + +Configuration to help the CLI understand how Tailwind CSS is set up in your project. + +See the [installation section](/docs/installation) for how to set up Tailwind CSS. + +### tailwind.css + +Path to the CSS file that imports Tailwind CSS into your project. + +```json title="components.json" +{ + "tailwind": { + "css": "src/app.{p,post}css" + } +} +``` + +### tailwind.baseColor + +This is used to generate the default color palette for your components. **This cannot be changed after initialization.** + +```json title="components.json" +{ + "tailwind": { + "baseColor": "gray" | "neutral" | "slate" | "stone" | "zinc" + } +} +``` + +## aliases + +The CLI uses these values and the `alias` config from your `svelte.config.js` file to place generated components in the correct location. + +Path aliases have to be set up in your `svelte.config.js` file. + +### aliases.lib + +Import alias for your library, which is _typically_ where you store your components, utils, hooks, etc. + +```json title="components.json" +{ + "aliases": { + "lib": "$lib" + } +} +``` + +### aliases.utils + +Import alias for your utility functions. + +```json title="components.json" +{ + "aliases": { + "utils": "$lib/utils" + } +} +``` + +### aliases.components + +Import alias for your components. + +```json title="components.json" +{ + "aliases": { + "components": "$lib/components" + } +} +``` + +### aliases.ui + +Import alias for your UI components. + +```json title="components.json" +{ + "aliases": { + "ui": "$lib/components/ui" + } +} +``` + +### aliases.hooks + +Import alias for your hooks, which in Svelte 5 are reactive functions/classes whose files typically end in `.svelte.ts` or `.svelte.js`. + +```json title="components.json" +{ + "aliases": { + "hooks": "$lib/hooks" + } +} +``` + +## Typescript + +Typescript can be enabled or disabled. + +```json title="components.json" +{ + "typescript": true | false +} +``` + +You can also specify a path to your own custom Typescript config file if it has a different name from `tsconfig.json` or `jsconfig.json`, or if it is located in a different directory: + +```json title="components.json" +{ + "typescript": { + "config": "path/to/tsconfig.custom.json" + } +} +``` + +## Registry + +The registry URL tells the CLI where to fetch the shadcn-svelte components/registry from. You can pin this to a specific preview release or your own fork of the registry. + +```json title="components.json" +{ + "registry": "https://shadcn-svelte.com/registry" +} +``` diff --git a/docs/content/components/accordion.md b/docs/content/components/accordion.md new file mode 100644 index 0000000000..ea572b8a71 --- /dev/null +++ b/docs/content/components/accordion.md @@ -0,0 +1,76 @@ +--- +title: Accordion +description: A vertically stacked set of interactive headings that each reveal a section of content. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/accordion + doc: https://bits-ui.com/docs/components/accordion + api: https://bits-ui.com/docs/components/accordion#api-reference +--- + + + + + +
+ +
+ +## Installation + + + +{#snippet cli()} + + + +{/snippet} + +{#snippet manual()} + + + + + +Install `bits-ui` + + + + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + + +{/snippet} + + + +## Usage + +```svelte + + + + + Is it accessible? + + Yes. It adheres to the WAI-ARIA design pattern. + + + +``` diff --git a/docs/content/components/alert-dialog.md b/docs/content/components/alert-dialog.md new file mode 100644 index 0000000000..2e2784e788 --- /dev/null +++ b/docs/content/components/alert-dialog.md @@ -0,0 +1,76 @@ +--- +title: Alert Dialog +description: A modal dialog that interrupts the user with important content and expects a response. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/alert-dialog + doc: https://bits-ui.com/docs/components/alert-dialog + api: https://bits-ui.com/docs/components/alert-dialog#api-reference +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Install `bits-ui`: + + + + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + + + Open + + + Are you absolutely sure? + + This action cannot be undone. This will permanently delete your account + and remove your data from our servers. + + + + Cancel + Continue + + + +``` diff --git a/docs/content/components/alert.md b/docs/content/components/alert.md new file mode 100644 index 0000000000..004a0a418a --- /dev/null +++ b/docs/content/components/alert.md @@ -0,0 +1,74 @@ +--- +title: Alert +description: Displays a callout for user attention. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/alert +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + + + Heads up! + + You can add components to your app using the cli. + + +``` + +## Examples + +### Default + + + +
+ +
+ +### Destructive + + + +
+ +
diff --git a/docs/content/components/aspect-ratio.md b/docs/content/components/aspect-ratio.md new file mode 100644 index 0000000000..e55f5b2b26 --- /dev/null +++ b/docs/content/components/aspect-ratio.md @@ -0,0 +1,65 @@ +--- +title: Aspect Ratio +description: Displays content within a desired ratio. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/aspect-ratio + doc: https://bits-ui.com/docs/components/aspect-ratio + api: https://bits-ui.com/docs/components/aspect-ratio#api-reference +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Install `bits-ui`: + + + + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + +
+ + ... + +
+``` diff --git a/docs/content/components/avatar.md b/docs/content/components/avatar.md new file mode 100644 index 0000000000..95d7e9bffe --- /dev/null +++ b/docs/content/components/avatar.md @@ -0,0 +1,64 @@ +--- +title: Avatar +description: An image element with a fallback for representing the user. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/avatar + doc: https://bits-ui.com/docs/components/avatar + api: https://bits-ui.com/docs/components/avatar#api-reference +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Install `bits-ui`: + + + + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + + + + CN + +``` diff --git a/docs/content/components/badge.md b/docs/content/components/badge.md new file mode 100644 index 0000000000..c015e2f49e --- /dev/null +++ b/docs/content/components/badge.md @@ -0,0 +1,62 @@ +--- +title: Badge +description: Displays a badge or a component that looks like a badge. +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/badge +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + +Badge +``` + +### Link + +You can use the `badgeVariants` helper to create a link that looks like a badge. + +```svelte + + +Badge +``` diff --git a/docs/content/components/breadcrumb.md b/docs/content/components/breadcrumb.md new file mode 100644 index 0000000000..fd202d5e57 --- /dev/null +++ b/docs/content/components/breadcrumb.md @@ -0,0 +1,127 @@ +--- +title: Breadcrumb +description: Displays the path to the current resource using a hierarchy of links. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/breadcrumb +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + + + + + Home + + + + Components + + + + Breadcrumb + + + +``` + +## Examples + +### Custom separator + +Use a custom component in the `` of `` to create a custom separator. + + + +
+ +
+ +--- + +### Dropdown + +You can compose `` with a `` to create a dropdown in the breadcrumb. + + + +
+ +
+ +--- + +### Collapsed + +We provide a `` component to show a collapsed state when the breadcrumb is too long. + + + +
+ +
+ +--- + +### Link component + +To use a custom link component from your routing library, you can use the `asChild` prop on ``. + + + +
+ +
+ +--- + +### Responsive + +Here's an example of a responsive breadcrumb that composes `` with ``, ``, and ``. + +It displays a dropdown on desktop and a drawer on mobile. + + + +
+ +
diff --git a/docs/content/components/button.md b/docs/content/components/button.md new file mode 100644 index 0000000000..06693c34f5 --- /dev/null +++ b/docs/content/components/button.md @@ -0,0 +1,175 @@ +--- +title: Button +description: Displays a button or a component that looks like a button. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/button + doc: https://bits-ui.com/docs/components/button + api: https://bits-ui.com/docs/components/button#api-reference +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Install `bits-ui`: + + + + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + + +``` + +### Link + +You can convert the ` +``` + +Alternatively, you can use the `buttonVariants` helper to create a link that looks like a button. + +```svelte + + + + Dashboard + +``` + +## Examples + +### Primary + + + +
+ +
+ +--- + +### Secondary + + + +
+ +
+ +--- + +### Destructive + + + +
+ +
+ +--- + +### Outline + + + +
+ +
+ +--- + +### Ghost + + + +
+ +
+ +--- + +### Link + + + +
+ +
+ +--- + +### With Icon + + + +
+ +
+ +--- + +### Icon + + + +
+ +
+ +--- + +### Loading + + + +
+ +
diff --git a/docs/content/components/calendar.md b/docs/content/components/calendar.md new file mode 100644 index 0000000000..b6a7af71e6 --- /dev/null +++ b/docs/content/components/calendar.md @@ -0,0 +1,128 @@ +--- +title: Calendar +description: A calendar component that allows users to select dates. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/calendar + doc: https://bits-ui.com/docs/components/calendar + api: https://bits-ui.com/docs/components/calendar#api-reference +--- + + + + + +
+ +
+ +## Blocks + +We have built a collection of 30+ calendar blocks that you can use to build your own calendar components. + +See call calendar blocks in the [Blocks Library](/docs/blocks/calendar) page. + +## About + +The `` component is built on top of the [Bits UI Calendar](https://www.bits-ui.com/docs/components/calendar) component, which uses the [@internationalized/date](https://react-spectrum.adobe.com/internationalized/date/index.html) package to handle dates. + +If you're looking for a range calendar, check out the [Range Calendar](/docs/components/range-calendar) component. + +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Install `bits-ui` and `@internationalized/date`: + + + + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Date Picker + +You can use the `` component to build a date picker. See the [Date Picker](/docs/components/date-picker) page for more information. + +## Examples + +### Range Calendar + + + +
+ +
+ +### Month and Year Selector + + + +
+ +
+ +### Date of Birth Picker + + + +
+ +
+ +### Date and Time Picker + + + +
+ +
+ +### Natural Language Picker + +This component uses the `chrono-node` library to parse natural language dates. + + + +
+ +
+ +## Upgrade Guide + +You can upgrade to the latest version of the `` component by running the following command: + + + +When you're prompted to overwrite the existing files, select `Yes`. **If you have made any changes to the `Calendar` component, you will need to merge your changes with the new version.** + +#### Installing Blocks + +After upgrading the `Calendar` component, you can add the new blocks with the following: + + + +This will add the latest version of the calendar blocks. diff --git a/docs/content/components/card.md b/docs/content/components/card.md new file mode 100644 index 0000000000..b4d5103470 --- /dev/null +++ b/docs/content/components/card.md @@ -0,0 +1,70 @@ +--- +title: Card +description: Displays a card with header, content, and footer. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/card +--- + + + + + +
+ +
+ +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Usage + +```svelte + + + + + Card Title + Card Description + + +

Card Content

+
+ +

Card Footer

+
+
+``` + +## Examples + + + +
+ +
diff --git a/sites/docs/src/content/components/carousel.md b/docs/content/components/carousel.md similarity index 75% rename from sites/docs/src/content/components/carousel.md rename to docs/content/components/carousel.md index f65b35a5e4..4730c11498 100644 --- a/sites/docs/src/content/components/carousel.md +++ b/docs/content/components/carousel.md @@ -2,17 +2,24 @@ title: Carousel description: A carousel with motion and swipe built using Embla. component: true -source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/carousel -bits: https://www.embla-carousel.com/get-started/svelte/ +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/carousel + doc: https://www.embla-carousel.com/get-started/svelte + api: https://www.embla-carousel.com/api --- -
+
@@ -22,17 +29,30 @@ The carousel component is built using the [Embla Carousel](https://www.embla-car ## Installation + +{#snippet cli()} +{/snippet} +{#snippet manual()} + - + -1. Install `embla-carousel-svelte`: +Install `embla-carousel-svelte`: + + -2. Copy and paste the component source files linked at the top of this page into your project. + + +Copy and paste the component source files linked at the top of this page into your project. + + - + +{/snippet} + ## Usage @@ -60,7 +80,7 @@ To set the size of the items, you can use the `basis` utility class on the ` -
+
@@ -92,7 +112,7 @@ To set the spacing between the items, we use a `pl-[VALUE]` utility on the ` -
+
@@ -122,7 +142,7 @@ Use the `orientation` prop to set the orientation of the carousel. -
+
@@ -157,33 +177,34 @@ You can pass options to the carousel using the `opts` prop. See the [Embla Carou ## API -Use reactive state and the `bind:api` directive to get an instance of the carousel API. +Use reactive state and the `setApi` callback to get an instance of the carousel API. -
+
-```svelte showLineNumbers {2,5,18} +```svelte showLineNumbers {2,5,19} - + (api = emblaApi)}> ... ... @@ -196,21 +217,23 @@ Use reactive state and the `bind:api` directive to get an instance of the carous You can listen to events using the api instance from `bind:api`. -```svelte showLineNumbers {2,5,7-11,14} +```svelte showLineNumbers {2,5,7-13,16} - + (api = emblaApi)}> ... ... @@ -242,7 +265,7 @@ You can use the `plugins` prop to add plugins to the carousel. -
+
diff --git a/docs/content/components/chart.md b/docs/content/components/chart.md new file mode 100644 index 0000000000..69b35a9cfa --- /dev/null +++ b/docs/content/components/chart.md @@ -0,0 +1,539 @@ +--- +title: Chart +description: Beautiful charts. Built using LayerChart. Copy and paste into your apps. +component: true +links: + source: https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/chart + doc: https://next.layerchart.com +--- + + + + + +
+ +
+ + + +**Important:** LayerChart v2 is still in pre-release and is actively evolving. Only use if you're comfortable with potential breaking changes before stable v2. + +Your feedback will be invaluable in shaping the release and features. Current development status can be tracked [here](https://github.com/techniq/layerchart/pull/449). + + + +Introducing **Charts**. A collection of chart components that you can copy and paste into your apps. + +Charts are designed to look great out of the box. They work well with other components are are fully customizable to fit your project. + +[Browse the Charts Library](/charts) + +## Component + +We use [LayerChart](https://next.layerchart.com) under the hood. + +We designed the `Chart` component with composition in mind. **You build your charts using LayerChart components and only bring in custom components, such as `ChartTooltip`, when and where you need it** + +```svelte showLineNumbers /Chart.Container/ /Chart.Tooltip/ + + + + + {#snippet tooltip()} + + {/snippet} + + +``` + +We do not wrap LayerChart. This means you're not locked into an abstraction. When a new LayerChart version is released, you can follow the official upgrade path to upgrade your charts. + +**The components are yours**. + +## Installation + + +{#snippet cli()} + +{/snippet} +{#snippet manual()} + + + + +Install `layerchart`: + + + + + + + +Add the following colors to your CSS file + + + +```css +:root { + --chart-1: oklch(0.646 0.222 41.116); + --chart-2: oklch(0.6 0.118 184.704); + --chart-3: oklch(0.398 0.07 227.392); + --chart-4: oklch(0.828 0.189 84.429); + --chart-5: oklch(0.769 0.188 70.08); +} + +.dark { + --chart-1: oklch(0.488 0.243 264.376); + --chart-2: oklch(0.696 0.17 162.48); + --chart-3: oklch(0.769 0.188 70.08); + --chart-4: oklch(0.627 0.265 303.9); + --chart-5: oklch(0.645 0.246 16.439); +} + +@theme inline { + --color-chart-1: var(--chart-1); + --color-chart-2: var(--chart-2); + --color-chart-3: var(--chart-3); + --color-chart-4: var(--chart-4); + --color-chart-5: var(--chart-5); +} +``` + + + +Copy and paste the component source files linked at the top of this page into your project. + + + + +{/snippet} + + +## Your First Chart + +Let's build your first chart. We'll build a bar chart with an axis, grid, tooltip, and legend. + + + +### Start by defining your data + +The following data represents the number of desktop and mobile users for each month. + + + +**Note:** Your data can be in any shape. You are not limited to the shape of the data below. Use the `dataKey` prop to map your data to the chart. + + + +```svelte title="lib/components/example-chart.svelte" showLineNumbers + +``` + +### Define your chart config + +The chart config holds configuration for the chart. This is where you place human-readable strings, such as labels, icons, and color tokens for theming. + +```svelte title="lib/components/example-chart.svelte" showLineNumbers + +``` + +### Build your chart + +You can now build your chart using LayerChart components. We're using the `BarChart` component in this example, which is one of LayerChart's "Simplified Charts". + +These components handle a lot of the common chart scaffolding for you, while allowing you to customize them to your liking. + + + +
+ +
+ + + +
+ +
+ +
+ +We now have a group-stacked bar chart with an x axis and a grid. + +### Adjusting the Axis Ticks + +Our bar chart is currently displaying the full month name for each tick on the x axis. Let's shorten it to just the first three letters. + + + +### Add a custom formatter to the x axis + +The `props` prop is how you can pass custom props to the various components that make up the chart. Here we're passing a custom formatter to the x axis. + +```svelte showLineNumbers {21-25} + + d.slice(0, 3), + }, + }} + /> + +``` + + + +
+ +
+ +
+ +### Add Tooltip + +So far we've only used the `BarChart` component from LayerChart. They look great out of the box thanks to some customizations in the `chart` component. + +To add a tooltip, we'll use the custom `Chart.Tooltip` component from `chart`. + + + +### Add the `Chart.Tooltip` component to the chart + +We'll replace the `tooltip={false}` prop with the `tooltip` snippet where we'll place the `Chart.Tooltip` component. + +```svelte showLineNumbers {26-28} + + d.slice(0, 3), + }, + }} + > + {#snippet tooltip()} + + {/snippet} + + +``` + + + +
+ +
+ +
+ +### Add Legend + + + +### Set the `legend` prop to `true` + +The `legend` prop is used to show a legend for the chart. We are working with LayerChart to add a payload similar to the tooltip so we can more easily create a custom legend. + +```svelte showLineNumbers {8} + + d.slice(0, 3), + }, + }} + > + {#snippet tooltip()} + + {/snippet} + + +``` + + + +
+ +
+ +
+ +Done. You've built your first chart! What's next? + +- [Themes and Colors](/docs/components/chart#theming) +- [Tooltip](/docs/components/chart#tooltip) + +## Chart Config + +The chart config is where you define the labels, icons and colors for a chart. + +It is intentionally decoupled from chart data. + +This allows you to share config and color tokens between charts. It can also works independently for cases where your data or color tokens live remotely or in a different format. + +```svelte + +``` + +## Theming + +Charts has built-in support for theming. You can use css variables (recommended) or color values in any color format, such as hex, hsl, or oklch. + +### CSS Variables + + + +### Define your colors in your css file + +```css {5-6,13-14} title="src/app.css" showLineNumbers +:root { + --background: oklch(1 0 0); + --foreground: oklch(0.145 0 0); + /* ... */ + --chart-1: oklch(0.646 0.222 41.116); + --chart-2: oklch(0.6 0.118 184.704); +} + +.dark { + --background: oklch(0.145 0 0); + --foreground: oklch(0.985 0 0); + /* ... */ + --chart-1: oklch(0.488 0.243 264.376); + --chart-2: oklch(0.696 0.17 162.48); +} +``` + +### Add the color to your `chartConfig` + +```svelte {5,9} showLineNumbers + +``` + + + +### hex, hsl or oklch + +You can also define your colors directly in the chart config. Use the color format you prefer. + +```svelte showLineNumbers + +``` + +### Using Colors + +To use the theme colors in your chart, reference the colors using the format `var(--color-KEY)`. + +#### Components + +```svelte + +``` + +#### Chart Data + +```ts showLineNumbers +const chartData = [ + { browser: "chrome", visitors: 275, color: "var(--color-chrome)" }, + { browser: "safari", visitors: 200, color: "var(--color-safari)" }, +]; +``` + +#### Tailwind + +```svelte +
\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/default/tabs.json b/sites/docs/static/registry/styles/default/tabs.json deleted file mode 100644 index 038c492e6f..0000000000 --- a/sites/docs/static/registry/styles/default/tabs.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "tabs", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Tabs as TabsPrimitive } from \"bits-ui\";\nimport Content from \"./tabs-content.svelte\";\nimport List from \"./tabs-list.svelte\";\nimport Trigger from \"./tabs-trigger.svelte\";\n\nconst Root = TabsPrimitive.Root;\n\nexport {\n\tRoot,\n\tContent,\n\tList,\n\tTrigger,\n\t//\n\tRoot as Tabs,\n\tContent as TabsContent,\n\tList as TabsList,\n\tTrigger as TabsTrigger,\n};\n" - }, - { - "name": "tabs-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "tabs-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "tabs-trigger.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/default/textarea.json b/sites/docs/static/registry/styles/default/textarea.json deleted file mode 100644 index 2353a0960d..0000000000 --- a/sites/docs/static/registry/styles/default/textarea.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "textarea", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./textarea.svelte\";\n\ntype FormTextareaEvent = T & {\n\tcurrentTarget: EventTarget & HTMLTextAreaElement;\n};\n\ntype TextareaEvents = {\n\tblur: FormTextareaEvent;\n\tchange: FormTextareaEvent;\n\tclick: FormTextareaEvent;\n\tfocus: FormTextareaEvent;\n\tkeydown: FormTextareaEvent;\n\tkeypress: FormTextareaEvent;\n\tkeyup: FormTextareaEvent;\n\tmouseover: FormTextareaEvent;\n\tmouseenter: FormTextareaEvent;\n\tmouseleave: FormTextareaEvent;\n\tpaste: FormTextareaEvent;\n\tinput: FormTextareaEvent;\n};\n\nexport {\n\tRoot,\n\t//\n\tRoot as Textarea,\n\ttype TextareaEvents,\n\ttype FormTextareaEvent,\n};\n" - }, - { - "name": "textarea.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/default/toggle-group.json b/sites/docs/static/registry/styles/default/toggle-group.json deleted file mode 100644 index 4f2d5d9b32..0000000000 --- a/sites/docs/static/registry/styles/default/toggle-group.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "toggle-group", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "toggle" - ], - "files": [ - { - "name": "index.ts", - "content": "import type { VariantProps } from \"tailwind-variants\";\nimport { getContext, setContext } from \"svelte\";\nimport Root from \"./toggle-group.svelte\";\nimport Item from \"./toggle-group-item.svelte\";\nimport type { toggleVariants } from \"$lib/registry/default/ui/toggle/index.js\";\n\nexport type ToggleVariants = VariantProps;\n\nexport function setToggleGroupCtx(props: ToggleVariants) {\n\tsetContext(\"toggleGroup\", props);\n}\n\nexport function getToggleGroupCtx() {\n\treturn getContext(\"toggleGroup\");\n}\n\nexport {\n\tRoot,\n\tItem,\n\t//\n\tRoot as ToggleGroup,\n\tItem as ToggleGroupItem,\n};\n" - }, - { - "name": "toggle-group-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "toggle-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/default/toggle.json b/sites/docs/static/registry/styles/default/toggle.json deleted file mode 100644 index 32b5245585..0000000000 --- a/sites/docs/static/registry/styles/default/toggle.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "toggle", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { type VariantProps, tv } from \"tailwind-variants\";\nimport Root from \"./toggle.svelte\";\n\nexport const toggleVariants = tv({\n\tbase: \"ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-transparent\",\n\t\t\toutline:\n\t\t\t\t\"border-input hover:bg-accent hover:text-accent-foreground border bg-transparent\",\n\t\t},\n\t\tsize: {\n\t\t\tdefault: \"h-10 px-3\",\n\t\t\tsm: \"h-9 px-2.5\",\n\t\t\tlg: \"h-11 px-5\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t\tsize: \"default\",\n\t},\n});\n\nexport type Variant = VariantProps[\"variant\"];\nexport type Size = VariantProps[\"size\"];\n\nexport {\n\tRoot,\n\t//\n\tRoot as Toggle,\n};\n" - }, - { - "name": "toggle.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/default/tooltip.json b/sites/docs/static/registry/styles/default/tooltip.json deleted file mode 100644 index cdbdc57282..0000000000 --- a/sites/docs/static/registry/styles/default/tooltip.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "tooltip", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Tooltip as TooltipPrimitive } from \"bits-ui\";\nimport Content from \"./tooltip-content.svelte\";\n\nconst Root = TooltipPrimitive.Root;\nconst Trigger = TooltipPrimitive.Trigger;\n\nexport {\n\tRoot,\n\tTrigger,\n\tContent,\n\t//\n\tRoot as Tooltip,\n\tContent as TooltipContent,\n\tTrigger as TooltipTrigger,\n};\n" - }, - { - "name": "tooltip-content.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/index.json b/sites/docs/static/registry/styles/index.json deleted file mode 100644 index 45caf8256e..0000000000 --- a/sites/docs/static/registry/styles/index.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "name": "default", - "label": "Default" - }, - { - "name": "new-york", - "label": "New York" - } -] \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/accordion.json b/sites/docs/static/registry/styles/new-york-js/accordion.json deleted file mode 100644 index f963a67c59..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/accordion.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "accordion", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "accordion-content.svelte", - "content": "\n\n\n\t
\n\t\t\n\t
\n\n" - }, - { - "name": "accordion-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "accordion-trigger.svelte", - "content": "\n\n\n\tsvg]:rotate-180\",\n\t\t\tclassName\n\t\t)}\n\t\t{...$$restProps}\n\t\ton:click\n\t>\n\t\t\n\t\t\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { Accordion as AccordionPrimitive } from \"bits-ui\";\nimport Content from \"./accordion-content.svelte\";\nimport Item from \"./accordion-item.svelte\";\nimport Trigger from \"./accordion-trigger.svelte\";\nconst Root = AccordionPrimitive.Root;\nexport {\n\tRoot,\n\tContent,\n\tItem,\n\tTrigger,\n\t//\n\tRoot as Accordion,\n\tContent as AccordionContent,\n\tItem as AccordionItem,\n\tTrigger as AccordionTrigger,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/alert-dialog.json b/sites/docs/static/registry/styles/new-york-js/alert-dialog.json deleted file mode 100644 index fb3eb3f465..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/alert-dialog.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "alert-dialog", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "alert-dialog-action.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-cancel.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t\n\t\n\n" - }, - { - "name": "alert-dialog-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-footer.svelte", - "content": "\n\n\n\t\n
\n" - }, - { - "name": "alert-dialog-header.svelte", - "content": "\n\n
\n\t\n
\n" - }, - { - "name": "alert-dialog-overlay.svelte", - "content": "\n\n\n" - }, - { - "name": "alert-dialog-portal.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\nimport Title from \"./alert-dialog-title.svelte\";\nimport Action from \"./alert-dialog-action.svelte\";\nimport Cancel from \"./alert-dialog-cancel.svelte\";\nimport Portal from \"./alert-dialog-portal.svelte\";\nimport Footer from \"./alert-dialog-footer.svelte\";\nimport Header from \"./alert-dialog-header.svelte\";\nimport Overlay from \"./alert-dialog-overlay.svelte\";\nimport Content from \"./alert-dialog-content.svelte\";\nimport Description from \"./alert-dialog-description.svelte\";\nconst Root = AlertDialogPrimitive.Root;\nconst Trigger = AlertDialogPrimitive.Trigger;\nexport {\n\tRoot,\n\tTitle,\n\tAction,\n\tCancel,\n\tPortal,\n\tFooter,\n\tHeader,\n\tTrigger,\n\tOverlay,\n\tContent,\n\tDescription,\n\t//\n\tRoot as AlertDialog,\n\tTitle as AlertDialogTitle,\n\tAction as AlertDialogAction,\n\tCancel as AlertDialogCancel,\n\tPortal as AlertDialogPortal,\n\tFooter as AlertDialogFooter,\n\tHeader as AlertDialogHeader,\n\tTrigger as AlertDialogTrigger,\n\tOverlay as AlertDialogOverlay,\n\tContent as AlertDialogContent,\n\tDescription as AlertDialogDescription,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/alert.json b/sites/docs/static/registry/styles/new-york-js/alert.json deleted file mode 100644 index f96ec80bd3..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/alert.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "alert", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "alert-description.svelte", - "content": "\n\n
\n\t\n
\n" - }, - { - "name": "alert-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert.svelte", - "content": "\n\n
\n\t\n
\n" - }, - { - "name": "index.js", - "content": "import { tv } from \"tailwind-variants\";\nimport Root from \"./alert.svelte\";\nimport Description from \"./alert-description.svelte\";\nimport Title from \"./alert-title.svelte\";\nexport const alertVariants = tv({\n\tbase: \"[&>svg]:text-foreground relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-background text-foreground\",\n\t\t\tdestructive:\n\t\t\t\t\"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t},\n});\nexport {\n\tRoot,\n\tDescription,\n\tTitle,\n\t//\n\tRoot as Alert,\n\tDescription as AlertDescription,\n\tTitle as AlertTitle,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/aspect-ratio.json b/sites/docs/static/registry/styles/new-york-js/aspect-ratio.json deleted file mode 100644 index ef44902a32..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/aspect-ratio.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "aspect-ratio", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "aspect-ratio.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import Root from \"./aspect-ratio.svelte\";\nexport { Root, Root as AspectRatio };\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/avatar.json b/sites/docs/static/registry/styles/new-york-js/avatar.json deleted file mode 100644 index 5abe7444e4..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/avatar.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "avatar", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "avatar-fallback.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "avatar-image.svelte", - "content": "\n\n\n" - }, - { - "name": "avatar.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import Root from \"./avatar.svelte\";\nimport Image from \"./avatar-image.svelte\";\nimport Fallback from \"./avatar-fallback.svelte\";\nexport {\n\tRoot,\n\tImage,\n\tFallback,\n\t//\n\tRoot as Avatar,\n\tImage as AvatarImage,\n\tFallback as AvatarFallback,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/badge.json b/sites/docs/static/registry/styles/new-york-js/badge.json deleted file mode 100644 index 877ef709ab..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/badge.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "badge", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "badge.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { tv } from \"tailwind-variants\";\nexport { default as Badge } from \"./badge.svelte\";\nexport const badgeVariants = tv({\n\tbase: \"focus:ring-ring inline-flex select-none items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault:\n\t\t\t\t\"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow\",\n\t\t\tsecondary:\n\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent\",\n\t\t\tdestructive:\n\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow\",\n\t\t\toutline: \"text-foreground\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t},\n});\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/breadcrumb.json b/sites/docs/static/registry/styles/new-york-js/breadcrumb.json deleted file mode 100644 index 0ed4b48d26..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/breadcrumb.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "breadcrumb", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "breadcrumb-ellipsis.svelte", - "content": "\n\n\n\t\n\tMore\n\n" - }, - { - "name": "breadcrumb-item.svelte", - "content": "\n\n
  • \n\t\n
  • \n" - }, - { - "name": "breadcrumb-link.svelte", - "content": "\n\n{#if asChild}\n\t\n{:else}\n\t\n\t\t\n\t\n{/if}\n" - }, - { - "name": "breadcrumb-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "breadcrumb-page.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "breadcrumb-separator.svelte", - "content": "\n\nsvg]:size-3.5\", className)}\n\tbind:this={el}\n\t{...$$restProps}\n>\n\t\n\t\t\n\t\n\n" - }, - { - "name": "breadcrumb.svelte", - "content": "\n\n\n" - }, - { - "name": "index.js", - "content": "import Root from \"./breadcrumb.svelte\";\nimport Ellipsis from \"./breadcrumb-ellipsis.svelte\";\nimport Item from \"./breadcrumb-item.svelte\";\nimport Separator from \"./breadcrumb-separator.svelte\";\nimport Link from \"./breadcrumb-link.svelte\";\nimport List from \"./breadcrumb-list.svelte\";\nimport Page from \"./breadcrumb-page.svelte\";\nexport {\n\tRoot,\n\tEllipsis,\n\tItem,\n\tSeparator,\n\tLink,\n\tList,\n\tPage,\n\t//\n\tRoot as Breadcrumb,\n\tEllipsis as BreadcrumbEllipsis,\n\tItem as BreadcrumbItem,\n\tSeparator as BreadcrumbSeparator,\n\tLink as BreadcrumbLink,\n\tList as BreadcrumbList,\n\tPage as BreadcrumbPage,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/button.json b/sites/docs/static/registry/styles/new-york-js/button.json deleted file mode 100644 index 26b89bacb7..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/button.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "button", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "button.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { tv } from \"tailwind-variants\";\nimport Root from \"./button.svelte\";\nconst buttonVariants = tv({\n\tbase: \"focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-primary text-primary-foreground hover:bg-primary/90 shadow\",\n\t\t\tdestructive:\n\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm\",\n\t\t\toutline:\n\t\t\t\t\"border-input bg-background hover:bg-accent hover:text-accent-foreground border shadow-sm\",\n\t\t\tsecondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm\",\n\t\t\tghost: \"hover:bg-accent hover:text-accent-foreground\",\n\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\n\t\t},\n\t\tsize: {\n\t\t\tdefault: \"h-9 px-4 py-2\",\n\t\t\tsm: \"h-8 rounded-md px-3 text-xs\",\n\t\t\tlg: \"h-10 rounded-md px-8\",\n\t\t\ticon: \"h-9 w-9\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t\tsize: \"default\",\n\t},\n});\nexport {\n\tRoot,\n\t//\n\tRoot as Button,\n\tbuttonVariants,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/calendar.json b/sites/docs/static/registry/styles/new-york-js/calendar.json deleted file mode 100644 index 453bb3bd78..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/calendar.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "calendar", - "dependencies": [ - "bits-ui", - "@internationalized/date" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "calendar-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-day.svelte", - "content": "\n\n\n\t\n\t\t{date.day}\n\t\n\n" - }, - { - "name": "calendar-grid-body.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-grid-head.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-grid-row.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-grid.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-head-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-header.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-heading.svelte", - "content": "\n\n\n\t\n\t\t{headingValue}\n\t\n\n" - }, - { - "name": "calendar-months.svelte", - "content": "\n\n\n\t\n
    \n" - }, - { - "name": "calendar-next-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "calendar-prev-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "calendar.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t{#each months as month}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{#each weekdays as weekday}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{weekday.slice(0, 2)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{#each month.weeks as weekDates}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{#each weekDates as date}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\n\t\t\t\t\t{/each}\n\t\t\t\t\n\t\t\t\n\t\t{/each}\n\t\n\n" - }, - { - "name": "index.js", - "content": "import Root from \"./calendar.svelte\";\nimport Cell from \"./calendar-cell.svelte\";\nimport Day from \"./calendar-day.svelte\";\nimport Grid from \"./calendar-grid.svelte\";\nimport Header from \"./calendar-header.svelte\";\nimport Months from \"./calendar-months.svelte\";\nimport GridRow from \"./calendar-grid-row.svelte\";\nimport Heading from \"./calendar-heading.svelte\";\nimport GridBody from \"./calendar-grid-body.svelte\";\nimport GridHead from \"./calendar-grid-head.svelte\";\nimport HeadCell from \"./calendar-head-cell.svelte\";\nimport NextButton from \"./calendar-next-button.svelte\";\nimport PrevButton from \"./calendar-prev-button.svelte\";\nexport {\n\tDay,\n\tCell,\n\tGrid,\n\tHeader,\n\tMonths,\n\tGridRow,\n\tHeading,\n\tGridBody,\n\tGridHead,\n\tHeadCell,\n\tNextButton,\n\tPrevButton,\n\t//\n\tRoot as Calendar,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/card.json b/sites/docs/static/registry/styles/new-york-js/card.json deleted file mode 100644 index a394c2e5d8..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/card.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "card", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "card-content.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "card-description.svelte", - "content": "\n\n

    \n\t\n

    \n" - }, - { - "name": "card-footer.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "card-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "card-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "card.svelte", - "content": "\n\n\n\n\t\n
    \n" - }, - { - "name": "index.js", - "content": "import Root from \"./card.svelte\";\nimport Content from \"./card-content.svelte\";\nimport Description from \"./card-description.svelte\";\nimport Footer from \"./card-footer.svelte\";\nimport Header from \"./card-header.svelte\";\nimport Title from \"./card-title.svelte\";\nexport {\n\tRoot,\n\tContent,\n\tDescription,\n\tFooter,\n\tHeader,\n\tTitle,\n\t//\n\tRoot as Card,\n\tContent as CardContent,\n\tDescription as CardDescription,\n\tFooter as CardFooter,\n\tHeader as CardHeader,\n\tTitle as CardTitle,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/carousel.json b/sites/docs/static/registry/styles/new-york-js/carousel.json deleted file mode 100644 index affef288d2..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/carousel.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "carousel", - "dependencies": [ - "embla-carousel-svelte" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "carousel-content.svelte", - "content": "\n\n\n\t\n\t\t\n\t
    \n
    \n" - }, - { - "name": "carousel-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "carousel-next.svelte", - "content": "\n\n\n\t\n\tNext slide\n\n" - }, - { - "name": "carousel-previous.svelte", - "content": "\n\n\n\t\n\tPrevious slide\n\n" - }, - { - "name": "carousel.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context.js", - "content": "import { getContext, hasContext, setContext } from \"svelte\";\nconst EMBLA_CAROUSEL_CONTEXT = Symbol(\"EMBLA_CAROUSEL_CONTEXT\");\nexport function setEmblaContext(config) {\n\tsetContext(EMBLA_CAROUSEL_CONTEXT, config);\n\treturn config;\n}\nexport function getEmblaContext(name = \"This component\") {\n\tif (!hasContext(EMBLA_CAROUSEL_CONTEXT)) {\n\t\tthrow new Error(`${name} must be used within a component`);\n\t}\n\treturn getContext(EMBLA_CAROUSEL_CONTEXT);\n}\n" - }, - { - "name": "index.js", - "content": "export { default as Root } from \"./carousel.svelte\";\nexport { default as Content } from \"./carousel-content.svelte\";\nexport { default as Item } from \"./carousel-item.svelte\";\nexport { default as Previous } from \"./carousel-previous.svelte\";\nexport { default as Next } from \"./carousel-next.svelte\";\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/checkbox.json b/sites/docs/static/registry/styles/new-york-js/checkbox.json deleted file mode 100644 index 3034e0be54..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/checkbox.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "checkbox", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "checkbox.svelte", - "content": "\n\n\n\t\n\t\t{#if isIndeterminate}\n\t\t\t\n\t\t{:else}\n\t\t\t\n\t\t{/if}\n\t\n\n" - }, - { - "name": "index.js", - "content": "import Root from \"./checkbox.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Checkbox,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/collapsible.json b/sites/docs/static/registry/styles/new-york-js/collapsible.json deleted file mode 100644 index fab6f5d2e3..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/collapsible.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "collapsible", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "collapsible-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { Collapsible as CollapsiblePrimitive } from \"bits-ui\";\nimport Content from \"./collapsible-content.svelte\";\nconst Root = CollapsiblePrimitive.Root;\nconst Trigger = CollapsiblePrimitive.Trigger;\nexport {\n\tRoot,\n\tContent,\n\tTrigger,\n\t//\n\tRoot as Collapsible,\n\tContent as CollapsibleContent,\n\tTrigger as CollapsibleTrigger,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/command.json b/sites/docs/static/registry/styles/new-york-js/command.json deleted file mode 100644 index 2209bd11d1..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/command.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "command", - "dependencies": [ - "cmdk-sv", - "bits-ui" - ], - "registryDependencies": [ - "dialog" - ], - "files": [ - { - "name": "command-dialog.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t
    \n\t\n\n" - }, - { - "name": "command-empty.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-group.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-input.svelte", - "content": "\n\n
    \n\t\n\t\n
    \n" - }, - { - "name": "command-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "command-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { Command as CommandPrimitive } from \"cmdk-sv\";\nimport Root from \"./command.svelte\";\nimport Dialog from \"./command-dialog.svelte\";\nimport Empty from \"./command-empty.svelte\";\nimport Group from \"./command-group.svelte\";\nimport Item from \"./command-item.svelte\";\nimport Input from \"./command-input.svelte\";\nimport List from \"./command-list.svelte\";\nimport Separator from \"./command-separator.svelte\";\nimport Shortcut from \"./command-shortcut.svelte\";\nconst Loading = CommandPrimitive.Loading;\nexport {\n\tRoot,\n\tDialog,\n\tEmpty,\n\tGroup,\n\tItem,\n\tInput,\n\tList,\n\tSeparator,\n\tShortcut,\n\tLoading,\n\t//\n\tRoot as Command,\n\tDialog as CommandDialog,\n\tEmpty as CommandEmpty,\n\tGroup as CommandGroup,\n\tItem as CommandItem,\n\tInput as CommandInput,\n\tList as CommandList,\n\tSeparator as CommandSeparator,\n\tShortcut as CommandShortcut,\n\tLoading as CommandLoading,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/context-menu.json b/sites/docs/static/registry/styles/new-york-js/context-menu.json deleted file mode 100644 index 52ce3b8b0b..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/context-menu.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "context-menu", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "context-menu-checkbox-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "context-menu-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-radio-group.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-radio-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "context-menu-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "context-menu-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-sub-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-sub-trigger.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { ContextMenu as ContextMenuPrimitive } from \"bits-ui\";\nimport Item from \"./context-menu-item.svelte\";\nimport Label from \"./context-menu-label.svelte\";\nimport Content from \"./context-menu-content.svelte\";\nimport Shortcut from \"./context-menu-shortcut.svelte\";\nimport RadioItem from \"./context-menu-radio-item.svelte\";\nimport Separator from \"./context-menu-separator.svelte\";\nimport RadioGroup from \"./context-menu-radio-group.svelte\";\nimport SubContent from \"./context-menu-sub-content.svelte\";\nimport SubTrigger from \"./context-menu-sub-trigger.svelte\";\nimport CheckboxItem from \"./context-menu-checkbox-item.svelte\";\nconst Sub = ContextMenuPrimitive.Sub;\nconst Root = ContextMenuPrimitive.Root;\nconst Trigger = ContextMenuPrimitive.Trigger;\nconst Group = ContextMenuPrimitive.Group;\nexport {\n\tSub,\n\tRoot,\n\tItem,\n\tLabel,\n\tGroup,\n\tTrigger,\n\tContent,\n\tShortcut,\n\tSeparator,\n\tRadioItem,\n\tSubContent,\n\tSubTrigger,\n\tRadioGroup,\n\tCheckboxItem,\n\t//\n\tRoot as ContextMenu,\n\tSub as ContextMenuSub,\n\tItem as ContextMenuItem,\n\tLabel as ContextMenuLabel,\n\tGroup as ContextMenuGroup,\n\tContent as ContextMenuContent,\n\tTrigger as ContextMenuTrigger,\n\tShortcut as ContextMenuShortcut,\n\tRadioItem as ContextMenuRadioItem,\n\tSeparator as ContextMenuSeparator,\n\tRadioGroup as ContextMenuRadioGroup,\n\tSubContent as ContextMenuSubContent,\n\tSubTrigger as ContextMenuSubTrigger,\n\tCheckboxItem as ContextMenuCheckboxItem,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/dialog.json b/sites/docs/static/registry/styles/new-york-js/dialog.json deleted file mode 100644 index a343990200..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/dialog.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "dialog", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "dialog-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\tClose\n\t\t\n\t\n\n" - }, - { - "name": "dialog-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dialog-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dialog-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "dialog-overlay.svelte", - "content": "\n\n\n" - }, - { - "name": "dialog-portal.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dialog-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { Dialog as DialogPrimitive } from \"bits-ui\";\nimport Title from \"./dialog-title.svelte\";\nimport Portal from \"./dialog-portal.svelte\";\nimport Footer from \"./dialog-footer.svelte\";\nimport Header from \"./dialog-header.svelte\";\nimport Overlay from \"./dialog-overlay.svelte\";\nimport Content from \"./dialog-content.svelte\";\nimport Description from \"./dialog-description.svelte\";\nconst Root = DialogPrimitive.Root;\nconst Trigger = DialogPrimitive.Trigger;\nconst Close = DialogPrimitive.Close;\nexport {\n\tRoot,\n\tTitle,\n\tPortal,\n\tFooter,\n\tHeader,\n\tTrigger,\n\tOverlay,\n\tContent,\n\tDescription,\n\tClose,\n\t//\n\tRoot as Dialog,\n\tTitle as DialogTitle,\n\tPortal as DialogPortal,\n\tFooter as DialogFooter,\n\tHeader as DialogHeader,\n\tTrigger as DialogTrigger,\n\tOverlay as DialogOverlay,\n\tContent as DialogContent,\n\tDescription as DialogDescription,\n\tClose as DialogClose,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/drawer.json b/sites/docs/static/registry/styles/new-york-js/drawer.json deleted file mode 100644 index 9a36fcb92d..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/drawer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "drawer", - "dependencies": [ - "vaul-svelte" - ], - "registryDependencies": [], - "files": [ - { - "name": "drawer-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t
    \n\t\t\n\t\n
    \n" - }, - { - "name": "drawer-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-footer.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "drawer-header.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-nested.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-overlay.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { Drawer as DrawerPrimitive } from \"vaul-svelte\";\nimport Root from \"./drawer.svelte\";\nimport Content from \"./drawer-content.svelte\";\nimport Description from \"./drawer-description.svelte\";\nimport Overlay from \"./drawer-overlay.svelte\";\nimport Footer from \"./drawer-footer.svelte\";\nimport Header from \"./drawer-header.svelte\";\nimport Title from \"./drawer-title.svelte\";\nimport NestedRoot from \"./drawer-nested.svelte\";\nconst Trigger = DrawerPrimitive.Trigger;\nconst Portal = DrawerPrimitive.Portal;\nconst Close = DrawerPrimitive.Close;\nexport {\n\tRoot,\n\tNestedRoot,\n\tContent,\n\tDescription,\n\tOverlay,\n\tFooter,\n\tHeader,\n\tTitle,\n\tTrigger,\n\tPortal,\n\tClose,\n\t//\n\tRoot as Drawer,\n\tNestedRoot as DrawerNestedRoot,\n\tContent as DrawerContent,\n\tDescription as DrawerDescription,\n\tOverlay as DrawerOverlay,\n\tFooter as DrawerFooter,\n\tHeader as DrawerHeader,\n\tTitle as DrawerTitle,\n\tTrigger as DrawerTrigger,\n\tPortal as DrawerPortal,\n\tClose as DrawerClose,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/dropdown-menu.json b/sites/docs/static/registry/styles/new-york-js/dropdown-menu.json deleted file mode 100644 index c708624b8b..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/dropdown-menu.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "dropdown-menu", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "dropdown-menu-checkbox-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "dropdown-menu-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-radio-group.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-radio-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "dropdown-menu-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "dropdown-menu-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-sub-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-sub-trigger.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\nimport Item from \"./dropdown-menu-item.svelte\";\nimport Label from \"./dropdown-menu-label.svelte\";\nimport Content from \"./dropdown-menu-content.svelte\";\nimport Shortcut from \"./dropdown-menu-shortcut.svelte\";\nimport RadioItem from \"./dropdown-menu-radio-item.svelte\";\nimport Separator from \"./dropdown-menu-separator.svelte\";\nimport RadioGroup from \"./dropdown-menu-radio-group.svelte\";\nimport SubContent from \"./dropdown-menu-sub-content.svelte\";\nimport SubTrigger from \"./dropdown-menu-sub-trigger.svelte\";\nimport CheckboxItem from \"./dropdown-menu-checkbox-item.svelte\";\nconst Sub = DropdownMenuPrimitive.Sub;\nconst Root = DropdownMenuPrimitive.Root;\nconst Trigger = DropdownMenuPrimitive.Trigger;\nconst Group = DropdownMenuPrimitive.Group;\nexport {\n\tSub,\n\tRoot,\n\tItem,\n\tLabel,\n\tGroup,\n\tTrigger,\n\tContent,\n\tShortcut,\n\tSeparator,\n\tRadioItem,\n\tSubContent,\n\tSubTrigger,\n\tRadioGroup,\n\tCheckboxItem,\n\t//\n\tRoot as DropdownMenu,\n\tSub as DropdownMenuSub,\n\tItem as DropdownMenuItem,\n\tLabel as DropdownMenuLabel,\n\tGroup as DropdownMenuGroup,\n\tContent as DropdownMenuContent,\n\tTrigger as DropdownMenuTrigger,\n\tShortcut as DropdownMenuShortcut,\n\tRadioItem as DropdownMenuRadioItem,\n\tSeparator as DropdownMenuSeparator,\n\tRadioGroup as DropdownMenuRadioGroup,\n\tSubContent as DropdownMenuSubContent,\n\tSubTrigger as DropdownMenuSubTrigger,\n\tCheckboxItem as DropdownMenuCheckboxItem,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/form.json b/sites/docs/static/registry/styles/new-york-js/form.json deleted file mode 100644 index 11532746be..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/form.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "form", - "dependencies": [ - "formsnap@1.0.1", - "zod", - "sveltekit-superforms" - ], - "registryDependencies": [ - "button", - "label" - ], - "files": [ - { - "name": "form-button.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "form-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "form-element-field.svelte", - "content": "\n\n\n\n\n\t
    \n\t\t\n\t
    \n
    \n" - }, - { - "name": "form-field-errors.svelte", - "content": "\n\n\n\t\n\t\t{#each errors as error}\n\t\t\t
    {error}
    \n\t\t{/each}\n\t
    \n\n" - }, - { - "name": "form-field.svelte", - "content": "\n\n\n\n\n\t
    \n\t\t\n\t
    \n
    \n" - }, - { - "name": "form-fieldset.svelte", - "content": "\n\n\n\n\n\t\n\n" - }, - { - "name": "form-label.svelte", - "content": "\n\n\n" - }, - { - "name": "form-legend.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import * as FormPrimitive from \"formsnap\";\nimport Description from \"./form-description.svelte\";\nimport Label from \"./form-label.svelte\";\nimport FieldErrors from \"./form-field-errors.svelte\";\nimport Field from \"./form-field.svelte\";\nimport Button from \"./form-button.svelte\";\nimport Fieldset from \"./form-fieldset.svelte\";\nimport Legend from \"./form-legend.svelte\";\nimport ElementField from \"./form-element-field.svelte\";\nconst Control = FormPrimitive.Control;\nexport {\n\tField,\n\tControl,\n\tLabel,\n\tFieldErrors,\n\tDescription,\n\tFieldset,\n\tLegend,\n\tElementField,\n\tButton,\n\t//\n\tField as FormField,\n\tControl as FormControl,\n\tDescription as FormDescription,\n\tLabel as FormLabel,\n\tFieldErrors as FormFieldErrors,\n\tFieldset as FormFieldset,\n\tLegend as FormLegend,\n\tElementField as FormElementField,\n\tButton as FormButton,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/hover-card.json b/sites/docs/static/registry/styles/new-york-js/hover-card.json deleted file mode 100644 index 684bf55f1b..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/hover-card.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "hover-card", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "hover-card-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.js", - "content": "import { LinkPreview as HoverCardPrimitive } from \"bits-ui\";\nimport Content from \"./hover-card-content.svelte\";\nconst Root = HoverCardPrimitive.Root;\nconst Trigger = HoverCardPrimitive.Trigger;\nexport {\n\tRoot,\n\tContent,\n\tTrigger,\n\tRoot as HoverCard,\n\tContent as HoverCardContent,\n\tTrigger as HoverCardTrigger,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/input.json b/sites/docs/static/registry/styles/new-york-js/input.json deleted file mode 100644 index 400a170f95..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/input.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "input", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./input.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Input,\n};\n" - }, - { - "name": "input.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/label.json b/sites/docs/static/registry/styles/new-york-js/label.json deleted file mode 100644 index 58e053d2db..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/label.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "label", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./label.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Label,\n};\n" - }, - { - "name": "label.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/menubar.json b/sites/docs/static/registry/styles/new-york-js/menubar.json deleted file mode 100644 index 9648a7f2c3..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/menubar.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "menubar", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Menubar as MenubarPrimitive } from \"bits-ui\";\nimport Root from \"./menubar.svelte\";\nimport CheckboxItem from \"./menubar-checkbox-item.svelte\";\nimport Content from \"./menubar-content.svelte\";\nimport Item from \"./menubar-item.svelte\";\nimport Label from \"./menubar-label.svelte\";\nimport RadioItem from \"./menubar-radio-item.svelte\";\nimport Separator from \"./menubar-separator.svelte\";\nimport Shortcut from \"./menubar-shortcut.svelte\";\nimport SubContent from \"./menubar-sub-content.svelte\";\nimport SubTrigger from \"./menubar-sub-trigger.svelte\";\nimport Trigger from \"./menubar-trigger.svelte\";\nconst Menu = MenubarPrimitive.Menu;\nconst Group = MenubarPrimitive.Group;\nconst Sub = MenubarPrimitive.Sub;\nconst RadioGroup = MenubarPrimitive.RadioGroup;\nexport {\n\tRoot,\n\tCheckboxItem,\n\tContent,\n\tItem,\n\tLabel,\n\tRadioItem,\n\tSeparator,\n\tShortcut,\n\tSubContent,\n\tSubTrigger,\n\tTrigger,\n\tMenu,\n\tGroup,\n\tSub,\n\tRadioGroup,\n\t//\n\tRoot as Menubar,\n\tCheckboxItem as MenubarCheckboxItem,\n\tContent as MenubarContent,\n\tItem as MenubarItem,\n\tLabel as MenubarLabel,\n\tRadioItem as MenubarRadioItem,\n\tSeparator as MenubarSeparator,\n\tShortcut as MenubarShortcut,\n\tSubContent as MenubarSubContent,\n\tSubTrigger as MenubarSubTrigger,\n\tTrigger as MenubarTrigger,\n\tMenu as MenubarMenu,\n\tGroup as MenubarGroup,\n\tSub as MenubarSub,\n\tRadioGroup as MenubarRadioGroup,\n};\n" - }, - { - "name": "menubar-checkbox-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "menubar-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-radio-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "menubar-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "menubar-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-sub-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-sub-trigger.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "menubar-trigger.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/pagination.json b/sites/docs/static/registry/styles/new-york-js/pagination.json deleted file mode 100644 index 95577e2d02..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/pagination.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "pagination", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./pagination.svelte\";\nimport Content from \"./pagination-content.svelte\";\nimport Item from \"./pagination-item.svelte\";\nimport Link from \"./pagination-link.svelte\";\nimport PrevButton from \"./pagination-prev-button.svelte\";\nimport NextButton from \"./pagination-next-button.svelte\";\nimport Ellipsis from \"./pagination-ellipsis.svelte\";\nexport {\n\tRoot,\n\tContent,\n\tItem,\n\tLink,\n\tPrevButton,\n\tNextButton,\n\tEllipsis,\n\t//\n\tRoot as Pagination,\n\tContent as PaginationContent,\n\tItem as PaginationItem,\n\tLink as PaginationLink,\n\tPrevButton as PaginationPrevButton,\n\tNextButton as PaginationNextButton,\n\tEllipsis as PaginationEllipsis,\n};\n" - }, - { - "name": "pagination-content.svelte", - "content": "\n\n
      \n\t\n
    \n" - }, - { - "name": "pagination-ellipsis.svelte", - "content": "\n\n\n\t\n\tMore pages\n\n" - }, - { - "name": "pagination-item.svelte", - "content": "\n\n
  • \n\t\n
  • \n" - }, - { - "name": "pagination-link.svelte", - "content": "\n\n\n\t{page.value}\n\n" - }, - { - "name": "pagination-next-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\tNext\n\t\t\t\n\t\t\n\t\n\n" - }, - { - "name": "pagination-prev-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\tPrevious\n\t\t\n\t\n\n" - }, - { - "name": "pagination.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/popover.json b/sites/docs/static/registry/styles/new-york-js/popover.json deleted file mode 100644 index 1a006816cb..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/popover.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "popover", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Popover as PopoverPrimitive } from \"bits-ui\";\nimport Content from \"./popover-content.svelte\";\nconst Root = PopoverPrimitive.Root;\nconst Trigger = PopoverPrimitive.Trigger;\nconst Close = PopoverPrimitive.Close;\nexport {\n\tRoot,\n\tContent,\n\tTrigger,\n\tClose,\n\t//\n\tRoot as Popover,\n\tContent as PopoverContent,\n\tTrigger as PopoverTrigger,\n\tClose as PopoverClose,\n};\n" - }, - { - "name": "popover-content.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/progress.json b/sites/docs/static/registry/styles/new-york-js/progress.json deleted file mode 100644 index f64290b6fd..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/progress.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "progress", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./progress.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Progress,\n};\n" - }, - { - "name": "progress.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/radio-group.json b/sites/docs/static/registry/styles/new-york-js/radio-group.json deleted file mode 100644 index e696bb23ef..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/radio-group.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "radio-group", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { RadioGroup as RadioGroupPrimitive } from \"bits-ui\";\nimport Root from \"./radio-group.svelte\";\nimport Item from \"./radio-group-item.svelte\";\nconst Input = RadioGroupPrimitive.Input;\nexport {\n\tRoot,\n\tInput,\n\tItem,\n\t//\n\tRoot as RadioGroup,\n\tInput as RadioGroupInput,\n\tItem as RadioGroupItem,\n};\n" - }, - { - "name": "radio-group-item.svelte", - "content": "\n\n\n\t
    \n\t\t\n\t\t\t\n\t\t\n\t
    \n\n" - }, - { - "name": "radio-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/range-calendar.json b/sites/docs/static/registry/styles/new-york-js/range-calendar.json deleted file mode 100644 index df3d16a955..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/range-calendar.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "range-calendar", - "dependencies": [ - "bits-ui", - "@internationalized/date" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./range-calendar.svelte\";\nimport Cell from \"./range-calendar-cell.svelte\";\nimport Day from \"./range-calendar-day.svelte\";\nimport Grid from \"./range-calendar-grid.svelte\";\nimport Header from \"./range-calendar-header.svelte\";\nimport Months from \"./range-calendar-months.svelte\";\nimport GridRow from \"./range-calendar-grid-row.svelte\";\nimport Heading from \"./range-calendar-heading.svelte\";\nimport GridBody from \"./range-calendar-grid-body.svelte\";\nimport GridHead from \"./range-calendar-grid-head.svelte\";\nimport HeadCell from \"./range-calendar-head-cell.svelte\";\nimport NextButton from \"./range-calendar-next-button.svelte\";\nimport PrevButton from \"./range-calendar-prev-button.svelte\";\nexport {\n\tDay,\n\tCell,\n\tGrid,\n\tHeader,\n\tMonths,\n\tGridRow,\n\tHeading,\n\tGridBody,\n\tGridHead,\n\tHeadCell,\n\tNextButton,\n\tPrevButton,\n\t//\n\tRoot as RangeCalendar,\n};\n" - }, - { - "name": "range-calendar-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-day.svelte", - "content": "\n\n\n\t\n\t\t{date.day}\n\t\n\n" - }, - { - "name": "range-calendar-grid-body.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-grid-head.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-grid-row.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-grid.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-head-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-header.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-heading.svelte", - "content": "\n\n\n\t\n\t\t{headingValue}\n\t\n\n" - }, - { - "name": "range-calendar-months.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-next-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "range-calendar-prev-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "range-calendar.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t{#each months as month}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{#each weekdays as weekday}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{weekday.slice(0, 2)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{#each month.weeks as weekDates}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{#each weekDates as date}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\n\t\t\t\t\t{/each}\n\t\t\t\t\n\t\t\t\n\t\t{/each}\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/resizable.json b/sites/docs/static/registry/styles/new-york-js/resizable.json deleted file mode 100644 index d10672c8f7..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/resizable.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "resizable", - "dependencies": [ - "paneforge" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Pane } from \"paneforge\";\nimport Handle from \"./resizable-handle.svelte\";\nimport PaneGroup from \"./resizable-pane-group.svelte\";\nexport {\n\tPaneGroup,\n\tPane,\n\tHandle,\n\t//\n\tPaneGroup as ResizablePaneGroup,\n\tPane as ResizablePane,\n\tHandle as ResizableHandle,\n};\n" - }, - { - "name": "resizable-handle.svelte", - "content": "\n\ndiv]:rotate-90\",\n\t\tclassName\n\t)}\n>\n\t{#if withHandle}\n\t\t
    \n\t\t\t\n\t\t
    \n\t{/if}\n\n" - }, - { - "name": "resizable-pane-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/scroll-area.json b/sites/docs/static/registry/styles/new-york-js/scroll-area.json deleted file mode 100644 index a53c5f5cb9..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/scroll-area.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "scroll-area", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Scrollbar from \"./scroll-area-scrollbar.svelte\";\nimport Root from \"./scroll-area.svelte\";\nexport {\n\tRoot,\n\tScrollbar,\n\t//,\n\tRoot as ScrollArea,\n\tScrollbar as ScrollAreaScrollbar,\n};\n" - }, - { - "name": "scroll-area-scrollbar.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "scroll-area.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t{#if orientation === \"vertical\" || orientation === \"both\"}\n\t\t\n\t{/if}\n\t{#if orientation === \"horizontal\" || orientation === \"both\"}\n\t\t\n\t{/if}\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/select.json b/sites/docs/static/registry/styles/new-york-js/select.json deleted file mode 100644 index 3396bc92e0..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/select.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "select", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Select as SelectPrimitive } from \"bits-ui\";\nimport Label from \"./select-label.svelte\";\nimport Item from \"./select-item.svelte\";\nimport Content from \"./select-content.svelte\";\nimport Trigger from \"./select-trigger.svelte\";\nimport Separator from \"./select-separator.svelte\";\nconst Root = SelectPrimitive.Root;\nconst Group = SelectPrimitive.Group;\nconst Input = SelectPrimitive.Input;\nconst Value = SelectPrimitive.Value;\nexport {\n\tRoot,\n\tItem,\n\tGroup,\n\tInput,\n\tLabel,\n\tValue,\n\tContent,\n\tTrigger,\n\tSeparator,\n\t//\n\tRoot as Select,\n\tItem as SelectItem,\n\tGroup as SelectGroup,\n\tInput as SelectInput,\n\tLabel as SelectLabel,\n\tValue as SelectValue,\n\tContent as SelectContent,\n\tTrigger as SelectTrigger,\n\tSeparator as SelectSeparator,\n};\n" - }, - { - "name": "select-content.svelte", - "content": "\n\n\n\t
    \n\t\t\n\t
    \n\n" - }, - { - "name": "select-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\t\t{label || value}\n\t\n\n" - }, - { - "name": "select-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "select-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "select-trigger.svelte", - "content": "\n\nspan]:text-muted-foreground flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n>\n\t\n\t
    \n\t\t\n\t
    \n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/separator.json b/sites/docs/static/registry/styles/new-york-js/separator.json deleted file mode 100644 index d1d0b21d53..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/separator.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "separator", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./separator.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Separator,\n};\n" - }, - { - "name": "separator.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/sheet.json b/sites/docs/static/registry/styles/new-york-js/sheet.json deleted file mode 100644 index 9249f17fc8..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/sheet.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "sheet", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Dialog as SheetPrimitive } from \"bits-ui\";\nimport { tv } from \"tailwind-variants\";\nimport Portal from \"./sheet-portal.svelte\";\nimport Overlay from \"./sheet-overlay.svelte\";\nimport Content from \"./sheet-content.svelte\";\nimport Header from \"./sheet-header.svelte\";\nimport Footer from \"./sheet-footer.svelte\";\nimport Title from \"./sheet-title.svelte\";\nimport Description from \"./sheet-description.svelte\";\nconst Root = SheetPrimitive.Root;\nconst Close = SheetPrimitive.Close;\nconst Trigger = SheetPrimitive.Trigger;\nexport {\n\tRoot,\n\tClose,\n\tTrigger,\n\tPortal,\n\tOverlay,\n\tContent,\n\tHeader,\n\tFooter,\n\tTitle,\n\tDescription,\n\t//\n\tRoot as Sheet,\n\tClose as SheetClose,\n\tTrigger as SheetTrigger,\n\tPortal as SheetPortal,\n\tOverlay as SheetOverlay,\n\tContent as SheetContent,\n\tHeader as SheetHeader,\n\tFooter as SheetFooter,\n\tTitle as SheetTitle,\n\tDescription as SheetDescription,\n};\nexport const sheetVariants = tv({\n\tbase: \"bg-background fixed z-50 gap-4 p-6 shadow-lg\",\n\tvariants: {\n\t\tside: {\n\t\t\ttop: \"inset-x-0 top-0 border-b \",\n\t\t\tbottom: \"inset-x-0 bottom-0 border-t\",\n\t\t\tleft: \"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm\",\n\t\t\tright: \"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tside: \"right\",\n\t},\n});\nexport const sheetTransitions = {\n\ttop: {\n\t\tin: {\n\t\t\ty: \"-100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\ty: \"-100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n\tbottom: {\n\t\tin: {\n\t\t\ty: \"100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\ty: \"100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n\tleft: {\n\t\tin: {\n\t\t\tx: \"-100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\tx: \"-100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n\tright: {\n\t\tin: {\n\t\t\tx: \"100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\tx: \"100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n};\n" - }, - { - "name": "sheet-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\tClose\n\t\t\n\t\n\n" - }, - { - "name": "sheet-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "sheet-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "sheet-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "sheet-overlay.svelte", - "content": "\n\n\n" - }, - { - "name": "sheet-portal.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "sheet-title.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/skeleton.json b/sites/docs/static/registry/styles/new-york-js/skeleton.json deleted file mode 100644 index 5af54c9da5..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/skeleton.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "skeleton", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./skeleton.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Skeleton,\n};\n" - }, - { - "name": "skeleton.svelte", - "content": "\n\n
    \n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/slider.json b/sites/docs/static/registry/styles/new-york-js/slider.json deleted file mode 100644 index 6696e2b206..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/slider.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "slider", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./slider.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Slider,\n};\n" - }, - { - "name": "slider.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\t{#each thumbs as thumb}\n\t\t\n\t{/each}\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/sonner.json b/sites/docs/static/registry/styles/new-york-js/sonner.json deleted file mode 100644 index 20affc34e7..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/sonner.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "sonner", - "dependencies": [ - "svelte-sonner", - "mode-watcher" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "export { default as Toaster } from \"./sonner.svelte\";\n" - }, - { - "name": "sonner.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/switch.json b/sites/docs/static/registry/styles/new-york-js/switch.json deleted file mode 100644 index 85f95ce685..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/switch.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "switch", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./switch.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Switch,\n};\n" - }, - { - "name": "switch.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/table.json b/sites/docs/static/registry/styles/new-york-js/table.json deleted file mode 100644 index fd420883a3..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/table.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "table", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./table.svelte\";\nimport Body from \"./table-body.svelte\";\nimport Caption from \"./table-caption.svelte\";\nimport Cell from \"./table-cell.svelte\";\nimport Footer from \"./table-footer.svelte\";\nimport Head from \"./table-head.svelte\";\nimport Header from \"./table-header.svelte\";\nimport Row from \"./table-row.svelte\";\nexport {\n\tRoot,\n\tBody,\n\tCaption,\n\tCell,\n\tFooter,\n\tHead,\n\tHeader,\n\tRow,\n\t//\n\tRoot as Table,\n\tBody as TableBody,\n\tCaption as TableCaption,\n\tCell as TableCell,\n\tFooter as TableFooter,\n\tHead as TableHead,\n\tHeader as TableHeader,\n\tRow as TableRow,\n};\n" - }, - { - "name": "table-body.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table-caption.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table-cell.svelte", - "content": "\n\n[role=checkbox]]:translate-y-[2px]\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n>\n\t\n\n" - }, - { - "name": "table-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table-head.svelte", - "content": "\n\n[role=checkbox]]:translate-y-[2px]\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n>\n\t\n\n" - }, - { - "name": "table-header.svelte", - "content": "\n\n\n\n\t\n\n" - }, - { - "name": "table-row.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table.svelte", - "content": "\n\n
    \n\t\n\t\t\n\t
    \n
    \n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/tabs.json b/sites/docs/static/registry/styles/new-york-js/tabs.json deleted file mode 100644 index 28d14a5b5c..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/tabs.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "tabs", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Tabs as TabsPrimitive } from \"bits-ui\";\nimport Content from \"./tabs-content.svelte\";\nimport List from \"./tabs-list.svelte\";\nimport Trigger from \"./tabs-trigger.svelte\";\nconst Root = TabsPrimitive.Root;\nexport {\n\tRoot,\n\tContent,\n\tList,\n\tTrigger,\n\t//\n\tRoot as Tabs,\n\tContent as TabsContent,\n\tList as TabsList,\n\tTrigger as TabsTrigger,\n};\n" - }, - { - "name": "tabs-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "tabs-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "tabs-trigger.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/textarea.json b/sites/docs/static/registry/styles/new-york-js/textarea.json deleted file mode 100644 index 82f3b39d8d..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/textarea.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "textarea", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import Root from \"./textarea.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Textarea,\n};\n" - }, - { - "name": "textarea.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/toggle-group.json b/sites/docs/static/registry/styles/new-york-js/toggle-group.json deleted file mode 100644 index daa5393d0b..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/toggle-group.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "toggle-group", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "toggle" - ], - "files": [ - { - "name": "index.js", - "content": "import { getContext, setContext } from \"svelte\";\nimport Root from \"./toggle-group.svelte\";\nimport Item from \"./toggle-group-item.svelte\";\nexport function setToggleGroupCtx(props) {\n\tsetContext(\"toggleGroup\", props);\n}\nexport function getToggleGroupCtx() {\n\treturn getContext(\"toggleGroup\");\n}\nexport {\n\tRoot,\n\tItem,\n\t//\n\tRoot as ToggleGroup,\n\tItem as ToggleGroupItem,\n};\n" - }, - { - "name": "toggle-group-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "toggle-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/toggle.json b/sites/docs/static/registry/styles/new-york-js/toggle.json deleted file mode 100644 index 5d53b7666a..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/toggle.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "toggle", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { tv } from \"tailwind-variants\";\nimport Root from \"./toggle.svelte\";\nexport const toggleVariants = tv({\n\tbase: \"hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-transparent\",\n\t\t\toutline:\n\t\t\t\t\"border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-sm\",\n\t\t},\n\t\tsize: {\n\t\t\tdefault: \"h-9 px-3\",\n\t\t\tsm: \"h-8 px-2\",\n\t\t\tlg: \"h-10 px-3\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t\tsize: \"default\",\n\t},\n});\nexport {\n\tRoot,\n\t//\n\tRoot as Toggle,\n};\n" - }, - { - "name": "toggle.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york-js/tooltip.json b/sites/docs/static/registry/styles/new-york-js/tooltip.json deleted file mode 100644 index c6f7905046..0000000000 --- a/sites/docs/static/registry/styles/new-york-js/tooltip.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "tooltip", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.js", - "content": "import { Tooltip as TooltipPrimitive } from \"bits-ui\";\nimport Content from \"./tooltip-content.svelte\";\nconst Root = TooltipPrimitive.Root;\nconst Trigger = TooltipPrimitive.Trigger;\nexport {\n\tRoot,\n\tTrigger,\n\tContent,\n\t//\n\tRoot as Tooltip,\n\tContent as TooltipContent,\n\tTrigger as TooltipTrigger,\n};\n" - }, - { - "name": "tooltip-content.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/accordion.json b/sites/docs/static/registry/styles/new-york/accordion.json deleted file mode 100644 index 0a6870aa16..0000000000 --- a/sites/docs/static/registry/styles/new-york/accordion.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "accordion", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "accordion-content.svelte", - "content": "\n\n\n\t
    \n\t\t\n\t
    \n\n" - }, - { - "name": "accordion-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "accordion-trigger.svelte", - "content": "\n\n\n\tsvg]:rotate-180\",\n\t\t\tclassName\n\t\t)}\n\t\t{...$$restProps}\n\t\ton:click\n\t>\n\t\t\n\t\t\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { Accordion as AccordionPrimitive } from \"bits-ui\";\nimport Content from \"./accordion-content.svelte\";\nimport Item from \"./accordion-item.svelte\";\nimport Trigger from \"./accordion-trigger.svelte\";\n\nconst Root = AccordionPrimitive.Root;\nexport {\n\tRoot,\n\tContent,\n\tItem,\n\tTrigger,\n\t//\n\tRoot as Accordion,\n\tContent as AccordionContent,\n\tItem as AccordionItem,\n\tTrigger as AccordionTrigger,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/alert-dialog.json b/sites/docs/static/registry/styles/new-york/alert-dialog.json deleted file mode 100644 index 4b740567df..0000000000 --- a/sites/docs/static/registry/styles/new-york/alert-dialog.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "alert-dialog", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "alert-dialog-action.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-cancel.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t\n\t\n\n" - }, - { - "name": "alert-dialog-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "alert-dialog-overlay.svelte", - "content": "\n\n\n" - }, - { - "name": "alert-dialog-portal.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert-dialog-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\nimport Title from \"./alert-dialog-title.svelte\";\nimport Action from \"./alert-dialog-action.svelte\";\nimport Cancel from \"./alert-dialog-cancel.svelte\";\nimport Portal from \"./alert-dialog-portal.svelte\";\nimport Footer from \"./alert-dialog-footer.svelte\";\nimport Header from \"./alert-dialog-header.svelte\";\nimport Overlay from \"./alert-dialog-overlay.svelte\";\nimport Content from \"./alert-dialog-content.svelte\";\nimport Description from \"./alert-dialog-description.svelte\";\n\nconst Root = AlertDialogPrimitive.Root;\nconst Trigger = AlertDialogPrimitive.Trigger;\n\nexport {\n\tRoot,\n\tTitle,\n\tAction,\n\tCancel,\n\tPortal,\n\tFooter,\n\tHeader,\n\tTrigger,\n\tOverlay,\n\tContent,\n\tDescription,\n\t//\n\tRoot as AlertDialog,\n\tTitle as AlertDialogTitle,\n\tAction as AlertDialogAction,\n\tCancel as AlertDialogCancel,\n\tPortal as AlertDialogPortal,\n\tFooter as AlertDialogFooter,\n\tHeader as AlertDialogHeader,\n\tTrigger as AlertDialogTrigger,\n\tOverlay as AlertDialogOverlay,\n\tContent as AlertDialogContent,\n\tDescription as AlertDialogDescription,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/alert.json b/sites/docs/static/registry/styles/new-york/alert.json deleted file mode 100644 index 66071c86e4..0000000000 --- a/sites/docs/static/registry/styles/new-york/alert.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "alert", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "alert-description.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "alert-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "alert.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "index.ts", - "content": "import { type VariantProps, tv } from \"tailwind-variants\";\n\nimport Root from \"./alert.svelte\";\nimport Description from \"./alert-description.svelte\";\nimport Title from \"./alert-title.svelte\";\n\nexport const alertVariants = tv({\n\tbase: \"[&>svg]:text-foreground relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-background text-foreground\",\n\t\t\tdestructive:\n\t\t\t\t\"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t},\n});\n\nexport type Variant = VariantProps[\"variant\"];\nexport type HeadingLevel = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n\nexport {\n\tRoot,\n\tDescription,\n\tTitle,\n\t//\n\tRoot as Alert,\n\tDescription as AlertDescription,\n\tTitle as AlertTitle,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/aspect-ratio.json b/sites/docs/static/registry/styles/new-york/aspect-ratio.json deleted file mode 100644 index 0656fe1e3d..0000000000 --- a/sites/docs/static/registry/styles/new-york/aspect-ratio.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "aspect-ratio", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "aspect-ratio.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import Root from \"./aspect-ratio.svelte\";\n\nexport { Root, Root as AspectRatio };\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/avatar.json b/sites/docs/static/registry/styles/new-york/avatar.json deleted file mode 100644 index 3e8eddcd32..0000000000 --- a/sites/docs/static/registry/styles/new-york/avatar.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "avatar", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "avatar-fallback.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "avatar-image.svelte", - "content": "\n\n\n" - }, - { - "name": "avatar.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import Root from \"./avatar.svelte\";\nimport Image from \"./avatar-image.svelte\";\nimport Fallback from \"./avatar-fallback.svelte\";\n\nexport {\n\tRoot,\n\tImage,\n\tFallback,\n\t//\n\tRoot as Avatar,\n\tImage as AvatarImage,\n\tFallback as AvatarFallback,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/badge.json b/sites/docs/static/registry/styles/new-york/badge.json deleted file mode 100644 index 91f270dff2..0000000000 --- a/sites/docs/static/registry/styles/new-york/badge.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "badge", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "badge.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { type VariantProps, tv } from \"tailwind-variants\";\n\nexport { default as Badge } from \"./badge.svelte\";\nexport const badgeVariants = tv({\n\tbase: \"focus:ring-ring inline-flex select-none items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault:\n\t\t\t\t\"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow\",\n\t\t\tsecondary:\n\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent\",\n\t\t\tdestructive:\n\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow\",\n\t\t\toutline: \"text-foreground\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t},\n});\n\nexport type Variant = VariantProps[\"variant\"];\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/breadcrumb.json b/sites/docs/static/registry/styles/new-york/breadcrumb.json deleted file mode 100644 index 2360a7bb8a..0000000000 --- a/sites/docs/static/registry/styles/new-york/breadcrumb.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "breadcrumb", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "breadcrumb-ellipsis.svelte", - "content": "\n\n\n\t\n\tMore\n\n" - }, - { - "name": "breadcrumb-item.svelte", - "content": "\n\n
  • \n\t\n
  • \n" - }, - { - "name": "breadcrumb-link.svelte", - "content": "\n\n{#if asChild}\n\t\n{:else}\n\t\n\t\t\n\t\n{/if}\n" - }, - { - "name": "breadcrumb-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "breadcrumb-page.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "breadcrumb-separator.svelte", - "content": "\n\nsvg]:size-3.5\", className)}\n\tbind:this={el}\n\t{...$$restProps}\n>\n\t\n\t\t\n\t\n\n" - }, - { - "name": "breadcrumb.svelte", - "content": "\n\n\n" - }, - { - "name": "index.ts", - "content": "import Root from \"./breadcrumb.svelte\";\nimport Ellipsis from \"./breadcrumb-ellipsis.svelte\";\nimport Item from \"./breadcrumb-item.svelte\";\nimport Separator from \"./breadcrumb-separator.svelte\";\nimport Link from \"./breadcrumb-link.svelte\";\nimport List from \"./breadcrumb-list.svelte\";\nimport Page from \"./breadcrumb-page.svelte\";\n\nexport {\n\tRoot,\n\tEllipsis,\n\tItem,\n\tSeparator,\n\tLink,\n\tList,\n\tPage,\n\t//\n\tRoot as Breadcrumb,\n\tEllipsis as BreadcrumbEllipsis,\n\tItem as BreadcrumbItem,\n\tSeparator as BreadcrumbSeparator,\n\tLink as BreadcrumbLink,\n\tList as BreadcrumbList,\n\tPage as BreadcrumbPage,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/button.json b/sites/docs/static/registry/styles/new-york/button.json deleted file mode 100644 index 5bb55c24d2..0000000000 --- a/sites/docs/static/registry/styles/new-york/button.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "button", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "button.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import type { Button as ButtonPrimitive } from \"bits-ui\";\nimport { type VariantProps, tv } from \"tailwind-variants\";\nimport Root from \"./button.svelte\";\n\nconst buttonVariants = tv({\n\tbase: \"focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-primary text-primary-foreground hover:bg-primary/90 shadow\",\n\t\t\tdestructive:\n\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm\",\n\t\t\toutline:\n\t\t\t\t\"border-input bg-background hover:bg-accent hover:text-accent-foreground border shadow-sm\",\n\t\t\tsecondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm\",\n\t\t\tghost: \"hover:bg-accent hover:text-accent-foreground\",\n\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\n\t\t},\n\t\tsize: {\n\t\t\tdefault: \"h-9 px-4 py-2\",\n\t\t\tsm: \"h-8 rounded-md px-3 text-xs\",\n\t\t\tlg: \"h-10 rounded-md px-8\",\n\t\t\ticon: \"h-9 w-9\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t\tsize: \"default\",\n\t},\n});\n\ntype Variant = VariantProps[\"variant\"];\ntype Size = VariantProps[\"size\"];\n\ntype Props = ButtonPrimitive.Props & {\n\tvariant?: Variant;\n\tsize?: Size;\n};\n\ntype Events = ButtonPrimitive.Events;\n\nexport {\n\tRoot,\n\ttype Props,\n\ttype Events,\n\t//\n\tRoot as Button,\n\ttype Props as ButtonProps,\n\ttype Events as ButtonEvents,\n\tbuttonVariants,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/calendar.json b/sites/docs/static/registry/styles/new-york/calendar.json deleted file mode 100644 index 7f442e2a47..0000000000 --- a/sites/docs/static/registry/styles/new-york/calendar.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "calendar", - "dependencies": [ - "bits-ui", - "@internationalized/date" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "calendar-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-day.svelte", - "content": "\n\n\n\t\n\t\t{date.day}\n\t\n\n" - }, - { - "name": "calendar-grid-body.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-grid-head.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-grid-row.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-grid.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-head-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-header.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-heading.svelte", - "content": "\n\n\n\t\n\t\t{headingValue}\n\t\n\n" - }, - { - "name": "calendar-months.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "calendar-next-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "calendar-prev-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "calendar.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t{#each months as month}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{#each weekdays as weekday}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{weekday.slice(0, 2)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{#each month.weeks as weekDates}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{#each weekDates as date}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\n\t\t\t\t\t{/each}\n\t\t\t\t\n\t\t\t\n\t\t{/each}\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import Root from \"./calendar.svelte\";\nimport Cell from \"./calendar-cell.svelte\";\nimport Day from \"./calendar-day.svelte\";\nimport Grid from \"./calendar-grid.svelte\";\nimport Header from \"./calendar-header.svelte\";\nimport Months from \"./calendar-months.svelte\";\nimport GridRow from \"./calendar-grid-row.svelte\";\nimport Heading from \"./calendar-heading.svelte\";\nimport GridBody from \"./calendar-grid-body.svelte\";\nimport GridHead from \"./calendar-grid-head.svelte\";\nimport HeadCell from \"./calendar-head-cell.svelte\";\nimport NextButton from \"./calendar-next-button.svelte\";\nimport PrevButton from \"./calendar-prev-button.svelte\";\n\nexport {\n\tDay,\n\tCell,\n\tGrid,\n\tHeader,\n\tMonths,\n\tGridRow,\n\tHeading,\n\tGridBody,\n\tGridHead,\n\tHeadCell,\n\tNextButton,\n\tPrevButton,\n\t//\n\tRoot as Calendar,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/card.json b/sites/docs/static/registry/styles/new-york/card.json deleted file mode 100644 index 2d8b43b348..0000000000 --- a/sites/docs/static/registry/styles/new-york/card.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "card", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "card-content.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "card-description.svelte", - "content": "\n\n

    \n\t\n

    \n" - }, - { - "name": "card-footer.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "card-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "card-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "card.svelte", - "content": "\n\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import Root from \"./card.svelte\";\nimport Content from \"./card-content.svelte\";\nimport Description from \"./card-description.svelte\";\nimport Footer from \"./card-footer.svelte\";\nimport Header from \"./card-header.svelte\";\nimport Title from \"./card-title.svelte\";\n\nexport {\n\tRoot,\n\tContent,\n\tDescription,\n\tFooter,\n\tHeader,\n\tTitle,\n\t//\n\tRoot as Card,\n\tContent as CardContent,\n\tDescription as CardDescription,\n\tFooter as CardFooter,\n\tHeader as CardHeader,\n\tTitle as CardTitle,\n};\n\nexport type HeadingLevel = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/carousel.json b/sites/docs/static/registry/styles/new-york/carousel.json deleted file mode 100644 index bc030eea0e..0000000000 --- a/sites/docs/static/registry/styles/new-york/carousel.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "carousel", - "dependencies": [ - "embla-carousel-svelte" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "carousel-content.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "carousel-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "carousel-next.svelte", - "content": "\n\n\n\t\n\tNext slide\n\n" - }, - { - "name": "carousel-previous.svelte", - "content": "\n\n\n\t\n\tPrevious slide\n\n" - }, - { - "name": "carousel.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context.ts", - "content": "import type { EmblaCarouselSvelteType } from \"embla-carousel-svelte\";\nimport type emblaCarouselSvelte from \"embla-carousel-svelte\";\nimport { getContext, hasContext, setContext } from \"svelte\";\nimport type { HTMLAttributes } from \"svelte/elements\";\nimport type { Readable, Writable } from \"svelte/store\";\n\nexport type CarouselAPI =\n\tNonNullable[\"on:emblaInit\"]> extends (\n\t\tevt: CustomEvent\n\t) => void\n\t\t? CarouselAPI\n\t\t: never;\n\ntype EmblaCarouselConfig = NonNullable[1]>;\n\nexport type CarouselOptions = EmblaCarouselConfig[\"options\"];\nexport type CarouselPlugins = EmblaCarouselConfig[\"plugins\"];\n\n////\n\nexport type CarouselProps = {\n\topts?: CarouselOptions;\n\tplugins?: CarouselPlugins;\n\tapi?: CarouselAPI;\n\torientation?: \"horizontal\" | \"vertical\";\n} & HTMLAttributes;\n\nconst EMBLA_CAROUSEL_CONTEXT = Symbol(\"EMBLA_CAROUSEL_CONTEXT\");\n\ntype EmblaContext = {\n\tapi: Writable;\n\torientation: Writable<\"horizontal\" | \"vertical\">;\n\tscrollNext: () => void;\n\tscrollPrev: () => void;\n\tcanScrollNext: Readable;\n\tcanScrollPrev: Readable;\n\thandleKeyDown: (e: KeyboardEvent) => void;\n\toptions: Writable;\n\tplugins: Writable;\n\tonInit: (e: CustomEvent) => void;\n\tscrollTo: (index: number, jump?: boolean) => void;\n\tscrollSnaps: Readable;\n\tselectedIndex: Readable;\n};\n\nexport function setEmblaContext(config: EmblaContext): EmblaContext {\n\tsetContext(EMBLA_CAROUSEL_CONTEXT, config);\n\treturn config;\n}\n\nexport function getEmblaContext(name = \"This component\") {\n\tif (!hasContext(EMBLA_CAROUSEL_CONTEXT)) {\n\t\tthrow new Error(`${name} must be used within a component`);\n\t}\n\treturn getContext>(EMBLA_CAROUSEL_CONTEXT);\n}\n" - }, - { - "name": "index.ts", - "content": "export { default as Root } from \"./carousel.svelte\";\nexport { default as Content } from \"./carousel-content.svelte\";\nexport { default as Item } from \"./carousel-item.svelte\";\nexport { default as Previous } from \"./carousel-previous.svelte\";\nexport { default as Next } from \"./carousel-next.svelte\";\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/checkbox.json b/sites/docs/static/registry/styles/new-york/checkbox.json deleted file mode 100644 index eee167d0d9..0000000000 --- a/sites/docs/static/registry/styles/new-york/checkbox.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "checkbox", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "checkbox.svelte", - "content": "\n\n\n\t\n\t\t{#if isIndeterminate}\n\t\t\t\n\t\t{:else}\n\t\t\t\n\t\t{/if}\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import Root from \"./checkbox.svelte\";\nexport {\n\tRoot,\n\t//\n\tRoot as Checkbox,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/collapsible.json b/sites/docs/static/registry/styles/new-york/collapsible.json deleted file mode 100644 index 42d1fbec91..0000000000 --- a/sites/docs/static/registry/styles/new-york/collapsible.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "collapsible", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "collapsible-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { Collapsible as CollapsiblePrimitive } from \"bits-ui\";\nimport Content from \"./collapsible-content.svelte\";\n\nconst Root = CollapsiblePrimitive.Root;\nconst Trigger = CollapsiblePrimitive.Trigger;\n\nexport {\n\tRoot,\n\tContent,\n\tTrigger,\n\t//\n\tRoot as Collapsible,\n\tContent as CollapsibleContent,\n\tTrigger as CollapsibleTrigger,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/command.json b/sites/docs/static/registry/styles/new-york/command.json deleted file mode 100644 index 445d432a20..0000000000 --- a/sites/docs/static/registry/styles/new-york/command.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "command", - "dependencies": [ - "cmdk-sv", - "bits-ui" - ], - "registryDependencies": [ - "dialog" - ], - "files": [ - { - "name": "command-dialog.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\n" - }, - { - "name": "command-empty.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-group.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-input.svelte", - "content": "\n\n
    \n\t\n\t\n
    \n" - }, - { - "name": "command-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "command-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "command.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { Command as CommandPrimitive } from \"cmdk-sv\";\n\nimport Root from \"./command.svelte\";\nimport Dialog from \"./command-dialog.svelte\";\nimport Empty from \"./command-empty.svelte\";\nimport Group from \"./command-group.svelte\";\nimport Item from \"./command-item.svelte\";\nimport Input from \"./command-input.svelte\";\nimport List from \"./command-list.svelte\";\nimport Separator from \"./command-separator.svelte\";\nimport Shortcut from \"./command-shortcut.svelte\";\n\nconst Loading = CommandPrimitive.Loading;\n\nexport {\n\tRoot,\n\tDialog,\n\tEmpty,\n\tGroup,\n\tItem,\n\tInput,\n\tList,\n\tSeparator,\n\tShortcut,\n\tLoading,\n\t//\n\tRoot as Command,\n\tDialog as CommandDialog,\n\tEmpty as CommandEmpty,\n\tGroup as CommandGroup,\n\tItem as CommandItem,\n\tInput as CommandInput,\n\tList as CommandList,\n\tSeparator as CommandSeparator,\n\tShortcut as CommandShortcut,\n\tLoading as CommandLoading,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/context-menu.json b/sites/docs/static/registry/styles/new-york/context-menu.json deleted file mode 100644 index 2f12bcca7d..0000000000 --- a/sites/docs/static/registry/styles/new-york/context-menu.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "context-menu", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "context-menu-checkbox-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "context-menu-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-radio-group.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-radio-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "context-menu-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "context-menu-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-sub-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "context-menu-sub-trigger.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { ContextMenu as ContextMenuPrimitive } from \"bits-ui\";\n\nimport Item from \"./context-menu-item.svelte\";\nimport Label from \"./context-menu-label.svelte\";\nimport Content from \"./context-menu-content.svelte\";\nimport Shortcut from \"./context-menu-shortcut.svelte\";\nimport RadioItem from \"./context-menu-radio-item.svelte\";\nimport Separator from \"./context-menu-separator.svelte\";\nimport RadioGroup from \"./context-menu-radio-group.svelte\";\nimport SubContent from \"./context-menu-sub-content.svelte\";\nimport SubTrigger from \"./context-menu-sub-trigger.svelte\";\nimport CheckboxItem from \"./context-menu-checkbox-item.svelte\";\n\nconst Sub = ContextMenuPrimitive.Sub;\nconst Root = ContextMenuPrimitive.Root;\nconst Trigger = ContextMenuPrimitive.Trigger;\nconst Group = ContextMenuPrimitive.Group;\n\nexport {\n\tSub,\n\tRoot,\n\tItem,\n\tLabel,\n\tGroup,\n\tTrigger,\n\tContent,\n\tShortcut,\n\tSeparator,\n\tRadioItem,\n\tSubContent,\n\tSubTrigger,\n\tRadioGroup,\n\tCheckboxItem,\n\t//\n\tRoot as ContextMenu,\n\tSub as ContextMenuSub,\n\tItem as ContextMenuItem,\n\tLabel as ContextMenuLabel,\n\tGroup as ContextMenuGroup,\n\tContent as ContextMenuContent,\n\tTrigger as ContextMenuTrigger,\n\tShortcut as ContextMenuShortcut,\n\tRadioItem as ContextMenuRadioItem,\n\tSeparator as ContextMenuSeparator,\n\tRadioGroup as ContextMenuRadioGroup,\n\tSubContent as ContextMenuSubContent,\n\tSubTrigger as ContextMenuSubTrigger,\n\tCheckboxItem as ContextMenuCheckboxItem,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/dialog.json b/sites/docs/static/registry/styles/new-york/dialog.json deleted file mode 100644 index 697ca4bed7..0000000000 --- a/sites/docs/static/registry/styles/new-york/dialog.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "dialog", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "dialog-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\tClose\n\t\t\n\t\n\n" - }, - { - "name": "dialog-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dialog-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dialog-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "dialog-overlay.svelte", - "content": "\n\n\n" - }, - { - "name": "dialog-portal.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dialog-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { Dialog as DialogPrimitive } from \"bits-ui\";\n\nimport Title from \"./dialog-title.svelte\";\nimport Portal from \"./dialog-portal.svelte\";\nimport Footer from \"./dialog-footer.svelte\";\nimport Header from \"./dialog-header.svelte\";\nimport Overlay from \"./dialog-overlay.svelte\";\nimport Content from \"./dialog-content.svelte\";\nimport Description from \"./dialog-description.svelte\";\n\nconst Root = DialogPrimitive.Root;\nconst Trigger = DialogPrimitive.Trigger;\nconst Close = DialogPrimitive.Close;\n\nexport {\n\tRoot,\n\tTitle,\n\tPortal,\n\tFooter,\n\tHeader,\n\tTrigger,\n\tOverlay,\n\tContent,\n\tDescription,\n\tClose,\n\t//\n\tRoot as Dialog,\n\tTitle as DialogTitle,\n\tPortal as DialogPortal,\n\tFooter as DialogFooter,\n\tHeader as DialogHeader,\n\tTrigger as DialogTrigger,\n\tOverlay as DialogOverlay,\n\tContent as DialogContent,\n\tDescription as DialogDescription,\n\tClose as DialogClose,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/drawer.json b/sites/docs/static/registry/styles/new-york/drawer.json deleted file mode 100644 index 2977db760e..0000000000 --- a/sites/docs/static/registry/styles/new-york/drawer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "drawer", - "dependencies": [ - "vaul-svelte" - ], - "registryDependencies": [], - "files": [ - { - "name": "drawer-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t
    \n\t\t\n\t\n
    \n" - }, - { - "name": "drawer-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-footer.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "drawer-header.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-nested.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-overlay.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer-title.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "drawer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { Drawer as DrawerPrimitive } from \"vaul-svelte\";\n\nimport Root from \"./drawer.svelte\";\nimport Content from \"./drawer-content.svelte\";\nimport Description from \"./drawer-description.svelte\";\nimport Overlay from \"./drawer-overlay.svelte\";\nimport Footer from \"./drawer-footer.svelte\";\nimport Header from \"./drawer-header.svelte\";\nimport Title from \"./drawer-title.svelte\";\nimport NestedRoot from \"./drawer-nested.svelte\";\n\nconst Trigger = DrawerPrimitive.Trigger;\nconst Portal = DrawerPrimitive.Portal;\nconst Close = DrawerPrimitive.Close;\n\nexport {\n\tRoot,\n\tNestedRoot,\n\tContent,\n\tDescription,\n\tOverlay,\n\tFooter,\n\tHeader,\n\tTitle,\n\tTrigger,\n\tPortal,\n\tClose,\n\t//\n\tRoot as Drawer,\n\tNestedRoot as DrawerNestedRoot,\n\tContent as DrawerContent,\n\tDescription as DrawerDescription,\n\tOverlay as DrawerOverlay,\n\tFooter as DrawerFooter,\n\tHeader as DrawerHeader,\n\tTitle as DrawerTitle,\n\tTrigger as DrawerTrigger,\n\tPortal as DrawerPortal,\n\tClose as DrawerClose,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/dropdown-menu.json b/sites/docs/static/registry/styles/new-york/dropdown-menu.json deleted file mode 100644 index 1316706d45..0000000000 --- a/sites/docs/static/registry/styles/new-york/dropdown-menu.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "dropdown-menu", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "dropdown-menu-checkbox-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "dropdown-menu-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-radio-group.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-radio-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "dropdown-menu-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "dropdown-menu-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-sub-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "dropdown-menu-sub-trigger.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\nimport Item from \"./dropdown-menu-item.svelte\";\nimport Label from \"./dropdown-menu-label.svelte\";\nimport Content from \"./dropdown-menu-content.svelte\";\nimport Shortcut from \"./dropdown-menu-shortcut.svelte\";\nimport RadioItem from \"./dropdown-menu-radio-item.svelte\";\nimport Separator from \"./dropdown-menu-separator.svelte\";\nimport RadioGroup from \"./dropdown-menu-radio-group.svelte\";\nimport SubContent from \"./dropdown-menu-sub-content.svelte\";\nimport SubTrigger from \"./dropdown-menu-sub-trigger.svelte\";\nimport CheckboxItem from \"./dropdown-menu-checkbox-item.svelte\";\n\nconst Sub = DropdownMenuPrimitive.Sub;\nconst Root = DropdownMenuPrimitive.Root;\nconst Trigger = DropdownMenuPrimitive.Trigger;\nconst Group = DropdownMenuPrimitive.Group;\n\nexport {\n\tSub,\n\tRoot,\n\tItem,\n\tLabel,\n\tGroup,\n\tTrigger,\n\tContent,\n\tShortcut,\n\tSeparator,\n\tRadioItem,\n\tSubContent,\n\tSubTrigger,\n\tRadioGroup,\n\tCheckboxItem,\n\t//\n\tRoot as DropdownMenu,\n\tSub as DropdownMenuSub,\n\tItem as DropdownMenuItem,\n\tLabel as DropdownMenuLabel,\n\tGroup as DropdownMenuGroup,\n\tContent as DropdownMenuContent,\n\tTrigger as DropdownMenuTrigger,\n\tShortcut as DropdownMenuShortcut,\n\tRadioItem as DropdownMenuRadioItem,\n\tSeparator as DropdownMenuSeparator,\n\tRadioGroup as DropdownMenuRadioGroup,\n\tSubContent as DropdownMenuSubContent,\n\tSubTrigger as DropdownMenuSubTrigger,\n\tCheckboxItem as DropdownMenuCheckboxItem,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/form.json b/sites/docs/static/registry/styles/new-york/form.json deleted file mode 100644 index 6c94add4d2..0000000000 --- a/sites/docs/static/registry/styles/new-york/form.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "form", - "dependencies": [ - "formsnap@1.0.1", - "zod", - "sveltekit-superforms" - ], - "registryDependencies": [ - "button", - "label" - ], - "files": [ - { - "name": "form-button.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "form-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "form-element-field.svelte", - "content": "\n\n\n\n\n\t
    \n\t\t\n\t
    \n
    \n" - }, - { - "name": "form-field-errors.svelte", - "content": "\n\n\n\t\n\t\t{#each errors as error}\n\t\t\t
    {error}
    \n\t\t{/each}\n\t
    \n\n" - }, - { - "name": "form-field.svelte", - "content": "\n\n\n\n\n\t
    \n\t\t\n\t
    \n
    \n" - }, - { - "name": "form-fieldset.svelte", - "content": "\n\n\n\n\n\t\n\n" - }, - { - "name": "form-label.svelte", - "content": "\n\n\n" - }, - { - "name": "form-legend.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import * as FormPrimitive from \"formsnap\";\nimport Description from \"./form-description.svelte\";\nimport Label from \"./form-label.svelte\";\nimport FieldErrors from \"./form-field-errors.svelte\";\nimport Field from \"./form-field.svelte\";\nimport Button from \"./form-button.svelte\";\nimport Fieldset from \"./form-fieldset.svelte\";\nimport Legend from \"./form-legend.svelte\";\nimport ElementField from \"./form-element-field.svelte\";\n\nconst Control = FormPrimitive.Control;\n\nexport {\n\tField,\n\tControl,\n\tLabel,\n\tFieldErrors,\n\tDescription,\n\tFieldset,\n\tLegend,\n\tElementField,\n\tButton,\n\t//\n\tField as FormField,\n\tControl as FormControl,\n\tDescription as FormDescription,\n\tLabel as FormLabel,\n\tFieldErrors as FormFieldErrors,\n\tFieldset as FormFieldset,\n\tLegend as FormLegend,\n\tElementField as FormElementField,\n\tButton as FormButton,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/hover-card.json b/sites/docs/static/registry/styles/new-york/hover-card.json deleted file mode 100644 index 9ccb1d27a6..0000000000 --- a/sites/docs/static/registry/styles/new-york/hover-card.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "hover-card", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "hover-card-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "index.ts", - "content": "import { LinkPreview as HoverCardPrimitive } from \"bits-ui\";\n\nimport Content from \"./hover-card-content.svelte\";\nconst Root = HoverCardPrimitive.Root;\nconst Trigger = HoverCardPrimitive.Trigger;\n\nexport {\n\tRoot,\n\tContent,\n\tTrigger,\n\tRoot as HoverCard,\n\tContent as HoverCardContent,\n\tTrigger as HoverCardTrigger,\n};\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/input.json b/sites/docs/static/registry/styles/new-york/input.json deleted file mode 100644 index 6b6d3191fc..0000000000 --- a/sites/docs/static/registry/styles/new-york/input.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "input", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./input.svelte\";\n\nexport type FormInputEvent = T & {\n\tcurrentTarget: EventTarget & HTMLInputElement;\n};\nexport type InputEvents = {\n\tblur: FormInputEvent;\n\tchange: FormInputEvent;\n\tclick: FormInputEvent;\n\tfocus: FormInputEvent;\n\tfocusin: FormInputEvent;\n\tfocusout: FormInputEvent;\n\tkeydown: FormInputEvent;\n\tkeypress: FormInputEvent;\n\tkeyup: FormInputEvent;\n\tmouseover: FormInputEvent;\n\tmouseenter: FormInputEvent;\n\tmouseleave: FormInputEvent;\n\tmousemove: FormInputEvent;\n\tpaste: FormInputEvent;\n\tinput: FormInputEvent;\n\twheel: FormInputEvent;\n};\n\nexport {\n\tRoot,\n\t//\n\tRoot as Input,\n};\n" - }, - { - "name": "input.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/label.json b/sites/docs/static/registry/styles/new-york/label.json deleted file mode 100644 index 96847c210d..0000000000 --- a/sites/docs/static/registry/styles/new-york/label.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "label", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./label.svelte\";\n\nexport {\n\tRoot,\n\t//\n\tRoot as Label,\n};\n" - }, - { - "name": "label.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/menubar.json b/sites/docs/static/registry/styles/new-york/menubar.json deleted file mode 100644 index c20f5084e2..0000000000 --- a/sites/docs/static/registry/styles/new-york/menubar.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "menubar", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Menubar as MenubarPrimitive } from \"bits-ui\";\n\nimport Root from \"./menubar.svelte\";\nimport CheckboxItem from \"./menubar-checkbox-item.svelte\";\nimport Content from \"./menubar-content.svelte\";\nimport Item from \"./menubar-item.svelte\";\nimport Label from \"./menubar-label.svelte\";\nimport RadioItem from \"./menubar-radio-item.svelte\";\nimport Separator from \"./menubar-separator.svelte\";\nimport Shortcut from \"./menubar-shortcut.svelte\";\nimport SubContent from \"./menubar-sub-content.svelte\";\nimport SubTrigger from \"./menubar-sub-trigger.svelte\";\nimport Trigger from \"./menubar-trigger.svelte\";\n\nconst Menu = MenubarPrimitive.Menu;\nconst Group = MenubarPrimitive.Group;\nconst Sub = MenubarPrimitive.Sub;\nconst RadioGroup = MenubarPrimitive.RadioGroup;\n\nexport {\n\tRoot,\n\tCheckboxItem,\n\tContent,\n\tItem,\n\tLabel,\n\tRadioItem,\n\tSeparator,\n\tShortcut,\n\tSubContent,\n\tSubTrigger,\n\tTrigger,\n\tMenu,\n\tGroup,\n\tSub,\n\tRadioGroup,\n\t//\n\tRoot as Menubar,\n\tCheckboxItem as MenubarCheckboxItem,\n\tContent as MenubarContent,\n\tItem as MenubarItem,\n\tLabel as MenubarLabel,\n\tRadioItem as MenubarRadioItem,\n\tSeparator as MenubarSeparator,\n\tShortcut as MenubarShortcut,\n\tSubContent as MenubarSubContent,\n\tSubTrigger as MenubarSubTrigger,\n\tTrigger as MenubarTrigger,\n\tMenu as MenubarMenu,\n\tGroup as MenubarGroup,\n\tSub as MenubarSub,\n\tRadioGroup as MenubarRadioGroup,\n};\n" - }, - { - "name": "menubar-checkbox-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "menubar-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-radio-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\n" - }, - { - "name": "menubar-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "menubar-shortcut.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-sub-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar-sub-trigger.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "menubar-trigger.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "menubar.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/pagination.json b/sites/docs/static/registry/styles/new-york/pagination.json deleted file mode 100644 index fcaace0c29..0000000000 --- a/sites/docs/static/registry/styles/new-york/pagination.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "pagination", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./pagination.svelte\";\nimport Content from \"./pagination-content.svelte\";\nimport Item from \"./pagination-item.svelte\";\nimport Link from \"./pagination-link.svelte\";\nimport PrevButton from \"./pagination-prev-button.svelte\";\nimport NextButton from \"./pagination-next-button.svelte\";\nimport Ellipsis from \"./pagination-ellipsis.svelte\";\nexport {\n\tRoot,\n\tContent,\n\tItem,\n\tLink,\n\tPrevButton,\n\tNextButton,\n\tEllipsis,\n\t//\n\tRoot as Pagination,\n\tContent as PaginationContent,\n\tItem as PaginationItem,\n\tLink as PaginationLink,\n\tPrevButton as PaginationPrevButton,\n\tNextButton as PaginationNextButton,\n\tEllipsis as PaginationEllipsis,\n};\n" - }, - { - "name": "pagination-content.svelte", - "content": "\n\n
      \n\t\n
    \n" - }, - { - "name": "pagination-ellipsis.svelte", - "content": "\n\n\n\t\n\tMore pages\n\n" - }, - { - "name": "pagination-item.svelte", - "content": "\n\n
  • \n\t\n
  • \n" - }, - { - "name": "pagination-link.svelte", - "content": "\n\n\n\t{page.value}\n\n" - }, - { - "name": "pagination-next-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\tNext\n\t\t\t\n\t\t\n\t\n\n" - }, - { - "name": "pagination-prev-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\tPrevious\n\t\t\n\t\n\n" - }, - { - "name": "pagination.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/popover.json b/sites/docs/static/registry/styles/new-york/popover.json deleted file mode 100644 index d894d5a77f..0000000000 --- a/sites/docs/static/registry/styles/new-york/popover.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "popover", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Popover as PopoverPrimitive } from \"bits-ui\";\nimport Content from \"./popover-content.svelte\";\nconst Root = PopoverPrimitive.Root;\nconst Trigger = PopoverPrimitive.Trigger;\nconst Close = PopoverPrimitive.Close;\n\nexport {\n\tRoot,\n\tContent,\n\tTrigger,\n\tClose,\n\t//\n\tRoot as Popover,\n\tContent as PopoverContent,\n\tTrigger as PopoverTrigger,\n\tClose as PopoverClose,\n};\n" - }, - { - "name": "popover-content.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/progress.json b/sites/docs/static/registry/styles/new-york/progress.json deleted file mode 100644 index b66f257439..0000000000 --- a/sites/docs/static/registry/styles/new-york/progress.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "progress", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./progress.svelte\";\n\nexport {\n\tRoot,\n\t//\n\tRoot as Progress,\n};\n" - }, - { - "name": "progress.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/radio-group.json b/sites/docs/static/registry/styles/new-york/radio-group.json deleted file mode 100644 index 71e5701a89..0000000000 --- a/sites/docs/static/registry/styles/new-york/radio-group.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "radio-group", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { RadioGroup as RadioGroupPrimitive } from \"bits-ui\";\n\nimport Root from \"./radio-group.svelte\";\nimport Item from \"./radio-group-item.svelte\";\nconst Input = RadioGroupPrimitive.Input;\n\nexport {\n\tRoot,\n\tInput,\n\tItem,\n\t//\n\tRoot as RadioGroup,\n\tInput as RadioGroupInput,\n\tItem as RadioGroupItem,\n};\n" - }, - { - "name": "radio-group-item.svelte", - "content": "\n\n\n\t
    \n\t\t\n\t\t\t\n\t\t\n\t
    \n\n" - }, - { - "name": "radio-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/range-calendar.json b/sites/docs/static/registry/styles/new-york/range-calendar.json deleted file mode 100644 index cf1490636e..0000000000 --- a/sites/docs/static/registry/styles/new-york/range-calendar.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "range-calendar", - "dependencies": [ - "bits-ui", - "@internationalized/date" - ], - "registryDependencies": [ - "button" - ], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./range-calendar.svelte\";\nimport Cell from \"./range-calendar-cell.svelte\";\nimport Day from \"./range-calendar-day.svelte\";\nimport Grid from \"./range-calendar-grid.svelte\";\nimport Header from \"./range-calendar-header.svelte\";\nimport Months from \"./range-calendar-months.svelte\";\nimport GridRow from \"./range-calendar-grid-row.svelte\";\nimport Heading from \"./range-calendar-heading.svelte\";\nimport GridBody from \"./range-calendar-grid-body.svelte\";\nimport GridHead from \"./range-calendar-grid-head.svelte\";\nimport HeadCell from \"./range-calendar-head-cell.svelte\";\nimport NextButton from \"./range-calendar-next-button.svelte\";\nimport PrevButton from \"./range-calendar-prev-button.svelte\";\n\nexport {\n\tDay,\n\tCell,\n\tGrid,\n\tHeader,\n\tMonths,\n\tGridRow,\n\tHeading,\n\tGridBody,\n\tGridHead,\n\tHeadCell,\n\tNextButton,\n\tPrevButton,\n\t//\n\tRoot as RangeCalendar,\n};\n" - }, - { - "name": "range-calendar-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-day.svelte", - "content": "\n\n\n\t\n\t\t{date.day}\n\t\n\n" - }, - { - "name": "range-calendar-grid-body.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-grid-head.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-grid-row.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-grid.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-head-cell.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-header.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-heading.svelte", - "content": "\n\n\n\t\n\t\t{headingValue}\n\t\n\n" - }, - { - "name": "range-calendar-months.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "range-calendar-next-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "range-calendar-prev-button.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\n" - }, - { - "name": "range-calendar.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t{#each months as month}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{#each weekdays as weekday}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{weekday.slice(0, 2)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{#each month.weeks as weekDates}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{#each weekDates as date}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\n\t\t\t\t\t{/each}\n\t\t\t\t\n\t\t\t\n\t\t{/each}\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/resizable.json b/sites/docs/static/registry/styles/new-york/resizable.json deleted file mode 100644 index bc3f776df8..0000000000 --- a/sites/docs/static/registry/styles/new-york/resizable.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "resizable", - "dependencies": [ - "paneforge" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Pane } from \"paneforge\";\nimport Handle from \"./resizable-handle.svelte\";\nimport PaneGroup from \"./resizable-pane-group.svelte\";\n\nexport {\n\tPaneGroup,\n\tPane,\n\tHandle,\n\t//\n\tPaneGroup as ResizablePaneGroup,\n\tPane as ResizablePane,\n\tHandle as ResizableHandle,\n};\n" - }, - { - "name": "resizable-handle.svelte", - "content": "\n\ndiv]:rotate-90\",\n\t\tclassName\n\t)}\n>\n\t{#if withHandle}\n\t\t
    \n\t\t\t\n\t\t
    \n\t{/if}\n\n" - }, - { - "name": "resizable-pane-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/scroll-area.json b/sites/docs/static/registry/styles/new-york/scroll-area.json deleted file mode 100644 index d4e6ecca46..0000000000 --- a/sites/docs/static/registry/styles/new-york/scroll-area.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "scroll-area", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Scrollbar from \"./scroll-area-scrollbar.svelte\";\nimport Root from \"./scroll-area.svelte\";\n\nexport {\n\tRoot,\n\tScrollbar,\n\t//,\n\tRoot as ScrollArea,\n\tScrollbar as ScrollAreaScrollbar,\n};\n" - }, - { - "name": "scroll-area-scrollbar.svelte", - "content": "\n\n\n\t\n\t\n\n" - }, - { - "name": "scroll-area.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t{#if orientation === \"vertical\" || orientation === \"both\"}\n\t\t\n\t{/if}\n\t{#if orientation === \"horizontal\" || orientation === \"both\"}\n\t\t\n\t{/if}\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/select.json b/sites/docs/static/registry/styles/new-york/select.json deleted file mode 100644 index a13e43a230..0000000000 --- a/sites/docs/static/registry/styles/new-york/select.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "select", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Select as SelectPrimitive } from \"bits-ui\";\n\nimport Label from \"./select-label.svelte\";\nimport Item from \"./select-item.svelte\";\nimport Content from \"./select-content.svelte\";\nimport Trigger from \"./select-trigger.svelte\";\nimport Separator from \"./select-separator.svelte\";\n\nconst Root = SelectPrimitive.Root;\nconst Group = SelectPrimitive.Group;\nconst Input = SelectPrimitive.Input;\nconst Value = SelectPrimitive.Value;\n\nexport {\n\tRoot,\n\tItem,\n\tGroup,\n\tInput,\n\tLabel,\n\tValue,\n\tContent,\n\tTrigger,\n\tSeparator,\n\t//\n\tRoot as Select,\n\tItem as SelectItem,\n\tGroup as SelectGroup,\n\tInput as SelectInput,\n\tLabel as SelectLabel,\n\tValue as SelectValue,\n\tContent as SelectContent,\n\tTrigger as SelectTrigger,\n\tSeparator as SelectSeparator,\n};\n" - }, - { - "name": "select-content.svelte", - "content": "\n\n\n\t
    \n\t\t\n\t
    \n\n" - }, - { - "name": "select-item.svelte", - "content": "\n\n\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\t\t{label || value}\n\t\n\n" - }, - { - "name": "select-label.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "select-separator.svelte", - "content": "\n\n\n" - }, - { - "name": "select-trigger.svelte", - "content": "\n\nspan]:text-muted-foreground flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n>\n\t\n\t
    \n\t\t\n\t
    \n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/separator.json b/sites/docs/static/registry/styles/new-york/separator.json deleted file mode 100644 index 75dd86a280..0000000000 --- a/sites/docs/static/registry/styles/new-york/separator.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "separator", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./separator.svelte\";\n\nexport {\n\tRoot,\n\t//\n\tRoot as Separator,\n};\n" - }, - { - "name": "separator.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/sheet.json b/sites/docs/static/registry/styles/new-york/sheet.json deleted file mode 100644 index 8ea1ab729a..0000000000 --- a/sites/docs/static/registry/styles/new-york/sheet.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "sheet", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Dialog as SheetPrimitive } from \"bits-ui\";\nimport { type VariantProps, tv } from \"tailwind-variants\";\n\nimport Portal from \"./sheet-portal.svelte\";\nimport Overlay from \"./sheet-overlay.svelte\";\nimport Content from \"./sheet-content.svelte\";\nimport Header from \"./sheet-header.svelte\";\nimport Footer from \"./sheet-footer.svelte\";\nimport Title from \"./sheet-title.svelte\";\nimport Description from \"./sheet-description.svelte\";\n\nconst Root = SheetPrimitive.Root;\nconst Close = SheetPrimitive.Close;\nconst Trigger = SheetPrimitive.Trigger;\n\nexport {\n\tRoot,\n\tClose,\n\tTrigger,\n\tPortal,\n\tOverlay,\n\tContent,\n\tHeader,\n\tFooter,\n\tTitle,\n\tDescription,\n\t//\n\tRoot as Sheet,\n\tClose as SheetClose,\n\tTrigger as SheetTrigger,\n\tPortal as SheetPortal,\n\tOverlay as SheetOverlay,\n\tContent as SheetContent,\n\tHeader as SheetHeader,\n\tFooter as SheetFooter,\n\tTitle as SheetTitle,\n\tDescription as SheetDescription,\n};\n\nexport const sheetVariants = tv({\n\tbase: \"bg-background fixed z-50 gap-4 p-6 shadow-lg\",\n\tvariants: {\n\t\tside: {\n\t\t\ttop: \"inset-x-0 top-0 border-b \",\n\t\t\tbottom: \"inset-x-0 bottom-0 border-t\",\n\t\t\tleft: \"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm\",\n\t\t\tright: \"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tside: \"right\",\n\t},\n});\n\nexport const sheetTransitions = {\n\ttop: {\n\t\tin: {\n\t\t\ty: \"-100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\ty: \"-100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n\tbottom: {\n\t\tin: {\n\t\t\ty: \"100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\ty: \"100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n\tleft: {\n\t\tin: {\n\t\t\tx: \"-100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\tx: \"-100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n\tright: {\n\t\tin: {\n\t\t\tx: \"100%\",\n\t\t\tduration: 500,\n\t\t\topacity: 1,\n\t\t},\n\t\tout: {\n\t\t\tx: \"100%\",\n\t\t\tduration: 300,\n\t\t\topacity: 1,\n\t\t},\n\t},\n};\n\nexport type Side = VariantProps[\"side\"];\n" - }, - { - "name": "sheet-content.svelte", - "content": "\n\n\n\t\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\tClose\n\t\t\n\t\n\n" - }, - { - "name": "sheet-description.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "sheet-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "sheet-header.svelte", - "content": "\n\n
    \n\t\n
    \n" - }, - { - "name": "sheet-overlay.svelte", - "content": "\n\n\n" - }, - { - "name": "sheet-portal.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "sheet-title.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/skeleton.json b/sites/docs/static/registry/styles/new-york/skeleton.json deleted file mode 100644 index b54f15b720..0000000000 --- a/sites/docs/static/registry/styles/new-york/skeleton.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "skeleton", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./skeleton.svelte\";\n\nexport {\n\tRoot,\n\t//\n\tRoot as Skeleton,\n};\n" - }, - { - "name": "skeleton.svelte", - "content": "\n\n
    \n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/slider.json b/sites/docs/static/registry/styles/new-york/slider.json deleted file mode 100644 index 953099bc64..0000000000 --- a/sites/docs/static/registry/styles/new-york/slider.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "slider", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./slider.svelte\";\n\nexport {\n\tRoot,\n\t//\n\tRoot as Slider,\n};\n" - }, - { - "name": "slider.svelte", - "content": "\n\n\n\t\n\t\t\n\t\n\t{#each thumbs as thumb}\n\t\t\n\t{/each}\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/sonner.json b/sites/docs/static/registry/styles/new-york/sonner.json deleted file mode 100644 index 1fe97bcdda..0000000000 --- a/sites/docs/static/registry/styles/new-york/sonner.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "sonner", - "dependencies": [ - "svelte-sonner", - "mode-watcher" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "export { default as Toaster } from \"./sonner.svelte\";\n" - }, - { - "name": "sonner.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/switch.json b/sites/docs/static/registry/styles/new-york/switch.json deleted file mode 100644 index 17c8fd2cd5..0000000000 --- a/sites/docs/static/registry/styles/new-york/switch.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "switch", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./switch.svelte\";\n\nexport {\n\tRoot,\n\t//\n\tRoot as Switch,\n};\n" - }, - { - "name": "switch.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/table.json b/sites/docs/static/registry/styles/new-york/table.json deleted file mode 100644 index 7816f1b958..0000000000 --- a/sites/docs/static/registry/styles/new-york/table.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "table", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./table.svelte\";\nimport Body from \"./table-body.svelte\";\nimport Caption from \"./table-caption.svelte\";\nimport Cell from \"./table-cell.svelte\";\nimport Footer from \"./table-footer.svelte\";\nimport Head from \"./table-head.svelte\";\nimport Header from \"./table-header.svelte\";\nimport Row from \"./table-row.svelte\";\n\nexport {\n\tRoot,\n\tBody,\n\tCaption,\n\tCell,\n\tFooter,\n\tHead,\n\tHeader,\n\tRow,\n\t//\n\tRoot as Table,\n\tBody as TableBody,\n\tCaption as TableCaption,\n\tCell as TableCell,\n\tFooter as TableFooter,\n\tHead as TableHead,\n\tHeader as TableHeader,\n\tRow as TableRow,\n};\n" - }, - { - "name": "table-body.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table-caption.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table-cell.svelte", - "content": "\n\n[role=checkbox]]:translate-y-[2px]\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n\ton:click\n\ton:keydown\n>\n\t\n\n" - }, - { - "name": "table-footer.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table-head.svelte", - "content": "\n\n[role=checkbox]]:translate-y-[2px]\",\n\t\tclassName\n\t)}\n\t{...$$restProps}\n>\n\t\n\n" - }, - { - "name": "table-header.svelte", - "content": "\n\n\n\n\t\n\n" - }, - { - "name": "table-row.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "table.svelte", - "content": "\n\n
    \n\t\n\t\t\n\t
    \n
    \n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/tabs.json b/sites/docs/static/registry/styles/new-york/tabs.json deleted file mode 100644 index b7335f6506..0000000000 --- a/sites/docs/static/registry/styles/new-york/tabs.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "tabs", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Tabs as TabsPrimitive } from \"bits-ui\";\nimport Content from \"./tabs-content.svelte\";\nimport List from \"./tabs-list.svelte\";\nimport Trigger from \"./tabs-trigger.svelte\";\n\nconst Root = TabsPrimitive.Root;\n\nexport {\n\tRoot,\n\tContent,\n\tList,\n\tTrigger,\n\t//\n\tRoot as Tabs,\n\tContent as TabsContent,\n\tList as TabsList,\n\tTrigger as TabsTrigger,\n};\n" - }, - { - "name": "tabs-content.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "tabs-list.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "tabs-trigger.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/textarea.json b/sites/docs/static/registry/styles/new-york/textarea.json deleted file mode 100644 index 62244d0f95..0000000000 --- a/sites/docs/static/registry/styles/new-york/textarea.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "textarea", - "dependencies": [], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import Root from \"./textarea.svelte\";\n\ntype FormTextareaEvent = T & {\n\tcurrentTarget: EventTarget & HTMLTextAreaElement;\n};\n\ntype TextareaEvents = {\n\tblur: FormTextareaEvent;\n\tchange: FormTextareaEvent;\n\tclick: FormTextareaEvent;\n\tfocus: FormTextareaEvent;\n\tkeydown: FormTextareaEvent;\n\tkeypress: FormTextareaEvent;\n\tkeyup: FormTextareaEvent;\n\tmouseover: FormTextareaEvent;\n\tmouseenter: FormTextareaEvent;\n\tmouseleave: FormTextareaEvent;\n\tpaste: FormTextareaEvent;\n\tinput: FormTextareaEvent;\n};\n\nexport {\n\tRoot,\n\t//\n\tRoot as Textarea,\n\ttype TextareaEvents,\n\ttype FormTextareaEvent,\n};\n" - }, - { - "name": "textarea.svelte", - "content": "\n\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/toggle-group.json b/sites/docs/static/registry/styles/new-york/toggle-group.json deleted file mode 100644 index 3d371f3959..0000000000 --- a/sites/docs/static/registry/styles/new-york/toggle-group.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "toggle-group", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [ - "toggle" - ], - "files": [ - { - "name": "index.ts", - "content": "import type { VariantProps } from \"tailwind-variants\";\nimport { getContext, setContext } from \"svelte\";\nimport Root from \"./toggle-group.svelte\";\nimport Item from \"./toggle-group-item.svelte\";\nimport type { toggleVariants } from \"$lib/registry/new-york/ui/toggle/index.js\";\n\nexport type ToggleVariants = VariantProps;\n\nexport function setToggleGroupCtx(props: ToggleVariants) {\n\tsetContext(\"toggleGroup\", props);\n}\n\nexport function getToggleGroupCtx() {\n\treturn getContext(\"toggleGroup\");\n}\n\nexport {\n\tRoot,\n\tItem,\n\t//\n\tRoot as ToggleGroup,\n\tItem as ToggleGroupItem,\n};\n" - }, - { - "name": "toggle-group-item.svelte", - "content": "\n\n\n\t\n\n" - }, - { - "name": "toggle-group.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/toggle.json b/sites/docs/static/registry/styles/new-york/toggle.json deleted file mode 100644 index 70458b4478..0000000000 --- a/sites/docs/static/registry/styles/new-york/toggle.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "toggle", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { type VariantProps, tv } from \"tailwind-variants\";\nimport Root from \"./toggle.svelte\";\n\nexport const toggleVariants = tv({\n\tbase: \"hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\",\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: \"bg-transparent\",\n\t\t\toutline:\n\t\t\t\t\"border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-sm\",\n\t\t},\n\t\tsize: {\n\t\t\tdefault: \"h-9 px-3\",\n\t\t\tsm: \"h-8 px-2\",\n\t\t\tlg: \"h-10 px-3\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t\tsize: \"default\",\n\t},\n});\n\nexport type Variant = VariantProps[\"variant\"];\nexport type Size = VariantProps[\"size\"];\n\nexport {\n\tRoot,\n\t//\n\tRoot as Toggle,\n};\n" - }, - { - "name": "toggle.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/styles/new-york/tooltip.json b/sites/docs/static/registry/styles/new-york/tooltip.json deleted file mode 100644 index d9e4c113f6..0000000000 --- a/sites/docs/static/registry/styles/new-york/tooltip.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "tooltip", - "dependencies": [ - "bits-ui" - ], - "registryDependencies": [], - "files": [ - { - "name": "index.ts", - "content": "import { Tooltip as TooltipPrimitive } from \"bits-ui\";\nimport Content from \"./tooltip-content.svelte\";\n\nconst Root = TooltipPrimitive.Root;\nconst Trigger = TooltipPrimitive.Trigger;\n\nexport {\n\tRoot,\n\tTrigger,\n\tContent,\n\t//\n\tRoot as Tooltip,\n\tContent as TooltipContent,\n\tTrigger as TooltipTrigger,\n};\n" - }, - { - "name": "tooltip-content.svelte", - "content": "\n\n\n\t\n\n" - } - ], - "type": "components:ui" -} \ No newline at end of file diff --git a/sites/docs/static/registry/themes.css b/sites/docs/static/registry/themes.css deleted file mode 100644 index b0e1ee04ac..0000000000 --- a/sites/docs/static/registry/themes.css +++ /dev/null @@ -1,768 +0,0 @@ - - .theme-zinc { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - - --popover: 0 0% 100%;; - --popover-foreground: 240 10% 3.9%; - - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - - --primary: 240 5.9% 10%; - --primary-foreground: 0 0% 98%; - - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 0 0% 98%; - - --ring: 240 5.9% 10%; - - --radius: 0.5rem; - } - - .dark .theme-zinc { - --background: 240 10% 3.9%; - --foreground: 0 0% 98%; - - --muted: 240 3.7% 15.9%; - --muted-foreground: 240 5% 64.9%; - - --popover: 240 10% 3.9%; - --popover-foreground: 0 0% 98%; - - --card: 240 10% 3.9%; - --card-foreground: 0 0% 98%; - - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - - --primary: 0 0% 98%; - --primary-foreground: 240 5.9% 10%; - - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - - --accent: 240 3.7% 15.9%; - --accent-foreground: 0 0% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - - --ring: 240 4.9% 83.9%; - } - - .theme-slate { - --background: 0 0% 100%; - --foreground: 222.2 84% 4.9%; - - --muted: 210 40% 96.1%; - --muted-foreground: 215.4 16.3% 46.9%; - - --popover: 0 0% 100%; - --popover-foreground: 222.2 84% 4.9%; - - --card: 0 0% 100%; - --card-foreground: 222.2 84% 4.9%; - - --border: 214.3 31.8% 91.4%; - --input: 214.3 31.8% 91.4%; - - --primary: 222.2 47.4% 11.2%; - --primary-foreground: 210 40% 98%; - - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - - --accent: 210 40% 96.1%; - --accent-foreground: 222.2 47.4% 11.2%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 210 40% 98%; - - --ring: 222.2 84% 4.9%; - - --radius: 0.5rem; - } - - .dark .theme-slate { - --background: 222.2 84% 4.9%; - --foreground: 210 40% 98%; - - --muted: 217.2 32.6% 17.5%; - --muted-foreground: 215 20.2% 65.1%; - - --popover: 222.2 84% 4.9%; - --popover-foreground: 210 40% 98%; - - --card: 222.2 84% 4.9%; - --card-foreground: 210 40% 98%; - - --border: 217.2 32.6% 17.5%; - --input: 217.2 32.6% 17.5%; - - --primary: 210 40% 98%; - --primary-foreground: 222.2 47.4% 11.2%; - - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - - --accent: 217.2 32.6% 17.5%; - --accent-foreground: 210 40% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 40% 98%; - - --ring: 212.7 26.8% 83.9%; - } - - .theme-stone { - --background: 0 0% 100%; - --foreground: 20 14.3% 4.1%; - - --muted: 60 4.8% 95.9%; - --muted-foreground: 25 5.3% 44.7%; - - --popover: 0 0% 100%; - --popover-foreground: 20 14.3% 4.1%; - - --card: 0 0% 100%; - --card-foreground: 20 14.3% 4.1%; - - --border: 20 5.9% 90%; - --input: 20 5.9% 90%; - - --primary: 24 9.8% 10%; - --primary-foreground: 60 9.1% 97.8%; - - --secondary: 60 4.8% 95.9%; - --secondary-foreground: 24 9.8% 10%; - - --accent: 60 4.8% 95.9%; - --accent-foreground: 24 9.8% 10%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 60 9.1% 97.8%; - - --ring: 20 14.3% 4.1%; - - --radius: 0.5rem; - } - - .dark .theme-stone { - --background: 20 14.3% 4.1%; - --foreground: 60 9.1% 97.8%; - - --muted: 12 6.5% 15.1%; - --muted-foreground: 24 5.4% 63.9%; - - --popover: 20 14.3% 4.1%; - --popover-foreground: 60 9.1% 97.8%; - - --card: 20 14.3% 4.1%; - --card-foreground: 60 9.1% 97.8%; - - --border: 12 6.5% 15.1%; - --input: 12 6.5% 15.1%; - - --primary: 60 9.1% 97.8%; - --primary-foreground: 24 9.8% 10%; - - --secondary: 12 6.5% 15.1%; - --secondary-foreground: 60 9.1% 97.8%; - - --accent: 12 6.5% 15.1%; - --accent-foreground: 60 9.1% 97.8%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 60 9.1% 97.8%; - - --ring: 24 5.7% 82.9%; - } - - .theme-gray { - --background: 0 0% 100%; - --foreground: 224 71.4% 4.1%; - - --muted: 220 14.3% 95.9%; - --muted-foreground: 220 8.9% 46.1%; - - --popover: 0 0% 100%; - --popover-foreground: 224 71.4% 4.1%; - - --card: 0 0% 100%; - --card-foreground: 224 71.4% 4.1%; - - --border: 220 13% 91%; - --input: 220 13% 91%; - - --primary: 220.9 39.3% 11%; - --primary-foreground: 210 20% 98%; - - --secondary: 220 14.3% 95.9%; - --secondary-foreground: 220.9 39.3% 11%; - - --accent: 220 14.3% 95.9%; - --accent-foreground: 220.9 39.3% 11%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 210 20% 98%; - - --ring: 224 71.4% 4.1%; - - --radius: 0.5rem; - } - - .dark .theme-gray { - --background: 224 71.4% 4.1%; - --foreground: 210 20% 98%; - - --muted: 215 27.9% 16.9%; - --muted-foreground: 217.9 10.6% 64.9%; - - --popover: 224 71.4% 4.1%; - --popover-foreground: 210 20% 98%; - - --card: 224 71.4% 4.1%; - --card-foreground: 210 20% 98%; - - --border: 215 27.9% 16.9%; - --input: 215 27.9% 16.9%; - - --primary: 210 20% 98%; - --primary-foreground: 220.9 39.3% 11%; - - --secondary: 215 27.9% 16.9%; - --secondary-foreground: 210 20% 98%; - - --accent: 215 27.9% 16.9%; - --accent-foreground: 210 20% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 20% 98%; - - --ring: 216 12.2% 83.9%; - } - - .theme-neutral { - --background: 0 0% 100%; - --foreground: 0 0% 3.9%; - - --muted: 0 0% 96.1%; - --muted-foreground: 0 0% 45.1%; - - --popover: 0 0% 100%; - --popover-foreground: 0 0% 3.9%; - - --card: 0 0% 100%; - --card-foreground: 0 0% 3.9%; - - --border: 0 0% 89.8%; - --input: 0 0% 89.8%; - - --primary: 0 0% 9%; - --primary-foreground: 0 0% 98%; - - --secondary: 0 0% 96.1%; - --secondary-foreground: 0 0% 9%; - - --accent: 0 0% 96.1%; - --accent-foreground: 0 0% 9%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 0 0% 98%; - - --ring: 0 0% 3.9%; - - --radius: 0.5rem; - } - - .dark .theme-neutral { - --background: 0 0% 3.9%; - --foreground: 0 0% 98%; - - --muted: 0 0% 14.9%; - --muted-foreground: 0 0% 63.9%; - - --popover: 0 0% 3.9%; - --popover-foreground: 0 0% 98%; - - --card: 0 0% 3.9%; - --card-foreground: 0 0% 98%; - - --border: 0 0% 14.9%; - --input: 0 0% 14.9%; - - --primary: 0 0% 98%; - --primary-foreground: 0 0% 9%; - - --secondary: 0 0% 14.9%; - --secondary-foreground: 0 0% 98%; - - --accent: 0 0% 14.9%; - --accent-foreground: 0 0% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - - --ring: 0 0% 83.1%; - } - - .theme-red { - --background: 0 0% 100%; - --foreground: 0 0% 3.9%; - - --muted: 0 0% 96.1%; - --muted-foreground: 0 0% 45.1%; - - --popover: 0 0% 100%; - --popover-foreground: 0 0% 3.9%; - - --card: 0 0% 100%; - --card-foreground: 0 0% 3.9%; - - --border: 0 0% 89.8%; - --input: 0 0% 89.8%; - - --primary: 0 72.2% 50.6%; - --primary-foreground: 0 85.7% 97.3%; - - --secondary: 0 0% 96.1%; - --secondary-foreground: 0 0% 9%; - - --accent: 0 0% 96.1%; - --accent-foreground: 0 0% 9%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 0 0% 98%; - - --ring: 0 72.2% 50.6%; - - --radius: 0.5rem; - } - - .dark .theme-red { - --background: 0 0% 3.9%; - --foreground: 0 0% 98%; - - --muted: 0 0% 14.9%; - --muted-foreground: 0 0% 63.9%; - - --popover: 0 0% 3.9%; - --popover-foreground: 0 0% 98%; - - --card: 0 0% 3.9%; - --card-foreground: 0 0% 98%; - - --border: 0 0% 14.9%; - --input: 0 0% 14.9%; - - --primary: 0 72.2% 50.6%; - --primary-foreground: 0 85.7% 97.3%; - - --secondary: 0 0% 14.9%; - --secondary-foreground: 0 0% 98%; - - --accent: 0 0% 14.9%; - --accent-foreground: 0 0% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - - --ring: 0 72.2% 50.6%; - } - - .theme-rose { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - - --primary: 346.8 77.2% 49.8%; - --primary-foreground: 355.7 100% 97.3%; - - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 0 0% 98%; - - --ring: 346.8 77.2% 49.8%; - - --radius: 0.5rem; - } - - .dark .theme-rose { - --background: 20 14.3% 4.1%; - --foreground: 0 0% 95%; - - --muted: 0 0% 15%; - --muted-foreground: 240 5% 64.9%; - - --popover: 0 0% 9%; - --popover-foreground: 0 0% 95%; - - --card: 24 9.8% 10%; - --card-foreground: 0 0% 95%; - - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - - --primary: 346.8 77.2% 49.8%; - --primary-foreground: 355.7 100% 97.3%; - - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - - --accent: 12 6.5% 15.1%; - --accent-foreground: 0 0% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 85.7% 97.3%; - - --ring: 346.8 77.2% 49.8%; - } - - .theme-orange { - --background: 0 0% 100%; - --foreground: 20 14.3% 4.1%; - - --muted: 60 4.8% 95.9%; - --muted-foreground: 25 5.3% 44.7%; - - --popover: 0 0% 100%; - --popover-foreground: 20 14.3% 4.1%; - - --card: 0 0% 100%; - --card-foreground: 20 14.3% 4.1%; - - --border: 20 5.9% 90%; - --input: 20 5.9% 90%; - - --primary: 24.6 95% 53.1%; - --primary-foreground: 60 9.1% 97.8%; - - --secondary: 60 4.8% 95.9%; - --secondary-foreground: 24 9.8% 10%; - - --accent: 60 4.8% 95.9%; - --accent-foreground: 24 9.8% 10%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 60 9.1% 97.8%; - - --ring: 24.6 95% 53.1%; - - --radius: 0.5rem; - } - - .dark .theme-orange { - --background: 20 14.3% 4.1%; - --foreground: 60 9.1% 97.8%; - - --muted: 12 6.5% 15.1%; - --muted-foreground: 24 5.4% 63.9%; - - --popover: 20 14.3% 4.1%; - --popover-foreground: 60 9.1% 97.8%; - - --card: 20 14.3% 4.1%; - --card-foreground: 60 9.1% 97.8%; - - --border: 12 6.5% 15.1%; - --input: 12 6.5% 15.1%; - - --primary: 20.5 90.2% 48.2%; - --primary-foreground: 60 9.1% 97.8%; - - --secondary: 12 6.5% 15.1%; - --secondary-foreground: 60 9.1% 97.8%; - - --accent: 12 6.5% 15.1%; - --accent-foreground: 60 9.1% 97.8%; - - --destructive: 0 72.2% 50.6%; - --destructive-foreground: 60 9.1% 97.8%; - - --ring: 20.5 90.2% 48.2%; - } - - .theme-green { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; - - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - - --card: 0 0% 100%; - --card-foreground: 240 10% 3.9%; - - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - - --primary: 142.1 76.2% 36.3%; - --primary-foreground: 355.7 100% 97.3%; - - --secondary: 240 4.8% 95.9%; - --secondary-foreground: 240 5.9% 10%; - - --accent: 240 4.8% 95.9%; - --accent-foreground: 240 5.9% 10%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 0 0% 98%; - - --ring: 142.1 76.2% 36.3%; - - --radius: 0.5rem; - } - - .dark .theme-green { - --background: 20 14.3% 4.1%; - --foreground: 0 0% 95%; - - --muted: 0 0% 15%; - --muted-foreground: 240 5% 64.9%; - - --popover: 0 0% 9%; - --popover-foreground: 0 0% 95%; - - --card: 24 9.8% 10%; - --card-foreground: 0 0% 95%; - - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - - --primary: 142.1 70.6% 45.3%; - --primary-foreground: 144.9 80.4% 10%; - - --secondary: 240 3.7% 15.9%; - --secondary-foreground: 0 0% 98%; - - --accent: 12 6.5% 15.1%; - --accent-foreground: 0 0% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 85.7% 97.3%; - - --ring: 142.4 71.8% 29.2%; - } - - .theme-blue { - --background: 0 0% 100%; - --foreground: 222.2 84% 4.9%; - - --muted: 210 40% 96.1%; - --muted-foreground: 215.4 16.3% 46.9%; - - --popover: 0 0% 100%; - --popover-foreground: 222.2 84% 4.9%; - - --card: 0 0% 100%; - --card-foreground: 222.2 84% 4.9%; - - --border: 214.3 31.8% 91.4%; - --input: 214.3 31.8% 91.4%; - - --primary: 221.2 83.2% 53.3%; - --primary-foreground: 210 40% 98%; - - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - - --accent: 210 40% 96.1%; - --accent-foreground: 222.2 47.4% 11.2%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 210 40% 98%; - - --ring: 221.2 83.2% 53.3%; - - --radius: 0.5rem; - } - - .dark .theme-blue { - --background: 222.2 84% 4.9%; - --foreground: 210 40% 98%; - - --muted: 217.2 32.6% 17.5%; - --muted-foreground: 215 20.2% 65.1%; - - --popover: 222.2 84% 4.9%; - --popover-foreground: 210 40% 98%; - - --card: 222.2 84% 4.9%; - --card-foreground: 210 40% 98%; - - --border: 217.2 32.6% 17.5%; - --input: 217.2 32.6% 17.5%; - - --primary: 217.2 91.2% 59.8%; - --primary-foreground: 222.2 47.4% 11.2%; - - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - - --accent: 217.2 32.6% 17.5%; - --accent-foreground: 210 40% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 40% 98%; - - --ring: 224.3 76.3% 48%; - } - - .theme-yellow { - --background: 0 0% 100%; - --foreground: 20 14.3% 4.1%; - - --muted: 60 4.8% 95.9%; - --muted-foreground: 25 5.3% 44.7%; - - --popover: 0 0% 100%; - --popover-foreground: 20 14.3% 4.1%; - - --card: 0 0% 100%; - --card-foreground: 20 14.3% 4.1%; - - --border: 20 5.9% 90%; - --input: 20 5.9% 90%; - - --primary: 47.9 95.8% 53.1%; - --primary-foreground: 26 83.3% 14.1%; - - --secondary: 60 4.8% 95.9%; - --secondary-foreground: 24 9.8% 10%; - - --accent: 60 4.8% 95.9%; - --accent-foreground: 24 9.8% 10%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 60 9.1% 97.8%; - - --ring: 20 14.3% 4.1%; - - --radius: 0.5rem; - } - - .dark .theme-yellow { - --background: 20 14.3% 4.1%; - --foreground: 60 9.1% 97.8%; - - --muted: 12 6.5% 15.1%; - --muted-foreground: 24 5.4% 63.9%; - - --popover: 20 14.3% 4.1%; - --popover-foreground: 60 9.1% 97.8%; - - --card: 20 14.3% 4.1%; - --card-foreground: 60 9.1% 97.8%; - - --border: 12 6.5% 15.1%; - --input: 12 6.5% 15.1%; - - --primary: 47.9 95.8% 53.1%; - --primary-foreground: 26 83.3% 14.1%; - - --secondary: 12 6.5% 15.1%; - --secondary-foreground: 60 9.1% 97.8%; - - --accent: 12 6.5% 15.1%; - --accent-foreground: 60 9.1% 97.8%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 60 9.1% 97.8%; - - --ring: 35.5 91.7% 32.9%; - } - - .theme-violet { - --background: 0 0% 100%; - --foreground: 224 71.4% 4.1%; - - --muted: 220 14.3% 95.9%; - --muted-foreground: 220 8.9% 46.1%; - - --popover: 0 0% 100%; - --popover-foreground: 224 71.4% 4.1%; - - --card: 0 0% 100%; - --card-foreground: 224 71.4% 4.1%; - - --border: 220 13% 91%; - --input: 220 13% 91%; - - --primary: 262.1 83.3% 57.8%; - --primary-foreground: 210 20% 98%; - - --secondary: 220 14.3% 95.9%; - --secondary-foreground: 220.9 39.3% 11%; - - --accent: 220 14.3% 95.9%; - --accent-foreground: 220.9 39.3% 11%; - - --destructive: 0 72.22% 50.59%; - --destructive-foreground: 210 20% 98%; - - --ring: 262.1 83.3% 57.8%; - - --radius: 0.5rem; - } - - .dark .theme-violet { - --background: 224 71.4% 4.1%; - --foreground: 210 20% 98%; - - --muted: 215 27.9% 16.9%; - --muted-foreground: 217.9 10.6% 64.9%; - - --popover: 224 71.4% 4.1%; - --popover-foreground: 210 20% 98%; - - --card: 224 71.4% 4.1%; - --card-foreground: 210 20% 98%; - - --border: 215 27.9% 16.9%; - --input: 215 27.9% 16.9%; - - --primary: 263.4 70% 50.4%; - --primary-foreground: 210 20% 98%; - - --secondary: 215 27.9% 16.9%; - --secondary-foreground: 210 20% 98%; - - --accent: 215 27.9% 16.9%; - --accent-foreground: 210 20% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 20% 98%; - - --ring: 263.4 70% 50.4%; - } \ No newline at end of file diff --git a/sites/docs/static/registry/themes/gray.json b/sites/docs/static/registry/themes/gray.json deleted file mode 100644 index e217981360..0000000000 --- a/sites/docs/static/registry/themes/gray.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "gray", - "label": "Gray", - "cssVars": { - "light": { - "background": "0 0% 100%", - "foreground": "224 71.4% 4.1%", - "card": "0 0% 100%", - "card-foreground": "224 71.4% 4.1%", - "popover": "0 0% 100%", - "popover-foreground": "224 71.4% 4.1%", - "primary": "220.9 39.3% 11%", - "primary-foreground": "210 20% 98%", - "secondary": "220 14.3% 95.9%", - "secondary-foreground": "220.9 39.3% 11%", - "muted": "220 14.3% 95.9%", - "muted-foreground": "220 8.9% 46.1%", - "accent": "220 14.3% 95.9%", - "accent-foreground": "220.9 39.3% 11%", - "destructive": "0 84.2% 60.2%", - "destructive-foreground": "210 20% 98%", - "border": "220 13% 91%", - "input": "220 13% 91%", - "ring": "224 71.4% 4.1%" - }, - "dark": { - "background": "224 71.4% 4.1%", - "foreground": "210 20% 98%", - "card": "224 71.4% 4.1%", - "card-foreground": "210 20% 98%", - "popover": "224 71.4% 4.1%", - "popover-foreground": "210 20% 98%", - "primary": "210 20% 98%", - "primary-foreground": "220.9 39.3% 11%", - "secondary": "215 27.9% 16.9%", - "secondary-foreground": "210 20% 98%", - "muted": "215 27.9% 16.9%", - "muted-foreground": "217.9 10.6% 64.9%", - "accent": "215 27.9% 16.9%", - "accent-foreground": "210 20% 98%", - "destructive": "0 62.8% 30.6%", - "destructive-foreground": "210 20% 98%", - "border": "215 27.9% 16.9%", - "input": "215 27.9% 16.9%", - "ring": "216 12.2% 83.9%" - } - } -} diff --git a/sites/docs/static/registry/themes/neutral.json b/sites/docs/static/registry/themes/neutral.json deleted file mode 100644 index 49e0c110c1..0000000000 --- a/sites/docs/static/registry/themes/neutral.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "neutral", - "label": "Neutral", - "cssVars": { - "light": { - "background": "0 0% 100%", - "foreground": "0 0% 3.9%", - "card": "0 0% 100%", - "card-foreground": "0 0% 3.9%", - "popover": "0 0% 100%", - "popover-foreground": "0 0% 3.9%", - "primary": "0 0% 9%", - "primary-foreground": "0 0% 98%", - "secondary": "0 0% 96.1%", - "secondary-foreground": "0 0% 9%", - "muted": "0 0% 96.1%", - "muted-foreground": "0 0% 45.1%", - "accent": "0 0% 96.1%", - "accent-foreground": "0 0% 9%", - "destructive": "0 84.2% 60.2%", - "destructive-foreground": "0 0% 98%", - "border": "0 0% 89.8%", - "input": "0 0% 89.8%", - "ring": "0 0% 3.9%" - }, - "dark": { - "background": "0 0% 3.9%", - "foreground": "0 0% 98%", - "card": "0 0% 3.9%", - "card-foreground": "0 0% 98%", - "popover": "0 0% 3.9%", - "popover-foreground": "0 0% 98%", - "primary": "0 0% 98%", - "primary-foreground": "0 0% 9%", - "secondary": "0 0% 14.9%", - "secondary-foreground": "0 0% 98%", - "muted": "0 0% 14.9%", - "muted-foreground": "0 0% 63.9%", - "accent": "0 0% 14.9%", - "accent-foreground": "0 0% 98%", - "destructive": "0 62.8% 30.6%", - "destructive-foreground": "0 0% 98%", - "border": "0 0% 14.9%", - "input": "0 0% 14.9%", - "ring": "0 0% 83.1%" - } - } -} diff --git a/sites/docs/static/registry/themes/slate.json b/sites/docs/static/registry/themes/slate.json deleted file mode 100644 index 1b69acc7b6..0000000000 --- a/sites/docs/static/registry/themes/slate.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "slate", - "label": "Slate", - "cssVars": { - "light": { - "background": "0 0% 100%", - "foreground": "222.2 84% 4.9%", - "card": "0 0% 100%", - "card-foreground": "222.2 84% 4.9%", - "popover": "0 0% 100%", - "popover-foreground": "222.2 84% 4.9%", - "primary": "222.2 47.4% 11.2%", - "primary-foreground": "210 40% 98%", - "secondary": "210 40% 96.1%", - "secondary-foreground": "222.2 47.4% 11.2%", - "muted": "210 40% 96.1%", - "muted-foreground": "215.4 16.3% 46.9%", - "accent": "210 40% 96.1%", - "accent-foreground": "222.2 47.4% 11.2%", - "destructive": "0 84.2% 60.2%", - "destructive-foreground": "210 40% 98%", - "border": "214.3 31.8% 91.4%", - "input": "214.3 31.8% 91.4%", - "ring": "222.2 84% 4.9%" - }, - "dark": { - "background": "222.2 84% 4.9%", - "foreground": "210 40% 98%", - "card": "222.2 84% 4.9%", - "card-foreground": "210 40% 98%", - "popover": "222.2 84% 4.9%", - "popover-foreground": "210 40% 98%", - "primary": "210 40% 98%", - "primary-foreground": "222.2 47.4% 11.2%", - "secondary": "217.2 32.6% 17.5%", - "secondary-foreground": "210 40% 98%", - "muted": "217.2 32.6% 17.5%", - "muted-foreground": "215 20.2% 65.1%", - "accent": "217.2 32.6% 17.5%", - "accent-foreground": "210 40% 98%", - "destructive": "0 62.8% 30.6%", - "destructive-foreground": "210 40% 98%", - "border": "217.2 32.6% 17.5%", - "input": "217.2 32.6% 17.5%", - "ring": "212.7 26.8% 83.9%" - } - } -} diff --git a/sites/docs/static/registry/themes/stone.json b/sites/docs/static/registry/themes/stone.json deleted file mode 100644 index 60c14cd2cb..0000000000 --- a/sites/docs/static/registry/themes/stone.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "stone", - "label": "Stone", - "cssVars": { - "light": { - "background": "0 0% 100%", - "foreground": "20 14.3% 4.1%", - "card": "0 0% 100%", - "card-foreground": "20 14.3% 4.1%", - "popover": "0 0% 100%", - "popover-foreground": "20 14.3% 4.1%", - "primary": "24 9.8% 10%", - "primary-foreground": "60 9.1% 97.8%", - "secondary": "60 4.8% 95.9%", - "secondary-foreground": "24 9.8% 10%", - "muted": "60 4.8% 95.9%", - "muted-foreground": "25 5.3% 44.7%", - "accent": "60 4.8% 95.9%", - "accent-foreground": "24 9.8% 10%", - "destructive": "0 84.2% 60.2%", - "destructive-foreground": "60 9.1% 97.8%", - "border": "20 5.9% 90%", - "input": "20 5.9% 90%", - "ring": "20 14.3% 4.1%" - }, - "dark": { - "background": "20 14.3% 4.1%", - "foreground": "60 9.1% 97.8%", - "card": "20 14.3% 4.1%", - "card-foreground": "60 9.1% 97.8%", - "popover": "20 14.3% 4.1%", - "popover-foreground": "60 9.1% 97.8%", - "primary": "60 9.1% 97.8%", - "primary-foreground": "24 9.8% 10%", - "secondary": "12 6.5% 15.1%", - "secondary-foreground": "60 9.1% 97.8%", - "muted": "12 6.5% 15.1%", - "muted-foreground": "24 5.4% 63.9%", - "accent": "12 6.5% 15.1%", - "accent-foreground": "60 9.1% 97.8%", - "destructive": "0 62.8% 30.6%", - "destructive-foreground": "60 9.1% 97.8%", - "border": "12 6.5% 15.1%", - "input": "12 6.5% 15.1%", - "ring": "24 5.7% 82.9%" - } - } -} diff --git a/sites/docs/static/registry/themes/zinc.json b/sites/docs/static/registry/themes/zinc.json deleted file mode 100644 index d3d6482a46..0000000000 --- a/sites/docs/static/registry/themes/zinc.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "zinc", - "label": "Zinc", - "cssVars": { - "light": { - "background": "0 0% 100%", - "foreground": "240 10% 3.9%", - "card": "0 0% 100%", - "card-foreground": "240 10% 3.9%", - "popover": "0 0% 100%", - "popover-foreground": "240 10% 3.9%", - "primary": "240 5.9% 10%", - "primary-foreground": "0 0% 98%", - "secondary": "240 4.8% 95.9%", - "secondary-foreground": "240 5.9% 10%", - "muted": "240 4.8% 95.9%", - "muted-foreground": "240 3.8% 46.1%", - "accent": "240 4.8% 95.9%", - "accent-foreground": "240 5.9% 10%", - "destructive": "0 84.2% 60.2%", - "destructive-foreground": "0 0% 98%", - "border": "240 5.9% 90%", - "input": "240 5.9% 90%", - "ring": "240 10% 3.9%" - }, - "dark": { - "background": "240 10% 3.9%", - "foreground": "0 0% 98%", - "card": "240 10% 3.9%", - "card-foreground": "0 0% 98%", - "popover": "240 10% 3.9%", - "popover-foreground": "0 0% 98%", - "primary": "0 0% 98%", - "primary-foreground": "240 5.9% 10%", - "secondary": "240 3.7% 15.9%", - "secondary-foreground": "0 0% 98%", - "muted": "240 3.7% 15.9%", - "muted-foreground": "240 5% 64.9%", - "accent": "240 3.7% 15.9%", - "accent-foreground": "0 0% 98%", - "destructive": "0 62.8% 30.6%", - "destructive-foreground": "0 0% 98%", - "border": "240 3.7% 15.9%", - "input": "240 3.7% 15.9%", - "ring": "240 4.9% 83.9%" - } - } -} diff --git a/sites/docs/static/schema.json b/sites/docs/static/schema.json deleted file mode 100644 index dd40ec04b4..0000000000 --- a/sites/docs/static/schema.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "properties": { - "style": { - "type": "string", - "enum": ["default", "new-york"] - }, - "tailwind": { - "type": "object", - "properties": { - "config": { - "type": "string" - }, - "css": { - "type": "string" - }, - "baseColor": { - "type": "string" - } - }, - "required": ["config", "css", "baseColor"] - }, - "aliases": { - "type": "object", - "properties": { - "utils": { - "type": "string" - }, - "components": { - "type": "string" - } - }, - "required": ["utils", "components"] - } - }, - "required": ["style", "tailwind", "aliases"] -} diff --git a/sites/docs/svelte.config.js b/sites/docs/svelte.config.js deleted file mode 100644 index 1f417519fd..0000000000 --- a/sites/docs/svelte.config.js +++ /dev/null @@ -1,63 +0,0 @@ -import { dirname, join } from "node:path"; -import { fileURLToPath } from "node:url"; -import adapter from "@sveltejs/adapter-cloudflare"; -import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; -import { mdsx } from "mdsx"; -import { mdsxConfig } from "./mdsx.config.js"; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - preprocess: [ - mdsx(mdsxConfig), - vitePreprocess({ - style: { - css: { - postcss: join(__dirname, "postcss.config.cjs"), - }, - }, - }), - ], - extensions: [".svelte", ".md"], - - kit: { - // https://kit.svelte.dev/docs/adapter-cloudflare#options - adapter: adapter({ - routes: { - // Since we have so many static assets, we'll manually define - // the globs for them to save our 100 include/exclude limit - exclude: [ - "", - // prerendered content - "/docs/*", - "/blocks/*", - "/blocks.html", - "/docs.html", - // static - "/registry/*", - "/fonts/*", - "/avatars/*", - "/images/*", - "/android-chrome-192x192.png", - "/android-chrome-512x512.png", - "/apple-touch-icon.png", - "/favicon-16x16.png", - "/favicon-32x32.png", - "/favicon.ico", - "/og.png", - "/schema.json", - "/site.webmanifest", - ], - }, - }), - prerender: { - handleMissingId: (details) => { - if (details.id === "#") return; - console.warn(details.message); - }, - }, - }, -}; - -export default config; diff --git a/sites/docs/tailwind.config.js b/sites/docs/tailwind.config.js deleted file mode 100644 index 698e0de5df..0000000000 --- a/sites/docs/tailwind.config.js +++ /dev/null @@ -1,64 +0,0 @@ -import { fontFamily } from "tailwindcss/defaultTheme"; - -/** @type {import('tailwindcss').Config} */ -const config = { - darkMode: ["class"], - content: ["./src/**/*.{html,js,svelte,ts}"], - safelist: ["dark"], - theme: { - container: { - center: true, - padding: "2rem", - screens: { - "2xl": "1400px", - }, - }, - extend: { - colors: { - border: "hsl(var(--border) / )", - input: "hsl(var(--input) / )", - ring: "hsl(var(--ring))", - background: "hsl(var(--background) / )", - foreground: "hsl(var(--foreground) / )", - primary: { - DEFAULT: "hsl(var(--primary) / )", - foreground: "hsl(var(--primary-foreground) / )", - }, - secondary: { - DEFAULT: "hsl(var(--secondary) / )", - foreground: "hsl(var(--secondary-foreground) / )", - }, - destructive: { - DEFAULT: "hsl(var(--destructive) / )", - foreground: "hsl(var(--destructive-foreground) / )", - }, - muted: { - DEFAULT: "hsl(var(--muted) / )", - foreground: "hsl(var(--muted-foreground) / )", - }, - accent: { - DEFAULT: "hsl(var(--accent) / )", - foreground: "hsl(var(--accent-foreground) / )", - }, - popover: { - DEFAULT: "hsl(var(--popover) / )", - foreground: "hsl(var(--popover-foreground) / )", - }, - card: { - DEFAULT: "hsl(var(--card) / )", - foreground: "hsl(var(--card-foreground) / )", - }, - }, - borderRadius: { - lg: "var(--radius)", - md: "calc(var(--radius) - 2px)", - sm: "calc(var(--radius) - 4px)", - }, - fontFamily: { - sans: ["geist-sans", ...fontFamily.sans], - }, - }, - }, -}; - -export default config; diff --git a/sites/docs/tests/test.ts b/sites/docs/tests/test.ts deleted file mode 100644 index 5076f52178..0000000000 --- a/sites/docs/tests/test.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { expect, test } from "@playwright/test"; - -test("index page has expected h1", async ({ page }) => { - await page.goto("/"); - await expect(page.getByRole("heading", { name: "Welcome to SvelteKit" })).toBeVisible(); -}); diff --git a/sites/docs/tsconfig.json b/sites/docs/tsconfig.json deleted file mode 100644 index 5684e238a1..0000000000 --- a/sites/docs/tsconfig.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "extends": "./.svelte-kit/tsconfig.json", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "moduleResolution": "NodeNext", - "module": "NodeNext", - "verbatimModuleSyntax": true - }, - "include": [ - // SvelteKit defaults - "./.svelte-kit/ambient.d.ts", - "./.svelte-kit/non-ambient.d.ts", - "./.svelte-kit/types/**/$types.d.ts", - "./vite.config.js", - "./vite.config.ts", - "./src/**/*.js", - "./src/**/*.ts", - "./src/**/*.svelte", - "./tests/**/*.js", - "./tests/**/*.ts", - "./tests/**/*.svelte", - // Additions - "./mdsx.config.js" - ], - "exclude": [ - "./node_modules/**", - "./src/service-worker.js", - "./src/service-worker.ts", - "./src/service-worker.d.ts" - ] -} diff --git a/sites/docs/vite.config.ts b/sites/docs/vite.config.ts deleted file mode 100644 index 3f0a09d13f..0000000000 --- a/sites/docs/vite.config.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { sveltekit } from "@sveltejs/kit/vite"; -import { enhancedImages } from "@sveltejs/enhanced-img"; -import { defineConfig } from "vitest/config"; - -export default defineConfig({ - plugins: [enhancedImages(), sveltekit()], - test: { - include: ["src/**/*.{test,spec}.{js,ts}"], - }, -});