-
Notifications
You must be signed in to change notification settings - Fork 23
feat(plasma-new-hope): Add invariants support [DONT MERGE]
#1983
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
base: dev
Are you sure you want to change the base?
Conversation
|
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1983/ |
Yeti-or
left a comment
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.
В этом пр надо поправить код компонента: 9a29959#r157471608 а смотреть как это будет работать в реальном Button мы не будем ?
| ${({ staticVariants }) => staticVariants}; | ||
| ${({ dynamicVariants }) => dynamicVariants}; | ||
| ${({ intersectionStyles }) => intersectionStyles}; | ||
| ${({ invariants }) => invariants}; |
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.
вопрос такой если я напишу в варицаии disableOpacity отличающийся от того что написано в инварианте, кто победит?
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.
хм, мне кажется победит инвариант, т.к. он в конце стоит
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.
А как мы определяем порядок кто должен быть первым и последним?
да, надо будет убрать комменты. Ну я бы пока не хотел менять в реальных компонентах это. Но предлагаю делать точечно, когда появится необходимость при генерации |
73416bb to
97ab015
Compare
97ab015 to
85fe43f
Compare
85fe43f to
d6645ad
Compare
d6645ad to
b0c9494
Compare
b0c9494 to
27eb653
Compare
invariants supportinvariants support [DONT MERGE]
27eb653 to
909acc3
Compare
909acc3 to
b42df10
Compare
b42df10 to
4457f11
Compare
Core
Пример конфига:
What/why changed
📦 Published PR as canary version:
Canary Versions✨ Test out this PR locally via:
npm install @salutejs/plasma-asdk@0.355.0-canary.1983.19295272379.0 npm install @salutejs/plasma-b2c@1.597.0-canary.1983.19295272379.0 npm install @salutejs/plasma-giga@0.324.0-canary.1983.19295272379.0 npm install @salutejs/plasma-new-hope@0.341.0-canary.1983.19295272379.0 npm install @salutejs/plasma-web@1.599.0-canary.1983.19295272379.0 npm install @salutejs/sdds-bizcom@0.329.0-canary.1983.19295272379.0 npm install @salutejs/sdds-crm@0.328.0-canary.1983.19295272379.0 npm install @salutejs/sdds-cs@0.333.0-canary.1983.19295272379.0 npm install @salutejs/sdds-dfa@0.327.0-canary.1983.19295272379.0 npm install @salutejs/sdds-finai@0.320.0-canary.1983.19295272379.0 npm install @salutejs/sdds-insol@0.324.0-canary.1983.19295272379.0 npm install @salutejs/sdds-netology@0.328.0-canary.1983.19295272379.0 npm install @salutejs/sdds-scan@0.327.0-canary.1983.19295272379.0 npm install @salutejs/sdds-serv@0.328.0-canary.1983.19295272379.0 # or yarn add @salutejs/plasma-asdk@0.355.0-canary.1983.19295272379.0 yarn add @salutejs/plasma-b2c@1.597.0-canary.1983.19295272379.0 yarn add @salutejs/plasma-giga@0.324.0-canary.1983.19295272379.0 yarn add @salutejs/plasma-new-hope@0.341.0-canary.1983.19295272379.0 yarn add @salutejs/plasma-web@1.599.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-bizcom@0.329.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-crm@0.328.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-cs@0.333.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-dfa@0.327.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-finai@0.320.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-insol@0.324.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-netology@0.328.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-scan@0.327.0-canary.1983.19295272379.0 yarn add @salutejs/sdds-serv@0.328.0-canary.1983.19295272379.0