Skip to content

Commit 7ae30b7

Browse files
author
Kubit
committed
Add spellcheck and filter props
1 parent 27db411 commit 7ae30b7

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

src/components/text/text.styled.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const applyDevicePropsTextStyles = (props: TextPropsStylesType) => css`
1212
text-transform: ${props.$transform};
1313
text-align: ${props.align};
1414
font-weight: ${props.weight};
15+
filter: ${props.filter};
1516
${props.isDisabled &&
1617
css`
1718
pointer-events: none;

src/components/text/types/text.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface ITextStandAlone extends ITextStyled, TextAriaAttributes {
3232
onClick?: React.MouseEventHandler<HTMLElement>;
3333
role?: React.AriaRole;
3434
color?: string;
35+
filter?: string;
3536
display?: TextDisplayType;
3637
decoration?: TextDecorationType;
3738
cursor?: string;

src/components/text/types/textTheme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export type TypographyMediaType = {
3434
*/
3535
export type TextPropsStylesType = {
3636
color?: string;
37+
filter?: string;
3738
cursor?: string;
3839
decoration?: TextDecorationType;
3940
display?: TextDisplayType;

src/components/textArea/stories/argtypes.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ export const argtypes = (
158158
category: CATEGORY_CONTROL.MODIFIERS,
159159
},
160160
},
161+
spellCheck: {
162+
description: 'Specifies whether the value of the input should be checked for spelling errors',
163+
control: { type: 'boolean' },
164+
type: { name: 'boolean' },
165+
table: {
166+
type: {
167+
summary: 'boolean',
168+
},
169+
defaultValue: { summary: true },
170+
category: CATEGORY_CONTROL.MODIFIERS,
171+
},
172+
},
161173
height: {
162174
description: 'It allows to set the textArea height',
163175
type: { name: 'string' },

src/components/textArea/textAreaStandAlone.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const TextAreaStandAloneComponent = (
8181
maxLength={props.maxLength}
8282
placeholder={props.placeholder}
8383
required={props.required}
84+
spellCheck={props.spellCheck}
8485
styles={stateStyles}
8586
value={props.value}
8687
onBlur={props.onBlur}

src/components/textArea/types/textArea.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface ITextAreaStandAlone extends ITextAreaStyled {
4646
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
4747
height?: string;
4848
dataTestId?: string;
49+
spellCheck?: boolean;
4950
}
5051

5152
export interface ITextArea<V = undefined extends string ? unknown : string>

0 commit comments

Comments
 (0)