From 669d8f914078e1459eb539efb5951746ac902ac1 Mon Sep 17 00:00:00 2001 From: Hussam Ghazzi Date: Wed, 6 Nov 2024 17:12:12 +0000 Subject: [PATCH 1/9] chore(TextInput): Update TextInput to use data attributes for styling --- .../react/src/__tests__/Textarea.test.tsx | 8 +- .../__snapshots__/Autocomplete.test.tsx.snap | 1162 +++- .../__snapshots__/TextInput.test.tsx.snap | 5555 +++++++++++++---- .../TextInputWithTokens.test.tsx.snap | 4520 +++++++++++--- .../internal/components/TextInputWrapper.tsx | 300 +- packages/react/src/utils/testing.tsx | 12 +- 6 files changed, 9189 insertions(+), 2368 deletions(-) diff --git a/packages/react/src/__tests__/Textarea.test.tsx b/packages/react/src/__tests__/Textarea.test.tsx index 2bc0c7f6e20..b460655558c 100644 --- a/packages/react/src/__tests__/Textarea.test.tsx +++ b/packages/react/src/__tests__/Textarea.test.tsx @@ -84,11 +84,11 @@ describe('Textarea', () => { width: '100%', display: 'flex', } - const defaultStyles = renderStyles(