VKUI
VKUI copied to clipboard
[Refactor][ChipsSelect][ChipsInput] Исправляем внутреннюю реализацию компонентов
resolves #2884, relates to #2845 (нужно, чтобы там сделать по красоте)
ChipsInput:
- разделила на
ChipsInputиChipsInputBase,
ChipsSelect:
- обернула в свой собственный
FormField, заюзав внутриChipsInputBase, - сделала кнопку-стрелочку, которая тогглит дропдаун (часть https://github.com/VKCOM/VKUI/issues/1673),
- подбила стили,
- подправила типы (чтобы не смущать людей возможностью передать свой
after),
IconButton:
- дала возможность переопределять свойства
activeHoverиactiveEffectDelay, которые уходят ниже вTappable(чтобы можно было убрать эффекты с кнопки вChipsSelect).
size-limit report 📦
| Path | Size |
|---|---|
| JS | 256.5 KB (+0.04% 🔺) |
| JS (gzip) | 76.98 KB (-0.04% 🔽) |
| JS (brotli) | 64.98 KB (-0.1% 🔽) |
| JS, unstable | 30.94 KB (+0.3% 🔺) |
| CSS | 282.16 KB (+0.02% 🔺) |
| CSS (gzip) | 38.26 KB (+0.04% 🔺) |
| CSS (brotli) | 30.63 KB (+0.16% 🔺) |
| CSS, unstable | 1.22 KB (+0.98% 🔺) |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit e848e1c3004223b435cf2afe660f4c2810be4a07:
| Sandbox | Source |
|---|---|
| VKUI - default example | Configuration |
👀 Styleguide deployed
See the styleguide for this PR at https://vkcom.github.io/VKUI/pull/2890/
Code coverage
| lines | 3875 / 4979 | 77.82% |
| statements | 3945 / 5078 | 77.68% |
| functions | 839 / 1069 | 78.48% |
| branches | 3492 / 4846 | 72.05% |
| branchesTrue | 0 / 0 | 100.00% |
Generated by :no_entry_sign: dangerJS against e848e1c3004223b435cf2afe660f4c2810be4a07