From 6599337ef5b05440d5eb3c0302011ce3fe0c64f6 Mon Sep 17 00:00:00 2001 From: Victor Genaev Date: Sun, 24 Sep 2023 19:16:32 +0200 Subject: [PATCH] chore(Textarea): migrate to Tailwind chore(tailwind): add boxShadow formElement tokens test: update snapshots chore(tokens): fix small typo chore(tokens): add formElementBorderColorErrorHover chore(tailwind): add form-element-error-hover box-shadow classname --- .../Textarea/Textarea.stories.tsx | 172 ++++++++++++++++++ .../Textarea/__tests__/index.test.tsx | 86 +++++++++ .../src/tmp-tailwind/Textarea/index.tsx | 146 +++++++++++++++ .../output/docs-tokens.json | 32 ++-- .../orbit-design-tokens/output/tokens.css | 2 +- .../orbit-design-tokens/output/tokens.less | 2 +- .../orbit-design-tokens/output/tokens.scss | 2 +- .../orbit-design-tokens/output/tokens.styl | 2 +- .../orbit-design-tokens/output/tokens.xml | 8 +- .../form-element/form-element-box-shadow.json | 12 +- .../src/js/createTokens.ts | 10 +- .../src/presets/components/index.ts | 15 +- 12 files changed, 451 insertions(+), 38 deletions(-) create mode 100644 packages/orbit-components/src/tmp-tailwind/Textarea/Textarea.stories.tsx create mode 100644 packages/orbit-components/src/tmp-tailwind/Textarea/__tests__/index.test.tsx create mode 100644 packages/orbit-components/src/tmp-tailwind/Textarea/index.tsx diff --git a/packages/orbit-components/src/tmp-tailwind/Textarea/Textarea.stories.tsx b/packages/orbit-components/src/tmp-tailwind/Textarea/Textarea.stories.tsx new file mode 100644 index 0000000000..5760ff89c3 --- /dev/null +++ b/packages/orbit-components/src/tmp-tailwind/Textarea/Textarea.stories.tsx @@ -0,0 +1,172 @@ +import * as React from "react"; +import { action } from "@storybook/addon-actions"; +import { text, boolean, select, number } from "@storybook/addon-knobs"; + +import { SIZE_OPTIONS, RESIZE_OPTIONS } from "../../Textarea/consts"; +import RenderInRtl from "../../utils/rtl/RenderInRtl"; +import SPACINGS_AFTER from "../../common/getSpacingToken/consts"; + +import Textarea from "."; + +export default { + title: "Tailwind/Textarea", +}; + +export const Default = () => { + const label = text("Label", "Label"); + const value = text("Value", ""); + const placeholder = text("Placeholder", "Placeholder"); + + return ( +