chore: upgrade to storybook 9 (#6141)

This commit is contained in:
Piyush Gupta
2025-07-07 15:25:22 +05:30
committed by GitHub
parent a490600479
commit 16caae6dd6
27 changed files with 1950 additions and 2043 deletions

View File

@@ -1,5 +1,4 @@
import { TolgeeNextProvider } from "@/tolgee/client";
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import { AlertDialog } from "./index";
const meta: Meta<typeof AlertDialog> = {
@@ -42,13 +41,6 @@ const meta: Meta<typeof AlertDialog> = {
description: "Function called when decline button is clicked",
},
},
decorators: [
(Story) => (
<TolgeeNextProvider language="en" staticData={{}}>
<Story />
</TolgeeNextProvider>
),
],
};
export default meta;

View File

@@ -1,5 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import { LightbulbIcon } from "lucide-react";
import type * as React from "react";
import { Alert, AlertButton, AlertDescription, AlertTitle } from "./index";
// We'll define the story options separately from the component props

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Badge } from "./index";
const meta = {

View File

@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { fn } from "storybook/test";
import { Button } from "./index";
const meta = {

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { BellRing } from "lucide-react";
import { Card } from "./index";

View File

@@ -1,6 +1,6 @@
import { useArgs } from "@storybook/preview-api";
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { useArgs } from "storybook/preview-api";
import { fn } from "storybook/test";
import { ColorPicker } from "./index";
const meta: Meta<typeof ColorPicker> = {

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { AlertCircle } from "lucide-react";
import { Button } from "../button";
import {

View File

@@ -1,4 +1,4 @@
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import { FileIcon, FolderIcon, ImageIcon } from "lucide-react";
import { logger } from "@formbricks/logger";
import { InputCombobox } from "./index";

View File

@@ -1,4 +1,4 @@
import { Meta, StoryObj } from "@storybook/react";
import { Meta, StoryObj } from "@storybook/react-vite";
import { Input } from "./index";
const meta = {

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { BellRing } from "lucide-react";
import { Card } from "./index";

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Label } from "./index";
const meta = {

View File

@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { LoadingSpinner } from "./index";
const meta: Meta<typeof LoadingSpinner> = {

View File

@@ -1,6 +1,6 @@
import { Button } from "@/modules/ui/components/button";
import { PageHeader } from "@/modules/ui/components/page-header";
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
const meta = {
title: "ui/PageHeader",