-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: new components: TimeInput, DateTimeInput, DateRangeInput #175
Conversation
Собрана новая демка. |
Pull Request Test Coverage Report for Build 3067420534
💛 - Coveralls |
Собрана новая демка. |
Собрана новая демка. |
Ну и также есть стандартная проблема с прыжками каретки, если очищать введенное значение не с конца или пытаться ввести что-нибудь в середину. |
Кажется что стоит попробовать починить. Возможно отдельной таской. Но в этой таске определенно нужны плейсхолдеры, без них компонент теряет смысл. |
Собрана новая демка. |
@@ -0,0 +1,3 @@ | |||
.component { | |||
min-width: 328px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кажется, это случайная ширина инпута в макете, не? Зачем ему быть таким широким)
} | ||
|
||
.input { | ||
width: 354px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут тоже странно, вроде у Влада в спеке ничего нет про минимальную ширину
} | ||
|
||
.input { | ||
width: 353px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И здесь)
В DateTimeInput с пикером можем закрывать пикер после выбора даты? |
@blackraydev оцени, пожалуйста, такую реализацию: (часть плейсхолдера остаётся по мере ввода) |
Собрана новая демка. |
}, | ||
"peerDependencies": { | ||
"react": "^16.9.0 || ^17.0.1", | ||
"react-dom": "^16.9.0 || ^17.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| ^18.0.0
"@alfalab/core-components-icon-button": "^4.2.2", | ||
"@alfalab/core-components-calendar": "^5.5.8", | ||
"@alfalab/core-components-popover": "^5.7.5", | ||
"classnames": "^2.2.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.3.1
"directory": "dist" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.9.0 || ^17.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| ^18.0.0
Собрана новая демка. |
Собрана новая демка. |
Собрана новая демка. |
Собрана новая демка. |
Собрана новая демка. |
Собрана новая демка. |
Надо ширину убрать (то что выше комментили) и вроде ок |
🦋 Changeset detectedLatest commit: c48078a The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Собрана новая демка. |
Собрана новая демка. |
@@ -267,9 +267,8 @@ describe('Gallery', () => { | |||
|
|||
fireEvent.mouseOver(fullscreenButton); | |||
|
|||
await waitFor( | |||
() => expect(getByText('Открыть в полноэкранном режиме')).toBeInTheDocument(), | |||
{ timeout: 2000 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нужно вернуть timeout
@@ -97,7 +97,7 @@ describe('InputAutocompleteMobile', () => { | |||
/>, | |||
); | |||
|
|||
await waitFor(() => expect(handleEntered).toHaveBeenCalledTimes(1), { timeout: 2000 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И тут нужно вернуть timeout
Собрана новая демка. |
Собрана новая демка. |
Собрана новая демка. |
Новые компоненты: TimeInput, DateTimeInput, DateRangeInput