From 06455448791f29513c66a558604858507e250e47 Mon Sep 17 00:00:00 2001 From: Marcos Conceicao Date: Fri, 4 Oct 2024 09:13:26 -0300 Subject: [PATCH] chore: Removing prop theme from input and updating snapshots --- .../__snapshots__/Form.unit.test.jsx.snap | 2 +- components/Input/Input.jsx | 26 +++---------------- .../Input.mask.unit.test.jsx.snap | 11 ++++---- components/Input/index.d.ts | 5 ---- 4 files changed, 9 insertions(+), 35 deletions(-) diff --git a/components/Form/__snapshots__/Form.unit.test.jsx.snap b/components/Form/__snapshots__/Form.unit.test.jsx.snap index 072e1fecd..17bcca499 100644 --- a/components/Form/__snapshots__/Form.unit.test.jsx.snap +++ b/components/Form/__snapshots__/Form.unit.test.jsx.snap @@ -294,7 +294,7 @@ exports[`Form component should match the snapshot 1`] = ` />
- {_isSearchType && ( - - )} + {_isSearchType && } {error && !_isPassword && ( - + )} {_isPassword && ( {helperText && {helperText}} - {error && ( - - {error} - - )} + {error && {error}} ); } @@ -235,11 +221,6 @@ Input.propTypes = { ]), onClean: PropTypes.func, onChange: PropTypes.func, - theme: PropTypes.shape({ - spacing: PropTypes.object, - colors: PropTypes.object, - baseFontSize: PropTypes.number, - }), minLength: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), maxLength: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), skin: PropTypes.oneOf(['default', 'dark']), @@ -259,7 +240,6 @@ Input.defaultProps = { placeholder: '', onClean: () => {}, onChange: () => {}, - theme: { spacing, colors, baseFontSize }, minLength: 0, maxLength: 255, skin: 'default', diff --git a/components/Input/__snapshots__/Input.mask.unit.test.jsx.snap b/components/Input/__snapshots__/Input.mask.unit.test.jsx.snap index be2be04c8..8c7ac37d1 100644 --- a/components/Input/__snapshots__/Input.mask.unit.test.jsx.snap +++ b/components/Input/__snapshots__/Input.mask.unit.test.jsx.snap @@ -112,7 +112,7 @@ exports[`Input component should match snapshots 2`] = ` /> Error message @@ -401,7 +400,7 @@ exports[`Input component should match snapshots 6`] = ` >