From 78afec066bfa0ac19cee2d60f0665d42be98d038 Mon Sep 17 00:00:00 2001 From: Samad Yar Khan Date: Sun, 10 Jul 2022 23:16:03 +0000 Subject: [PATCH] Add MultilineMedium and MultilineLarge Blok elements to the UIKit --- .../src/elements/PlainTextInputElement.tsx | 40 ++++++++++++++++++- .../src/stories/Banner.stories.tsx | 14 +++++++ .../src/stories/Modal.stories.tsx | 14 +++++++ .../src/stories/payloads/input.ts | 38 ++++++++++++++++++ .../blocks/elements/PlainTextInputElement.ts | 3 ++ 5 files changed, 108 insertions(+), 1 deletion(-) diff --git a/packages/fuselage-ui-kit/src/elements/PlainTextInputElement.tsx b/packages/fuselage-ui-kit/src/elements/PlainTextInputElement.tsx index 7394b605ed..2388f15492 100644 --- a/packages/fuselage-ui-kit/src/elements/PlainTextInputElement.tsx +++ b/packages/fuselage-ui-kit/src/elements/PlainTextInputElement.tsx @@ -16,7 +16,45 @@ const PlainTextInputElement = ({ }: PlainTextInputElementProps): ReactElement => { const [{ loading, value, error }, action] = useUiKitState(block, context); - if (block.multiline) { + if (block.multilineLarge) { + return ( + + ); + } + + if (block.multilineMedium) { + return ( + + ); + } + + if (block.multiline || block.multilineSmall) { return ( ;