From 43599c2d435b51e73bd581b73ac9ab3d72584adb Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Mon, 26 Feb 2024 13:42:23 +0100 Subject: [PATCH 1/6] fix(CopyToClipboard): return CopyToClipboardProps type (#1367) --- src/components/CopyToClipboard/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CopyToClipboard/index.ts b/src/components/CopyToClipboard/index.ts index 4771074e1b..34b6d31af3 100644 --- a/src/components/CopyToClipboard/index.ts +++ b/src/components/CopyToClipboard/index.ts @@ -1,2 +1,2 @@ export * from './CopyToClipboard'; -export type {CopyToClipboardStatus} from './types'; +export type {CopyToClipboardStatus, CopyToClipboardProps} from './types'; From b3d4a1d7690a36e86bf8489046a22fc8dc33bcc4 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Mon, 26 Feb 2024 13:44:26 +0100 Subject: [PATCH 2/6] chore(Tabs): fix wrapTo story (#1363) --- src/components/Tabs/__stories__/Tabs.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tabs/__stories__/Tabs.stories.tsx b/src/components/Tabs/__stories__/Tabs.stories.tsx index 2bba1390ce..540b901001 100644 --- a/src/components/Tabs/__stories__/Tabs.stories.tsx +++ b/src/components/Tabs/__stories__/Tabs.stories.tsx @@ -68,7 +68,7 @@ WithWrapTo.args = { wrapTo(_item: TabsItemProps, node: React.ReactNode) { return ( // eslint-disable-next-line jsx-a11y/anchor-is-valid - + {node} ); From 3228dcab413a5dff9e3dc2353f1ddfa6235643e8 Mon Sep 17 00:00:00 2001 From: Valerii Sidorenko Date: Mon, 26 Feb 2024 18:33:13 +0100 Subject: [PATCH 3/6] fix(controls): allow disable input via controlProps (#1371) --- .../controls/TextArea/TextAreaControl.tsx | 13 +++++++------ .../controls/TextInput/TextInputControl.tsx | 7 ++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/controls/TextArea/TextAreaControl.tsx b/src/components/controls/TextArea/TextAreaControl.tsx index 866e5f89a7..b8ea429c8a 100644 --- a/src/components/controls/TextArea/TextAreaControl.tsx +++ b/src/components/controls/TextArea/TextAreaControl.tsx @@ -5,9 +5,10 @@ import {block} from '../../utils/cn'; import type {TextAreaProps} from './TextArea'; -type Props = Omit & { +type Props = Omit & { onChange: NonNullable; autoComplete?: React.TextareaHTMLAttributes['autoComplete']; + controlProps: NonNullable; }; const b = block('text-area'); @@ -86,13 +87,13 @@ export function TextAreaControl(props: Props) { return (