From 7cc802244addc2e933a4b98c86d56a12275c4e7a Mon Sep 17 00:00:00 2001 From: aidanCQ Date: Mon, 26 Feb 2024 10:47:41 +0000 Subject: [PATCH] fix(): Add sonner dev dependency and fix story. --- package-lock.json | 10 ++++++---- package.json | 1 + stories/shadcn/sonner.stories.tsx | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f41964..d4b0c53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,6 @@ "react-day-picker": "^8.9.1", "react-hook-form": "^7.50.1", "react-resizable-panels": "^1.0.5", - "sonner": "^1.3.1", "tailwind-merge": "^2.1.0", "vaul": "^0.8.0", "zod": "^3.22.4" @@ -81,6 +80,7 @@ "rollup-plugin-terser": "^7.0.2", "semantic-release": "^22.0.12", "serve": "^14.2.1", + "sonner": "^1.4.1", "storybook": "^7.6.5", "tailwindcss-animate": "^1.0.7" }, @@ -88,6 +88,7 @@ "@tailwindcss/typography": "^0.5.10", "react": "^18.2.0", "react-dom": "^18.2.0", + "sonner": "^1.3.1", "tailwindcss": "^3.3.6", "tailwindcss-animate": "^1.0.7" } @@ -20669,9 +20670,10 @@ } }, "node_modules/sonner": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/sonner/-/sonner-1.3.1.tgz", - "integrity": "sha512-+rOAO56b2eI3q5BtgljERSn2umRk63KFIvgb2ohbZ5X+Eb5u+a/7/0ZgswYqgBMg8dyl7n6OXd9KasA8QF9ToA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sonner/-/sonner-1.4.1.tgz", + "integrity": "sha512-KJcFbMF+z2OMSJ9H+N6mrk/ffnEzuyLFlHoza/HQvNyiACoY958VtFdC7xD9D74ttzA+kcS1YIJOsNwbKWDsHw==", + "dev": true, "peerDependencies": { "react": "^18.0.0", "react-dom": "^18.0.0" diff --git a/package.json b/package.json index 48f8602..f94c3a6 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ "rollup-plugin-terser": "^7.0.2", "semantic-release": "^22.0.12", "serve": "^14.2.1", + "sonner": "^1.4.1", "storybook": "^7.6.5", "tailwindcss-animate": "^1.0.7" }, diff --git a/stories/shadcn/sonner.stories.tsx b/stories/shadcn/sonner.stories.tsx index a95615d..17fd20f 100644 --- a/stories/shadcn/sonner.stories.tsx +++ b/stories/shadcn/sonner.stories.tsx @@ -1,7 +1,7 @@ import type { Meta, StoryObj } from "@storybook/react"; import React from "react"; import { Button, SonnerToast } from "src"; -import sonner from 'sonner' +import * as sonner from 'sonner' const SonnerDemo = () => { return (