diff --git a/biome.json b/biome.json index 7a2e5900..b83f1c88 100644 --- a/biome.json +++ b/biome.json @@ -10,8 +10,7 @@ "suspicious": { "noEmptyInterface": "off", "noExplicitAny": "off", - "noArrayIndexKey": "off", - "noShadowRestrictedNames": "off" + "noArrayIndexKey": "off" }, "a11y": { "noSvgWithoutTitle": "off" diff --git a/packages/core/src/Input/Input.tsx b/packages/core/src/Input/Input.tsx index 61720bc5..d45fbc9f 100644 --- a/packages/core/src/Input/Input.tsx +++ b/packages/core/src/Input/Input.tsx @@ -47,7 +47,7 @@ const getWidth = (width: TextInputWidth): string => { } } -const Error = styled.div<{ +const ErrorContainer = styled.div<{ readonly compact: boolean }>` color: ${({ theme }) => theme.color.elementError()}; @@ -447,14 +447,14 @@ function Input({ ) : null} {error !== undefined ? ( - + {errorVariant === 'text' && error !== '' ? ( ) : null} - + ) : ( )} diff --git a/packages/core/src/TextArea/index.tsx b/packages/core/src/TextArea/index.tsx index c6b48c47..37e7ffd4 100644 --- a/packages/core/src/TextArea/index.tsx +++ b/packages/core/src/TextArea/index.tsx @@ -14,7 +14,7 @@ import { Typography } from '../Typography' const TEXT_AREA_HEIGHT = '96px' -const Error = styled.div` +const ErrorContainer = styled.div` color: ${({ theme }) => theme.color.elementError()}; line-height: 16px; background-color: transparent; @@ -265,7 +265,7 @@ export const TextArea: FC = ({ ref={textareaRef} /> {error !== undefined ? ( - + @@ -274,7 +274,7 @@ export const TextArea: FC = ({ {error} ) : null} - + ) : ( )} diff --git a/packages/docs/src/mdx/Code.tsx b/packages/docs/src/mdx/Code.tsx index eb10d254..5786aa58 100644 --- a/packages/docs/src/mdx/Code.tsx +++ b/packages/docs/src/mdx/Code.tsx @@ -41,7 +41,7 @@ const EditorContainer = styled.div` overflow: hidden; ` -const Error = styled(LiveError)` +const ErrorContainer = styled(LiveError)` background-color: ${({ theme }) => theme.color.elementError(0.3)}; font-size: 12px; padding: ${practicalcore.spacing.large}; @@ -105,7 +105,7 @@ export const Code = ({ - + ) : null}