Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Feb 27, 2025
1 parent 67aa44e commit b96892c
Show file tree
Hide file tree
Showing 7 changed files with 888 additions and 899 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist
dist-ssr
*.local
coverage
site

# Logs
logs
Expand Down
12 changes: 3 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/components/**/*.stories.@(ts|tsx)"],
stories: ["../src/**/*.mdx", "../src/components/**/*.stories.@(ts|tsx)"],
addons: [
{
name: "@storybook/addon-essentials",
options: {
docs: false,
},
},
"@storybook/addon-onboarding",
"@chromatic-com/storybook",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
Expand Down
21 changes: 21 additions & 0 deletions .storybook/preview.ts → .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import type { Preview } from "@storybook/react";
import {
Title,
Subtitle,
Description,
Primary,
Controls,
Stories,
} from "@storybook/blocks";

import "@fontsource/material-icons/latin-400.css";
import "@fontsource/roboto/300.css";
Expand All @@ -7,6 +15,7 @@ import "@fontsource/roboto/500.css";
import "@fontsource/roboto/700.css";
import "../src/index.css";

// noinspection JSUnusedGlobalSymbols
const preview: Preview = {
parameters: {
controls: {
Expand All @@ -15,6 +24,18 @@ const preview: Preview = {
date: /Date$/i,
},
},
docs: {
page: () => (
<>
<Title />
<Subtitle />
<Description />
<Primary />
<Controls />
<Stories />
</>
),
},
},
};

Expand Down
5 changes: 5 additions & 0 deletions chromatic.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"onlyChanged": true,
"projectId": "Project:67c04900fc4ab71d88d4de37",
"zip": true
}
Loading

0 comments on commit b96892c

Please sign in to comment.