@salutejs/plasma-new-hope 0.86.1-canary.1217.9271710675.0 → 0.87.0-canary.1213.9282242102.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/cjs/components/Button/Button.css +9 -6
  2. package/cjs/components/Button/Button.js +16 -2
  3. package/cjs/components/Button/Button.js.map +1 -1
  4. package/cjs/components/Button/Button.styles.js +31 -10
  5. package/cjs/components/Button/Button.styles.js.map +1 -1
  6. package/cjs/components/Button/Button.styles_1oz1dew.css +8 -0
  7. package/cjs/components/Button/Button.tokens.js +5 -0
  8. package/cjs/components/Button/Button.tokens.js.map +1 -1
  9. package/cjs/components/Button/variations/_stretching/base.js +1 -1
  10. package/cjs/components/Button/variations/_stretching/base.js.map +1 -1
  11. package/{es/components/Button/variations/_stretching/base_1lx0ute.css → cjs/components/Button/variations/_stretching/base_hy8dc.css} +1 -1
  12. package/cjs/components/ButtonGroup/ButtonGroup.css +2 -2
  13. package/cjs/components/ButtonGroup/ButtonGroup.tokens.js +1 -0
  14. package/cjs/components/ButtonGroup/ButtonGroup.tokens.js.map +1 -1
  15. package/cjs/components/ButtonGroup/variations/_orientation/base.js +1 -1
  16. package/cjs/components/ButtonGroup/variations/_orientation/base.js.map +1 -1
  17. package/{es/components/ButtonGroup/variations/_orientation/base_p85v51.css → cjs/components/ButtonGroup/variations/_orientation/base_y7z7cs.css} +1 -1
  18. package/cjs/components/ButtonGroup/variations/_view/base.js +1 -1
  19. package/cjs/components/ButtonGroup/variations/_view/base.js.map +1 -1
  20. package/cjs/components/ButtonGroup/variations/_view/base_1n9gznw.css +1 -0
  21. package/cjs/components/Drawer/Drawer.css +9 -6
  22. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +9 -6
  23. package/cjs/components/Header/ui/HeaderArrow/HeaderArrow.css +9 -6
  24. package/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js +4 -2
  25. package/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js.map +1 -1
  26. package/cjs/components/IconButton/IconButton.css +10 -7
  27. package/cjs/components/IconButton/IconButton.styles.js +1 -1
  28. package/cjs/components/IconButton/{IconButton.styles_1hknr37.css → IconButton.styles_7v8g0e.css} +1 -1
  29. package/cjs/components/Notification/Notification.css +9 -6
  30. package/cjs/components/Notification/NotificationsProvider.css +9 -6
  31. package/cjs/components/Pagination/Pagination.css +11 -8
  32. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +9 -6
  33. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +9 -6
  34. package/cjs/components/Select/Select.css +9 -6
  35. package/cjs/components/Select/ui/SelectTarget/SelectTarget.css +9 -6
  36. package/cjs/components/Toast/Toast.css +9 -6
  37. package/cjs/components/Toast/ToastController.css +9 -6
  38. package/cjs/index.css +12 -9
  39. package/es/components/Button/Button.css +9 -6
  40. package/es/components/Button/Button.js +17 -3
  41. package/es/components/Button/Button.js.map +1 -1
  42. package/es/components/Button/Button.styles.js +29 -11
  43. package/es/components/Button/Button.styles.js.map +1 -1
  44. package/es/components/Button/Button.styles_1oz1dew.css +8 -0
  45. package/es/components/Button/Button.tokens.js +5 -0
  46. package/es/components/Button/Button.tokens.js.map +1 -1
  47. package/es/components/Button/variations/_stretching/base.js +1 -1
  48. package/es/components/Button/variations/_stretching/base.js.map +1 -1
  49. package/{cjs/components/Button/variations/_stretching/base_1lx0ute.css → es/components/Button/variations/_stretching/base_hy8dc.css} +1 -1
  50. package/es/components/ButtonGroup/ButtonGroup.css +2 -2
  51. package/es/components/ButtonGroup/ButtonGroup.tokens.js +1 -0
  52. package/es/components/ButtonGroup/ButtonGroup.tokens.js.map +1 -1
  53. package/es/components/ButtonGroup/variations/_orientation/base.js +1 -1
  54. package/es/components/ButtonGroup/variations/_orientation/base.js.map +1 -1
  55. package/{cjs/components/ButtonGroup/variations/_orientation/base_p85v51.css → es/components/ButtonGroup/variations/_orientation/base_y7z7cs.css} +1 -1
  56. package/es/components/ButtonGroup/variations/_view/base.js +1 -1
  57. package/es/components/ButtonGroup/variations/_view/base.js.map +1 -1
  58. package/es/components/ButtonGroup/variations/_view/base_1n9gznw.css +1 -0
  59. package/es/components/Drawer/Drawer.css +9 -6
  60. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +9 -6
  61. package/es/components/Header/ui/HeaderArrow/HeaderArrow.css +9 -6
  62. package/es/components/Header/ui/HeaderArrow/HeaderArrow.js +4 -2
  63. package/es/components/Header/ui/HeaderArrow/HeaderArrow.js.map +1 -1
  64. package/es/components/IconButton/IconButton.css +10 -7
  65. package/es/components/IconButton/IconButton.styles.js +1 -1
  66. package/es/components/IconButton/{IconButton.styles_1hknr37.css → IconButton.styles_7v8g0e.css} +1 -1
  67. package/es/components/Notification/Notification.css +9 -6
  68. package/es/components/Notification/NotificationsProvider.css +9 -6
  69. package/es/components/Pagination/Pagination.css +11 -8
  70. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +9 -6
  71. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +9 -6
  72. package/es/components/Select/Select.css +9 -6
  73. package/es/components/Select/ui/SelectTarget/SelectTarget.css +9 -6
  74. package/es/components/Toast/Toast.css +9 -6
  75. package/es/components/Toast/ToastController.css +9 -6
  76. package/es/index.css +12 -9
  77. package/package.json +2 -2
  78. package/styled-components/cjs/components/Button/Button.js +16 -2
  79. package/styled-components/cjs/components/Button/Button.styles.js +20 -12
  80. package/styled-components/cjs/components/Button/Button.template-doc.mdx +47 -0
  81. package/styled-components/cjs/components/Button/Button.tokens.js +5 -0
  82. package/styled-components/cjs/components/Button/variations/_stretching/base.js +1 -1
  83. package/styled-components/cjs/components/ButtonGroup/ButtonGroup.tokens.js +1 -0
  84. package/styled-components/cjs/components/ButtonGroup/variations/_orientation/base.js +2 -1
  85. package/styled-components/cjs/components/ButtonGroup/variations/_view/base.js +1 -1
  86. package/styled-components/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js +4 -2
  87. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.config.js +19 -19
  88. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +67 -21
  89. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +10 -10
  90. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  91. package/styled-components/cjs/examples/plasma_web/components/Button/Button.config.js +19 -19
  92. package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +90 -28
  93. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +10 -10
  94. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  95. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +19 -19
  96. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +90 -28
  97. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +10 -10
  98. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  99. package/styled-components/es/components/Button/Button.js +17 -3
  100. package/styled-components/es/components/Button/Button.styles.js +19 -11
  101. package/styled-components/es/components/Button/Button.template-doc.mdx +47 -0
  102. package/styled-components/es/components/Button/Button.tokens.js +5 -0
  103. package/styled-components/es/components/Button/variations/_stretching/base.js +1 -1
  104. package/styled-components/es/components/ButtonGroup/ButtonGroup.tokens.js +1 -0
  105. package/styled-components/es/components/ButtonGroup/variations/_orientation/base.js +3 -2
  106. package/styled-components/es/components/ButtonGroup/variations/_view/base.js +1 -1
  107. package/styled-components/es/components/Header/ui/HeaderArrow/HeaderArrow.js +4 -2
  108. package/styled-components/es/examples/plasma_b2c/components/Button/Button.config.js +19 -19
  109. package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +67 -21
  110. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +10 -10
  111. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  112. package/styled-components/es/examples/plasma_web/components/Button/Button.config.js +19 -19
  113. package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +90 -28
  114. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +10 -10
  115. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  116. package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +19 -19
  117. package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +90 -28
  118. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +10 -10
  119. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  120. package/types/components/Button/Button.d.ts.map +1 -1
  121. package/types/components/Button/Button.styles.d.ts +5 -1
  122. package/types/components/Button/Button.styles.d.ts.map +1 -1
  123. package/types/components/Button/Button.tokens.d.ts +5 -0
  124. package/types/components/Button/Button.tokens.d.ts.map +1 -1
  125. package/types/components/Button/Button.types.d.ts +28 -4
  126. package/types/components/Button/Button.types.d.ts.map +1 -1
  127. package/types/components/ButtonGroup/ButtonGroup.tokens.d.ts +1 -0
  128. package/types/components/ButtonGroup/ButtonGroup.tokens.d.ts.map +1 -1
  129. package/types/components/ButtonGroup/variations/_orientation/base.d.ts.map +1 -1
  130. package/types/components/ButtonGroup/variations/_view/base.d.ts.map +1 -1
  131. package/types/components/Header/ui/HeaderArrow/HeaderArrow.d.ts.map +1 -1
  132. package/types/components/Notification/Notification.styles.d.ts +43 -1
  133. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  134. package/types/components/Pagination/Pagination.styles.d.ts +86 -2
  135. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  136. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +43 -1
  137. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts.map +1 -1
  138. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts +43 -1
  139. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts.map +1 -1
  140. package/types/components/Toast/Toast.styles.d.ts +43 -1
  141. package/types/components/Toast/Toast.styles.d.ts.map +1 -1
  142. package/types/components/Toast/utils.d.ts +43 -1
  143. package/types/components/Toast/utils.d.ts.map +1 -1
  144. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts.map +1 -1
  145. package/types/examples/plasma_b2c/components/Button/Button.d.ts +43 -1
  146. package/types/examples/plasma_b2c/components/Button/Button.d.ts.map +1 -1
  147. package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  148. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +43 -1
  149. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -1
  150. package/types/examples/plasma_web/components/Button/Button.config.d.ts.map +1 -1
  151. package/types/examples/plasma_web/components/Button/Button.d.ts +43 -1
  152. package/types/examples/plasma_web/components/Button/Button.d.ts.map +1 -1
  153. package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  154. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +43 -1
  155. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -1
  156. package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -1
  157. package/types/examples/sds_engineer/components/Button/Button.d.ts +43 -1
  158. package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -1
  159. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  160. package/cjs/components/Button/Button.styles_uqvh6u.css +0 -5
  161. package/cjs/components/ButtonGroup/variations/_view/base_6k3uip.css +0 -1
  162. package/es/components/Button/Button.styles_uqvh6u.css +0 -5
  163. package/es/components/ButtonGroup/variations/_view/base_6k3uip.css +0 -1
@@ -34,5 +34,47 @@ export declare const Button: import("react").FunctionComponent<import("../../../
34
34
  filled: import("@linaria/core").LinariaClassName;
35
35
  fixed: import("@linaria/core").LinariaClassName;
36
36
  };
37
- }> & import("../../../../components/Button").ButtonProps<HTMLElement> & import("react").RefAttributes<HTMLButtonElement>>;
37
+ }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("../../../../types").AsProps<any> & {
38
+ text?: string | undefined;
39
+ contentLeft?: import("react").ReactNode;
40
+ contentPlacing?: ("default" | "relaxed") | undefined;
41
+ isLoading?: boolean | undefined;
42
+ loader?: import("react").ReactNode;
43
+ stretch?: boolean | undefined;
44
+ stretching?: ("auto" | "fixed" | "filled") | undefined;
45
+ square?: boolean | undefined;
46
+ focused?: boolean | undefined;
47
+ disabled?: boolean | undefined;
48
+ pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
49
+ view?: string | undefined;
50
+ size?: string | undefined;
51
+ outlined?: boolean | undefined;
52
+ shiftLeft?: boolean | undefined;
53
+ shiftRight?: boolean | undefined;
54
+ blur?: "small" | "medium" | "large" | undefined;
55
+ } & {
56
+ value?: string | number | undefined;
57
+ contentRight?: undefined;
58
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("../../../../types").AsProps<any> & {
59
+ text?: string | undefined;
60
+ contentLeft?: import("react").ReactNode;
61
+ contentPlacing?: ("default" | "relaxed") | undefined;
62
+ isLoading?: boolean | undefined;
63
+ loader?: import("react").ReactNode;
64
+ stretch?: boolean | undefined;
65
+ stretching?: ("auto" | "fixed" | "filled") | undefined;
66
+ square?: boolean | undefined;
67
+ focused?: boolean | undefined;
68
+ disabled?: boolean | undefined;
69
+ pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
70
+ view?: string | undefined;
71
+ size?: string | undefined;
72
+ outlined?: boolean | undefined;
73
+ shiftLeft?: boolean | undefined;
74
+ shiftRight?: boolean | undefined;
75
+ blur?: "small" | "medium" | "large" | undefined;
76
+ } & {
77
+ value?: undefined;
78
+ contentRight?: import("react").ReactNode;
79
+ } & import("react").RefAttributes<HTMLButtonElement>))>;
38
80
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Button/Button.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAA0B,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Button/Button.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonGroup.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiPlB,CAAC"}
1
+ {"version":3,"file":"ButtonGroup.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PlB,CAAC"}
@@ -1,5 +0,0 @@
1
- .bzw1898{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.bzw1898{-webkit-text-decoration:none;text-decoration:none;}.bzw1898.bzw1898.button-square{width:var(--plasma-button-height);padding:0;}
2
- .bdfuqwe{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.bdfuqwe:not(:last-child){margin-right:0.375rem;}.bdfuqwe:not(:first-child){margin-left:0.375rem;}
3
- .l9ypozh{opacity:var(--l9ypozh-0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;height:100%;}
4
- .l4dfhbg{position:absolute;}
5
- .srdlazt{--plasma-spinner-size:var(--plasma-button-spinner-size);--plasma-spinner-color:var(--plasma-button-spinner-color);}
@@ -1 +0,0 @@
1
- .b7jdqtc.button-group-override-styles .button-item{--plasma-button-color:var(--plasma-button-group-item-color);--plasma-button-background-color:var(--plasma-button-group-item-background-color);--plasma-button-color-hover:var(--plasma-button-group-item-color-hover);--plasma-button-background-color-hover:var(--plasma-button-group-item-background-color-hover);--plasma-button-color-active:var(--plasma-button-group-item-color-active);--plasma-button-background-color-active:var(--plasma-button-group-item-background-color-active);}
@@ -1,5 +0,0 @@
1
- .bzw1898{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.bzw1898{-webkit-text-decoration:none;text-decoration:none;}.bzw1898.bzw1898.button-square{width:var(--plasma-button-height);padding:0;}
2
- .bdfuqwe{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.bdfuqwe:not(:last-child){margin-right:0.375rem;}.bdfuqwe:not(:first-child){margin-left:0.375rem;}
3
- .l9ypozh{opacity:var(--l9ypozh-0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;height:100%;}
4
- .l4dfhbg{position:absolute;}
5
- .srdlazt{--plasma-spinner-size:var(--plasma-button-spinner-size);--plasma-spinner-color:var(--plasma-button-spinner-color);}
@@ -1 +0,0 @@
1
- .b7jdqtc.button-group-override-styles .button-item{--plasma-button-color:var(--plasma-button-group-item-color);--plasma-button-background-color:var(--plasma-button-group-item-background-color);--plasma-button-color-hover:var(--plasma-button-group-item-color-hover);--plasma-button-background-color-hover:var(--plasma-button-group-item-background-color-hover);--plasma-button-color-active:var(--plasma-button-group-item-color-active);--plasma-button-background-color-active:var(--plasma-button-group-item-background-color-active);}