diff --git a/.changeset/happy-mammals-travel.md b/.changeset/happy-mammals-travel.md new file mode 100644 index 00000000..973969d6 --- /dev/null +++ b/.changeset/happy-mammals-travel.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/components": patch +--- + +Fix Input test snapshot diff --git a/.changeset/silly-trams-beam.md b/.changeset/silly-trams-beam.md new file mode 100644 index 00000000..d0b9568a --- /dev/null +++ b/.changeset/silly-trams-beam.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/components": patch +--- + +Fix Input diff --git a/packages/components/src/components/Input/__tests__/__snapshots__/index.browser.test.tsx.snap b/packages/components/src/components/Input/__tests__/__snapshots__/index.browser.test.tsx.snap index d81cafbd..3d41e2db 100644 --- a/packages/components/src/components/Input/__tests__/__snapshots__/index.browser.test.tsx.snap +++ b/packages/components/src/components/Input/__tests__/__snapshots__/index.browser.test.tsx.snap @@ -3,11 +3,11 @@ exports[`Controlled Input > should render with value 1`] = `
@@ -17,11 +17,11 @@ exports[`Controlled Input > should render with value 1`] = ` exports[`Input > should have typography when typography is provided 1`] = `
@@ -31,11 +31,11 @@ exports[`Input > should have typography when typography is provided 1`] = ` exports[`Input > should not have padding right when allowClear is false 1`] = `
@@ -45,11 +45,11 @@ exports[`Input > should not have padding right when allowClear is false 1`] = ` exports[`Input > should not show clear button when value is empty 1`] = `
@@ -59,11 +59,11 @@ exports[`Input > should not show clear button when value is empty 1`] = ` exports[`Input > should pass className prop to error message component 1`] = `
should pass className prop to error message component 1`] = ` exports[`Input > should pass className prop to icon component 1`] = `
should pass className prop to icon component 1`] = `
@@ -144,7 +144,7 @@ exports[`Input > should pass props to ClearButton component 1`] = ` exports[`Input > should render disabled icon style when disabled is true 1`] = `
should render disabled icon style when disabled is true 1`] = `
@@ -178,11 +178,11 @@ exports[`Input > should render disabled icon style when disabled is true 1`] = ` exports[`Input > should render error style when error is true 1`] = `
@@ -192,11 +192,11 @@ exports[`Input > should render error style when error is true 1`] = ` exports[`Input > should render with allowClear prop 1`] = `
@@ -206,11 +206,11 @@ exports[`Input > should render with allowClear prop 1`] = ` exports[`Input > should render with default props 1`] = `
@@ -220,11 +220,11 @@ exports[`Input > should render with default props 1`] = ` exports[`Input > should render with disabled prop 1`] = `
@@ -235,11 +235,11 @@ exports[`Input > should render with disabled prop 1`] = ` exports[`Input > should show clear button when value is not empty 1`] = `
diff --git a/packages/components/src/components/Input/index.tsx b/packages/components/src/components/Input/index.tsx index 8da3f738..f6747402 100644 --- a/packages/components/src/components/Input/index.tsx +++ b/packages/components/src/components/Input/index.tsx @@ -17,6 +17,7 @@ interface InputProps extends Omit, 'type'> { errorMessage?: string allowClear?: boolean classNames?: { + container?: string input?: string icon?: string errorMessage?: string @@ -66,6 +67,7 @@ export function Input({ return ( *': { boxSizing: 'border-box' } }} @@ -105,7 +107,7 @@ export function Input({ outline: 'none', }} _hover={{ - border: '1px solid var(--primary, light-dark(red, blue))', + border: '1px solid var(--primary, light-dark(#674DC7, #8163E1))', }} _placeholder={{ color: 'var(--inputPlaceholder, light-dark(#A9A8AB, #CBCBCB))',