add vkui-tokens to search
Чеклист перевода компонента на vkui-tokens
- [ ] Компонент добавлен в
src/tokenized/index.ts(вsrc/index.tsон так же должен быть)
- [x] Если в стилях встречаются токены из Appearance, то их нужно не удалять, а дополнять фоллбэком на соответствующий токен из vkui-tokens
- [ ] Исключаем проверки типа
platform === ANDROID - [ ] В стилях компонента не осталось платформенных селекторов
- [ ] В tsx компонента не осталось логики, которая зависит от платформы
closes #2572
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 840fd7d57e127f2a9935f6fc130da623d4508abb:
| Sandbox | Source |
|---|---|
| VKUI - default example | Configuration |
size-limit report 📦
| Path | Size |
|---|---|
| JS | 256.63 KB (+0.03% 🔺) |
| JS (gzip) | 76.99 KB (+0.02% 🔺) |
| JS (brotli) | 65.01 KB (+0.04% 🔺) |
| JS, unstable | 30.94 KB (0%) |
| CSS | 285.64 KB (+0.85% 🔺) |
| CSS (gzip) | 38.58 KB (+0.62% 🔺) |
| CSS (brotli) | 30.79 KB (+0.44% 🔺) |
| CSS, unstable | 1.22 KB (0%) |
👀 Styleguide deployed
See the styleguide for this PR at https://vkcom.github.io/VKUI/pull/2864/
Changed screenshots
modalpageheader-android-light-w_2-1

modalpageheader-android-light-w_5-1

modalpageheader-ios-light-w_2-1

modalpageheader-ios-light-w_5-1

search-android-light-1

search-ios-light-1

search-shows-after-when-focused-on-ios-1

search-vkcom-light-1

Code coverage
| lines | 3874 / 4978 | 77.82% |
| statements | 3944 / 5077 | 77.68% |
| functions | 839 / 1069 | 78.48% |
| branches | 3511 / 4868 | 72.12% |
| branchesTrue | 0 / 0 | 100.00% |
Generated by :no_entry_sign: dangerJS against 085e018c57370b510cd780903189db1a046565b3
А в скриншоте src/components/Search/image_snapshots/search-ios-light-1-snap.png там справа у первых вариантов что-то обрезается, так и должно быть?