From 7bf400a954bea7628919fec4752e7d3479c24e1f Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Sun, 17 Sep 2023 02:23:25 +0200 Subject: [PATCH] Docs(web-react): Add TextArea demo #DS-912 - TextArea demo in web-react is now same as demo in web and web-twig --- .../src/components/TextArea/demo/TextArea.tsx | 16 ------ .../TextArea/demo/TextAreaAutoResize.tsx | 8 +++ .../TextArea/demo/TextAreaDefault.tsx | 12 +++++ .../TextArea/demo/TextAreaDisabled.tsx | 23 +++++---- .../TextArea/demo/TextAreaFluid.tsx | 8 +-- .../TextArea/demo/TextAreaHelperText.tsx | 24 ++++----- .../TextArea/demo/TextAreaHiddenLabel.tsx | 8 +++ .../TextArea/demo/TextAreaInline.tsx | 19 +++++++ .../TextArea/demo/TextAreaInputHeight.tsx | 10 ---- .../TextArea/demo/TextAreaLabelHidden.tsx | 10 ---- .../TextArea/demo/TextAreaRequired.tsx | 8 ++- .../TextArea/demo/TextAreaValidation.tsx | 49 ++++++++++++++++++ .../TextArea/demo/TextAreaValidationState.tsx | 32 ------------ .../TextArea/demo/TextAreaWithAutoResize.tsx | 8 --- .../src/components/TextArea/demo/index.tsx | 50 +++++++++---------- 15 files changed, 150 insertions(+), 135 deletions(-) delete mode 100644 packages/web-react/src/components/TextArea/demo/TextArea.tsx create mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaAutoResize.tsx create mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaDefault.tsx create mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaHiddenLabel.tsx create mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaInline.tsx delete mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaInputHeight.tsx delete mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaLabelHidden.tsx create mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaValidation.tsx delete mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaValidationState.tsx delete mode 100644 packages/web-react/src/components/TextArea/demo/TextAreaWithAutoResize.tsx diff --git a/packages/web-react/src/components/TextArea/demo/TextArea.tsx b/packages/web-react/src/components/TextArea/demo/TextArea.tsx deleted file mode 100644 index 7de4440818..0000000000 --- a/packages/web-react/src/components/TextArea/demo/TextArea.tsx +++ /dev/null @@ -1,16 +0,0 @@ -// Because there is no `dist` directory during the CI run -/* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import { ComponentStory } from '@storybook/react'; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: No declaration file -import { SpiritTextAreaProps } from '../../../types'; -import TextArea from '../TextArea'; - -const Story: ComponentStory = (args: SpiritTextAreaProps) =>