@salutejs/plasma-new-hope 0.176.0-canary.1506.11558916131.0 → 0.176.0-canary.1506.11570845312.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (373) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +1 -1
  2. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  3. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  4. package/cjs/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_kcgaix.css} +1 -1
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +9 -9
  6. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +9 -9
  7. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -9
  8. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -1
  9. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  10. package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_zgya4j.css} +1 -1
  11. package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
  12. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  13. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  14. package/{es/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → cjs/components/Combobox/ComboboxNew/Combobox.styles_18a8p75.css} +1 -1
  15. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -26
  16. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  17. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  18. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  19. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +5 -5
  20. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  21. package/{es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1jh6ez1.css → cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1kzr84z.css} +2 -2
  22. package/cjs/components/Combobox/ComboboxOld/Combobox.css +4 -4
  23. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  24. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  25. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  26. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  27. package/cjs/components/DatePicker/RangeDate/RangeDate.css +9 -9
  28. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +9 -9
  29. package/cjs/components/DatePicker/SingleDate/SingleDate.css +9 -9
  30. package/cjs/components/Dropdown/Dropdown.css +4 -4
  31. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  32. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -4
  33. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  34. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  35. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_ksnuz.css → DropdownItem.styles_1b439rx.css} +1 -1
  36. package/cjs/components/Slider/Slider.css +15 -13
  37. package/cjs/components/Slider/Slider.js +11 -2
  38. package/cjs/components/Slider/Slider.js.map +1 -1
  39. package/cjs/components/Slider/Slider.tokens.js +23 -17
  40. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  41. package/cjs/components/Slider/components/Double/Double.css +8 -8
  42. package/cjs/components/Slider/components/Double/Double.js +58 -23
  43. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  44. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
  45. package/cjs/components/Slider/components/Single/Single.css +14 -14
  46. package/cjs/components/Slider/components/Single/Single.js +64 -33
  47. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  48. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  49. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  50. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
  51. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  52. package/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  53. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  54. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  55. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  56. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
  57. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  58. package/cjs/components/Slider/ui/Handler/Handler.js +49 -88
  59. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  60. package/cjs/components/Slider/ui/Handler/Handler.styles.js +17 -7
  61. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  62. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
  63. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +122 -0
  64. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
  65. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  66. package/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  67. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  68. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  69. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  70. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
  71. package/cjs/components/Slider/utils/index.js +28 -10
  72. package/cjs/components/Slider/utils/index.js.map +1 -1
  73. package/cjs/components/Slider/variations/_view/base.js +1 -1
  74. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  75. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
  76. package/cjs/index.css +41 -39
  77. package/cjs/utils/index.js.map +1 -1
  78. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  79. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +9 -9
  80. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  81. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  82. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -12
  83. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +0 -1
  84. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +6 -6
  85. package/emotion/cjs/components/Slider/Slider.js +10 -2
  86. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +26 -0
  87. package/emotion/cjs/components/Slider/Slider.tokens.js +23 -17
  88. package/emotion/cjs/components/Slider/components/Double/Double.js +54 -19
  89. package/emotion/cjs/components/Slider/components/Single/Single.js +64 -33
  90. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +18 -9
  91. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  92. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  93. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +52 -88
  94. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +9 -15
  95. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
  96. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  97. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  98. package/emotion/cjs/components/Slider/utils/index.js +28 -10
  99. package/emotion/cjs/components/Slider/variations/_view/base.js +2 -1
  100. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  101. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  102. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  103. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  104. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  105. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  106. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  107. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  108. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  109. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  110. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  111. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  112. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  113. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  114. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  115. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  116. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  117. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +9 -9
  118. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  119. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  120. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -12
  121. package/emotion/es/components/Dropdown/Dropdown.tokens.js +0 -1
  122. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +6 -6
  123. package/emotion/es/components/Slider/Slider.js +11 -2
  124. package/emotion/es/components/Slider/Slider.template-doc.mdx +26 -0
  125. package/emotion/es/components/Slider/Slider.tokens.js +23 -17
  126. package/emotion/es/components/Slider/components/Double/Double.js +54 -19
  127. package/emotion/es/components/Slider/components/Single/Single.js +65 -34
  128. package/emotion/es/components/Slider/components/Single/Single.styles.js +17 -8
  129. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  130. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  131. package/emotion/es/components/Slider/ui/Handler/Handler.js +51 -86
  132. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +10 -16
  133. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
  134. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  135. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  136. package/emotion/es/components/Slider/utils/index.js +28 -10
  137. package/emotion/es/components/Slider/variations/_view/base.js +2 -1
  138. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  139. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  140. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  141. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  142. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  143. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  144. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  145. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  146. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  147. package/emotion/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  148. package/emotion/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  149. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  150. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  151. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  152. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  153. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  154. package/es/components/Autocomplete/Autocomplete.css +1 -1
  155. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  156. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  157. package/es/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_kcgaix.css} +1 -1
  158. package/es/components/Calendar/CalendarBase/CalendarBase.css +9 -9
  159. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +9 -9
  160. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -9
  161. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -1
  162. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  163. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_zgya4j.css} +1 -1
  164. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  165. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +11 -11
  166. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  167. package/{cjs/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → es/components/Combobox/ComboboxNew/Combobox.styles_18a8p75.css} +1 -1
  168. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -26
  169. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  170. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  171. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  172. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +5 -5
  173. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  174. package/{cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1jh6ez1.css → es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1kzr84z.css} +2 -2
  175. package/es/components/Combobox/ComboboxOld/Combobox.css +4 -4
  176. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  177. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  178. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  179. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  180. package/es/components/DatePicker/RangeDate/RangeDate.css +9 -9
  181. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +9 -9
  182. package/es/components/DatePicker/SingleDate/SingleDate.css +9 -9
  183. package/es/components/Dropdown/Dropdown.css +4 -4
  184. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  185. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -4
  186. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  187. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  188. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_ksnuz.css → DropdownItem.styles_1b439rx.css} +1 -1
  189. package/es/components/Slider/Slider.css +15 -13
  190. package/es/components/Slider/Slider.js +11 -2
  191. package/es/components/Slider/Slider.js.map +1 -1
  192. package/es/components/Slider/Slider.tokens.js +23 -17
  193. package/es/components/Slider/Slider.tokens.js.map +1 -1
  194. package/es/components/Slider/components/Double/Double.css +8 -8
  195. package/es/components/Slider/components/Double/Double.js +54 -19
  196. package/es/components/Slider/components/Double/Double.js.map +1 -1
  197. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
  198. package/es/components/Slider/components/Single/Single.css +14 -14
  199. package/es/components/Slider/components/Single/Single.js +65 -34
  200. package/es/components/Slider/components/Single/Single.js.map +1 -1
  201. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  202. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  203. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
  204. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  205. package/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  206. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  207. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  208. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  209. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
  210. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  211. package/es/components/Slider/ui/Handler/Handler.js +48 -87
  212. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  213. package/es/components/Slider/ui/Handler/Handler.styles.js +17 -7
  214. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  215. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
  216. package/es/components/Slider/ui/Handler/computeKeyPressData.js +118 -0
  217. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
  218. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  219. package/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  220. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  221. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  222. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  223. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
  224. package/es/components/Slider/utils/index.js +28 -10
  225. package/es/components/Slider/utils/index.js.map +1 -1
  226. package/es/components/Slider/variations/_view/base.js +1 -1
  227. package/es/components/Slider/variations/_view/base.js.map +1 -1
  228. package/es/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
  229. package/es/index.css +41 -39
  230. package/es/utils/index.js.map +1 -1
  231. package/package.json +2 -2
  232. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  233. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -1
  234. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  235. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  236. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +3 -3
  237. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +0 -1
  238. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +2 -2
  239. package/styled-components/cjs/components/Slider/Slider.js +10 -2
  240. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +26 -0
  241. package/styled-components/cjs/components/Slider/Slider.tokens.js +23 -17
  242. package/styled-components/cjs/components/Slider/components/Double/Double.js +54 -19
  243. package/styled-components/cjs/components/Slider/components/Single/Single.js +64 -33
  244. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  245. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  246. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  247. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +52 -88
  248. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -4
  249. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
  250. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  251. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  252. package/styled-components/cjs/components/Slider/utils/index.js +28 -10
  253. package/styled-components/cjs/components/Slider/variations/_view/base.js +2 -1
  254. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +4 -4
  255. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +1 -1
  256. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +1 -1
  257. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  258. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +1 -1
  259. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +1 -1
  260. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  261. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  262. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +4 -4
  263. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +1 -1
  264. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +1 -1
  265. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  266. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +1 -1
  267. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +1 -1
  268. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  269. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  270. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  271. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -1
  272. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  273. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  274. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +3 -3
  275. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +0 -1
  276. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +2 -2
  277. package/styled-components/es/components/Slider/Slider.js +11 -2
  278. package/styled-components/es/components/Slider/Slider.template-doc.mdx +26 -0
  279. package/styled-components/es/components/Slider/Slider.tokens.js +23 -17
  280. package/styled-components/es/components/Slider/components/Double/Double.js +54 -19
  281. package/styled-components/es/components/Slider/components/Single/Single.js +65 -34
  282. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  283. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  284. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  285. package/styled-components/es/components/Slider/ui/Handler/Handler.js +51 -86
  286. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -5
  287. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
  288. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  289. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  290. package/styled-components/es/components/Slider/utils/index.js +28 -10
  291. package/styled-components/es/components/Slider/variations/_view/base.js +2 -1
  292. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +4 -4
  293. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +1 -1
  294. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +1 -1
  295. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  296. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +1 -1
  297. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +1 -1
  298. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  299. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  300. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +4 -4
  301. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +1 -1
  302. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +1 -1
  303. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  304. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +1 -1
  305. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +1 -1
  306. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  307. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  308. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
  309. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -1
  310. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  311. package/types/components/Dropdown/Dropdown.tokens.d.ts +0 -1
  312. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  313. package/types/components/Slider/Slider.d.ts.map +1 -1
  314. package/types/components/Slider/Slider.tokens.d.ts +22 -16
  315. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  316. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  317. package/types/components/Slider/components/Double/Double.types.d.ts +1 -0
  318. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  319. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  320. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  321. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  322. package/types/components/Slider/components/Single/Single.types.d.ts +79 -7
  323. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  324. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  325. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  326. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  327. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +6 -0
  328. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  329. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  330. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +6 -2
  331. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  332. package/types/components/Slider/ui/Handler/Handler.types.d.ts +5 -1
  333. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  334. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +12 -0
  335. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +1 -0
  336. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  337. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  338. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  339. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +1 -0
  340. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  341. package/types/components/Slider/utils/index.d.ts +26 -8
  342. package/types/components/Slider/utils/index.d.ts.map +1 -1
  343. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  344. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  345. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  346. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  347. package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -1
  348. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  349. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  350. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  351. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +80 -2
  352. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  353. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  354. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  355. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  356. package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -1
  357. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  358. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  359. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  360. package/types/examples/plasma_web/components/Slider/Slider.d.ts +80 -2
  361. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  362. package/types/utils/index.d.ts +1 -1
  363. package/types/utils/index.d.ts.map +1 -1
  364. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  365. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
  366. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
  367. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  368. package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
  369. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  370. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
  371. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
  372. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  373. package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
@@ -3,16 +3,19 @@ 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';
7
6
 
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'];
13
14
  const views = ['default', 'accent', 'gradient'];
14
- const labelPlacements = ['outer', 'inner'];
15
- const rangeValuesPlacement = ['outer', 'inner'];
15
+ const sliderAligns = ['center', 'left', 'right', 'none'];
16
+ const labelPlacements = ['top', 'left'];
17
+ const scaleAligns = ['side', 'bottom'];
18
+ const orientations: Array<string> = ['vertical', 'horizontal'];
16
19
 
17
20
  const meta: Meta<typeof Slider> = {
18
21
  title: 'plasma_b2c/Slider',
@@ -31,9 +34,24 @@ const meta: Meta<typeof Slider> = {
31
34
  type: 'inline-radio',
32
35
  },
33
36
  },
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
+ },
34
49
  ...disableProps([
35
50
  'value',
36
51
  'onChangeCommitted',
52
+ 'onChangeTextField',
53
+ 'onBlurTextField',
54
+ 'onKeyDownTextField',
37
55
  'ariaLabel',
38
56
  'onChange',
39
57
  'fontSizeMultiplier',
@@ -41,6 +59,14 @@ const meta: Meta<typeof Slider> = {
41
59
  'settings',
42
60
  'hasHoverAnimation',
43
61
  'type',
62
+ 'labelContentLeft',
63
+ 'rangeValuesPlacement',
64
+ 'name',
65
+ 'defaultValue',
66
+ 'labelContent',
67
+ 'showRangeValues',
68
+ 'hideMinValueDiff',
69
+ 'hideMaxValueDiff',
44
70
  ]),
45
71
  },
46
72
  };
@@ -53,8 +79,9 @@ type StorySingleProps = StoryProps;
53
79
  type StorySingle = StoryObj<StorySingleProps>;
54
80
  type StoryDouble = StoryObj<StoryProps>;
55
81
 
56
- const SliderWrapper = styled.div`
57
- width: 25rem;
82
+ const SliderWrapper = styled.div<{ isVertical?: boolean }>`
83
+ width: ${({ isVertical }) => (isVertical ? 'auto' : '25rem')};
84
+ height: ${({ isVertical }) => (isVertical ? '25rem' : 'auto')};
58
85
  `;
59
86
 
60
87
  const StoryDefault = (args: StorySingleProps) => {
@@ -68,41 +95,86 @@ const StoryDefault = (args: StorySingleProps) => {
68
95
  setValue(values);
69
96
  };
70
97
 
98
+ const { hasIcon, showIcon, orientation, labelPlacement, labelVerticalPlacement, ...rest } = args;
99
+ const isVertical = orientation === 'vertical';
100
+
71
101
  return (
72
- <SliderWrapper>
73
- <Slider value={value} onChangeCommitted={onChangeCommittedHandle} onChange={onChangeHandle} {...args} />
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
+ />
74
112
  </SliderWrapper>
75
113
  );
76
114
  };
77
115
 
78
116
  export const Default: StorySingle = {
79
117
  argTypes: {
118
+ sliderAlign: {
119
+ options: sliderAligns,
120
+ control: {
121
+ type: 'inline-radio',
122
+ },
123
+ if: { arg: 'orientation', eq: 'vertical' },
124
+ },
80
125
  labelPlacement: {
81
126
  options: labelPlacements,
82
127
  control: {
83
128
  type: 'inline-radio',
84
129
  },
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' },
85
145
  },
86
- rangeValuesPlacement: {
87
- options: rangeValuesPlacement,
146
+ orientation: {
147
+ options: orientations,
88
148
  control: {
89
149
  type: 'inline-radio',
90
150
  },
91
151
  },
152
+ reversed: {
153
+ control: {
154
+ type: 'boolean',
155
+ },
156
+ if: { arg: 'orientation', eq: 'vertical' },
157
+ },
92
158
  },
93
159
  args: {
94
160
  view: 'default',
95
161
  size: 'm',
162
+ pointerSize: 'small',
96
163
  min: 0,
97
164
  max: 100,
98
- disabled: false,
99
- ariaLabel: 'Цена товара',
165
+ orientation: 'horizontal',
166
+ ariaLabel: 'Цена микрофона',
100
167
  multipleStepSize: 10,
101
- label: 'Цена товара',
102
- labelPlacement: 'outer',
103
- rangeValuesPlacement: 'outer',
104
- showRangeValues: true,
168
+ label: 'Цена микрофона',
169
+ labelPlacement: 'top',
170
+ sliderAlign: 'center',
171
+ scaleAlign: 'bottom',
172
+ showScale: true,
105
173
  showCurrentValue: false,
174
+ showIcon: true,
175
+ reversed: false,
176
+ labelReversed: false,
177
+ disabled: false,
106
178
  },
107
179
  render: (args) => <StoryDefault {...args} />,
108
180
  };
@@ -142,7 +214,7 @@ const StoryMultipleValues = (args: StoryProps) => {
142
214
  };
143
215
 
144
216
  return (
145
- <SliderWrapper>
217
+ <SliderWrapper isVertical={args.orientation === 'vertical'}>
146
218
  <Slider
147
219
  value={value}
148
220
  onKeyDownTextField={onKeyDownTextField}
@@ -159,6 +231,7 @@ export const MultipleValues: StoryDouble = {
159
231
  args: {
160
232
  view: 'default',
161
233
  size: 'm',
234
+ pointerSize: 'small',
162
235
  min: 0,
163
236
  max: 100,
164
237
  disabled: false,
@@ -166,5 +239,14 @@ export const MultipleValues: StoryDouble = {
166
239
  ariaLabel: ['Минимальная цена товара', 'Максимальная цена товара'],
167
240
  multipleStepSize: 10,
168
241
  },
242
+ argTypes: {
243
+ pointerSize: {
244
+ options: ['small', 'large'],
245
+ control: {
246
+ type: 'inline-radio',
247
+ },
248
+ },
249
+ ...disableProps(['orientation']),
250
+ },
169
251
  render: (args) => <StoryMultipleValues {...args} />,
170
252
  };