/* * (c) Copyright 2026 Palantir Technologies Inc. All rights reserved. */ import type { Meta, StoryObj } from "@storybook/react-vite"; import React from "react"; import { useArgs, useCallback } from "storybook/preview-api"; import { Flex } from "@blueprintjs/labs"; import { Button } from "../button/buttons"; import { DialogBody } from "./dialogBody"; import { DialogStep } from "./dialogStep"; import { MultistepDialog } from "./multistepDialog"; const disabledArgs = [ "containerRef", "hasBackdrop", "transitionName", "backButtonProps", "closeButtonProps", "finalButtonProps", "nextButtonProps", ] as const satisfies ReadonlyArray>; function StepPanel({ stepNumber }: { stepNumber: number }) { return (

This is the content for step {stepNumber}.

You can place forms, instructions, or any other content here.

); } function MultistepDialogDemo( props: React.ComponentProps & { buttonText?: string; onOpen: () => void; onClose: () => void; }, ) { const { buttonText = "Open Multistep Dialog", children: _children, onOpen, onClose, ...dialogProps } = props; return ( <>