From c533756efab1ea07a3edd40fd102bc3d55591a49 Mon Sep 17 00:00:00 2001
From: Yuhao <16722967+clementinelove@users.noreply.github.com>
Date: Sat, 18 Jan 2025 13:40:34 +0000
Subject: [PATCH] Cleanup some example files.
---
README.md | 3 +-
src/stories/Configure.mdx | 446 ------------------
src/stories/ExampleButton.stories.ts | 60 ---
src/stories/ExampleButton.tsx | 41 --
src/stories/Header.stories.ts | 33 --
src/stories/Header.tsx | 56 ---
src/stories/Page.stories.ts | 32 --
src/stories/Page.tsx | 97 ----
src/stories/Typography.mdx | 55 ---
src/stories/{ => atoms}/Button.stories.tsx | 0
src/stories/{ => atoms}/Button.tsx | 0
src/stories/{ => atoms}/Heading.stories.tsx | 2 +-
src/stories/{ => atoms}/Heading.tsx | 0
src/stories/{ => atoms}/Icon.tsx | 0
src/stories/{ => atoms}/Icons.mdx | 0
src/stories/{ => atoms}/Icons.stories.tsx | 2 +-
src/stories/button.css | 30 --
src/stories/header.css | 32 --
.../ContentTemplate.stories.tsx} | 6 +-
.../ContentTemplate.tsx} | 9 +-
src/stories/page.css | 69 ---
21 files changed, 12 insertions(+), 961 deletions(-)
delete mode 100644 src/stories/Configure.mdx
delete mode 100644 src/stories/ExampleButton.stories.ts
delete mode 100644 src/stories/ExampleButton.tsx
delete mode 100644 src/stories/Header.stories.ts
delete mode 100644 src/stories/Header.tsx
delete mode 100644 src/stories/Page.stories.ts
delete mode 100644 src/stories/Page.tsx
delete mode 100644 src/stories/Typography.mdx
rename src/stories/{ => atoms}/Button.stories.tsx (100%)
rename src/stories/{ => atoms}/Button.tsx (100%)
rename src/stories/{ => atoms}/Heading.stories.tsx (94%)
rename src/stories/{ => atoms}/Heading.tsx (100%)
rename src/stories/{ => atoms}/Icon.tsx (100%)
rename src/stories/{ => atoms}/Icons.mdx (100%)
rename src/stories/{ => atoms}/Icons.stories.tsx (87%)
delete mode 100644 src/stories/button.css
delete mode 100644 src/stories/header.css
rename src/stories/{Content.stories.tsx => organisms/ContentTemplate.stories.tsx} (79%)
rename src/stories/{Content.tsx => organisms/ContentTemplate.tsx} (71%)
delete mode 100644 src/stories/page.css
diff --git a/README.md b/README.md
index b653a04..b4acbb8 100644
--- a/README.md
+++ b/README.md
@@ -17,4 +17,5 @@ pnpm run dev
We use storybook to smooth our component testing process.
-For a newer version of component (for example, a redesign of button and button states), always create stories and component inside the `src/stories` folder. Production ready components should be presented in `src/components`, so move the component file to `src/components` when it becomes production ready.
\ No newline at end of file
+For a newer version of component (for example, a redesign of button and button states),
+always create stories and component inside the `src/stories` folder.
\ No newline at end of file
diff --git a/src/stories/Configure.mdx b/src/stories/Configure.mdx
deleted file mode 100644
index cc32923..0000000
--- a/src/stories/Configure.mdx
+++ /dev/null
@@ -1,446 +0,0 @@
-import { Meta } from "@storybook/blocks";
-import Image from "next/image";
-
-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.
To link static files (like fonts) to your projects and stories, use the
- `staticDirs` configuration option to specify folders to load when
- starting Storybook.
- # 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.
- 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.
-