Skip to content

Commit

Permalink
feat(EditText): label container style
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jul 31, 2024
1 parent b3508cb commit 4dc5888
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
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.34",
"version": "0.2.35",
"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 @@ -30,6 +30,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 @@ -194,12 +195,15 @@ export function EditText({
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 @@ -244,6 +248,7 @@ export function EditText({
required,
status,
styles?.label,
styles?.labelContainer,
theme.role.danger,
]);

Expand Down

0 comments on commit 4dc5888

Please sign in to comment.