@salutejs/plasma-new-hope 0.175.0-canary.1452.11541985977.0 → 0.175.0-canary.1500.11549138907.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (370) hide show
  1. package/cjs/components/Badge/Badge.css +2 -0
  2. package/cjs/components/Badge/Badge.js +17 -4
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +2 -1
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Badge/variations/_truncate/base.js +9 -0
  7. package/cjs/components/Badge/variations/_truncate/base.js.map +1 -0
  8. package/cjs/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  9. package/cjs/components/Slider/Slider.css +13 -15
  10. package/cjs/components/Slider/Slider.js +2 -11
  11. package/cjs/components/Slider/Slider.js.map +1 -1
  12. package/cjs/components/Slider/Slider.tokens.js +17 -23
  13. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  14. package/cjs/components/Slider/components/Double/Double.css +8 -8
  15. package/cjs/components/Slider/components/Double/Double.js +23 -58
  16. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  17. package/cjs/components/Slider/components/Single/Single.css +14 -14
  18. package/cjs/components/Slider/components/Single/Single.js +33 -64
  19. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  20. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  21. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  22. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  23. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  24. package/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  25. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  26. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  27. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  28. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  29. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  30. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  31. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  32. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  33. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  34. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  35. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  36. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  37. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  38. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  39. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  40. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  41. package/cjs/components/Slider/utils/index.js +10 -28
  42. package/cjs/components/Slider/utils/index.js.map +1 -1
  43. package/cjs/components/Slider/variations/_view/base.js +1 -1
  44. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  45. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  46. package/cjs/components/Tabs/tokens.js +2 -1
  47. package/cjs/components/Tabs/tokens.js.map +1 -1
  48. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  49. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +14 -3
  50. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  51. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  52. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  53. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_hfqv5b.css → HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  54. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +9 -0
  55. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  56. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  57. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  58. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +14 -3
  59. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  60. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  61. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  62. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +5 -0
  63. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +9 -0
  64. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  65. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  66. package/cjs/index.css +29 -25
  67. package/emotion/cjs/components/Badge/Badge.js +22 -4
  68. package/emotion/cjs/components/Badge/Badge.tokens.js +2 -1
  69. package/emotion/cjs/components/Badge/variations/_truncate/base.js +10 -0
  70. package/emotion/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  71. package/emotion/cjs/components/Slider/Slider.js +2 -10
  72. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  73. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  74. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  75. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  76. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  77. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  78. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  79. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  80. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  81. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  82. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  83. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  84. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  85. package/emotion/cjs/components/Tabs/tokens.js +2 -1
  86. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  87. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  88. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  89. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  90. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  91. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  92. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  93. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  94. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  95. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  96. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  97. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  98. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +49 -16
  99. package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  100. package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  101. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  102. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  103. package/emotion/es/components/Badge/Badge.js +23 -4
  104. package/emotion/es/components/Badge/Badge.tokens.js +2 -1
  105. package/emotion/es/components/Badge/variations/_truncate/base.js +4 -0
  106. package/emotion/es/components/Badge/variations/_truncate/tokens.json +1 -0
  107. package/emotion/es/components/Slider/Slider.js +2 -11
  108. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  109. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  110. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  111. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  112. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  113. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  114. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  115. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  116. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  117. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  118. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  119. package/emotion/es/components/Slider/utils/index.js +10 -28
  120. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  121. package/emotion/es/components/Tabs/tokens.js +2 -1
  122. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  123. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
  124. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  125. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  126. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  127. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
  128. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  129. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  130. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
  131. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  132. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  133. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  134. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +49 -16
  135. package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
  136. package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
  137. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  138. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  139. package/es/components/Badge/Badge.css +2 -0
  140. package/es/components/Badge/Badge.js +18 -5
  141. package/es/components/Badge/Badge.js.map +1 -1
  142. package/es/components/Badge/Badge.tokens.js +2 -1
  143. package/es/components/Badge/Badge.tokens.js.map +1 -1
  144. package/es/components/Badge/variations/_truncate/base.js +5 -0
  145. package/es/components/Badge/variations/_truncate/base.js.map +1 -0
  146. package/es/components/Badge/variations/_truncate/base_nf9u2h.css +1 -0
  147. package/es/components/Slider/Slider.css +13 -15
  148. package/es/components/Slider/Slider.js +2 -11
  149. package/es/components/Slider/Slider.js.map +1 -1
  150. package/es/components/Slider/Slider.tokens.js +17 -23
  151. package/es/components/Slider/Slider.tokens.js.map +1 -1
  152. package/es/components/Slider/components/Double/Double.css +8 -8
  153. package/es/components/Slider/components/Double/Double.js +19 -54
  154. package/es/components/Slider/components/Double/Double.js.map +1 -1
  155. package/es/components/Slider/components/Single/Single.css +14 -14
  156. package/es/components/Slider/components/Single/Single.js +34 -65
  157. package/es/components/Slider/components/Single/Single.js.map +1 -1
  158. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  159. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  160. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  161. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  162. package/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  163. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  164. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  165. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  166. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  167. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  168. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  169. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  170. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  171. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  172. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  173. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  174. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  175. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  176. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  177. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  178. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  179. package/es/components/Slider/utils/index.js +10 -28
  180. package/es/components/Slider/utils/index.js.map +1 -1
  181. package/es/components/Slider/variations/_view/base.js +1 -1
  182. package/es/components/Slider/variations/_view/base.js.map +1 -1
  183. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  184. package/es/components/Tabs/tokens.js +2 -1
  185. package/es/components/Tabs/tokens.js.map +1 -1
  186. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +7 -5
  187. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -4
  188. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
  189. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  190. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  191. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_hfqv5b.css → HorizontalTabItem.styles_1vj7dbl.css} +1 -1
  192. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +5 -0
  193. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js.map +1 -0
  194. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base_1b34xv3.css +1 -0
  195. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +7 -5
  196. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -4
  197. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
  198. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  199. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  200. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_6ssvos.css +5 -0
  201. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +5 -0
  202. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js.map +1 -0
  203. package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base_1nwonlh.css +1 -0
  204. package/es/index.css +29 -25
  205. package/package.json +2 -2
  206. package/styled-components/cjs/components/Badge/Badge.js +22 -4
  207. package/styled-components/cjs/components/Badge/Badge.tokens.js +2 -1
  208. package/styled-components/cjs/components/Badge/variations/_truncate/base.js +10 -0
  209. package/styled-components/cjs/components/Badge/variations/_truncate/tokens.json +1 -0
  210. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  211. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  212. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  213. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  214. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  215. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  216. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  217. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  218. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  219. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  220. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  221. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  222. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  223. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  224. package/styled-components/cjs/components/Tabs/tokens.js +2 -1
  225. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +19 -3
  226. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  227. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +10 -0
  228. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  229. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +19 -3
  230. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  231. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +10 -0
  232. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  233. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  234. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  235. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  236. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  237. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +49 -16
  238. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  239. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  240. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  241. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  242. package/styled-components/es/components/Badge/Badge.js +23 -4
  243. package/styled-components/es/components/Badge/Badge.tokens.js +2 -1
  244. package/styled-components/es/components/Badge/variations/_truncate/base.js +4 -0
  245. package/styled-components/es/components/Badge/variations/_truncate/tokens.json +1 -0
  246. package/styled-components/es/components/Slider/Slider.js +2 -11
  247. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  248. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  249. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  250. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  251. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  252. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  253. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  254. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  255. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  256. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  257. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  258. package/styled-components/es/components/Slider/utils/index.js +10 -28
  259. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  260. package/styled-components/es/components/Tabs/tokens.js +2 -1
  261. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +20 -3
  262. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  263. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.js +4 -0
  264. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/tokens.json +1 -0
  265. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +20 -3
  266. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +2 -2
  267. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.js +4 -0
  268. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/tokens.json +1 -0
  269. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +3 -0
  270. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +5 -1
  271. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  272. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  273. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +49 -16
  274. package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
  275. package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
  276. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  277. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  278. package/types/components/Badge/Badge.d.ts +10 -2
  279. package/types/components/Badge/Badge.d.ts.map +1 -1
  280. package/types/components/Badge/Badge.tokens.d.ts +1 -0
  281. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  282. package/types/components/Badge/Badge.types.d.ts +5 -0
  283. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  284. package/types/components/Badge/variations/_truncate/base.d.ts +2 -0
  285. package/types/components/Badge/variations/_truncate/base.d.ts.map +1 -0
  286. package/types/components/Slider/Slider.d.ts.map +1 -1
  287. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  288. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  289. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  290. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  291. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  292. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  293. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  294. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  295. package/types/components/Slider/components/Single/Single.types.d.ts +7 -79
  296. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  297. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  298. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  299. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  300. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  301. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  302. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  303. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  304. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  305. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  306. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  307. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  308. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  309. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  310. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  311. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  312. package/types/components/Slider/utils/index.d.ts +8 -26
  313. package/types/components/Slider/utils/index.d.ts.map +1 -1
  314. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  315. package/types/components/Tabs/TabItem.types.d.ts +5 -0
  316. package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
  317. package/types/components/Tabs/tokens.d.ts +1 -0
  318. package/types/components/Tabs/tokens.d.ts.map +1 -1
  319. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts +9 -2
  320. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
  321. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  322. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts +2 -0
  323. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_truncate/base.d.ts.map +1 -0
  324. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts +9 -2
  325. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
  326. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  327. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts +2 -0
  328. package/types/components/Tabs/ui/vertical/VerticalTabItem/variations/_truncate/base.d.ts.map +1 -0
  329. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
  330. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  331. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +6 -0
  332. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  333. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  334. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -80
  335. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  336. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
  337. package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
  338. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
  339. package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
  340. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
  341. package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
  342. package/types/examples/plasma_web/components/Badge/Badge.d.ts +3 -0
  343. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  344. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  345. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -80
  346. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  347. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  348. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  349. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  350. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  351. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  352. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  353. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  354. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  355. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
  356. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  357. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  358. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  359. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  360. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  361. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  362. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  363. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  364. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  365. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  366. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css +0 -5
  367. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  368. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  369. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  370. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
@@ -14,10 +14,16 @@ var _VerticalTabItem = /*#__PURE__*/require("./VerticalTabItem.styles");
14
14
  var _base = /*#__PURE__*/require("./variations/_view/base");
15
15
  var _base2 = /*#__PURE__*/require("./variations/_size/base");
16
16
  var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
17
- var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
17
+ var _base4 = /*#__PURE__*/require("./variations/_truncate/base");
18
+ var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxWidth"];
18
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
21
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
27
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22
28
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
29
  var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItemRoot(Root) {
@@ -36,11 +42,13 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
36
42
  tabIndex = props.tabIndex,
37
43
  className = props.className,
38
44
  onClick = props.onClick,
45
+ maxWidth = props.maxWidth,
39
46
  rest = _objectWithoutProperties(props, _excluded);
40
47
  var innerRef = (0, _react.useRef)(null);
41
48
  var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
42
49
  var refs = (0, _react.useContext)(_TabsContext.TabsContext);
43
50
  var role = 'tab';
51
+ var truncate = maxWidth !== 'auto';
44
52
  var selectedClass = selected ? _tokens.classes.selectedTabsItem : undefined;
45
53
  var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
46
54
  var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
@@ -92,11 +100,16 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
92
100
  role: role,
93
101
  view: view,
94
102
  size: size,
103
+ truncate: truncate,
95
104
  onFocus: onItemFocus,
96
105
  tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
97
- className: (0, _utils.cx)(selectedClass, className),
106
+ className: (0, _utils.cx)(selectedClass, truncate && _tokens.classes.tabsTruncate, className),
98
107
  onClick: handleClick
99
- }, rest), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.LeftContent, {
108
+ }, rest, {
109
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
110
+ maxWidth: maxWidth
111
+ })
112
+ }), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.LeftContent, {
100
113
  className: _tokens.classes.tabLeftContent
101
114
  }, contentLeft), /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.StyledContent, {
102
115
  className: _tokens.classes.tabContent
@@ -120,6 +133,9 @@ var verticalTabItemConfig = exports.verticalTabItemConfig = {
120
133
  disabled: {
121
134
  css: _base3.base,
122
135
  attrs: true
136
+ },
137
+ truncate: {
138
+ css: _base4.base
123
139
  }
124
140
  },
125
141
  defaults: {
@@ -12,7 +12,7 @@ var _templateObject;
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
14
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n align-items: center;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingOrientationVertical, /*#__PURE__*/(0, _mixins.addFocus)({
15
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n align-items: center;\n white-space: nowrap;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingOrientationVertical, /*#__PURE__*/(0, _mixins.addFocus)({
16
16
  outlineSize: '0.063rem',
17
17
  outlineOffset: '-0.125rem',
18
18
  outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
@@ -24,7 +24,7 @@ var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["defa
24
24
  })(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], _tokens.tokens.itemContentPaddingClear, _tokens.tokens.itemContentPadding);
25
25
  var TabItemValue = exports.TabItemValue = /*#__PURE__*/_styledComponents["default"].span.withConfig({
26
26
  componentId: "plasma-new-hope__sc-1pflgj8-1"
27
- })(["color:var(", ");"], _tokens.tokens.itemValueColor);
27
+ })(["white-space:nowrap;color:var(", ");"], _tokens.tokens.itemValueColor);
28
28
  var RightContent = exports.RightContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
29
29
  componentId: "plasma-new-hope__sc-1pflgj8-2"
30
30
  })(["display:flex;color:inherit;&:hover{color:inherit;}"]);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _tokens = /*#__PURE__*/require("../../../../../tokens");
9
+ var _VerticalTabItem = /*#__PURE__*/require("../../VerticalTabItem.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], _tokens.classes.tabsTruncate, _VerticalTabItem.StyledContent, _VerticalTabItem.TabItemValue);
@@ -35,6 +35,9 @@ var config = exports.config = {
35
35
  },
36
36
  clear: {
37
37
  "true": /*#__PURE__*/(0, _styledComponents.css)([""])
38
+ },
39
+ truncate: {
40
+ "true": /*#__PURE__*/(0, _styledComponents.css)([""])
38
41
  }
39
42
  }
40
43
  };
@@ -31,6 +31,9 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
+ maxWidth: {
35
+ control: { type: 'text' },
36
+ },
34
37
  ...disableProps(['contentLeft', 'contentRight']),
35
38
  },
36
39
  };
@@ -64,7 +67,7 @@ export const Default: Story = {
64
67
  },
65
68
  },
66
69
  args: {
67
- text: 'Hello',
70
+ text: 'Hello Kitty',
68
71
  view: 'default',
69
72
  size: 'm',
70
73
  enableContentLeft: false,
@@ -72,6 +75,7 @@ export const Default: Story = {
72
75
  clear: false,
73
76
  pilled: false,
74
77
  transparent: false,
78
+ maxWidth: '',
75
79
  },
76
80
  render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
77
81
  const iconSize = size === 'l' ? '1rem' : '0.75rem';
@@ -18,9 +18,9 @@ var config = exports.config = {
18
18
  gradient: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-solid-tertiary);", ":var(--on-light-surface-solid-card);", ":var(--surface-accent-gradient);", ":var(--surface-solid-tertiary);", ":var(--surface-accent-gradient);", ":var(--text-secondary);", ":var(--surface-transparent-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-primary);"], _Slider.sliderTokens.labelColor, _Slider.sliderTokens.rangeValueColor, _Slider.sliderTokens.thumbBorderColor, _Slider.sliderTokens.thumbBackgroundColor, _Slider.sliderTokens.thumbFocusBorderColor, _Slider.sliderTokens.railBackgroundColor, _Slider.sliderTokens.fillColor, _Slider.sliderTokens.textFieldColor, _Slider.sliderTokens.textFieldBackgroundColor, _Slider.sliderTokens.textFieldCaretColor, _Slider.sliderTokens.textFieldPlaceholderColor, _Slider.sliderTokens.textFiledFocusColor, _Slider.sliderTokens.textFieldActiveColor)
19
19
  },
20
20
  size: {
21
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":0.875rem;", ":1rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":0.875rem;", ":0.875rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":1rem;", ":1.25rem;", ":0.0625rem solid;", ":1.625rem;", ":0.25rem;", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":3.5rem;", ":1.25rem 1rem 1.25rem 1rem;", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _Slider.sliderTokens.size, _Slider.sliderTokens.doubleWrapperGap, _Slider.sliderTokens.labelWrapperGap, _Slider.sliderTokens.labelWrapperMarginBottom, _Slider.sliderTokens.labelWrapperMarginRight, _Slider.sliderTokens.labelWrapperVerticalMargin, _Slider.sliderTokens.labelFontFamily, _Slider.sliderTokens.labelFontSize, _Slider.sliderTokens.labelFontStyle, _Slider.sliderTokens.labelFontWeight, _Slider.sliderTokens.labelLetterSpacing, _Slider.sliderTokens.labelLineHeight, _Slider.sliderTokens.rangeValueHorizontalMargin, _Slider.sliderTokens.rangeValueBottomOffset, _Slider.sliderTokens.rangeValueHorizontalOffset, _Slider.sliderTokens.rangeValueVerticalMargin, _Slider.sliderTokens.valueFontFamily, _Slider.sliderTokens.valueFontSize, _Slider.sliderTokens.valueFontStyle, _Slider.sliderTokens.valueFontWeight, _Slider.sliderTokens.valueLetterSpacing, _Slider.sliderTokens.valueLineHeight, _Slider.sliderTokens.thumbSize, _Slider.sliderTokens.thumbSizeLarge, _Slider.sliderTokens.thumbBorder, _Slider.sliderTokens.currentValueTopOffset, _Slider.sliderTokens.railThickness, _Slider.sliderTokens.railBorderRadius, _Slider.sliderTokens.railIndent, _Slider.sliderTokens.textFieldWrapperGap, _Slider.sliderTokens.textFieldHeight, _Slider.sliderTokens.textFieldPadding, _Slider.sliderTokens.textFieldBorderRadius, _Slider.sliderTokens.textFieldFontFamily, _Slider.sliderTokens.textFieldFontSize, _Slider.sliderTokens.textFieldFontStyle, _Slider.sliderTokens.textFieldFontWeight, _Slider.sliderTokens.textFieldLetterSpacing, _Slider.sliderTokens.textFieldLineHeight),
22
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":0.875rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.75rem;", ":0.75rem;", ":0.875rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":1rem;", ":1.25rem;", ":0.0625rem solid;", ":1.75rem;", ":0.25rem;", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _Slider.sliderTokens.size, _Slider.sliderTokens.doubleWrapperGap, _Slider.sliderTokens.labelWrapperGap, _Slider.sliderTokens.labelWrapperMarginBottom, _Slider.sliderTokens.labelWrapperMarginRight, _Slider.sliderTokens.labelWrapperVerticalMargin, _Slider.sliderTokens.labelFontFamily, _Slider.sliderTokens.labelFontSize, _Slider.sliderTokens.labelFontStyle, _Slider.sliderTokens.labelFontWeight, _Slider.sliderTokens.labelLetterSpacing, _Slider.sliderTokens.labelLineHeight, _Slider.sliderTokens.rangeValueHorizontalMargin, _Slider.sliderTokens.rangeValueBottomOffset, _Slider.sliderTokens.rangeValueHorizontalOffset, _Slider.sliderTokens.rangeValueVerticalMargin, _Slider.sliderTokens.valueFontFamily, _Slider.sliderTokens.valueFontSize, _Slider.sliderTokens.valueFontStyle, _Slider.sliderTokens.valueFontWeight, _Slider.sliderTokens.valueLetterSpacing, _Slider.sliderTokens.valueLineHeight, _Slider.sliderTokens.thumbSize, _Slider.sliderTokens.thumbSizeLarge, _Slider.sliderTokens.thumbBorder, _Slider.sliderTokens.currentValueTopOffset, _Slider.sliderTokens.railThickness, _Slider.sliderTokens.railBorderRadius, _Slider.sliderTokens.railIndent, _Slider.sliderTokens.textFieldWrapperGap, _Slider.sliderTokens.textFieldHeight, _Slider.sliderTokens.textFieldPadding, _Slider.sliderTokens.textFieldBorderRadius, _Slider.sliderTokens.textFieldFontFamily, _Slider.sliderTokens.textFieldFontSize, _Slider.sliderTokens.textFieldFontStyle, _Slider.sliderTokens.textFieldFontWeight, _Slider.sliderTokens.textFieldLetterSpacing, _Slider.sliderTokens.textFieldLineHeight),
23
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":1rem;", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":0.875rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":0.625rem;", ":0.625rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":1.25rem;", ":0.0625rem solid;", ":1.25rem;", ":0.25rem;", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":2.5rem;", ":0.5rem 1rem 0.5rem 1rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Slider.sliderTokens.size, _Slider.sliderTokens.doubleWrapperGap, _Slider.sliderTokens.labelWrapperGap, _Slider.sliderTokens.labelWrapperMarginBottom, _Slider.sliderTokens.labelWrapperMarginRight, _Slider.sliderTokens.labelWrapperVerticalMargin, _Slider.sliderTokens.labelFontFamily, _Slider.sliderTokens.labelFontSize, _Slider.sliderTokens.labelFontStyle, _Slider.sliderTokens.labelFontWeight, _Slider.sliderTokens.labelLetterSpacing, _Slider.sliderTokens.labelLineHeight, _Slider.sliderTokens.rangeValueHorizontalMargin, _Slider.sliderTokens.rangeValueBottomOffset, _Slider.sliderTokens.rangeValueHorizontalOffset, _Slider.sliderTokens.rangeValueVerticalMargin, _Slider.sliderTokens.valueFontFamily, _Slider.sliderTokens.valueFontSize, _Slider.sliderTokens.valueFontStyle, _Slider.sliderTokens.valueFontWeight, _Slider.sliderTokens.valueLetterSpacing, _Slider.sliderTokens.valueLineHeight, _Slider.sliderTokens.thumbSize, _Slider.sliderTokens.thumbSizeLarge, _Slider.sliderTokens.thumbBorder, _Slider.sliderTokens.currentValueTopOffset, _Slider.sliderTokens.railThickness, _Slider.sliderTokens.railBorderRadius, _Slider.sliderTokens.railIndent, _Slider.sliderTokens.textFieldWrapperGap, _Slider.sliderTokens.textFieldHeight, _Slider.sliderTokens.textFieldPadding, _Slider.sliderTokens.textFieldBorderRadius, _Slider.sliderTokens.textFieldFontFamily, _Slider.sliderTokens.textFieldFontSize, _Slider.sliderTokens.textFieldFontStyle, _Slider.sliderTokens.textFieldFontWeight, _Slider.sliderTokens.textFieldLetterSpacing, _Slider.sliderTokens.textFieldLineHeight)
21
+ l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":0.75rem;", ":-1.25rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":1.5rem;", ":0.125rem solid;", ":1.625rem;", ":var(--plasma-typo-text-s-font-family);", ":var(--plasma-typo-text-s-font-size);", ":var(--plasma-typo-text-s-font-style);", ":var(--plasma-typo-text-s-font-weight);", ":var(--plasma-typo-text-s-letter-spacing);", ":var(--plasma-typo-text-s-line-height);", ":0.25rem;", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":3.5rem;", ":1.25rem 1rem 1.25rem 1rem;", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _Slider.sliderTokens.height, _Slider.sliderTokens.doubleWrapperGap, _Slider.sliderTokens.labelWrapperGap, _Slider.sliderTokens.labelWrapperMarginBottom, _Slider.sliderTokens.labelWrapperMarginRight, _Slider.sliderTokens.labelFontFamily, _Slider.sliderTokens.labelFontSize, _Slider.sliderTokens.labelFontStyle, _Slider.sliderTokens.labelFontWeight, _Slider.sliderTokens.labelLetterSpacing, _Slider.sliderTokens.labelLineHeight, _Slider.sliderTokens.rangeMinValueMargin, _Slider.sliderTokens.rangeMaxValueMargin, _Slider.sliderTokens.rangeValueBottomOffset, _Slider.sliderTokens.rangeValueFontFamily, _Slider.sliderTokens.rangeValueFontSize, _Slider.sliderTokens.rangeValueFontStyle, _Slider.sliderTokens.rangeValueFontWeight, _Slider.sliderTokens.rangeValueLetterSpacing, _Slider.sliderTokens.rangeValueLineHeight, _Slider.sliderTokens.thumbSize, _Slider.sliderTokens.thumbBorder, _Slider.sliderTokens.currentValueTopOffset, _Slider.sliderTokens.currentValueFontFamily, _Slider.sliderTokens.currentValueFontSize, _Slider.sliderTokens.currentValueFontStyle, _Slider.sliderTokens.currentValueFontWeight, _Slider.sliderTokens.currentValueLetterSpacing, _Slider.sliderTokens.currentValueLineHeight, _Slider.sliderTokens.railHeight, _Slider.sliderTokens.railBorderRadius, _Slider.sliderTokens.railIndent, _Slider.sliderTokens.textFieldWrapperGap, _Slider.sliderTokens.textFieldHeight, _Slider.sliderTokens.textFieldPadding, _Slider.sliderTokens.textFieldBorderRadius, _Slider.sliderTokens.textFieldFontFamily, _Slider.sliderTokens.textFieldFontSize, _Slider.sliderTokens.textFieldFontStyle, _Slider.sliderTokens.textFieldFontWeight, _Slider.sliderTokens.textFieldLetterSpacing, _Slider.sliderTokens.textFieldLineHeight),
22
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":0.875rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.75rem;", ":0.75rem;", ":-1.25rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":1.5rem;", ":0.125rem solid;", ":1.75rem;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);", ":0.25rem;", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _Slider.sliderTokens.height, _Slider.sliderTokens.doubleWrapperGap, _Slider.sliderTokens.labelWrapperGap, _Slider.sliderTokens.labelWrapperMarginBottom, _Slider.sliderTokens.labelWrapperMarginRight, _Slider.sliderTokens.labelFontFamily, _Slider.sliderTokens.labelFontSize, _Slider.sliderTokens.labelFontStyle, _Slider.sliderTokens.labelFontWeight, _Slider.sliderTokens.labelLetterSpacing, _Slider.sliderTokens.labelLineHeight, _Slider.sliderTokens.rangeMinValueMargin, _Slider.sliderTokens.rangeMaxValueMargin, _Slider.sliderTokens.rangeValueBottomOffset, _Slider.sliderTokens.rangeValueFontFamily, _Slider.sliderTokens.rangeValueFontSize, _Slider.sliderTokens.rangeValueFontStyle, _Slider.sliderTokens.rangeValueFontWeight, _Slider.sliderTokens.rangeValueLetterSpacing, _Slider.sliderTokens.rangeValueLineHeight, _Slider.sliderTokens.thumbSize, _Slider.sliderTokens.thumbBorder, _Slider.sliderTokens.currentValueTopOffset, _Slider.sliderTokens.currentValueFontFamily, _Slider.sliderTokens.currentValueFontSize, _Slider.sliderTokens.currentValueFontStyle, _Slider.sliderTokens.currentValueFontWeight, _Slider.sliderTokens.currentValueLetterSpacing, _Slider.sliderTokens.currentValueLineHeight, _Slider.sliderTokens.railHeight, _Slider.sliderTokens.railBorderRadius, _Slider.sliderTokens.railIndent, _Slider.sliderTokens.textFieldWrapperGap, _Slider.sliderTokens.textFieldHeight, _Slider.sliderTokens.textFieldPadding, _Slider.sliderTokens.textFieldBorderRadius, _Slider.sliderTokens.textFieldFontFamily, _Slider.sliderTokens.textFieldFontSize, _Slider.sliderTokens.textFieldFontStyle, _Slider.sliderTokens.textFieldFontWeight, _Slider.sliderTokens.textFieldLetterSpacing, _Slider.sliderTokens.textFieldLineHeight),
23
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":1rem;", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":0.875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":0.5rem;", ":-1.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":0.125rem solid;", ":1.25rem;", ":var(--plasma-typo-text-xs-font-family);", ":var(--plasma-typo-text-xs-font-size);", ":var(--plasma-typo-text-xs-font-style);", ":var(--plasma-typo-text-xs-font-weight);", ":var(--plasma-typo-text-xs-letter-spacing);", ":var(--plasma-typo-text-xs-line-height);", ":0.25rem;", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":2.5rem;", ":0.5rem 1rem 0.5rem 1rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Slider.sliderTokens.height, _Slider.sliderTokens.doubleWrapperGap, _Slider.sliderTokens.labelWrapperGap, _Slider.sliderTokens.labelWrapperMarginBottom, _Slider.sliderTokens.labelWrapperMarginRight, _Slider.sliderTokens.labelFontFamily, _Slider.sliderTokens.labelFontSize, _Slider.sliderTokens.labelFontStyle, _Slider.sliderTokens.labelFontWeight, _Slider.sliderTokens.labelLetterSpacing, _Slider.sliderTokens.labelLineHeight, _Slider.sliderTokens.rangeMinValueMargin, _Slider.sliderTokens.rangeMaxValueMargin, _Slider.sliderTokens.rangeValueBottomOffset, _Slider.sliderTokens.rangeValueFontFamily, _Slider.sliderTokens.rangeValueFontSize, _Slider.sliderTokens.rangeValueFontStyle, _Slider.sliderTokens.rangeValueFontWeight, _Slider.sliderTokens.rangeValueLetterSpacing, _Slider.sliderTokens.rangeValueLineHeight, _Slider.sliderTokens.thumbSize, _Slider.sliderTokens.thumbBorder, _Slider.sliderTokens.currentValueTopOffset, _Slider.sliderTokens.currentValueFontFamily, _Slider.sliderTokens.currentValueFontSize, _Slider.sliderTokens.currentValueFontStyle, _Slider.sliderTokens.currentValueFontWeight, _Slider.sliderTokens.currentValueLetterSpacing, _Slider.sliderTokens.currentValueLineHeight, _Slider.sliderTokens.railHeight, _Slider.sliderTokens.railBorderRadius, _Slider.sliderTokens.railIndent, _Slider.sliderTokens.textFieldWrapperGap, _Slider.sliderTokens.textFieldHeight, _Slider.sliderTokens.textFieldPadding, _Slider.sliderTokens.textFieldBorderRadius, _Slider.sliderTokens.textFieldFontFamily, _Slider.sliderTokens.textFieldFontSize, _Slider.sliderTokens.textFieldFontStyle, _Slider.sliderTokens.textFieldFontWeight, _Slider.sliderTokens.textFieldLetterSpacing, _Slider.sliderTokens.textFieldLineHeight)
24
24
  },
25
25
  disabled: {
26
26
  "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Slider.sliderTokens.disabledOpacity)
@@ -3,19 +3,16 @@ import type { ComponentProps } from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { disableProps } from '@salutejs/plasma-sb-utils';
5
5
  import type { StoryObj, Meta } from '@storybook/react';
6
+ import { action } from '@storybook/addon-actions';
6
7
 
7
- import { IconMic } from '../../../../components/_Icon';
8
8
  import { WithTheme } from '../../../_helpers';
9
9
 
10
10
  import { Slider } from './Slider';
11
11
 
12
12
  const sizes = ['l', 'm', 's'];
13
- const pointerSizes = ['small', 'large', 'none'];
14
13
  const views = ['default', 'accent', 'gradient'];
15
- const sliderAligns = ['center', 'left', 'right', 'none'];
16
- const labelPlacements = ['top', 'left'];
17
- const scaleAligns = ['side', 'bottom'];
18
- const orientations: Array<string> = ['vertical', 'horizontal'];
14
+ const labelPlacements = ['outer', 'inner'];
15
+ const rangeValuesPlacement = ['outer', 'inner'];
19
16
 
20
17
  const meta: Meta<typeof Slider> = {
21
18
  title: 'plasma_b2c/Slider',
@@ -34,24 +31,9 @@ const meta: Meta<typeof Slider> = {
34
31
  type: 'inline-radio',
35
32
  },
36
33
  },
37
- pointerSize: {
38
- options: pointerSizes,
39
- control: {
40
- type: 'inline-radio',
41
- },
42
- },
43
- orientation: {
44
- options: orientations,
45
- control: {
46
- type: 'select',
47
- },
48
- },
49
34
  ...disableProps([
50
35
  'value',
51
36
  'onChangeCommitted',
52
- 'onChangeTextField',
53
- 'onBlurTextField',
54
- 'onKeyDownTextField',
55
37
  'ariaLabel',
56
38
  'onChange',
57
39
  'fontSizeMultiplier',
@@ -59,14 +41,6 @@ const meta: Meta<typeof Slider> = {
59
41
  'settings',
60
42
  'hasHoverAnimation',
61
43
  'type',
62
- 'labelContentLeft',
63
- 'rangeValuesPlacement',
64
- 'name',
65
- 'defaultValue',
66
- 'labelContent',
67
- 'showRangeValues',
68
- 'hideMinValueDiff',
69
- 'hideMaxValueDiff',
70
44
  ]),
71
45
  },
72
46
  };
@@ -79,9 +53,8 @@ type StorySingleProps = StoryProps;
79
53
  type StorySingle = StoryObj<StorySingleProps>;
80
54
  type StoryDouble = StoryObj<StoryProps>;
81
55
 
82
- const SliderWrapper = styled.div<{ isVertical?: boolean }>`
83
- width: ${({ isVertical }) => (isVertical ? 'auto' : '25rem')};
84
- height: ${({ isVertical }) => (isVertical ? '25rem' : 'auto')};
56
+ const SliderWrapper = styled.div`
57
+ width: 25rem;
85
58
  `;
86
59
 
87
60
  const StoryDefault = (args: StorySingleProps) => {
@@ -95,86 +68,41 @@ const StoryDefault = (args: StorySingleProps) => {
95
68
  setValue(values);
96
69
  };
97
70
 
98
- const { hasIcon, showIcon, orientation, labelPlacement, labelVerticalPlacement, ...rest } = args;
99
- const isVertical = orientation === 'vertical';
100
-
101
71
  return (
102
- <SliderWrapper isVertical={isVertical}>
103
- <Slider
104
- value={value}
105
- orientation={orientation}
106
- labelPlacement={labelPlacement}
107
- labelContent={showIcon ? <IconMic size={rest.size === 's' ? 'xs' : 's'} /> : null}
108
- onChangeCommitted={onChangeCommittedHandle}
109
- onChange={onChangeHandle}
110
- {...rest}
111
- />
72
+ <SliderWrapper>
73
+ <Slider value={value} onChangeCommitted={onChangeCommittedHandle} onChange={onChangeHandle} {...args} />
112
74
  </SliderWrapper>
113
75
  );
114
76
  };
115
77
 
116
78
  export const Default: StorySingle = {
117
79
  argTypes: {
118
- sliderAlign: {
119
- options: sliderAligns,
120
- control: {
121
- type: 'inline-radio',
122
- },
123
- if: { arg: 'orientation', eq: 'vertical' },
124
- },
125
80
  labelPlacement: {
126
81
  options: labelPlacements,
127
82
  control: {
128
83
  type: 'inline-radio',
129
84
  },
130
- if: { arg: 'orientation', eq: 'horizontal' },
131
- },
132
- labelReversed: {
133
- control: {
134
- type: 'boolean',
135
- expanded: true,
136
- },
137
- if: { arg: 'orientation', eq: 'vertical' },
138
- },
139
- scaleAlign: {
140
- options: scaleAligns,
141
- control: {
142
- type: 'inline-radio',
143
- },
144
- if: { arg: 'orientation', eq: 'horizontal' },
145
85
  },
146
- orientation: {
147
- options: orientations,
86
+ rangeValuesPlacement: {
87
+ options: rangeValuesPlacement,
148
88
  control: {
149
89
  type: 'inline-radio',
150
90
  },
151
91
  },
152
- reversed: {
153
- control: {
154
- type: 'boolean',
155
- },
156
- if: { arg: 'orientation', eq: 'vertical' },
157
- },
158
92
  },
159
93
  args: {
160
94
  view: 'default',
161
95
  size: 'm',
162
- pointerSize: 'small',
163
96
  min: 0,
164
97
  max: 100,
165
- orientation: 'horizontal',
166
- ariaLabel: 'Цена микрофона',
98
+ disabled: false,
99
+ ariaLabel: 'Цена товара',
167
100
  multipleStepSize: 10,
168
- label: 'Цена микрофона',
169
- labelPlacement: 'top',
170
- sliderAlign: 'center',
171
- scaleAlign: 'bottom',
172
- showScale: true,
101
+ label: 'Цена товара',
102
+ labelPlacement: 'outer',
103
+ rangeValuesPlacement: 'outer',
104
+ showRangeValues: true,
173
105
  showCurrentValue: false,
174
- showIcon: true,
175
- reversed: false,
176
- labelReversed: false,
177
- disabled: false,
178
106
  },
179
107
  render: (args) => <StoryDefault {...args} />,
180
108
  };
@@ -214,7 +142,7 @@ const StoryMultipleValues = (args: StoryProps) => {
214
142
  };
215
143
 
216
144
  return (
217
- <SliderWrapper isVertical={args.orientation === 'vertical'}>
145
+ <SliderWrapper>
218
146
  <Slider
219
147
  value={value}
220
148
  onKeyDownTextField={onKeyDownTextField}
@@ -231,7 +159,6 @@ export const MultipleValues: StoryDouble = {
231
159
  args: {
232
160
  view: 'default',
233
161
  size: 'm',
234
- pointerSize: 'small',
235
162
  min: 0,
236
163
  max: 100,
237
164
  disabled: false,
@@ -239,14 +166,5 @@ export const MultipleValues: StoryDouble = {
239
166
  ariaLabel: ['Минимальная цена товара', 'Максимальная цена товара'],
240
167
  multipleStepSize: 10,
241
168
  },
242
- argTypes: {
243
- pointerSize: {
244
- options: ['small', 'large'],
245
- control: {
246
- type: 'inline-radio',
247
- },
248
- },
249
- ...disableProps(['orientation']),
250
- },
251
169
  render: (args) => <StoryMultipleValues {...args} />,
252
170
  };