@salutejs/plasma-new-hope 0.160.1-canary.1454.11177563590.0 → 0.161.0-canary.1392.11178979637.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (342) hide show
  1. package/cjs/components/Attach/Attach.js +9 -13
  2. package/cjs/components/Attach/Attach.js.map +1 -1
  3. package/cjs/components/Attach/utils/truncateFilename.js +24 -0
  4. package/cjs/components/Attach/utils/truncateFilename.js.map +1 -0
  5. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
  6. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  7. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  8. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  9. package/cjs/components/Segment/tokens.js +14 -1
  10. package/cjs/components/Segment/tokens.js.map +1 -1
  11. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.css +8 -9
  12. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +68 -112
  13. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  14. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +1 -7
  15. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js.map +1 -1
  16. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles_klze6h.css +3 -0
  17. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  18. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js.map +1 -1
  19. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_a7w5s0.css +1 -0
  20. package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +9 -0
  21. package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js.map +1 -0
  22. package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base_1ejecy9.css +1 -0
  23. package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
  24. package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js.map +1 -1
  25. package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base_pxl3nb.css +1 -0
  26. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  27. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js.map +1 -1
  28. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base_18cpjsq.css +1 -0
  29. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.css +6 -4
  30. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +17 -7
  31. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
  32. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +30 -1
  33. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js.map +1 -1
  34. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles_1ir79py.css +4 -0
  35. package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  36. package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js.map +1 -1
  37. package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/{base_15s0fel.css → base_omc5u1.css} +1 -1
  38. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
  39. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js.map +1 -1
  40. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base_dettiq.css +1 -0
  41. package/cjs/components/Tabs/ui/Tabs/Tabs.js +6 -6
  42. package/cjs/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
  43. package/cjs/components/_Icon/Icon.assets/{DisclosureLeft.js → DisclosureLeftCentered.js} +3 -3
  44. package/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js.map +1 -0
  45. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  46. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  47. package/cjs/components/_Icon/Icons/{IconDisclosureLeft.js → IconDisclosureLeftCentered.js} +5 -5
  48. package/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js.map +1 -0
  49. package/cjs/index.css +14 -11
  50. package/emotion/cjs/components/Attach/Attach.js +6 -9
  51. package/emotion/cjs/components/Attach/utils/index.js +7 -9
  52. package/emotion/cjs/components/Attach/utils/truncateFilename.js +23 -0
  53. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  54. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  55. package/emotion/cjs/components/Segment/README.md +61 -0
  56. package/emotion/cjs/components/Segment/tokens.js +14 -1
  57. package/emotion/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +66 -115
  58. package/emotion/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +15 -33
  59. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  60. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +10 -0
  61. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  62. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
  63. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  64. package/emotion/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +17 -7
  65. package/emotion/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +21 -7
  66. package/emotion/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  67. package/emotion/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  68. package/emotion/cjs/components/Tabs/ui/Tabs/Tabs.js +4 -4
  69. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureDown.js +21 -0
  70. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  71. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js +22 -0
  72. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  73. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureUp.js +21 -0
  74. package/emotion/cjs/components/_Icon/Icons/IconDisclosureDown.js +22 -0
  75. package/emotion/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js +22 -0
  76. package/emotion/cjs/components/_Icon/Icons/IconDisclosureUp.js +22 -0
  77. package/emotion/cjs/components/_Icon/index.js +21 -0
  78. package/emotion/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  79. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  80. package/emotion/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  81. package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +13 -10
  82. package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
  83. package/emotion/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  84. package/emotion/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  85. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  86. package/emotion/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  87. package/emotion/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +15 -9
  88. package/emotion/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
  89. package/emotion/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  90. package/emotion/es/components/Attach/Attach.js +7 -10
  91. package/emotion/es/components/Attach/utils/index.js +1 -2
  92. package/emotion/es/components/Attach/utils/truncateFilename.js +17 -0
  93. package/emotion/es/components/Breadcrumbs/Breadcrumbs.styles.js +5 -5
  94. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  95. package/emotion/es/components/Segment/README.md +61 -0
  96. package/emotion/es/components/Segment/tokens.js +14 -1
  97. package/emotion/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +69 -118
  98. package/emotion/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +14 -32
  99. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  100. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +4 -0
  101. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  102. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
  103. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  104. package/emotion/es/components/Segment/ui/SegmentItem/SegmentItem.js +18 -8
  105. package/emotion/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +21 -7
  106. package/emotion/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  107. package/emotion/es/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  108. package/emotion/es/components/Tabs/ui/Tabs/Tabs.js +5 -5
  109. package/emotion/es/components/_Icon/Icon.assets/DisclosureDown.js +14 -0
  110. package/emotion/es/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  111. package/emotion/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js +15 -0
  112. package/emotion/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  113. package/emotion/es/components/_Icon/Icon.assets/DisclosureUp.js +14 -0
  114. package/emotion/es/components/_Icon/Icons/IconDisclosureDown.js +15 -0
  115. package/emotion/es/components/_Icon/Icons/IconDisclosureLeftCentered.js +15 -0
  116. package/emotion/es/components/_Icon/Icons/IconDisclosureUp.js +15 -0
  117. package/emotion/es/components/_Icon/index.js +3 -0
  118. package/emotion/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  119. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  120. package/emotion/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  121. package/emotion/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +13 -10
  122. package/emotion/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
  123. package/emotion/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  124. package/emotion/es/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  125. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  126. package/emotion/es/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  127. package/emotion/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +15 -9
  128. package/emotion/es/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
  129. package/emotion/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  130. package/es/components/Attach/Attach.js +9 -13
  131. package/es/components/Attach/Attach.js.map +1 -1
  132. package/es/components/Attach/utils/truncateFilename.js +20 -0
  133. package/es/components/Attach/utils/truncateFilename.js.map +1 -0
  134. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
  135. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  136. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  137. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  138. package/es/components/Segment/tokens.js +14 -1
  139. package/es/components/Segment/tokens.js.map +1 -1
  140. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.css +8 -9
  141. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +73 -118
  142. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  143. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +2 -7
  144. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js.map +1 -1
  145. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles_klze6h.css +3 -0
  146. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  147. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js.map +1 -1
  148. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_a7w5s0.css +1 -0
  149. package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +5 -0
  150. package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js.map +1 -0
  151. package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base_1ejecy9.css +1 -0
  152. package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
  153. package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js.map +1 -1
  154. package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base_pxl3nb.css +1 -0
  155. package/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  156. package/es/components/Segment/ui/SegmentGroup/variations/_size/base.js.map +1 -1
  157. package/es/components/Segment/ui/SegmentGroup/variations/_size/base_18cpjsq.css +1 -0
  158. package/es/components/Segment/ui/SegmentItem/SegmentItem.css +6 -4
  159. package/es/components/Segment/ui/SegmentItem/SegmentItem.js +18 -8
  160. package/es/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
  161. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +29 -2
  162. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js.map +1 -1
  163. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles_1ir79py.css +4 -0
  164. package/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  165. package/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js.map +1 -1
  166. package/es/components/Segment/ui/SegmentItem/variations/_pilled/{base_15s0fel.css → base_omc5u1.css} +1 -1
  167. package/es/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
  168. package/es/components/Segment/ui/SegmentItem/variations/_view/base.js.map +1 -1
  169. package/es/components/Segment/ui/SegmentItem/variations/_view/base_dettiq.css +1 -0
  170. package/es/components/Tabs/ui/Tabs/Tabs.js +6 -6
  171. package/es/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
  172. package/es/components/_Icon/Icon.assets/{DisclosureLeft.js → DisclosureLeftCentered.js} +3 -3
  173. package/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js.map +1 -0
  174. package/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  175. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  176. package/es/components/_Icon/Icons/{IconDisclosureLeft.js → IconDisclosureLeftCentered.js} +5 -5
  177. package/es/components/_Icon/Icons/IconDisclosureLeftCentered.js.map +1 -0
  178. package/es/index.css +14 -11
  179. package/package.json +2 -2
  180. package/styled-components/cjs/components/Attach/Attach.js +6 -9
  181. package/styled-components/cjs/components/Attach/utils/index.js +7 -9
  182. package/styled-components/cjs/components/Attach/utils/truncateFilename.js +23 -0
  183. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +1 -1
  184. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  185. package/styled-components/cjs/components/Segment/README.md +61 -0
  186. package/styled-components/cjs/components/Segment/tokens.js +14 -1
  187. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +66 -115
  188. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +4 -13
  189. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  190. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +10 -0
  191. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  192. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
  193. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  194. package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +17 -7
  195. package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +17 -5
  196. package/styled-components/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  197. package/styled-components/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  198. package/styled-components/cjs/components/Tabs/ui/Tabs/Tabs.js +4 -4
  199. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDown.js +21 -0
  200. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  201. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js +22 -0
  202. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  203. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureUp.js +21 -0
  204. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDown.js +22 -0
  205. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js +22 -0
  206. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureUp.js +22 -0
  207. package/styled-components/cjs/components/_Icon/index.js +21 -0
  208. package/styled-components/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  209. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  210. package/styled-components/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  211. package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +10 -7
  212. package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +8 -8
  213. package/styled-components/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  214. package/styled-components/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  215. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  216. package/styled-components/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  217. package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +13 -7
  218. package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +8 -8
  219. package/styled-components/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  220. package/styled-components/es/components/Attach/Attach.js +7 -10
  221. package/styled-components/es/components/Attach/utils/index.js +1 -2
  222. package/styled-components/es/components/Attach/utils/truncateFilename.js +17 -0
  223. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
  224. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  225. package/styled-components/es/components/Segment/README.md +61 -0
  226. package/styled-components/es/components/Segment/tokens.js +14 -1
  227. package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +69 -118
  228. package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +3 -12
  229. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  230. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +4 -0
  231. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  232. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
  233. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  234. package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.js +18 -8
  235. package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +17 -5
  236. package/styled-components/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  237. package/styled-components/es/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  238. package/styled-components/es/components/Tabs/ui/Tabs/Tabs.js +5 -5
  239. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDown.js +14 -0
  240. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  241. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js +15 -0
  242. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  243. package/styled-components/es/components/_Icon/Icon.assets/DisclosureUp.js +14 -0
  244. package/styled-components/es/components/_Icon/Icons/IconDisclosureDown.js +15 -0
  245. package/styled-components/es/components/_Icon/Icons/IconDisclosureLeftCentered.js +15 -0
  246. package/styled-components/es/components/_Icon/Icons/IconDisclosureUp.js +15 -0
  247. package/styled-components/es/components/_Icon/index.js +3 -0
  248. package/styled-components/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  249. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  250. package/styled-components/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  251. package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +10 -7
  252. package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +8 -8
  253. package/styled-components/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  254. package/styled-components/es/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  255. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  256. package/styled-components/es/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  257. package/styled-components/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +13 -7
  258. package/styled-components/es/examples/plasma_web/components/Segment/SegmentItem.config.js +8 -8
  259. package/styled-components/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  260. package/types/components/Attach/Attach.d.ts.map +1 -1
  261. package/types/components/Attach/utils/index.d.ts +1 -2
  262. package/types/components/Attach/utils/index.d.ts.map +1 -1
  263. package/types/components/Attach/utils/truncateFilename.d.ts +7 -0
  264. package/types/components/Attach/utils/truncateFilename.d.ts.map +1 -0
  265. package/types/components/Segment/tokens.d.ts +13 -0
  266. package/types/components/Segment/tokens.d.ts.map +1 -1
  267. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts +10 -1
  268. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts.map +1 -1
  269. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts +0 -1
  270. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts.map +1 -1
  271. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts +19 -1
  272. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts.map +1 -1
  273. package/types/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.d.ts.map +1 -1
  274. package/types/components/Segment/ui/SegmentGroup/variations/_orientation/base.d.ts +2 -0
  275. package/types/components/Segment/ui/SegmentGroup/variations/_orientation/base.d.ts.map +1 -0
  276. package/types/components/Segment/ui/SegmentGroup/variations/_pilled/base.d.ts.map +1 -1
  277. package/types/components/Segment/ui/SegmentGroup/variations/_size/base.d.ts.map +1 -1
  278. package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts +8 -2
  279. package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts.map +1 -1
  280. package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts +7 -1
  281. package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts.map +1 -1
  282. package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts +14 -1
  283. package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts.map +1 -1
  284. package/types/components/Segment/ui/SegmentItem/variations/_pilled/base.d.ts.map +1 -1
  285. package/types/components/Segment/ui/SegmentItem/variations/_view/base.d.ts.map +1 -1
  286. package/types/components/Tabs/ui/Tabs/Tabs.d.ts.map +1 -1
  287. package/types/components/_Icon/Icon.assets/DisclosureDown.d.ts +4 -0
  288. package/types/components/_Icon/Icon.assets/DisclosureDown.d.ts.map +1 -0
  289. package/types/components/_Icon/Icon.assets/DisclosureLeft.d.ts.map +1 -1
  290. package/types/components/_Icon/Icon.assets/DisclosureLeftCentered.d.ts +4 -0
  291. package/types/components/_Icon/Icon.assets/DisclosureLeftCentered.d.ts.map +1 -0
  292. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  293. package/types/components/_Icon/Icon.assets/DisclosureUp.d.ts +4 -0
  294. package/types/components/_Icon/Icon.assets/DisclosureUp.d.ts.map +1 -0
  295. package/types/components/_Icon/Icons/IconDisclosureDown.d.ts +4 -0
  296. package/types/components/_Icon/Icons/IconDisclosureDown.d.ts.map +1 -0
  297. package/types/components/_Icon/Icons/IconDisclosureLeftCentered.d.ts +4 -0
  298. package/types/components/_Icon/Icons/IconDisclosureLeftCentered.d.ts.map +1 -0
  299. package/types/components/_Icon/Icons/IconDisclosureUp.d.ts +4 -0
  300. package/types/components/_Icon/Icons/IconDisclosureUp.d.ts.map +1 -0
  301. package/types/components/_Icon/index.d.ts +3 -0
  302. package/types/components/_Icon/index.d.ts.map +1 -1
  303. package/types/examples/plasma_b2c/components/Segment/Segment.d.ts +10 -1
  304. package/types/examples/plasma_b2c/components/Segment/Segment.d.ts.map +1 -1
  305. package/types/examples/plasma_b2c/components/Segment/SegmentGroup.config.d.ts +3 -0
  306. package/types/examples/plasma_b2c/components/Segment/SegmentGroup.config.d.ts.map +1 -1
  307. package/types/examples/plasma_b2c/components/Segment/SegmentItem.config.d.ts.map +1 -1
  308. package/types/examples/plasma_web/components/Segment/Segment.d.ts +13 -1
  309. package/types/examples/plasma_web/components/Segment/Segment.d.ts.map +1 -1
  310. package/types/examples/plasma_web/components/Segment/SegmentGroup.config.d.ts +6 -0
  311. package/types/examples/plasma_web/components/Segment/SegmentGroup.config.d.ts.map +1 -1
  312. package/types/examples/plasma_web/components/Segment/SegmentItem.config.d.ts.map +1 -1
  313. package/cjs/components/Attach/utils/addSeparator.js +0 -18
  314. package/cjs/components/Attach/utils/addSeparator.js.map +0 -1
  315. package/cjs/components/Attach/utils/index.js +0 -11
  316. package/cjs/components/Attach/utils/index.js.map +0 -1
  317. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles_m9i9p0.css +0 -4
  318. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_escgtx.css +0 -1
  319. package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base_fqbatz.css +0 -1
  320. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base_m358nl.css +0 -1
  321. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles_18h1p52.css +0 -2
  322. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base_1m1u2ys.css +0 -1
  323. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +0 -1
  324. package/cjs/components/_Icon/Icons/IconDisclosureLeft.js.map +0 -1
  325. package/emotion/cjs/components/Attach/utils/addSeparator.js +0 -16
  326. package/emotion/es/components/Attach/utils/addSeparator.js +0 -10
  327. package/es/components/Attach/utils/addSeparator.js +0 -14
  328. package/es/components/Attach/utils/addSeparator.js.map +0 -1
  329. package/es/components/Attach/utils/index.js +0 -7
  330. package/es/components/Attach/utils/index.js.map +0 -1
  331. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles_m9i9p0.css +0 -4
  332. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_escgtx.css +0 -1
  333. package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base_fqbatz.css +0 -1
  334. package/es/components/Segment/ui/SegmentGroup/variations/_size/base_m358nl.css +0 -1
  335. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles_18h1p52.css +0 -2
  336. package/es/components/Segment/ui/SegmentItem/variations/_view/base_1m1u2ys.css +0 -1
  337. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +0 -1
  338. package/es/components/_Icon/Icons/IconDisclosureLeft.js.map +0 -1
  339. package/styled-components/cjs/components/Attach/utils/addSeparator.js +0 -16
  340. package/styled-components/es/components/Attach/utils/addSeparator.js +0 -10
  341. package/types/components/Attach/utils/addSeparator.d.ts +0 -2
  342. package/types/components/Attach/utils/addSeparator.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- var _excluded = ["size", "view", "id", "label", "value", "pilled", "customHandleSelect", "aria-label"];
1
+ var _excluded = ["size", "view", "id", "label", "value", "pilled", "contentLeft", "contentRight", "customHandleSelect", "skipSelection", "aria-label"];
2
2
  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); }
3
3
  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; }
4
4
  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; }
@@ -11,16 +11,20 @@ import { base as sizeCSS } from './variations/_size/base';
11
11
  import { base as viewCSS } from './variations/_view/base';
12
12
  import { base as disabledCSS } from './variations/_disabled/base';
13
13
  import { base as pilledCSS } from './variations/_pilled/base';
14
- import { StyledContent, base } from './SegmentItem.styles';
14
+ import { StyledContent, base, LeftContent, RightContent } from './SegmentItem.styles';
15
15
  export var segmentItemRoot = function segmentItemRoot(Root) {
16
16
  return /*#__PURE__*/forwardRef(function (props, outerRef) {
17
17
  var size = props.size,
18
- view = props.view,
18
+ _props$view = props.view,
19
+ view = _props$view === void 0 ? 'default' : _props$view,
19
20
  id = props.id,
20
21
  label = props.label,
21
22
  value = props.value,
22
23
  pilled = props.pilled,
24
+ contentLeft = props.contentLeft,
25
+ contentRight = props.contentRight,
23
26
  customHandleSelect = props.customHandleSelect,
27
+ skipSelection = props.skipSelection,
24
28
  ariaLabelExternal = props['aria-label'],
25
29
  rest = _objectWithoutProperties(props, _excluded);
26
30
  var _useSegmentInner = useSegmentInner(),
@@ -33,17 +37,21 @@ export var segmentItemRoot = function segmentItemRoot(Root) {
33
37
  var ariaLabelDefault = useMemo(function () {
34
38
  return extractTextFrom(label);
35
39
  }, [label]);
36
- var pilledAttr = view !== 'clear' && pilled;
40
+ var pilledAttr = pilled;
37
41
  var pilledClass = pilledAttr ? classes.segmentPilled : undefined;
42
+ var xsSize = size === 'xs' ? classes.segmentXsSize : undefined;
38
43
  var isSelected = selectedSegmentItems === null || selectedSegmentItems === void 0 ? void 0 : selectedSegmentItems.includes(value || ariaLabelDefault);
39
44
  var selectedClass = isSelected ? classes.selectedSegmentItem : undefined;
40
45
  var handleSelectSegment = useCallback(function (event) {
41
46
  if (disabledGroup) {
42
47
  return;
43
48
  }
49
+ if (skipSelection) {
50
+ return;
51
+ }
44
52
  customHandleSelect === null || customHandleSelect === void 0 || customHandleSelect(event);
45
53
  handleSelect === null || handleSelect === void 0 || handleSelect(value || ariaLabelDefault);
46
- }, [selectionMode]);
54
+ }, [selectionMode, disabledGroup, skipSelection]);
47
55
  return /*#__PURE__*/React.createElement(Root, _extends({
48
56
  view: view,
49
57
  size: size,
@@ -52,11 +60,13 @@ export var segmentItemRoot = function segmentItemRoot(Root) {
52
60
  "aria-label": ariaLabelExternal || ariaLabelDefault,
53
61
  value: value,
54
62
  pilled: pilledAttr,
55
- className: cx(selectedClass, pilledClass),
63
+ className: cx(selectedClass, pilledClass, xsSize),
56
64
  onClick: handleSelectSegment,
57
65
  tabIndex: disabledGroup ? -1 : 0,
58
66
  disabled: disabledGroup
59
- }, rest), /*#__PURE__*/React.createElement(StyledContent, null, label || value));
67
+ }, rest), contentLeft && /*#__PURE__*/React.createElement(LeftContent, null, contentLeft), /*#__PURE__*/React.createElement(StyledContent, null, label || value), contentRight && /*#__PURE__*/React.createElement(RightContent, {
68
+ className: typeof contentRight === 'string' ? classes.segmentAdditionalText : ''
69
+ }, contentRight));
60
70
  });
61
71
  };
62
72
  export var segmentItemConfig = {
@@ -81,7 +91,7 @@ export var segmentItemConfig = {
81
91
  }
82
92
  },
83
93
  defaults: {
84
- view: 'clear',
94
+ view: 'default',
85
95
  size: 'xs'
86
96
  }
87
97
  };
@@ -1,15 +1,29 @@
1
1
  import _styled from "@emotion/styled/base";
2
2
  import { css } from '@emotion/react';
3
3
  import { addFocus, applyEllipsis } from '../../../../mixins';
4
- import { tokens } from '../../tokens';
5
- export var base = /*#__PURE__*/css("position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;appearance:none;border:none;outline:none;cursor:pointer;margin-left:var(", tokens.itemMarginLeft, ");-webkit-tap-highlight-color:rgba(0, 0, 0, 0);&:first-child{margin-left:0;}", /*#__PURE__*/addFocus({
4
+ import { classes, tokens } from '../../tokens';
5
+ export var base = /*#__PURE__*/css("position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;appearance:none;border:none;outline:none;cursor:pointer;margin-left:var(", tokens.itemMarginLeft, ");-webkit-tap-highlight-color:rgba(0, 0, 0, 0);&:first-child{margin-left:0;}", /*#__PURE__*/addFocus({
6
6
  outlineSize: '0.063rem',
7
- outlineOffset: '-0.125rem',
7
+ outlineOffset: '-0.063rem',
8
8
  outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
9
- outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
9
+ outlineRadius: 'calc(var(--plasma_private-outline-radius) - 0.063rem)',
10
10
  customFocusRules: /*#__PURE__*/"\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(".concat(tokens.outlineFocusColor, ");\n }\n }\n ")
11
- }), ";;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZ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mVTaXplOiAnMC4wNjNyZW0nLFxuICAgICAgICBvdXRsaW5lT2Zmc2V0OiAnLTAuMTI1cmVtJyxcbiAgICAgICAgb3V0bGluZUNvbG9yOiBgdmFyKCR7dG9rZW5zLm91dGxpbmVGb2N1c0NvbG9yfSlgLFxuICAgICAgICBvdXRsaW5lUmFkaXVzOiAnY2FsYyh2YXIoLS1wbGFzbWFfcHJpdmF0ZS1vdXRsaW5lLXJhZGl1cykgKyAwLjA2M3JlbSknLFxuICAgICAgICBjdXN0b21Gb2N1c1J1bGVzOiBgXG4gICAgICAgICAgICAmLmZvY3VzLXZpc2libGU6Zm9jdXMsXG4gICAgICAgICAgICAmW2RhdGEtZm9jdXMtdmlzaWJsZS1hZGRlZF0ge1xuICAgICAgICAgICAgICAgICY6OmJlZm9yZSB7XG4gICAgICAgICAgICAgICAgICAgIHotaW5kZXg6IDE7XG4gICAgICAgICAgICAgICAgICAgIG91dGxpbmU6IG5vbmU7XG4gICAgICAgICAgICAgICAgICAgIGJveC1zaGFkb3c6IDAgMCAwIDAuMDYzcmVtIHZhcigke3Rva2Vucy5vdXRsaW5lRm9jdXNDb2xvcn0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgYCxcbiAgICB9KX07XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkQ29udGVudCA9IHN0eWxlZC5kaXZgXG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHdpZHRoOiBmaXQtY29udGVudDtcbiAgICAke2FwcGx5RWxsaXBzaXMoKX07XG5gO1xuIl19 */"));
11
+ }), ";;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SX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KSA9PiAoaGFzUmlnaHRNYXJnaW4gPyBgdmFyKCR7dG9rZW5zLml0ZW1JY29uTWFyZ2lufSlgIDogJzAnKX07XG4gICAgbWFyZ2luLWxlZnQ6ICR7KHsgaGFzTGVmdE1hcmdpbiB9KSA9PiAoaGFzTGVmdE1hcmdpbiA/IGB2YXIoJHt0b2tlbnMuaXRlbUljb25NYXJnaW59KWAgOiAnMCcpfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBSaWdodENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgbWFyZ2luLWxlZnQ6IHZhcigke3Rva2Vucy5pdGVtSWNvbk1hcmdpbn0pO1xuICAgIG92ZXJmbG93OiBoaWRkZW47XG5cbiAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1Db2xvcn0pO1xuXG4gICAgJi4ke2NsYXNzZXMuc2VnbWVudEFkZGl0aW9uYWxUZXh0fSB7XG4gICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzO1xuICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1BZGRpdGlvbmFsQ29sb3J9KTtcbiAgICB9XG5gO1xuXG5leHBvcnQgY29uc3QgTGVmdENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgbWFyZ2luLXJpZ2h0OiB2YXIoJHt0b2tlbnMuaXRlbUljb25NYXJnaW59KTtcblxuICAgIGNvbG9yOiBpbmhlcml0O1xuYDtcbiJdfQ== */"));
12
12
  export var StyledContent = /*#__PURE__*/_styled("div", {
13
- target: "e1hjv4i50",
13
+ target: "e1hjv4i52",
14
14
  label: "plasma-new-hope__StyledContent"
15
- })("display:inline-block;width:fit-content;", /*#__PURE__*/applyEllipsis(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,ey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sIDAsIDAsIDApO1xuXG4gICAgJjpmaXJzdC1jaGlsZCB7XG4gICAgICAgIG1hcmdpbi1sZWZ0OiAwO1xuICAgIH1cblxuICAgICR7YWRkRm9jdXMoe1xuICAgICAgICBvdXRsaW5lU2l6ZTogJzAuMDYzcmVtJyxcbiAgICAgICAgb3V0bGluZU9mZnNldDogJy0wLjEyNXJlbScsXG4gICAgICAgIG91dGxpbmVDb2xvcjogYHZhcigke3Rva2Vucy5vdXRsaW5lRm9jdXNDb2xvcn0pYCxcbiAgICAgICAgb3V0bGluZVJhZGl1czogJ2NhbGModmFyKC0tcGxhc21hX3ByaXZhdGUtb3V0bGluZS1yYWRpdXMpICsgMC4wNjNyZW0pJyxcbiAgICAgICAgY3VzdG9tRm9jdXNSdWxlczogYFxuICAgICAgICAgICAgJi5mb2N1cy12aXNpYmxlOmZvY3VzLFxuICAgICAgICAgICAgJltkYXRhLWZvY3VzLXZpc2libGUtYWRkZWRdIHtcbiAgICAgICAgICAgICAgICAmOjpiZWZvcmUge1xuICAgICAgICAgICAgICAgICAgICB6LWluZGV4OiAxO1xuICAgICAgICAgICAgICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgICAgICAgICAgICAgICAgICBib3gtc2hhZG93OiAwIDAgMCAwLjA2M3JlbSB2YXIoJHt0b2tlbnMub3V0bGluZUZvY3VzQ29sb3J9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIGAsXG4gICAgfSl9O1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICB3aWR0aDogZml0LWNvbnRlbnQ7XG4gICAgJHthcHBseUVsbGlwc2lzKCl9O1xuYDtcbiJdfQ== */"));
15
+ })("display:inline-block;width:fit-content;padding:var(", tokens.itemContentPadding, ");", /*#__PURE__*/applyEllipsis(), ";margin-right:", function (_ref) {
16
+ var hasRightMargin = _ref.hasRightMargin;
17
+ return hasRightMargin ? "var(".concat(tokens.itemIconMargin, ")") : '0';
18
+ }, ";margin-left:", function (_ref2) {
19
+ var hasLeftMargin = _ref2.hasLeftMargin;
20
+ return hasLeftMargin ? "var(".concat(tokens.itemIconMargin, ")") : '0';
21
+ }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0NFIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGFkZEZvY3VzLCBhcHBseUVsbGlwc2lzIH0gZnJvbSAnLi4vLi4vLi4vLi4vbWl4aW5zJztcbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL3Rva2Vucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgbWluLXdpZHRoOiAwO1xuXG4gICAgYXBwZWFyY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SBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgbWFyZ2luLXJpZ2h0OiB2YXIoJHt0b2tlbnMuaXRlbUljb25NYXJnaW59KTtcblxuICAgIGNvbG9yOiBpbmhlcml0O1xuYDtcbiJdfQ== */"));
22
+ export var RightContent = /*#__PURE__*/_styled("div", {
23
+ target: "e1hjv4i51",
24
+ label: "plasma-new-hope__RightContent"
25
+ })("display:flex;margin-left:var(", tokens.itemIconMargin, ");overflow:hidden;color:var(", tokens.itemColor, ");&.", classes.segmentAdditionalText, "{text-overflow:ellipsis;overflow:hidden;color:var(", tokens.itemAdditionalColor, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeURzQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NlZ21lbnQvdWkvU2VnbWVudEl0ZW0vU2VnbWVudEl0ZW0uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhZGRGb2N1cywgYXBwbHlFbGxpcHNpcyB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBwb3NpdGlvbjogcmVsY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bmFsVGV4dH0ge1xuICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQWRkaXRpb25hbENvbG9yfSk7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IExlZnRDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIG1hcmdpbi1yaWdodDogdmFyKCR7dG9rZW5zLml0ZW1JY29uTWFyZ2lufSk7XG5cbiAgICBjb2xvcjogaW5oZXJpdDtcbmA7XG4iXX0= */"));
26
+ export var LeftContent = /*#__PURE__*/_styled("div", {
27
+ target: "e1hjv4i50",
28
+ label: "plasma-new-hope__LeftContent"
29
+ })("display:flex;margin-right:var(", tokens.itemIconMargin, ");color:inherit;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUVxQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NlZ21lbnQvdWkvU2VnbWVudEl0ZW0vU2VnbWVudEl0ZW0uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhZGRGb2N1cywgYXBwbHlFbGxpcHNpcyB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucy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W59KTtcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQ29sb3J9KTtcblxuICAgICYuJHtjbGFzc2VzLnNlZ21lbnRBZGRpdGlvbmFsVGV4dH0ge1xuICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQWRkaXRpb25hbENvbG9yfSk7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IExlZnRDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIG1hcmdpbi1yaWdodDogdmFyKCR7dG9rZW5zLml0ZW1JY29uTWFyZ2lufSk7XG5cbiAgICBjb2xvcjogaW5oZXJpdDtcbmA7XG4iXX0= */"));
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from '../../../../tokens';
3
- export var base = /*#__PURE__*/css("&.", /*#__PURE__*/String(classes.segmentPilled), "{--plasma_private-outline-radius:var(", tokens.itemPilledBorderRadius, ");border-radius:var(", tokens.itemPilledBorderRadius, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL19waWxsZWQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TZWdtZW50L3VpL1NlZ21lbnRJdGVtL3ZhcmlhdGlvbnMvX3BpbGxlZC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7U3RyaW5nKGNsYXNzZXMuc2VnbWVudFBpbGxlZCl9IHtcbiAgICAgICAgLS1wbGFzbWFfcHJpdmF0ZS1vdXRsaW5lLXJhZGl1czogdmFyKCR7dG9rZW5zLml0ZW1QaWxsZWRCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLml0ZW1QaWxsZWRCb3JkZXJSYWRpdXN9KTtcbiAgICB9XG5gO1xuIl19 */"));
3
+ export var base = /*#__PURE__*/css("&.", /*#__PURE__*/String(classes.segmentPilled), "{--plasma_private-outline-radius:var(", tokens.itemPilledBorderRadius, ");border-radius:var(", tokens.itemPilledBorderRadius, ");padding:var(", tokens.itemPilledPadding, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL19waWxsZWQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TZWdtZW50L3VpL1NlZ21lbnRJdGVtL3ZhcmlhdGlvbnMvX3BpbGxlZC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7U3RyaW5nKGNsYXNzZXMuc2VnbWVudFBpbGxlZCl9IHtcbiAgICAgICAgLS1wbGFzbWFfcHJpdmF0ZS1vdXRsaW5lLXJhZGl1czogdmFyKCR7dG9rZW5zLml0ZW1QaWxsZWRCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLml0ZW1QaWxsZWRCb3JkZXJSYWRpdXN9KTtcblxuICAgICAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMuaXRlbVBpbGxlZFBhZGRpbmd9KTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -1,3 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from '../../../../tokens';
3
- export var base = /*#__PURE__*/css("color:var(", tokens.itemColor, ");background-color:var(", tokens.itemBackgroundColor, ");&:hover{color:var(", tokens.itemColorHover, ");background-color:var(", tokens.itemBackgroundColorHover, ");}&.", /*#__PURE__*/String(classes.selectedSegmentItem), "{color:var(", tokens.itemSelectedColor, ");background-color:var(", tokens.itemSelectedBackgroundColor, ");&:hover{color:var(", tokens.itemSelectedColorHover, ");background-color:var(", tokens.itemSelectedBackgroundColorHover, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXB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Q29sb3JIb3Zlcn0pO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
3
+ import { RightContent } from '../../SegmentItem.styles';
4
+ export var base = /*#__PURE__*/css("color:var(", tokens.itemColor, ");background-color:var(", tokens.itemBackgroundColor, ");&:hover{color:var(", tokens.itemColorHover, ");background-color:var(", tokens.itemBackgroundColorHover, ");", RightContent, "{color:var(", tokens.itemColorHover, ");}", RightContent, ".", classes.segmentAdditionalText, "{color:var(", tokens.itemAdditionalColorHover, ");}}&.", /*#__PURE__*/String(classes.selectedSegmentItem), "{color:var(", tokens.itemSelectedColor, ");background-color:var(", tokens.itemSelectedBackgroundColor, ");", RightContent, "{color:var(", tokens.itemSelectedColor, ");}", RightContent, ".", classes.segmentAdditionalText, "{color:var(", tokens.itemSelectedAdditionalColor, ");}&:hover{color:var(", tokens.itemSelectedColorHover, ");background-color:var(", tokens.itemSelectedBackgroundColorHover, ");", RightContent, "{color:var(", tokens.itemSelectedAdditionalColorHover, ");}}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4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XG4gICAgICAgIH1cblxuICAgICAgICAke1JpZ2h0Q29udGVudH0uJHtjbGFzc2VzLnNlZ21lbnRBZGRpdGlvbmFsVGV4dH0ge1xuICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtU2VsZWN0ZWRBZGRpdGlvbmFsQ29sb3J9KTtcbiAgICAgICAgfVxuXG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtU2VsZWN0ZWRDb2xvckhvdmVyfSk7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMuaXRlbVNlbGVjdGVkQmFja2dyb3VuZENvbG9ySG92ZXJ9KTtcblxuICAgICAgICAgICAgJHtSaWdodENvbnRlbnR9IHtcbiAgICAgICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1TZWxlY3RlZEFkZGl0aW9uYWxDb2xvckhvdmVyfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -10,7 +10,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
  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; }
11
11
  import React, { forwardRef, useCallback, useMemo, useState, useEffect, useRef } from 'react';
12
12
  import { safeUseId } from '@salutejs/plasma-core';
13
- import { IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';
13
+ import { IconDisclosureLeftCentered, IconDisclosureRightCentered } from '../../../_Icon';
14
14
  import { classes, tokens } from '../../tokens';
15
15
  import { cx } from '../../../../utils';
16
16
  import { TabItemRefs, TabsContext } from '../../TabsContext';
@@ -114,7 +114,7 @@ export var tabsRoot = function tabsRoot(Root) {
114
114
  isFilled: isFilled,
115
115
  ref: leftArrowRef,
116
116
  isLeftArrow: true
117
- }, /*#__PURE__*/React.createElement(IconDisclosureLeft, {
117
+ }, /*#__PURE__*/React.createElement(IconDisclosureLeftCentered, {
118
118
  color: "var(".concat(tokens.arrowColor, ")")
119
119
  }));
120
120
  }, [onPrev, disabled, isFilled]);
@@ -126,7 +126,7 @@ export var tabsRoot = function tabsRoot(Root) {
126
126
  tabIndex: disabled ? -1 : 0,
127
127
  disabled: disabled,
128
128
  isFilled: isFilled
129
- }, /*#__PURE__*/React.createElement(IconDisclosureRight, {
129
+ }, /*#__PURE__*/React.createElement(IconDisclosureRightCentered, {
130
130
  color: "var(".concat(tokens.arrowColor, ")")
131
131
  }));
132
132
  }, [onNext, disabled, isFilled]);
@@ -136,7 +136,7 @@ export var tabsRoot = function tabsRoot(Root) {
136
136
  var scrollLeft = Math.round(event.currentTarget.scrollLeft);
137
137
  setFirstItemVisible(scrollLeft <= 0);
138
138
  setLastItemVisible(scrollLeft >= maxScrollLeft);
139
- }, [setFirstItemVisible, setLastItemVisible]);
139
+ }, []);
140
140
  var onKeyDown = useCallback(function (event) {
141
141
  if (index === undefined) {
142
142
  return;
@@ -184,7 +184,7 @@ export var tabsRoot = function tabsRoot(Root) {
184
184
  scrollRef.current.scrollTo({
185
185
  left: Math.round(scrollRef.current.scrollLeft + leftArrowRef.current.clientWidth)
186
186
  });
187
- }, [firstItemVisible, scrollRef, leftArrowRef]);
187
+ }, [firstItemVisible]);
188
188
  return /*#__PURE__*/React.createElement(TabsContext.Provider, {
189
189
  value: refs
190
190
  }, /*#__PURE__*/React.createElement(Root, _extends({
@@ -0,0 +1,14 @@
1
+ var _path;
2
+ 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); }
3
+ import React from 'react';
4
+ export var DisclosureDown = function DisclosureDown(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ width: "100%",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none"
9
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
+ d: "M17.78 18.21C17.48 17.92 17.01 17.92 16.71 18.21L12.75 22.18L8.78 18.21C8.48 17.92 8.01 17.92 7.71 18.21C7.42 18.51 7.42 18.98 7.71 19.28L12.75 24.31L17.78 19.28C18.07 18.98 18.07 18.51 17.78 18.21Z",
11
+ fillRule: "evenodd",
12
+ fill: "currentColor"
13
+ })));
14
+ };
@@ -7,9 +7,8 @@ export var DisclosureLeft = function DisclosureLeft(props) {
7
7
  viewBox: "0 0 24 24",
8
8
  fill: "none"
9
9
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
- fillRule: "evenodd",
11
- clipRule: "evenodd",
12
- d: "M14.5309 6.96967C14.8238 7.26256 14.8238 7.73744 14.5309 8.03033L10.5613 12L14.5309 15.9697C14.8238 16.2626 14.8238 16.7374 14.5309 17.0303C14.238 17.3232 13.7632 17.3232 13.4703 17.0303L8.43994 12L13.4703 6.96967C13.7632 6.67678 14.238 6.67678 14.5309 6.96967Z",
13
- fill: "currentColor"
10
+ d: "M6.09 6.96c.29.3.29.77 0 1.07L2.12 12l3.97 3.96c.29.3.29.77 0 1.07-.3.29-.77.29-1.06 0L0 12l5.03-5.04c.29-.29.76-.29 1.06 0Z",
11
+ fill: "currentColor",
12
+ fillRule: "evenodd"
14
13
  })));
15
14
  };
@@ -0,0 +1,15 @@
1
+ var _path;
2
+ 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); }
3
+ import React from 'react';
4
+ export var DisclosureLeftCentered = function DisclosureLeftCentered(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ width: "100%",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none"
9
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
+ fillRule: "evenodd",
11
+ clipRule: "evenodd",
12
+ d: "M14.5309 6.96967C14.8238 7.26256 14.8238 7.73744 14.5309 8.03033L10.5613 12L14.5309 15.9697C14.8238 16.2626 14.8238 16.7374 14.5309 17.0303C14.238 17.3232 13.7632 17.3232 13.4703 17.0303L8.43994 12L13.4703 6.96967C13.7632 6.67678 14.238 6.67678 14.5309 6.96967Z",
13
+ fill: "currentColor"
14
+ })));
15
+ };
@@ -7,9 +7,8 @@ export var DisclosureRight = function DisclosureRight(props) {
7
7
  viewBox: "0 0 24 24",
8
8
  fill: "none"
9
9
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
- fillRule: "evenodd",
11
- clipRule: "evenodd",
12
- d: "M9.46967 6.96967C9.17678 7.26256 9.17678 7.73744 9.46967 8.03033L13.4393 12L9.46967 15.9697C9.17678 16.2626 9.17678 16.7374 9.46967 17.0303C9.76256 17.3232 10.2374 17.3232 10.5303 17.0303L15.5607 12L10.5303 6.96967C10.2374 6.67678 9.76256 6.67678 9.46967 6.96967Z",
13
- fill: "currentColor"
10
+ d: "M18.21 6.96c-.29.3-.29.77 0 1.07L22.18 12l-3.97 3.96c-.29.3-.29.77 0 1.07.3.29.77.29 1.07 0L24.31 12l-5.03-5.04a.767.767 0 0 0-1.07 0Z",
11
+ fill: "currentColor",
12
+ fillRule: "evenodd"
14
13
  })));
15
14
  };
@@ -0,0 +1,14 @@
1
+ var _path;
2
+ 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); }
3
+ import React from 'react';
4
+ export var DisclosureUp = function DisclosureUp(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ width: "100%",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none"
9
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
+ d: "M17.18 8.18C16.89 8.47 16.41 8.47 16.12 8.18L12.15 4.21L8.18 8.18C7.89 8.47 7.41 8.47 7.12 8.18C6.83 7.89 6.83 7.41 7.12 7.12L12.15 2.09L17.18 7.12C17.47 7.41 17.47 7.89 17.18 8.18Z",
11
+ fillRule: "evenodd",
12
+ fill: "currentColor"
13
+ })));
14
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { DisclosureDown } from '../Icon.assets/DisclosureDown';
3
+ import { IconRoot } from '../IconRoot';
4
+ export var IconDisclosureDown = function IconDisclosureDown(_ref) {
5
+ var _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 's' : _ref$size,
7
+ color = _ref.color,
8
+ className = _ref.className;
9
+ return /*#__PURE__*/React.createElement(IconRoot, {
10
+ className: className,
11
+ size: size,
12
+ color: color,
13
+ icon: DisclosureDown
14
+ });
15
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { IconRoot } from '../IconRoot';
3
+ import { DisclosureLeftCentered } from '../Icon.assets/DisclosureLeftCentered';
4
+ export var IconDisclosureLeftCentered = function IconDisclosureLeftCentered(_ref) {
5
+ var _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 's' : _ref$size,
7
+ color = _ref.color,
8
+ className = _ref.className;
9
+ return /*#__PURE__*/React.createElement(IconRoot, {
10
+ className: className,
11
+ size: size,
12
+ color: color,
13
+ icon: DisclosureLeftCentered
14
+ });
15
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { DisclosureUp } from '../Icon.assets/DisclosureUp';
3
+ import { IconRoot } from '../IconRoot';
4
+ export var IconDisclosureUp = function IconDisclosureUp(_ref) {
5
+ var _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 's' : _ref$size,
7
+ color = _ref.color,
8
+ className = _ref.className;
9
+ return /*#__PURE__*/React.createElement(IconRoot, {
10
+ className: className,
11
+ size: size,
12
+ color: color,
13
+ icon: DisclosureUp
14
+ });
15
+ };
@@ -1,6 +1,8 @@
1
1
  export { IconDisclosureLeft } from './Icons/IconDisclosureLeft';
2
2
  export { IconDisclosureRight } from './Icons/IconDisclosureRight';
3
3
  export { IconDisclosureDownFill } from './Icons/IconDisclosureDownFill';
4
+ export { IconDisclosureDown } from './Icons/IconDisclosureDown';
5
+ export { IconDisclosureUp } from './Icons/IconDisclosureUp';
4
6
  export { IconMic } from './Icons/IconMic';
5
7
  export { IconChevronLeft } from './Icons/IconChevronLeft';
6
8
  export { IconChevronDoubleLeft } from './Icons/IconChevronDoubleLeft';
@@ -9,6 +11,7 @@ export { IconChevronDownFill } from './Icons/IconChevronDownFill';
9
11
  export { IconClose } from './Icons/IconClose';
10
12
  export { IconCross } from './Icons/IconCross';
11
13
  export { IconDone } from './Icons/IconDone';
14
+ export { IconDisclosureLeftCentered } from './Icons/IconDisclosureLeftCentered';
12
15
  export { IconDisclosureRightCentered } from './Icons/IconDisclosureRightCentered';
13
16
  export { IconDisclosureDownCentered } from './Icons/IconDisclosureDownCentered';
14
17
  export { IconMinus } from './Icons/IconMinus';
@@ -3,7 +3,7 @@ import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { disableProps } from '@salutejs/plasma-sb-utils';
5
5
 
6
- import { IconDisclosureLeft } from '../../../../components/_Icon';
6
+ import { IconDisclosureLeftCentered } from '../../../../components/_Icon';
7
7
  import { WithTheme } from '../../../_helpers';
8
8
 
9
9
  import { Editable, typographyVariants } from './Editable';
@@ -50,7 +50,7 @@ const StoryDefault = ({ defaultValue, componentName, iconSize, ...rest }: StoryP
50
50
  return (
51
51
  <Editable
52
52
  {...rest}
53
- icon={<IconDisclosureLeft size={iconSize} color="inherit" />}
53
+ icon={<IconDisclosureLeftCentered size={iconSize} color="inherit" />}
54
54
  textComponent={typographyVariants[componentName]}
55
55
  value={defaultValue}
56
56
  onChange={handleChange}
@@ -12,7 +12,7 @@ import {
12
12
  import { WithTheme } from '../../../_helpers';
13
13
  import { PopupProvider } from '../Popup/Popup';
14
14
  import { NotificationProps } from '../../../../components/Notification';
15
- import { IconDisclosureRight } from '../../../../components/_Icon';
15
+ import { IconDisclosureRightCentered } from '../../../../components/_Icon';
16
16
 
17
17
  import { Notification, NotificationsProvider } from './Notification';
18
18
 
@@ -55,7 +55,7 @@ const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIc
55
55
  return (
56
56
  <Notification
57
57
  title={title}
58
- icon={showLeftIcon ? <IconDisclosureRight /> : ''}
58
+ icon={showLeftIcon ? <IconDisclosureRightCentered /> : ''}
59
59
  iconPlacement={iconPlacement}
60
60
  actions={
61
61
  <Button
@@ -116,7 +116,10 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
116
116
  const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
117
117
  const count = useRef(0);
118
118
  const handleClick = useCallback(() => {
119
- addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
119
+ addNotification(
120
+ { icon: <IconDisclosureRightCentered />, ...rest, ...getNotificationProps(count.current) },
121
+ timeout,
122
+ );
120
123
  count.current++;
121
124
  }, [count, rest]);
122
125
 
@@ -1,23 +1,55 @@
1
1
  import React from 'react';
2
2
  import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
+ import { disableProps } from '@salutejs/plasma-sb-utils';
4
5
 
5
6
  import { segmentGroupConfig } from '../../../../components/Segment';
6
7
  import { mergeConfig } from '../../../../engines';
7
8
  import { WithTheme, argTypesFromConfig } from '../../../_helpers';
8
9
  import { SegmentProvider } from '../../../../components/Segment/SegmentProvider';
10
+ import { Counter } from '../Counter/Counter';
11
+ import { IconMic } from '../../../../components/_Icon';
9
12
 
10
13
  import { config } from './SegmentGroup.config';
11
14
  import { SegmentItem, SegmentGroup } from './Segment';
12
15
 
13
- const segmentItemViews = ['clear', 'default', 'secondary'];
16
+ const contentLeftOptions = ['none', 'icon'];
17
+ const contentRightOptions = ['none', 'text', 'counter', 'icon'];
14
18
 
15
- type CustomStorySegmentProps = {
16
- segmentItemView?: string;
17
- contentItemsNumber?: number;
19
+ const segmentItemViews = ['default', 'secondary'];
20
+ type Size = typeof sizes[number];
21
+
22
+ type CustomStoryProps = {
23
+ itemQuantity: number;
24
+ contentLeft: string;
25
+ contentRight: string;
26
+ segmentItemView?: 'default' | 'secondary';
27
+ };
28
+
29
+ type StorySegmentProps = ComponentProps<typeof SegmentGroup> & CustomStoryProps;
30
+
31
+ const sizes = ['xs', 's', 'm', 'l'] as const;
32
+
33
+ const getContentLeft = (contentLeftOption: string, size: Size) => {
34
+ const iconSize = size === 'xs' ? 'xs' : 's';
35
+ return contentLeftOption === 'icon' ? <IconMic size={iconSize} color="inherit" /> : undefined;
18
36
  };
19
37
 
20
- type StorySegmentProps = ComponentProps<typeof SegmentGroup> & CustomStorySegmentProps;
38
+ const getContentRight = (contentRightOption: string, size: Size) => {
39
+ const iconSize = size === 'xs' ? 'xs' : 's';
40
+ const counterSize = size === 'xs' ? 'xxs' : 'xs';
41
+
42
+ switch (contentRightOption) {
43
+ case 'icon':
44
+ return <IconMic size={iconSize} color="inherit" />;
45
+ case 'counter':
46
+ return <Counter size={counterSize} count={1} view="positive" />;
47
+ case 'text':
48
+ return 'Text';
49
+ default:
50
+ return undefined;
51
+ }
52
+ };
21
53
 
22
54
  const meta: Meta<StorySegmentProps> = {
23
55
  title: 'plasma_b2c/Segment',
@@ -25,6 +57,19 @@ const meta: Meta<StorySegmentProps> = {
25
57
  component: SegmentGroup,
26
58
  argTypes: {
27
59
  ...argTypesFromConfig(mergeConfig(segmentGroupConfig, config)),
60
+ ...disableProps(['filledBackground', 'view', 'selectionMode']),
61
+ stretch: {
62
+ control: {
63
+ type: 'boolean',
64
+ },
65
+ if: { arg: 'orientation', eq: 'horizontal' },
66
+ },
67
+ orientation: {
68
+ options: ['horizontal', 'vertical'],
69
+ control: {
70
+ type: 'select',
71
+ },
72
+ },
28
73
  selectionMode: {
29
74
  options: ['single', 'multiple'],
30
75
  control: {
@@ -37,60 +82,91 @@ const meta: Meta<StorySegmentProps> = {
37
82
  type: 'select',
38
83
  },
39
84
  },
85
+ contentLeft: {
86
+ options: contentLeftOptions,
87
+ control: {
88
+ type: 'select',
89
+ },
90
+ },
91
+ contentRight: {
92
+ options: contentRightOptions,
93
+ control: {
94
+ type: 'select',
95
+ },
96
+ },
40
97
  },
41
98
  };
42
99
 
43
100
  export default meta;
44
101
 
45
- const StoryDefault = ({ contentItemsNumber, selectionMode, segmentItemView, view, ...args }: StorySegmentProps) => {
46
- const contentItems = Array(contentItemsNumber).fill(0);
102
+ const StoryDefault = (props: StorySegmentProps) => {
103
+ const {
104
+ disabled,
105
+ itemQuantity,
106
+ size,
107
+ stretch,
108
+ orientation,
109
+
110
+ segmentItemView,
111
+ contentLeft: contentLeftOption,
112
+ contentRight: contentRightOption,
113
+ ...args
114
+ } = props;
115
+ const items = Array(itemQuantity).fill(0);
47
116
 
48
117
  return (
49
- <>
50
- <h3>Segment with auto width</h3>
51
- <SegmentProvider>
52
- <SegmentGroup view={view} selectionMode={selectionMode} {...args}>
53
- {contentItems.map((_, i) => (
54
- <SegmentItem
55
- view={segmentItemView}
56
- label={`Label ${i}`}
57
- value={`label_${i}`}
58
- key={`label_${i}`}
59
- {...args}
60
- />
61
- ))}
62
- </SegmentGroup>
63
- </SegmentProvider>
64
-
65
- <h3>Segment with fixed width</h3>
66
- <SegmentProvider>
67
- <SegmentGroup view={view} style={{ width: '28.5rem' }} selectionMode={selectionMode} {...args}>
68
- {contentItems.map((_, i) => (
69
- <SegmentItem
70
- view={segmentItemView}
71
- label={`Label ${i}`}
72
- value={`label_${i}`}
73
- key={`label_${i}`}
74
- {...args}
75
- />
76
- ))}
77
- </SegmentGroup>
78
- </SegmentProvider>
79
- </>
118
+ <SegmentProvider>
119
+ <SegmentGroup stretch={stretch} disabled={disabled} size={size} orientation={orientation} {...args}>
120
+ {items.map((_, i) => (
121
+ <SegmentItem
122
+ view={segmentItemView}
123
+ label={`Label ${i}`}
124
+ value={`label_${i}`}
125
+ size={size}
126
+ key={`label_${i}`}
127
+ contentLeft={getContentLeft(contentLeftOption, size)}
128
+ contentRight={getContentRight(contentRightOption, size)}
129
+ {...args}
130
+ >
131
+ {`Label${i + 1}`}
132
+ </SegmentItem>
133
+ ))}
134
+ </SegmentGroup>
135
+ </SegmentProvider>
80
136
  );
81
137
  };
82
138
 
83
139
  export const Default: StoryObj<StorySegmentProps> = {
84
140
  args: {
85
- view: 'clear',
141
+ itemQuantity: 8,
86
142
  size: 'xs',
87
- segmentItemView: 'clear',
143
+ segmentItemView: 'default',
88
144
  selectionMode: 'single',
89
- contentItemsNumber: 11,
90
145
  pilled: false,
91
146
  filledBackground: false,
147
+ hasBackground: false,
92
148
  disabled: false,
93
149
  stretch: false,
150
+ orientation: 'horizontal',
151
+ contentRight: 'none',
152
+ contentLeft: 'none',
153
+ },
154
+ argTypes: {
155
+ stretch: {
156
+ control: {
157
+ type: 'boolean',
158
+ },
159
+ if: { arg: 'orientation', eq: 'horizontal' },
160
+ },
161
+ size: {
162
+ options: sizes,
163
+ control: {
164
+ type: 'select',
165
+ },
166
+ },
167
+ ...disableProps(['filledBackground', 'view', 'selectionMode', 'vertical']),
168
+ },
169
+ render: (args: StorySegmentProps) => {
170
+ return <StoryDefault {...args} />;
94
171
  },
95
- render: (args) => <StoryDefault {...args} />,
96
172
  };