Skip to content
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(plasma-new-hope): refactor & add stretch/pin props #896

Merged
merged 5 commits into from
Dec 19, 2023

Conversation

TitanKuzmich
Copy link
Contributor

@TitanKuzmich TitanKuzmich commented Dec 6, 2023

Button

  • вынесены токены;
  • поправлено поведение props square;
  • добавлены недостающие props: stretch и pin

What/why changed

В рамках рефакторинга сделали важные изменения что бы код и дизайн был консистентным для всех библиотек.

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/plasma-asdk@0.15.0-canary.896.7258736547.0
npm install @salutejs/plasma-b2c@1.256.0-canary.896.7258736547.0
npm install @salutejs/plasma-new-hope@0.22.0-canary.896.7258736547.0
npm install @salutejs/plasma-web@1.256.0-canary.896.7258736547.0
# or 
yarn add @salutejs/plasma-asdk@0.15.0-canary.896.7258736547.0
yarn add @salutejs/plasma-b2c@1.256.0-canary.896.7258736547.0
yarn add @salutejs/plasma-new-hope@0.22.0-canary.896.7258736547.0
yarn add @salutejs/plasma-web@1.256.0-canary.896.7258736547.0

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-896/

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-896/

@Salute-Eva
Copy link
Contributor

</Root>
);
});

export const buttonConfig = {
name: 'Button',
tag: 'button',
tag: 'div',
Copy link
Collaborator

Choose a reason for hiding this comment

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

но вообще прям не хочется рутовым элементом div держать :(

Copy link
Contributor

Choose a reason for hiding this comment

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

плюсую

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kayman233 комменты выше глянь пожалуйста

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Yeti-or @kayman233 вернуд button в root. Переменная с bprder-radius складывается в инлайн стили

</Root>
);
});

export const buttonConfig = {
name: 'Button',
tag: 'button',
tag: 'div',
Copy link
Contributor

Choose a reason for hiding this comment

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

плюсую

packages/plasma-new-hope/src/components/Button/tokens.ts Outdated Show resolved Hide resolved
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-896/

@Salute-Eva
Copy link
Contributor

@TitanKuzmich TitanKuzmich added this pull request to the merge queue Dec 19, 2023
Merged via the queue into dev with commit 2416db6 Dec 19, 2023
25 checks passed
@TitanKuzmich TitanKuzmich deleted the plasma/add-button-features branch December 19, 2023 07:51
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/plasma-asdk@0.15.0-dev.0, @salutejs/plasma-b2c@1.256.0-dev.0, @salutejs/plasma-new-hope@0.22.0-dev.0, @salutejs/plasma-temple-docs@0.193.0-dev.0, @salutejs/plasma-ui-docs@0.242.0-dev.0, @salutejs/plasma-web-docs@0.210.0-dev.0, @salutejs/plasma-web@1.256.0-dev.0, @salutejs/plasma-website@0.218.0-dev.0 🚀

@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/plasma-asdk@0.15.0-dev.0, @salutejs/plasma-b2c@1.256.0-dev.0, @salutejs/plasma-new-hope@0.22.0-dev.0, @salutejs/plasma-temple-docs@0.193.0-dev.0, @salutejs/plasma-ui-docs@0.242.0-dev.0, @salutejs/plasma-web-docs@0.210.0-dev.0, @salutejs/plasma-web@1.256.0-dev.0, @salutejs/plasma-website@0.218.0-dev.0 🚀

2 similar comments
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/plasma-asdk@0.15.0-dev.0, @salutejs/plasma-b2c@1.256.0-dev.0, @salutejs/plasma-new-hope@0.22.0-dev.0, @salutejs/plasma-temple-docs@0.193.0-dev.0, @salutejs/plasma-ui-docs@0.242.0-dev.0, @salutejs/plasma-web-docs@0.210.0-dev.0, @salutejs/plasma-web@1.256.0-dev.0, @salutejs/plasma-website@0.218.0-dev.0 🚀

@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/plasma-asdk@0.15.0-dev.0, @salutejs/plasma-b2c@1.256.0-dev.0, @salutejs/plasma-new-hope@0.22.0-dev.0, @salutejs/plasma-temple-docs@0.193.0-dev.0, @salutejs/plasma-ui-docs@0.242.0-dev.0, @salutejs/plasma-web-docs@0.210.0-dev.0, @salutejs/plasma-web@1.256.0-dev.0, @salutejs/plasma-website@0.218.0-dev.0 🚀

This was referenced Dec 22, 2023
@Yakutoc Yakutoc mentioned this pull request Dec 22, 2023
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/plasma-asdk@0.19.0, @salutejs/plasma-b2c@1.260.0, @salutejs/plasma-core@1.142.0, @salutejs/plasma-cy-utils@0.75.0, @salutejs/plasma-hope@1.250.0, @salutejs/plasma-icons@1.174.0, @salutejs/plasma-new-hope@0.26.0, @salutejs/plasma-sb-utils@0.140.0, @salutejs/plasma-temple-docs@0.197.0, @salutejs/plasma-temple@1.192.0, @salutejs/plasma-tokens-b2b@1.32.0, @salutejs/plasma-tokens-b2c@0.42.0, @salutejs/plasma-tokens-native@1.18.0, @salutejs/plasma-tokens-utils@0.36.0, @salutejs/plasma-tokens-web@1.47.0, @salutejs/plasma-tokens@1.67.0, @salutejs/plasma-ui-docs@0.246.0, @salutejs/plasma-ui@1.224.0, @salutejs/plasma-web-docs@0.214.0, @salutejs/plasma-web@1.260.0, @salutejs/plasma-website@0.222.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants