@salutejs/plasma-new-hope 0.153.0-dev.0 → 0.154.0-canary.1392.11041436795.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
  2. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  3. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  4. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  5. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  6. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  7. package/cjs/components/Segment/tokens.js +15 -1
  8. package/cjs/components/Segment/tokens.js.map +1 -1
  9. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.css +7 -8
  10. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +68 -112
  11. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  12. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +1 -7
  13. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js.map +1 -1
  14. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles_6y4o38.css +3 -0
  15. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  16. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js.map +1 -1
  17. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_a7w5s0.css +1 -0
  18. package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +9 -0
  19. package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js.map +1 -0
  20. package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base_1ejecy9.css +1 -0
  21. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  22. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js.map +1 -1
  23. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base_1dfesjp.css +1 -0
  24. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.css +6 -4
  25. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +15 -7
  26. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
  27. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +30 -1
  28. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js.map +1 -1
  29. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles_1s77lh9.css +4 -0
  30. package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  31. package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js.map +1 -1
  32. package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/{base_15s0fel.css → base_omc5u1.css} +1 -1
  33. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
  34. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js.map +1 -1
  35. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base_jww0qh.css +1 -0
  36. package/cjs/components/Tabs/ui/Tabs/Tabs.js +6 -6
  37. package/cjs/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
  38. package/cjs/components/_Icon/Icon.assets/{DisclosureLeft.js → DisclosureLeftCentered.js} +3 -3
  39. package/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js.map +1 -0
  40. package/cjs/components/_Icon/Icons/{IconDisclosureLeft.js → IconDisclosureLeftCentered.js} +5 -5
  41. package/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js.map +1 -0
  42. package/cjs/index.css +13 -10
  43. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  44. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  45. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  46. package/emotion/cjs/components/Segment/README.md +61 -0
  47. package/emotion/cjs/components/Segment/tokens.js +15 -1
  48. package/emotion/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +66 -115
  49. package/emotion/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +15 -33
  50. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  51. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +10 -0
  52. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  53. package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  54. package/emotion/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +15 -7
  55. package/emotion/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +20 -6
  56. package/emotion/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  57. package/emotion/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  58. package/emotion/cjs/components/Tabs/ui/Tabs/Tabs.js +4 -4
  59. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureDown.js +21 -0
  60. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  61. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js +22 -0
  62. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  63. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureUp.js +21 -0
  64. package/emotion/cjs/components/_Icon/Icons/IconDisclosureDown.js +22 -0
  65. package/emotion/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js +22 -0
  66. package/emotion/cjs/components/_Icon/Icons/IconDisclosureUp.js +22 -0
  67. package/emotion/cjs/components/_Icon/index.js +21 -0
  68. package/emotion/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  69. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  70. package/emotion/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  71. package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +13 -10
  72. package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
  73. package/emotion/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  74. package/emotion/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  75. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  76. package/emotion/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  77. package/emotion/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +15 -9
  78. package/emotion/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
  79. package/emotion/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  80. package/emotion/es/components/Breadcrumbs/Breadcrumbs.styles.js +5 -5
  81. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  82. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  83. package/emotion/es/components/Segment/README.md +61 -0
  84. package/emotion/es/components/Segment/tokens.js +15 -1
  85. package/emotion/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +69 -118
  86. package/emotion/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +14 -32
  87. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  88. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +4 -0
  89. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  90. package/emotion/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  91. package/emotion/es/components/Segment/ui/SegmentItem/SegmentItem.js +16 -8
  92. package/emotion/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +19 -5
  93. package/emotion/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  94. package/emotion/es/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  95. package/emotion/es/components/Tabs/ui/Tabs/Tabs.js +5 -5
  96. package/emotion/es/components/_Icon/Icon.assets/DisclosureDown.js +14 -0
  97. package/emotion/es/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  98. package/emotion/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js +15 -0
  99. package/emotion/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  100. package/emotion/es/components/_Icon/Icon.assets/DisclosureUp.js +14 -0
  101. package/emotion/es/components/_Icon/Icons/IconDisclosureDown.js +15 -0
  102. package/emotion/es/components/_Icon/Icons/IconDisclosureLeftCentered.js +15 -0
  103. package/emotion/es/components/_Icon/Icons/IconDisclosureUp.js +15 -0
  104. package/emotion/es/components/_Icon/index.js +3 -0
  105. package/emotion/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  106. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  107. package/emotion/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  108. package/emotion/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +13 -10
  109. package/emotion/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
  110. package/emotion/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  111. package/emotion/es/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  112. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  113. package/emotion/es/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  114. package/emotion/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +15 -9
  115. package/emotion/es/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
  116. package/emotion/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  117. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
  118. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  119. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  120. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  121. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  122. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  123. package/es/components/Segment/tokens.js +15 -1
  124. package/es/components/Segment/tokens.js.map +1 -1
  125. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.css +7 -8
  126. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +73 -118
  127. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  128. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +2 -7
  129. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js.map +1 -1
  130. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles_6y4o38.css +3 -0
  131. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  132. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js.map +1 -1
  133. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_a7w5s0.css +1 -0
  134. package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +5 -0
  135. package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js.map +1 -0
  136. package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base_1ejecy9.css +1 -0
  137. package/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  138. package/es/components/Segment/ui/SegmentGroup/variations/_size/base.js.map +1 -1
  139. package/es/components/Segment/ui/SegmentGroup/variations/_size/base_1dfesjp.css +1 -0
  140. package/es/components/Segment/ui/SegmentItem/SegmentItem.css +6 -4
  141. package/es/components/Segment/ui/SegmentItem/SegmentItem.js +16 -8
  142. package/es/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
  143. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +29 -2
  144. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js.map +1 -1
  145. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles_1s77lh9.css +4 -0
  146. package/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  147. package/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js.map +1 -1
  148. package/es/components/Segment/ui/SegmentItem/variations/_pilled/{base_15s0fel.css → base_omc5u1.css} +1 -1
  149. package/es/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
  150. package/es/components/Segment/ui/SegmentItem/variations/_view/base.js.map +1 -1
  151. package/es/components/Segment/ui/SegmentItem/variations/_view/base_jww0qh.css +1 -0
  152. package/es/components/Tabs/ui/Tabs/Tabs.js +6 -6
  153. package/es/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
  154. package/es/components/_Icon/Icon.assets/{DisclosureLeft.js → DisclosureLeftCentered.js} +3 -3
  155. package/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js.map +1 -0
  156. package/es/components/_Icon/Icons/{IconDisclosureLeft.js → IconDisclosureLeftCentered.js} +5 -5
  157. package/es/components/_Icon/Icons/IconDisclosureLeftCentered.js.map +1 -0
  158. package/es/index.css +13 -10
  159. package/package.json +2 -2
  160. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +1 -1
  161. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
  162. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -1
  163. package/styled-components/cjs/components/Segment/README.md +61 -0
  164. package/styled-components/cjs/components/Segment/tokens.js +15 -1
  165. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +66 -115
  166. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +4 -13
  167. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  168. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +10 -0
  169. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  170. package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  171. package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +15 -7
  172. package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +16 -4
  173. package/styled-components/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  174. package/styled-components/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  175. package/styled-components/cjs/components/Tabs/ui/Tabs/Tabs.js +4 -4
  176. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDown.js +21 -0
  177. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  178. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js +22 -0
  179. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  180. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureUp.js +21 -0
  181. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDown.js +22 -0
  182. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js +22 -0
  183. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureUp.js +22 -0
  184. package/styled-components/cjs/components/_Icon/index.js +21 -0
  185. package/styled-components/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  186. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  187. package/styled-components/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  188. package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +10 -7
  189. package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +8 -8
  190. package/styled-components/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  191. package/styled-components/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  192. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  193. package/styled-components/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  194. package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +13 -7
  195. package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +8 -8
  196. package/styled-components/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  197. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
  198. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  199. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -2
  200. package/styled-components/es/components/Segment/README.md +61 -0
  201. package/styled-components/es/components/Segment/tokens.js +15 -1
  202. package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +69 -118
  203. package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +3 -12
  204. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
  205. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +4 -0
  206. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
  207. package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
  208. package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.js +16 -8
  209. package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +15 -3
  210. package/styled-components/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
  211. package/styled-components/es/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
  212. package/styled-components/es/components/Tabs/ui/Tabs/Tabs.js +5 -5
  213. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDown.js +14 -0
  214. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
  215. package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js +15 -0
  216. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
  217. package/styled-components/es/components/_Icon/Icon.assets/DisclosureUp.js +14 -0
  218. package/styled-components/es/components/_Icon/Icons/IconDisclosureDown.js +15 -0
  219. package/styled-components/es/components/_Icon/Icons/IconDisclosureLeftCentered.js +15 -0
  220. package/styled-components/es/components/_Icon/Icons/IconDisclosureUp.js +15 -0
  221. package/styled-components/es/components/_Icon/index.js +3 -0
  222. package/styled-components/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
  223. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
  224. package/styled-components/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
  225. package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +10 -7
  226. package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +8 -8
  227. package/styled-components/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
  228. package/styled-components/es/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
  229. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
  230. package/styled-components/es/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
  231. package/styled-components/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +13 -7
  232. package/styled-components/es/examples/plasma_web/components/Segment/SegmentItem.config.js +8 -8
  233. package/styled-components/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
  234. package/types/components/Segment/tokens.d.ts +14 -0
  235. package/types/components/Segment/tokens.d.ts.map +1 -1
  236. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts +10 -1
  237. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts.map +1 -1
  238. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts +0 -1
  239. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts.map +1 -1
  240. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts +19 -1
  241. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts.map +1 -1
  242. package/types/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.d.ts.map +1 -1
  243. package/types/components/Segment/ui/SegmentGroup/variations/_orientation/base.d.ts +2 -0
  244. package/types/components/Segment/ui/SegmentGroup/variations/_orientation/base.d.ts.map +1 -0
  245. package/types/components/Segment/ui/SegmentGroup/variations/_size/base.d.ts.map +1 -1
  246. package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts +8 -2
  247. package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts.map +1 -1
  248. package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts +7 -1
  249. package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts.map +1 -1
  250. package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts +14 -1
  251. package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts.map +1 -1
  252. package/types/components/Segment/ui/SegmentItem/variations/_pilled/base.d.ts.map +1 -1
  253. package/types/components/Segment/ui/SegmentItem/variations/_view/base.d.ts.map +1 -1
  254. package/types/components/Tabs/ui/Tabs/Tabs.d.ts.map +1 -1
  255. package/types/components/_Icon/Icon.assets/DisclosureDown.d.ts +4 -0
  256. package/types/components/_Icon/Icon.assets/DisclosureDown.d.ts.map +1 -0
  257. package/types/components/_Icon/Icon.assets/DisclosureLeft.d.ts.map +1 -1
  258. package/types/components/_Icon/Icon.assets/DisclosureLeftCentered.d.ts +4 -0
  259. package/types/components/_Icon/Icon.assets/DisclosureLeftCentered.d.ts.map +1 -0
  260. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  261. package/types/components/_Icon/Icon.assets/DisclosureUp.d.ts +4 -0
  262. package/types/components/_Icon/Icon.assets/DisclosureUp.d.ts.map +1 -0
  263. package/types/components/_Icon/Icons/IconDisclosureDown.d.ts +4 -0
  264. package/types/components/_Icon/Icons/IconDisclosureDown.d.ts.map +1 -0
  265. package/types/components/_Icon/Icons/IconDisclosureLeftCentered.d.ts +4 -0
  266. package/types/components/_Icon/Icons/IconDisclosureLeftCentered.d.ts.map +1 -0
  267. package/types/components/_Icon/Icons/IconDisclosureUp.d.ts +4 -0
  268. package/types/components/_Icon/Icons/IconDisclosureUp.d.ts.map +1 -0
  269. package/types/components/_Icon/index.d.ts +3 -0
  270. package/types/components/_Icon/index.d.ts.map +1 -1
  271. package/types/examples/plasma_b2c/components/Segment/Segment.d.ts +10 -1
  272. package/types/examples/plasma_b2c/components/Segment/Segment.d.ts.map +1 -1
  273. package/types/examples/plasma_b2c/components/Segment/SegmentGroup.config.d.ts +3 -0
  274. package/types/examples/plasma_b2c/components/Segment/SegmentGroup.config.d.ts.map +1 -1
  275. package/types/examples/plasma_b2c/components/Segment/SegmentItem.config.d.ts.map +1 -1
  276. package/types/examples/plasma_web/components/Segment/Segment.d.ts +13 -1
  277. package/types/examples/plasma_web/components/Segment/Segment.d.ts.map +1 -1
  278. package/types/examples/plasma_web/components/Segment/SegmentGroup.config.d.ts +6 -0
  279. package/types/examples/plasma_web/components/Segment/SegmentGroup.config.d.ts.map +1 -1
  280. package/types/examples/plasma_web/components/Segment/SegmentItem.config.d.ts.map +1 -1
  281. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles_m9i9p0.css +0 -4
  282. package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_escgtx.css +0 -1
  283. package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base_m358nl.css +0 -1
  284. package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles_18h1p52.css +0 -2
  285. package/cjs/components/Segment/ui/SegmentItem/variations/_view/base_1m1u2ys.css +0 -1
  286. package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +0 -1
  287. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +0 -23
  288. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +0 -1
  289. package/cjs/components/_Icon/Icons/IconDisclosureLeft.js.map +0 -1
  290. package/cjs/components/_Icon/Icons/IconDisclosureRight.js +0 -23
  291. package/cjs/components/_Icon/Icons/IconDisclosureRight.js.map +0 -1
  292. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles_m9i9p0.css +0 -4
  293. package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_escgtx.css +0 -1
  294. package/es/components/Segment/ui/SegmentGroup/variations/_size/base_m358nl.css +0 -1
  295. package/es/components/Segment/ui/SegmentItem/SegmentItem.styles_18h1p52.css +0 -2
  296. package/es/components/Segment/ui/SegmentItem/variations/_view/base_1m1u2ys.css +0 -1
  297. package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +0 -1
  298. package/es/components/_Icon/Icon.assets/DisclosureRight.js +0 -19
  299. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +0 -1
  300. package/es/components/_Icon/Icons/IconDisclosureLeft.js.map +0 -1
  301. package/es/components/_Icon/Icons/IconDisclosureRight.js +0 -19
  302. package/es/components/_Icon/Icons/IconDisclosureRight.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarHeader.js","sources":["../../../../../src/components/Calendar/ui/CalendarHeader/CalendarHeader.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\n\nimport { IconDisclosureDownFill, IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';\nimport { CalendarState } from '../../store/types';\nimport { getCalendarType, MONTH_NAMES, YEAR_RENDER_COUNT } from '../../utils';\nimport type { DateObject } from '../../Calendar.types';\nimport { classes } from '../../Calendar.tokens';\nimport { sizeMap } from '../../store/reducer';\n\nimport type { CalendarHeaderProps } from './CalendarHeader.types';\nimport {\n StyledArrow,\n StyledArrows,\n StyledCalendarHeader,\n StyledDoubleHeaderWrapper,\n StyledHeader,\n StyledHeaderDate,\n StyledHeaderDouble,\n StyledNavigation,\n} from './CalendarHeader.styles';\n\n/**\n * Компонент шапки календаря.\n */\nexport const CalendarHeader: React.FC<CalendarHeaderProps> = ({\n type = 'Days',\n startYear = 0,\n size,\n firstDate,\n secondDate,\n isDouble,\n onPrev,\n onNext,\n onUpdateCalendarState,\n}) => {\n const handleCalendarState = useCallback(() => {\n const newSize: [number, number] = isDouble ? sizeMap.Months.double : sizeMap.Months.single;\n\n if (type === CalendarState.Days) {\n onUpdateCalendarState?.(CalendarState.Months, newSize);\n }\n\n if (type === CalendarState.Months || type === CalendarState.Quarters) {\n onUpdateCalendarState?.(CalendarState.Years, newSize);\n }\n }, [type, onUpdateCalendarState]);\n\n const getHeaderContent = useCallback(\n (date?: DateObject, secondPart?: boolean) => {\n if (!date) {\n return '';\n }\n\n if (type === CalendarState.Days) {\n return (\n <>\n <StyledHeaderDate>{MONTH_NAMES[date.monthIndex]}</StyledHeaderDate>\n <StyledHeaderDate>\n {date.year}\n <IconDisclosureDownFill color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledHeaderDate>\n </>\n );\n }\n\n if (type === CalendarState.Months || type === CalendarState.Quarters) {\n return (\n <StyledHeaderDate>\n {date.year}\n <IconDisclosureDownFill color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledHeaderDate>\n );\n }\n\n if (type === CalendarState.Years) {\n const yearValue = secondPart ? startYear + 12 : startYear;\n\n return (\n <StyledHeaderDate>\n {yearValue}—{yearValue + YEAR_RENDER_COUNT - 1}\n <IconDisclosureDownFill color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledHeaderDate>\n );\n }\n\n return '';\n },\n [type, startYear, size],\n );\n\n const currentCalendarType = getCalendarType(type);\n\n const PreviousButton = useMemo(\n () => (\n <StyledArrow aria-label={`Предыдущий ${currentCalendarType}`} onClick={() => onPrev()}>\n <IconDisclosureLeft color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledArrow>\n ),\n [currentCalendarType, size, onPrev],\n );\n\n const NextButton = useMemo(\n () => (\n <StyledArrow aria-label={`Следующий ${currentCalendarType}`} onClick={() => onNext()}>\n <IconDisclosureRight color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledArrow>\n ),\n [currentCalendarType, size, onNext],\n );\n\n return (\n <StyledCalendarHeader>\n {isDouble ? (\n <StyledNavigation>\n <StyledDoubleHeaderWrapper>\n {PreviousButton}\n <StyledHeaderDouble onClick={handleCalendarState} aria-live=\"polite\">\n {getHeaderContent(firstDate)}\n </StyledHeaderDouble>\n </StyledDoubleHeaderWrapper>\n <StyledDoubleHeaderWrapper className={classes.doubleHeaderLastDateWrapper}>\n <StyledHeaderDouble onClick={handleCalendarState} aria-live=\"polite\">\n {getHeaderContent(secondDate, true)}\n </StyledHeaderDouble>\n {NextButton}\n </StyledDoubleHeaderWrapper>\n </StyledNavigation>\n ) : (\n <>\n <StyledHeader\n type=\"button\"\n aria-live=\"polite\"\n id=\"id-grid-label\"\n onClick={handleCalendarState}\n tabIndex={0}\n >\n {getHeaderContent(firstDate)}\n </StyledHeader>\n <StyledArrows>\n {PreviousButton}\n {NextButton}\n </StyledArrows>\n </>\n )}\n </StyledCalendarHeader>\n );\n};\n"],"names":["CalendarHeader","_ref","_ref$type","type","_ref$startYear","startYear","size","firstDate","secondDate","isDouble","onPrev","onNext","onUpdateCalendarState","handleCalendarState","useCallback","newSize","sizeMap","Months","single","CalendarState","Days","Quarters","Years","getHeaderContent","date","secondPart","React","createElement","Fragment","StyledHeaderDate","MONTH_NAMES","monthIndex","year","IconDisclosureDownFill","color","yearValue","YEAR_RENDER_COUNT","currentCalendarType","getCalendarType","PreviousButton","useMemo","StyledArrow","concat","onClick","IconDisclosureLeft","NextButton","IconDisclosureRight","StyledCalendarHeader","StyledNavigation","StyledDoubleHeaderWrapper","StyledHeaderDouble","className","classes","doubleHeaderLastDateWrapper","StyledHeader","id","tabIndex","StyledArrows"],"mappings":";;;;;;;;;;;;AAqBA;AACA;AACA;IACaA,cAA6C,GAAG,SAAhDA,cAA6CA,CA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B,IAAAA,EAAAA,cAAc,EACdM,UACS,CAChB,CAEY,CAAC,CAAA;AAE/B;;;;"}
1
+ {"version":3,"file":"CalendarHeader.js","sources":["../../../../../src/components/Calendar/ui/CalendarHeader/CalendarHeader.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\n\nimport { IconDisclosureDownFill, IconDisclosureLeftCentered, IconDisclosureRightCentered } from '../../../_Icon';\nimport { CalendarState } from '../../store/types';\nimport { getCalendarType, MONTH_NAMES, YEAR_RENDER_COUNT } from '../../utils';\nimport type { DateObject } from '../../Calendar.types';\nimport { classes } from '../../Calendar.tokens';\nimport { sizeMap } from '../../store/reducer';\n\nimport type { CalendarHeaderProps } from './CalendarHeader.types';\nimport {\n StyledArrow,\n StyledArrows,\n StyledCalendarHeader,\n StyledDoubleHeaderWrapper,\n StyledHeader,\n StyledHeaderDate,\n StyledHeaderDouble,\n StyledNavigation,\n} from './CalendarHeader.styles';\n\n/**\n * Компонент шапки календаря.\n */\nexport const CalendarHeader: React.FC<CalendarHeaderProps> = ({\n type = 'Days',\n startYear = 0,\n size,\n firstDate,\n secondDate,\n isDouble,\n onPrev,\n onNext,\n onUpdateCalendarState,\n}) => {\n const handleCalendarState = useCallback(() => {\n const newSize: [number, number] = isDouble ? sizeMap.Months.double : sizeMap.Months.single;\n\n if (type === CalendarState.Days) {\n onUpdateCalendarState?.(CalendarState.Months, newSize);\n }\n\n if (type === CalendarState.Months || type === CalendarState.Quarters) {\n onUpdateCalendarState?.(CalendarState.Years, newSize);\n }\n }, [type, onUpdateCalendarState]);\n\n const getHeaderContent = useCallback(\n (date?: DateObject, secondPart?: boolean) => {\n if (!date) {\n return '';\n }\n\n if (type === CalendarState.Days) {\n return (\n <>\n <StyledHeaderDate>{MONTH_NAMES[date.monthIndex]}</StyledHeaderDate>\n <StyledHeaderDate>\n {date.year}\n <IconDisclosureDownFill color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledHeaderDate>\n </>\n );\n }\n\n if (type === CalendarState.Months || type === CalendarState.Quarters) {\n return (\n <StyledHeaderDate>\n {date.year}\n <IconDisclosureDownFill color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledHeaderDate>\n );\n }\n\n if (type === CalendarState.Years) {\n const yearValue = secondPart ? startYear + 12 : startYear;\n\n return (\n <StyledHeaderDate>\n {yearValue}—{yearValue + YEAR_RENDER_COUNT - 1}\n <IconDisclosureDownFill color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledHeaderDate>\n );\n }\n\n return '';\n },\n [type, startYear, size],\n );\n\n const currentCalendarType = getCalendarType(type);\n\n const PreviousButton = useMemo(\n () => (\n <StyledArrow aria-label={`Предыдущий ${currentCalendarType}`} onClick={() => onPrev()}>\n <IconDisclosureLeftCentered color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledArrow>\n ),\n [currentCalendarType, size, onPrev],\n );\n\n const NextButton = useMemo(\n () => (\n <StyledArrow aria-label={`Следующий ${currentCalendarType}`} onClick={() => onNext()}>\n <IconDisclosureRightCentered color=\"inherit\" size={size === 'xs' ? 'xs' : 's'} />\n </StyledArrow>\n ),\n [currentCalendarType, size, onNext],\n );\n\n return (\n <StyledCalendarHeader>\n {isDouble ? (\n <StyledNavigation>\n <StyledDoubleHeaderWrapper>\n {PreviousButton}\n <StyledHeaderDouble onClick={handleCalendarState} aria-live=\"polite\">\n {getHeaderContent(firstDate)}\n </StyledHeaderDouble>\n </StyledDoubleHeaderWrapper>\n <StyledDoubleHeaderWrapper className={classes.doubleHeaderLastDateWrapper}>\n <StyledHeaderDouble onClick={handleCalendarState} aria-live=\"polite\">\n {getHeaderContent(secondDate, true)}\n </StyledHeaderDouble>\n {NextButton}\n </StyledDoubleHeaderWrapper>\n </StyledNavigation>\n ) : (\n <>\n <StyledHeader\n type=\"button\"\n aria-live=\"polite\"\n id=\"id-grid-label\"\n onClick={handleCalendarState}\n tabIndex={0}\n >\n {getHeaderContent(firstDate)}\n </StyledHeader>\n <StyledArrows>\n {PreviousButton}\n {NextButton}\n </StyledArrows>\n </>\n )}\n </StyledCalendarHeader>\n );\n};\n"],"names":["CalendarHeader","_ref","_ref$type","type","_ref$startYear","startYear","size","firstDate","secondDate","isDouble","onPrev","onNext","onUpdateCalendarState","handleCalendarState","useCallback","newSize","sizeMap","Months","single","CalendarState","Days","Quarters","Years","getHeaderContent","date","secondPart","React","createElement","Fragment","StyledHeaderDate","MONTH_NAMES","monthIndex","year","IconDisclosureDownFill","color","yearValue","YEAR_RENDER_COUNT","currentCalendarType","getCalendarType","PreviousButton","useMemo","StyledArrow","concat","onClick","IconDisclosureLeftCentered","NextButton","IconDisclosureRightCentered","StyledCalendarHeader","StyledNavigation","StyledDoubleHeaderWrapper","StyledHeaderDouble","className","classes","doubleHeaderLastDateWrapper","StyledHeader","id","tabIndex","StyledArrows"],"mappings":";;;;;;;;;;;;AAqBA;AACA;AACA;IACaA,cAA6C,GAAG,SAAhDA,cAA6CA,CAAAC,IAAA,EAUpD;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CATFE,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,SAAA;IAAAE,cAAA,GAAAH,IAAA,CACbI,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,cAAA;IACbE,IAAI,GAAAL,IAAA,CAAJK,IAAI;IACJC,SAAS,GAAAN,IAAA,CAATM,SAAS;IACTC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,MAAM,GAAAT,IAAA,CAANS,MAAM;IACNC,MAAM,GAAAV,IAAA,CAANU,MAAM;IACNC,qBAAqB,GAAAX,IAAA,CAArBW,qBAAqB,CAAA;AAErB,EAAA,IAAMC,mBAAmB,GAAGC,WAAW,CAAC,YAAM;AAC1C,IAAA,IAAMC,OAAyB,GAAGN,QA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AO,CAACC,2BAAAA;AAA4B,GAAA,eACtE3B,KAAA,CAAAC,aAAA,CAACuB,kBAAkB,EAAA;AAACP,IAAAA,OAAO,EAAE9B,mBAAoB;IAAC,WAAU,EAAA,QAAA;GACvDU,EAAAA,gBAAgB,CAACf,UAAU,EAAE,IAAI,CAClB,CAAC,EACpBqC,UACsB,CACb,CAAC,gBAEnBnB,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,qBACIF,KAAA,CAAAC,aAAA,CAAC2B,YAAY,EAAA;AACTnD,IAAAA,IAAI,EAAC,QAAQ;AACb,IAAA,WAAA,EAAU,QAAQ;AAClBoD,IAAAA,EAAE,EAAC,eAAe;AAClBZ,IAAAA,OAAO,EAAE9B,mBAAoB;AAC7B2C,IAAAA,QAAQ,EAAE,CAAA;AAAE,GAAA,EAEXjC,gBAAgB,CAAChB,SAAS,CACjB,CAAC,eACfmB,KAAA,CAAAC,aAAA,CAAC8B,YAAY,EACRlB,IAAAA,EAAAA,cAAc,EACdM,UACS,CAChB,CAEY,CAAC,CAAA;AAE/B;;;;"}
@@ -2,7 +2,7 @@ import React, { useRef, useEffect } from 'react';
2
2
  import { classes } from '../../Dropdown.tokens.js';
3
3
  import { cx } from '../../../../utils/index.js';
4
4
  import '@linaria/react';
5
- import { IconDisclosureRight } from '../../../_Icon/Icons/IconDisclosureRight.js';
5
+ import { IconDisclosureRightCentered } from '../../../_Icon/Icons/IconDisclosureRightCentered.js';
6
6
  import { Wrapper, StyledContentLeft, StyledText, StyledContentRight, DisclosureIconWrapper } from './DropdownItem.styles.js';
7
7
 
8
8
  var DropdownItem = function DropdownItem(_ref) {
@@ -78,7 +78,7 @@ var DropdownItem = function DropdownItem(_ref) {
78
78
  "aria-haspopup": ariaHasPopup,
79
79
  "aria-level": ariaLevel,
80
80
  "aria-label": ariaLabel
81
- }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), item.items && hasArrow && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight, {
81
+ }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), item.items && hasArrow && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRightCentered, {
82
82
  size: disclosureIconSize,
83
83
  color: "inherit"
84
84
  })));
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRight } from '../../../_Icon';\n\nimport {\n StyledContentLeft,\n StyledContentRight,\n StyledText,\n Wrapper,\n DisclosureIconWrapper,\n} from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n focusedPath,\n currentLevel,\n index,\n itemRole,\n closeOnSelect,\n handleGlobalToggle,\n onHover,\n onItemSelect,\n onItemClick,\n ariaControls,\n ariaExpanded,\n ariaHasPopup,\n ariaLevel,\n ariaLabel,\n variant,\n hasArrow,\n size,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const disclosureIconSize = size === 'xs' ? 'xs' : 's';\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n if (handleGlobalToggle && closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <Wrapper\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={value.toString()}\n role={itemRole}\n ref={ref}\n aria-disabled={disabled || isDisabled}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledText>{label}</StyledText>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRight size={disclosureIconSize} color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","focusedPath","currentLevel","index","itemRole","closeOnSelect","handleGlobalToggle","onHover","onItemSelect","onItemClick","ariaControls","ariaExpanded","ariaHasPopup","ariaLevel","ariaLabel","variant","hasArrow","size","value","label","disabled","isDisabled","contentLeft","contentRight","ref","useRef","disclosureIconSize","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Wrapper","className","cx","id","toString","role","onClick","onMouseEnter","StyledContentLeft","StyledText","StyledContentRight","items","DisclosureIconWrapper","IconDisclosureRight","color"],"mappings":";;;;;;;IAea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,CAACa,qBAAqB,qBAClBd,KAAA,CAAAC,aAAA,CAACc,mBAAmB,EAAA;AAAC3C,IAAAA,IAAI,EAAES,kBAAmB;AAACmC,IAAAA,KAAK,EAAC,SAAA;GAAW,CAC7C,CAEtB,CAAC,CAAA;AAElB;;;;"}
1
+ {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRightCentered } from '../../../_Icon';\n\nimport {\n StyledContentLeft,\n StyledContentRight,\n StyledText,\n Wrapper,\n DisclosureIconWrapper,\n} from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n focusedPath,\n currentLevel,\n index,\n itemRole,\n closeOnSelect,\n handleGlobalToggle,\n onHover,\n onItemSelect,\n onItemClick,\n ariaControls,\n ariaExpanded,\n ariaHasPopup,\n ariaLevel,\n ariaLabel,\n variant,\n hasArrow,\n size,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const disclosureIconSize = size === 'xs' ? 'xs' : 's';\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n if (handleGlobalToggle && closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <Wrapper\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={value.toString()}\n role={itemRole}\n ref={ref}\n aria-disabled={disabled || isDisabled}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledText>{label}</StyledText>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRightCentered size={disclosureIconSize} color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","focusedPath","currentLevel","index","itemRole","closeOnSelect","handleGlobalToggle","onHover","onItemSelect","onItemClick","ariaControls","ariaExpanded","ariaHasPopup","ariaLevel","ariaLabel","variant","hasArrow","size","value","label","disabled","isDisabled","contentLeft","contentRight","ref","useRef","disclosureIconSize","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Wrapper","className","cx","id","toString","role","onClick","onMouseEnter","StyledContentLeft","StyledText","StyledContentRight","items","DisclosureIconWrapper","IconDisclosureRightCentered","color"],"mappings":";;;;;;;IAeaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAoB1C;AAAA,EAAA,IAnBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,YAAY,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var classes = {
2
2
  selectedSegmentItem: 'selected-segment-item',
3
3
  segmentPilled: 'segment-pilled',
4
4
  segmentGroupFilledBackground: 'segment-group-filled-background',
5
- segmentStretch: 'segment-stretched'
5
+ segmentStretch: 'segment-stretched',
6
+ segmentVertical: 'segment-vertical',
7
+ segmentArrowPadding: 'segment-arrow-padding',
8
+ segmentGroupClipScroll: 'segment-group-clip-scroll',
9
+ segmentGroupClipShowAll: 'segment-group-clip-show-all',
10
+ segmentXsSize: 'segment-xs-size'
6
11
  };
7
12
  var tokens = {
8
13
  fontFamily: '--plasma-segment-item-font-family',
@@ -17,6 +22,8 @@ var tokens = {
17
22
  groupPilledBorderRadius: '--plasma-segment-group-pilled-border-radius',
18
23
  groupWidth: '--plasma-segment-group-width',
19
24
  groupHeight: '--plasma-segment-group-height',
25
+ groupArrowPadding: '--plasma-segment-group-arrow-padding',
26
+ groupVerticalArrowPadding: '--plasma-segment-group-vertical-arrow-padding',
20
27
  groupBackgroundColor: '--plasma-segment-group-background-color',
21
28
  groupFilledBackgroundColor: '--plasma-segment-group-filled-background-color',
22
29
  itemBorderRadius: '--plasma-segment-item-border-radius',
@@ -24,15 +31,22 @@ var tokens = {
24
31
  itemWidth: '--plasma-segment-item-width',
25
32
  itemHeight: '--plasma-segment-item-height',
26
33
  itemPadding: '--plasma-segment-item-padding',
34
+ itemPilledPadding: '--plasma-segment-item-pilled-padding',
27
35
  itemMarginLeft: '--plasma-segment-item-margin-left',
36
+ itemContentPadding: '--plasma-segment-item-content-padding',
37
+ itemIconMargin: '--plasma-segment-item-content-icon-margin',
28
38
  itemColor: '--plasma-segment-item-color',
29
39
  itemBackgroundColor: '--plasma-segment-item-background-color',
30
40
  itemColorHover: '--plasma-segment-item-color-hover',
31
41
  itemBackgroundColorHover: '--plasma-segment-item-background-color-hover',
42
+ itemAdditionalColor: '--plasma-segment-item-additional-color',
43
+ itemAdditionalColorHover: '--plasma-segment-item-additional-color-hover',
32
44
  itemSelectedColor: '--plasma-segment-item-selected-color',
33
45
  itemSelectedBackgroundColor: '--plasma-segment-item-selected-background-color',
34
46
  itemSelectedColorHover: '--plasma-segment-item-selected-color-hover',
35
47
  itemSelectedBackgroundColorHover: '--plasma-segment-item-selected-background-color-hover',
48
+ itemSelectedAdditionalColor: '--plasma-segment-item-selected-additional-color',
49
+ itemSelectedAdditionalColorHover: '--plasma-segment-item-selected-additional-color-hover',
36
50
  disabledOpacity: '--plasma-segment-disabled-opacity'
37
51
  };
38
52
 
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sources":["../../../src/components/Segment/tokens.ts"],"sourcesContent":["export const classes = {\n selectedSegmentItem: 'selected-segment-item',\n segmentPilled: 'segment-pilled',\n segmentGroupFilledBackground: 'segment-group-filled-background',\n segmentStretch: 'segment-stretched',\n};\n\nexport const tokens = {\n fontFamily: '--plasma-segment-item-font-family',\n fontSize: '--plasma-segment-item-font-size',\n fontStyle: '--plasma-segment-item-font-style',\n fontWeight: '--plasma-segment-item-font-weight',\n letterSpacing: '--plasma-segment-item-letter-spacing',\n lineHeight: '--plasma-segment-item-lineheight',\n\n outlineFocusColor: '--plasma-segment-outline-focus-color',\n\n arrowColor: '--plasma-segment-arrow-color',\n\n groupBorderRadius: '--plasma-segment-group-border-radius',\n groupPilledBorderRadius: '--plasma-segment-group-pilled-border-radius',\n groupWidth: '--plasma-segment-group-width',\n groupHeight: '--plasma-segment-group-height',\n\n groupBackgroundColor: '--plasma-segment-group-background-color',\n groupFilledBackgroundColor: '--plasma-segment-group-filled-background-color',\n\n itemBorderRadius: '--plasma-segment-item-border-radius',\n itemPilledBorderRadius: '--plasma-segment-item-pilled-border-radius',\n itemWidth: '--plasma-segment-item-width',\n itemHeight: '--plasma-segment-item-height',\n itemPadding: '--plasma-segment-item-padding',\n itemMarginLeft: '--plasma-segment-item-margin-left',\n\n itemColor: '--plasma-segment-item-color',\n itemBackgroundColor: '--plasma-segment-item-background-color',\n itemColorHover: '--plasma-segment-item-color-hover',\n itemBackgroundColorHover: '--plasma-segment-item-background-color-hover',\n\n itemSelectedColor: '--plasma-segment-item-selected-color',\n itemSelectedBackgroundColor: '--plasma-segment-item-selected-background-color',\n itemSelectedColorHover: '--plasma-segment-item-selected-color-hover',\n itemSelectedBackgroundColorHover: '--plasma-segment-item-selected-background-color-hover',\n\n disabledOpacity: '--plasma-segment-disabled-opacity',\n};\n"],"names":["classes","selectedSegmentItem","segmentPilled","segmentGroupFilledBackground","segmentStretch","tokens","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","outlineFocusColor","arrowColor","groupBorderRadius","groupPilledBorderRadius","groupWidth","groupHeight","groupBackgroundColor","groupFilledBackgroundColor","itemBorderRadius","itemPilledBorderRadius","itemWidth","itemHeight","itemPadding","itemMarginLeft","itemColor","itemBackgroundColor","itemColorHover","itemBackgroundColorHover","itemSelectedColor","itemSelectedBackgroundColor","itemSelectedColorHover","itemSelectedBackgroundColorHover","disabledOpacity"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,mBAAmB,EAAE,uBAAuB;AAC5CC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,4BAA4B,EAAE,iCAAiC;AAC/DC,EAAAA,cAAc,EAAE,mBAAA;AACpB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,mCAAmC;AAC/CC,EAAAA,QAAQ,EAAE,iCAAiC;AAC3CC,EAAAA,SAAS,EAAE,kCAAkC;AAC7CC,EAAAA,UAAU,EAAE,mCAAmC;AAC/CC,EAAAA,aAAa,EAAE,sCAAsC;AACrDC,EAAAA,UAAU,EAAE,kCAAkC;AAE9CC,EAAAA,iBAAiB,EAAE,sCAAsC;AAEzDC,EAAAA,UAAU,EAAE,8BAA8B;AAE1CC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzDC,EAAAA,uBAAuB,EAAE,6CAA6C;AACtEC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAE5CC,EAAAA,oBAAoB,EAAE,yCAAyC;AAC/DC,EAAAA,0BAA0B,EAAE,gDAAgD;AAE5EC,EAAAA,gBAAgB,EAAE,qCAAqC;AACvDC,EAAAA,sBAAsB,EAAE,4CAA4C;AACpEC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,cAAc,EAAE,mCAAmC;AAEnDC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,mBAAmB,EAAE,wCAAwC;AAC7DC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,wBAAwB,EAAE,8CAA8C;AAExEC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzDC,EAAAA,2BAA2B,EAAE,iDAAiD;AAC9EC,EAAAA,sBAAsB,EAAE,4CAA4C;AACpEC,EAAAA,gCAAgC,EAAE,uDAAuD;AAEzFC,EAAAA,eAAe,EAAE,mCAAA;AACrB;;;;"}
1
+ {"version":3,"file":"tokens.js","sources":["../../../src/components/Segment/tokens.ts"],"sourcesContent":["export const classes = {\n selectedSegmentItem: 'selected-segment-item',\n segmentPilled: 'segment-pilled',\n segmentGroupFilledBackground: 'segment-group-filled-background',\n segmentStretch: 'segment-stretched',\n segmentVertical: 'segment-vertical',\n segmentArrowPadding: 'segment-arrow-padding',\n segmentGroupClipScroll: 'segment-group-clip-scroll',\n segmentGroupClipShowAll: 'segment-group-clip-show-all',\n segmentXsSize: 'segment-xs-size',\n};\n\nexport const tokens = {\n fontFamily: '--plasma-segment-item-font-family',\n fontSize: '--plasma-segment-item-font-size',\n fontStyle: '--plasma-segment-item-font-style',\n fontWeight: '--plasma-segment-item-font-weight',\n letterSpacing: '--plasma-segment-item-letter-spacing',\n lineHeight: '--plasma-segment-item-lineheight',\n\n outlineFocusColor: '--plasma-segment-outline-focus-color',\n\n arrowColor: '--plasma-segment-arrow-color',\n\n groupBorderRadius: '--plasma-segment-group-border-radius',\n groupPilledBorderRadius: '--plasma-segment-group-pilled-border-radius',\n groupWidth: '--plasma-segment-group-width',\n groupHeight: '--plasma-segment-group-height',\n groupArrowPadding: '--plasma-segment-group-arrow-padding',\n groupVerticalArrowPadding: '--plasma-segment-group-vertical-arrow-padding',\n\n groupBackgroundColor: '--plasma-segment-group-background-color',\n groupFilledBackgroundColor: '--plasma-segment-group-filled-background-color',\n\n itemBorderRadius: '--plasma-segment-item-border-radius',\n itemPilledBorderRadius: '--plasma-segment-item-pilled-border-radius',\n itemWidth: '--plasma-segment-item-width',\n itemHeight: '--plasma-segment-item-height',\n itemPadding: '--plasma-segment-item-padding',\n itemPilledPadding: '--plasma-segment-item-pilled-padding',\n itemMarginLeft: '--plasma-segment-item-margin-left',\n itemContentPadding: '--plasma-segment-item-content-padding',\n itemIconMargin: '--plasma-segment-item-content-icon-margin',\n\n itemColor: '--plasma-segment-item-color',\n itemBackgroundColor: '--plasma-segment-item-background-color',\n itemColorHover: '--plasma-segment-item-color-hover',\n itemBackgroundColorHover: '--plasma-segment-item-background-color-hover',\n itemAdditionalColor: '--plasma-segment-item-additional-color',\n itemAdditionalColorHover: '--plasma-segment-item-additional-color-hover',\n\n itemSelectedColor: '--plasma-segment-item-selected-color',\n itemSelectedBackgroundColor: '--plasma-segment-item-selected-background-color',\n itemSelectedColorHover: '--plasma-segment-item-selected-color-hover',\n itemSelectedBackgroundColorHover: '--plasma-segment-item-selected-background-color-hover',\n itemSelectedAdditionalColor: '--plasma-segment-item-selected-additional-color',\n itemSelectedAdditionalColorHover: '--plasma-segment-item-selected-additional-color-hover',\n\n disabledOpacity: '--plasma-segment-disabled-opacity',\n};\n"],"names":["classes","selectedSegmentItem","segmentPilled","segmentGroupFilledBackground","segmentStretch","segmentVertical","segmentArrowPadding","segmentGroupClipScroll","segmentGroupClipShowAll","segmentXsSize","tokens","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","outlineFocusColor","arrowColor","groupBorderRadius","groupPilledBorderRadius","groupWidth","groupHeight","groupArrowPadding","groupVerticalArrowPadding","groupBackgroundColor","groupFilledBackgroundColor","itemBorderRadius","itemPilledBorderRadius","itemWidth","itemHeight","itemPadding","itemPilledPadding","itemMarginLeft","itemContentPadding","itemIconMargin","itemColor","itemBackgroundColor","itemColorHover","itemBackgroundColorHover","itemAdditionalColor","itemAdditionalColorHover","itemSelectedColor","itemSelectedBackgroundColor","itemSelectedColorHover","itemSelectedBackgroundColorHover","itemSelectedAdditionalColor","itemSelectedAdditionalColorHover","disabledOpacity"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,mBAAmB,EAAE,uBAAuB;AAC5CC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,4BAA4B,EAAE,iCAAiC;AAC/DC,EAAAA,cAAc,EAAE,mBAAmB;AACnCC,EAAAA,eAAe,EAAE,kBAAkB;AACnCC,EAAAA,mBAAmB,EAAE,uBAAuB;AAC5CC,EAAAA,sBAAsB,EAAE,2BAA2B;AACnDC,EAAAA,uBAAuB,EAAE,6BAA6B;AACtDC,EAAAA,aAAa,EAAE,iBAAA;AACnB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,mCAAmC;AAC/CC,EAAAA,QAAQ,EAAE,iCAAiC;AAC3CC,EAAAA,SAAS,EAAE,kCAAkC;AAC7CC,EAAAA,UAAU,EAAE,mCAAmC;AAC/CC,EAAAA,aAAa,EAAE,sCAAsC;AACrDC,EAAAA,UAAU,EAAE,kCAAkC;AAE9CC,EAAAA,iBAAiB,EAAE,sCAAsC;AAEzDC,EAAAA,UAAU,EAAE,8BAA8B;AAE1CC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzDC,EAAAA,uBAAuB,EAAE,6CAA6C;AACtEC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzDC,EAAAA,yBAAyB,EAAE,+CAA+C;AAE1EC,EAAAA,oBAAoB,EAAE,yCAAyC;AAC/DC,EAAAA,0BAA0B,EAAE,gDAAgD;AAE5EC,EAAAA,gBAAgB,EAAE,qCAAqC;AACvDC,EAAAA,sBAAsB,EAAE,4CAA4C;AACpEC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzDC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,kBAAkB,EAAE,uCAAuC;AAC3DC,EAAAA,cAAc,EAAE,2CAA2C;AAE3DC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,mBAAmB,EAAE,wCAAwC;AAC7DC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,wBAAwB,EAAE,8CAA8C;AACxEC,EAAAA,mBAAmB,EAAE,wCAAwC;AAC7DC,EAAAA,wBAAwB,EAAE,8CAA8C;AAExEC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzDC,EAAAA,2BAA2B,EAAE,iDAAiD;AAC9EC,EAAAA,sBAAsB,EAAE,4CAA4C;AACpEC,EAAAA,gCAAgC,EAAE,uDAAuD;AACzFC,EAAAA,2BAA2B,EAAE,iDAAiD;AAC9EC,EAAAA,gCAAgC,EAAE,uDAAuD;AAEzFC,EAAAA,eAAe,EAAE,mCAAA;AACrB;;;;"}
@@ -1,6 +1,4 @@
1
- .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
2
-
3
- .base_m358nl_b16s69xg__c51d77df{width:var(--plasma-segment-group-width);height:var(--plasma-segment-group-height);--plasma_private-outline-radius:var(--plasma-segment-group-border-radius);border-radius:var(--plasma-segment-group-border-radius);}
1
+ .base_1dfesjp_b16s69xg__8774de01{width:var(--plasma-segment-group-width);height:var(--plasma-segment-group-height);}.base_1dfesjp_b16s69xg__8774de01:before{--plasma_private-outline-radius:var(--plasma-segment-group-border-radius);border-radius:var(--plasma-segment-group-border-radius);}
4
2
 
5
3
  .base_hsx1sr_bo2wq9n__1e99adcc{background-color:var(--plasma-segment-group-background-color);}
6
4
 
@@ -8,11 +6,12 @@
8
6
 
9
7
  .base_fqbatz_b1re0ohg__24d92a6d.base_fqbatz_segmentPilled__24d92a6d{--plasma_private-outline-radius:var(--plasma-segment-group-pilled-border-radius);border-radius:var(--plasma-segment-group-pilled-border-radius);}
10
8
 
11
- .base_escgtx_b13sjoz1__a1f0e6e1.base_escgtx_segmentGroupFilledBackground__a1f0e6e1{background-color:var(--plasma-segment-group-filled-background-color);}
9
+ .base_a7w5s0_b13sjoz1__a0df01cb{position:relative;}.base_a7w5s0_b13sjoz1__a0df01cb.base_a7w5s0_segmentGroupFilledBackground__a0df01cb:before{content:'';position:absolute;inset:-0.125rem;background-color:var(--plasma-segment-group-filled-background-color);}
12
10
 
13
11
  .base_74wj10_b1bb2stb__3b76a172.base_74wj10_segmentStretched__3b76a172{width:100%;}.base_74wj10_b1bb2stb__3b76a172.base_74wj10_segmentStretched__3b76a172 .base_74wj10_spuzt9m__3b76a172,.base_74wj10_b1bb2stb__3b76a172.base_74wj10_segmentStretched__3b76a172 .base_74wj10_sin9wo2__3b76a172,.base_74wj10_b1bb2stb__3b76a172.base_74wj10_segmentStretched__3b76a172 .base_74wj10_sin9wo2__3b76a172 > button{width:100%;}
14
12
 
15
- .SegmentGroup_styles_m9i9p0_b2sori2__a29c0677{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
16
- .SegmentGroup_styles_m9i9p0_sin9wo2__a29c0677{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
17
- .SegmentGroup_styles_m9i9p0_spuzt9m__a29c0677{position:relative;height:100%;margin:0;padding:0.25rem;overflow-x:auto;overflow-y:hidden;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;-webkit-scroll-snap-type:x mandatory;-moz-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;}.SegmentGroup_styles_m9i9p0_spuzt9m__a29c0677::-webkit-scrollbar{display:none;}
18
- .SegmentGroup_styles_m9i9p0_s1qf4oye__a29c0677{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;border:none;background-color:transparent;padding:0;outline:none;position:relative;}.SegmentGroup_styles_m9i9p0_s1qf4oye__a29c0677::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) - 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.SegmentGroup_styles_m9i9p0_s1qf4oye__a29c0677.SegmentGroup_styles_m9i9p0_focusVisible__a29c0677:focus::before,.SegmentGroup_styles_m9i9p0_s1qf4oye__a29c0677[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-segment-outline-focus-color);}.SegmentGroup_styles_m9i9p0_s1qf4oye__a29c0677[disabled]{cursor:not-allowed;}
13
+ .base_1ejecy9_bb2d6sr__61b9631c.base_1ejecy9_segmentVertical__61b9631c{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.base_1ejecy9_bb2d6sr__61b9631c.base_1ejecy9_segmentVertical__61b9631c .base_1ejecy9_spuzt9m__61b9631c{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.base_1ejecy9_bb2d6sr__61b9631c.base_1ejecy9_segmentVertical__61b9631c .base_1ejecy9_sin9wo2__61b9631c{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
14
+
15
+ .SegmentGroup_styles_6y4o38_b2sori2__2daec6de{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;--plasma_private-outline-radius:var(--plasma-segment-group-border-radius);border-radius:var(--plasma-segment-group-border-radius);}
16
+ .SegmentGroup_styles_6y4o38_sin9wo2__2daec6de{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;}
17
+ .SegmentGroup_styles_6y4o38_spuzt9m__2daec6de{position:relative;height:100%;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
@@ -1,164 +1,117 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useState, Children, useCallback, useMemo, useEffect } from 'react';
3
- import { safeUseId, useCarousel } from '@salutejs/plasma-core';
4
- import { IconDisclosureLeft } from '../../../_Icon/Icons/IconDisclosureLeft.js';
5
- import { IconDisclosureRight } from '../../../_Icon/Icons/IconDisclosureRight.js';
6
- import '@linaria/react';
7
- import { tokens, classes } from '../../tokens.js';
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { forwardRef, useRef, useCallback, useEffect } from 'react';
3
+ import { safeUseId } from '@salutejs/plasma-core';
4
+ import { classes } from '../../tokens.js';
8
5
  import { cx } from '../../../../utils/index.js';
9
6
  import { useSegmentInner } from '../../SegmentProvider/SegmentProvider.js';
10
7
  import { base as base$1 } from './variations/_size/base.js';
11
8
  import { base as base$2 } from './variations/_view/base.js';
12
9
  import { base as base$3 } from './variations/_disabled/base.js';
13
10
  import { base as base$4 } from './variations/_pilled/base.js';
14
- import { base as base$6 } from './variations/_filledBackgound/base.js';
11
+ import { base as base$7 } from './variations/_filledBackgound/base.js';
15
12
  import { base as base$5 } from './variations/_stretch/base.js';
16
- import { StyledArrow, StyledContentWrapper, StyledContent, base } from './SegmentGroup.styles.js';
13
+ import { base as base$6 } from './variations/_orientation/base.js';
14
+ import { StyledContentWrapper, StyledContent, base } from './SegmentGroup.styles.js';
17
15
 
18
- var _excluded = ["id", "selectionMode", "pilled", "stretch", "filledBackground", "disabled", "size", "view", "children"];
16
+ var _excluded = ["id", "selectionMode", "pilled", "stretch", "orientation", "filledBackground", "hasBackground", "disabled", "size", "view", "children"];
17
+ var Keys = /*#__PURE__*/function (Keys) {
18
+ Keys[Keys["end"] = 35] = "end";
19
+ Keys[Keys["home"] = 36] = "home";
20
+ Keys[Keys["left"] = 37] = "left";
21
+ Keys[Keys["right"] = 39] = "right";
22
+ return Keys;
23
+ }(Keys || {});
24
+ var getChildNodes = function getChildNodes(wrapper) {
25
+ var container = wrapper === null || wrapper === void 0 ? void 0 : wrapper.firstChild;
26
+ return container ? Array.from(container === null || container === void 0 ? void 0 : container.childNodes) : [];
27
+ };
19
28
  var segmentGroupRoot = function segmentGroupRoot(Root) {
20
29
  return /*#__PURE__*/forwardRef(function (props, outerRef) {
21
30
  var id = props.id,
22
31
  selectionMode = props.selectionMode,
23
32
  pilled = props.pilled,
24
33
  stretch = props.stretch,
34
+ _props$orientation = props.orientation,
35
+ orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
25
36
  _props$filledBackgrou = props.filledBackground,
26
37
  filledBackground = _props$filledBackgrou === void 0 ? false : _props$filledBackgrou,
38
+ _props$hasBackground = props.hasBackground,
39
+ hasBackground = _props$hasBackground === void 0 ? false : _props$hasBackground,
27
40
  _props$disabled = props.disabled,
28
41
  disabled = _props$disabled === void 0 ? false : _props$disabled,
29
42
  size = props.size,
30
43
  view = props.view,
31
44
  children = props.children,
32
45
  rest = _objectWithoutProperties(props, _excluded);
46
+ var scrollRef = useRef(null);
47
+ var trackRef = useRef(null);
33
48
  var _useSegmentInner = useSegmentInner(),
34
49
  setSelectionMode = _useSegmentInner.setSelectionMode,
35
50
  setDisabledGroup = _useSegmentInner.setDisabledGroup;
36
- var _useState = useState(0),
37
- _useState2 = _slicedToArray(_useState, 2),
38
- index = _useState2[0],
39
- setIndex = _useState2[1];
40
- var _useState3 = useState(false),
41
- _useState4 = _slicedToArray(_useState3, 2),
42
- firstItemVisible = _useState4[0],
43
- setFirstItemVisible = _useState4[1];
44
- var _useState5 = useState(false),
45
- _useState6 = _slicedToArray(_useState5, 2),
46
- lastItemVisible = _useState6[0],
47
- setLastItemVisible = _useState6[1];
48
51
  var uniqId = safeUseId();
49
52
  var segmentGroupId = id || uniqId;
50
- var pilledAttr = view !== 'clear' && pilled;
51
- var filledBackgroundAttr = view !== 'clear' && filledBackground;
53
+ var isVertical = orientation === 'vertical';
54
+ var pilledAttr = hasBackground && pilled;
55
+ var filledBackgroundAttr = filledBackground || hasBackground;
56
+ var stretchClass = stretch ? classes.segmentStretch : undefined;
57
+ var orientationClass = isVertical ? classes.segmentVertical : undefined;
52
58
  var pilledClass = pilledAttr ? classes.segmentPilled : undefined;
53
59
  var filledClass = filledBackgroundAttr ? classes.segmentGroupFilledBackground : undefined;
54
- var stretchClass = firstItemVisible && lastItemVisible && stretch ? classes.segmentStretch : undefined;
55
- var items = (Children === null || Children === void 0 ? void 0 : Children.map(children, function (child) {
56
- return child;
57
- })) || [];
58
- var onPrev = useCallback(function () {
59
- !disabled && setIndex(function (prevIndex) {
60
- return prevIndex > 0 ? prevIndex - 1 : 0;
61
- });
62
- }, [disabled]);
63
- var onNext = useCallback(function () {
64
- !disabled && setIndex(function (prevIndex) {
65
- return prevIndex < items.length - 1 ? prevIndex + 1 : prevIndex;
60
+ var onKeyDown = useCallback(function (event) {
61
+ var childNodes = getChildNodes(scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current);
62
+ var index = childNodes.findIndex(function (child) {
63
+ return document.activeElement === child;
66
64
  });
67
- }, [disabled]);
68
- var onIntersecting = function onIntersecting(setVisible) {
69
- return function (entries) {
70
- /*
71
- * Пробегаемся по элементам на которых есть слушатель события появления.
72
- * Если элемент находится в зоне видимости или выходит из нее, меняем значение флага видимости
73
- */
74
- entries.forEach(function (entry) {
75
- if (entry.isIntersecting) {
76
- setVisible(true);
77
- } else {
78
- setVisible(false);
79
- }
65
+ var minIndex = 0;
66
+ var maxIndex = childNodes.length - 1;
67
+ var nextIndex;
68
+ switch (event.keyCode) {
69
+ case Keys.end:
70
+ nextIndex = maxIndex;
71
+ break;
72
+ case Keys.left:
73
+ nextIndex = index > minIndex ? index - 1 : index;
74
+ break;
75
+ case Keys.right:
76
+ nextIndex = index < maxIndex ? index + 1 : index;
77
+ break;
78
+ case Keys.home:
79
+ nextIndex = minIndex;
80
+ break;
81
+ default:
82
+ return;
83
+ }
84
+ if (nextIndex !== index) {
85
+ var _childNodes$nextIndex, _childNodes$nextIndex2;
86
+ event.preventDefault();
87
+ (_childNodes$nextIndex = childNodes[nextIndex]) === null || _childNodes$nextIndex === void 0 || _childNodes$nextIndex.focus();
88
+ (_childNodes$nextIndex2 = childNodes[nextIndex]) === null || _childNodes$nextIndex2 === void 0 || _childNodes$nextIndex2.scrollIntoView({
89
+ block: 'center',
90
+ inline: 'center',
91
+ behavior: 'smooth'
80
92
  });
81
- };
82
- };
83
- var _useCarousel = useCarousel({
84
- index: index,
85
- axis: 'x',
86
- scrollAlign: 'start',
87
- detectActive: true,
88
- debounceMs: 250,
89
- onIndexChange: setIndex
90
- }),
91
- scrollRef = _useCarousel.scrollRef,
92
- trackRef = _useCarousel.trackRef;
93
- var PreviousButton = useMemo(function () {
94
- return /*#__PURE__*/React.createElement(StyledArrow, {
95
- type: "button",
96
- "aria-label": "\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0441\u0435\u0433\u043C\u0435\u043D\u0442",
97
- onClick: onPrev,
98
- tabIndex: disabled ? -1 : 0,
99
- disabled: disabled
100
- }, /*#__PURE__*/React.createElement(IconDisclosureLeft, {
101
- color: "var(".concat(tokens.arrowColor, ")")
102
- }));
103
- }, [onPrev]);
104
- var NextButton = useMemo(function () {
105
- return /*#__PURE__*/React.createElement(StyledArrow, {
106
- type: "button",
107
- "aria-label": "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0441\u0435\u0433\u043C\u0435\u043D\u0442",
108
- onClick: onNext,
109
- tabIndex: disabled ? -1 : 0,
110
- disabled: disabled
111
- }, /*#__PURE__*/React.createElement(IconDisclosureRight, {
112
- color: "var(".concat(tokens.arrowColor, ")")
113
- }));
114
- }, [onNext]);
93
+ }
94
+ }, []);
115
95
  useEffect(function () {
116
96
  selectionMode && setSelectionMode(selectionMode);
117
97
  setDisabledGroup(disabled);
118
98
  }, [selectionMode, disabled]);
119
- useEffect(function () {
120
- var _trackRef$current;
121
- // Intersection observer для первого сегмента
122
- var observeFirstItem = new IntersectionObserver(onIntersecting(setFirstItemVisible), {
123
- root: null,
124
- rootMargin: '0px',
125
- threshold: 0.5
126
- });
127
-
128
- // Intersection observer для последнего сегмента
129
- var observeLastItem = new IntersectionObserver(onIntersecting(setLastItemVisible), {
130
- root: null,
131
- rootMargin: '0px',
132
- threshold: 0.5
133
- });
134
-
135
- // получаем список сегментов внутри SegmentGroup
136
- var childrenArray = Array.from(((_trackRef$current = trackRef.current) === null || _trackRef$current === void 0 ? void 0 : _trackRef$current.children) || []);
137
- if (childrenArray.length) {
138
- // подписываемся на событие появление внутри SegmentGroup
139
- observeFirstItem.observe(childrenArray[0]);
140
- observeLastItem.observe(childrenArray[childrenArray.length - 1]);
141
- }
142
- return function () {
143
- // отписываемся от события появления внутри SegmentGroup
144
- observeFirstItem.disconnect();
145
- observeLastItem.disconnect();
146
- };
147
- }, [children]);
148
99
  return /*#__PURE__*/React.createElement(Root, _extends({
149
100
  view: view,
150
101
  size: size,
102
+ orientation: orientation,
151
103
  id: segmentGroupId,
152
104
  ref: outerRef,
153
105
  filledBackground: filledBackgroundAttr,
154
106
  disabled: disabled,
155
107
  pilled: pilledAttr,
156
- className: cx(pilledClass, filledClass, stretchClass)
157
- }, rest), !firstItemVisible && PreviousButton, /*#__PURE__*/React.createElement(StyledContentWrapper, {
108
+ className: cx(pilledClass, filledClass, stretchClass, orientationClass),
109
+ onKeyDown: onKeyDown
110
+ }, rest), /*#__PURE__*/React.createElement(StyledContentWrapper, {
158
111
  ref: scrollRef
159
112
  }, /*#__PURE__*/React.createElement(StyledContent, {
160
113
  ref: trackRef
161
- }, children)), !lastItemVisible && NextButton);
114
+ }, children)));
162
115
  });
163
116
  };
164
117
  var segmentGroupConfig = {
@@ -185,16 +138,18 @@ var segmentGroupConfig = {
185
138
  css: base$5,
186
139
  attrs: true
187
140
  },
141
+ orientation: {
142
+ css: base$6
143
+ },
188
144
  filledBackground: {
189
- css: base$6,
145
+ css: base$7,
190
146
  attrs: true
191
147
  }
192
148
  },
193
149
  defaults: {
194
- view: 'clear',
195
150
  size: 'xs'
196
151
  }
197
152
  };
198
153
 
199
- export { segmentGroupConfig, segmentGroupRoot };
154
+ export { getChildNodes, segmentGroupConfig, segmentGroupRoot };
200
155
  //# sourceMappingURL=SegmentGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentGroup.js","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useMemo, useState, Children, useEffect } from 'react';\nimport type { SetStateAction, RefObject, MutableRefObject } from 'react';\nimport { safeUseId, useCarousel } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../../../engines/types';\nimport { IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';\nimport { classes, tokens } from '../../tokens';\nimport { cx } from '../../../../utils';\nimport { useSegmentInner } from '../../SegmentProvider/SegmentProvider';\n\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as filledBackgroundCSS } from './variations/_filledBackgound/base';\nimport { base as stretchCSS } from './variations/_stretch/base';\nimport type { SegmentGroupProps } from './SegmentGroup.types';\nimport { StyledArrow, StyledContent, StyledContentWrapper, base } from './SegmentGroup.styles';\n\nexport const segmentGroupRoot = (Root: RootProps<HTMLDivElement, SegmentGroupProps>) =>\n forwardRef<HTMLDivElement, SegmentGroupProps>((props, outerRef) => {\n const {\n id,\n selectionMode,\n pilled,\n stretch,\n filledBackground = false,\n disabled = false,\n size,\n view,\n children,\n ...rest\n } = props;\n\n const { setSelectionMode, setDisabledGroup } = useSegmentInner();\n\n const [index, setIndex] = useState(0);\n const [firstItemVisible, setFirstItemVisible] = useState(false);\n const [lastItemVisible, setLastItemVisible] = useState(false);\n\n const uniqId = safeUseId();\n const segmentGroupId = id || uniqId;\n\n const pilledAttr = view !== 'clear' && pilled;\n const filledBackgroundAttr = view !== 'clear' && filledBackground;\n const pilledClass = pilledAttr ? classes.segmentPilled : undefined;\n const filledClass = filledBackgroundAttr ? classes.segmentGroupFilledBackground : undefined;\n const stretchClass = firstItemVisible && lastItemVisible && stretch ? classes.segmentStretch : undefined;\n\n const items = Children?.map(children, (child) => child) || [];\n\n const onPrev = useCallback(() => {\n !disabled && setIndex((prevIndex) => (prevIndex > 0 ? prevIndex - 1 : 0));\n }, [disabled]);\n\n const onNext = useCallback(() => {\n !disabled && setIndex((prevIndex) => (prevIndex < items.length - 1 ? prevIndex + 1 : prevIndex));\n }, [disabled]);\n\n const onIntersecting = (setVisible: (value: SetStateAction<boolean>) => void) => (\n entries: IntersectionObserverEntry[],\n ) => {\n /*\n * Пробегаемся по элементам на которых есть слушатель события появления.\n * Если элемент находится в зоне видимости или выходит из нее, меняем значение флага видимости\n */\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n setVisible(true);\n } else {\n setVisible(false);\n }\n });\n };\n\n const { scrollRef, trackRef } = useCarousel({\n index,\n axis: 'x',\n scrollAlign: 'start',\n detectActive: true,\n debounceMs: 250,\n onIndexChange: setIndex,\n });\n\n const PreviousButton = useMemo(\n () => (\n <StyledArrow\n type=\"button\"\n aria-label=\"Предыдущий сегмент\"\n onClick={onPrev}\n tabIndex={disabled ? -1 : 0}\n disabled={disabled}\n >\n <IconDisclosureLeft color={`var(${tokens.arrowColor})`} />\n </StyledArrow>\n ),\n [onPrev],\n );\n\n const NextButton = useMemo(\n () => (\n <StyledArrow\n type=\"button\"\n aria-label=\"Следующий сегмент\"\n onClick={onNext}\n tabIndex={disabled ? -1 : 0}\n disabled={disabled}\n >\n <IconDisclosureRight color={`var(${tokens.arrowColor})`} />\n </StyledArrow>\n ),\n [onNext],\n );\n\n useEffect(() => {\n selectionMode && setSelectionMode(selectionMode);\n setDisabledGroup(disabled);\n }, [selectionMode, disabled]);\n\n useEffect(() => {\n // Intersection observer для первого сегмента\n const observeFirstItem = new IntersectionObserver(onIntersecting(setFirstItemVisible), {\n root: null,\n rootMargin: '0px',\n threshold: 0.5,\n });\n\n // Intersection observer для последнего сегмента\n const observeLastItem = new IntersectionObserver(onIntersecting(setLastItemVisible), {\n root: null,\n rootMargin: '0px',\n threshold: 0.5,\n });\n\n // получаем список сегментов внутри SegmentGroup\n const childrenArray = Array.from(trackRef.current?.children || []) as Array<Element>;\n if (childrenArray.length) {\n // подписываемся на событие появление внутри SegmentGroup\n observeFirstItem.observe(childrenArray[0]);\n observeLastItem.observe(childrenArray[childrenArray.length - 1]);\n }\n\n return () => {\n // отписываемся от события появления внутри SegmentGroup\n observeFirstItem.disconnect();\n observeLastItem.disconnect();\n };\n }, [children]);\n\n return (\n <Root\n view={view}\n size={size}\n id={segmentGroupId}\n ref={outerRef}\n filledBackground={filledBackgroundAttr}\n disabled={disabled}\n pilled={pilledAttr}\n className={cx(pilledClass, filledClass, stretchClass)}\n {...rest}\n >\n {!firstItemVisible && PreviousButton}\n <StyledContentWrapper ref={scrollRef as RefObject<HTMLDivElement>}>\n <StyledContent ref={trackRef as MutableRefObject<HTMLDivElement | null>}>{children}</StyledContent>\n </StyledContentWrapper>\n {!lastItemVisible && NextButton}\n </Root>\n );\n });\n\nexport const segmentGroupConfig = {\n name: 'SegmentGroup',\n tag: 'div',\n layout: segmentGroupRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n stretch: {\n css: stretchCSS,\n attrs: true,\n },\n filledBackground: {\n css: filledBackgroundCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'clear',\n size: 'xs',\n },\n};\n"],"names":["segmentGroupRoot","Root","forwardRef","props","outerRef","id","selectionMode","pilled","stretch","_props$filledBackgrou","filledBackground","_props$disabled","disabled","size","view","children","rest","_objectWithoutProperties","_excluded","_useSegmentInner","useSegmentInner","setSelectionMode","setDisabledGroup","_useState","useState","_useState2","_slicedToArray","index","setIndex","_useState3","_useState4","firstItemVisible","setFirstItemVisible","_useState5","_useState6","lastItemVisible","setLastItemVisible","uniqId","safeUseId","segmentGroupId","pilledAttr","filledBackgroundAttr","pilledClass","classes","segmentPilled","undefined","filledClass","segmentGroupFilledBackground","stretchClass","segmentStretch","items","Children","map","child","onPrev","useCallback","prevIndex","onNext","length","onIntersecting","setVisible","entries","forEach","entry","isIntersecting","_useCarousel","useCarousel","axis","scrollAlign","detectActive","debounceMs","onIndexChange","scrollRef","trackRef","PreviousButton","useMemo","React","createElement","StyledArrow","type","onClick","tabIndex","IconDisclosureLeft","color","concat","tokens","arrowColor","NextButton","IconDisclosureRight","useEffect","_trackRef$current","observeFirstItem","IntersectionObserver","root","rootMargin","threshold","observeLastItem","childrenArray","Array","from","current","observe","disconnect","_extends","ref","className","cx","StyledContentWrapper","StyledContent","segmentGroupConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","disabledCSS","attrs","pilledCSS","stretchCSS","filledBackgroundCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;IAmBaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAkD,EAAA;AAAA,EAAA,oBAC/EC,UAAU,CAAoC,UAACC,KAAK,EAAEC,QAAQ,EAAK;AAC/D,IAAA,IACIC,EAAE,GAUFF,KAAK,CAVLE,EAAE;MACFC,aAAa,GASbH,KAAK,CATLG,aAAa;MACbC,MAAM,GAQNJ,KAAK,CARLI,MAAM;MACNC,OAAO,GAOPL,KAAK,CAPLK,OAAO;MAAAC,qBAAA,GAOPN,KAAK,CANLO,gBAAgB;AAAhBA,MAAAA,gBAAgB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,qBAAA;MAAAE,eAAA,GAMxBR,KAAK,CALLS,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;MAChBE,IAAI,GAIJV,KAAK,CAJLU,IAAI;MACJC,IAAI,GAGJX,KAAK,CAHLW,IAAI;MACJC,QAAQ,GAERZ,KAAK,CAFLY,QAAQ;AACLC,MAAAA,IAAI,GAAAC,wBAAA,CACPd,KAAK,EAAAe,SAAA,CAAA,CAAA;AAET,IAAA,IAAAC,gBAAA,GAA+CC,eAAe,EAAE;MAAxDC,gBAAgB,GAAAF,gBAAA,CAAhBE,gBAAgB;MAAEC,gBAAgB,GAAAH,gBAAA,CAAhBG,gBAAgB,CAAA;AAE1C,IAAA,IAAAC,SAAA,GAA0BC,QAAQ,CAAC,CAAC,CAAC;MAAAC,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AAAA;KACR;AACDzG,IAAAA,QAAQ,EAAE;AACNuG,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDhH,IAAAA,MAAM,EAAE;AACJ4G,MAAAA,GAAG,EAAEK,MAAS;AACdD,MAAAA,KAAK,EAAE,IAAA;KACV;AACD/G,IAAAA,OAAO,EAAE;AACL2G,MAAAA,GAAG,EAAEM,MAAU;AACfF,MAAAA,KAAK,EAAE,IAAA;KACV;AACD7G,IAAAA,gBAAgB,EAAE;AACdyG,MAAAA,GAAG,EAAEO,MAAmB;AACxBH,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDI,EAAAA,QAAQ,EAAE;AACN7G,IAAAA,IAAI,EAAE,OAAO;AACbD,IAAAA,IAAI,EAAE,IAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"SegmentGroup.js","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useRef, KeyboardEvent } from 'react';\nimport type { RefObject, MutableRefObject } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../../../engines/types';\nimport { classes } from '../../tokens';\nimport { cx } from '../../../../utils';\nimport { useSegmentInner } from '../../SegmentProvider/SegmentProvider';\n\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as filledBackgroundCSS } from './variations/_filledBackgound/base';\nimport { base as stretchCSS } from './variations/_stretch/base';\nimport { base as orientationCSS } from './variations/_orientation/base';\nimport type { SegmentGroupProps } from './SegmentGroup.types';\nimport { StyledContent, StyledContentWrapper, base } from './SegmentGroup.styles';\n\nenum Keys {\n end = 35,\n home = 36,\n left = 37,\n right = 39,\n}\n\nexport const getChildNodes = (wrapper: HTMLElement | null) => {\n const container = wrapper?.firstChild;\n return container ? (Array.from(container?.childNodes) as HTMLElement[]) : [];\n};\nexport const segmentGroupRoot = (Root: RootProps<HTMLDivElement, SegmentGroupProps>) =>\n forwardRef<HTMLDivElement, SegmentGroupProps>((props, outerRef) => {\n const {\n id,\n selectionMode,\n pilled,\n stretch,\n orientation = 'horizontal',\n filledBackground = false,\n hasBackground = false,\n disabled = false,\n size,\n view,\n children,\n ...rest\n } = props;\n\n const scrollRef = useRef<HTMLElement | null>(null);\n const trackRef = useRef<HTMLElement | null>(null);\n\n const { setSelectionMode, setDisabledGroup } = useSegmentInner();\n\n const uniqId = safeUseId();\n const segmentGroupId = id || uniqId;\n const isVertical = orientation === 'vertical';\n\n const pilledAttr = hasBackground && pilled;\n const filledBackgroundAttr = filledBackground || hasBackground;\n\n const stretchClass = stretch ? classes.segmentStretch : undefined;\n const orientationClass = isVertical ? classes.segmentVertical : undefined;\n\n const pilledClass = pilledAttr ? classes.segmentPilled : undefined;\n const filledClass = filledBackgroundAttr ? classes.segmentGroupFilledBackground : undefined;\n\n const onKeyDown = useCallback((event: KeyboardEvent<HTMLDivElement>) => {\n const childNodes = getChildNodes(scrollRef?.current);\n\n const index = childNodes.findIndex((child) => document.activeElement === child);\n\n const minIndex = 0;\n const maxIndex = childNodes.length - 1;\n let nextIndex: number;\n\n switch (event.keyCode) {\n case Keys.end:\n nextIndex = maxIndex;\n break;\n case Keys.left:\n nextIndex = index > minIndex ? index - 1 : index;\n break;\n case Keys.right:\n nextIndex = index < maxIndex ? index + 1 : index;\n break;\n case Keys.home:\n nextIndex = minIndex;\n break;\n default:\n return;\n }\n\n if (nextIndex !== index) {\n event.preventDefault();\n childNodes[nextIndex]?.focus();\n childNodes[nextIndex]?.scrollIntoView({\n block: 'center',\n inline: 'center',\n behavior: 'smooth',\n });\n }\n }, []);\n\n useEffect(() => {\n selectionMode && setSelectionMode(selectionMode);\n setDisabledGroup(disabled);\n }, [selectionMode, disabled]);\n\n return (\n <Root\n view={view}\n size={size}\n orientation={orientation}\n id={segmentGroupId}\n ref={outerRef}\n filledBackground={filledBackgroundAttr}\n disabled={disabled}\n pilled={pilledAttr}\n className={cx(pilledClass, filledClass, stretchClass, orientationClass)}\n onKeyDown={onKeyDown}\n {...rest}\n >\n <StyledContentWrapper ref={scrollRef as RefObject<HTMLDivElement>}>\n <StyledContent ref={trackRef as MutableRefObject<HTMLDivElement | null>}>{children}</StyledContent>\n </StyledContentWrapper>\n </Root>\n );\n });\n\nexport const segmentGroupConfig = {\n name: 'SegmentGroup',\n tag: 'div',\n layout: segmentGroupRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n stretch: {\n css: stretchCSS,\n attrs: true,\n },\n orientation: {\n css: orientationCSS,\n },\n filledBackground: {\n css: filledBackgroundCSS,\n attrs: true,\n },\n },\n defaults: {\n size: 'xs',\n },\n};\n"],"names":["Keys","getChildNodes","wrapper","container","firstChild","Array","from","childNodes","segmentGroupRoot","Root","forwardRef","props","outerRef","id","selectionMode","pilled","stretch","_props$orientation","orientation","_props$filledBackgrou","filledBackground","_props$hasBackground","hasBackground","_props$disabled","disabled","size","view","children","rest","_objectWithoutProperties","_excluded","scrollRef","useRef","trackRef","_useSegmentInner","useSegmentInner","setSelectionMode","setDisabledGroup","uniqId","safeUseId","segmentGroupId","isVertical","pilledAttr","filledBackgroundAttr","stretchClass","classes","segmentStretch","undefined","orientationClass","segmentVertical","pilledClass","segmentPilled","filledClass","segmentGroupFilledBackground","onKeyDown","useCallback","event","current","index","findIndex","child","document","activeElement","minIndex","maxIndex","length","nextIndex","keyCode","end","left","right","home","_childNodes$nextIndex","_childNodes$nextIndex2","preventDefault","focus","scrollIntoView","block","inline","behavior","useEffect","React","createElement","_extends","ref","className","cx","StyledContentWrapper","StyledContent","segmentGroupConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","disabledCSS","attrs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,EAAAA,QAAQ,EAAE;AACN/E,IAAAA,IAAI,EAAE,IAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import './SegmentGroup.styles_m9i9p0.css';
1
+ import './SegmentGroup.styles_6y4o38.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
4
  var base = "b2sori2";
@@ -12,11 +12,6 @@ var StyledContentWrapper = /*#__PURE__*/styled('div')({
12
12
  "class": "spuzt9m",
13
13
  propsAsIs: false
14
14
  });
15
- var StyledArrow = /*#__PURE__*/styled('button')({
16
- name: "StyledArrow",
17
- "class": "s1qf4oye",
18
- propsAsIs: false
19
- });
20
15
 
21
- export { StyledArrow, StyledContent, StyledContentWrapper, base };
16
+ export { StyledContent, StyledContentWrapper, base };
22
17
  //# sourceMappingURL=SegmentGroup.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentGroup.styles.js","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { addFocus } from '../../../../mixins';\nimport { tokens } from '../../tokens';\n\nexport const base = css`\n display: inline-flex;\n align-items: center;\n`;\n\nexport const StyledContent = styled.div`\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n`;\n\nexport const StyledContentWrapper = styled.div`\n position: relative;\n height: 100%;\n margin: 0;\n\n /* allows correctly display outline focus on segment item */\n padding: 0.25rem;\n\n /* stylelint-disable-next-line selector-max-empty-lines, selector-nested-pattern, selector-type-no-unknown */\n ::-webkit-scrollbar {\n display: none;\n }\n\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scroll-snap-type: x mandatory;\n`;\n\nexport const StyledArrow = styled.button`\n display: flex;\n cursor: pointer;\n border: none;\n background-color: transparent;\n padding: 0;\n outline: none;\n\n ${addFocus({\n outlineSize: '0.063rem',\n outlineOffset: '-0.125rem',\n outlineColor: `var(${tokens.outlineFocusColor})`,\n outlineRadius: 'calc(var(--plasma_private-outline-radius) - 0.063rem)',\n })};\n\n &[disabled] {\n cursor: not-allowed;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","StyledContentWrapper","StyledArrow"],"mappings":";;AAMO,IAAMA,IAAI,GAGhB,UAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIlC,EAAA;AAEM,IAAMC,oBAAoB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAiBzC,EAAA;AAEM,IAAME,WAAW,gBAAGL,MAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAkBhC;;;;"}
1
+ {"version":3,"file":"SegmentGroup.styles.js","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { tokens } from '../../tokens';\n\nexport const base = css`\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n\n --plasma_private-outline-radius: var(${tokens.groupBorderRadius});\n border-radius: var(${tokens.groupBorderRadius});\n`;\n\nexport const StyledContent = styled.div`\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n max-width: 100%;\n`;\n\nexport const StyledContentWrapper = styled.div`\n position: relative;\n height: 100%;\n width: 100%;\n\n display: flex;\n align-items: center;\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","StyledContentWrapper"],"mappings":";;AAKO,IAAMA,IAAI,GAOhB,UAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKlC,EAAA;AAEM,IAAMC,oBAAoB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,sBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOzC;;;;"}
@@ -0,0 +1,3 @@
1
+ .b2sori2{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;--plasma_private-outline-radius:var(--plasma-segment-group-border-radius);border-radius:var(--plasma-segment-group-border-radius);}
2
+ .sin9wo2{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;}
3
+ .spuzt9m{position:relative;height:100%;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
@@ -1,4 +1,4 @@
1
- import './base_escgtx.css';
1
+ import './base_a7w5s0.css';
2
2
  var base = "b13sjoz1";
3
3
 
4
4
  export { base };