Skip to content

Commit

Permalink
feat: Drawer, Sonner, & Pagination (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Jan 2, 2024
1 parent 20c6bd6 commit db84fdb
Show file tree
Hide file tree
Showing 67 changed files with 1,972 additions and 60 deletions.
56 changes: 56 additions & 0 deletions apps/www/__registry__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,20 @@ export const Index = {
component: () => import("../src/lib/registry/default/example/dialog-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/dialog-demo.svelte"],
},
"drawer-demo": {
name: "drawer-demo",
type: "components:example",
registryDependencies: ["button","drawer"],
component: () => import("../src/lib/registry/default/example/drawer-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/drawer-demo.svelte"],
},
"drawer-dialog": {
name: "drawer-dialog",
type: "components:example",
registryDependencies: ["dialog","drawer","input","label","button"],
component: () => import("../src/lib/registry/default/example/drawer-dialog.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/drawer-dialog.svelte"],
},
"dropdown-menu-checkboxes": {
name: "dropdown-menu-checkboxes",
type: "components:example",
Expand Down Expand Up @@ -395,6 +409,13 @@ export const Index = {
component: () => import("../src/lib/registry/default/example/menubar-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/menubar-demo.svelte"],
},
"pagination-demo": {
name: "pagination-demo",
type: "components:example",
registryDependencies: ["pagination"],
component: () => import("../src/lib/registry/default/example/pagination-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/pagination-demo.svelte"],
},
"popover-demo": {
name: "popover-demo",
type: "components:example",
Expand Down Expand Up @@ -479,6 +500,13 @@ export const Index = {
component: () => import("../src/lib/registry/default/example/slider-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/slider-demo.svelte"],
},
"sonner-demo": {
name: "sonner-demo",
type: "components:example",
registryDependencies: ["button"],
component: () => import("../src/lib/registry/default/example/sonner-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/default/example/sonner-demo.svelte"],
},
"switch-demo": {
name: "switch-demo",
type: "components:example",
Expand Down Expand Up @@ -1040,6 +1068,20 @@ export const Index = {
component: () => import("../src/lib/registry/new-york/example/dialog-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/dialog-demo.svelte"],
},
"drawer-demo": {
name: "drawer-demo",
type: "components:example",
registryDependencies: ["button","drawer"],
component: () => import("../src/lib/registry/new-york/example/drawer-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/drawer-demo.svelte"],
},
"drawer-dialog": {
name: "drawer-dialog",
type: "components:example",
registryDependencies: ["dialog","drawer","input","label","button"],
component: () => import("../src/lib/registry/new-york/example/drawer-dialog.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/drawer-dialog.svelte"],
},
"dropdown-menu-checkboxes": {
name: "dropdown-menu-checkboxes",
type: "components:example",
Expand Down Expand Up @@ -1131,6 +1173,13 @@ export const Index = {
component: () => import("../src/lib/registry/new-york/example/menubar-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/menubar-demo.svelte"],
},
"pagination-demo": {
name: "pagination-demo",
type: "components:example",
registryDependencies: ["pagination"],
component: () => import("../src/lib/registry/new-york/example/pagination-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/pagination-demo.svelte"],
},
"popover-demo": {
name: "popover-demo",
type: "components:example",
Expand Down Expand Up @@ -1215,6 +1264,13 @@ export const Index = {
component: () => import("../src/lib/registry/new-york/example/slider-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/slider-demo.svelte"],
},
"sonner-demo": {
name: "sonner-demo",
type: "components:example",
registryDependencies: ["button"],
component: () => import("../src/lib/registry/new-york/example/sonner-demo.svelte").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/sonner-demo.svelte"],
},
"switch-demo": {
name: "switch-demo",
type: "components:example",
Expand Down
18 changes: 10 additions & 8 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,28 @@
},
"type": "module",
"dependencies": {
"@internationalized/date": "^3.5.0",
"@unovis/svelte": "^1.2.3",
"@unovis/ts": "^1.2.3",
"bits-ui": "0.11.5",
"clsx": "^2.0.0",
"@internationalized/date": "^3.5.1",
"@unovis/svelte": "^1.3.1",
"@unovis/ts": "^1.3.1",
"bits-ui": "0.13.0",
"clsx": "^2.1.0",
"cmdk-sv": "^0.0.12",
"d3-scale": "^4.0.2",
"esm-env": "^1.0.0",
"formsnap": "^0.4.1",
"formsnap": "^0.4.2",
"lucide-svelte": "^0.292.0",
"mode-watcher": "^0.1.2",
"nanoid": "^5.0.3",
"radix-icons-svelte": "^1.2.1",
"svelte-headless-table": "^0.17.7",
"svelte-legos": "^0.2.1",
"svelte-legos": "^0.2.2",
"svelte-local-storage-store": "^0.5.0",
"svelte-sonner": "^0.3.9",
"svelte-wrap-balancer": "^0.0.4",
"sveltekit-superforms": "^1.8.0",
"tailwind-merge": "^1.14.0",
"tailwind-variants": "^0.1.16"
"tailwind-variants": "^0.1.16",
"vaul-svelte": "^0.0.4"
},
"pnpm": {
"patchedDependencies": {
Expand Down
94 changes: 61 additions & 33 deletions apps/www/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion apps/www/scripts/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import type { Registry } from "../src/lib/registry";
const DEPENDENCIES = new Map<string, string[]>([
["bits-ui", []],
["formsnap", ["zod", "sveltekit-superforms"]],
["cmdk-sv", ["bits-ui"]]
["cmdk-sv", ["bits-ui"]],
["svelte-sonner", []],
["vaul-svelte", []]
]);
// these are required dependencies for particular components
// where the dependencies are not specified in the import declarations of the component file
Expand Down
Loading

1 comment on commit db84fdb

@vercel
Copy link

@vercel vercel bot commented on db84fdb Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.