Skip to content

Commit

Permalink
0.2.37
Browse files Browse the repository at this point in the history
Fix regression in EditText where labelContainer is missing
  • Loading branch information
hyochan committed Sep 17, 2024
1 parent a79b8b3 commit 4ac7ecf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 0 additions & 2 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const {maxLineLength} = require('@commitlint/ensure');

const bodyMaxLineLength = 500;

const validateBodyMaxLengthIgnoringDeps = (parsedCommit) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dooboo-ui",
"version": "0.2.36",
"version": "0.2.37",
"main": "index",
"react-native": "index",
"module": "index",
Expand Down
15 changes: 10 additions & 5 deletions main/uis/EditText/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import GlobalStyles from './style';

export type EditTextStyles = {
container?: StyleProp<ViewStyle>;
labelContainer?: StyleProp<ViewStyle>;
label?: StyleProp<TextStyle>;
inputContainer?: StyleProp<TextStyle>;
input?: StyleProp<TextStyle>;
Expand Down Expand Up @@ -198,12 +199,15 @@ export const EditText = forwardRef<TextInput, EditTextProps>(
function Wrapper({children}: {children: ReactNode}): JSX.Element {
return (
<View
style={css`
margin-bottom: ${decoration === 'boxed' ? '14px' : 0};
style={[
css`
margin-bottom: ${decoration === 'boxed' ? '14px' : 0};
flex-direction: row;
align-items: center;
`}
flex-direction: row;
align-items: center;
`,
styles?.labelContainer,
]}
>
{children}
{required ? (
Expand Down Expand Up @@ -248,6 +252,7 @@ export const EditText = forwardRef<TextInput, EditTextProps>(
required,
status,
styles?.label,
styles?.labelContainer,
theme.role.danger,
]);

Expand Down

0 comments on commit 4ac7ecf

Please sign in to comment.