From a093dac162605bdbb0850717fe54c62242adf0e1 Mon Sep 17 00:00:00 2001 From: bigfishdesign13 Date: Thu, 2 Nov 2023 18:56:36 -0400 Subject: [PATCH 1/2] added functionality and docs for autoComplete prop --- CHANGELOG.md | 4 ++ .../__snapshots__/DatePicker.test.tsx.snap | 17 +++++ src/components/TextInput/TextInput.mdx | 42 ++++++++--- .../TextInput/TextInput.stories.tsx | 10 ++- src/components/TextInput/TextInput.test.tsx | 55 +++++++++++++++ src/components/TextInput/TextInput.tsx | 70 ++++++++++++++++++- .../__snapshots__/TextInput.test.tsx.snap | 32 +++++++++ .../TextInput/textInputChangelogData.ts | 9 +++ 8 files changed, 227 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2576a36d1..2af94a7e1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ Currently, this repo is in Prerelease. When it is released, this project will ad ## Prerelease +### Adds + +- Added the `autoComplete` prop to the `textInput` component for setting the "autocomplete" attribute manually. + ## 2.1.1 (October 26, 2023) ### Adds diff --git a/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap b/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap index 63cd43d324..0e59d86ca9 100644 --- a/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +++ b/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap @@ -50,6 +50,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = ` > Overview} - {Component Props} - {Accessibility} +- {Autocomplete} - {Labelling Variations} - {Browser States} - {isClearable Button} @@ -70,18 +71,41 @@ When the `type` prop is set to `"textarea"`, the `