File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { getStyles } from '@/utils/getStyles/getStyles';
14
14
import { InputCounterStateProps } from '../inputCounter/types/inputCounterTheme' ;
15
15
import { InputIconPosition , InputState } from './types' ;
16
16
import {
17
+ ErrorAndHelpMessageWrapperStyledProps ,
17
18
ErrorMessageStyledProps ,
18
19
HelpMessageStyledProps ,
19
20
InformationAssociatedStyledProps ,
@@ -49,10 +50,8 @@ export const InfoAssociatedTextAndDecorativeStyled = styled.div<InformationAssoc
49
50
50
51
export const InfoAssociatedButtonStyled = styled . div < InformationAssociatedStyledProps > `` ;
51
52
52
- export const InputErrorAndHelpMessageWrapperStyled = styled . div `
53
- display : flex;
54
- flex-direction : column;
55
- width : 100% ;
53
+ export const InputErrorAndHelpMessageWrapperStyled = styled . div < ErrorAndHelpMessageWrapperStyledProps > `
54
+ ${ ( { styles } ) => getStyles ( styles ?. errorAndHelpMessageContainer ) } ;
56
55
` ;
57
56
58
57
export const InputErrorStyled = styled . div < ErrorMessageStyledProps > `
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ const InputStandAloneComponent = (
96
96
iconPosition = { props . iconPosition }
97
97
id = { props . inputId }
98
98
inputMode = { inputMode }
99
- labelType = { styles ?. [ state ] ?. label ?. type }
100
99
leftIcon = { props . leftIcon }
101
100
max = { props . max }
102
101
maxLength = { props . maxLength }
@@ -201,7 +200,7 @@ const InputStandAloneComponent = (
201
200
styles = { styles ?. [ state ] }
202
201
/>
203
202
< MessagesAndCounterWrapperStyled >
204
- < InputErrorAndHelpMessageWrapperStyled >
203
+ < InputErrorAndHelpMessageWrapperStyled styles = { styles ?. [ state ] } >
205
204
< ErrorMessageStandAlone
206
205
dataTestId = { props . dataTestId }
207
206
errorAriaLiveType = { props . errorAriaLiveType }
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export type InformationAssociatedStyledProps = {
22
22
styles ?: InputStateProps ;
23
23
} ;
24
24
25
+ export type ErrorAndHelpMessageWrapperStyledProps = {
26
+ styles ?: InputStateProps ;
27
+ } ;
28
+
25
29
export type ErrorMessageStyledProps = {
26
30
styles ?: InputStateProps ;
27
31
} ;
@@ -69,7 +73,6 @@ export type InputStyledProps = {
69
73
} ;
70
74
71
75
export type InputWrapperStyledProps = {
72
- iconPosition ?: InputIconPosition ;
73
76
styles ?: InputStateProps ;
74
77
labelType ?: LABEL_TYPE ;
75
78
} ;
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ export type InputBasicStateProps = {
73
73
size : string ;
74
74
} ;
75
75
informationAssociatedButtonContainer ?: CommonStyleType ;
76
+ errorAndHelpMessageContainer ?: CommonStyleType ;
76
77
errorMessage ?: TypographyTypes ;
77
78
errorMessageContainer ?: CommonStyleType ;
78
79
errorMessageIcon ?: IconTypes ;
You can’t perform that action at this time.
0 commit comments