From 647657d13a84b200245db1286084a32e561ee583 Mon Sep 17 00:00:00 2001 From: Carlos Daniel Vilaseca Illnait Date: Fri, 3 May 2024 20:42:54 -0400 Subject: [PATCH] feat: sonner component slots with default icons --- apps/www/package.json | 2 +- .../registry/default/ui/sonner/sonner.svelte | 13 ++++- .../registry/new-york/ui/sonner/sonner.svelte | 13 ++++- .../registry/styles/default-js/sonner.json | 3 +- .../registry/styles/default/sonner.json | 3 +- .../registry/styles/new-york-js/sonner.json | 3 +- .../registry/styles/new-york/sonner.json | 3 +- pnpm-lock.yaml | 51 +++++++++++++++++++ 8 files changed, 84 insertions(+), 7 deletions(-) diff --git a/apps/www/package.json b/apps/www/package.json index 9416892a6..c0ec5c6cd 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -86,4 +86,4 @@ "vaul-svelte": "^0.0.6", "zod": "^3.22.4" } -} \ No newline at end of file +} diff --git a/apps/www/src/lib/registry/default/ui/sonner/sonner.svelte b/apps/www/src/lib/registry/default/ui/sonner/sonner.svelte index 7d5b2f144..f3e7adcc6 100644 --- a/apps/www/src/lib/registry/default/ui/sonner/sonner.svelte +++ b/apps/www/src/lib/registry/default/ui/sonner/sonner.svelte @@ -1,4 +1,9 @@ \n\n\n" + "content": "\n\n\n\t\n\t\n\t\n\t\n\t\n\n" } ], "type": "components:ui" diff --git a/apps/www/static/registry/styles/default/sonner.json b/apps/www/static/registry/styles/default/sonner.json index 1fe97bcdd..a5f40324c 100644 --- a/apps/www/static/registry/styles/default/sonner.json +++ b/apps/www/static/registry/styles/default/sonner.json @@ -1,6 +1,7 @@ { "name": "sonner", "dependencies": [ + "lucide-svelte", "svelte-sonner", "mode-watcher" ], @@ -12,7 +13,7 @@ }, { "name": "sonner.svelte", - "content": "\n\n\n" + "content": "\n\n\n\t\n\t\n\t\n\t\n\t\n\n" } ], "type": "components:ui" diff --git a/apps/www/static/registry/styles/new-york-js/sonner.json b/apps/www/static/registry/styles/new-york-js/sonner.json index 20affc34e..a0a5bf857 100644 --- a/apps/www/static/registry/styles/new-york-js/sonner.json +++ b/apps/www/static/registry/styles/new-york-js/sonner.json @@ -1,6 +1,7 @@ { "name": "sonner", "dependencies": [ + "lucide-svelte", "svelte-sonner", "mode-watcher" ], @@ -12,7 +13,7 @@ }, { "name": "sonner.svelte", - "content": "\n\n\n" + "content": "\n\n\n\t\n\t\n\t\n\t\n\t\n\n" } ], "type": "components:ui" diff --git a/apps/www/static/registry/styles/new-york/sonner.json b/apps/www/static/registry/styles/new-york/sonner.json index 1fe97bcdd..a5f40324c 100644 --- a/apps/www/static/registry/styles/new-york/sonner.json +++ b/apps/www/static/registry/styles/new-york/sonner.json @@ -1,6 +1,7 @@ { "name": "sonner", "dependencies": [ + "lucide-svelte", "svelte-sonner", "mode-watcher" ], @@ -12,7 +13,7 @@ }, { "name": "sonner.svelte", - "content": "\n\n\n" + "content": "\n\n\n\t\n\t\n\t\n\t\n\t\n\n" } ], "type": "components:ui" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 36412ca33..69328ca71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,9 +111,27 @@ importers: apps/playground-ts: dependencies: + clsx: + specifier: ^2.1.0 + version: 2.1.0 + lucide-svelte: + specifier: ^0.378.0 + version: 0.378.0(svelte@4.2.12) + mode-watcher: + specifier: ^0.3.0 + version: 0.3.0(svelte@4.2.12) shadcn-svelte: specifier: workspace:^ version: link:../../packages/cli + svelte-sonner: + specifier: ^0.3.22 + version: 0.3.22(svelte@4.2.12) + tailwind-merge: + specifier: ^2.3.0 + version: 2.3.0 + tailwind-variants: + specifier: ^0.1.20 + version: 0.1.20(tailwindcss@3.4.1) devDependencies: '@sveltejs/adapter-auto': specifier: ^3.1.1 @@ -480,6 +498,10 @@ packages: resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==} engines: {node: '>=6.9.0'} + '@babel/runtime@7.24.5': + resolution: {integrity: sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==} + engines: {node: '>=6.9.0'} + '@babel/types@7.24.0': resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==} engines: {node: '>=6.9.0'} @@ -3543,6 +3565,11 @@ packages: peerDependencies: svelte: ^3 || ^4 || ^5.0.0-next.42 + lucide-svelte@0.378.0: + resolution: {integrity: sha512-T7hV1sfOc94AWE5GOJ6r9wGEsR4h4TJr8d4Z0sM8O0e3IBcmeIvEGRAA6jCp7NGy4PeGrn5Tju6Y2JwJQntNrQ==} + peerDependencies: + svelte: ^3 || ^4 || ^5.0.0-next.42 + magic-string@0.30.8: resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} engines: {node: '>=12'} @@ -3779,6 +3806,11 @@ packages: peerDependencies: svelte: ^4.0.0 + mode-watcher@0.3.0: + resolution: {integrity: sha512-k8jjuTx94HaaRKWO6JDf8wL761hFatrTIHJKl+E+3JWcnv+GnMBH062zcLsy0lbCI3n7RZxxHaWi66auFnUO4g==} + peerDependencies: + svelte: ^4.0.0 + mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} @@ -4790,6 +4822,9 @@ packages: tailwind-merge@2.2.1: resolution: {integrity: sha512-o+2GTLkthfa5YUt4JxPfzMIpQzZ3adD1vLVkvKE1Twl9UAhGsEbIZhHHZVRttyW177S8PDJI3bTQNaebyofK3Q==} + tailwind-merge@2.3.0: + resolution: {integrity: sha512-vkYrLpIP+lgR0tQCG6AP7zZXCTLc1Lnv/CCRT3BqJ9CZ3ui2++GPaGb1x/ILsINIMSYqqvrpqjUFsMNLlW99EA==} + tailwind-variants@0.1.20: resolution: {integrity: sha512-AMh7x313t/V+eTySKB0Dal08RHY7ggYK0MSn/ad8wKWOrDUIzyiWNayRUm2PIJ4VRkvRnfNuyRuKbLV3EN+ewQ==} engines: {node: '>=16.x', pnpm: '>=7.x'} @@ -5452,6 +5487,10 @@ snapshots: dependencies: regenerator-runtime: 0.14.1 + '@babel/runtime@7.24.5': + dependencies: + regenerator-runtime: 0.14.1 + '@babel/types@7.24.0': dependencies: '@babel/helper-string-parser': 7.23.4 @@ -8900,6 +8939,10 @@ snapshots: dependencies: svelte: 4.2.12 + lucide-svelte@0.378.0(svelte@4.2.12): + dependencies: + svelte: 4.2.12 + magic-string@0.30.8: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 @@ -9360,6 +9403,10 @@ snapshots: dependencies: svelte: 4.2.12 + mode-watcher@0.3.0(svelte@4.2.12): + dependencies: + svelte: 4.2.12 + mri@1.2.0: {} mrmime@2.0.0: {} @@ -10408,6 +10455,10 @@ snapshots: dependencies: '@babel/runtime': 7.24.0 + tailwind-merge@2.3.0: + dependencies: + '@babel/runtime': 7.24.5 + tailwind-variants@0.1.20(tailwindcss@3.4.1): dependencies: tailwind-merge: 1.14.0