@salutejs/plasma-new-hope 0.176.0-canary.1511.11570259013.0 → 0.176.0-canary.1513.11570030354.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (482) hide show
  1. package/cjs/components/Slider/Slider.css +13 -15
  2. package/cjs/components/Slider/Slider.js +2 -11
  3. package/cjs/components/Slider/Slider.js.map +1 -1
  4. package/cjs/components/Slider/Slider.tokens.js +17 -23
  5. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  6. package/cjs/components/Slider/components/Double/Double.css +8 -8
  7. package/cjs/components/Slider/components/Double/Double.js +23 -58
  8. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  9. package/cjs/components/Slider/components/Single/Single.css +14 -14
  10. package/cjs/components/Slider/components/Single/Single.js +33 -64
  11. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  12. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  13. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  14. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  15. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  16. package/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  17. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  18. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  19. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  20. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  21. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  22. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  23. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  24. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  25. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  26. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  27. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  28. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  29. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  30. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  31. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  32. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  33. package/cjs/components/Slider/utils/index.js +10 -28
  34. package/cjs/components/Slider/utils/index.js.map +1 -1
  35. package/cjs/components/Slider/variations/_view/base.js +1 -1
  36. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  37. package/cjs/index.css +13 -38
  38. package/cjs/index.js +0 -6
  39. package/cjs/index.js.map +1 -1
  40. package/cjs/utils/index.js.map +1 -1
  41. package/emotion/cjs/components/Slider/Slider.js +2 -10
  42. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  43. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  44. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  45. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  46. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  47. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  48. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  49. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  50. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  51. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  52. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  53. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  54. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  55. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  56. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  57. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -6
  58. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -6
  59. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  60. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  61. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +9 -6
  62. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -6
  63. package/emotion/cjs/index.js +0 -11
  64. package/emotion/es/components/Slider/Slider.js +2 -11
  65. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  66. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  67. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  68. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  69. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  70. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  71. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  72. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  73. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  74. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  75. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  76. package/emotion/es/components/Slider/utils/index.js +10 -28
  77. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  78. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  79. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  80. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -6
  81. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -6
  82. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  83. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  84. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +9 -6
  85. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -6
  86. package/emotion/es/index.js +1 -2
  87. package/es/components/Slider/Slider.css +13 -15
  88. package/es/components/Slider/Slider.js +2 -11
  89. package/es/components/Slider/Slider.js.map +1 -1
  90. package/es/components/Slider/Slider.tokens.js +17 -23
  91. package/es/components/Slider/Slider.tokens.js.map +1 -1
  92. package/es/components/Slider/components/Double/Double.css +8 -8
  93. package/es/components/Slider/components/Double/Double.js +19 -54
  94. package/es/components/Slider/components/Double/Double.js.map +1 -1
  95. package/es/components/Slider/components/Single/Single.css +14 -14
  96. package/es/components/Slider/components/Single/Single.js +34 -65
  97. package/es/components/Slider/components/Single/Single.js.map +1 -1
  98. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  99. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  100. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  101. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  102. package/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  103. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  104. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  105. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  106. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  107. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  108. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  109. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  110. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  111. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  112. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  113. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  114. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  115. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  116. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  117. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  118. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  119. package/es/components/Slider/utils/index.js +10 -28
  120. package/es/components/Slider/utils/index.js.map +1 -1
  121. package/es/components/Slider/variations/_view/base.js +1 -1
  122. package/es/components/Slider/variations/_view/base.js.map +1 -1
  123. package/es/index.css +13 -38
  124. package/es/index.js +0 -2
  125. package/es/index.js.map +1 -1
  126. package/es/utils/index.js.map +1 -1
  127. package/package.json +2 -2
  128. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  129. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  130. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  131. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  132. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  133. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  134. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  135. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  136. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  137. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  138. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  139. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  140. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  141. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  142. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  143. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  144. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -6
  145. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -6
  146. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  147. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  148. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +9 -6
  149. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -6
  150. package/styled-components/cjs/index.js +0 -11
  151. package/styled-components/es/components/Slider/Slider.js +2 -11
  152. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  153. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  154. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  155. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  156. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  157. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  158. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  159. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  160. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  161. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  162. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  163. package/styled-components/es/components/Slider/utils/index.js +10 -28
  164. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  165. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  166. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  167. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -6
  168. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -6
  169. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  170. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  171. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +9 -6
  172. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -6
  173. package/styled-components/es/index.js +1 -2
  174. package/types/components/Slider/Slider.d.ts.map +1 -1
  175. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  176. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  177. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  178. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  179. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  180. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  181. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  182. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  183. package/types/components/Slider/components/Single/Single.types.d.ts +7 -79
  184. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  185. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  186. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  187. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  188. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  189. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  190. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  191. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  192. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  193. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  194. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  195. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  196. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  197. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  198. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  199. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  200. package/types/components/Slider/utils/index.d.ts +8 -26
  201. package/types/components/Slider/utils/index.d.ts.map +1 -1
  202. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  203. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  204. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -80
  205. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  206. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  207. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -80
  208. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  209. package/types/index.d.ts +0 -1
  210. package/types/index.d.ts.map +1 -1
  211. package/types/utils/index.d.ts +1 -1
  212. package/types/utils/index.d.ts.map +1 -1
  213. package/cjs/components/NumberInput/NumberInput.css +0 -52
  214. package/cjs/components/NumberInput/NumberInput.js +0 -183
  215. package/cjs/components/NumberInput/NumberInput.js.map +0 -1
  216. package/cjs/components/NumberInput/NumberInput.styles.js +0 -9
  217. package/cjs/components/NumberInput/NumberInput.styles.js.map +0 -1
  218. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  219. package/cjs/components/NumberInput/NumberInput.tokens.js +0 -93
  220. package/cjs/components/NumberInput/NumberInput.tokens.js.map +0 -1
  221. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -19
  222. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  223. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -22
  224. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  225. package/cjs/components/NumberInput/ui/Input/Input.css +0 -15
  226. package/cjs/components/NumberInput/ui/Input/Input.js +0 -199
  227. package/cjs/components/NumberInput/ui/Input/Input.js.map +0 -1
  228. package/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -96
  229. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  230. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
  231. package/cjs/components/NumberInput/utils/index.js +0 -8
  232. package/cjs/components/NumberInput/utils/index.js.map +0 -1
  233. package/cjs/components/NumberInput/variations/_background-type/base.js +0 -9
  234. package/cjs/components/NumberInput/variations/_background-type/base.js.map +0 -1
  235. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
  236. package/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  237. package/cjs/components/NumberInput/variations/_disabled/base.js.map +0 -1
  238. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  239. package/cjs/components/NumberInput/variations/_segmentation/base.js +0 -9
  240. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  241. package/cjs/components/NumberInput/variations/_segmentation/base_3r9a58.css +0 -1
  242. package/cjs/components/NumberInput/variations/_shape/base.js +0 -9
  243. package/cjs/components/NumberInput/variations/_shape/base.js.map +0 -1
  244. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  245. package/cjs/components/NumberInput/variations/_size/base.js +0 -9
  246. package/cjs/components/NumberInput/variations/_size/base.js.map +0 -1
  247. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
  248. package/cjs/components/NumberInput/variations/_view/base.js +0 -9
  249. package/cjs/components/NumberInput/variations/_view/base.js.map +0 -1
  250. package/cjs/components/NumberInput/variations/_view/base_3gefjm.css +0 -1
  251. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  252. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  253. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  254. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  255. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  256. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  257. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  258. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  259. package/emotion/cjs/components/NumberInput/NumberInput.js +0 -193
  260. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +0 -17
  261. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +0 -90
  262. package/emotion/cjs/components/NumberInput/NumberInput.types.js +0 -5
  263. package/emotion/cjs/components/NumberInput/index.js +0 -31
  264. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  265. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -16
  266. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  267. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -207
  268. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -81
  269. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  270. package/emotion/cjs/components/NumberInput/ui/index.js +0 -19
  271. package/emotion/cjs/components/NumberInput/utils/index.js +0 -7
  272. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  273. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  274. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  275. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  276. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  277. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  278. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  279. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  280. package/emotion/cjs/components/NumberInput/variations/_size/base.js +0 -13
  281. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  282. package/emotion/cjs/components/NumberInput/variations/_view/base.js +0 -13
  283. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  284. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  285. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
  286. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  287. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  288. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
  289. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  290. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  291. package/emotion/es/components/NumberInput/NumberInput.js +0 -185
  292. package/emotion/es/components/NumberInput/NumberInput.styles.js +0 -11
  293. package/emotion/es/components/NumberInput/NumberInput.tokens.js +0 -84
  294. package/emotion/es/components/NumberInput/NumberInput.types.js +0 -1
  295. package/emotion/es/components/NumberInput/index.js +0 -2
  296. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  297. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -9
  298. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  299. package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -198
  300. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +0 -74
  301. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  302. package/emotion/es/components/NumberInput/ui/index.js +0 -2
  303. package/emotion/es/components/NumberInput/utils/index.js +0 -1
  304. package/emotion/es/components/NumberInput/variations/_background-type/base.js +0 -4
  305. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  306. package/emotion/es/components/NumberInput/variations/_disabled/base.js +0 -3
  307. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  308. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  309. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  310. package/emotion/es/components/NumberInput/variations/_shape/base.js +0 -5
  311. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  312. package/emotion/es/components/NumberInput/variations/_size/base.js +0 -7
  313. package/emotion/es/components/NumberInput/variations/_size/tokens.json +0 -22
  314. package/emotion/es/components/NumberInput/variations/_view/base.js +0 -7
  315. package/emotion/es/components/NumberInput/variations/_view/tokens.json +0 -14
  316. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  317. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
  318. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  319. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  320. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
  321. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  322. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  323. package/es/components/NumberInput/NumberInput.css +0 -52
  324. package/es/components/NumberInput/NumberInput.js +0 -178
  325. package/es/components/NumberInput/NumberInput.js.map +0 -1
  326. package/es/components/NumberInput/NumberInput.styles.js +0 -5
  327. package/es/components/NumberInput/NumberInput.styles.js.map +0 -1
  328. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  329. package/es/components/NumberInput/NumberInput.tokens.js +0 -87
  330. package/es/components/NumberInput/NumberInput.tokens.js.map +0 -1
  331. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -15
  332. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  333. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -18
  334. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  335. package/es/components/NumberInput/ui/Input/Input.css +0 -15
  336. package/es/components/NumberInput/ui/Input/Input.js +0 -195
  337. package/es/components/NumberInput/ui/Input/Input.js.map +0 -1
  338. package/es/components/NumberInput/ui/Input/Input.styles.js +0 -85
  339. package/es/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  340. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
  341. package/es/components/NumberInput/utils/index.js +0 -4
  342. package/es/components/NumberInput/utils/index.js.map +0 -1
  343. package/es/components/NumberInput/variations/_background-type/base.js +0 -5
  344. package/es/components/NumberInput/variations/_background-type/base.js.map +0 -1
  345. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
  346. package/es/components/NumberInput/variations/_disabled/base.js +0 -5
  347. package/es/components/NumberInput/variations/_disabled/base.js.map +0 -1
  348. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  349. package/es/components/NumberInput/variations/_segmentation/base.js +0 -5
  350. package/es/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  351. package/es/components/NumberInput/variations/_segmentation/base_3r9a58.css +0 -1
  352. package/es/components/NumberInput/variations/_shape/base.js +0 -5
  353. package/es/components/NumberInput/variations/_shape/base.js.map +0 -1
  354. package/es/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  355. package/es/components/NumberInput/variations/_size/base.js +0 -5
  356. package/es/components/NumberInput/variations/_size/base.js.map +0 -1
  357. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
  358. package/es/components/NumberInput/variations/_view/base.js +0 -5
  359. package/es/components/NumberInput/variations/_view/base.js.map +0 -1
  360. package/es/components/NumberInput/variations/_view/base_3gefjm.css +0 -1
  361. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  362. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  363. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  364. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  365. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  366. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  367. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  368. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  369. package/styled-components/cjs/components/NumberInput/NumberInput.js +0 -193
  370. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +0 -8
  371. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +0 -90
  372. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +0 -5
  373. package/styled-components/cjs/components/NumberInput/index.js +0 -31
  374. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  375. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -15
  376. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  377. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -207
  378. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -48
  379. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  380. package/styled-components/cjs/components/NumberInput/ui/index.js +0 -19
  381. package/styled-components/cjs/components/NumberInput/utils/index.js +0 -7
  382. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  383. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  384. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  385. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  386. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  387. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  388. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  389. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  390. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +0 -13
  391. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  392. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +0 -13
  393. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  394. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  395. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
  396. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  397. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  398. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
  399. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  400. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  401. package/styled-components/es/components/NumberInput/NumberInput.js +0 -185
  402. package/styled-components/es/components/NumberInput/NumberInput.styles.js +0 -2
  403. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +0 -84
  404. package/styled-components/es/components/NumberInput/NumberInput.types.js +0 -1
  405. package/styled-components/es/components/NumberInput/index.js +0 -2
  406. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  407. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -8
  408. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  409. package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -198
  410. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +0 -41
  411. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  412. package/styled-components/es/components/NumberInput/ui/index.js +0 -2
  413. package/styled-components/es/components/NumberInput/utils/index.js +0 -1
  414. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +0 -4
  415. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  416. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +0 -3
  417. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  418. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  419. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  420. package/styled-components/es/components/NumberInput/variations/_shape/base.js +0 -5
  421. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  422. package/styled-components/es/components/NumberInput/variations/_size/base.js +0 -7
  423. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +0 -22
  424. package/styled-components/es/components/NumberInput/variations/_view/base.js +0 -7
  425. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +0 -14
  426. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  427. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
  428. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  429. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
  430. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
  431. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  432. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
  433. package/types/components/NumberInput/NumberInput.d.ts +0 -38
  434. package/types/components/NumberInput/NumberInput.d.ts.map +0 -1
  435. package/types/components/NumberInput/NumberInput.styles.d.ts +0 -2
  436. package/types/components/NumberInput/NumberInput.styles.d.ts.map +0 -1
  437. package/types/components/NumberInput/NumberInput.tokens.d.ts +0 -79
  438. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +0 -1
  439. package/types/components/NumberInput/NumberInput.types.d.ts +0 -112
  440. package/types/components/NumberInput/NumberInput.types.d.ts.map +0 -1
  441. package/types/components/NumberInput/index.d.ts +0 -3
  442. package/types/components/NumberInput/index.d.ts.map +0 -1
  443. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +0 -4
  444. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +0 -1
  445. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +0 -45
  446. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +0 -1
  447. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +0 -7
  448. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +0 -1
  449. package/types/components/NumberInput/ui/Input/Input.d.ts +0 -16
  450. package/types/components/NumberInput/ui/Input/Input.d.ts.map +0 -1
  451. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +0 -30
  452. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +0 -1
  453. package/types/components/NumberInput/ui/Input/Input.types.d.ts +0 -16
  454. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +0 -1
  455. package/types/components/NumberInput/ui/index.d.ts +0 -3
  456. package/types/components/NumberInput/ui/index.d.ts.map +0 -1
  457. package/types/components/NumberInput/utils/index.d.ts +0 -2
  458. package/types/components/NumberInput/utils/index.d.ts.map +0 -1
  459. package/types/components/NumberInput/variations/_background-type/base.d.ts +0 -2
  460. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +0 -1
  461. package/types/components/NumberInput/variations/_disabled/base.d.ts +0 -2
  462. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +0 -1
  463. package/types/components/NumberInput/variations/_segmentation/base.d.ts +0 -2
  464. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +0 -1
  465. package/types/components/NumberInput/variations/_shape/base.d.ts +0 -2
  466. package/types/components/NumberInput/variations/_shape/base.d.ts.map +0 -1
  467. package/types/components/NumberInput/variations/_size/base.d.ts +0 -2
  468. package/types/components/NumberInput/variations/_size/base.d.ts.map +0 -1
  469. package/types/components/NumberInput/variations/_view/base.d.ts +0 -2
  470. package/types/components/NumberInput/variations/_view/base.d.ts.map +0 -1
  471. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  472. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
  473. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +0 -39
  474. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  475. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +0 -82
  476. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +0 -1
  477. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +0 -39
  478. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  479. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +0 -82
  480. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +0 -1
  481. /package/cjs/components/{NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css → Slider/variations/_view/base_x642ct.css} +0 -0
  482. /package/es/components/{NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css → Slider/variations/_view/base_x642ct.css} +0 -0
@@ -4,18 +4,14 @@ import styled from 'styled-components';
4
4
  import { disableProps } from '@salutejs/plasma-sb-utils';
5
5
  import type { StoryObj, Meta } from '@storybook/react';
6
6
 
7
- import { IconMic } from '../../../../components/_Icon';
8
7
  import { WithTheme } from '../../../_helpers';
9
8
 
10
9
  import { Slider } from './Slider';
11
10
 
12
11
  const sizes = ['l', 'm', 's'];
13
- const pointerSizes = ['small', 'large', 'none'];
14
12
  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'];
13
+ const labelPlacements = ['outer', 'inner'];
14
+ const rangeValuesPlacement = ['outer', 'inner'];
19
15
 
20
16
  const meta: Meta<typeof Slider> = {
21
17
  title: 'plasma_web/Slider',
@@ -34,24 +30,9 @@ const meta: Meta<typeof Slider> = {
34
30
  type: 'inline-radio',
35
31
  },
36
32
  },
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
33
  ...disableProps([
50
34
  'value',
51
35
  'onChangeCommitted',
52
- 'onChangeTextField',
53
- 'onBlurTextField',
54
- 'onKeyDownTextField',
55
36
  'ariaLabel',
56
37
  'onChange',
57
38
  'fontSizeMultiplier',
@@ -59,14 +40,6 @@ const meta: Meta<typeof Slider> = {
59
40
  'settings',
60
41
  'hasHoverAnimation',
61
42
  'type',
62
- 'labelContentLeft',
63
- 'rangeValuesPlacement',
64
- 'name',
65
- 'defaultValue',
66
- 'labelContent',
67
- 'showRangeValues',
68
- 'hideMinValueDiff',
69
- 'hideMaxValueDiff',
70
43
  ]),
71
44
  },
72
45
  };
@@ -79,9 +52,8 @@ type StorySingleProps = StoryProps;
79
52
  type StorySingle = StoryObj<StorySingleProps>;
80
53
  type StoryDouble = StoryObj<StoryProps>;
81
54
 
82
- const SliderWrapper = styled.div<{ isVertical?: boolean }>`
83
- width: ${({ isVertical }) => (isVertical ? 'auto' : '25rem')};
84
- height: ${({ isVertical }) => (isVertical ? '25rem' : 'auto')};
55
+ const SliderWrapper = styled.div`
56
+ width: 25rem;
85
57
  `;
86
58
 
87
59
  const StoryDefault = (args: StorySingleProps) => {
@@ -95,86 +67,41 @@ const StoryDefault = (args: StorySingleProps) => {
95
67
  setValue(values);
96
68
  };
97
69
 
98
- const { hasIcon, showIcon, orientation, labelPlacement, labelVerticalPlacement, ...rest } = args;
99
- const isVertical = orientation === 'vertical';
100
-
101
70
  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
- />
71
+ <SliderWrapper>
72
+ <Slider value={value} onChangeCommitted={onChangeCommittedHandle} onChange={onChangeHandle} {...args} />
112
73
  </SliderWrapper>
113
74
  );
114
75
  };
115
76
 
116
77
  export const Default: StorySingle = {
117
78
  argTypes: {
118
- sliderAlign: {
119
- options: sliderAligns,
120
- control: {
121
- type: 'inline-radio',
122
- },
123
- if: { arg: 'orientation', eq: 'vertical' },
124
- },
125
79
  labelPlacement: {
126
80
  options: labelPlacements,
127
81
  control: {
128
82
  type: 'inline-radio',
129
83
  },
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
84
  },
146
- orientation: {
147
- options: orientations,
85
+ rangeValuesPlacement: {
86
+ options: rangeValuesPlacement,
148
87
  control: {
149
88
  type: 'inline-radio',
150
89
  },
151
90
  },
152
- reversed: {
153
- control: {
154
- type: 'boolean',
155
- },
156
- if: { arg: 'orientation', eq: 'vertical' },
157
- },
158
91
  },
159
92
  args: {
160
93
  view: 'default',
161
94
  size: 'm',
162
- pointerSize: 'small',
163
95
  min: 0,
164
96
  max: 100,
165
- orientation: 'horizontal',
166
- ariaLabel: 'Цена микрофона',
97
+ disabled: false,
98
+ ariaLabel: 'Цена товара',
167
99
  multipleStepSize: 10,
168
- label: 'Цена микрофона',
169
- labelPlacement: 'top',
170
- sliderAlign: 'center',
171
- scaleAlign: 'bottom',
172
- showScale: true,
100
+ label: 'Цена товара',
101
+ labelPlacement: 'outer',
102
+ rangeValuesPlacement: 'outer',
103
+ showRangeValues: true,
173
104
  showCurrentValue: false,
174
- showIcon: true,
175
- reversed: false,
176
- labelReversed: false,
177
- disabled: false,
178
105
  },
179
106
  render: (args) => <StoryDefault {...args} />,
180
107
  };
@@ -214,7 +141,7 @@ const StoryMultipleValues = (args: StoryProps) => {
214
141
  };
215
142
 
216
143
  return (
217
- <SliderWrapper isVertical={args.orientation === 'vertical'}>
144
+ <SliderWrapper>
218
145
  <Slider
219
146
  value={value}
220
147
  onKeyDownTextField={onKeyDownTextField}
@@ -231,7 +158,6 @@ export const MultipleValues: StoryDouble = {
231
158
  args: {
232
159
  view: 'default',
233
160
  size: 'm',
234
- pointerSize: 'small',
235
161
  min: 0,
236
162
  max: 100,
237
163
  disabled: false,
@@ -239,14 +165,5 @@ export const MultipleValues: StoryDouble = {
239
165
  ariaLabel: ['Минимальная цена товара', 'Максимальная цена товара'],
240
166
  multipleStepSize: 10,
241
167
  },
242
- argTypes: {
243
- pointerSize: {
244
- options: ['small', 'large'],
245
- control: {
246
- type: 'inline-radio',
247
- },
248
- },
249
- ...disableProps(['orientation']),
250
- },
251
168
  render: (args) => <StoryMultipleValues {...args} />,
252
169
  };
@@ -37,6 +37,7 @@ const placements: Array<PopoverPlacement> = [
37
37
  ];
38
38
 
39
39
  type StoryTextAreaPropsCustom = {
40
+ hasHint?: boolean;
40
41
  enableContentRight?: boolean;
41
42
  };
42
43
 
@@ -92,43 +93,44 @@ const meta: Meta<StoryTextAreaProps> = {
92
93
  },
93
94
  hintText: {
94
95
  control: { type: 'text' },
96
+ if: { arg: 'hasHint', truthy: true },
95
97
  },
96
98
  hintView: {
97
99
  options: hintViews,
98
100
  control: {
99
101
  type: 'select',
100
102
  },
101
- if: { arg: 'hintText', neq: '' },
103
+ if: { arg: 'hasHint', truthy: true },
102
104
  },
103
105
  hintSize: {
104
106
  options: hintSizes,
105
107
  control: {
106
108
  type: 'select',
107
109
  },
108
- if: { arg: 'hintText', neq: '' },
110
+ if: { arg: 'hasHint', truthy: true },
109
111
  },
110
112
  hintTrigger: {
111
113
  options: hintTriggers,
112
114
  control: {
113
115
  type: 'inline-radio',
114
116
  },
115
- if: { arg: 'hintText', neq: '' },
117
+ if: { arg: 'hasHint', truthy: true },
116
118
  },
117
119
  hintPlacement: {
118
120
  options: placements,
119
121
  control: {
120
122
  type: 'select',
121
123
  },
122
- if: { arg: 'hintText', neq: '' },
124
+ if: { arg: 'hasHint', truthy: true },
123
125
  mappers: placements,
124
126
  },
125
127
  hintHasArrow: {
126
128
  control: { type: 'boolean' },
127
- if: { arg: 'hintText', neq: '' },
129
+ if: { arg: 'hasHint', truthy: true },
128
130
  },
129
131
  hintWidth: {
130
132
  control: { type: 'text' },
131
- if: { arg: 'hintText', neq: '' },
133
+ if: { arg: 'hasHint', truthy: true },
132
134
  },
133
135
  },
134
136
  args: {
@@ -152,6 +154,7 @@ const meta: Meta<StoryTextAreaProps> = {
152
154
  requiredPlacement: 'right',
153
155
  clear: false,
154
156
  hasDivider: false,
157
+ hasHint: true,
155
158
  hintText: 'Текст подсказки',
156
159
  hintTrigger: 'hover',
157
160
  hintView: 'default',
@@ -95,43 +95,44 @@ const meta: Meta<typeof TextField> = {
95
95
  },
96
96
  hintText: {
97
97
  control: { type: 'text' },
98
+ if: { arg: 'hasHint', truthy: true },
98
99
  },
99
100
  hintView: {
100
101
  options: hintViews,
101
102
  control: {
102
103
  type: 'select',
103
104
  },
104
- if: { arg: 'hintText', neq: '' },
105
+ if: { arg: 'hasHint', truthy: true },
105
106
  },
106
107
  hintSize: {
107
108
  options: hintSizes,
108
109
  control: {
109
110
  type: 'select',
110
111
  },
111
- if: { arg: 'hintText', neq: '' },
112
+ if: { arg: 'hasHint', truthy: true },
112
113
  },
113
114
  hintTrigger: {
114
115
  options: hintTriggers,
115
116
  control: {
116
117
  type: 'inline-radio',
117
118
  },
118
- if: { arg: 'hintText', neq: '' },
119
+ if: { arg: 'hasHint', truthy: true },
119
120
  },
120
121
  hintPlacement: {
121
122
  options: placements,
122
123
  control: {
123
124
  type: 'select',
124
125
  },
125
- if: { arg: 'hintText', neq: '' },
126
+ if: { arg: 'hasHint', truthy: true },
126
127
  mappers: placements,
127
128
  },
128
129
  hintHasArrow: {
129
130
  control: { type: 'boolean' },
130
- if: { arg: 'hintText', neq: '' },
131
+ if: { arg: 'hasHint', truthy: true },
131
132
  },
132
133
  hintWidth: {
133
134
  control: { type: 'text' },
134
- if: { arg: 'hintText', neq: '' },
135
+ if: { arg: 'hasHint', truthy: true },
135
136
  },
136
137
  },
137
138
  };
@@ -158,6 +159,7 @@ type StoryPropsDefault = Omit<
158
159
  | 'chips'
159
160
  | 'onChangeChips'
160
161
  > & {
162
+ hasHint: boolean;
161
163
  enableContentLeft: boolean;
162
164
  enableContentRight: boolean;
163
165
  };
@@ -222,6 +224,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
222
224
  optional: false,
223
225
  required: false,
224
226
  requiredPlacement: 'right',
227
+ hasHint: true,
225
228
  hintText: 'Текст подсказки',
226
229
  hintTrigger: 'hover',
227
230
  hintView: 'default',
@@ -251,6 +254,7 @@ type StoryPropsChips = Omit<
251
254
  | 'minLength'
252
255
  | 'enumerationType'
253
256
  > & {
257
+ hasHint: boolean;
254
258
  enableContentLeft: boolean;
255
259
  enableContentRight: boolean;
256
260
  };
@@ -684,15 +684,4 @@ Object.keys(_ViewContainer).forEach(function (key) {
684
684
  return _ViewContainer[key];
685
685
  }
686
686
  });
687
- });
688
- var _NumberInput = /*#__PURE__*/require("./components/NumberInput");
689
- Object.keys(_NumberInput).forEach(function (key) {
690
- if (key === "default" || key === "__esModule") return;
691
- if (key in exports && exports[key] === _NumberInput[key]) return;
692
- Object.defineProperty(exports, key, {
693
- enumerable: true,
694
- get: function get() {
695
- return _NumberInput[key];
696
- }
697
- });
698
687
  });
@@ -4,13 +4,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6
6
  import React, { forwardRef } from 'react';
7
- import { cx } from '../../utils';
8
7
  import { base as viewCSS } from './variations/_view/base';
9
8
  import { base as sizeCSS } from './variations/_size/base';
10
9
  import { base as disabledCSS } from './variations/_disabled/base';
11
10
  import { SingleSlider, DoubleUncontrolled } from './components';
12
- import { classes } from './Slider.tokens';
13
-
14
11
  // TODO: проверить, можно ли обойтись без каста типов
15
12
 
16
13
  var isSingleValueProps = function isSingleValueProps(props, type) {
@@ -24,15 +21,9 @@ export var sliderRoot = function sliderRoot(Root) {
24
21
  var _ref$type = _ref.type,
25
22
  type = _ref$type === void 0 ? 'single' : _ref$type,
26
23
  props = _objectWithoutProperties(_ref, _excluded);
27
- if (isSingleValueProps(props, type)) {
28
- return /*#__PURE__*/React.createElement(Root, _extends({}, props, {
29
- className: cx(props.orientation === 'vertical' && classes.verticalOrientation, props.className),
30
- ref: ref
31
- }), /*#__PURE__*/React.createElement(SingleSlider, props));
32
- }
33
- return /*#__PURE__*/React.createElement(Root, _extends({
24
+ return /*#__PURE__*/React.createElement(Root, _extends({}, props, {
34
25
  ref: ref
35
- }, props), isDoubleValueProps(props, type) && /*#__PURE__*/React.createElement(DoubleUncontrolled, props));
26
+ }), isSingleValueProps(props, type) && /*#__PURE__*/React.createElement(SingleSlider, props), isDoubleValueProps(props, type) && /*#__PURE__*/React.createElement(DoubleUncontrolled, props));
36
27
  });
37
28
  };
38
29
  export var sliderConfig = {
@@ -76,29 +76,3 @@ export function App() {
76
76
  );
77
77
  }
78
78
  ```
79
-
80
- # Вертикальное отображение
81
-
82
- ```tsx live
83
- import React from 'react';
84
- import { Slider } from '@salutejs/{{ package }}';
85
- import { IconMic } from '@salutejs/plasma-icons';
86
-
87
- export function App() {
88
- return (
89
- <section style={{ height: '300px' }}>
90
- <Slider
91
- onChangeCommitted={() => {}}
92
- min={0}
93
- max={100}
94
- value={30}
95
- label="Громкость"
96
- labelContent={<IconMic size="s" />}
97
- orientation="vertical"
98
- sliderAlign="center"
99
- size="m"
100
- />
101
- </section>
102
- );
103
- }
104
- ```
@@ -1,12 +1,6 @@
1
1
  export var classes = {
2
2
  labelPlacementOuter: 'slider-label-placement-outer',
3
3
  labelPlacementInner: 'slider-label-placement-inner',
4
- labelPlacementBottom: 'slider-label-placement-bottom',
5
- labelAlignLeft: 'slider-label-align-left',
6
- labelAlignCenter: 'slider-label-align-center',
7
- labelAlignRight: 'slider-label-align-right',
8
- labelAlignNone: 'slider-label-align-none',
9
- labelContentReversed: 'slider-label-content-reversed',
10
4
  rangeValuesPlacementOuter: 'slider-range-values-placement-outer',
11
5
  rangeValuesPlacementInner: 'slider-range-values-placement-inner',
12
6
  maxRangeValue: 'slider-max-range-value',
@@ -15,17 +9,13 @@ export var classes = {
15
9
  textFieldActive: 'slider-text-field-active',
16
10
  firstTextField: 'slider-first-text-field',
17
11
  secondTextField: 'slider-second-text-field',
18
- activeRangeValue: 'slider-active-range-value',
19
- verticalOrientation: 'slider-vertical-orientation',
20
- valuePlacementLeft: 'slider-value-placement-left',
21
- reversed: 'slider-reversed'
12
+ activeRangeValue: 'slider-active-range-value'
22
13
  };
23
14
  export var tokens = {
24
- size: '--plasma-slider-size',
15
+ height: '--plasma-slider-height',
25
16
  labelWrapperGap: '--plasma-slider-label-wrapper-gap',
26
17
  labelWrapperMarginBottom: '--plasma-slider-label-wrapper-margin-bottom',
27
18
  labelWrapperMarginRight: '--plasma-slider-label-wrapper-margin-right',
28
- labelWrapperVerticalMargin: '--plasma-slider-label-wrapper-vertical-margin',
29
19
  labelColor: '--plasma-slider-label-color',
30
20
  labelFontFamily: '--plasma-slider-label-font-family',
31
21
  labelFontSize: '--plasma-slider-label-font-size',
@@ -33,27 +23,31 @@ export var tokens = {
33
23
  labelFontWeight: '--plasma-slider-label-font-weight',
34
24
  labelLetterSpacing: '--plasma-slider-label-letter-spacing',
35
25
  labelLineHeight: '--plasma-slider-label-line-height',
26
+ rangeMinValueMargin: '--plasma-slider-range-min-value-margin',
27
+ rangeMaxValueMargin: '--plasma-slider-range-max-value-margin',
36
28
  rangeValueBottomOffset: '--plasma-slider-range-value-bottom-offset',
37
- rangeValueHorizontalMargin: '--plasma-slider-range-value-horizontal-margin',
38
- rangeValueHorizontalOffset: '--plasma-slider-range-value-horizontal-offset',
39
- rangeValueVerticalMargin: '--plasma-slider-range-value-vertical-margin',
40
29
  rangeValueColor: '--plasma-slider-range-value-color',
41
- valueFontFamily: '--plasma-slider-value-font-family',
42
- valueFontSize: '--plasma-slider-value-font-size',
43
- valueFontStyle: '--plasma-slider-value-font-style',
44
- valueFontWeight: '--plasma-slider-value-font-weight',
45
- valueLetterSpacing: '--plasma-slider-value-letter-spacing',
46
- valueLineHeight: '--plasma-slider-value-line-height',
30
+ rangeValueFontFamily: '--plasma-slider-range-value-font-family',
31
+ rangeValueFontSize: '--plasma-slider-range-value-font-size',
32
+ rangeValueFontStyle: '--plasma-slider-range-value-font-style',
33
+ rangeValueFontWeight: '--plasma-slider-range-value-font-weight',
34
+ rangeValueLetterSpacing: '--plasma-slider-range-value-letter-spacing',
35
+ rangeValueLineHeight: '--plasma-slider-range-value-line-height',
47
36
  doubleWrapperGap: '--plasma-slider-double-wrapper-gap',
48
37
  thumbSize: '--plasma-slider-thumb-size',
49
- thumbSizeLarge: '--plasma-slider-thumb-size-large',
50
38
  thumbBorder: '--plasma-slider-thumb-border',
51
39
  thumbBorderColor: '--plasma-slider-thumb-border-color',
52
40
  thumbBackgroundColor: '--plasma-slider-thumb-background-color',
53
41
  thumbFocusBorderColor: '--plasma-slider-thumb-focus-border-color',
54
42
  currentValueTopOffset: '--plasma-slider-current-value-top-offset',
43
+ currentValueFontFamily: '--plasma-slider-current-value-font-family',
44
+ currentValueFontSize: '--plasma-slider-current-value-font-size',
45
+ currentValueFontStyle: '--plasma-slider-current-value-font-style',
46
+ currentValueFontWeight: '--plasma-slider-current-value-font-weight',
47
+ currentValueLetterSpacing: '--plasma-slider-current-value-letter-spacing',
48
+ currentValueLineHeight: '--plasma-slider-current-value-line-height',
55
49
  railBackgroundColor: '--plasma-slider-rail-background-color',
56
- railThickness: '--plasma-slider-rail-thickness',
50
+ railHeight: '--plasma-slider-rail-height',
57
51
  railBorderRadius: '--plasma-slider-rail-border-radius',
58
52
  railIndent: '--plasma-slider-rail-indent',
59
53
  fillColor: '--plasma-slider-fill-color',
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "pointerSize", "onChangeCommitted", "onChangeTextField", "onBlurTextField", "onKeyDownTextField", "onChange", "ariaLabel", "multipleStepSize", "name"];
2
+ var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "onChangeCommitted", "onChangeTextField", "onBlurTextField", "onKeyDownTextField", "onChange", "ariaLabel", "multipleStepSize", "name"];
3
3
  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); }
4
4
  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; }
5
5
  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; }
@@ -38,8 +38,6 @@ export var DoubleSlider = function DoubleSlider(_ref) {
38
38
  labelContentLeft = _ref.labelContentLeft,
39
39
  _ref$size = _ref.size,
40
40
  size = _ref$size === void 0 ? 'm' : _ref$size,
41
- _ref$pointerSize = _ref.pointerSize,
42
- pointerSize = _ref$pointerSize === void 0 ? 'small' : _ref$pointerSize,
43
41
  onChangeCommitted = _ref.onChangeCommitted,
44
42
  onChangeTextField = _ref.onChangeTextField,
45
43
  onBlurTextField = _ref.onBlurTextField,
@@ -66,30 +64,20 @@ export var DoubleSlider = function DoubleSlider(_ref) {
66
64
  setState = _useState2[1];
67
65
  var _useState3 = useState(false),
68
66
  _useState4 = _slicedToArray(_useState3, 2),
69
- firstInputHovered = _useState4[0],
70
- setFirstInputHovered = _useState4[1];
67
+ firstInputActive = _useState4[0],
68
+ setFirstInputActive = _useState4[1];
71
69
  var _useState5 = useState(false),
72
70
  _useState6 = _slicedToArray(_useState5, 2),
73
- firstInputFocused = _useState6[0],
74
- setFirstInputFocused = _useState6[1];
75
- var _useState7 = useState(false),
71
+ secondInputActive = _useState6[0],
72
+ setSecondInputActive = _useState6[1];
73
+ var _useState7 = useState(value[0]),
76
74
  _useState8 = _slicedToArray(_useState7, 2),
77
- secondInputHovered = _useState8[0],
78
- setSecondInputHovered = _useState8[1];
79
- var _useState9 = useState(false),
75
+ firstValue = _useState8[0],
76
+ setFirstValue = _useState8[1];
77
+ var _useState9 = useState(value[1]),
80
78
  _useState10 = _slicedToArray(_useState9, 2),
81
- secondInputFocused = _useState10[0],
82
- setSecondInputFocused = _useState10[1];
83
- var firstInputActive = firstInputHovered || firstInputFocused;
84
- var secondInputActive = secondInputHovered || secondInputFocused;
85
- var _useState11 = useState(value[0]),
86
- _useState12 = _slicedToArray(_useState11, 2),
87
- firstValue = _useState12[0],
88
- setFirstValue = _useState12[1];
89
- var _useState13 = useState(value[1]),
90
- _useState14 = _slicedToArray(_useState13, 2),
91
- secondValue = _useState14[0],
92
- setSecondValue = _useState14[1];
79
+ secondValue = _useState10[0],
80
+ setSecondValue = _useState10[1];
93
81
  var firstHandleRef = useRef(null);
94
82
  var secondHandleRef = useRef(null);
95
83
  var firstHandleValue = useRef(value[0]);
@@ -114,16 +102,6 @@ export var DoubleSlider = function DoubleSlider(_ref) {
114
102
  });
115
103
  });
116
104
  }, [value, stepSize, min, max, setFirstValue, setSecondValue]);
117
- useEffect(function () {
118
- var onMouseUp = function onMouseUp() {
119
- setFirstInputFocused(false);
120
- setSecondInputFocused(false);
121
- };
122
- window.addEventListener('mouseup', onMouseUp);
123
- return function () {
124
- window.removeEventListener('mouseup', onMouseUp);
125
- };
126
- }, []);
127
105
  var setStepSize = useCallback(function (newStepSize) {
128
106
  setState(function (prevState) {
129
107
  return _objectSpread(_objectSpread({}, prevState), {}, {
@@ -265,20 +243,16 @@ export var DoubleSlider = function DoubleSlider(_ref) {
265
243
  ariaLabelLeft = _ref3[0],
266
244
  ariaLabelRight = _ref3[1];
267
245
  var currentFirstSliderValue = Math.max(state.firstValue, min);
268
- var settings = sizeData[size][pointerSize === 'large' ? 'large' : 'small'];
269
246
  return /*#__PURE__*/React.createElement(DoubleWrapper, null, hasLabelContent && /*#__PURE__*/React.createElement(LabelWrapper, null, labelContentLeft && /*#__PURE__*/React.createElement(LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/React.createElement(Label, null, label)), /*#__PURE__*/React.createElement(SliderWrapper, null, /*#__PURE__*/React.createElement(SliderBase, _extends({
270
247
  min: min,
271
248
  max: max,
272
- size: size,
273
249
  disabled: disabled,
274
250
  setStepSize: setStepSize,
275
251
  railFillWidth: state.railFillWidth,
276
- settings: settings,
277
- railFillXPosition: state.railFillXPosition,
278
- orientation: "horizontal"
252
+ settings: sizeData[size],
253
+ railFillXPosition: state.railFillXPosition
279
254
  }, rest), /*#__PURE__*/React.createElement(Handler, {
280
255
  ref: firstHandleRef,
281
- size: pointerSize,
282
256
  stepSize: state.stepSize,
283
257
  multipleStepSize: multipleStepSize,
284
258
  onChangeCommitted: onFirstHandleChangeCommitted,
@@ -288,23 +262,18 @@ export var DoubleSlider = function DoubleSlider(_ref) {
288
262
  disabled: disabled,
289
263
  bounds: [min, state.secondValue],
290
264
  side: "left",
291
- orientation: "horizontal",
292
- position: state.xFirstHandle,
265
+ xPosition: state.xFirstHandle,
293
266
  zIndex: state.firstHandleZIndex,
294
267
  value: currentFirstSliderValue,
295
268
  ariaLabel: ariaLabelLeft,
296
- onMouseDown: function onMouseDown() {
297
- return setFirstInputFocused(true);
298
- },
299
269
  onMouseEnter: function onMouseEnter() {
300
- return setFirstInputHovered(true);
270
+ return setFirstInputActive(true);
301
271
  },
302
272
  onMouseLeave: function onMouseLeave() {
303
- return setFirstInputHovered(false);
273
+ return setFirstInputActive(false);
304
274
  }
305
275
  }), /*#__PURE__*/React.createElement(Handler, {
306
276
  ref: secondHandleRef,
307
- size: pointerSize,
308
277
  stepSize: state.stepSize,
309
278
  multipleStepSize: multipleStepSize,
310
279
  onChangeCommitted: onSecondHandleChangeCommitted,
@@ -315,19 +284,15 @@ export var DoubleSlider = function DoubleSlider(_ref) {
315
284
  disabled: disabled,
316
285
  bounds: [state.firstValue, max],
317
286
  side: "right",
318
- orientation: "horizontal",
319
- position: state.xSecondHandle,
287
+ xPosition: state.xSecondHandle,
320
288
  zIndex: state.secondHandleZIndex,
321
289
  value: Math.max(state.secondValue, min),
322
290
  ariaLabel: ariaLabelRight,
323
- onMouseDown: function onMouseDown() {
324
- return setSecondInputFocused(true);
325
- },
326
291
  onMouseEnter: function onMouseEnter() {
327
- return setSecondInputHovered(true);
292
+ return setSecondInputActive(true);
328
293
  },
329
294
  onMouseLeave: function onMouseLeave() {
330
- return setSecondInputHovered(false);
295
+ return setSecondInputActive(false);
331
296
  }
332
297
  })), /*#__PURE__*/React.createElement(InputsWrapper, null, /*#__PURE__*/React.createElement(StyledInput, {
333
298
  className: cx(classes.firstTextField, firstInputActiveClass),