Skip to content

Commit

Permalink
Chore/storybook (#98)
Browse files Browse the repository at this point in the history
* chore: update storybook

* update addons

* fix: linting

* update packages
  • Loading branch information
severinlandolt authored Nov 3, 2024
1 parent 9f00e56 commit ce86ef4
Show file tree
Hide file tree
Showing 9 changed files with 1,129 additions and 2,291 deletions.
1 change: 0 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const config: StorybookConfig = {
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
"@storybook/addon-a11y",
],
Expand Down
45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,48 +34,47 @@
"@radix-ui/react-tooltip": "^1.1.3",
"@react-aria/datepicker": "^3.11.4",
"@react-stately/datepicker": "^3.10.3",
"@remixicon/react": "^4.3.0",
"@storybook/addon-a11y": "^8.3.6",
"@storybook/manager-api": "^8.3.6",
"@storybook/theming": "^8.3.6",
"@remixicon/react": "^4.5.0",
"@storybook/addon-a11y": "^8.4.1",
"@storybook/manager-api": "^8.4.1",
"@storybook/theming": "^8.4.1",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"prettier-plugin-tailwindcss": "^0.6.8",
"react": "^18.3.1",
"react-day-picker": "^8.10.1",
"react-dom": "^18.3.1",
"recharts": "^2.13.0",
"recharts": "^2.13.3",
"tailwind-merge": "^2.5.4",
"tailwind-variants": "^0.2.1"
},
"devDependencies": {
"@chromatic-com/storybook": "^2.0.2",
"@playwright/test": "^1.48.1",
"@storybook/addon-essentials": "^8.3.6",
"@storybook/addon-interactions": "^8.3.6",
"@storybook/addon-links": "^8.3.6",
"@storybook/blocks": "^8.3.6",
"@storybook/react": "^8.3.6",
"@storybook/react-vite": "^8.3.6",
"@storybook/test": "^8.3.6",
"@types/node": "^22.7.7",
"@types/react": "^18.3.11",
"@playwright/test": "^1.48.2",
"@storybook/addon-essentials": "^8.4.1",
"@storybook/addon-interactions": "^8.4.1",
"@storybook/addon-links": "^8.4.1",
"@storybook/blocks": "^8.4.1",
"@storybook/react": "^8.4.1",
"@storybook/react-vite": "^8.4.1",
"@storybook/test": "^8.4.1",
"@types/node": "^22.8.7",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.13",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-storybook": "^0.10.2",
"postcss": "^8.4.47",
"prettier": "3.3.3",
"storybook": "^8.3.6",
"storybook": "^8.4.1",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.3"
"vitest": "^2.1.4"
}
}
3,318 changes: 1,103 additions & 2,215 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

51 changes: 0 additions & 51 deletions src/components/ComboChart/types.d.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/components/Slider/slider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ControlledSlider = (args: any) => {
<Card className="w-96">
<form
onSubmit={(event) => {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
event.preventDefault(),
alert("Submitted: " + `${value[0]}, ${value[1]}`)
}}
Expand Down
1 change: 1 addition & 0 deletions src/components/Switch/switch.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const SimpleIdSwitch = (args: any) => {
<Card className="w-96">
<form
onSubmit={(event) => {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
event.preventDefault(), alert("Submitted")
}}
onReset={() => setChecked(false)}
Expand Down
1 change: 0 additions & 1 deletion src/components/Tracker/tracker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ test.describe("Expect tracker default", () => {
.locator(".size-full > .size-full")
.first(),
).toBeVisible()
page
page
.frameLocator('iframe[title="storybook-preview-iframe"]')
.locator(".size-full > .size-full")
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useToast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type ToasterToast = ToastProps & {
action?: ToastActionElement
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const actionTypes = {
ADD_TOAST: "ADD_TOAST",
UPDATE_TOAST: "UPDATE_TOAST",
Expand Down
1 change: 1 addition & 0 deletions src/utils/hasOnlyOneValueForKey.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// Tremor hasOnlyOneValueForKey [v0.1.0]

export function hasOnlyOneValueForKey(
Expand Down

0 comments on commit ce86ef4

Please sign in to comment.