Skip to content

feat: [EV-8779] add alwaysShowMask to InputMask - #104

Merged
AnastasiyaHaidanovich merged 4 commits into
mainfrom
EV-8779
Apr 22, 2026
Merged

AnastasiyaHaidanovich merged 4 commits into
mainfrom
EV-8779

Conversation

@AnastasiyaHaidanovich

Copy link
Copy Markdown
Contributor

No description provided.

// @ts-ignore
mask={mask}
maskChar={maskChar}
alwaysShowMask={alwaysShowMask}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не хватает примера в сторибуке

Comment thread src/components/text-field/TextField.tsx Outdated
className,
mask,
maskChar,
alwaysShowMask,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

надо указать дефолтное значение, а также у нас есть TextFieldV2, там тоже надо

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в компоненте TextFieldV2 не используется InputMask и не передаются никакие пропсы для маски, добавить все пропсы для маски и InputMask?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавила и для TextFieldV2 + поправила стили

variant,
isFocused,
value,
isLabelFloated,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а чем отличается value от isLabelFloated?

@AnastasiyaHaidanovich AnastasiyaHaidanovich Apr 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в хелпере потом value использовалось вместе с isFocused isFocused || !!value для определения стилей, к этому условию добавилось const isLabelFloated = isFocused || !!inputProps.value || alwaysShowMask; для отображения состояния поднятого лейбла и это условие вынесла в сам компонент чтобы было единообразно с компонентом TextField

@AnastasiyaHaidanovich
AnastasiyaHaidanovich merged commit f920bf5 into main Apr 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants