diff --git a/.storybook/Theme.ts b/.storybook/Theme.ts
index e01ec3f7..a58cb3d4 100644
--- a/.storybook/Theme.ts
+++ b/.storybook/Theme.ts
@@ -1,4 +1,4 @@
-import { create } from '@storybook/theming/create';
+import { create } from '@storybook/theming';
export default create({
base: 'light',
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 6ce94076..20d8bd50 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,3 +1,7 @@
{
- "recommendations": ["unifiedjs.vscode-mdx", "somewhatstationery.some-sass"]
+ "recommendations": [
+ "unifiedjs.vscode-mdx",
+ "somewhatstationery.some-sass",
+ "svelte.svelte-vscode"
+ ]
}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 3e9d4796..fbaef8e1 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -11,6 +11,8 @@
"[mdx]": {
"editor.wordWrap": "on"
},
-
+ "[svelte]": {
+ "editor.defaultFormatter": "svelte.svelte-vscode"
+ },
"typescript.tsdk": "node_modules/typescript/lib"
}
diff --git a/eslint.config.js b/eslint.config.js
index 80c1c212..42f0a81c 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,6 +1,7 @@
import { svelte } from '@reuters-graphics/yaks-eslint';
import reactPlugin from 'eslint-plugin-react';
import * as mdx from 'eslint-plugin-mdx';
+import storybook from 'eslint-plugin-storybook';
export default [
{
@@ -19,6 +20,7 @@ export default [
],
},
...svelte,
+ ...storybook.configs['flat/recommended'],
reactPlugin.configs.flat.recommended,
{
settings: { react: { version: '18.2' } },
diff --git a/package.json b/package.json
index c0412934..faf2f801 100644
--- a/package.json
+++ b/package.json
@@ -38,16 +38,19 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.11",
- "@chromatic-com/storybook": "^1.9.0",
- "@reuters-graphics/yaks-eslint": "^0.0.6",
- "@reuters-graphics/yaks-prettier": "^0.0.4",
+ "@chromatic-com/storybook": "^3.2.4",
+ "@reuters-graphics/yaks-eslint": "^0.1.0",
+ "@reuters-graphics/yaks-prettier": "^0.1.0",
"@storybook/addon-essentials": "^8.5.0",
"@storybook/addon-interactions": "^8.5.0",
"@storybook/addon-svelte-csf": "5.0.0-next.23",
"@storybook/blocks": "^8.5.0",
+ "@storybook/components": "^8.5.0",
+ "@storybook/manager-api": "^8.5.0",
"@storybook/svelte": "^8.5.0",
"@storybook/sveltekit": "^8.5.0",
"@storybook/test": "^8.5.0",
+ "@storybook/theming": "^8.5.0",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "^4.0.4",
"@types/css": "^0.0.37",
@@ -68,7 +71,7 @@
"css": "^3.0.0",
"css-color-converter": "^2.0.0",
"deep-object-diff": "^1.1.9",
- "eslint": "9.14.0",
+ "eslint": "^9.18.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-storybook": "^0.11.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 201db04e..869f85c1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -58,14 +58,14 @@ importers:
specifier: ^2.27.11
version: 2.27.11
'@chromatic-com/storybook':
- specifier: ^1.9.0
- version: 1.9.0(react@18.3.1)
+ specifier: ^3.2.4
+ version: 3.2.4(react@18.3.1)(storybook@8.5.0(prettier@3.4.2))
'@reuters-graphics/yaks-eslint':
- specifier: ^0.0.6
- version: 0.0.6(@types/eslint@9.6.1)(eslint@9.14.0(jiti@2.4.2))(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)
+ specifier: ^0.1.0
+ version: 0.1.0(@types/eslint@9.6.1)(eslint@9.18.0(jiti@2.4.2))(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)
'@reuters-graphics/yaks-prettier':
- specifier: ^0.0.4
- version: 0.0.4(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)
+ specifier: ^0.1.0
+ version: 0.1.0(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)
'@storybook/addon-essentials':
specifier: ^8.5.0
version: 8.5.0(@types/react@18.3.18)(storybook@8.5.0(prettier@3.4.2))
@@ -78,6 +78,12 @@ importers:
'@storybook/blocks':
specifier: ^8.5.0
version: 8.5.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.5.0(prettier@3.4.2))
+ '@storybook/components':
+ specifier: ^8.5.0
+ version: 8.5.0(storybook@8.5.0(prettier@3.4.2))
+ '@storybook/manager-api':
+ specifier: ^8.5.0
+ version: 8.5.0(storybook@8.5.0(prettier@3.4.2))
'@storybook/svelte':
specifier: ^8.5.0
version: 8.5.0(storybook@8.5.0(prettier@3.4.2))(svelte@5.18.0)
@@ -87,6 +93,9 @@ importers:
'@storybook/test':
specifier: ^8.5.0
version: 8.5.0(storybook@8.5.0(prettier@3.4.2))
+ '@storybook/theming':
+ specifier: ^8.5.0
+ version: 8.5.0(storybook@8.5.0(prettier@3.4.2))
'@sveltejs/package':
specifier: ^2.3.7
version: 2.3.7(svelte@5.18.0)(typescript@5.7.3)
@@ -148,17 +157,17 @@ importers:
specifier: ^1.1.9
version: 1.1.9
eslint:
- specifier: 9.14.0
- version: 9.14.0(jiti@2.4.2)
+ specifier: ^9.18.0
+ version: 9.18.0(jiti@2.4.2)
eslint-plugin-mdx:
specifier: ^3.1.5
- version: 3.1.5(eslint@9.14.0(jiti@2.4.2))
+ version: 3.1.5(eslint@9.18.0(jiti@2.4.2))
eslint-plugin-react:
specifier: ^7.37.4
- version: 7.37.4(eslint@9.14.0(jiti@2.4.2))
+ version: 7.37.4(eslint@9.18.0(jiti@2.4.2))
eslint-plugin-storybook:
specifier: ^0.11.2
- version: 0.11.2(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
+ version: 0.11.2(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
fs-extra:
specifier: ^11.3.0
version: 11.3.0
@@ -314,9 +323,11 @@ packages:
'@changesets/write@0.3.2':
resolution: {integrity: sha512-kDxDrPNpUgsjDbWBvUo27PzKX4gqeKOlhibaOXDJA6kuBisGqNHv/HwGJrAu8U/dSf8ZEFIeHIPtvSlZI1kULw==}
- '@chromatic-com/storybook@1.9.0':
- resolution: {integrity: sha512-vYQ+TcfktEE3GHnLZXHCzXF/sN9dw+KivH8a5cmPyd9YtQs7fZtHrEgsIjWpYycXiweKMo1Lm1RZsjxk8DH3rA==}
+ '@chromatic-com/storybook@3.2.4':
+ resolution: {integrity: sha512-5/bOOYxfwZ2BktXeqcCpOVAoR6UCoeART5t9FVy22hoo8F291zOuX4y3SDgm10B1GVU/ZTtJWPT2X9wZFlxYLg==}
engines: {node: '>=16.0.0', yarn: '>=1.22.18'}
+ peerDependencies:
+ storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
'@esbuild/aix-ppc64@0.21.5':
resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}
@@ -466,18 +477,14 @@ packages:
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
- '@eslint/config-array@0.18.0':
- resolution: {integrity: sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==}
+ '@eslint/config-array@0.19.1':
+ resolution: {integrity: sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/core@0.10.0':
resolution: {integrity: sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/core@0.7.0':
- resolution: {integrity: sha512-xp5Jirz5DyPYlPiKat8jaq0EmYvDXKKpzTbxXMpT9eqlRJkRKIz9AGMdlvYjih+im+QlhWrpvVjl8IPC/lHlUw==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
'@eslint/eslintrc@1.4.1':
resolution: {integrity: sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -486,10 +493,6 @@ packages:
resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/js@9.14.0':
- resolution: {integrity: sha512-pFoEtFWCPyDOl+C6Ift+wC7Ro89otjigCf5vcuWqWgqNSQbRrpjSvdeE6ofLz4dHmyxD5f7gIdGT4+p36L6Twg==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
'@eslint/js@9.18.0':
resolution: {integrity: sha512-fK6L7rxcq6/z+AaQMtiFTkvbHkBLNlwyRxHpKawP0x3u9+NC6MQTnFW+AdpwC6gfHTW0051cokQgtTN2FqlxQA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -718,20 +721,20 @@ packages:
'@polka/url@1.0.0-next.28':
resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==}
- '@reuters-graphics/yaks-eslint@0.0.6':
- resolution: {integrity: sha512-J4Z9rNG757e47InqI8GdTrmEYvAtVgzEZz5OIZbYB7Ab1wsNgTWeLxx2N0PTHJbPOVCmdYelbbJRKra9Tk/VQA==}
+ '@reuters-graphics/yaks-eslint@0.1.0':
+ resolution: {integrity: sha512-xkfEInavSYsPrBfku79wyOBLI611mDKKlem9BsnHgL6UTI80DlxWu3PZzz3mXtjxF6N4AoOj9yzou2F0tbHZCw==}
engines: {node: '>=18'}
peerDependencies:
- eslint: ^9.9.0
- svelte: ^4.2.18
- typescript: ^5.5
+ eslint: ^9.18.0
+ svelte: '>5.2.18'
+ typescript: '>5.5.0'
- '@reuters-graphics/yaks-prettier@0.0.4':
- resolution: {integrity: sha512-HdjflCXiIkJmXemfP60AXsAdQlK6ENh+/GimV7NH+kcQYQQdeQQGwMCCP77eWiCaAEaZLWs5qrEa/9oHVfx9hA==}
+ '@reuters-graphics/yaks-prettier@0.1.0':
+ resolution: {integrity: sha512-oM63g3NAjFrKkez1syL08MpprPGYkiooykUxckR0DaQOFg+AviGe1tfKyDV7MCH2BVSc2aTVysCKQv3XBI0u3Q==}
engines: {node: '>=18'}
peerDependencies:
- prettier: ^3.3.3
- typescript: ^5.5.4
+ prettier: ^3.4.2
+ typescript: '>5.5.0'
'@rollup/rollup-android-arm-eabi@4.30.1':
resolution: {integrity: sha512-pSWY+EVt3rJ9fQ3IqlrEUtXh3cGqGtPDH1FQlNZehO2yYxCHEX1SPsz1M//NXwYfbTlcKr9WObLnJX9FsS9K1Q==}
@@ -1992,8 +1995,8 @@ packages:
peerDependencies:
eslint: '>=6.0.0'
- eslint-config-prettier@9.1.0:
- resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==}
+ eslint-config-prettier@10.0.1:
+ resolution: {integrity: sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw==}
hasBin: true
peerDependencies:
eslint: '>=7.0.0'
@@ -2084,8 +2087,8 @@ packages:
deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
hasBin: true
- eslint@9.14.0:
- resolution: {integrity: sha512-c2FHsVBr87lnUtjP4Yhvk4yEhKrQavGafRA/Se1ouse8PfbfC/Qh9Mxa00yWsZRlqeUB9raXip0aiiUZkgnr9g==}
+ eslint@9.18.0:
+ resolution: {integrity: sha512-+waTfRWQlSbpt3KWE+CjrPPYnbq9kfZIYUqapc0uBXyjTp8aYXZDsUH16m39Ryq3NjAVP4tjuF7KaukeqoCoaA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
hasBin: true
peerDependencies:
@@ -4474,12 +4477,13 @@ snapshots:
human-id: 1.0.2
prettier: 2.8.8
- '@chromatic-com/storybook@1.9.0(react@18.3.1)':
+ '@chromatic-com/storybook@3.2.4(react@18.3.1)(storybook@8.5.0(prettier@3.4.2))':
dependencies:
chromatic: 11.24.0
filesize: 10.1.6
jsonfile: 6.1.0
react-confetti: 6.2.2(react@18.3.1)
+ storybook: 8.5.0(prettier@3.4.2)
strip-ansi: 7.1.0
transitivePeerDependencies:
- '@chromatic-com/cypress'
@@ -4555,14 +4559,14 @@ snapshots:
'@esbuild/win32-x64@0.21.5':
optional: true
- '@eslint-community/eslint-utils@4.4.1(eslint@9.14.0(jiti@2.4.2))':
+ '@eslint-community/eslint-utils@4.4.1(eslint@9.18.0(jiti@2.4.2))':
dependencies:
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.1': {}
- '@eslint/config-array@0.18.0':
+ '@eslint/config-array@0.19.1':
dependencies:
'@eslint/object-schema': 2.1.5
debug: 4.4.0
@@ -4574,8 +4578,6 @@ snapshots:
dependencies:
'@types/json-schema': 7.0.15
- '@eslint/core@0.7.0': {}
-
'@eslint/eslintrc@1.4.1':
dependencies:
ajv: 6.12.6
@@ -4604,8 +4606,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@eslint/js@9.14.0': {}
-
'@eslint/js@9.18.0': {}
'@eslint/object-schema@2.1.5': {}
@@ -4840,24 +4840,24 @@ snapshots:
'@polka/url@1.0.0-next.28': {}
- '@reuters-graphics/yaks-eslint@0.0.6(@types/eslint@9.6.1)(eslint@9.14.0(jiti@2.4.2))(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)':
+ '@reuters-graphics/yaks-eslint@0.1.0(@types/eslint@9.6.1)(eslint@9.18.0(jiti@2.4.2))(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)':
dependencies:
'@eslint/js': 9.18.0
- eslint: 9.14.0(jiti@2.4.2)
- eslint-config-prettier: 9.1.0(eslint@9.14.0(jiti@2.4.2))
- eslint-plugin-prettier: 5.2.2(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.14.0(jiti@2.4.2)))(eslint@9.14.0(jiti@2.4.2))(prettier@3.4.2)
- eslint-plugin-svelte: 2.46.1(eslint@9.14.0(jiti@2.4.2))(svelte@5.18.0)
+ eslint: 9.18.0(jiti@2.4.2)
+ eslint-config-prettier: 10.0.1(eslint@9.18.0(jiti@2.4.2))
+ eslint-plugin-prettier: 5.2.2(@types/eslint@9.6.1)(eslint-config-prettier@10.0.1(eslint@9.18.0(jiti@2.4.2)))(eslint@9.18.0(jiti@2.4.2))(prettier@3.4.2)
+ eslint-plugin-svelte: 2.46.1(eslint@9.18.0(jiti@2.4.2))(svelte@5.18.0)
globals: 15.14.0
svelte: 5.18.0
typescript: 5.7.3
- typescript-eslint: 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
+ typescript-eslint: 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
transitivePeerDependencies:
- '@types/eslint'
- prettier
- supports-color
- ts-node
- '@reuters-graphics/yaks-prettier@0.0.4(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)':
+ '@reuters-graphics/yaks-prettier@0.1.0(prettier@3.4.2)(svelte@5.18.0)(typescript@5.7.3)':
dependencies:
prettier: 3.4.2
prettier-plugin-svelte: 3.3.3(prettier@3.4.2)(svelte@5.18.0)
@@ -5405,15 +5405,15 @@ snapshots:
'@types/uuid@9.0.8': {}
- '@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3))(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)':
+ '@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3))(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)':
dependencies:
'@eslint-community/regexpp': 4.12.1
- '@typescript-eslint/parser': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
+ '@typescript-eslint/parser': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
'@typescript-eslint/scope-manager': 8.20.0
- '@typescript-eslint/type-utils': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
- '@typescript-eslint/utils': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
+ '@typescript-eslint/type-utils': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
+ '@typescript-eslint/utils': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
'@typescript-eslint/visitor-keys': 8.20.0
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
graphemer: 1.4.0
ignore: 5.3.2
natural-compare: 1.4.0
@@ -5422,14 +5422,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/parser@8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)':
+ '@typescript-eslint/parser@8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)':
dependencies:
'@typescript-eslint/scope-manager': 8.20.0
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/typescript-estree': 8.20.0(typescript@5.7.3)
'@typescript-eslint/visitor-keys': 8.20.0
debug: 4.4.0
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
typescript: 5.7.3
transitivePeerDependencies:
- supports-color
@@ -5439,12 +5439,12 @@ snapshots:
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/visitor-keys': 8.20.0
- '@typescript-eslint/type-utils@8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)':
+ '@typescript-eslint/type-utils@8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)':
dependencies:
'@typescript-eslint/typescript-estree': 8.20.0(typescript@5.7.3)
- '@typescript-eslint/utils': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
+ '@typescript-eslint/utils': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
debug: 4.4.0
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
ts-api-utils: 2.0.0(typescript@5.7.3)
typescript: 5.7.3
transitivePeerDependencies:
@@ -5466,13 +5466,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/utils@8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)':
+ '@typescript-eslint/utils@8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)':
dependencies:
- '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0(jiti@2.4.2))
+ '@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0(jiti@2.4.2))
'@typescript-eslint/scope-manager': 8.20.0
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/typescript-estree': 8.20.0(typescript@5.7.3)
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
typescript: 5.7.3
transitivePeerDependencies:
- supports-color
@@ -6344,20 +6344,20 @@ snapshots:
escape-string-regexp@5.0.0: {}
- eslint-compat-utils@0.5.1(eslint@9.14.0(jiti@2.4.2)):
+ eslint-compat-utils@0.5.1(eslint@9.18.0(jiti@2.4.2)):
dependencies:
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
semver: 7.6.3
- eslint-config-prettier@9.1.0(eslint@9.14.0(jiti@2.4.2)):
+ eslint-config-prettier@10.0.1(eslint@9.18.0(jiti@2.4.2)):
dependencies:
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
- eslint-mdx@3.1.5(eslint@9.14.0(jiti@2.4.2)):
+ eslint-mdx@3.1.5(eslint@9.18.0(jiti@2.4.2)):
dependencies:
acorn: 8.14.0
acorn-jsx: 5.3.2(acorn@8.14.0)
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
espree: 9.6.1
estree-util-visit: 2.0.0
remark-mdx: 3.1.0
@@ -6374,18 +6374,18 @@ snapshots:
- bluebird
- supports-color
- eslint-plugin-markdown@3.0.1(eslint@9.14.0(jiti@2.4.2)):
+ eslint-plugin-markdown@3.0.1(eslint@9.18.0(jiti@2.4.2)):
dependencies:
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
mdast-util-from-markdown: 0.8.5
transitivePeerDependencies:
- supports-color
- eslint-plugin-mdx@3.1.5(eslint@9.14.0(jiti@2.4.2)):
+ eslint-plugin-mdx@3.1.5(eslint@9.18.0(jiti@2.4.2)):
dependencies:
- eslint: 9.14.0(jiti@2.4.2)
- eslint-mdx: 3.1.5(eslint@9.14.0(jiti@2.4.2))
- eslint-plugin-markdown: 3.0.1(eslint@9.14.0(jiti@2.4.2))
+ eslint: 9.18.0(jiti@2.4.2)
+ eslint-mdx: 3.1.5(eslint@9.18.0(jiti@2.4.2))
+ eslint-plugin-markdown: 3.0.1(eslint@9.18.0(jiti@2.4.2))
remark-mdx: 3.1.0
remark-parse: 11.0.0
remark-stringify: 11.0.0
@@ -6396,17 +6396,17 @@ snapshots:
- bluebird
- supports-color
- eslint-plugin-prettier@5.2.2(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.14.0(jiti@2.4.2)))(eslint@9.14.0(jiti@2.4.2))(prettier@3.4.2):
+ eslint-plugin-prettier@5.2.2(@types/eslint@9.6.1)(eslint-config-prettier@10.0.1(eslint@9.18.0(jiti@2.4.2)))(eslint@9.18.0(jiti@2.4.2))(prettier@3.4.2):
dependencies:
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
prettier: 3.4.2
prettier-linter-helpers: 1.0.0
synckit: 0.9.2
optionalDependencies:
'@types/eslint': 9.6.1
- eslint-config-prettier: 9.1.0(eslint@9.14.0(jiti@2.4.2))
+ eslint-config-prettier: 10.0.1(eslint@9.18.0(jiti@2.4.2))
- eslint-plugin-react@7.37.4(eslint@9.14.0(jiti@2.4.2)):
+ eslint-plugin-react@7.37.4(eslint@9.18.0(jiti@2.4.2)):
dependencies:
array-includes: 3.1.8
array.prototype.findlast: 1.2.5
@@ -6414,7 +6414,7 @@ snapshots:
array.prototype.tosorted: 1.1.4
doctrine: 2.1.0
es-iterator-helpers: 1.2.1
- eslint: 9.14.0(jiti@2.4.2)
+ eslint: 9.18.0(jiti@2.4.2)
estraverse: 5.3.0
hasown: 2.0.2
jsx-ast-utils: 3.3.5
@@ -6428,22 +6428,22 @@ snapshots:
string.prototype.matchall: 4.0.12
string.prototype.repeat: 1.0.0
- eslint-plugin-storybook@0.11.2(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3):
+ eslint-plugin-storybook@0.11.2(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3):
dependencies:
'@storybook/csf': 0.1.13
- '@typescript-eslint/utils': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
- eslint: 9.14.0(jiti@2.4.2)
+ '@typescript-eslint/utils': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
+ eslint: 9.18.0(jiti@2.4.2)
ts-dedent: 2.2.0
transitivePeerDependencies:
- supports-color
- typescript
- eslint-plugin-svelte@2.46.1(eslint@9.14.0(jiti@2.4.2))(svelte@5.18.0):
+ eslint-plugin-svelte@2.46.1(eslint@9.18.0(jiti@2.4.2))(svelte@5.18.0):
dependencies:
- '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0(jiti@2.4.2))
+ '@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0(jiti@2.4.2))
'@jridgewell/sourcemap-codec': 1.5.0
- eslint: 9.14.0(jiti@2.4.2)
- eslint-compat-utils: 0.5.1(eslint@9.14.0(jiti@2.4.2))
+ eslint: 9.18.0(jiti@2.4.2)
+ eslint-compat-utils: 0.5.1(eslint@9.18.0(jiti@2.4.2))
esutils: 2.0.3
known-css-properties: 0.35.0
postcss: 8.5.1
@@ -6521,14 +6521,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
- eslint@9.14.0(jiti@2.4.2):
+ eslint@9.18.0(jiti@2.4.2):
dependencies:
- '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0(jiti@2.4.2))
+ '@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0(jiti@2.4.2))
'@eslint-community/regexpp': 4.12.1
- '@eslint/config-array': 0.18.0
- '@eslint/core': 0.7.0
+ '@eslint/config-array': 0.19.1
+ '@eslint/core': 0.10.0
'@eslint/eslintrc': 3.2.0
- '@eslint/js': 9.14.0
+ '@eslint/js': 9.18.0
'@eslint/plugin-kit': 0.2.5
'@humanfs/node': 0.16.6
'@humanwhocodes/module-importer': 1.0.1
@@ -6557,7 +6557,6 @@ snapshots:
minimatch: 3.1.2
natural-compare: 1.4.0
optionator: 0.9.4
- text-table: 0.2.0
optionalDependencies:
jiti: 2.4.2
transitivePeerDependencies:
@@ -8991,12 +8990,12 @@ snapshots:
typedarray@0.0.6: {}
- typescript-eslint@8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3):
+ typescript-eslint@8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3):
dependencies:
- '@typescript-eslint/eslint-plugin': 8.20.0(@typescript-eslint/parser@8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3))(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
- '@typescript-eslint/parser': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
- '@typescript-eslint/utils': 8.20.0(eslint@9.14.0(jiti@2.4.2))(typescript@5.7.3)
- eslint: 9.14.0(jiti@2.4.2)
+ '@typescript-eslint/eslint-plugin': 8.20.0(@typescript-eslint/parser@8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3))(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
+ '@typescript-eslint/parser': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
+ '@typescript-eslint/utils': 8.20.0(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3)
+ eslint: 9.18.0(jiti@2.4.2)
typescript: 5.7.3
transitivePeerDependencies:
- supports-color
diff --git a/src/app.html b/src/app.html
new file mode 100644
index 00000000..7bf73d49
--- /dev/null
+++ b/src/app.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+ %sveltekit.head%
+
+
+ %sveltekit.body%
+
+
\ No newline at end of file
diff --git a/src/components/AdSlot/AdSlot.svelte b/src/components/AdSlot/AdSlot.svelte
index a52f31c8..4fed36b9 100644
--- a/src/components/AdSlot/AdSlot.svelte
+++ b/src/components/AdSlot/AdSlot.svelte
@@ -8,14 +8,12 @@
import { onMount } from 'svelte';
import { getRandomAdId } from './utils';
-
-
interface Props {
placementName: DesktopPlacementName | MobilePlacementName;
adType: DesktopAdType | MobileAdType;
/**
- * @TODO Unclear at what level this bit of config is used with placements...
- */
+ * @TODO Unclear at what level this bit of config is used with placements...
+ */
dataFreestarAd?: string;
}
@@ -57,7 +55,7 @@
});
-
+
+```
+
+... or you can make your component entirely configurable within the article well doing something like this:
+
+```svelte
+
+
+
+
+
+
+
+```
+
+Here's an example of how custom\* `columnWidths` can be used to change the article well columns:
diff --git a/src/components/Article/Article.stories.svelte b/src/components/Article/Article.stories.svelte
index ed06940c..c0683455 100644
--- a/src/components/Article/Article.stories.svelte
+++ b/src/components/Article/Article.stories.svelte
@@ -1,36 +1,27 @@
-
- {#snippet children({ args })}
-
- {/snippet}
-
-
@@ -54,13 +45,13 @@
narrower*
@@ -91,8 +82,8 @@
background-color: #bbb;
}
:global(
- #article-column-widths-demo .article-boundaries.custom div.article-block
- ) {
+ #article-column-widths-demo .article-boundaries.custom div.article-block
+ ) {
background: rgb(211, 132, 123);
}
:global(#article-column-widths-demo div.article-block) {
diff --git a/src/components/Article/Article.svelte b/src/components/Article/Article.svelte
index 680cacfc..df103673 100644
--- a/src/components/Article/Article.svelte
+++ b/src/components/Article/Article.svelte
@@ -1,11 +1,5 @@
-
+
{@render children?.()}
diff --git a/src/components/Byline/Byline.stories.svelte b/src/components/Byline/Byline.stories.svelte
index acdc5d71..5855ceef 100644
--- a/src/components/Byline/Byline.stories.svelte
+++ b/src/components/Byline/Byline.stories.svelte
@@ -1,11 +1,14 @@
-
-
-
- {#snippet children({ args })}
-
- {/snippet}
-
+{#snippet template(args: ComponentProps)}
+
+{/snippet}
diff --git a/src/components/DatawrapperChart/stories/docs/component.md b/src/components/DatawrapperChart/DatawrapperChart.mdx
similarity index 57%
rename from src/components/DatawrapperChart/stories/docs/component.md
rename to src/components/DatawrapperChart/DatawrapperChart.mdx
index 6e7a8501..e444f37a 100644
--- a/src/components/DatawrapperChart/stories/docs/component.md
+++ b/src/components/DatawrapperChart/DatawrapperChart.mdx
@@ -1,3 +1,11 @@
+import { Meta, Canvas } from '@storybook/blocks';
+
+import * as DatawrapperChartStories from './DatawrapperChart.stories.svelte';
+
+
+
+# DatawrapperChart
+
Easily add a responsive Datawrapper embed on your page.
```svelte
@@ -23,3 +31,15 @@ You can get this from the published url on Reuters Graphics.
- Inside **Embed code (for developers only)**, find and copy the url inside the `src` prop. (It ends in `media-embed.html`.)
**Note:** There is no need to update the url if you update the chart inside Datawrapper. Any changes will be automatically reflected.
+
+
+
+## With chatter
+
+By default, Datawrapper will export your chart with the chart chatter like title, description and notes.
+
+At the moment, these don't _exactly_ match our styles and can't be made to fit into the article well.
+
+Instead, it's often better to remove all the text from your Datawrapper chart before publishing it and add that text back via the component props.
+
+
diff --git a/src/components/DatawrapperChart/DatawrapperChart.stories.svelte b/src/components/DatawrapperChart/DatawrapperChart.stories.svelte
index d2019f40..412d1adc 100644
--- a/src/components/DatawrapperChart/DatawrapperChart.stories.svelte
+++ b/src/components/DatawrapperChart/DatawrapperChart.stories.svelte
@@ -16,18 +16,19 @@
diff --git a/src/components/DatawrapperChart/DatawrapperChart.svelte b/src/components/DatawrapperChart/DatawrapperChart.svelte
index ab50ad4e..47864058 100644
--- a/src/components/DatawrapperChart/DatawrapperChart.svelte
+++ b/src/components/DatawrapperChart/DatawrapperChart.svelte
@@ -1,62 +1,71 @@
- {#if $$slots.title}
+ {#if titleSnippet}
-
+ {@render titleSnippet()}
{/if}
- {#if $$slots.notes}
-
-
+ {#if notesSnippet}
+ {@render notesSnippet()}
{/if}
diff --git a/src/components/DatawrapperChart/stories/docs/withChatter.md b/src/components/DatawrapperChart/stories/docs/withChatter.md
deleted file mode 100644
index c11a170e..00000000
--- a/src/components/DatawrapperChart/stories/docs/withChatter.md
+++ /dev/null
@@ -1,5 +0,0 @@
-By default, Datawrapper will export your chart with the chart chatter like title, description and notes.
-
-At the moment, these don't _exactly_ match our styles and can't be made to fit into the article well.
-
-Instead, it's often better to remove all the text from your Datawrapper chart before publishing it and add that text back via the component props.
diff --git a/bin/css-to-js/index.d.ts b/src/docs/utils/css-to-js/index.d.ts
similarity index 100%
rename from bin/css-to-js/index.d.ts
rename to src/docs/utils/css-to-js/index.d.ts
diff --git a/bin/css-to-js/index.js b/src/docs/utils/css-to-js/index.js
similarity index 99%
rename from bin/css-to-js/index.js
rename to src/docs/utils/css-to-js/index.js
index 2add6ca5..e7310751 100644
--- a/bin/css-to-js/index.js
+++ b/src/docs/utils/css-to-js/index.js
@@ -112,6 +112,7 @@ function _iterableToArrayLimit(arr, i) {
try {
if (!_n && _i.return != null) _i.return();
} finally {
+ // eslint-disable-next-line
if (_d) throw _e;
}
}
@@ -353,7 +354,7 @@ const convert = function convert(input) {
const config =
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
const outputType = config.outputType;
- const outputPath = config.outputPath;
+ const _outputPath = config.outputPath;
let mediaReverse = config.mediaReverse;
let convertedCss;
diff --git a/src/docs/utils/parseCss.js b/src/docs/utils/parseCss.js
index 29031e77..4f4af80a 100644
--- a/src/docs/utils/parseCss.js
+++ b/src/docs/utils/parseCss.js
@@ -1,5 +1,5 @@
import { compileString } from 'sass';
-import { convert } from '../../../bin/css-to-js/index.js';
+import { convert } from './css-to-js/index.js';
import { kebabCase } from 'lodash-es';
export const cssStringToTableArray = (cssString, withInclude = false) => {
diff --git a/src/stories/Button.stories.svelte b/src/stories/Button.stories.svelte
deleted file mode 100644
index 4c8c7cce..00000000
--- a/src/stories/Button.stories.svelte
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/stories/Button.svelte b/src/stories/Button.svelte
deleted file mode 100644
index b31f5bff..00000000
--- a/src/stories/Button.svelte
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- {label}
-
diff --git a/src/stories/Configure.mdx b/src/stories/Configure.mdx
deleted file mode 100644
index 549973e9..00000000
--- a/src/stories/Configure.mdx
+++ /dev/null
@@ -1,364 +0,0 @@
-import { Meta } from "@storybook/blocks";
-
-import Github from "./assets/github.svg";
-import Discord from "./assets/discord.svg";
-import Youtube from "./assets/youtube.svg";
-import Tutorials from "./assets/tutorials.svg";
-import Styling from "./assets/styling.png";
-import Context from "./assets/context.png";
-import Assets from "./assets/assets.png";
-import Docs from "./assets/docs.png";
-import Share from "./assets/share.png";
-import FigmaPlugin from "./assets/figma-plugin.png";
-import Testing from "./assets/testing.png";
-import Accessibility from "./assets/accessibility.png";
-import Theming from "./assets/theming.png";
-import AddonLibrary from "./assets/addon-library.png";
-
-export const RightArrow = () =>
-
-
-
-
-
-
-
- # Configure your project
-
- Because Storybook works separately from your app, you'll need to configure it for your specific stack and setup. Below, explore guides for configuring Storybook with popular frameworks and tools. If you get stuck, learn how you can ask for help from our community.
-
-
-
-
-
Add styling and CSS
-
Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.
-
Learn more
-
-
-
-
Provide context and mocking
-
Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.
-
Learn more
-
-
-
-
-
Load assets and resources
-
To link static files (like fonts) to your projects and stories, use the
- `staticDirs` configuration option to specify folders to load when
- starting Storybook.
-
Learn more
-
-
-
-
-
-
- # Do more with Storybook
-
- Now that you know the basics, let's explore other parts of Storybook that will improve your experience. This list is just to get you started. You can customise Storybook in many ways to fit your needs.
-
-
-
-
-
-
-
Autodocs
-
Auto-generate living,
- interactive reference documentation from your components and stories.
-
Learn more
-
-
-
-
Publish to Chromatic
-
Publish your Storybook to review and collaborate with your entire team.
-
Learn more
-
-
-
-
Figma Plugin
-
Embed your stories into Figma to cross-reference the design and live
- implementation in one place.
-
Learn more
-
-
-
-
Testing
-
Use stories to test a component in all its variations, no matter how
- complex.
-
Learn more
-
-
-
-
Accessibility
-
Automatically test your components for a11y issues as you develop.
-
Learn more
-
-
-
-
Theming
-
Theme Storybook's UI to personalize it to your project.
-
Learn more
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Join our contributors building the future of UI development.
-
-
Star on GitHub
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/stories/Header.stories.svelte b/src/stories/Header.stories.svelte
deleted file mode 100644
index 0130c115..00000000
--- a/src/stories/Header.stories.svelte
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
diff --git a/src/stories/Header.svelte b/src/stories/Header.svelte
deleted file mode 100644
index 14e890c7..00000000
--- a/src/stories/Header.svelte
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
diff --git a/src/stories/Page.stories.svelte b/src/stories/Page.stories.svelte
deleted file mode 100644
index ed850d83..00000000
--- a/src/stories/Page.stories.svelte
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
- {
- const canvas = within(canvasElement);
- const loginButton = canvas.getByRole('button', { name: /Log in/i });
- await expect(loginButton).toBeInTheDocument();
- await userEvent.click(loginButton);
- await waitFor(() => expect(loginButton).not.toBeInTheDocument());
-
- const logoutButton = canvas.getByRole('button', { name: /Log out/i });
- await expect(logoutButton).toBeInTheDocument();
- }}
-/>
-
-
diff --git a/src/stories/Page.svelte b/src/stories/Page.svelte
deleted file mode 100644
index c4c069a5..00000000
--- a/src/stories/Page.svelte
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
- (user = { name: 'Jane Doe' })}
- onLogout={() => (user = undefined)}
- onCreateAccount={() => (user = { name: 'Jane Doe' })}
- />
-
-
- Pages in Storybook
-
- We recommend building UIs with a
-
- component-driven
-
- process starting with atomic components and ending with pages.
-
-
- Render pages with mock data. This makes it easy to build and review page states without
- needing to navigate to them in your app. Here are some handy patterns for managing page data
- in Storybook:
-
-
-
- Use a higher-level connected component. Storybook helps you compose such data from the
- "args" of child component stories
-
-
- Assemble data in the page component from your services. You can mock these services out
- using Storybook.
-
-
-
- Get a guided tutorial on component-driven development at
-
- Storybook tutorials
-
- . Read more in the
- docs
- .
-
-
-
Tip
- Adjust the width of the canvas with the
-
-
-
-
-
- Viewports addon in the toolbar
-
-
-
diff --git a/src/stories/Spinner.stories.svelte b/src/stories/Spinner.stories.svelte
deleted file mode 100644
index 6cba2e07..00000000
--- a/src/stories/Spinner.stories.svelte
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
diff --git a/src/stories/Spinner.svelte b/src/stories/Spinner.svelte
deleted file mode 100644
index 54db7079..00000000
--- a/src/stories/Spinner.svelte
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
diff --git a/src/stories/assets/accessibility.png b/src/stories/assets/accessibility.png
deleted file mode 100644
index 6ffe6fea..00000000
Binary files a/src/stories/assets/accessibility.png and /dev/null differ
diff --git a/src/stories/assets/accessibility.svg b/src/stories/assets/accessibility.svg
deleted file mode 100644
index 107e93f8..00000000
--- a/src/stories/assets/accessibility.svg
+++ /dev/null
@@ -1 +0,0 @@
-Accessibility
\ No newline at end of file
diff --git a/src/stories/assets/addon-library.png b/src/stories/assets/addon-library.png
deleted file mode 100644
index 95deb38a..00000000
Binary files a/src/stories/assets/addon-library.png and /dev/null differ
diff --git a/src/stories/assets/assets.png b/src/stories/assets/assets.png
deleted file mode 100644
index cfba6817..00000000
Binary files a/src/stories/assets/assets.png and /dev/null differ
diff --git a/src/stories/assets/avif-test-image.avif b/src/stories/assets/avif-test-image.avif
deleted file mode 100644
index 530709bc..00000000
Binary files a/src/stories/assets/avif-test-image.avif and /dev/null differ
diff --git a/src/stories/assets/context.png b/src/stories/assets/context.png
deleted file mode 100644
index e5cd249a..00000000
Binary files a/src/stories/assets/context.png and /dev/null differ
diff --git a/src/stories/assets/discord.svg b/src/stories/assets/discord.svg
deleted file mode 100644
index d638958b..00000000
--- a/src/stories/assets/discord.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/stories/assets/docs.png b/src/stories/assets/docs.png
deleted file mode 100644
index a749629d..00000000
Binary files a/src/stories/assets/docs.png and /dev/null differ
diff --git a/src/stories/assets/figma-plugin.png b/src/stories/assets/figma-plugin.png
deleted file mode 100644
index 8f79b08c..00000000
Binary files a/src/stories/assets/figma-plugin.png and /dev/null differ
diff --git a/src/stories/assets/github.svg b/src/stories/assets/github.svg
deleted file mode 100644
index dc513528..00000000
--- a/src/stories/assets/github.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/stories/assets/share.png b/src/stories/assets/share.png
deleted file mode 100644
index 8097a370..00000000
Binary files a/src/stories/assets/share.png and /dev/null differ
diff --git a/src/stories/assets/styling.png b/src/stories/assets/styling.png
deleted file mode 100644
index d341e826..00000000
Binary files a/src/stories/assets/styling.png and /dev/null differ
diff --git a/src/stories/assets/testing.png b/src/stories/assets/testing.png
deleted file mode 100644
index d4ac39a0..00000000
Binary files a/src/stories/assets/testing.png and /dev/null differ
diff --git a/src/stories/assets/theming.png b/src/stories/assets/theming.png
deleted file mode 100644
index 1535eb9b..00000000
Binary files a/src/stories/assets/theming.png and /dev/null differ
diff --git a/src/stories/assets/tutorials.svg b/src/stories/assets/tutorials.svg
deleted file mode 100644
index b492a9c6..00000000
--- a/src/stories/assets/tutorials.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/stories/assets/youtube.svg b/src/stories/assets/youtube.svg
deleted file mode 100644
index a7515d7e..00000000
--- a/src/stories/assets/youtube.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/stories/button.css b/src/stories/button.css
deleted file mode 100644
index 4e3620b0..00000000
--- a/src/stories/button.css
+++ /dev/null
@@ -1,30 +0,0 @@
-.storybook-button {
- display: inline-block;
- cursor: pointer;
- border: 0;
- border-radius: 3em;
- font-weight: 700;
- line-height: 1;
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
-}
-.storybook-button--primary {
- background-color: #555ab9;
- color: white;
-}
-.storybook-button--secondary {
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
- background-color: transparent;
- color: #333;
-}
-.storybook-button--small {
- padding: 10px 16px;
- font-size: 12px;
-}
-.storybook-button--medium {
- padding: 11px 20px;
- font-size: 14px;
-}
-.storybook-button--large {
- padding: 12px 24px;
- font-size: 16px;
-}
diff --git a/src/stories/header.css b/src/stories/header.css
deleted file mode 100644
index 5efd46c2..00000000
--- a/src/stories/header.css
+++ /dev/null
@@ -1,32 +0,0 @@
-.storybook-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- padding: 15px 20px;
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
-}
-
-.storybook-header svg {
- display: inline-block;
- vertical-align: top;
-}
-
-.storybook-header h1 {
- display: inline-block;
- vertical-align: top;
- margin: 6px 0 6px 10px;
- font-weight: 700;
- font-size: 20px;
- line-height: 1;
-}
-
-.storybook-header button + button {
- margin-left: 10px;
-}
-
-.storybook-header .welcome {
- margin-right: 10px;
- color: #333;
- font-size: 14px;
-}
diff --git a/src/stories/page.css b/src/stories/page.css
deleted file mode 100644
index 77c81d2d..00000000
--- a/src/stories/page.css
+++ /dev/null
@@ -1,68 +0,0 @@
-.storybook-page {
- margin: 0 auto;
- padding: 48px 20px;
- max-width: 600px;
- color: #333;
- font-size: 14px;
- line-height: 24px;
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
-}
-
-.storybook-page h2 {
- display: inline-block;
- vertical-align: top;
- margin: 0 0 4px;
- font-weight: 700;
- font-size: 32px;
- line-height: 1;
-}
-
-.storybook-page p {
- margin: 1em 0;
-}
-
-.storybook-page a {
- color: inherit;
-}
-
-.storybook-page ul {
- margin: 1em 0;
- padding-left: 30px;
-}
-
-.storybook-page li {
- margin-bottom: 8px;
-}
-
-.storybook-page .tip {
- display: inline-block;
- vertical-align: top;
- margin-right: 10px;
- border-radius: 1em;
- background: #e7fdd8;
- padding: 4px 12px;
- color: #357a14;
- font-weight: 700;
- font-size: 11px;
- line-height: 12px;
-}
-
-.storybook-page .tip-wrapper {
- margin-top: 40px;
- margin-bottom: 40px;
- font-size: 13px;
- line-height: 20px;
-}
-
-.storybook-page .tip-wrapper svg {
- display: inline-block;
- vertical-align: top;
- margin-top: 3px;
- margin-right: 4px;
- width: 12px;
- height: 12px;
-}
-
-.storybook-page .tip-wrapper svg path {
- fill: #1ea7fd;
-}
diff --git a/vite.config.ts b/vite.config.ts
index c525c425..e521b330 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,5 +1,4 @@
import { defineConfig, type UserConfig } from 'vite';
-import { svelte } from '@sveltejs/vite-plugin-svelte';
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'path';