Skip to content

Commit

Permalink
maybe we try again
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Jul 22, 2024
1 parent 85aebe9 commit 85d6bbc
Show file tree
Hide file tree
Showing 49 changed files with 62 additions and 62 deletions.
8 changes: 4 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ CHANGELOG.md


# docs site specific
apps/www/src/__registry__/*
apps/www/other/themes/dark.json
apps/www/other/themes/light.json
apps/www/static
sites/docs/src/__registry__/*
sites/docs/other/themes/dark.json
sites/docs/other/themes/light.json
sites/docs/static

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img align="center" src="https://raw.githubusercontent.com/huntabyte/shadcn-svelte/main/apps/www/static/android-chrome-192x192.png" height="96" />
<img align="center" src="https://raw.githubusercontent.com/huntabyte/shadcn-svelte/main/sites/docs/static/android-chrome-192x192.png" height="96" />
<h1 align="center">
shadcn-svelte
</h1>
Expand All @@ -13,7 +13,7 @@
Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. **Use this to build your own component library**.

![hero](apps/www/static/og.png)
![hero](sites/docs/static/og.png)

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pnpm-lock.yaml
package-lock.json
yarn.lock

apps/www/src/routes/api/components/components.json
sites/docs/src/routes/api/components/components.json
src/routes/api/components/components.json
static/site.webmanifest
.vercel
Expand Down
4 changes: 2 additions & 2 deletions sites/docs/src/content/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ It supports both vertical and horizontal scrolling, and is designed to provide a
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).

<ComponentPreview name="resizable-demo">

<div />

</ComponentPreview>
Expand Down Expand Up @@ -359,7 +359,7 @@ Inside the components that use transitions/animations, you'll need to remove the
</AlertDialog.Portal>
```

If you're unsure which specific classes should be removed, you can reference the components in the [repo](https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/) to see the changes.
If you're unsure which specific classes should be removed, you can reference the components in the [repo](https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/) to see the changes.

### Events

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Accordion
description: A vertically stacked set of interactive headings that each reveal a section of content.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/accordion
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/accordion
bits: https://www.bits-ui.com/docs/components/accordion
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/alert-dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Alert Dialog
description: A modal dialog that interrupts the user with important content and expects a response.
featured: true
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/alert-dialog
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/alert-dialog
bits: https://www.bits-ui.com/docs/components/alert-dialog
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Alert
description: Displays a callout for user attention.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/alert
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/alert
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/aspect-ratio.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Aspect Ratio
description: Displays content within a desired ratio.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/aspect-ratio
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/aspect-ratio
bits: https://www.bits-ui.com/docs/components/aspect-ratio
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Avatar
description: An image element with a fallback for representing the user.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/avatar
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/avatar
bits: https://www.bits-ui.com/docs/components/avatar
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Badge
description: Displays a badge or a component that looks like a badge.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/badge
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/badge
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/breadcrumb.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Breadcrumb
description: Displays the path to the current resource using a hierarchy of links.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/breadcrumb
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/breadcrumb
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Button
description: Displays a button or a component that looks like a button.
featured: true
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/button
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/button
bits: https://www.bits-ui.com/docs/components/button
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Calendar
description: A calendar component that allows users to select dates.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/calendar
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/calendar
bits: https://www.bits-ui.com/docs/components/calendar
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Card
description: Displays a card with header, content, and footer.
featured: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/card
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/card
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Carousel
description: A carousel with motion and swipe built using Embla.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/carousel
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/
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Checkbox
description: A control that allows the user to toggle between checked and not checked.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/checkbox
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/checkbox
bits: https://www.bits-ui.com/docs/components/checkbox
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/collapsible.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Collapsible
description: An interactive component which expands/collapses a panel.
component: true
featured: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/collapsible
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/collapsible
bits: https://www.bits-ui.com/docs/components/collapsible
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Command
description: Fast, composable, unstyled command menu for Svelte.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/command
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/command
bits: https://github.com/huntabyte/cmdk-sv
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/context-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Context Menu
description: Displays a menu to the user — such as a set of actions or functions — triggered by right click.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/context-menu
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/context-menu
bits: https://www.bits-ui.com/docs/components/context-menu
---

Expand Down
4 changes: 2 additions & 2 deletions sites/docs/src/content/components/data-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Data Table
description: Powerful table and datagrids built using Svelte Headless Table.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/example/data-table-demo.svelte
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/example/data-table-demo.svelte
---

<script>
Expand Down Expand Up @@ -1453,7 +1453,7 @@ To accommodate the checkbox, we'll need to update our table styles. We'll also a
</Table.Root>
</div>
<div class="flex items-center justify-end space-x-4 py-4">
<div class="flex-1 text-sm text-muted-foreground">
<div class="text-muted-foreground flex-1 text-sm">
{Object.keys($selectedDataIds).length} of{" "}
{$rows.length} row(s) selected.
</div>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Date Picker
description: A date picker component with range and presets.
component: true
source: https://github.com/huntabyte/shadcn-svelte/blob/main/apps/www/src/lib/registry/default/example/date-picker-demo.svelte
source: https://github.com/huntabyte/shadcn-svelte/blob/main/sites/docs/src/lib/registry/default/example/date-picker-demo.svelte
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Dialog
description: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
component: true
featured: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/dialog
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/dialog
bits: https://www.bits-ui.com/docs/components/dialog
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Drawer
description: A drawer component for Svelte.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/drawer
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/drawer
bits: https://www.vaul-svelte.com
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/dropdown-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Dropdown Menu
description: Displays a menu to the user — such as a set of actions or functions — triggered by a button.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/dropdown-menu
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/dropdown-menu
bits: https://www.bits-ui.com/docs/components/dropdown-menu
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/hover-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Hover Card
description: For sighted users to preview content available behind a link.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/hover-card
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/hover-card
bits: https://www.bits-ui.com/docs/components/link-preview
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Input
description: Displays a form input field or a component that looks like an input field.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/input
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/input
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Label
description: Renders an accessible label associated with controls.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/label
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/label
bits: https://www.bits-ui.com/docs/components/label
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/menubar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Menubar
description: A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/menubar
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/menubar
bits: https://www.bits-ui.com/docs/components/menubar
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Pagination
description: Pagination with page navigation, next and previous links.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/pagination
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/pagination
bits: https://www.bits-ui.com/docs/components/pagination
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/popover.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Popover
description: Displays rich content in a portal, triggered by a button.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/popover
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/popover
bits: https://www.bits-ui.com/docs/components/popover
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Progress
description: Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/progress
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/progress
bits: https://www.bits-ui.com/docs/components/progress
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/radio-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Radio Group
description: A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/radio-group
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/radio-group
bits: https://www.bits-ui.com/docs/components/radio-group
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/range-calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Range Calendar
description: A calendar component that allows users to select a range of dates.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/range-calendar
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/range-calendar
bits: https://www.bits-ui.com/docs/components/range-calendar
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/resizable.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Resizable
description: Accessible resizable panel groups and layouts with keyboard support.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/resizable
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/resizable
bits: https://paneforge.com
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/scroll-area.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Scroll Area
description: Augments native scroll functionality for custom, cross-browser styling.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/scroll-area
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/scroll-area
bits: https://bits-ui.com/docs/components/scroll-area
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Select
description: Displays a list of options for the user to pick from—triggered by a button.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/select
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/select
bits: https://www.bits-ui.com/docs/components/select
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/separator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Separator
description: Visually or semantically separates content.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/separator
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/separator
bits: https://www.bits-ui.com/docs/components/separator
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Sheet
description: Extends the Dialog component to display content that complements the main content of the screen.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/sheet
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/sheet
bits: https://www.bits-ui.com/docs/components/dialog
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/skeleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Skeleton
description: Use to show a placeholder while content is loading.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/skeleton
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/skeleton
---

<script>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Slider
description: An input where the user selects a value from within a given range.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/slider
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/slider
bits: https://www.bits-ui.com/docs/components/slider
---

Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/content/components/sonner.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Sonner
description: An opinionated toast component for Svelte.
component: true
source: https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/sonner
source: https://github.com/huntabyte/shadcn-svelte/tree/main/sites/docs/src/lib/registry/default/ui/sonner
---

<script>
Expand Down
Loading

0 comments on commit 85d6bbc

Please sign in to comment.