From e167a21648362197f1307de3e18ea946f8408d19 Mon Sep 17 00:00:00 2001 From: Dean Sallinen Date: Thu, 24 Aug 2023 09:47:17 -0700 Subject: [PATCH 1/3] use new darker style (#113) --- src/styles/variables.scss | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/styles/variables.scss b/src/styles/variables.scss index f88220b..9e05aad 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -72,14 +72,14 @@ Globals and custom properties @mixin dark-theme { color-scheme: dark; - --body-background-color: var(--color-primary-700); + --body-background-color: var(--color-primary-990); --body-text-color: white; --body-text-color-variant: var(--color-neutral-300); - --header-background-color: white; - --header-text-color: var(--color-primary-700); + --header-background-color: var(--color-primary-700); + --header-text-color: var(--color-primary-50); --header-button-background: var(--header-background-color); - --header-button-outline: var(--seafoam-mint); + --header-button-outline: var(--color-primary-900); --button-text-color: var(--body-text-color); --button-text-color-active: var(--reef-turquoise); @@ -123,8 +123,8 @@ Globals and custom properties --loading-circle-track-color: rgba(0 0 0 / 0.05); --wave-foreground-color: var(--body-background-color); - --wave-midground-color: var(--reef-turquoise); - --wave-background-color: var(--seafoam-mint); + --wave-midground-color: #2f3445; + --wave-background-color: #3e4356; } // Default theme, no user or system preference @@ -174,6 +174,7 @@ Globals and custom properties --color-primary-700: #494e62; /* Wharf Blue */ --color-primary-800: #3c4050; --color-primary-900: #363944; + --color-primary-990: #252835; /* Secondary */ --color-secondary-50: #f1fcf9; From 0ed6f573bea6461a3f3c47221ce7ecb8b27ba113 Mon Sep 17 00:00:00 2001 From: Dean Sallinen Date: Thu, 24 Aug 2023 09:47:47 -0700 Subject: [PATCH 2/3] Remove storybook (#109) * remove storybook * update gitignore * remove unused dep --- .gitignore | 3 - .storybook/main.ts | 22 - .storybook/preview-head.html | 4 - .storybook/preview.ts | 24 - .storybook/public/favicon.ico | Bin 45458 -> 0 bytes package.json | 17 +- src/stories/Asset.stories.svelte | 13 - src/stories/Button.stories.svelte | 29 - src/stories/ButtonGroup.stories.svelte | 23 - src/stories/Checkbox.stories.svelte | 38 - src/stories/Countdown.stories.svelte | 48 - src/stories/Header.stories.svelte | 31 - src/stories/HeaderButton.stories.svelte | 15 - src/stories/Link.stories.svelte | 19 - src/stories/List.stories.svelte | 44 - src/stories/Message.stories.svelte | 26 - src/stories/QR.stories.svelte | 14 - src/stories/TextInput.stories.svelte | 18 - src/stories/Textarea.stories.svelte | 30 - src/styles/variables.scss | 12 +- yarn.lock | 6745 +++++------------------ 21 files changed, 1340 insertions(+), 5835 deletions(-) delete mode 100644 .storybook/main.ts delete mode 100644 .storybook/preview-head.html delete mode 100644 .storybook/preview.ts delete mode 100644 .storybook/public/favicon.ico delete mode 100644 src/stories/Asset.stories.svelte delete mode 100644 src/stories/Button.stories.svelte delete mode 100644 src/stories/ButtonGroup.stories.svelte delete mode 100644 src/stories/Checkbox.stories.svelte delete mode 100644 src/stories/Countdown.stories.svelte delete mode 100644 src/stories/Header.stories.svelte delete mode 100644 src/stories/HeaderButton.stories.svelte delete mode 100644 src/stories/Link.stories.svelte delete mode 100644 src/stories/List.stories.svelte delete mode 100644 src/stories/Message.stories.svelte delete mode 100644 src/stories/QR.stories.svelte delete mode 100644 src/stories/TextInput.stories.svelte delete mode 100644 src/stories/Textarea.stories.svelte diff --git a/.gitignore b/.gitignore index 9c436a0..0f30ae3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,5 @@ /test/public/*.js /test/public/*.js.map -/test/public/storybook - -/storybook-static .DS_Store diff --git a/.storybook/main.ts b/.storybook/main.ts deleted file mode 100644 index 6a78d07..0000000 --- a/.storybook/main.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type {StorybookConfig} from '@storybook/svelte-vite' -const config: StorybookConfig = { - stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx|svelte)'], - addons: [ - '@storybook/addon-links', - '@storybook/addon-essentials', - '@storybook/addon-interactions', - '@storybook/addon-svelte-csf', - ], - framework: { - name: '@storybook/svelte-vite', - options: {}, - }, - core: { - disableTelemetry: true, // 👈 Disables telemetry - }, - docs: { - autodocs: 'tag', - }, - staticDirs: ['./public'], -} -export default config diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html deleted file mode 100644 index d294403..0000000 --- a/.storybook/preview-head.html +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/.storybook/preview.ts b/.storybook/preview.ts deleted file mode 100644 index 805ab4d..0000000 --- a/.storybook/preview.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type {Preview} from '@storybook/svelte' -import '../src/styles/variables.scss' -import '../src/styles/buttonStyles.css' - -const preview: Preview = { - parameters: { - backgrounds: { - default: 'White', - values: [ - {name: 'White', value: '#ffffff'}, - {name: 'Black', value: '#000000'}, - ], - }, - actions: {argTypesRegex: '^on[A-Z].*'}, - controls: { - matchers: { - color: /(background|color)$/i, - date: /Date$/, - }, - }, - }, -} - -export default preview diff --git a/.storybook/public/favicon.ico b/.storybook/public/favicon.ico deleted file mode 100644 index f608a86a0fff4902c3279b4daa663b20a0093096..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45458 zcmeHQ3vd)idR{_&+~tyU<*IT?rLK-kE|=tztE*H}l}jqAqbldS#Ln4g{5qd)e12da z#x@4q2&9!+fw3`f@B?he;0MMSY(QZ7ze*R=9!m`~J=4>F_xJVxclY1jBa>+w{9E#<3I6}S$y{nOeaB=n{XHB@;5Y>b z-pAi9`%R`F{3LlKZcP0*g}@jfV0EwfGn=>Y7j^EUr|MjVMOJrVvCU&%Y;&7$v-Vs5 z(x@y{^)LGqkTt8$Wu9;K6fL*83s=JR5;*R<;9dULM#-5h=`=T6zGn59AGf;A)mC@W zRXB*;0o+;<>t>(jk6G~{#PSDquA

o}y!req2sQ>V5~DOR!F{%9%{@2{BExxr!bH zta?@Ol;U&%b+w#W{!j~MRmZ)%YYPH4zeO|7f&pQ)V5bT03}FRUF{K=i@wu>IqVs5T7XB0PRzC5#OWW{K=p+BnMC7r-WB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g=tE7V diff --git a/package.json b/package.json index c1d704d..7dc6e31 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,8 @@ "scripts": { "build": "rollup -c --bundleConfigAsCjs", "build-test": "rollup -c test/rollup.config.js --bundleConfigAsCjs", - "build-storybook": "storybook build -o test/public/storybook", "dev": "rollup -c test/rollup.config.js --bundleConfigAsCjs -w", - "serve": "sirv test/public --no-clear --host", - "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build" + "serve": "sirv test/public --no-clear --host" }, "directories": { "lib": "lib" @@ -51,15 +48,6 @@ "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-replace": "^5.0.2", "@rollup/plugin-typescript": "^10", - "@storybook/addon-essentials": "^7.0.0-beta.59", - "@storybook/addon-interactions": "^7.0.0-beta.59", - "@storybook/addon-links": "^7.0.0-beta.59", - "@storybook/addon-svelte-csf": "^3.0.0-next.3", - "@storybook/blocks": "^7.0.0-alpha.8", - "@storybook/svelte": "^7.0.0-beta.59", - "@storybook/svelte-vite": "^7.0.0-beta.59", - "@storybook/testing-library": "^0.0.14-next.1", - "@sveltejs/vite-plugin-svelte": "^2.0.3", "@tsconfig/svelte": "^3.0.0", "@typescript-eslint/eslint-plugin": "^5.49.0", "@typescript-eslint/parser": "^5.49.0", @@ -81,8 +69,6 @@ "eslint-plugin-prettier": "^4.2.1", "node-sass": "^8.0.0", "prettier": "^2.8.3", - "react": "^18.2.0", - "react-dom": "^18.2.0", "rollup": "^2.70.2", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-dts": "^4.2.1", @@ -92,7 +78,6 @@ "rollup-plugin-terser": "^7.0.0", "sass": "^1.58.3", "sirv-cli": "^2.0.0", - "storybook": "^7.0.0-beta.59", "svelte": "^3.55.1", "svelte-preprocess": "^5.0.1", "sveltekit-i18n": "^2.2.2", diff --git a/src/stories/Asset.stories.svelte b/src/stories/Asset.stories.svelte deleted file mode 100644 index db53214..0000000 --- a/src/stories/Asset.stories.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - diff --git a/src/stories/Button.stories.svelte b/src/stories/Button.stories.svelte deleted file mode 100644 index 482c737..0000000 --- a/src/stories/Button.stories.svelte +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/stories/ButtonGroup.stories.svelte b/src/stories/ButtonGroup.stories.svelte deleted file mode 100644 index 52f3656..0000000 --- a/src/stories/ButtonGroup.stories.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - - - -

- -
- - - diff --git a/src/stories/Checkbox.stories.svelte b/src/stories/Checkbox.stories.svelte deleted file mode 100644 index c885ead..0000000 --- a/src/stories/Checkbox.stories.svelte +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - -
- - - Auto approve this transaction -
-
- - diff --git a/src/stories/Countdown.stories.svelte b/src/stories/Countdown.stories.svelte deleted file mode 100644 index b1dc125..0000000 --- a/src/stories/Countdown.stories.svelte +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/stories/Header.stories.svelte b/src/stories/Header.stories.svelte deleted file mode 100644 index 9fe4128..0000000 --- a/src/stories/Header.stories.svelte +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - -
- -
-
- - -
- -
-
diff --git a/src/stories/HeaderButton.stories.svelte b/src/stories/HeaderButton.stories.svelte deleted file mode 100644 index 41f1081..0000000 --- a/src/stories/HeaderButton.stories.svelte +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - {}} /> - - - - {}} /> - diff --git a/src/stories/Link.stories.svelte b/src/stories/Link.stories.svelte deleted file mode 100644 index c8edc8d..0000000 --- a/src/stories/Link.stories.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/stories/List.stories.svelte b/src/stories/List.stories.svelte deleted file mode 100644 index 259287f..0000000 --- a/src/stories/List.stories.svelte +++ /dev/null @@ -1,44 +0,0 @@ - - - - -