Skip to content

Commit 8a2fae8

Browse files
update storybook
1 parent 77810ab commit 8a2fae8

File tree

9 files changed

+28
-109
lines changed

9 files changed

+28
-109
lines changed

bun.lockb

-384 Bytes
Binary file not shown.

package.json

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"email": "piotr@kulpinski.pl",
1010
"url": "https://kulpinski.pl"
1111
},
12-
"repository": "piotrkulpinski/design-system",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/piotrkulpinski/design-system.git"
15+
},
1316
"main": "./src/index.ts",
1417
"types": "./src/index.ts",
1518
"scripts": {
@@ -44,22 +47,23 @@
4447
"@uiw/react-color-sketch": "^2.3.4",
4548
"cva": "^1.0.0-beta.2",
4649
"lucide-react": "^0.471.1",
47-
"markdown-to-jsx": "^7.4.1",
50+
"react": "^19.0.0",
51+
"react-dom": "^19.0.0",
4852
"tailwind-merge": "^2.6.0"
4953
},
5054
"devDependencies": {
5155
"@biomejs/biome": "^1.9.4",
52-
"@storybook/addon-essentials": "^8.4.7",
53-
"@storybook/addon-interactions": "^8.4.7",
54-
"@storybook/addon-links": "^8.4.7",
55-
"@storybook/addon-onboarding": "^8.4.7",
56-
"@storybook/addon-themes": "^8.4.7",
57-
"@storybook/blocks": "^8.4.7",
58-
"@storybook/manager-api": "^8.4.7",
59-
"@storybook/react": "^8.4.7",
60-
"@storybook/react-vite": "^8.4.7",
61-
"@storybook/test": "^8.4.7",
62-
"@storybook/theming": "^8.4.7",
56+
"@storybook/addon-essentials": "^8.5.0",
57+
"@storybook/addon-interactions": "^8.5.0",
58+
"@storybook/addon-links": "^8.5.0",
59+
"@storybook/addon-onboarding": "^8.5.0",
60+
"@storybook/addon-themes": "^8.5.0",
61+
"@storybook/blocks": "^8.5.0",
62+
"@storybook/manager-api": "^8.5.0",
63+
"@storybook/react": "^8.5.0",
64+
"@storybook/react-vite": "^8.5.0",
65+
"@storybook/test": "^8.5.0",
66+
"@storybook/theming": "^8.5.0",
6367
"@tailwindcss/container-queries": "^0.1.1",
6468
"@tailwindcss/typography": "^0.5.16",
6569
"@types/bun": "^1.1.16",
@@ -69,10 +73,8 @@
6973
"auto": "^11.3.0",
7074
"autoprefixer": "^10.4.20",
7175
"postcss": "^8.5.1",
72-
"react": "^19.0.0",
73-
"react-dom": "^19.0.0",
7476
"rimraf": "^5.0.10",
75-
"storybook": "^8.4.7",
77+
"storybook": "^8.5.0",
7678
"tailwindcss": "^3.4.17",
7779
"tailwindcss-animate": "^1.0.7",
7880
"tslib": "^2.8.1",
@@ -83,10 +85,10 @@
8385
"peerDependencies": {
8486
"@tailwindcss/container-queries": "^0.1.1",
8587
"@tailwindcss/typography": "^0.5.10",
86-
"cva": "^1.0.0-beta.1",
87-
"react": "^18.3.0",
88-
"react-dom": "^18.3.0",
89-
"tailwindcss": "^3.4.1",
88+
"cva": "^1.0.0-beta.2",
89+
"react": "^19.0.0",
90+
"react-dom": "^19.0.0",
91+
"tailwindcss": "^3.4.17",
9092
"tailwindcss-animate": "^1.0.7"
9193
},
9294
"peerDependenciesMeta": {

src/forms/ui/fieldset/fieldset.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { Fieldset } from "./fieldset"
33

44
type Story = StoryObj<typeof Fieldset>
55

6+
// Meta
67
export default {
8+
title: "Form UI/Fieldset",
79
component: Fieldset,
810
args: {
911
layout: "adaptive",
@@ -14,6 +16,7 @@ export default {
1416
},
1517
} satisfies Meta<typeof Fieldset>
1618

19+
// Stories
1720
export const Default: Story = {
1821
args: {
1922
children: <div>Fieldset content</div>,

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export * from "./ui/tooltip"
3737

3838
// Typography
3939
export * from "./typography/heading"
40-
export * from "./typography/markdown"
4140
export * from "./typography/paragraph"
4241
export * from "./typography/prose"
4342
export * from "./typography/subheading"

src/layout/header/header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { HTMLAttributes, ReactNode } from "react"
55
import { type VariantProps, cx } from "~/shared/cva"
66
import { isReactElement } from "~/shared/helpers"
77
import { Heading, type HeadingProps } from "~/typography/heading"
8-
import { Markdown, type MarkdownProps } from "~/typography/markdown"
8+
import { Prose, type ProseProps } from "~/typography/prose"
99
import { Stack } from "~/ui/stack"
1010
import { headerDescriptionVariants, headerTitleVariants, headerVariants } from "./header.variants"
1111

@@ -62,10 +62,10 @@ const HeaderDescription = ({
6262
className,
6363
size = "sm",
6464
...props
65-
}: MarkdownProps & VariantProps<typeof headerDescriptionVariants>) => {
65+
}: ProseProps & VariantProps<typeof headerDescriptionVariants>) => {
6666
return (
6767
<div className="w-full">
68-
<Markdown size={size} className={cx(headerDescriptionVariants({ className }))} {...props} />
68+
<Prose size={size} className={cx(headerDescriptionVariants({ className }))} {...props} />
6969
</div>
7070
)
7171
}

src/typography/markdown/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/typography/markdown/markdown.stories.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/typography/markdown/markdown.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"declaration": true,
77
"declarationMap": true,
88
"esModuleInterop": true,
9-
"forceConsistentCasingInFileNames": false,
109
"incremental": false,
1110
"isolatedModules": true,
1211
"lib": ["ESNext", "DOM", "DOM.Iterable"],

0 commit comments

Comments
 (0)