diff --git a/apps/cyberstorm-storybook/stories/components/Dialog.stories.tsx b/apps/cyberstorm-storybook/stories/components/Dialog.stories.tsx index 99f775ac8..b6249bfb8 100644 --- a/apps/cyberstorm-storybook/stories/components/Dialog.stories.tsx +++ b/apps/cyberstorm-storybook/stories/components/Dialog.stories.tsx @@ -1,6 +1,5 @@ import { StoryFn, Meta } from "@storybook/react"; import { Button, Dialog } from "@thunderstore/cyberstorm"; -import { DialogProps } from "@thunderstore/cyberstorm/src/components/Dialog/Dialog"; import React from "react"; const meta = { @@ -17,7 +16,7 @@ const defaultArgs = { ), }; -const Template: StoryFn = (args: DialogProps) => ( +const Template: StoryFn = (args) => (
; -const defaultArgs: ToastProps = { +const defaultArgs = { id: uuid(), message: "-", - variant: "info", + variant: "info" as const, }; const Template: StoryFn = (args) => ( diff --git a/packages/cyberstorm/src/components/Dialog/Dialog.tsx b/packages/cyberstorm/src/components/Dialog/Dialog.tsx index e3ca6d5a8..127340592 100644 --- a/packages/cyberstorm/src/components/Dialog/Dialog.tsx +++ b/packages/cyberstorm/src/components/Dialog/Dialog.tsx @@ -8,13 +8,12 @@ import { faXmarkLarge } from "@fortawesome/pro-solid-svg-icons"; import { Tooltip } from "../.."; import { classnames } from "../../utils/utils"; -export interface DialogProps extends PropsWithChildren { +interface DialogProps extends PropsWithChildren { defaultOpen?: boolean; trigger?: ReactNode; title?: string; - noPadding?: boolean; + disableDialogContentStyles?: boolean; showHeaderBorder?: boolean; - preStyledFooter?: boolean; } /** @@ -26,7 +25,7 @@ export function Dialog(props: DialogProps) { defaultOpen = false, trigger, title = undefined, - noPadding = false, + disableDialogContentStyles = false, showHeaderBorder = false, } = props; @@ -76,7 +75,7 @@ export function Dialog(props: DialogProps) {
{children} diff --git a/packages/cyberstorm/src/components/Layout/PackageDetailLayout/PackageDependencyList/PackageDependencyList.tsx b/packages/cyberstorm/src/components/Layout/PackageDetailLayout/PackageDependencyList/PackageDependencyList.tsx index a06be9a2c..8c64f763a 100644 --- a/packages/cyberstorm/src/components/Layout/PackageDetailLayout/PackageDependencyList/PackageDependencyList.tsx +++ b/packages/cyberstorm/src/components/Layout/PackageDetailLayout/PackageDependencyList/PackageDependencyList.tsx @@ -84,7 +84,7 @@ export function PackageDependencyList(props: PackageDependencyListProps) { headerIcon={} headerRightContent={ - + {props.children} diff --git a/packages/cyberstorm/src/index.ts b/packages/cyberstorm/src/index.ts index 6d4bb57e4..995ba2ba4 100644 --- a/packages/cyberstorm/src/index.ts +++ b/packages/cyberstorm/src/index.ts @@ -84,7 +84,7 @@ export { export { Title, type TitleProps } from "./components/Title/Title"; export { Tooltip, type TooltipProps } from "./components/Tooltip/Tooltip"; export { Alert, type AlertProps } from "./components/Alert/Alert"; -export { Toast, type ToastProps } from "./components/Toast/Toast"; +export { Toast } from "./components/Toast/Toast"; export { CommunityListLayout } from "./components/Layout/CommunityListLayout/CommunityListLayout"; export { ErrorLayout } from "./components/Layout/ErrorLayout/ErrorLayout"; export { HomeLayout } from "./components/Layout/HomeLayout/HomeLayout";