diff --git a/packages/bee-q/src/components.d.ts b/packages/bee-q/src/components.d.ts index cebe8ce44..16099a5c9 100644 --- a/packages/bee-q/src/components.d.ts +++ b/packages/bee-q/src/components.d.ts @@ -173,22 +173,22 @@ export namespace Components { "value": string; } interface BqDialog { - /** - * If true renders x icon - */ - "closable": boolean; /** * Hides the dialog */ "close": () => Promise; /** - * If true will not close on outside click + * If true will not close on outside click */ "disableOutsideClickClose": boolean; /** * The appearance of footer */ "footerApperance": TDialogFooterAppearance; + /** + * If true it hides close button + */ + "hideCloseButton": boolean; /** * Shows the dialog */ @@ -910,17 +910,17 @@ declare namespace LocalJSX { } interface BqDialog { /** - * If true renders x icon - */ - "closable"?: boolean; - /** - * If true will not close on outside click + * If true will not close on outside click */ "disableOutsideClickClose"?: boolean; /** * The appearance of footer */ "footerApperance"?: TDialogFooterAppearance; + /** + * If true it hides close button + */ + "hideCloseButton"?: boolean; /** * The size of the dialog */ diff --git a/packages/bee-q/src/components/dialog/_storybook/bq-dialog.stories.tsx b/packages/bee-q/src/components/dialog/_storybook/bq-dialog.stories.tsx index 2a102632d..66f621d59 100644 --- a/packages/bee-q/src/components/dialog/_storybook/bq-dialog.stories.tsx +++ b/packages/bee-q/src/components/dialog/_storybook/bq-dialog.stories.tsx @@ -17,14 +17,13 @@ const meta: Meta = { text: { control: 'text', table: { disable: true } }, size: { control: 'select', options: [...DIALOG_SIZE] }, 'footer-apperance': { control: 'select', options: [...DIALOG_FOOTER_APPEARANCE] }, - closable: { control: 'boolean' }, + 'hide-close-button': { control: 'boolean' }, 'disable-outside-click-close': { control: 'boolean' }, }, args: { text: 'text', size: 'medium', 'footer-apperance': 'standard', - closable: true, }, }; @@ -43,10 +42,10 @@ const Template = (args: Args) => { -
+

Title

@@ -55,11 +54,11 @@ const Template = (args: Args) => { standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

-