@salutejs/plasma-new-hope 0.67.0-canary.1148.8449780048.0 → 0.67.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/cjs/components/Divider/Divider.js +1 -1
  2. package/cjs/components/Divider/Divider.js.map +1 -1
  3. package/cjs/components/Divider/Divider.tokens.js +1 -0
  4. package/cjs/components/Divider/Divider.tokens.js.map +1 -1
  5. package/cjs/components/Toolbar/Toolbar.css +1 -0
  6. package/cjs/components/Toolbar/Toolbar.js +53 -0
  7. package/cjs/components/Toolbar/Toolbar.js.map +1 -0
  8. package/cjs/components/Toolbar/Toolbar.styles.js +9 -0
  9. package/cjs/components/Toolbar/Toolbar.styles.js.map +1 -0
  10. package/cjs/components/Toolbar/Toolbar.styles_iomsh3.css +1 -0
  11. package/cjs/components/Toolbar/Toolbar.tokens.js +27 -0
  12. package/cjs/components/Toolbar/Toolbar.tokens.js.map +1 -0
  13. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.css +7 -0
  14. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +21 -0
  15. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js.map +1 -0
  16. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js +12 -0
  17. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js.map +1 -0
  18. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles_1ypqhb1.css +1 -0
  19. package/cjs/components/{Cell → Toolbar}/variations/_size/base.js +1 -1
  20. package/cjs/components/Toolbar/variations/_size/base.js.map +1 -0
  21. package/cjs/components/{Cell → Toolbar}/variations/_view/base.js +2 -2
  22. package/cjs/components/Toolbar/variations/_view/base.js.map +1 -0
  23. package/cjs/index.css +4 -4
  24. package/cjs/index.js +8 -14
  25. package/cjs/index.js.map +1 -1
  26. package/es/components/Divider/Divider.js +1 -1
  27. package/es/components/Divider/Divider.js.map +1 -1
  28. package/es/components/Divider/Divider.tokens.js +1 -0
  29. package/es/components/Divider/Divider.tokens.js.map +1 -1
  30. package/es/components/Toolbar/Toolbar.css +1 -0
  31. package/es/components/Toolbar/Toolbar.js +48 -0
  32. package/es/components/Toolbar/Toolbar.js.map +1 -0
  33. package/es/components/Toolbar/Toolbar.styles.js +5 -0
  34. package/es/components/Toolbar/Toolbar.styles.js.map +1 -0
  35. package/es/components/Toolbar/Toolbar.styles_iomsh3.css +1 -0
  36. package/es/components/Toolbar/Toolbar.tokens.js +22 -0
  37. package/es/components/Toolbar/Toolbar.tokens.js.map +1 -0
  38. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.css +7 -0
  39. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +16 -0
  40. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js.map +1 -0
  41. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js +7 -0
  42. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js.map +1 -0
  43. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles_1ypqhb1.css +1 -0
  44. package/es/components/{Cell → Toolbar}/variations/_size/base.js +1 -1
  45. package/es/components/Toolbar/variations/_size/base.js.map +1 -0
  46. package/es/components/Toolbar/variations/_size/base_x642ct.css +1 -0
  47. package/es/components/{Cell → Toolbar}/variations/_view/base.js +2 -2
  48. package/es/components/Toolbar/variations/_view/base.js.map +1 -0
  49. package/es/components/Toolbar/variations/_view/base_x642ct.css +1 -0
  50. package/es/index.css +4 -4
  51. package/es/index.js +3 -6
  52. package/es/index.js.map +1 -1
  53. package/package.json +2 -2
  54. package/styled-components/cjs/components/Divider/Divider.js +1 -1
  55. package/styled-components/cjs/components/Divider/Divider.tokens.js +1 -0
  56. package/styled-components/cjs/components/Toolbar/Toolbar.js +55 -0
  57. package/styled-components/cjs/components/Toolbar/Toolbar.styles.js +10 -0
  58. package/styled-components/cjs/components/Toolbar/Toolbar.tokens.js +25 -0
  59. package/styled-components/cjs/components/Toolbar/index.js +42 -0
  60. package/styled-components/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +23 -0
  61. package/styled-components/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js +12 -0
  62. package/styled-components/cjs/components/Toolbar/ui/index.js +18 -0
  63. package/styled-components/cjs/components/Toolbar/variations/_size/tokens.json +1 -0
  64. package/styled-components/cjs/components/{Cell → Toolbar}/variations/_view/base.js +1 -2
  65. package/styled-components/cjs/components/Toolbar/variations/_view/tokens.json +1 -0
  66. package/styled-components/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.config.js +25 -0
  67. package/styled-components/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.js +17 -0
  68. package/styled-components/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +63 -0
  69. package/styled-components/cjs/examples/plasma_web/components/Toolbar/Toolbar.config.js +25 -0
  70. package/styled-components/cjs/examples/plasma_web/components/Toolbar/Toolbar.js +17 -0
  71. package/styled-components/cjs/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +63 -0
  72. package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.config.js +25 -0
  73. package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.js +17 -0
  74. package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
  75. package/styled-components/cjs/index.js +11 -11
  76. package/styled-components/es/components/Divider/Divider.js +1 -1
  77. package/styled-components/es/components/Divider/Divider.tokens.js +1 -0
  78. package/styled-components/es/components/Toolbar/Toolbar.js +46 -0
  79. package/styled-components/es/components/Toolbar/Toolbar.styles.js +4 -0
  80. package/styled-components/es/components/Toolbar/Toolbar.tokens.js +19 -0
  81. package/styled-components/es/components/Toolbar/index.js +3 -0
  82. package/styled-components/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +18 -0
  83. package/styled-components/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js +7 -0
  84. package/styled-components/es/components/Toolbar/ui/index.js +1 -0
  85. package/styled-components/es/components/Toolbar/variations/_size/tokens.json +1 -0
  86. package/styled-components/es/components/Toolbar/variations/_view/base.js +2 -0
  87. package/styled-components/es/components/Toolbar/variations/_view/tokens.json +1 -0
  88. package/styled-components/es/examples/plasma_b2c/components/Toolbar/Toolbar.config.js +19 -0
  89. package/styled-components/es/examples/plasma_b2c/components/Toolbar/Toolbar.js +11 -0
  90. package/styled-components/es/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +63 -0
  91. package/styled-components/es/examples/plasma_web/components/Toolbar/Toolbar.config.js +19 -0
  92. package/styled-components/es/examples/plasma_web/components/Toolbar/Toolbar.js +11 -0
  93. package/styled-components/es/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +63 -0
  94. package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.config.js +19 -0
  95. package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.js +11 -0
  96. package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
  97. package/styled-components/es/index.js +2 -2
  98. package/types/components/Divider/Divider.tokens.d.ts +1 -0
  99. package/types/components/Divider/Divider.tokens.d.ts.map +1 -1
  100. package/types/components/Toolbar/Toolbar.d.ts +34 -0
  101. package/types/components/Toolbar/Toolbar.d.ts.map +1 -0
  102. package/types/components/{Cell/variations/_view/base.d.ts → Toolbar/Toolbar.styles.d.ts} +1 -1
  103. package/types/components/Toolbar/Toolbar.styles.d.ts.map +1 -0
  104. package/types/components/Toolbar/Toolbar.tokens.d.ts +18 -0
  105. package/types/components/Toolbar/Toolbar.tokens.d.ts.map +1 -0
  106. package/types/components/Toolbar/Toolbar.types.d.ts +27 -0
  107. package/types/components/Toolbar/Toolbar.types.d.ts.map +1 -0
  108. package/types/components/Toolbar/index.d.ts +5 -0
  109. package/types/components/Toolbar/index.d.ts.map +1 -0
  110. package/types/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.d.ts +28 -0
  111. package/types/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.d.ts.map +1 -0
  112. package/types/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.d.ts +3 -0
  113. package/types/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.d.ts.map +1 -0
  114. package/types/components/Toolbar/ui/index.d.ts +2 -0
  115. package/types/components/Toolbar/ui/index.d.ts.map +1 -0
  116. package/types/components/Toolbar/variations/_size/base.d.ts.map +1 -0
  117. package/types/components/Toolbar/variations/_view/base.d.ts.map +1 -0
  118. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +2 -2
  119. package/types/examples/{plasma_web/components/Cell/Cell.config.d.ts → plasma_b2c/components/Toolbar/Toolbar.config.d.ts} +4 -10
  120. package/types/examples/plasma_b2c/components/Toolbar/Toolbar.config.d.ts.map +1 -0
  121. package/types/examples/plasma_b2c/components/Toolbar/Toolbar.d.ts +23 -0
  122. package/types/examples/plasma_b2c/components/Toolbar/Toolbar.d.ts.map +1 -0
  123. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +2 -2
  124. package/types/examples/{plasma_b2c/components/Cell/Cell.config.d.ts → plasma_web/components/Toolbar/Toolbar.config.d.ts} +4 -10
  125. package/types/examples/plasma_web/components/Toolbar/Toolbar.config.d.ts.map +1 -0
  126. package/types/examples/plasma_web/components/Toolbar/Toolbar.d.ts +23 -0
  127. package/types/examples/plasma_web/components/Toolbar/Toolbar.d.ts.map +1 -0
  128. package/types/examples/sds_engineer/components/Toolbar/Toolbar.config.d.ts +18 -0
  129. package/types/examples/sds_engineer/components/Toolbar/Toolbar.config.d.ts.map +1 -0
  130. package/types/examples/sds_engineer/components/Toolbar/Toolbar.d.ts +23 -0
  131. package/types/examples/sds_engineer/components/Toolbar/Toolbar.d.ts.map +1 -0
  132. package/types/index.d.ts +1 -1
  133. package/types/index.d.ts.map +1 -1
  134. package/cjs/components/Cell/Cell.css +0 -3
  135. package/cjs/components/Cell/Cell.js +0 -75
  136. package/cjs/components/Cell/Cell.js.map +0 -1
  137. package/cjs/components/Cell/Cell.styles.js +0 -42
  138. package/cjs/components/Cell/Cell.styles.js.map +0 -1
  139. package/cjs/components/Cell/Cell.tokens.js +0 -50
  140. package/cjs/components/Cell/Cell.tokens.js.map +0 -1
  141. package/cjs/components/Cell/Textbox/Textbox.js +0 -20
  142. package/cjs/components/Cell/Textbox/Textbox.js.map +0 -1
  143. package/cjs/components/Cell/Textbox/Textbox.styles.js +0 -13
  144. package/cjs/components/Cell/Textbox/Textbox.styles.js.map +0 -1
  145. package/cjs/components/Cell/Textbox/ui/TextLabel.js +0 -17
  146. package/cjs/components/Cell/Textbox/ui/TextLabel.js.map +0 -1
  147. package/cjs/components/Cell/Textbox/ui/TextSubtitle.js +0 -17
  148. package/cjs/components/Cell/Textbox/ui/TextSubtitle.js.map +0 -1
  149. package/cjs/components/Cell/Textbox/ui/TextTitle.js +0 -17
  150. package/cjs/components/Cell/Textbox/ui/TextTitle.js.map +0 -1
  151. package/cjs/components/Cell/variations/_size/base.js.map +0 -1
  152. package/cjs/components/Cell/variations/_stretching/base.js +0 -9
  153. package/cjs/components/Cell/variations/_stretching/base.js.map +0 -1
  154. package/cjs/components/Cell/variations/_stretching/base_1ryz4br.css +0 -1
  155. package/cjs/components/Cell/variations/_view/base.js.map +0 -1
  156. package/cjs/components/Cell/variations/_view/base_c5qh0x.css +0 -1
  157. package/es/components/Cell/Cell.css +0 -3
  158. package/es/components/Cell/Cell.js +0 -70
  159. package/es/components/Cell/Cell.js.map +0 -1
  160. package/es/components/Cell/Cell.styles.js +0 -34
  161. package/es/components/Cell/Cell.styles.js.map +0 -1
  162. package/es/components/Cell/Cell.tokens.js +0 -45
  163. package/es/components/Cell/Cell.tokens.js.map +0 -1
  164. package/es/components/Cell/Textbox/Textbox.js +0 -16
  165. package/es/components/Cell/Textbox/Textbox.js.map +0 -1
  166. package/es/components/Cell/Textbox/Textbox.styles.js +0 -9
  167. package/es/components/Cell/Textbox/Textbox.styles.js.map +0 -1
  168. package/es/components/Cell/Textbox/ui/TextLabel.js +0 -13
  169. package/es/components/Cell/Textbox/ui/TextLabel.js.map +0 -1
  170. package/es/components/Cell/Textbox/ui/TextSubtitle.js +0 -13
  171. package/es/components/Cell/Textbox/ui/TextSubtitle.js.map +0 -1
  172. package/es/components/Cell/Textbox/ui/TextTitle.js +0 -13
  173. package/es/components/Cell/Textbox/ui/TextTitle.js.map +0 -1
  174. package/es/components/Cell/variations/_size/base.js.map +0 -1
  175. package/es/components/Cell/variations/_stretching/base.js +0 -5
  176. package/es/components/Cell/variations/_stretching/base.js.map +0 -1
  177. package/es/components/Cell/variations/_stretching/base_1ryz4br.css +0 -1
  178. package/es/components/Cell/variations/_view/base.js.map +0 -1
  179. package/es/components/Cell/variations/_view/base_c5qh0x.css +0 -1
  180. package/styled-components/cjs/components/Cell/Cell.js +0 -75
  181. package/styled-components/cjs/components/Cell/Cell.styles.js +0 -37
  182. package/styled-components/cjs/components/Cell/Cell.tokens.js +0 -48
  183. package/styled-components/cjs/components/Cell/Textbox/Textbox.js +0 -19
  184. package/styled-components/cjs/components/Cell/Textbox/Textbox.styles.js +0 -12
  185. package/styled-components/cjs/components/Cell/Textbox/Textbox.types.js +0 -5
  186. package/styled-components/cjs/components/Cell/Textbox/ui/TextLabel.js +0 -16
  187. package/styled-components/cjs/components/Cell/Textbox/ui/TextSubtitle.js +0 -16
  188. package/styled-components/cjs/components/Cell/Textbox/ui/TextTitle.js +0 -16
  189. package/styled-components/cjs/components/Cell/index.js +0 -59
  190. package/styled-components/cjs/components/Cell/variations/_size/tokens.json +0 -1
  191. package/styled-components/cjs/components/Cell/variations/_stretching/base.js +0 -9
  192. package/styled-components/cjs/components/Cell/variations/_stretching/tokens.json +0 -1
  193. package/styled-components/cjs/components/Cell/variations/_view/tokens.json +0 -1
  194. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.config.js +0 -31
  195. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.js +0 -35
  196. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +0 -154
  197. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.config.js +0 -31
  198. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.js +0 -35
  199. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +0 -154
  200. package/styled-components/es/components/Cell/Cell.js +0 -66
  201. package/styled-components/es/components/Cell/Cell.styles.js +0 -30
  202. package/styled-components/es/components/Cell/Cell.tokens.js +0 -42
  203. package/styled-components/es/components/Cell/Textbox/Textbox.js +0 -12
  204. package/styled-components/es/components/Cell/Textbox/Textbox.styles.js +0 -5
  205. package/styled-components/es/components/Cell/Textbox/Textbox.types.js +0 -1
  206. package/styled-components/es/components/Cell/Textbox/ui/TextLabel.js +0 -9
  207. package/styled-components/es/components/Cell/Textbox/ui/TextSubtitle.js +0 -9
  208. package/styled-components/es/components/Cell/Textbox/ui/TextTitle.js +0 -9
  209. package/styled-components/es/components/Cell/index.js +0 -6
  210. package/styled-components/es/components/Cell/variations/_size/tokens.json +0 -1
  211. package/styled-components/es/components/Cell/variations/_stretching/base.js +0 -3
  212. package/styled-components/es/components/Cell/variations/_stretching/tokens.json +0 -1
  213. package/styled-components/es/components/Cell/variations/_view/base.js +0 -3
  214. package/styled-components/es/components/Cell/variations/_view/tokens.json +0 -1
  215. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.config.js +0 -25
  216. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.js +0 -6
  217. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +0 -154
  218. package/styled-components/es/examples/plasma_web/components/Cell/Cell.config.js +0 -25
  219. package/styled-components/es/examples/plasma_web/components/Cell/Cell.js +0 -6
  220. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +0 -154
  221. package/types/components/Cell/Cell.d.ts +0 -51
  222. package/types/components/Cell/Cell.d.ts.map +0 -1
  223. package/types/components/Cell/Cell.styles.d.ts +0 -11
  224. package/types/components/Cell/Cell.styles.d.ts.map +0 -1
  225. package/types/components/Cell/Cell.tokens.d.ts +0 -43
  226. package/types/components/Cell/Cell.tokens.d.ts.map +0 -1
  227. package/types/components/Cell/Cell.types.d.ts +0 -57
  228. package/types/components/Cell/Cell.types.d.ts.map +0 -1
  229. package/types/components/Cell/Textbox/Textbox.d.ts +0 -4
  230. package/types/components/Cell/Textbox/Textbox.d.ts.map +0 -1
  231. package/types/components/Cell/Textbox/Textbox.styles.d.ts +0 -2
  232. package/types/components/Cell/Textbox/Textbox.styles.d.ts.map +0 -1
  233. package/types/components/Cell/Textbox/Textbox.types.d.ts +0 -20
  234. package/types/components/Cell/Textbox/Textbox.types.d.ts.map +0 -1
  235. package/types/components/Cell/Textbox/ui/TextLabel.d.ts +0 -7
  236. package/types/components/Cell/Textbox/ui/TextLabel.d.ts.map +0 -1
  237. package/types/components/Cell/Textbox/ui/TextSubtitle.d.ts +0 -7
  238. package/types/components/Cell/Textbox/ui/TextSubtitle.d.ts.map +0 -1
  239. package/types/components/Cell/Textbox/ui/TextTitle.d.ts +0 -7
  240. package/types/components/Cell/Textbox/ui/TextTitle.d.ts.map +0 -1
  241. package/types/components/Cell/index.d.ts +0 -9
  242. package/types/components/Cell/index.d.ts.map +0 -1
  243. package/types/components/Cell/variations/_size/base.d.ts.map +0 -1
  244. package/types/components/Cell/variations/_stretching/base.d.ts.map +0 -1
  245. package/types/components/Cell/variations/_view/base.d.ts.map +0 -1
  246. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts.map +0 -1
  247. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +0 -32
  248. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts.map +0 -1
  249. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts.map +0 -1
  250. package/types/examples/plasma_web/components/Cell/Cell.d.ts +0 -32
  251. package/types/examples/plasma_web/components/Cell/Cell.d.ts.map +0 -1
  252. /package/cjs/components/{Cell → Toolbar}/variations/_size/base_x642ct.css +0 -0
  253. /package/{es/components/Cell/variations/_size → cjs/components/Toolbar/variations/_view}/base_x642ct.css +0 -0
  254. /package/styled-components/cjs/components/{Cell/Cell.types.js → Toolbar/Toolbar.types.js} +0 -0
  255. /package/styled-components/cjs/components/{Cell → Toolbar}/variations/_size/base.js +0 -0
  256. /package/styled-components/es/components/{Cell/Cell.types.js → Toolbar/Toolbar.types.js} +0 -0
  257. /package/styled-components/es/components/{Cell → Toolbar}/variations/_size/base.js +0 -0
  258. /package/types/components/{Cell → Toolbar}/variations/_size/base.d.ts +0 -0
  259. /package/types/components/{Cell/variations/_stretching → Toolbar/variations/_view}/base.d.ts +0 -0
package/es/index.css CHANGED
@@ -46,10 +46,6 @@
46
46
  .Chip_styles_1mwwhiw_swddmyi__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-right-content-margin-left);margin-right:var(--plasma-chip-right-content-margin-right);}
47
47
  .Chip_styles_1mwwhiw_s1pcflhj__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-clear-content-margin-left);margin-right:var(--plasma-chip-clear-content-margin-right);color:var(--plasma-chip-close-icon-color);}
48
48
 
49
- .base_c5qh0x_b1sr9i7l__f964d8e5{color:var(--plasma-cell-color);background-color:var(--plasma-cell-background-color);}
50
-
51
- .base_1ryz4br_b1ppwsal__56529027.base_1ryz4br_cellStretchingFixed__56529027{width:var(--plasma-cell-width);}.base_1ryz4br_b1ppwsal__56529027.base_1ryz4br_cellStretchingFilled__56529027{width:100%;}.base_1ryz4br_b1ppwsal__56529027.base_1ryz4br_cellStretchingAuto__56529027{width:auto;}
52
-
53
49
  .base_1vy4dme_bcchm3r__d3e4eaba{font-family:var(--plasma-link-font-family);color:var(--plasma-link-color);}.base_1vy4dme_bcchm3r__d3e4eaba::before{border-bottom:var(--plasma-link-underline-border) solid currentColor;}.base_1vy4dme_bcchm3r__d3e4eaba:hover{color:var(--plasma-link-color-hover,var(--plasma-link-color));}.base_1vy4dme_bcchm3r__d3e4eaba:hover::before{opacity:1;}.base_1vy4dme_bcchm3r__d3e4eaba:active{color:var(--plasma-link-color-active,var(--plasma-link-color));}.base_1vy4dme_bcchm3r__d3e4eaba:active::before{opacity:1;}.base_1vy4dme_bcchm3r__d3e4eaba:visited{color:var(--plasma-link-color-visited,var(--plasma-link-color));}.base_1vy4dme_bcchm3r__d3e4eaba:visited::before{opacity:1;}.base_1vy4dme_bcchm3r__d3e4eaba:visited:hover{color:var(--plasma-link-color-visited-hover,var(--plasma-link-color));}.base_1vy4dme_bcchm3r__d3e4eaba:visited:hover::before{opacity:1;}.base_1vy4dme_bcchm3r__d3e4eaba:visited:active{color:var(--plasma-link-color-visited-active,var(--plasma-link-color));}.base_1vy4dme_bcchm3r__d3e4eaba:visited:active::before{opacity:1;}
54
50
 
55
51
  .base_1w750p8_b1j3f4f__d44baab5[disabled]{opacity:var(--plasma-link-disabled-opacity);cursor:not-allowed;}.base_1w750p8_b1j3f4f__d44baab5[disabled]:hover,.base_1w750p8_b1j3f4f__d44baab5[disabled]:active{color:var(--plasma-link-color);}.base_1w750p8_b1j3f4f__d44baab5[disabled]::before{opacity:1;}
@@ -504,3 +500,7 @@
504
500
  .base_zgkavi_b1a2rquh__e8c83449{border-radius:var(--plasma-divider-border-radius);}
505
501
 
506
502
  .base_1l6mh9s_b1ghertr__125c85bf.base_1l6mh9s_plasmaDividerHorizontal__125c85bf{width:var(--plasma_private-divider-scale);height:var(--plasma-divider-base-side-size);}.base_1l6mh9s_b1ghertr__125c85bf.base_1l6mh9s_plasmaDividerVertical__125c85bf{-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;position:relative;background:unset;}.base_1l6mh9s_b1ghertr__125c85bf.base_1l6mh9s_plasmaDividerVertical__125c85bf:before{content:'';background:var(--plasma-divider-background);position:absolute;top:50%;left:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:var(--plasma-divider-base-side-size);min-height:var(--plasma_private-divider-scale);}
503
+
504
+ .Toolbar_styles_iomsh3_bd5aerk__291bdbec{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;border-radius:var(--plasma-toolbar-border-radius);background:var(--plasma-toolbar-background);padding:var(--plasma-toolbar-padding);}.Toolbar_styles_iomsh3_bd5aerk__291bdbec.Toolbar_styles_iomsh3_toolbarShadow__291bdbec{box-shadow:var(--plasma-toolbar-box-shadow);}.Toolbar_styles_iomsh3_bd5aerk__291bdbec.Toolbar_styles_iomsh3_toolbarVertical__291bdbec{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:var(--plasma-toolbar-size);}.Toolbar_styles_iomsh3_bd5aerk__291bdbec.Toolbar_styles_iomsh3_toolbarHorizontal__291bdbec{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;height:var(--plasma-toolbar-size);}.Toolbar_styles_iomsh3_bd5aerk__291bdbec.Toolbar_styles_iomsh3_toolbarVertical__291bdbec .Toolbar_styles_iomsh3_plasmaDivider__291bdbec{width:var(--plasma-toolbar-divider-size);height:0.063rem;margin:var(--plasma-toolbar-divider-offset) 0;}.Toolbar_styles_iomsh3_bd5aerk__291bdbec.Toolbar_styles_iomsh3_toolbarHorizontal__291bdbec .Toolbar_styles_iomsh3_plasmaDivider__291bdbec{width:0.063rem;height:var(--plasma-toolbar-divider-size);margin:0 var(--plasma-toolbar-divider-offset);}
505
+
506
+ .ToolbarDivider_styles_1ypqhb1_mcdkovg__81732880{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;--plasma-divider-background:var(--plasma-toolbar-divider-color);--plasma-divider-border-radius:var(--plasma-toolbar-divider-border-radius);}
package/es/index.js CHANGED
@@ -19,12 +19,6 @@ export { buttonGroupConfig, buttonGroupRoot } from './components/ButtonGroup/But
19
19
  export { classes as buttonGroupClasses, tokens as buttonGroupTokens } from './components/ButtonGroup/ButtonGroup.tokens.js';
20
20
  export { chipConfig, chipRoot } from './components/Chip/Chip.js';
21
21
  export { tokens as chipTokens } from './components/Chip/Chip.tokens.js';
22
- export { TextLabel } from './components/Cell/Textbox/ui/TextLabel.js';
23
- export { TextTitle } from './components/Cell/Textbox/ui/TextTitle.js';
24
- export { TextSubtitle } from './components/Cell/Textbox/ui/TextSubtitle.js';
25
- export { cellConfig, cellRoot } from './components/Cell/Cell.js';
26
- export { classes as cellClasses, tokens as cellTokens } from './components/Cell/Cell.tokens.js';
27
- export { Textbox } from './components/Cell/Textbox/Textbox.js';
28
22
  export { linkConfig, linkRoot } from './components/Link/Link.js';
29
23
  export { spinnerConfig, spinnerRoot } from './components/Spinner/Spinner.js';
30
24
  export { tokens as spinnerTokens } from './components/Spinner/Spinner.tokens.js';
@@ -144,5 +138,8 @@ export { progressConfig, progressRoot } from './components/Progress/Progress.js'
144
138
  export { tokens as progressTokens } from './components/Progress/Progress.tokens.js';
145
139
  export { dividerConfig, dividerRoot } from './components/Divider/Divider.js';
146
140
  export { classes as dividerClasses, tokens as dividerTokens } from './components/Divider/Divider.tokens.js';
141
+ export { toolbarConfig, toolbarRoot } from './components/Toolbar/Toolbar.js';
142
+ export { tokens as toolbarTokens } from './components/Toolbar/Toolbar.tokens.js';
143
+ export { toolbarDividerConfig, toolbarDividerRoot } from './components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js';
147
144
  export { component, mergeConfig } from './engines/common.js';
148
145
  //# sourceMappingURL=index.js.map
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.67.0-canary.1148.8449780048.0",
3
+ "version": "0.67.0-dev.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -102,5 +102,5 @@
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "ed35aee23fd1ae8ea726b313ed4acb9b5aebc594"
105
+ "gitHead": "94c4a7b762bf90d57a87e11b91630ac730ce2d65"
106
106
  }
@@ -38,7 +38,7 @@ var dividerRoot = exports.dividerRoot = function dividerRoot(Root) {
38
38
  };
39
39
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
40
40
  ref: ref,
41
- className: (0, _utils.cx)(orientationClass, className),
41
+ className: (0, _utils.cx)(orientationClass, _Divider.classes.divider, className),
42
42
  orientation: orientation,
43
43
  view: view,
44
44
  style: _objectSpread(_objectSpread({}, style), scaleToken)
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
+ divider: 'plasma-divider',
8
9
  horizontal: 'plasma-divider-horizontal',
9
10
  vertical: 'plasma-divider-vertical'
10
11
  };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.toolbarRoot = exports.toolbarConfig = void 0;
8
+ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
+ var _utils = /*#__PURE__*/require("../../utils");
10
+ var _base = /*#__PURE__*/require("./variations/_view/base");
11
+ var _base2 = /*#__PURE__*/require("./variations/_size/base");
12
+ var _Toolbar = /*#__PURE__*/require("./Toolbar.tokens");
13
+ var _Toolbar2 = /*#__PURE__*/require("./Toolbar.styles");
14
+ var _excluded = ["children", "orientation", "hasShadow", "className"];
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
+ var toolbarRoot = exports.toolbarRoot = function toolbarRoot(Root) {
21
+ return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
22
+ var children = props.children,
23
+ _props$orientation = props.orientation,
24
+ orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
25
+ _props$hasShadow = props.hasShadow,
26
+ hasShadow = _props$hasShadow === void 0 ? true : _props$hasShadow,
27
+ className = props.className,
28
+ rest = _objectWithoutProperties(props, _excluded);
29
+ var orientationClassName = orientation === 'horizontal' ? _Toolbar.classes.horizontal : _Toolbar.classes.vertical;
30
+ var shadowClassName = hasShadow ? _Toolbar.classes.shadow : undefined;
31
+ return /*#__PURE__*/_react["default"].createElement(Root, _extends({
32
+ ref: ref,
33
+ orientation: orientation,
34
+ hasShadow: hasShadow,
35
+ className: (0, _utils.cx)(className, orientationClassName, shadowClassName)
36
+ }, rest), children);
37
+ });
38
+ };
39
+ var toolbarConfig = exports.toolbarConfig = {
40
+ name: 'Toolbar',
41
+ tag: 'div',
42
+ layout: toolbarRoot,
43
+ base: _Toolbar2.base,
44
+ variations: {
45
+ size: {
46
+ css: _base2.base
47
+ },
48
+ view: {
49
+ css: _base.base
50
+ }
51
+ },
52
+ defaults: {
53
+ view: 'default'
54
+ }
55
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Divider = /*#__PURE__*/require("../Divider");
9
+ var _Toolbar = /*#__PURE__*/require("./Toolbar.tokens");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:inline-flex;box-sizing:border-box;border-radius:var(", ");background:var(", ");padding:var(", ");&.", "{box-shadow:var(", ");}&.", "{flex-direction:column;width:var(", ");}&.", "{flex-direction:row;height:var(", ");}&.", " .", "{width:var(", ");height:0.063rem;margin:var(", ") 0;}&.", " .", "{width:0.063rem;height:var(", ");margin:0 var(", ");}"], _Toolbar.tokens.borderRadius, _Toolbar.tokens.background, _Toolbar.tokens.padding, _Toolbar.classes.shadow, _Toolbar.tokens.boxShadow, _Toolbar.classes.vertical, _Toolbar.tokens.size, _Toolbar.classes.horizontal, _Toolbar.tokens.size, _Toolbar.classes.vertical, _Divider.dividerClasses.divider, _Toolbar.tokens.dividerSize, _Toolbar.tokens.dividerOffset, _Toolbar.classes.horizontal, _Divider.dividerClasses.divider, _Toolbar.tokens.dividerSize, _Toolbar.tokens.dividerOffset);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tokens = exports.classes = void 0;
7
+ var classes = exports.classes = {
8
+ vertical: 'toolbar-vertical',
9
+ horizontal: 'toolbar-horizontal',
10
+ shadow: 'toolbar-shadow',
11
+ divider: 'toolbar-divider'
12
+ };
13
+ var tokens = exports.tokens = {
14
+ // Toolbar
15
+ size: '--plasma-toolbar-size',
16
+ padding: '--plasma-toolbar-padding',
17
+ background: '--plasma-toolbar-background',
18
+ boxShadow: '--plasma-toolbar-box-shadow',
19
+ borderRadius: '--plasma-toolbar-border-radius',
20
+ // ToolbarDivider
21
+ dividerColor: '--plasma-toolbar-divider-color',
22
+ dividerOffset: '--plasma-toolbar-divider-offset',
23
+ dividerSize: '--plasma-toolbar-divider-size',
24
+ dividerBorderRadius: '--plasma-toolbar-divider-border-radius'
25
+ };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ toolbarRoot: true,
8
+ toolbarConfig: true,
9
+ toolbarTokens: true
10
+ };
11
+ Object.defineProperty(exports, "toolbarConfig", {
12
+ enumerable: true,
13
+ get: function get() {
14
+ return _Toolbar.toolbarConfig;
15
+ }
16
+ });
17
+ Object.defineProperty(exports, "toolbarRoot", {
18
+ enumerable: true,
19
+ get: function get() {
20
+ return _Toolbar.toolbarRoot;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "toolbarTokens", {
24
+ enumerable: true,
25
+ get: function get() {
26
+ return _Toolbar2.tokens;
27
+ }
28
+ });
29
+ var _Toolbar = /*#__PURE__*/require("./Toolbar");
30
+ var _Toolbar2 = /*#__PURE__*/require("./Toolbar.tokens");
31
+ var _ui = /*#__PURE__*/require("./ui");
32
+ Object.keys(_ui).forEach(function (key) {
33
+ if (key === "default" || key === "__esModule") return;
34
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
35
+ if (key in exports && exports[key] === _ui[key]) return;
36
+ Object.defineProperty(exports, key, {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _ui[key];
40
+ }
41
+ });
42
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.toolbarDividerRoot = exports.toolbarDividerConfig = void 0;
7
+ var _Divider = /*#__PURE__*/require("../../../Divider");
8
+ var _ToolbarDivider = /*#__PURE__*/require("./ToolbarDivider.styles");
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
+ /**
16
+ * Разделитель тулбара
17
+ */
18
+ var toolbarDividerRoot = exports.toolbarDividerRoot = _Divider.dividerRoot;
19
+ var toolbarDividerConfig = exports.toolbarDividerConfig = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, _Divider.dividerConfig), {}, {
20
+ name: 'ToolbarDivider',
21
+ layout: toolbarDividerRoot,
22
+ base: _ToolbarDivider.base
23
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mappingOverride = exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Toolbar = /*#__PURE__*/require("../../Toolbar.tokens");
9
+ var _Divider = /*#__PURE__*/require("../../../Divider");
10
+ // NOTE: Необходимое переопределение токенов из компонента Divider
11
+ var mappingOverride = exports.mappingOverride = /*#__PURE__*/(0, _styledComponents.css)(["align-self:center;", ":var(", ");", ":var(", ");"], _Divider.dividerTokens.background, _Toolbar.tokens.dividerColor, _Divider.dividerTokens.borderRadius, _Toolbar.tokens.dividerBorderRadius);
12
+ var base = exports.base = mappingOverride;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "toolbarDividerConfig", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _ToolbarDivider.toolbarDividerConfig;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "toolbarDividerRoot", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _ToolbarDivider.toolbarDividerRoot;
16
+ }
17
+ });
18
+ var _ToolbarDivider = /*#__PURE__*/require("./ToolbarDivider/ToolbarDivider");
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Cell = /*#__PURE__*/require("../../Cell.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["color:var(", ");background-color:var(", ");"], _Cell.tokens.cellColor, _Cell.tokens.cellBackgroundColor);
8
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'default',
12
+ size: 'm'
13
+ },
14
+ variations: {
15
+ view: {
16
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--shadow-down-soft-s);", ":var(--surface-solid-card);", ":var(--surface-transparent-tertiary);"], _Toolbar.toolbarTokens.boxShadow, _Toolbar.toolbarTokens.background, _Toolbar.toolbarTokens.dividerColor)
17
+ },
18
+ size: {
19
+ xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.5rem;", ":0.25rem;", ":0.75rem;", ":1.25rem;", ":0.5rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
20
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":3rem;", ":0.25rem;", ":0.875rem;", ":1.5rem;", ":0.5rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
21
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.75rem;", ":0.375rem;", ":1rem;", ":1.75rem;", ":0.625rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
22
+ l: /*#__PURE__*/(0, _styledComponents.css)(["", ":4.5rem;", ":0.5rem;", ":1.25rem;", ":2rem;", ":0.75rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius)
23
+ }
24
+ }
25
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToolbarDivider = exports.Toolbar = void 0;
7
+ var _engines = /*#__PURE__*/require("../../../../engines");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var _Toolbar2 = /*#__PURE__*/require("./Toolbar.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarConfig, _Toolbar2.config);
11
+
12
+ /**
13
+ * Компонент Toolbar.
14
+ */
15
+ var Toolbar = exports.Toolbar = /*#__PURE__*/(0, _engines.component)(mergedConfig);
16
+ var mergedDividerConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarDividerConfig);
17
+ var ToolbarDivider = exports.ToolbarDivider = /*#__PURE__*/(0, _engines.component)(mergedDividerConfig);
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { StoryObj, Meta } from '@storybook/react';
4
+
5
+ import { IconDone } from '../../../../components/_Icon';
6
+ import { Button } from '../Button/Button';
7
+ import { WithTheme } from '../../../_helpers';
8
+
9
+ import { Toolbar, ToolbarDivider } from './Toolbar';
10
+
11
+ const orientations: Array<string> = ['vertical', 'horizontal'];
12
+ const size: Array<string> = ['xs', 's', 'm', 'l'];
13
+
14
+ const ToolbarWrapper = (props: ComponentProps<typeof Toolbar>) => {
15
+ return (
16
+ <Toolbar {...props}>
17
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
18
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
19
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
20
+ <ToolbarDivider />
21
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
22
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
23
+ </Toolbar>
24
+ );
25
+ };
26
+
27
+ const meta: Meta<typeof Toolbar> = {
28
+ title: 'plasma_b2c/Toolbar',
29
+ component: ToolbarWrapper,
30
+ decorators: [WithTheme],
31
+ argTypes: {
32
+ orientation: {
33
+ options: orientations,
34
+ control: {
35
+ type: 'select',
36
+ },
37
+ },
38
+ hasShadow: {
39
+ control: {
40
+ type: 'boolean',
41
+ },
42
+ },
43
+ size: {
44
+ options: size,
45
+ control: {
46
+ type: 'select',
47
+ },
48
+ },
49
+ },
50
+ args: {
51
+ orientation: 'vertical',
52
+ hasShadow: true,
53
+ size: 'm',
54
+ },
55
+ };
56
+
57
+ export default meta;
58
+
59
+ type Story = StoryObj<typeof Toolbar>;
60
+
61
+ export const Default: Story = {
62
+ args: {},
63
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'default',
12
+ size: 'm'
13
+ },
14
+ variations: {
15
+ view: {
16
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--shadow-down-soft-s);", ":var(--surface-solid-card);", ":var(--surface-transparent-tertiary);"], _Toolbar.toolbarTokens.boxShadow, _Toolbar.toolbarTokens.background, _Toolbar.toolbarTokens.dividerColor)
17
+ },
18
+ size: {
19
+ xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.5rem;", ":0.25rem;", ":0.75rem;", ":1.25rem;", ":0.5rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
20
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":3rem;", ":0.25rem;", ":0.875rem;", ":1.5rem;", ":0.5rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
21
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.75rem;", ":0.375rem;", ":1rem;", ":1.75rem;", ":0.625rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
22
+ l: /*#__PURE__*/(0, _styledComponents.css)(["", ":4.5rem;", ":0.5rem;", ":1.25rem;", ":2rem;", ":0.75rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius)
23
+ }
24
+ }
25
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToolbarDivider = exports.Toolbar = void 0;
7
+ var _engines = /*#__PURE__*/require("../../../../engines");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var _Toolbar2 = /*#__PURE__*/require("./Toolbar.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarConfig, _Toolbar2.config);
11
+
12
+ /**
13
+ * Компонент Toolbar.
14
+ */
15
+ var Toolbar = exports.Toolbar = /*#__PURE__*/(0, _engines.component)(mergedConfig);
16
+ var mergedDividerConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarDividerConfig);
17
+ var ToolbarDivider = exports.ToolbarDivider = /*#__PURE__*/(0, _engines.component)(mergedDividerConfig);
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { StoryObj, Meta } from '@storybook/react';
4
+
5
+ import { IconDone } from '../../../../components/_Icon';
6
+ import { Button } from '../Button/Button';
7
+ import { WithTheme } from '../../../_helpers';
8
+
9
+ import { Toolbar, ToolbarDivider } from './Toolbar';
10
+
11
+ const orientations: Array<string> = ['vertical', 'horizontal'];
12
+ const size: Array<string> = ['xs', 's', 'm', 'l'];
13
+
14
+ const ToolbarWrapper = (props: ComponentProps<typeof Toolbar>) => {
15
+ return (
16
+ <Toolbar {...props}>
17
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
18
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
19
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
20
+ <ToolbarDivider />
21
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
22
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
23
+ </Toolbar>
24
+ );
25
+ };
26
+
27
+ const meta: Meta<typeof Toolbar> = {
28
+ title: 'plasma_web/Toolbar',
29
+ component: ToolbarWrapper,
30
+ decorators: [WithTheme],
31
+ argTypes: {
32
+ orientation: {
33
+ options: orientations,
34
+ control: {
35
+ type: 'select',
36
+ },
37
+ },
38
+ hasShadow: {
39
+ control: {
40
+ type: 'boolean',
41
+ },
42
+ },
43
+ size: {
44
+ options: size,
45
+ control: {
46
+ type: 'select',
47
+ },
48
+ },
49
+ },
50
+ args: {
51
+ orientation: 'vertical',
52
+ hasShadow: true,
53
+ size: 'm',
54
+ },
55
+ };
56
+
57
+ export default meta;
58
+
59
+ type Story = StoryObj<typeof Toolbar>;
60
+
61
+ export const Default: Story = {
62
+ args: {},
63
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'default',
12
+ size: 'm'
13
+ },
14
+ variations: {
15
+ view: {
16
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--shadow-down-soft-s);", ":var(--surface-solid-card);", ":var(--surface-transparent-tertiary);"], _Toolbar.toolbarTokens.boxShadow, _Toolbar.toolbarTokens.background, _Toolbar.toolbarTokens.dividerColor)
17
+ },
18
+ size: {
19
+ xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.5rem;", ":0.25rem;", ":0.75rem;", ":1.25rem;", ":0.5rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
20
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":3rem;", ":0.25rem;", ":0.875rem;", ":1.5rem;", ":0.5rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
21
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.75rem;", ":0.375rem;", ":1rem;", ":1.75rem;", ":0.625rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius),
22
+ l: /*#__PURE__*/(0, _styledComponents.css)(["", ":4.5rem;", ":0.5rem;", ":1.25rem;", ":2rem;", ":0.75rem;", ":0.0625rem;"], _Toolbar.toolbarTokens.size, _Toolbar.toolbarTokens.padding, _Toolbar.toolbarTokens.borderRadius, _Toolbar.toolbarTokens.dividerSize, _Toolbar.toolbarTokens.dividerOffset, _Toolbar.toolbarTokens.dividerBorderRadius)
23
+ }
24
+ }
25
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToolbarDivider = exports.Toolbar = void 0;
7
+ var _engines = /*#__PURE__*/require("../../../../engines");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var _Toolbar2 = /*#__PURE__*/require("./Toolbar.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarConfig, _Toolbar2.config);
11
+
12
+ /**
13
+ * Компонент Toolbar.
14
+ */
15
+ var Toolbar = exports.Toolbar = /*#__PURE__*/(0, _engines.component)(mergedConfig);
16
+ var mergedDividerConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarDividerConfig);
17
+ var ToolbarDivider = exports.ToolbarDivider = /*#__PURE__*/(0, _engines.component)(mergedDividerConfig);
@@ -0,0 +1,64 @@
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { StoryObj, Meta } from '@storybook/react';
4
+
5
+ import { IconDone } from '../../../../components/_Icon';
6
+ import { Button } from '../Button/Button';
7
+ import { WithTheme } from '../../../_helpers';
8
+
9
+ import { Toolbar, ToolbarDivider } from './Toolbar';
10
+
11
+ const orientations: Array<string> = ['vertical', 'horizontal'];
12
+ const size: Array<string> = ['xs', 's', 'm', 'l'];
13
+
14
+ const ToolbarWrapper = (props: ComponentProps<typeof Toolbar>) => {
15
+ return (
16
+ <Toolbar {...props}>
17
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
18
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
19
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
20
+ <ToolbarDivider />
21
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
22
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
23
+ </Toolbar>
24
+ );
25
+ };
26
+
27
+ const meta: Meta<typeof Toolbar> = {
28
+ title: 'sds_engineer/Toolbar',
29
+ component: ToolbarWrapper,
30
+ decorators: [WithTheme],
31
+ argTypes: {
32
+ orientation: {
33
+ options: orientations,
34
+ control: {
35
+ type: 'select',
36
+ },
37
+ },
38
+ hasShadow: {
39
+ control: {
40
+ type: 'boolean',
41
+ },
42
+ },
43
+ size: {
44
+ options: size,
45
+ control: {
46
+ type: 'select',
47
+ },
48
+ },
49
+ },
50
+ args: {
51
+ orientation: 'vertical',
52
+ hasShadow: true,
53
+ size: 'm',
54
+ view: 'default',
55
+ },
56
+ };
57
+
58
+ export default meta;
59
+
60
+ type Story = StoryObj<typeof Toolbar>;
61
+
62
+ export const Default: Story = {
63
+ args: {},
64
+ };