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/package.json b/package.json index afb23a87..faf2f801 100644 --- a/package.json +++ b/package.json @@ -38,16 +38,19 @@ }, "devDependencies": { "@changesets/cli": "^2.27.11", - "@chromatic-com/storybook": "^1.9.0", + "@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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9a8e8ef..869f85c1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,8 +58,8 @@ 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.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) @@ -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) @@ -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==} @@ -4466,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' 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/stories/docs/inline.md b/src/components/AdSlot/InlineAd.mdx similarity index 78% rename from src/components/AdSlot/stories/docs/inline.md rename to src/components/AdSlot/InlineAd.mdx index abac191c..5be76a80 100644 --- a/src/components/AdSlot/stories/docs/inline.md +++ b/src/components/AdSlot/InlineAd.mdx @@ -1,3 +1,11 @@ +import { Meta, Canvas } from '@storybook/blocks'; + +import * as InlineAdStories from './InlineAd.stories.svelte'; + + + +# InlineAd + Add programmatic ads inline on your page. > **IMPORTANT!** Make sure ads are only used on dotcom pages, never on embeds. @@ -38,9 +46,11 @@ You may add **up to three** inline ads per page, but must set the `n` prop on mu ```svelte - + - + - + ``` + + diff --git a/src/components/AdSlot/InlineAd.stories.svelte b/src/components/AdSlot/InlineAd.stories.svelte index baff62a7..cac455cb 100644 --- a/src/components/AdSlot/InlineAd.stories.svelte +++ b/src/components/AdSlot/InlineAd.stories.svelte @@ -1,27 +1,20 @@ - - - +{/snippet} - + diff --git a/src/components/AdSlot/InlineAd.svelte b/src/components/AdSlot/InlineAd.svelte index 502b6619..6a0e8331 100644 --- a/src/components/AdSlot/InlineAd.svelte +++ b/src/components/AdSlot/InlineAd.svelte @@ -5,15 +5,16 @@ import type { InlineAd } from './@types/ads'; import ResponsiveAd from './ResponsiveAd.svelte'; - /** Add an ID to target with SCSS. */ - export let id: string = ''; + interface Props { + /** Add an ID to target with SCSS. */ + id?: string; + /** Number of the inline ad in sequence. Use to add multiple inline ads to a page. */ + n?: 1 | 2 | 3 | '1' | '2' | '3'; + /** Add a class to target with SCSS. Defaults to `my-12`. */ + class?: string; + } - /** Number of the inline ad in sequence. Use to add multiple inline ads to a page. */ - export let n: 1 | 2 | 3 | '1' | '2' | '3' = 1; - - /** Add a class to target with SCSS. */ - let cls: string = 'my-12'; - export { cls as class }; + let { id = '', class: cls = 'my-12', n = 1 }: Props = $props(); const desktopPlacementName: InlineAd['desktop']['placementName'] = `reuters_desktop_native_${n}`; diff --git a/src/components/AdSlot/stories/docs/leaderboard.md b/src/components/AdSlot/LeaderboardAd.mdx similarity index 67% rename from src/components/AdSlot/stories/docs/leaderboard.md rename to src/components/AdSlot/LeaderboardAd.mdx index b2c51125..a2550aac 100644 --- a/src/components/AdSlot/stories/docs/leaderboard.md +++ b/src/components/AdSlot/LeaderboardAd.mdx @@ -1,3 +1,11 @@ +import { Meta, Canvas } from '@storybook/blocks'; + +import * as LeaderboardAdStories from './LeaderboardAd.stories.svelte'; + + + +# LeaderboardAd + Add a leaderboard ad to your page. > **IMPORTANT!** Make sure ads are only used on dotcom pages, never on embeds. @@ -19,3 +27,5 @@ Add a leaderboard ad to your page. ``` + + diff --git a/src/components/AdSlot/LeaderboardAd.stories.svelte b/src/components/AdSlot/LeaderboardAd.stories.svelte index 754f4d3c..f86c4fc4 100644 --- a/src/components/AdSlot/LeaderboardAd.stories.svelte +++ b/src/components/AdSlot/LeaderboardAd.stories.svelte @@ -1,29 +1,22 @@ - - - +{/snippet} - + +``` + +... 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 @@ - -
@@ -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 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 @@ - - - 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. -
-
-
- A wall of logos representing different styling technologies -

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 -
-
- An abstraction representing the composition of data for a component -

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 -
-
- A representation of typography and image assets -
-

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. -
- -
-
-
- A screenshot showing the autodocs tag being set, pointing a docs page being generated -

Autodocs

-

Auto-generate living, - interactive reference documentation from your components and stories.

- Learn more -
-
- A browser window showing a Storybook being published to a chromatic.com URL -

Publish to Chromatic

-

Publish your Storybook to review and collaborate with your entire team.

- Learn more -
-
- Windows showing the Storybook plugin in Figma -

Figma Plugin

-

Embed your stories into Figma to cross-reference the design and live - implementation in one place.

- Learn more -
-
- Screenshot of tests passing and failing -

Testing

-

Use stories to test a component in all its variations, no matter how - complex.

- Learn more -
-
- Screenshot of accessibility tests passing and failing -

Accessibility

-

Automatically test your components for a11y issues as you develop.

- Learn more -
-
- Screenshot of Storybook in light and dark mode -

Theming

-

Theme Storybook's UI to personalize it to your project.

- Learn more -
-
-
-
-
-
-

Addons

-

Integrate your tools with Storybook to connect workflows.

- Discover all addons -
-
- Integrate your tools with Storybook to connect workflows. -
-
- -
-
- Github logo - Join our contributors building the future of UI development. - - Star on GitHub -
-
- Discord logo -
- Get support and chat with frontend developers. - - Join Discord server -
-
-
- Youtube logo -
- Watch tutorials, feature previews and interviews. - - Watch on YouTube -
-
-
- A book -

Follow guided walkthroughs on for key workflows.

- - Discover tutorials -
-
- - 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 @@ - - -
-
-
- - - - - - - -

Acme

-
-
- {#if user} - - Welcome, {user.name}! - -
-
-
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';