From 5813a733a62b921f33b813a2145dd2b4d51e2279 Mon Sep 17 00:00:00 2001 From: endigo9740 Date: Thu, 4 Aug 2022 13:04:04 -0500 Subject: [PATCH] Revert Dialog and Toast type export, drop Button log --- package.json | 5 ++--- src/lib/button/Button.svelte | 2 -- src/lib/index.js | 4 ++-- src/routes/utilities/dialogs.svelte | 2 +- src/routes/utilities/toasts.svelte | 2 +- tsconfig.json | 1 + 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 549f0487a..79ea22312 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "eslint-plugin-svelte3": "^3.4.1", "highlight.js": "^11.5.1", "jsdom": "^19.0.0", + "palettey": "^1.0.2", "postcss": "^8.4.14", "postcss-load-config": "^3.1.4", "prettier": "^2.6.2", @@ -48,7 +49,5 @@ "vitest-svelte-kit": "^0.0.6" }, "type": "module", - "dependencies": { - "palettey": "^1.0.2" - } + "types": "index.d.ts" } diff --git a/src/lib/button/Button.svelte b/src/lib/button/Button.svelte index 881c7e94e..41b8a2ee8 100644 --- a/src/lib/button/Button.svelte +++ b/src/lib/button/Button.svelte @@ -82,8 +82,6 @@ afterUpdate(() => { setSize(); setVariant(); - - console.log('change'); }); // Reactive Classes diff --git a/src/lib/index.js b/src/lib/index.js index ba6502dbb..928c33232 100644 --- a/src/lib/index.js +++ b/src/lib/index.js @@ -48,7 +48,7 @@ export { default as Summer84 } from "./Filters/svg/Summer84.svelte"; export { default as XPro } from "./Filters/svg/XPro.svelte"; // Notifications -export { DialogAlert, DialogConfirm, DialogPrompt, dialogStore } from "./Notifications/Stores"; +export { dialogStore } from "./Notifications/Stores"; export { default as Dialog } from "./Notifications/Dialog.svelte"; -export { ToastMessage, toastStore } from "./Notifications/Stores"; +export { toastStore } from "./Notifications/Stores"; export { default as Toast } from "./Notifications/Toast.svelte"; \ No newline at end of file diff --git a/src/routes/utilities/dialogs.svelte b/src/routes/utilities/dialogs.svelte index b0d78fdc9..84a7f5f92 100644 --- a/src/routes/utilities/dialogs.svelte +++ b/src/routes/utilities/dialogs.svelte @@ -213,7 +213,7 @@

Dialog Variants

- +

Alert

diff --git a/src/routes/utilities/toasts.svelte b/src/routes/utilities/toasts.svelte index 9c19dbcf0..12a27545c 100644 --- a/src/routes/utilities/toasts.svelte +++ b/src/routes/utilities/toasts.svelte @@ -102,7 +102,7 @@

Toast Settings

- +

Several settings are available to a toast. These allow you to set the message, enabled/disabled auto-hide, set the autohide timeout. As well as provide an extra action button.