salute-developers / plasma

Salute Design System
MIT License
28 stars 20 forks source link

feat(plasma-new-hope): add emotion support #1276

Closed Yeti-or closed 3 days ago

Yeti-or commented 4 days ago

Support emotion engine

What/why changed

Для поддержки пакет @emotion расширили возможности в пакете plasma-new-hope

В целом алгоритм такой же как и с работой styled-components.

Делаем копию списка компонентов и заменяем использование пакетов

import { styled } from '@linaria/react' //-> @emotion/styled
import { css } from '@linaria/core' // -> @emotion/react

И появилась новая директория emotion на уровне самого пакета поставки

Screenshot 2024-07-02 at 18 26 05
📦 Published PR as canary version: Canary Versions
:sparkles: Test out this PR locally via: ```bash npm install @salutejs/caldera-online@0.56.0-canary.1276.9746511529.0 npm install @salutejs/plasma-asdk@0.99.0-canary.1276.9746511529.0 npm install @salutejs/plasma-b2c@1.341.0-canary.1276.9746511529.0 npm install @salutejs/plasma-new-hope@0.96.0-canary.1276.9746511529.0 npm install @salutejs/plasma-web@1.342.0-canary.1276.9746511529.0 npm install @salutejs/sdds-serv@0.69.0-canary.1276.9746511529.0 # or yarn add @salutejs/caldera-online@0.56.0-canary.1276.9746511529.0 yarn add @salutejs/plasma-asdk@0.99.0-canary.1276.9746511529.0 yarn add @salutejs/plasma-b2c@1.341.0-canary.1276.9746511529.0 yarn add @salutejs/plasma-new-hope@0.96.0-canary.1276.9746511529.0 yarn add @salutejs/plasma-web@1.342.0-canary.1276.9746511529.0 yarn add @salutejs/sdds-serv@0.69.0-canary.1276.9746511529.0 ```
github-actions[bot] commented 4 days ago

Theme Builder app deployed!

https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1276/

github-actions[bot] commented 4 days ago

Documentation preview deployed!

website:https://plasma.sberdevices.ru/pr/pr-1276/ caldera-online storybook: https://plasma.sberdevices.ru/pr/pr-1276/caldera-online-storybook/ asdk storybook: https://plasma.sberdevices.ru/pr/pr-1276/asdk-storybook/ b2c storybook: https://plasma.sberdevices.ru/pr/pr-1276/b2c-storybook/ new-hope storybook: https://plasma.sberdevices.ru/pr/pr-1276/new-hope-storybook/ web storybook: https://plasma.sberdevices.ru/pr/pr-1276/web-storybook/ sdds-serv storybook: https://plasma.sberdevices.ru/pr/pr-1276/sdds-serv-storybook/ ui storybook: https://plasma.sberdevices.ru/pr/pr-1276/ui-storybook/

github-actions[bot] commented 4 days ago

⚡ Component performance testing

Result: 🟢 OK

github-actions[bot] commented 4 days ago

⚡ Component performance testing

Result: 🟢 OK

github-actions[bot] commented 3 days ago

⚡ Component performance testing

Result: 💀 WASTED

Performance tests are broken. If the current changes are the cause, please fix it immediately in this PR. If not, please schedule their repair. For any questions, come to the Speed team.

github-actions[bot] commented 3 days ago

⚡ Component performance testing

Result: 🟢 OK

Yakutoc commented 3 days ago

@Yeti-or @neretin-trike

https://app.renovatebot.com/package-diff?name=@salutejs/plasma-web&npm&from=1.341.1-dev.0&to=1.342.0-canary.1276.9746511529.0#d2h-826447

Вроде ожидаемо и все корректно

github-actions[bot] commented 3 days ago

⚡ Component performance testing

Result: 🟢 OK