Skip to content

Commit

Permalink
Revert Dialog and Toast type export, drop Button log
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 committed Aug 4, 2022
1 parent 8387e27 commit 5813a73
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -48,7 +49,5 @@
"vitest-svelte-kit": "^0.0.6"
},
"type": "module",
"dependencies": {
"palettey": "^1.0.2"
}
"types": "index.d.ts"
}
2 changes: 0 additions & 2 deletions src/lib/button/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@
afterUpdate(() => {
setSize();
setVariant();
console.log('change');
});
// Reactive Classes
Expand Down
4 changes: 2 additions & 2 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
2 changes: 1 addition & 1 deletion src/routes/utilities/dialogs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<!-- Dialog Variants -->
<section class="space-y-4">
<h2>Dialog Variants</h2>
<CodeBlock language="typescript" code={`import { type DialogAlert, type DialogConfirm, type DialogPrompt } from '@brainandbones/skeleton';`}></CodeBlock>
<CodeBlock language="typescript" code={`import type { DialogAlert, DialogConfirm, DialogPrompt } from '@brainandbones/skeleton/Notifications/Stores';`}></CodeBlock>
<!-- Alert -->
<div class="space-y-2">
<h4>Alert</h4>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/utilities/toasts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<!-- Toast Settings -->
<section class="space-y-4">
<h2>Toast Settings</h2>
<CodeBlock language="typescript" code={`import { type ToastMessage } from '@brainandbones/skeleton';`}></CodeBlock>
<CodeBlock language="typescript" code={`import type { ToastMessage } from '@brainandbones/skeleton/Notifications/Stores';`}></CodeBlock>
<p>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.</p>
<CodeBlock language="typescript" code={`
const t: ToastMessage = {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"moduleResolution": "node",
"module": "es2020",
"lib": ["es2020", "DOM"],
Expand Down

0 comments on commit 5813a73

Please sign in to comment.