From 9a71a1fbd614c9941b13528adf6531fd157fced5 Mon Sep 17 00:00:00 2001 From: Hanbin Cho Date: Mon, 11 Aug 2025 17:36:00 +0900 Subject: [PATCH 1/5] Fix fallback border color on hover --- packages/components/src/components/Input/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/Input/index.tsx b/packages/components/src/components/Input/index.tsx index 8da3f738..bb72fc9e 100644 --- a/packages/components/src/components/Input/index.tsx +++ b/packages/components/src/components/Input/index.tsx @@ -105,7 +105,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))', From e11fc2c47ba9112d94c8ffe327112ddcc0856236 Mon Sep 17 00:00:00 2001 From: Hanbin Cho Date: Mon, 11 Aug 2025 17:47:12 +0900 Subject: [PATCH 2/5] Add className for input container --- packages/components/src/components/Input/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/components/src/components/Input/index.tsx b/packages/components/src/components/Input/index.tsx index bb72fc9e..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' } }} From 082e5194dd7f15bd9cb548801779df1c6323ab5d Mon Sep 17 00:00:00 2001 From: Hanbin Cho Date: Mon, 11 Aug 2025 17:50:26 +0900 Subject: [PATCH 3/5] Run changeset --- .changeset/silly-trams-beam.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/silly-trams-beam.md 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 From 7b4ab68c3bee76943f58f40cd723998f9e68488e Mon Sep 17 00:00:00 2001 From: Hanbin Cho Date: Mon, 11 Aug 2025 17:55:55 +0900 Subject: [PATCH 4/5] Update snapshot --- .../__snapshots__/index.browser.test.tsx.snap | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) 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`] = `
From 6b51aa1fed6408fc807d596d2dd9970d7bbab1fb Mon Sep 17 00:00:00 2001 From: Hanbin Cho Date: Mon, 11 Aug 2025 18:18:05 +0900 Subject: [PATCH 5/5] Run changeset --- .changeset/happy-mammals-travel.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/happy-mammals-travel.md 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