@salutejs/plasma-new-hope 0.176.0-canary.1514.11570064677.0 → 0.176.1-canary.1510.11572230988.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. package/cjs/components/Counter/Counter.css +1 -1
  2. package/cjs/components/Counter/Counter.js +3 -12
  3. package/cjs/components/Counter/Counter.js.map +1 -1
  4. package/cjs/components/Counter/Counter.tokens.js +0 -4
  5. package/cjs/components/Counter/Counter.tokens.js.map +1 -1
  6. package/cjs/components/Counter/variations/_size/base.js +1 -1
  7. package/cjs/components/Counter/variations/_size/base.js.map +1 -1
  8. package/cjs/components/Counter/variations/_size/{base_4mz17d.css → base_1z0ohiy.css} +1 -1
  9. package/cjs/components/Notification/Notification.css +11 -11
  10. package/cjs/components/Notification/Notification.js +2 -2
  11. package/cjs/components/Notification/Notification.js.map +1 -1
  12. package/cjs/components/Notification/Notification.styles.js +11 -2
  13. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  14. package/{es/components/Notification/Notification.styles_7h8hp0.css → cjs/components/Notification/Notification.styles_e6274r.css} +2 -2
  15. package/cjs/components/Notification/Notification.tokens.js +2 -1
  16. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  17. package/cjs/components/Notification/Notification.types.js.map +1 -1
  18. package/cjs/components/Notification/NotificationsPortal.js +8 -4
  19. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  20. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  21. package/cjs/components/Notification/NotificationsProvider.js +3 -1
  22. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  23. package/cjs/components/Pagination/Pagination.css +12 -12
  24. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +12 -12
  25. package/cjs/components/Select/Select.css +12 -12
  26. package/cjs/components/Select/Select.tokens.js +2 -1
  27. package/cjs/components/Select/Select.tokens.js.map +1 -1
  28. package/cjs/components/Select/ui/Inner/Inner.css +12 -12
  29. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +12 -12
  30. package/cjs/components/Select/ui/Target/Target.css +12 -12
  31. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  32. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  33. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  34. package/{es/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css → cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_jzeap2.css} +1 -1
  35. package/cjs/components/Slider/Slider.css +15 -13
  36. package/cjs/components/Slider/Slider.js +11 -2
  37. package/cjs/components/Slider/Slider.js.map +1 -1
  38. package/cjs/components/Slider/Slider.tokens.js +23 -17
  39. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  40. package/cjs/components/Slider/components/Double/Double.css +8 -8
  41. package/cjs/components/Slider/components/Double/Double.js +58 -23
  42. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  43. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
  44. package/cjs/components/Slider/components/Single/Single.css +14 -14
  45. package/cjs/components/Slider/components/Single/Single.js +64 -33
  46. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  47. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  48. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  49. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
  50. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  51. package/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  52. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  53. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  54. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  55. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
  56. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  57. package/cjs/components/Slider/ui/Handler/Handler.js +49 -88
  58. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  59. package/cjs/components/Slider/ui/Handler/Handler.styles.js +17 -7
  60. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  61. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
  62. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +122 -0
  63. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
  64. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  65. package/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  66. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  67. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  68. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  69. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
  70. package/cjs/components/Slider/utils/index.js +28 -10
  71. package/cjs/components/Slider/utils/index.js.map +1 -1
  72. package/cjs/components/Slider/variations/_view/base.js +1 -1
  73. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  74. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
  75. package/cjs/index.css +38 -36
  76. package/cjs/index.js +1 -1
  77. package/cjs/utils/index.js.map +1 -1
  78. package/emotion/cjs/components/Counter/Counter.js +3 -12
  79. package/emotion/cjs/components/Counter/Counter.template-doc.mdx +2 -2
  80. package/emotion/cjs/components/Counter/Counter.tokens.js +1 -4
  81. package/emotion/cjs/components/Counter/variations/_size/base.js +1 -1
  82. package/emotion/cjs/components/Notification/Notification.js +2 -2
  83. package/emotion/cjs/components/Notification/Notification.styles.js +14 -19
  84. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  85. package/emotion/cjs/components/Notification/Notification.tokens.js +2 -1
  86. package/emotion/cjs/components/Notification/NotificationsPortal.js +9 -5
  87. package/emotion/cjs/components/Notification/NotificationsProvider.js +3 -1
  88. package/emotion/cjs/components/Notification/index.js +4 -4
  89. package/emotion/cjs/components/Select/Select.tokens.js +2 -1
  90. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +12 -21
  91. package/emotion/cjs/components/Slider/Slider.js +10 -2
  92. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +26 -0
  93. package/emotion/cjs/components/Slider/Slider.tokens.js +23 -17
  94. package/emotion/cjs/components/Slider/components/Double/Double.js +54 -19
  95. package/emotion/cjs/components/Slider/components/Single/Single.js +64 -33
  96. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +18 -9
  97. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  98. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  99. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +52 -88
  100. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +9 -15
  101. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
  102. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  103. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  104. package/emotion/cjs/components/Slider/utils/index.js +28 -10
  105. package/emotion/cjs/components/Slider/variations/_view/base.js +2 -1
  106. package/emotion/cjs/examples/plasma_b2c/components/Counter/Counter.config.js +9 -12
  107. package/emotion/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +5 -7
  108. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  109. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  110. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  111. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  112. package/emotion/cjs/examples/plasma_web/components/Counter/Counter.config.js +9 -12
  113. package/emotion/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +5 -7
  114. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  115. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  116. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  117. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  118. package/emotion/es/components/Counter/Counter.js +3 -12
  119. package/emotion/es/components/Counter/Counter.template-doc.mdx +2 -2
  120. package/emotion/es/components/Counter/Counter.tokens.js +0 -3
  121. package/emotion/es/components/Counter/variations/_size/base.js +2 -2
  122. package/emotion/es/components/Notification/Notification.js +1 -1
  123. package/emotion/es/components/Notification/Notification.styles.js +14 -19
  124. package/emotion/es/components/Notification/Notification.template-doc.mdx +17 -8
  125. package/emotion/es/components/Notification/Notification.tokens.js +2 -1
  126. package/emotion/es/components/Notification/NotificationsPortal.js +9 -5
  127. package/emotion/es/components/Notification/NotificationsProvider.js +3 -1
  128. package/emotion/es/components/Notification/index.js +1 -1
  129. package/emotion/es/components/Select/Select.tokens.js +2 -1
  130. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +12 -21
  131. package/emotion/es/components/Slider/Slider.js +11 -2
  132. package/emotion/es/components/Slider/Slider.template-doc.mdx +26 -0
  133. package/emotion/es/components/Slider/Slider.tokens.js +23 -17
  134. package/emotion/es/components/Slider/components/Double/Double.js +54 -19
  135. package/emotion/es/components/Slider/components/Single/Single.js +65 -34
  136. package/emotion/es/components/Slider/components/Single/Single.styles.js +17 -8
  137. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  138. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  139. package/emotion/es/components/Slider/ui/Handler/Handler.js +51 -86
  140. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +10 -16
  141. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
  142. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  143. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  144. package/emotion/es/components/Slider/utils/index.js +28 -10
  145. package/emotion/es/components/Slider/variations/_view/base.js +2 -1
  146. package/emotion/es/examples/plasma_b2c/components/Counter/Counter.config.js +9 -12
  147. package/emotion/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +5 -7
  148. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  149. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  150. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  151. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  152. package/emotion/es/examples/plasma_web/components/Counter/Counter.config.js +9 -12
  153. package/emotion/es/examples/plasma_web/components/Counter/Counter.stories.tsx +5 -7
  154. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  155. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  156. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  157. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  158. package/es/components/Counter/Counter.css +1 -1
  159. package/es/components/Counter/Counter.js +3 -12
  160. package/es/components/Counter/Counter.js.map +1 -1
  161. package/es/components/Counter/Counter.tokens.js +1 -4
  162. package/es/components/Counter/Counter.tokens.js.map +1 -1
  163. package/es/components/Counter/variations/_size/base.js +1 -1
  164. package/es/components/Counter/variations/_size/base.js.map +1 -1
  165. package/es/components/Counter/variations/_size/{base_4mz17d.css → base_1z0ohiy.css} +1 -1
  166. package/es/components/Notification/Notification.css +11 -11
  167. package/es/components/Notification/Notification.js +2 -2
  168. package/es/components/Notification/Notification.js.map +1 -1
  169. package/es/components/Notification/Notification.styles.js +11 -2
  170. package/es/components/Notification/Notification.styles.js.map +1 -1
  171. package/{cjs/components/Notification/Notification.styles_7h8hp0.css → es/components/Notification/Notification.styles_e6274r.css} +2 -2
  172. package/es/components/Notification/Notification.tokens.js +2 -1
  173. package/es/components/Notification/Notification.tokens.js.map +1 -1
  174. package/es/components/Notification/Notification.types.js.map +1 -1
  175. package/es/components/Notification/NotificationsPortal.js +8 -4
  176. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  177. package/es/components/Notification/NotificationsProvider.css +11 -11
  178. package/es/components/Notification/NotificationsProvider.js +3 -1
  179. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  180. package/es/components/Pagination/Pagination.css +12 -12
  181. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +12 -12
  182. package/es/components/Select/Select.css +12 -12
  183. package/es/components/Select/Select.tokens.js +2 -1
  184. package/es/components/Select/Select.tokens.js.map +1 -1
  185. package/es/components/Select/ui/Inner/Inner.css +12 -12
  186. package/es/components/Select/ui/Inner/ui/Item/Item.css +12 -12
  187. package/es/components/Select/ui/Target/Target.css +12 -12
  188. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  189. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  190. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  191. package/{cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css → es/components/Select/ui/Target/ui/Textfield/Textfield.styles_jzeap2.css} +1 -1
  192. package/es/components/Slider/Slider.css +15 -13
  193. package/es/components/Slider/Slider.js +11 -2
  194. package/es/components/Slider/Slider.js.map +1 -1
  195. package/es/components/Slider/Slider.tokens.js +23 -17
  196. package/es/components/Slider/Slider.tokens.js.map +1 -1
  197. package/es/components/Slider/components/Double/Double.css +8 -8
  198. package/es/components/Slider/components/Double/Double.js +54 -19
  199. package/es/components/Slider/components/Double/Double.js.map +1 -1
  200. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
  201. package/es/components/Slider/components/Single/Single.css +14 -14
  202. package/es/components/Slider/components/Single/Single.js +65 -34
  203. package/es/components/Slider/components/Single/Single.js.map +1 -1
  204. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  205. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  206. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
  207. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  208. package/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  209. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  210. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  211. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  212. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
  213. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  214. package/es/components/Slider/ui/Handler/Handler.js +48 -87
  215. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  216. package/es/components/Slider/ui/Handler/Handler.styles.js +17 -7
  217. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  218. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
  219. package/es/components/Slider/ui/Handler/computeKeyPressData.js +118 -0
  220. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
  221. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  222. package/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  223. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  224. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  225. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  226. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
  227. package/es/components/Slider/utils/index.js +28 -10
  228. package/es/components/Slider/utils/index.js.map +1 -1
  229. package/es/components/Slider/variations/_view/base.js +1 -1
  230. package/es/components/Slider/variations/_view/base.js.map +1 -1
  231. package/es/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
  232. package/es/index.css +38 -36
  233. package/es/index.js +1 -1
  234. package/es/utils/index.js.map +1 -1
  235. package/package.json +2 -2
  236. package/styled-components/cjs/components/Counter/Counter.js +3 -12
  237. package/styled-components/cjs/components/Counter/Counter.template-doc.mdx +2 -2
  238. package/styled-components/cjs/components/Counter/Counter.tokens.js +1 -4
  239. package/styled-components/cjs/components/Counter/variations/_size/base.js +1 -1
  240. package/styled-components/cjs/components/Notification/Notification.js +2 -2
  241. package/styled-components/cjs/components/Notification/Notification.styles.js +5 -2
  242. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  243. package/styled-components/cjs/components/Notification/Notification.tokens.js +2 -1
  244. package/styled-components/cjs/components/Notification/NotificationsPortal.js +8 -4
  245. package/styled-components/cjs/components/Notification/NotificationsProvider.js +3 -1
  246. package/styled-components/cjs/components/Notification/index.js +4 -4
  247. package/styled-components/cjs/components/Select/Select.tokens.js +2 -1
  248. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  249. package/styled-components/cjs/components/Slider/Slider.js +10 -2
  250. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +26 -0
  251. package/styled-components/cjs/components/Slider/Slider.tokens.js +23 -17
  252. package/styled-components/cjs/components/Slider/components/Double/Double.js +54 -19
  253. package/styled-components/cjs/components/Slider/components/Single/Single.js +64 -33
  254. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  255. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  256. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  257. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +52 -88
  258. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -4
  259. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
  260. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  261. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  262. package/styled-components/cjs/components/Slider/utils/index.js +28 -10
  263. package/styled-components/cjs/components/Slider/variations/_view/base.js +2 -1
  264. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.config.js +2 -5
  265. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +5 -7
  266. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  267. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  268. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  269. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  270. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.config.js +2 -5
  271. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +5 -7
  272. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  273. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  274. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  275. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  276. package/styled-components/es/components/Counter/Counter.js +3 -12
  277. package/styled-components/es/components/Counter/Counter.template-doc.mdx +2 -2
  278. package/styled-components/es/components/Counter/Counter.tokens.js +0 -3
  279. package/styled-components/es/components/Counter/variations/_size/base.js +2 -2
  280. package/styled-components/es/components/Notification/Notification.js +1 -1
  281. package/styled-components/es/components/Notification/Notification.styles.js +5 -2
  282. package/styled-components/es/components/Notification/Notification.template-doc.mdx +17 -8
  283. package/styled-components/es/components/Notification/Notification.tokens.js +2 -1
  284. package/styled-components/es/components/Notification/NotificationsPortal.js +8 -4
  285. package/styled-components/es/components/Notification/NotificationsProvider.js +3 -1
  286. package/styled-components/es/components/Notification/index.js +1 -1
  287. package/styled-components/es/components/Select/Select.tokens.js +2 -1
  288. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  289. package/styled-components/es/components/Slider/Slider.js +11 -2
  290. package/styled-components/es/components/Slider/Slider.template-doc.mdx +26 -0
  291. package/styled-components/es/components/Slider/Slider.tokens.js +23 -17
  292. package/styled-components/es/components/Slider/components/Double/Double.js +54 -19
  293. package/styled-components/es/components/Slider/components/Single/Single.js +65 -34
  294. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  295. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  296. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  297. package/styled-components/es/components/Slider/ui/Handler/Handler.js +51 -86
  298. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -5
  299. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
  300. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  301. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  302. package/styled-components/es/components/Slider/utils/index.js +28 -10
  303. package/styled-components/es/components/Slider/variations/_view/base.js +2 -1
  304. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.config.js +2 -5
  305. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +5 -7
  306. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  307. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  308. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  309. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  310. package/styled-components/es/examples/plasma_web/components/Counter/Counter.config.js +2 -5
  311. package/styled-components/es/examples/plasma_web/components/Counter/Counter.stories.tsx +5 -7
  312. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  313. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  314. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  315. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  316. package/types/components/Counter/Counter.d.ts.map +1 -1
  317. package/types/components/Counter/Counter.tokens.d.ts +0 -3
  318. package/types/components/Counter/Counter.tokens.d.ts.map +1 -1
  319. package/types/components/Counter/Counter.types.d.ts +2 -2
  320. package/types/components/Counter/variations/_size/base.d.ts.map +1 -1
  321. package/types/components/Notification/Notification.d.ts +3 -3
  322. package/types/components/Notification/Notification.d.ts.map +1 -1
  323. package/types/components/Notification/Notification.styles.d.ts +4 -2
  324. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  325. package/types/components/Notification/Notification.tokens.d.ts +1 -0
  326. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  327. package/types/components/Notification/Notification.types.d.ts +11 -5
  328. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  329. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  330. package/types/components/Notification/NotificationsProvider.d.ts +4 -3
  331. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  332. package/types/components/Notification/index.d.ts +2 -2
  333. package/types/components/Notification/index.d.ts.map +1 -1
  334. package/types/components/Select/Select.tokens.d.ts +1 -0
  335. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  336. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  337. package/types/components/Slider/Slider.d.ts.map +1 -1
  338. package/types/components/Slider/Slider.tokens.d.ts +22 -16
  339. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  340. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  341. package/types/components/Slider/components/Double/Double.types.d.ts +1 -0
  342. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  343. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  344. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  345. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  346. package/types/components/Slider/components/Single/Single.types.d.ts +79 -7
  347. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  348. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  349. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  350. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  351. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +6 -0
  352. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  353. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  354. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +6 -2
  355. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  356. package/types/components/Slider/ui/Handler/Handler.types.d.ts +5 -1
  357. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  358. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +12 -0
  359. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +1 -0
  360. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  361. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  362. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  363. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +1 -0
  364. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  365. package/types/components/Slider/utils/index.d.ts +26 -8
  366. package/types/components/Slider/utils/index.d.ts.map +1 -1
  367. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  368. package/types/examples/plasma_b2c/components/Counter/Counter.config.d.ts +0 -3
  369. package/types/examples/plasma_b2c/components/Counter/Counter.config.d.ts.map +1 -1
  370. package/types/examples/plasma_b2c/components/Counter/Counter.d.ts +0 -3
  371. package/types/examples/plasma_b2c/components/Counter/Counter.d.ts.map +1 -1
  372. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +4 -2
  373. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  374. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  375. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +80 -2
  376. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  377. package/types/examples/plasma_web/components/Counter/Counter.config.d.ts +0 -3
  378. package/types/examples/plasma_web/components/Counter/Counter.config.d.ts.map +1 -1
  379. package/types/examples/plasma_web/components/Counter/Counter.d.ts +0 -3
  380. package/types/examples/plasma_web/components/Counter/Counter.d.ts.map +1 -1
  381. package/types/examples/plasma_web/components/Notification/Notification.d.ts +4 -13
  382. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  383. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  384. package/types/examples/plasma_web/components/Slider/Slider.d.ts +80 -2
  385. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  386. package/types/utils/index.d.ts +1 -1
  387. package/types/utils/index.d.ts.map +1 -1
  388. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  389. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
  390. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
  391. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  392. package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
  393. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  394. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
  395. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
  396. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  397. package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
@@ -1,19 +1,13 @@
1
1
  import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
- import { tokens } from '../../Slider.tokens';
4
- export var HandlerStyled = /*#__PURE__*/_styled("div", {
5
- target: "e1o9stmr1",
6
- label: "plasma-new-hope__HandlerStyled"
7
- })(process.env.NODE_ENV === "production" ? {
8
- name: "1dnu1tq",
9
- styles: "cursor:pointer;position:absolute;z-index:1;top:0;left:0"
10
- } : {
11
- name: "1dnu1tq",
12
- styles: "cursor:pointer;position:absolute;z-index:1;top:0;left:0",
13
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL1NsaWRlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgSGFuZGxlclN0eWxlZCA9IHN0eWxlZC5kaXZgXG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAxO1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFZhbHVlID0gc3R5bGVkLnNwYW5gXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHotaW5kZXg6IDE7XG4gICAgdG9wOiB2YXIoJHt0b2tlbnMuY3VycmVudFZhbHVlVG9wT2Zmc2V0fSk7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbi1sZWZ0OiAtMC4xMjVyZW07XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUZvbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy5jdXJyZW50VmFsdWVGb250U2l6ZX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5jdXJyZW50VmFsdWVGb250U3R5bGV9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUZvbnRXZWlnaHR9KTtcbiAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */",
14
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15
- });
2
+ import { classes, tokens } from '../../Slider.tokens';
16
3
  export var StyledValue = /*#__PURE__*/_styled("span", {
17
- target: "e1o9stmr0",
4
+ target: "e1o9stmr1",
18
5
  label: "plasma-new-hope__StyledValue"
19
- })("position:absolute;z-index:1;top:var(", tokens.currentValueTopOffset, ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", tokens.currentValueFontFamily, ");font-size:var(", tokens.currentValueFontSize, ");font-style:var(", tokens.currentValueFontStyle, ");font-weight:var(", tokens.currentValueFontWeight, ");letter-spacing:var(", tokens.currentValueLetterSpacing, ");line-height:var(", tokens.currentValueLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3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vucy5jdXJyZW50VmFsdWVGb250U3R5bGV9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUZvbnRXZWlnaHR9KTtcbiAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */"));
6
+ })("position:absolute;z-index:1;top:var(", tokens.currentValueTopOffset, ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", tokens.valueFontFamily, ");font-size:var(", tokens.valueFontSize, ");font-style:var(", tokens.valueFontStyle, ");font-weight:var(", tokens.valueFontWeight, ");letter-spacing:var(", tokens.valueLetterSpacing, ");line-height:var(", tokens.valueLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSWtFIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL1NsaWRlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVmFsdWUgPSBzdHlsZWQuc3Bhbjx7IGlz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T4gKGlzTGFyZ2UgPyBgdmFyKCR7dG9rZW5zLnRodW1iU2l6ZUxhcmdlfSlgIDogYHZhcigke3Rva2Vucy50aHVtYlNpemV9KWApfTtcblxuICAgICYuJHtjbGFzc2VzLnZlcnRpY2FsT3JpZW50YXRpb259IHtcbiAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgIGJvdHRvbTogYXV0bztcbiAgICAgICAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXG4gICAgICAgICR7U3R5bGVkVmFsdWV9IHtcbiAgICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgICAgIHRvcDogMDtcbiAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICAgICAgbGVmdDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gKHZhcigke3Rva2Vucy5zaXplfSkgLSB2YXIoLS10aHVtYi1zaXplKSkgLyAyICsgMC4yNXJlbSk7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LXN0YXJ0O1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmFsdWVQbGFjZW1lbnRMZWZ0fSB7XG4gICAgICAgICR7U3R5bGVkVmFsdWV9IHtcbiAgICAgICAgICAgIGxlZnQ6IGF1dG87XG4gICAgICAgICAgICByaWdodDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gKHZhcigke3Rva2Vucy5zaXplfSkgLSB2YXIoLS10aHVtYi1zaXplKSkgLyAyICsgMC4zMTI1cmVtKTtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
7
+ export var HandlerStyled = /*#__PURE__*/_styled("div", {
8
+ target: "e1o9stmr0",
9
+ label: "plasma-new-hope__HandlerStyled"
10
+ })("cursor:pointer;position:absolute;z-index:1;top:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center;--thumb-size:", function (_ref) {
11
+ var isLarge = _ref.isLarge;
12
+ return isLarge ? "var(".concat(tokens.thumbSizeLarge, ")") : "var(".concat(tokens.thumbSize, ")");
13
+ }, ";&.", classes.verticalOrientation, "{right:0;bottom:auto;align-items:flex-start;justify-content:center;", StyledValue, "{margin:0;top:0;bottom:0;right:0;left:calc(var(", tokens.size, ") - (var(", tokens.size, ") - var(--thumb-size)) / 2 + 0.25rem);align-items:center;justify-content:flex-start;}}&.", classes.valuePlacementLeft, "{", StyledValue, "{left:auto;right:calc(var(", tokens.size, ") - (var(", tokens.size, ") - var(--thumb-size)) / 2 + 0.3125rem);justify-content:flex-end;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUI4RCIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NsaWRlci91aS9IYW5kbGVyL0hhbmRsZXIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFZhbHVlID0gc3R5bGVkLnNwYW48eyBpc0xhcmdlVGh1bWI/OiBib29sZWFuIH0+YFxuICAgIHBvc2l0aW9uO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ucy50aHVtYlNpemVMYXJnZX0pYCA6IGB2YXIoJHt0b2tlbnMudGh1bWJTaXplfSlgKX07XG5cbiAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICBib3R0b206IGF1dG87XG4gICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblxuICAgICAgICAke1N0eWxlZFZhbHVlfSB7XG4gICAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICBib3R0b206IDA7XG4gICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICAgIGxlZnQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSAtICh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gdmFyKC0tdGh1bWItc2l6ZSkpIC8gMiArIDAuMjVyZW0pO1xuICAgICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLnZhbHVlUGxhY2VtZW50TGVmdH0ge1xuICAgICAgICAke1N0eWxlZFZhbHVlfSB7XG4gICAgICAgICAgICBsZWZ0OiBhdXRvO1xuICAgICAgICAgICAgcmlnaHQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSAtICh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gdmFyKC0tdGh1bWItc2l6ZSkpIC8gMiArIDAuMzEyNXJlbSk7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -0,0 +1,115 @@
1
+ var KeyboardSupport = {
2
+ PageUp: 33,
3
+ PageDown: 34,
4
+ End: 35,
5
+ Home: 36,
6
+ ArrowLeft: 37,
7
+ ArrowUp: 38,
8
+ ArrowRight: 39,
9
+ ArrowDown: 40
10
+ };
11
+ var ArrowUp = KeyboardSupport.ArrowUp,
12
+ ArrowRight = KeyboardSupport.ArrowRight,
13
+ ArrowDown = KeyboardSupport.ArrowDown,
14
+ ArrowLeft = KeyboardSupport.ArrowLeft,
15
+ Home = KeyboardSupport.Home,
16
+ End = KeyboardSupport.End,
17
+ PageDown = KeyboardSupport.PageDown,
18
+ PageUp = KeyboardSupport.PageUp;
19
+ var computeVerticalMovement = function computeVerticalMovement(event, _ref) {
20
+ var stepSize = _ref.stepSize,
21
+ position = _ref.position,
22
+ max = _ref.max,
23
+ computedMultipleSteps = _ref.computedMultipleSteps;
24
+ var keyCode = event.keyCode,
25
+ target = event.target;
26
+ var data = {
27
+ x: 0,
28
+ deltaX: 0,
29
+ lastX: 0,
30
+ y: 0,
31
+ deltaY: stepSize,
32
+ lastY: position,
33
+ node: target
34
+ };
35
+ switch (keyCode) {
36
+ case ArrowUp:
37
+ case ArrowRight:
38
+ data.y = position - stepSize;
39
+ data.deltaY = -stepSize;
40
+ break;
41
+ case ArrowDown:
42
+ case ArrowLeft:
43
+ data.y = position + stepSize;
44
+ break;
45
+ case PageUp:
46
+ data.y = position - computedMultipleSteps;
47
+ data.deltaY = -computedMultipleSteps;
48
+ break;
49
+ case PageDown:
50
+ data.y = position + computedMultipleSteps;
51
+ data.deltaY = computedMultipleSteps;
52
+ break;
53
+ case End:
54
+ data.y = max * stepSize;
55
+ break;
56
+ case Home:
57
+ data.y = 0;
58
+ break;
59
+ default:
60
+ data.y = 0;
61
+ }
62
+ return data;
63
+ };
64
+ var computeHorizontalMovement = function computeHorizontalMovement(event, _ref2) {
65
+ var stepSize = _ref2.stepSize,
66
+ position = _ref2.position,
67
+ max = _ref2.max,
68
+ computedMultipleSteps = _ref2.computedMultipleSteps;
69
+ var keyCode = event.keyCode,
70
+ target = event.target;
71
+ var data = {
72
+ x: 0,
73
+ deltaX: stepSize,
74
+ lastX: position,
75
+ y: 0,
76
+ deltaY: 0,
77
+ lastY: 0,
78
+ node: target
79
+ };
80
+ switch (keyCode) {
81
+ case ArrowUp:
82
+ case ArrowRight:
83
+ data.x = position + stepSize;
84
+ break;
85
+ case ArrowDown:
86
+ case ArrowLeft:
87
+ data.x = position - stepSize;
88
+ data.deltaX = -stepSize;
89
+ break;
90
+ case PageUp:
91
+ data.x = position + computedMultipleSteps;
92
+ data.deltaX = computedMultipleSteps;
93
+ break;
94
+ case PageDown:
95
+ data.x = position - computedMultipleSteps;
96
+ data.deltaX = -computedMultipleSteps;
97
+ break;
98
+ case End:
99
+ data.x = max * stepSize;
100
+ break;
101
+ case Home:
102
+ data.x = 0;
103
+ break;
104
+ default:
105
+ data.x = 0;
106
+ }
107
+ return data;
108
+ };
109
+ export var computeKeyPressData = function computeKeyPressData(event, params) {
110
+ var keyCode = event.keyCode;
111
+ if (!Object.values(KeyboardSupport).includes(keyCode)) {
112
+ return null;
113
+ }
114
+ return params.isVertical ? computeVerticalMovement(event, params) : computeHorizontalMovement(event, params);
115
+ };
@@ -1,4 +1,4 @@
1
- var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled"];
1
+ var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled", "orientation"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -12,6 +12,7 @@ export var Thumb = function Thumb(_ref) {
12
12
  ariaValueMin = _ref$ariaValueMin === void 0 ? min : _ref$ariaValueMin,
13
13
  ariaLabel = _ref.ariaLabel,
14
14
  disabled = _ref.disabled,
15
+ orientation = _ref.orientation,
15
16
  rest = _objectWithoutProperties(_ref, _excluded);
16
17
  return /*#__PURE__*/React.createElement(ThumbBase, _extends({
17
18
  role: "slider",
@@ -20,6 +21,6 @@ export var Thumb = function Thumb(_ref) {
20
21
  "aria-valuemax": max,
21
22
  "aria-valuenow": value,
22
23
  disabled: disabled,
23
- "aria-orientation": "horizontal"
24
+ "aria-orientation": orientation
24
25
  }, rest));
25
26
  };
@@ -4,9 +4,9 @@ import { tokens } from '../../Slider.tokens';
4
4
  export var ThumbBase = /*#__PURE__*/_styled("div", {
5
5
  target: "e1lys3110",
6
6
  label: "plasma-new-hope__ThumbBase"
7
- })("width:var(", tokens.thumbSize, ");height:var(", tokens.thumbSize, ");position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(", tokens.thumbBackgroundColor, ");margin:0.125rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", tokens.thumbBorderColor, ");margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", tokens.thumbFocusBorderColor, ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", /*#__PURE__*/addFocus({
8
- outlineOffset: '0.125rem',
7
+ })("width:var(--thumb-size);height:var(--thumb-size);min-width:var(--thumb-size);min-height:var(--thumb-size);position:relative;border-radius:50%;box-sizing:border-box;background:var(", tokens.thumbBackgroundColor, ");margin:0.0625rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", tokens.thumbBorderColor, ");margin:-0.0625rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", tokens.thumbFocusBorderColor, ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", /*#__PURE__*/addFocus({
8
+ outlineOffset: '0.0625rem',
9
9
  outlineSize: '0.125rem',
10
10
  outlineRadius: '50%',
11
11
  outlineColor: /*#__PURE__*/"var(".concat(tokens.thumbFocusBorderColor, ")")
12
- }), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL1RodW1iL1RodW1iLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLMkQiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TbGlkZXIvdWkvVGh1bWIvVGh1bWIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBhZGRGb2N1cyB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IFRodW1iQmFzZSA9IHN0eWxlZC5kaXY8eyBkaXNhYmxlZD86IGJvb2xlYW4gfT5gXG4gICAgd2lkdGg6IHZhcigke3Rva2Vucy50aHVtYlNpemV9KTtcbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy50aHVtYlNpemV9KTtcbiAgICBwb3NpdGlvbj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gICAgICAgIG91dGxpbmVDb2xvcjogYHZhcigke3Rva2Vucy50aHVtYkZvY3VzQm9yZGVyQ29sb3J9KWAsXG4gICAgfSl9XG5gO1xuIl19 */"));
12
+ }), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL1RodW1iL1RodW1iLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLMkQiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TbGlkZXIvdWkvVGh1bWIvVGh1bWIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBhZGRGb2N1cyB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IFRodW1iQmFzZSA9IHN0eWxlZC5kaXY8eyBkaXNhYmxlZD86IGJvb2xlYW4gfT5gXG4gICAgd2lkdGg6IHZhcigtLXRodW1iLXNpemUpO1xuICAgIGhlaWdodDogdmFyKC0tdGh1bWItc2l6ZSk7XG4gICAgbWluLXdpZHRoOiB2YXIoLS10aHVtYi1zaXplKTtcbiAgICBtaW4taGVpZ2h0OiB2YXIoLS10aHVtYi1zaXplKTtcblxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGh1bWJCYWNrZ3JvdW5kQ29sb3J9KTtcbiAgICBtYXJnaW46IDAuMDYyNXJlbTtcbiAgICB0cmFuc2l0aW9uOiBib3JkZXItY29sb3IgMC4xcyBlYXNlLWluLW91dDtcblxuICAgICY6YWZ0ZXIge1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGh1bWJCb3JkZXJDb2xvcn0pO1xuICAgICAgICBtYXJnaW46IC0wLjA2MjVyZW07XG4gICAgICAgIGNvbnRlbnQ6ICcnO1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGluc2V0OiAwO1xuICAgICAgICB6LWluZGV4OiAtMTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogaW5oZXJpdDtcbiAgICB9XG5cbiAgICAmOm5vdChbZGlzYWJsZWRdKTpob3ZlcjphZnRlcixcbiAgICAmOm5vdChbZGlzYWJsZWRdKTphY3RpdmU6YWZ0ZXIge1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGh1bWJGb2N1c0JvcmRlckNvbG9yfSk7XG4gICAgfVxuXG4gICAgJltkaXNhYmxlZF0ge1xuICAgICAgICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xuICAgIH1cblxuICAgICY6Zm9jdXMge1xuICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgIH1cblxuICAgICR7YWRkRm9jdXMoe1xuICAgICAgICBvdXRsaW5lT2Zmc2V0OiAnMC4wNjI1cmVtJyxcbiAgICAgICAgb3V0bGluZVNpemU6ICcwLjEyNXJlbScsXG4gICAgICAgIG91dGxpbmVSYWRpdXM6ICc1MCUnLFxuICAgICAgICBvdXRsaW5lQ29sb3I6IGB2YXIoJHt0b2tlbnMudGh1bWJGb2N1c0JvcmRlckNvbG9yfSlgLFxuICAgIH0pfVxuYDtcbiJdfQ== */"));
@@ -6,8 +6,8 @@
6
6
  * @param {number} max
7
7
  * @return {number}
8
8
  */
9
- export function getSliderThumbValue(handleCenterXRelative, stepSize, min, max) {
10
- var newValue = Math.round(handleCenterXRelative / stepSize) + min;
9
+ export function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max) {
10
+ var newValue = Math.round(handleCenterPosRelative / stepSize) + min;
11
11
  return Math.min(Math.max(newValue, min), max);
12
12
  }
13
13
 
@@ -18,11 +18,11 @@ export function getSliderThumbValue(handleCenterXRelative, stepSize, min, max) {
18
18
  * @param {'left' | 'right'} side
19
19
  * @return Array<number>
20
20
  */
21
- export function getOffsets(ref, side) {
21
+ export function getOffsets(ref, side, isVertical) {
22
22
  if (!ref || !('current' in ref) || !ref.current || !side) {
23
23
  return [0, 0];
24
24
  }
25
- var size = ref.current.clientWidth;
25
+ var size = isVertical ? ref.current.clientHeight : ref.current.clientWidth;
26
26
  if (side === 'left') {
27
27
  return [0, size];
28
28
  }
@@ -33,15 +33,33 @@ export function getOffsets(ref, side) {
33
33
  }
34
34
  export var sizeData = {
35
35
  s: {
36
- indent: 0.5,
37
- fontSizeMultiplier: 16
36
+ small: {
37
+ indent: 0.5,
38
+ fontSizeMultiplier: 16
39
+ },
40
+ large: {
41
+ indent: 0.625,
42
+ fontSizeMultiplier: 16
43
+ }
38
44
  },
39
45
  m: {
40
- indent: 0.75,
41
- fontSizeMultiplier: 16
46
+ small: {
47
+ indent: 0.5,
48
+ fontSizeMultiplier: 16
49
+ },
50
+ large: {
51
+ indent: 0.625,
52
+ fontSizeMultiplier: 16
53
+ }
42
54
  },
43
55
  l: {
44
- indent: 0.75,
45
- fontSizeMultiplier: 16
56
+ small: {
57
+ indent: 0.5,
58
+ fontSizeMultiplier: 16
59
+ },
60
+ large: {
61
+ indent: 0.625,
62
+ fontSizeMultiplier: 16
63
+ }
46
64
  }
47
65
  };
@@ -1,2 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
- export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYGA7XG4iXX0= */"));
2
+ import { classes } from '../../Slider.tokens';
3
+ export var base = /*#__PURE__*/css("&.", classes.verticalOrientation, "{height:100%;display:inline-flex;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIH1cbmA7XG4iXX0= */"));