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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (919) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +1 -1
  2. package/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  3. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  4. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  5. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  6. package/cjs/components/Autocomplete/ui/TextField/{TextField.styles_kcgaix.css → TextField.styles_1csckkd.css} +1 -1
  7. package/cjs/components/Calendar/Calendar.tokens.js +0 -4
  8. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +15 -16
  10. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  11. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  12. package/{es/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → cjs/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +15 -16
  14. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  15. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
  16. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -3
  17. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  18. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -11
  19. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  20. package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_zgya4j.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
  21. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  22. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.css +4 -4
  23. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  24. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.css +4 -4
  25. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -1
  26. package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js.map +1 -1
  27. package/{es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles_uzh6dj.css → cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles_1nxxafr.css} +1 -1
  28. package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
  29. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  30. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  31. package/cjs/components/Combobox/ComboboxNew/{Combobox.styles_18a8p75.css → Combobox.styles_1s09ifw.css} +1 -1
  32. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +26 -4
  33. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  34. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  35. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  36. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  37. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  38. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1kzr84z.css → Item.styles_y71664.css} +2 -2
  39. package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -5
  40. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -5
  41. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -5
  42. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -5
  43. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -5
  44. package/cjs/components/DatePicker/DatePicker.tokens.js +0 -6
  45. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  46. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  47. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
  49. package/cjs/components/DatePicker/RangeDate/RangeDate.css +19 -20
  50. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -18
  51. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  52. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
  53. package/cjs/components/DatePicker/SingleDate/SingleDate.css +19 -20
  54. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  55. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  56. package/{es/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → cjs/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
  57. package/cjs/components/Dropdown/Dropdown.css +5 -5
  58. package/cjs/components/Dropdown/Dropdown.styles.js +1 -1
  59. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  60. package/cjs/components/Dropdown/{Dropdown.styles_dh7ns1.css → Dropdown.styles_1ix6io8.css} +1 -1
  61. package/cjs/components/Dropdown/Dropdown.tokens.js +0 -2
  62. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  63. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -5
  64. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  65. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  66. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_17va0nk.css} +1 -1
  67. package/cjs/components/Notification/Notification.css +11 -11
  68. package/cjs/components/Notification/Notification.js +3 -3
  69. package/cjs/components/Notification/Notification.js.map +1 -1
  70. package/cjs/components/Notification/Notification.styles.js +15 -15
  71. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  72. package/cjs/components/Notification/{Notification.styles_bvno9v.css → Notification.styles_7h8hp0.css} +2 -2
  73. package/cjs/components/Notification/Notification.tokens.js +1 -5
  74. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  75. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  76. package/cjs/components/NumberInput/NumberInput.css +52 -0
  77. package/cjs/components/NumberInput/NumberInput.js +183 -0
  78. package/cjs/components/NumberInput/NumberInput.js.map +1 -0
  79. package/cjs/components/NumberInput/NumberInput.styles.js +9 -0
  80. package/cjs/components/NumberInput/NumberInput.styles.js.map +1 -0
  81. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  82. package/cjs/components/NumberInput/NumberInput.tokens.js +92 -0
  83. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -0
  84. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +19 -0
  85. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  86. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +22 -0
  87. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  88. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  89. package/cjs/components/NumberInput/ui/Input/Input.css +15 -0
  90. package/cjs/components/NumberInput/ui/Input/Input.js +199 -0
  91. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -0
  92. package/cjs/components/NumberInput/ui/Input/Input.styles.js +96 -0
  93. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  94. package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  95. package/cjs/components/NumberInput/utils/index.js +8 -0
  96. package/cjs/components/NumberInput/utils/index.js.map +1 -0
  97. package/cjs/components/NumberInput/variations/_background-type/base.js +9 -0
  98. package/cjs/components/NumberInput/variations/_background-type/base.js.map +1 -0
  99. package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  100. package/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  101. package/cjs/components/NumberInput/variations/_disabled/base.js.map +1 -0
  102. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  103. package/cjs/components/NumberInput/variations/_segmentation/base.js +9 -0
  104. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  105. package/cjs/components/NumberInput/variations/_segmentation/base_1jt83uh.css +1 -0
  106. package/cjs/components/NumberInput/variations/_shape/base.js +9 -0
  107. package/cjs/components/NumberInput/variations/_shape/base.js.map +1 -0
  108. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  109. package/cjs/components/NumberInput/variations/_size/base.js +9 -0
  110. package/cjs/components/NumberInput/variations/_size/base.js.map +1 -0
  111. package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  112. package/cjs/components/NumberInput/variations/_view/base.js +9 -0
  113. package/cjs/components/NumberInput/variations/_view/base.js.map +1 -0
  114. package/cjs/components/NumberInput/variations/_view/base_3gefjm.css +1 -0
  115. package/cjs/components/Pagination/Pagination.css +10 -10
  116. package/cjs/components/Pagination/Pagination.js +5 -5
  117. package/cjs/components/Pagination/Pagination.js.map +1 -1
  118. package/cjs/components/Pagination/Pagination.styles.js +3 -3
  119. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  120. package/cjs/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
  121. package/cjs/components/Pagination/Pagination.tokens.js +1 -4
  122. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  123. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  124. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  125. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  126. package/cjs/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
  127. package/cjs/components/Slider/Slider.css +13 -15
  128. package/cjs/components/Slider/Slider.js +2 -11
  129. package/cjs/components/Slider/Slider.js.map +1 -1
  130. package/cjs/components/Slider/Slider.tokens.js +17 -23
  131. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  132. package/cjs/components/Slider/components/Double/Double.css +8 -8
  133. package/cjs/components/Slider/components/Double/Double.js +23 -58
  134. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  135. package/cjs/components/Slider/components/Single/Single.css +14 -14
  136. package/cjs/components/Slider/components/Single/Single.js +33 -64
  137. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  138. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  139. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  140. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  141. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  142. package/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  143. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  144. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  145. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  146. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  147. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  148. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  149. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  150. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  151. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  152. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  153. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  154. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  155. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  156. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  157. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  158. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  159. package/cjs/components/Slider/utils/index.js +10 -28
  160. package/cjs/components/Slider/utils/index.js.map +1 -1
  161. package/cjs/components/Slider/variations/_view/base.js +1 -1
  162. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  163. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  164. package/cjs/components/Tabs/tokens.js +1 -7
  165. package/cjs/components/Tabs/tokens.js.map +1 -1
  166. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  167. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  168. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  169. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_uaaqqg.css → HorizontalTabItem.styles_hfqv5b.css} +1 -1
  170. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  171. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  172. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  173. package/{es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css → cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css} +1 -1
  174. package/cjs/components/Toast/Toast.css +5 -5
  175. package/cjs/components/Toast/Toast.js +3 -3
  176. package/cjs/components/Toast/Toast.js.map +1 -1
  177. package/cjs/components/Toast/Toast.styles.js +3 -3
  178. package/cjs/components/Toast/Toast.styles.js.map +1 -1
  179. package/cjs/components/Toast/{Toast.styles_1nei944.css → Toast.styles_1v9oj7f.css} +1 -1
  180. package/cjs/components/Toast/Toast.tokens.js +1 -3
  181. package/cjs/components/Toast/Toast.tokens.js.map +1 -1
  182. package/cjs/components/Toast/ToastController.css +5 -5
  183. package/cjs/index.css +111 -91
  184. package/cjs/index.js +6 -0
  185. package/cjs/index.js.map +1 -1
  186. package/cjs/utils/index.js.map +1 -1
  187. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  188. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  189. package/emotion/cjs/components/Calendar/Calendar.tokens.js +0 -4
  190. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  191. package/emotion/cjs/components/Calendar/mixins/selected.js +2 -3
  192. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  193. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +17 -22
  194. package/emotion/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +4 -5
  195. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  196. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -4
  197. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -12
  198. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +0 -6
  199. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
  200. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  201. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +2 -2
  202. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +1 -2
  203. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +6 -6
  204. package/emotion/cjs/components/Notification/Notification.js +4 -4
  205. package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
  206. package/emotion/cjs/components/Notification/Notification.tokens.js +1 -5
  207. package/emotion/cjs/components/NumberInput/NumberInput.js +193 -0
  208. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +17 -0
  209. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +89 -0
  210. package/emotion/cjs/components/NumberInput/NumberInput.types.js +5 -0
  211. package/emotion/cjs/components/NumberInput/index.js +31 -0
  212. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  213. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +16 -0
  214. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  215. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +207 -0
  216. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +81 -0
  217. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  218. package/emotion/cjs/components/NumberInput/ui/index.js +19 -0
  219. package/emotion/cjs/components/NumberInput/utils/index.js +7 -0
  220. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  221. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  222. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  223. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  224. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  225. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  226. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  227. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  228. package/emotion/cjs/components/NumberInput/variations/_size/base.js +13 -0
  229. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  230. package/emotion/cjs/components/NumberInput/variations/_view/base.js +13 -0
  231. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  232. package/emotion/cjs/components/Pagination/Pagination.js +5 -5
  233. package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
  234. package/emotion/cjs/components/Pagination/Pagination.tokens.js +1 -4
  235. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  236. package/emotion/cjs/components/Slider/Slider.js +2 -10
  237. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  238. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  239. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  240. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  241. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  242. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  243. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  244. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  245. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  246. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  247. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  248. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  249. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  250. package/emotion/cjs/components/Tabs/tokens.js +1 -7
  251. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  252. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  253. package/emotion/cjs/components/Toast/Toast.js +4 -4
  254. package/emotion/cjs/components/Toast/Toast.styles.js +6 -6
  255. package/emotion/cjs/components/Toast/Toast.tokens.js +1 -3
  256. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  257. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  258. package/emotion/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  259. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  260. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  261. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  262. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.config.js +5 -5
  263. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  264. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  265. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  266. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  267. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  268. package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.config.js +5 -5
  269. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  270. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  271. package/emotion/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  272. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  273. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  274. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  275. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.config.js +5 -5
  276. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  277. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  278. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  279. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  280. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  281. package/emotion/cjs/examples/plasma_web/components/Toast/Toast.config.js +5 -5
  282. package/emotion/cjs/index.js +11 -0
  283. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  284. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  285. package/emotion/es/components/Calendar/Calendar.tokens.js +0 -4
  286. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  287. package/emotion/es/components/Calendar/mixins/selected.js +2 -3
  288. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  289. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +16 -21
  290. package/emotion/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +4 -5
  291. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  292. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -4
  293. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +12 -12
  294. package/emotion/es/components/DatePicker/DatePicker.tokens.js +0 -6
  295. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +3 -3
  296. package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  297. package/emotion/es/components/Dropdown/Dropdown.styles.js +2 -2
  298. package/emotion/es/components/Dropdown/Dropdown.tokens.js +1 -2
  299. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +6 -6
  300. package/emotion/es/components/Notification/Notification.js +4 -4
  301. package/emotion/es/components/Notification/Notification.styles.js +11 -11
  302. package/emotion/es/components/Notification/Notification.tokens.js +1 -5
  303. package/emotion/es/components/NumberInput/NumberInput.js +185 -0
  304. package/emotion/es/components/NumberInput/NumberInput.styles.js +11 -0
  305. package/emotion/es/components/NumberInput/NumberInput.tokens.js +83 -0
  306. package/emotion/es/components/NumberInput/NumberInput.types.js +1 -0
  307. package/emotion/es/components/NumberInput/index.js +2 -0
  308. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  309. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +9 -0
  310. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  311. package/emotion/es/components/NumberInput/ui/Input/Input.js +198 -0
  312. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +74 -0
  313. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  314. package/emotion/es/components/NumberInput/ui/index.js +2 -0
  315. package/emotion/es/components/NumberInput/utils/index.js +1 -0
  316. package/emotion/es/components/NumberInput/variations/_background-type/base.js +4 -0
  317. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  318. package/emotion/es/components/NumberInput/variations/_disabled/base.js +3 -0
  319. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  320. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  321. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  322. package/emotion/es/components/NumberInput/variations/_shape/base.js +5 -0
  323. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  324. package/emotion/es/components/NumberInput/variations/_size/base.js +7 -0
  325. package/emotion/es/components/NumberInput/variations/_size/tokens.json +22 -0
  326. package/emotion/es/components/NumberInput/variations/_view/base.js +7 -0
  327. package/emotion/es/components/NumberInput/variations/_view/tokens.json +14 -0
  328. package/emotion/es/components/Pagination/Pagination.js +5 -5
  329. package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
  330. package/emotion/es/components/Pagination/Pagination.tokens.js +1 -4
  331. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  332. package/emotion/es/components/Slider/Slider.js +2 -11
  333. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  334. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  335. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  336. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  337. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  338. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  339. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  340. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  341. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  342. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  343. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  344. package/emotion/es/components/Slider/utils/index.js +10 -28
  345. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  346. package/emotion/es/components/Tabs/tokens.js +1 -7
  347. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  348. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  349. package/emotion/es/components/Toast/Toast.js +4 -4
  350. package/emotion/es/components/Toast/Toast.styles.js +6 -6
  351. package/emotion/es/components/Toast/Toast.tokens.js +1 -3
  352. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  353. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  354. package/emotion/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  355. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  356. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +7 -7
  357. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  358. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.config.js +5 -5
  359. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  360. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  361. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  362. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  363. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  364. package/emotion/es/examples/plasma_b2c/components/Toast/Toast.config.js +5 -5
  365. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  366. package/emotion/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  367. package/emotion/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  368. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  369. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  370. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  371. package/emotion/es/examples/plasma_web/components/Notification/Notification.config.js +5 -5
  372. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  373. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  374. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  375. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  376. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  377. package/emotion/es/examples/plasma_web/components/Toast/Toast.config.js +5 -5
  378. package/emotion/es/index.js +2 -1
  379. package/es/components/Autocomplete/Autocomplete.css +1 -1
  380. package/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  381. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  382. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  383. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  384. package/es/components/Autocomplete/ui/TextField/{TextField.styles_kcgaix.css → TextField.styles_1csckkd.css} +1 -1
  385. package/es/components/Calendar/Calendar.tokens.js +0 -4
  386. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  387. package/es/components/Calendar/CalendarBase/CalendarBase.css +15 -16
  388. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  389. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  390. package/{cjs/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → es/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
  391. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +15 -16
  392. package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +4 -4
  393. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
  394. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -4
  395. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  396. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -11
  397. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  398. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_zgya4j.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
  399. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
  400. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.css +4 -4
  401. package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
  402. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.css +4 -4
  403. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -1
  404. package/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js.map +1 -1
  405. package/{cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles_uzh6dj.css → es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles_1nxxafr.css} +1 -1
  406. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  407. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +3 -3
  408. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  409. package/es/components/Combobox/ComboboxNew/{Combobox.styles_18a8p75.css → Combobox.styles_1s09ifw.css} +1 -1
  410. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +26 -5
  411. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  412. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  413. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  414. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  415. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  416. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1kzr84z.css → Item.styles_y71664.css} +2 -2
  417. package/es/components/Combobox/ComboboxOld/Combobox.css +5 -5
  418. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -5
  419. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -5
  420. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -5
  421. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -5
  422. package/es/components/DatePicker/DatePicker.tokens.js +0 -6
  423. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  424. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  425. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  426. package/es/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
  427. package/es/components/DatePicker/RangeDate/RangeDate.css +19 -20
  428. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -18
  429. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  430. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
  431. package/es/components/DatePicker/SingleDate/SingleDate.css +19 -20
  432. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  433. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  434. package/{cjs/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → es/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
  435. package/es/components/Dropdown/Dropdown.css +5 -5
  436. package/es/components/Dropdown/Dropdown.styles.js +1 -1
  437. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  438. package/es/components/Dropdown/{Dropdown.styles_dh7ns1.css → Dropdown.styles_1ix6io8.css} +1 -1
  439. package/es/components/Dropdown/Dropdown.tokens.js +0 -2
  440. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  441. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -5
  442. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  443. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  444. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_17va0nk.css} +1 -1
  445. package/es/components/Notification/Notification.css +11 -11
  446. package/es/components/Notification/Notification.js +4 -4
  447. package/es/components/Notification/Notification.js.map +1 -1
  448. package/es/components/Notification/Notification.styles.js +15 -15
  449. package/es/components/Notification/Notification.styles.js.map +1 -1
  450. package/es/components/Notification/{Notification.styles_bvno9v.css → Notification.styles_7h8hp0.css} +2 -2
  451. package/es/components/Notification/Notification.tokens.js +1 -5
  452. package/es/components/Notification/Notification.tokens.js.map +1 -1
  453. package/es/components/Notification/NotificationsProvider.css +11 -11
  454. package/es/components/NumberInput/NumberInput.css +52 -0
  455. package/es/components/NumberInput/NumberInput.js +178 -0
  456. package/es/components/NumberInput/NumberInput.js.map +1 -0
  457. package/es/components/NumberInput/NumberInput.styles.js +5 -0
  458. package/es/components/NumberInput/NumberInput.styles.js.map +1 -0
  459. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  460. package/es/components/NumberInput/NumberInput.tokens.js +86 -0
  461. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -0
  462. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +15 -0
  463. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  464. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +18 -0
  465. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  466. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  467. package/es/components/NumberInput/ui/Input/Input.css +15 -0
  468. package/es/components/NumberInput/ui/Input/Input.js +195 -0
  469. package/es/components/NumberInput/ui/Input/Input.js.map +1 -0
  470. package/es/components/NumberInput/ui/Input/Input.styles.js +85 -0
  471. package/es/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  472. package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +8 -0
  473. package/es/components/NumberInput/utils/index.js +4 -0
  474. package/es/components/NumberInput/utils/index.js.map +1 -0
  475. package/es/components/NumberInput/variations/_background-type/base.js +5 -0
  476. package/es/components/NumberInput/variations/_background-type/base.js.map +1 -0
  477. package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +1 -0
  478. package/es/components/NumberInput/variations/_disabled/base.js +5 -0
  479. package/es/components/NumberInput/variations/_disabled/base.js.map +1 -0
  480. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  481. package/es/components/NumberInput/variations/_segmentation/base.js +5 -0
  482. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  483. package/es/components/NumberInput/variations/_segmentation/base_1jt83uh.css +1 -0
  484. package/es/components/NumberInput/variations/_shape/base.js +5 -0
  485. package/es/components/NumberInput/variations/_shape/base.js.map +1 -0
  486. package/es/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  487. package/es/components/NumberInput/variations/_size/base.js +5 -0
  488. package/es/components/NumberInput/variations/_size/base.js.map +1 -0
  489. package/es/components/NumberInput/variations/_size/base_yqdmk4.css +1 -0
  490. package/es/components/NumberInput/variations/_view/base.js +5 -0
  491. package/es/components/NumberInput/variations/_view/base.js.map +1 -0
  492. package/es/components/NumberInput/variations/_view/base_3gefjm.css +1 -0
  493. package/es/components/Pagination/Pagination.css +10 -10
  494. package/es/components/Pagination/Pagination.js +5 -5
  495. package/es/components/Pagination/Pagination.js.map +1 -1
  496. package/es/components/Pagination/Pagination.styles.js +3 -3
  497. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  498. package/es/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
  499. package/es/components/Pagination/Pagination.tokens.js +1 -4
  500. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  501. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  502. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  503. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  504. package/es/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
  505. package/es/components/Slider/Slider.css +13 -15
  506. package/es/components/Slider/Slider.js +2 -11
  507. package/es/components/Slider/Slider.js.map +1 -1
  508. package/es/components/Slider/Slider.tokens.js +17 -23
  509. package/es/components/Slider/Slider.tokens.js.map +1 -1
  510. package/es/components/Slider/components/Double/Double.css +8 -8
  511. package/es/components/Slider/components/Double/Double.js +19 -54
  512. package/es/components/Slider/components/Double/Double.js.map +1 -1
  513. package/es/components/Slider/components/Single/Single.css +14 -14
  514. package/es/components/Slider/components/Single/Single.js +34 -65
  515. package/es/components/Slider/components/Single/Single.js.map +1 -1
  516. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  517. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  518. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  519. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  520. package/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  521. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  522. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  523. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  524. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  525. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  526. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  527. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  528. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  529. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  530. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  531. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  532. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  533. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  534. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  535. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  536. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  537. package/es/components/Slider/utils/index.js +10 -28
  538. package/es/components/Slider/utils/index.js.map +1 -1
  539. package/es/components/Slider/variations/_view/base.js +1 -1
  540. package/es/components/Slider/variations/_view/base.js.map +1 -1
  541. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  542. package/es/components/Tabs/tokens.js +1 -7
  543. package/es/components/Tabs/tokens.js.map +1 -1
  544. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  545. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  546. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  547. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/{HorizontalTabItem.styles_uaaqqg.css → HorizontalTabItem.styles_hfqv5b.css} +1 -1
  548. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  549. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  550. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  551. package/{cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css → es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_16d3lah.css} +1 -1
  552. package/es/components/Toast/Toast.css +5 -5
  553. package/es/components/Toast/Toast.js +4 -4
  554. package/es/components/Toast/Toast.js.map +1 -1
  555. package/es/components/Toast/Toast.styles.js +3 -3
  556. package/es/components/Toast/Toast.styles.js.map +1 -1
  557. package/es/components/Toast/{Toast.styles_1nei944.css → Toast.styles_1v9oj7f.css} +1 -1
  558. package/es/components/Toast/Toast.tokens.js +1 -3
  559. package/es/components/Toast/Toast.tokens.js.map +1 -1
  560. package/es/components/Toast/ToastController.css +5 -5
  561. package/es/index.css +111 -91
  562. package/es/index.js +2 -0
  563. package/es/index.js.map +1 -1
  564. package/es/utils/index.js.map +1 -1
  565. package/package.json +2 -2
  566. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  567. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  568. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +0 -4
  569. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  570. package/styled-components/cjs/components/Calendar/mixins/selected.js +2 -3
  571. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  572. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -6
  573. package/styled-components/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +0 -1
  574. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  575. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -4
  576. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +2 -2
  577. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -6
  578. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  579. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  580. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +2 -2
  581. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +1 -2
  582. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  583. package/styled-components/cjs/components/Notification/Notification.js +4 -4
  584. package/styled-components/cjs/components/Notification/Notification.styles.js +2 -2
  585. package/styled-components/cjs/components/Notification/Notification.tokens.js +1 -5
  586. package/styled-components/cjs/components/NumberInput/NumberInput.js +193 -0
  587. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +8 -0
  588. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +89 -0
  589. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +5 -0
  590. package/styled-components/cjs/components/NumberInput/index.js +31 -0
  591. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  592. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +15 -0
  593. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  594. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +207 -0
  595. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +48 -0
  596. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  597. package/styled-components/cjs/components/NumberInput/ui/index.js +19 -0
  598. package/styled-components/cjs/components/NumberInput/utils/index.js +7 -0
  599. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  600. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  601. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  602. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  603. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  604. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  605. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  606. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  607. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +13 -0
  608. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  609. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +13 -0
  610. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  611. package/styled-components/cjs/components/Pagination/Pagination.js +5 -5
  612. package/styled-components/cjs/components/Pagination/Pagination.styles.js +1 -1
  613. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +1 -4
  614. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  615. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  616. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  617. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  618. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  619. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  620. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  621. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  622. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  623. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  624. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  625. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  626. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  627. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  628. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  629. package/styled-components/cjs/components/Tabs/tokens.js +1 -7
  630. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  631. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  632. package/styled-components/cjs/components/Toast/Toast.js +4 -4
  633. package/styled-components/cjs/components/Toast/Toast.styles.js +1 -1
  634. package/styled-components/cjs/components/Toast/Toast.tokens.js +1 -3
  635. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +4 -4
  636. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  637. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  638. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  639. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +5 -5
  640. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +1 -1
  641. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.config.js +2 -2
  642. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +46 -0
  643. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  644. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  645. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  646. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  647. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.config.js +1 -1
  648. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +4 -4
  649. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  650. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  651. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  652. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +5 -5
  653. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +1 -1
  654. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.config.js +2 -2
  655. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +46 -0
  656. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  657. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  658. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  659. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  660. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.config.js +1 -1
  661. package/styled-components/cjs/index.js +11 -0
  662. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  663. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  664. package/styled-components/es/components/Calendar/Calendar.tokens.js +0 -4
  665. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  666. package/styled-components/es/components/Calendar/mixins/selected.js +2 -3
  667. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  668. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -5
  669. package/styled-components/es/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +0 -1
  670. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  671. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -4
  672. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +2 -2
  673. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -6
  674. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  675. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  676. package/styled-components/es/components/Dropdown/Dropdown.styles.js +2 -2
  677. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +1 -2
  678. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
  679. package/styled-components/es/components/Notification/Notification.js +4 -4
  680. package/styled-components/es/components/Notification/Notification.styles.js +2 -2
  681. package/styled-components/es/components/Notification/Notification.tokens.js +1 -5
  682. package/styled-components/es/components/NumberInput/NumberInput.js +185 -0
  683. package/styled-components/es/components/NumberInput/NumberInput.styles.js +2 -0
  684. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +83 -0
  685. package/styled-components/es/components/NumberInput/NumberInput.types.js +1 -0
  686. package/styled-components/es/components/NumberInput/index.js +2 -0
  687. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  688. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +8 -0
  689. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  690. package/styled-components/es/components/NumberInput/ui/Input/Input.js +198 -0
  691. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +41 -0
  692. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  693. package/styled-components/es/components/NumberInput/ui/index.js +2 -0
  694. package/styled-components/es/components/NumberInput/utils/index.js +1 -0
  695. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +4 -0
  696. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  697. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +3 -0
  698. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  699. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  700. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  701. package/styled-components/es/components/NumberInput/variations/_shape/base.js +5 -0
  702. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  703. package/styled-components/es/components/NumberInput/variations/_size/base.js +7 -0
  704. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +22 -0
  705. package/styled-components/es/components/NumberInput/variations/_view/base.js +7 -0
  706. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +14 -0
  707. package/styled-components/es/components/Pagination/Pagination.js +5 -5
  708. package/styled-components/es/components/Pagination/Pagination.styles.js +1 -1
  709. package/styled-components/es/components/Pagination/Pagination.tokens.js +1 -4
  710. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  711. package/styled-components/es/components/Slider/Slider.js +2 -11
  712. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  713. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  714. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  715. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  716. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  717. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  718. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  719. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  720. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  721. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  722. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  723. package/styled-components/es/components/Slider/utils/index.js +10 -28
  724. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  725. package/styled-components/es/components/Tabs/tokens.js +1 -7
  726. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  727. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  728. package/styled-components/es/components/Toast/Toast.js +4 -4
  729. package/styled-components/es/components/Toast/Toast.styles.js +1 -1
  730. package/styled-components/es/components/Toast/Toast.tokens.js +1 -3
  731. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +4 -4
  732. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -5
  733. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +5 -5
  734. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  735. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +5 -5
  736. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +1 -1
  737. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.config.js +2 -2
  738. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +40 -0
  739. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  740. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +108 -0
  741. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  742. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  743. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.config.js +1 -1
  744. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +4 -4
  745. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -5
  746. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +5 -5
  747. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  748. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +5 -5
  749. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +1 -1
  750. package/styled-components/es/examples/plasma_web/components/Notification/Notification.config.js +2 -2
  751. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +40 -0
  752. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  753. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +108 -0
  754. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  755. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  756. package/styled-components/es/examples/plasma_web/components/Toast/Toast.config.js +1 -1
  757. package/styled-components/es/index.js +2 -1
  758. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +0 -1
  759. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  760. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  761. package/types/components/Calendar/Calendar.tokens.d.ts +0 -4
  762. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  763. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  764. package/types/components/Calendar/mixins/selected.d.ts +0 -4
  765. package/types/components/Calendar/mixins/selected.d.ts.map +1 -1
  766. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  767. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +0 -1
  768. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  769. package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.d.ts.map +1 -1
  770. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -3
  771. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  772. package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -6
  773. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  774. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  775. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  776. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  777. package/types/components/Dropdown/Dropdown.tokens.d.ts +1 -2
  778. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  779. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  780. package/types/components/Notification/Notification.tokens.d.ts +0 -4
  781. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  782. package/types/components/NumberInput/NumberInput.d.ts +38 -0
  783. package/types/components/NumberInput/NumberInput.d.ts.map +1 -0
  784. package/types/components/NumberInput/NumberInput.styles.d.ts +2 -0
  785. package/types/components/NumberInput/NumberInput.styles.d.ts.map +1 -0
  786. package/types/components/NumberInput/NumberInput.tokens.d.ts +78 -0
  787. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -0
  788. package/types/components/NumberInput/NumberInput.types.d.ts +112 -0
  789. package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -0
  790. package/types/components/NumberInput/index.d.ts +3 -0
  791. package/types/components/NumberInput/index.d.ts.map +1 -0
  792. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +4 -0
  793. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +1 -0
  794. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +45 -0
  795. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -0
  796. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +7 -0
  797. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -0
  798. package/types/components/NumberInput/ui/Input/Input.d.ts +16 -0
  799. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -0
  800. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +30 -0
  801. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -0
  802. package/types/components/NumberInput/ui/Input/Input.types.d.ts +16 -0
  803. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -0
  804. package/types/components/NumberInput/ui/index.d.ts +3 -0
  805. package/types/components/NumberInput/ui/index.d.ts.map +1 -0
  806. package/types/components/NumberInput/utils/index.d.ts +2 -0
  807. package/types/components/NumberInput/utils/index.d.ts.map +1 -0
  808. package/types/components/NumberInput/variations/_background-type/base.d.ts +2 -0
  809. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +1 -0
  810. package/types/components/NumberInput/variations/_disabled/base.d.ts +2 -0
  811. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +1 -0
  812. package/types/components/NumberInput/variations/_segmentation/base.d.ts +2 -0
  813. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -0
  814. package/types/components/NumberInput/variations/_shape/base.d.ts +2 -0
  815. package/types/components/NumberInput/variations/_shape/base.d.ts.map +1 -0
  816. package/types/components/NumberInput/variations/_size/base.d.ts +2 -0
  817. package/types/components/NumberInput/variations/_size/base.d.ts.map +1 -0
  818. package/types/components/NumberInput/variations/_view/base.d.ts +2 -0
  819. package/types/components/NumberInput/variations/_view/base.d.ts.map +1 -0
  820. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  821. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  822. package/types/components/Pagination/Pagination.tokens.d.ts +0 -3
  823. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  824. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  825. package/types/components/Slider/Slider.d.ts.map +1 -1
  826. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  827. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  828. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  829. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  830. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  831. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  832. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  833. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  834. package/types/components/Slider/components/Single/Single.types.d.ts +7 -79
  835. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  836. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  837. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  838. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  839. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  840. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  841. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  842. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  843. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  844. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  845. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  846. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  847. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  848. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  849. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  850. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  851. package/types/components/Slider/utils/index.d.ts +8 -26
  852. package/types/components/Slider/utils/index.d.ts.map +1 -1
  853. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  854. package/types/components/Tabs/tokens.d.ts +0 -6
  855. package/types/components/Tabs/tokens.d.ts.map +1 -1
  856. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  857. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  858. package/types/components/Toast/Toast.tokens.d.ts +0 -2
  859. package/types/components/Toast/Toast.tokens.d.ts.map +1 -1
  860. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  861. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  862. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  863. package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -1
  864. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  865. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  866. package/types/examples/plasma_b2c/components/Notification/Notification.config.d.ts.map +1 -1
  867. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +39 -0
  868. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  869. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +82 -0
  870. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +1 -0
  871. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  872. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -80
  873. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  874. package/types/examples/plasma_b2c/components/Toast/Toast.config.d.ts.map +1 -1
  875. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.config.d.ts.map +1 -1
  876. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  877. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  878. package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -1
  879. package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  880. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  881. package/types/examples/plasma_web/components/Notification/Notification.config.d.ts.map +1 -1
  882. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +39 -0
  883. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  884. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +82 -0
  885. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +1 -0
  886. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  887. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -80
  888. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  889. package/types/examples/plasma_web/components/Toast/Toast.config.d.ts.map +1 -1
  890. package/types/index.d.ts +1 -0
  891. package/types/index.d.ts.map +1 -1
  892. package/types/utils/index.d.ts +1 -1
  893. package/types/utils/index.d.ts.map +1 -1
  894. package/cjs/components/DatePicker/DatePickerBase.styles_1g7mpqf.css +0 -2
  895. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_lzydb6.css +0 -2
  896. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  897. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  898. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  899. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  900. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  901. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  902. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  903. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  904. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  905. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  906. package/es/components/DatePicker/DatePickerBase.styles_1g7mpqf.css +0 -2
  907. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_lzydb6.css +0 -2
  908. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  909. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  910. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  911. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  912. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  913. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  914. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  915. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  916. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  917. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  918. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  919. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
@@ -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", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "labelContent", "sliderAlign", "showScale", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "scaleAlign", "multipleStepSize", "defaultValue", "size", "name", "pointerSize", "orientation", "reversed", "labelReversed"];
2
+ var _excluded = ["min", "max", "value", "disabled", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "multipleStepSize", "defaultValue", "size", "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; }
@@ -21,7 +21,7 @@ import { sizeData } from '../../utils';
21
21
  import { cx, isNumber, noop } from '../../../../utils';
22
22
  import { classes } from '../../Slider.tokens';
23
23
  import { InputHidden } from '../SliderBase/SliderBase.styles';
24
- import { Label, LabelContent, LabelWrapper, SingleWrapper, SliderBaseWrapper, StyledRangeValue } from './Single.styles';
24
+ import { Label, LabelContentLeft, LabelWrapper, SingleWrapper, SliderBaseWrapper, StyledRangeValue } from './Single.styles';
25
25
  export var SingleSlider = function SingleSlider(_ref) {
26
26
  var _ref2;
27
27
  var min = _ref.min,
@@ -33,35 +33,23 @@ export var SingleSlider = function SingleSlider(_ref) {
33
33
  ariaLabel = _ref.ariaLabel,
34
34
  label = _ref.label,
35
35
  labelContentLeft = _ref.labelContentLeft,
36
- labelContent = _ref.labelContent,
37
- _ref$sliderAlign = _ref.sliderAlign,
38
- sliderAlign = _ref$sliderAlign === void 0 ? 'left' : _ref$sliderAlign,
39
- showScale = _ref.showScale,
40
36
  showRangeValues = _ref.showRangeValues,
41
37
  showCurrentValue = _ref.showCurrentValue,
42
38
  hideMinValueDiff = _ref.hideMinValueDiff,
43
39
  hideMaxValueDiff = _ref.hideMaxValueDiff,
44
40
  _ref$labelPlacement = _ref.labelPlacement,
45
- labelPlacement = _ref$labelPlacement === void 0 ? 'top' : _ref$labelPlacement,
46
- rangeValuesPlacementOld = _ref.rangeValuesPlacement,
47
- _ref$scaleAlign = _ref.scaleAlign,
48
- scaleAlign = _ref$scaleAlign === void 0 ? 'bottom' : _ref$scaleAlign,
41
+ labelPlacement = _ref$labelPlacement === void 0 ? 'outer' : _ref$labelPlacement,
42
+ _ref$rangeValuesPlace = _ref.rangeValuesPlacement,
43
+ rangeValuesPlacement = _ref$rangeValuesPlace === void 0 ? 'outer' : _ref$rangeValuesPlace,
49
44
  _ref$multipleStepSize = _ref.multipleStepSize,
50
45
  multipleStepSize = _ref$multipleStepSize === void 0 ? 10 : _ref$multipleStepSize,
51
46
  defaultValue = _ref.defaultValue,
52
47
  _ref$size = _ref.size,
53
48
  size = _ref$size === void 0 ? 'm' : _ref$size,
54
49
  name = _ref.name,
55
- _ref$pointerSize = _ref.pointerSize,
56
- pointerSize = _ref$pointerSize === void 0 ? 'small' : _ref$pointerSize,
57
- _ref$orientation = _ref.orientation,
58
- orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation,
59
- reversed = _ref.reversed,
60
- labelReversed = _ref.labelReversed,
61
50
  rest = _objectWithoutProperties(_ref, _excluded);
62
- var isVertical = orientation === 'vertical';
63
51
  var _useState = useState({
64
- handlePosition: 0,
52
+ xHandle: 0,
65
53
  stepSize: 0,
66
54
  railFillWidth: 0
67
55
  }),
@@ -77,28 +65,23 @@ export var SingleSlider = function SingleSlider(_ref) {
77
65
  _useState6 = _slicedToArray(_useState5, 2),
78
66
  endOffset = _useState6[0],
79
67
  setEndOffset = _useState6[1];
80
- var innerValue = (_ref2 = value !== null && value !== void 0 ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : min;
81
- var _useState7 = useState(innerValue),
68
+ var _useState7 = useState((_ref2 = value !== null && value !== void 0 ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : min),
82
69
  _useState8 = _slicedToArray(_useState7, 2),
83
70
  dragValue = _useState8[0],
84
71
  setDragValue = _useState8[1];
85
72
  var stepSize = state.stepSize;
86
- var innerShowScale = showRangeValues || showScale;
87
- var hasLabelContent = Boolean(label || labelContentLeft || labelContent) && (!isVertical || isVertical && sliderAlign !== 'none');
88
- var labelPlacementClass = !isVertical && (labelPlacement === 'outer' || labelPlacement === 'top') ? classes.labelPlacementOuter : classes.labelPlacementInner;
89
- var rangeValuesPlacement = rangeValuesPlacementOld === 'outer' || scaleAlign === 'bottom' ? 'outer' : 'inner';
90
- var scaleAlignClass = rangeValuesPlacement === 'outer' ? classes.rangeValuesPlacementOuter : classes.rangeValuesPlacementInner;
73
+ var hasLabelContent = label || labelContentLeft;
74
+ var labelPlacementClass = labelPlacement === 'outer' ? classes.labelPlacementOuter : classes.labelPlacementInner;
75
+ var rangeValuesPlacementClass = rangeValuesPlacement === 'outer' ? classes.rangeValuesPlacementOuter : classes.rangeValuesPlacementInner;
91
76
  var hideMinValueDiffClass = hideMinValueDiff && dragValue - min <= hideMinValueDiff ? classes.hideMinValue : '';
92
77
  var hideMaxValueDiffClass = hideMaxValueDiff && max - dragValue <= hideMaxValueDiff ? classes.hideMaxValue : '';
93
- var verticalOrientationClass = orientation === 'vertical' ? classes.verticalOrientation : '';
94
78
  var startLabelRef = useRef(null);
95
79
  var endLabelRef = useRef(null);
96
80
  var activeFirstValue = dragValue === min ? classes.activeRangeValue : undefined;
97
81
  var activeSecondValue = dragValue === max ? classes.activeRangeValue : undefined;
98
82
  useEffect(function () {
99
- var visibleValue = reversed ? max - dragValue + min : dragValue;
100
- var localValue = Math.min(Math.max(visibleValue, min), max) - min;
101
- if (!isVertical && rangeValuesPlacement === 'outer') {
83
+ var localValue = Math.min(Math.max(dragValue, min), max) - min;
84
+ if (rangeValuesPlacement === 'outer') {
102
85
  var _startLabelRef$curren, _endLabelRef$current;
103
86
  var startWidth = (_startLabelRef$curren = startLabelRef.current) === null || _startLabelRef$curren === void 0 ? void 0 : _startLabelRef$curren.offsetWidth;
104
87
  if (isNumber(startWidth)) {
@@ -108,35 +91,30 @@ export var SingleSlider = function SingleSlider(_ref) {
108
91
  if (isNumber(endWidth)) {
109
92
  setEndOffset(Number(endWidth));
110
93
  }
111
- } else if (isVertical && innerShowScale && sliderAlign !== 'center') {
112
- setStartOffset(12);
113
- setEndOffset(12);
114
94
  } else {
115
95
  setStartOffset(1);
116
96
  setEndOffset(1);
117
97
  }
118
98
  setState(function (prevState) {
119
99
  return _objectSpread(_objectSpread({}, prevState), {}, {
120
- handlePosition: stepSize * localValue,
100
+ xHandle: stepSize * localValue,
121
101
  railFillWidth: stepSize * localValue
122
102
  });
123
103
  });
124
- }, [dragValue, innerShowScale, labelPlacement, stepSize, rangeValuesPlacement, min, max, isVertical, reversed,
125
- // для перерасчета размеров
126
- sliderAlign, size]);
104
+ }, [dragValue, labelPlacement, stepSize, rangeValuesPlacement, min, max, setStartOffset, setEndOffset]);
127
105
  var setStepSize = useCallback(function (newStepSize) {
128
106
  setState(function (prevState) {
129
107
  return _objectSpread(_objectSpread({}, prevState), {}, {
130
108
  stepSize: newStepSize
131
109
  });
132
110
  });
133
- }, []);
111
+ }, [setState]);
134
112
  var onHandleChange = function onHandleChange(handleValue, data) {
135
- var newValue = Math.round(reversed ? max - handleValue + min : handleValue);
136
- var newHandlePosition = isVertical ? data.y : data.x;
113
+ var newHandleXPosition = data.x;
114
+ var newValue = Math.round(handleValue);
137
115
  setState(function (prevState) {
138
116
  return _objectSpread(_objectSpread({}, prevState), {}, {
139
- railFillWidth: newHandlePosition
117
+ railFillWidth: newHandleXPosition
140
118
  });
141
119
  });
142
120
  if (onChange) {
@@ -154,49 +132,41 @@ export var SingleSlider = function SingleSlider(_ref) {
154
132
  }
155
133
  setDragValue(newValue);
156
134
  };
157
- var onHandleChangeCommitted = useCallback(function (handleValue, data) {
158
- var newValue = Math.round(reversed ? max - handleValue + min : handleValue);
135
+ var onHandleChangeCommitted = function onHandleChangeCommitted(handleValue, data) {
136
+ var newValue = Math.round(handleValue);
159
137
  if (onChangeCommitted) {
160
138
  onChangeCommitted(newValue);
161
139
  }
162
140
  setState(function (prevState) {
163
141
  return _objectSpread(_objectSpread({}, prevState), {}, {
164
- handlePosition: isVertical ? data.lastY : data.lastX,
165
- railFillWidth: isVertical ? data.lastY : data.lastX
142
+ xHandle: data.lastX,
143
+ railFillWidth: data.lastX
166
144
  });
167
145
  });
168
146
  setDragValue(newValue);
169
- }, [isVertical, min, max, reversed]);
170
- var labelVerticalPlacement = reversed ? 'bottom' : 'top';
171
- var valuePlacement = sliderAlign === 'right' ? 'left' : 'right';
172
- var settings = sizeData[size][pointerSize === 'large' ? 'large' : 'small'];
147
+ };
173
148
  return /*#__PURE__*/React.createElement(SingleWrapper, {
174
- className: cx(labelPlacementClass, scaleAlignClass, verticalOrientationClass, sliderAlign === 'right' && classes.labelAlignLeft, (sliderAlign === 'center' || sliderAlign === 'none') && classes.labelAlignCenter, sliderAlign === 'left' && classes.labelAlignRight, labelVerticalPlacement === 'bottom' && classes.labelPlacementBottom, labelReversed && classes.labelContentReversed)
175
- }, hasLabelContent && /*#__PURE__*/React.createElement(LabelWrapper, null, (labelContentLeft || labelContent) && /*#__PURE__*/React.createElement(LabelContent, null, labelContent), label && /*#__PURE__*/React.createElement(Label, null, label)), /*#__PURE__*/React.createElement(SliderBaseWrapper, {
176
- className: cx(!isVertical && rangeValuesPlacement === 'outer' && classes.rangeValuesPlacementOuter, !isVertical && rangeValuesPlacement !== 'outer' && classes.rangeValuesPlacementInner, verticalOrientationClass)
177
- }, innerShowScale && /*#__PURE__*/React.createElement(StyledRangeValue, {
149
+ className: labelPlacementClass
150
+ }, hasLabelContent && /*#__PURE__*/React.createElement(LabelWrapper, null, labelContentLeft && /*#__PURE__*/React.createElement(LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/React.createElement(Label, null, label)), /*#__PURE__*/React.createElement(SliderBaseWrapper, {
151
+ className: rangeValuesPlacementClass
152
+ }, showRangeValues && /*#__PURE__*/React.createElement(StyledRangeValue, {
178
153
  ref: startLabelRef,
179
154
  className: cx(hideMinValueDiffClass, activeFirstValue)
180
- }, reversed ? max : min), /*#__PURE__*/React.createElement(SliderBase, _extends({
155
+ }, min), /*#__PURE__*/React.createElement(SliderBase, _extends({
181
156
  min: min,
182
157
  max: max,
183
158
  disabled: disabled,
184
- size: size,
185
- sliderAlign: sliderAlign,
186
159
  setStepSize: setStepSize,
187
160
  onChange: onHandleChangeCommitted,
188
161
  railFillWidth: state.railFillWidth,
189
- settings: settings,
162
+ settings: sizeData[size],
190
163
  labelPlacement: labelPlacement,
191
- rangeValuesPlacement: rangeValuesPlacement,
192
- orientation: orientation
164
+ rangeValuesPlacement: rangeValuesPlacement
193
165
  }, rest), /*#__PURE__*/React.createElement(Handler, {
194
- size: pointerSize,
195
- orientation: orientation,
196
166
  stepSize: state.stepSize,
197
167
  onChangeCommitted: onHandleChangeCommitted,
198
168
  onChange: onHandleChange,
199
- position: state.handlePosition,
169
+ xPosition: state.xHandle,
200
170
  min: min,
201
171
  max: max,
202
172
  startOffset: startOffset,
@@ -205,12 +175,11 @@ export var SingleSlider = function SingleSlider(_ref) {
205
175
  disabled: disabled,
206
176
  ariaLabel: ariaLabel,
207
177
  multipleStepSize: multipleStepSize,
208
- showCurrentValue: showCurrentValue,
209
- valuePlacement: valuePlacement
210
- })), innerShowScale && /*#__PURE__*/React.createElement(StyledRangeValue, {
178
+ showCurrentValue: showCurrentValue
179
+ })), showRangeValues && /*#__PURE__*/React.createElement(StyledRangeValue, {
211
180
  ref: endLabelRef,
212
181
  className: cx(classes.maxRangeValue, hideMaxValueDiffClass, activeSecondValue)
213
- }, reversed ? min : max)), /*#__PURE__*/React.createElement(InputHidden, _extends({
182
+ }, max)), /*#__PURE__*/React.createElement(InputHidden, _extends({
214
183
  name: name,
215
184
  type: "number",
216
185
  datatype: "slider-single",
@@ -3,18 +3,18 @@ import { classes, tokens } from '../../Slider.tokens';
3
3
  export var LabelWrapper = /*#__PURE__*/styled.div.withConfig({
4
4
  componentId: "plasma-new-hope__sc-1qm4elt-0"
5
5
  })(["color:var(", ");display:flex;gap:var(", ");"], tokens.labelColor, tokens.labelWrapperGap);
6
- export var LabelContent = /*#__PURE__*/styled.div.withConfig({
6
+ export var LabelContentLeft = /*#__PURE__*/styled.div.withConfig({
7
7
  componentId: "plasma-new-hope__sc-1qm4elt-1"
8
- })(["display:inline-flex;"]);
8
+ })([""]);
9
9
  export var Label = /*#__PURE__*/styled.label.withConfig({
10
10
  componentId: "plasma-new-hope__sc-1qm4elt-2"
11
11
  })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight);
12
12
  export var StyledRangeValue = /*#__PURE__*/styled.span.withConfig({
13
13
  componentId: "plasma-new-hope__sc-1qm4elt-3"
14
- })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");transition:opacity 0.1s ease-in-out;&.", ",&.", "{opacity:0;}&.", "{color:var(", ");}"], tokens.rangeValueColor, tokens.valueFontFamily, tokens.valueFontSize, tokens.valueFontStyle, tokens.valueFontWeight, tokens.valueLetterSpacing, tokens.valueLineHeight, classes.hideMinValue, classes.hideMaxValue, classes.activeRangeValue, tokens.labelColor);
14
+ })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");transition:opacity 0.1s ease-in-out;&.", ",&.", "{opacity:0;}&.", "{color:var(", ");}"], tokens.rangeValueColor, tokens.rangeValueFontFamily, tokens.rangeValueFontSize, tokens.rangeValueFontStyle, tokens.rangeValueFontWeight, tokens.rangeValueLetterSpacing, tokens.rangeValueLineHeight, classes.hideMinValue, classes.hideMaxValue, classes.activeRangeValue, tokens.labelColor);
15
15
  export var SliderBaseWrapper = /*#__PURE__*/styled.div.withConfig({
16
16
  componentId: "plasma-new-hope__sc-1qm4elt-4"
17
- })(["position:relative;display:flex;flex:1;&.", "{", "{position:absolute;bottom:calc(var(", ") * -1.5 - var(", "));left:0;&.", "{left:unset;right:0;}}}&.", "{align-items:center;", "{margin-right:var(", ");&.", "{margin-right:0;margin-left:var(", ");}}}"], classes.rangeValuesPlacementOuter, StyledRangeValue, tokens.railThickness, tokens.rangeValueBottomOffset, classes.maxRangeValue, classes.rangeValuesPlacementInner, StyledRangeValue, tokens.rangeValueHorizontalMargin, classes.maxRangeValue, tokens.rangeValueHorizontalMargin);
17
+ })(["position:relative;display:flex;flex:1;&.", "{", "{position:absolute;bottom:var(", ");left:0;&.", "{left:unset;right:0;}}}&.", "{align-items:center;", "{margin-right:var(", ");&.", "{margin-right:0;margin-left:var(", ");}}}"], classes.rangeValuesPlacementOuter, StyledRangeValue, tokens.rangeValueBottomOffset, classes.maxRangeValue, classes.rangeValuesPlacementInner, StyledRangeValue, tokens.rangeMinValueMargin, classes.maxRangeValue, tokens.rangeMaxValueMargin);
18
18
  export var SingleWrapper = /*#__PURE__*/styled.div.withConfig({
19
19
  componentId: "plasma-new-hope__sc-1qm4elt-5"
20
- })(["display:flex;opacity:var(", ");&.", "{flex-direction:column;", "{margin-bottom:var(", ");}}&.", "{", "{margin-right:var(", ");}}&.", "{flex-direction:column;align-items:center;&.", "{", "{flex-direction:column-reverse;}&.", "{", "{flex-direction:column;}&.", "{", "{flex-direction:column-reverse;}}}&.", "{", "{flex-direction:column;}}}", "{align-items:center;}", "{width:var(", ");}&.", "{", "{margin-right:0;margin-bottom:var(", ");}}&.", "{align-items:flex-end;", "{flex-direction:row-reverse;}}&.", "{align-items:flex-start;}&.", "{flex-direction:column-reverse;", "{margin-top:var(", ");margin-right:0;margin-bottom:0;}}}&.", "{flex-direction:column;align-items:center;justify-content:center;", "{flex-direction:column;align-items:center;justify-content:center;}&.", "{", "{position:static;bottom:0;left:0;margin-bottom:var(", ");&.", "{left:0;right:0;bottom:0;margin-top:var(", ");margin-bottom:0;}}}&.", ",&.", "{", "{margin-right:0;margin-bottom:0;position:absolute;top:0;right:calc( var(", ") / 2 + var(", ") / 2 + var(", ") );&.", "{margin-right:0;margin-left:0;top:auto;bottom:0;}}}&.", "{", "{left:calc(var(", ") + var(", "));}}}"], tokens.disabledOpacity, classes.labelPlacementOuter, LabelWrapper, tokens.labelWrapperMarginBottom, classes.labelPlacementInner, LabelWrapper, tokens.labelWrapperMarginRight, classes.verticalOrientation, classes.labelAlignCenter, LabelWrapper, classes.labelPlacementBottom, LabelWrapper, classes.labelContentReversed, LabelWrapper, classes.labelContentReversed, LabelWrapper, LabelWrapper, SliderBaseWrapper, tokens.size, classes.labelPlacementInner, LabelWrapper, tokens.labelWrapperVerticalMargin, classes.labelAlignLeft, LabelWrapper, classes.labelAlignRight, classes.labelPlacementBottom, LabelWrapper, tokens.labelWrapperVerticalMargin, classes.verticalOrientation, SliderBaseWrapper, classes.labelAlignCenter, StyledRangeValue, tokens.rangeValueVerticalMargin, classes.maxRangeValue, tokens.rangeValueVerticalMargin, classes.labelAlignLeft, classes.labelAlignRight, StyledRangeValue, tokens.railThickness, tokens.size, tokens.rangeValueHorizontalOffset, classes.maxRangeValue, classes.labelAlignRight, StyledRangeValue, tokens.size, tokens.railThickness);
20
+ })(["display:flex;opacity:var(", ");&.", "{flex-direction:column;", "{margin-bottom:var(", ");}}&.", "{", "{margin-right:var(", ");}}"], tokens.disabledOpacity, classes.labelPlacementOuter, LabelWrapper, tokens.labelWrapperMarginBottom, classes.labelPlacementInner, LabelWrapper, tokens.labelWrapperMarginRight);
@@ -1,7 +1,5 @@
1
1
  import React, { useRef, useEffect } from 'react';
2
2
  import { useIsomorphicLayoutEffect } from '../../../../hooks';
3
- import { classes } from '../../Slider.tokens';
4
- import { cx } from '../../../../utils';
5
3
  import { Fill, Rail, RailWrap, Slider } from './SliderBase.styles';
6
4
  export var SliderBase = function SliderBase(_ref) {
7
5
  var max = _ref.max,
@@ -15,9 +13,6 @@ export var SliderBase = function SliderBase(_ref) {
15
13
  labelPlacement = _ref.labelPlacement,
16
14
  rangeValuesPlacement = _ref.rangeValuesPlacement,
17
15
  onChange = _ref.onChange,
18
- orientation = _ref.orientation,
19
- size = _ref.size,
20
- sliderAlign = _ref.sliderAlign,
21
16
  _ref$settings = _ref.settings,
22
17
  settings = _ref$settings === void 0 ? {} : _ref$settings;
23
18
  var _settings$indent = settings.indent,
@@ -26,43 +21,34 @@ export var SliderBase = function SliderBase(_ref) {
26
21
  fontSizeMultiplier = _settings$fontSizeMul === void 0 ? 16 : _settings$fontSizeMul;
27
22
  var ref = useRef(null);
28
23
  var gap = indent * fontSizeMultiplier * 2;
29
- var isVertical = orientation === 'vertical';
30
24
  useEffect(function () {
31
25
  var resizeHandler = function resizeHandler() {
32
26
  if (ref.current) {
33
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
27
+ var railSize = ref.current.offsetWidth - gap;
34
28
  var totalSteps = max - min;
35
29
  setStepSize(railSize / totalSteps);
36
30
  }
37
31
  };
38
32
  resizeHandler();
39
- }, [labelPlacement, rangeValuesPlacement, gap, isVertical,
40
- // для перерасчета размеров
41
- size, sliderAlign]);
33
+ }, [labelPlacement, rangeValuesPlacement]);
42
34
  var onHandleChange = function onHandleChange(e) {
43
35
  if (!onChange || disabled) {
44
36
  return;
45
37
  }
46
38
  var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
47
39
  x = _e$currentTarget$getB.x,
48
- width = _e$currentTarget$getB.width,
49
- y = _e$currentTarget$getB.y,
50
- height = _e$currentTarget$getB.height;
51
- var lastPos = isVertical ? e.clientY - y : e.clientX - x;
52
- var sliderWidth = isVertical ? height : width;
53
- var position = min + lastPos / (sliderWidth - gap) * (max - min);
40
+ width = _e$currentTarget$getB.width;
41
+ var lastX = e.clientX - x;
42
+ var position = min + lastX / (width - gap) * (max - min);
54
43
  var result = Math.max(min, Math.min(max, position));
55
- var data = isVertical ? {
56
- lastY: lastPos
57
- } : {
58
- lastX: lastPos
59
- };
60
- onChange(result, data);
44
+ onChange(result, {
45
+ lastX: lastX
46
+ });
61
47
  };
62
48
  useIsomorphicLayoutEffect(function () {
63
49
  var resizeHandler = function resizeHandler() {
64
50
  if (ref.current) {
65
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
51
+ var railSize = ref.current.offsetWidth - gap;
66
52
  var totalSteps = max - min;
67
53
  setStepSize(railSize / totalSteps);
68
54
  }
@@ -72,18 +58,13 @@ export var SliderBase = function SliderBase(_ref) {
72
58
  return function () {
73
59
  return window.removeEventListener('resize', resizeHandler);
74
60
  };
75
- }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement, isVertical]);
76
- var fillStyle = isVertical ? {
77
- top: "".concat(railFillXPosition, "px"),
78
- height: "".concat(railFillWidth, "px"),
79
- width: '100%'
80
- } : {
61
+ }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement]);
62
+ var fillStyle = {
81
63
  left: "".concat(railFillXPosition, "px"),
82
64
  width: "".concat(railFillWidth, "px")
83
65
  };
84
66
  return /*#__PURE__*/React.createElement(Slider, {
85
- ref: ref,
86
- className: cx(orientation === 'vertical' && classes.verticalOrientation)
67
+ ref: ref
87
68
  }, /*#__PURE__*/React.createElement(RailWrap, {
88
69
  "aria-hidden": "true",
89
70
  onMouseDown: onHandleChange
@@ -1,15 +1,15 @@
1
1
  import styled from 'styled-components';
2
2
  import { applyHidden } from '../../../../mixins';
3
- import { classes, tokens } from '../../Slider.tokens';
4
- export var Rail = /*#__PURE__*/styled.div.withConfig({
5
- componentId: "plasma-new-hope__sc-ik0bjb-0"
6
- })(["position:relative;top:50%;height:var(", ");border-radius:var(", ");background-color:var(", ");overflow:hidden;transform:translateY(-50%);"], tokens.railThickness, tokens.railBorderRadius, tokens.railBackgroundColor);
3
+ import { tokens } from '../../Slider.tokens';
7
4
  export var Slider = /*#__PURE__*/styled.div.withConfig({
8
- componentId: "plasma-new-hope__sc-ik0bjb-1"
9
- })(["flex:1;position:relative;user-select:none;height:var(", ");&.", "{width:var(", ");height:auto;", "{top:0;left:50%;transform:translateX(-50%);width:var(", ");height:100%;}}"], tokens.size, classes.verticalOrientation, tokens.size, Rail, tokens.railThickness);
5
+ componentId: "plasma-new-hope__sc-ik0bjb-0"
6
+ })(["flex:1;position:relative;user-select:none;height:var(", ");"], tokens.height);
10
7
  export var RailWrap = /*#__PURE__*/styled.div.withConfig({
11
- componentId: "plasma-new-hope__sc-ik0bjb-2"
8
+ componentId: "plasma-new-hope__sc-ik0bjb-1"
12
9
  })(["height:100%;"]);
10
+ export var Rail = /*#__PURE__*/styled.div.withConfig({
11
+ componentId: "plasma-new-hope__sc-ik0bjb-2"
12
+ })(["position:relative;top:50%;height:var(", ");border-radius:var(", ");background-color:var(", ");overflow:hidden;transform:translateY(-50%);"], tokens.railHeight, tokens.railBorderRadius, tokens.railBackgroundColor);
13
13
  export var Fill = /*#__PURE__*/styled.div.withConfig({
14
14
  componentId: "plasma-new-hope__sc-ik0bjb-3"
15
15
  })(["position:absolute;height:100%;top:0;left:0;background:var(", ");width:0;"], tokens.fillColor);
@@ -1,9 +1,5 @@
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 = ["size", "orientation", "stepSize", "onChangeCommitted", "onChange", "position", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value", "valuePlacement"];
1
+ var _excluded = ["stepSize", "onChangeCommitted", "onChange", "xPosition", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value"];
3
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); }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -14,23 +10,28 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
10
  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; }
15
11
  import React, { useRef, forwardRef } from 'react';
16
12
  import Draggable from 'react-draggable';
17
- import { cx } from '../../../../utils';
18
13
  import { getSliderThumbValue, getOffsets } from '../../utils';
19
14
  import { Thumb } from '../Thumb/Thumb';
20
- import { classes } from '../../Slider.tokens';
21
15
  import { HandlerStyled, StyledValue } from './Handler.styles';
22
- import { computeKeyPressData } from './computeKeyPressData';
23
16
 
24
17
  // TODO: PLASMA-1707
25
18
 
19
+ var KeyboardSupport = {
20
+ PageUp: 33,
21
+ PageDown: 34,
22
+ End: 35,
23
+ Home: 36,
24
+ ArrowLeft: 37,
25
+ ArrowUp: 38,
26
+ ArrowRight: 39,
27
+ ArrowDown: 40
28
+ };
26
29
  export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
27
- var size = _ref.size,
28
- orientation = _ref.orientation,
29
- stepSize = _ref.stepSize,
30
+ var stepSize = _ref.stepSize,
30
31
  onChangeCommitted = _ref.onChangeCommitted,
31
32
  onChange = _ref.onChange,
32
- _ref$position = _ref.position,
33
- position = _ref$position === void 0 ? 0 : _ref$position,
33
+ _ref$xPosition = _ref.xPosition,
34
+ xPosition = _ref$xPosition === void 0 ? 0 : _ref$xPosition,
34
35
  min = _ref.min,
35
36
  max = _ref.max,
36
37
  _ref$bounds = _ref.bounds,
@@ -45,88 +46,122 @@ export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
45
46
  _ref$endOffset = _ref.endOffset,
46
47
  endOffset = _ref$endOffset === void 0 ? 0 : _ref$endOffset,
47
48
  value = _ref.value,
48
- valuePlacement = _ref.valuePlacement,
49
49
  rest = _objectWithoutProperties(_ref, _excluded);
50
- var isVertical = orientation === 'vertical';
51
50
  var lastOnChangeValue = useRef();
52
- var _getOffsets = getOffsets(ref, side, isVertical),
51
+ var _getOffsets = getOffsets(ref, side),
53
52
  _getOffsets2 = _slicedToArray(_getOffsets, 2),
54
- startClientOffset = _getOffsets2[0],
55
- endClientOffset = _getOffsets2[1];
53
+ offsetLeft = _getOffsets2[0],
54
+ offsetRight = _getOffsets2[1];
56
55
  var _bounds = _slicedToArray(bounds, 2),
57
- startValueBound = _bounds[0],
58
- endValueBound = _bounds[1];
59
- var startPositionBound = startValueBound ? (startValueBound - min) * stepSize : null;
60
- var endPositionBound = endValueBound ? (endValueBound - min) * stepSize : null;
61
- var dragPosition = typeof position === 'number' ? {
62
- x: isVertical ? 0 : position,
63
- y: isVertical ? position : 0
56
+ leftValueBound = _bounds[0],
57
+ rightValueBound = _bounds[1];
58
+ var leftPositionBound = leftValueBound ? (leftValueBound - min) * stepSize : null;
59
+ var rightPositionBound = rightValueBound ? (rightValueBound - min) * stepSize : null;
60
+ var position = typeof xPosition === 'number' ? {
61
+ x: xPosition,
62
+ y: 0
64
63
  } : undefined;
65
64
  var tabIndex = disabled ? -1 : 0;
66
- var computedBounds = _defineProperty(_defineProperty({}, isVertical ? 'top' : 'left', (startPositionBound !== null && startPositionBound !== void 0 ? startPositionBound : 0) - (startClientOffset ? stepSize : 0)), isVertical ? 'bottom' : 'right', (endPositionBound !== null && endPositionBound !== void 0 ? endPositionBound : stepSize * (max - min)) - (endClientOffset ? stepSize : 0));
67
- var showCurrentValueCondition = showCurrentValue && (position >= startOffset && position <= max * stepSize - endOffset || position === 0 && value !== 0);
65
+ var computedBounds = {
66
+ left: (leftPositionBound !== null && leftPositionBound !== void 0 ? leftPositionBound : 0) - (offsetLeft ? stepSize : 0),
67
+ right: (rightPositionBound !== null && rightPositionBound !== void 0 ? rightPositionBound : stepSize * (max - min)) - (offsetRight ? stepSize : 0)
68
+ };
69
+ var showCurrentValueCondition = showCurrentValue && (xPosition >= startOffset && xPosition <= max * stepSize - endOffset || xPosition === 0 && value !== 0);
68
70
  var onDrag = function onDrag(_, data) {
69
- var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
71
+ var newValue = getSliderThumbValue(data.x, stepSize, min, max);
70
72
  if (lastOnChangeValue.current !== newValue) {
71
73
  onChange === null || onChange === void 0 || onChange(newValue, data);
72
74
  lastOnChangeValue.current = newValue;
73
75
  }
74
76
  };
75
77
  var onStop = function onStop(_, data) {
76
- var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
78
+ var newValue = getSliderThumbValue(data.x, stepSize, min, max);
77
79
  onChangeCommitted && onChangeCommitted(newValue, data);
78
80
  };
79
81
  var onKeyPress = function onKeyPress(event) {
80
82
  event.persist();
81
- var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
82
- var data = computeKeyPressData(event, {
83
- isVertical: isVertical,
84
- stepSize: stepSize,
85
- position: position,
86
- max: max,
87
- computedMultipleSteps: computedMultipleSteps
88
- });
89
- if (!data) {
83
+ var keyCode = event.keyCode,
84
+ target = event.target;
85
+ if (!Object.values(KeyboardSupport).includes(keyCode)) {
90
86
  return;
91
87
  }
88
+ var ArrowUp = KeyboardSupport.ArrowUp,
89
+ ArrowRight = KeyboardSupport.ArrowRight,
90
+ ArrowDown = KeyboardSupport.ArrowDown,
91
+ ArrowLeft = KeyboardSupport.ArrowLeft,
92
+ Home = KeyboardSupport.Home,
93
+ End = KeyboardSupport.End,
94
+ PageDown = KeyboardSupport.PageDown,
95
+ PageUp = KeyboardSupport.PageUp;
96
+ var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
97
+ var data = {
98
+ x: 0,
99
+ deltaX: stepSize,
100
+ lastX: xPosition,
101
+ y: 0,
102
+ deltaY: 0,
103
+ lastY: 0,
104
+ node: target
105
+ };
106
+ switch (keyCode) {
107
+ case ArrowUp:
108
+ case ArrowRight:
109
+ data.x = xPosition + stepSize;
110
+ break;
111
+ case ArrowDown:
112
+ case ArrowLeft:
113
+ data.x = xPosition - stepSize;
114
+ data.deltaX = -stepSize;
115
+ break;
116
+ case PageUp:
117
+ data.x = xPosition + computedMultipleSteps;
118
+ data.deltaX = computedMultipleSteps;
119
+ break;
120
+ case PageDown:
121
+ data.x = xPosition - computedMultipleSteps;
122
+ data.deltaX = -computedMultipleSteps;
123
+ break;
124
+ case End:
125
+ data.x = max * stepSize;
126
+ break;
127
+ case Home:
128
+ data.x = 0;
129
+ break;
130
+ default:
131
+ data.x = 0;
132
+ }
92
133
  var left = computedBounds.left,
93
- right = computedBounds.right,
94
- top = computedBounds.top,
95
- bottom = computedBounds.bottom;
134
+ right = computedBounds.right;
96
135
 
97
136
  /*
98
137
  * INFO: Находим значение в диапазоне между указанными левой и правой границами.
99
- * Или между верхней и нижней
100
138
  * Необходимо для правильного расчета положения SliderThumb.
101
139
  * см. функция clamp
102
140
  */
103
- var boundedValue = isVertical ? Math.max(Math.min(bottom, data.y), top) : Math.max(Math.min(right, data.x), left);
141
+ var boundedValue = Math.max(Math.min(right, data.x), left);
104
142
  var computedValue = getSliderThumbValue(boundedValue, stepSize, min, max);
105
143
  lastOnChangeValue.current = computedValue;
106
144
  onChangeCommitted && onChangeCommitted(computedValue, data);
107
145
  };
108
146
  return /*#__PURE__*/React.createElement(Draggable, {
109
- axis: isVertical ? 'y' : 'x',
147
+ axis: "x",
110
148
  bounds: computedBounds,
111
- grid: isVertical ? [1, stepSize] : [stepSize, 1],
149
+ grid: [stepSize, 1],
112
150
  onStop: onStop,
113
151
  onDrag: onDrag,
114
- position: dragPosition,
152
+ position: position,
115
153
  disabled: disabled
116
154
  }, /*#__PURE__*/React.createElement(HandlerStyled, {
117
155
  ref: ref,
118
156
  style: {
119
157
  zIndex: zIndex
120
158
  },
121
- className: cx(isVertical && classes.verticalOrientation, valuePlacement === 'left' && classes.valuePlacementLeft),
122
- isLarge: size === 'large',
123
159
  onKeyDown: onKeyPress
124
- }, size !== 'none' && /*#__PURE__*/React.createElement(Thumb, _extends({
160
+ }, /*#__PURE__*/React.createElement(Thumb, _extends({
125
161
  tabIndex: tabIndex,
126
162
  min: min,
127
163
  max: max,
128
164
  value: value,
129
- disabled: disabled,
130
- orientation: orientation
165
+ disabled: disabled
131
166
  }, rest)), showCurrentValueCondition && /*#__PURE__*/React.createElement(StyledValue, null, value)));
132
167
  });
@@ -1,11 +1,8 @@
1
1
  import styled from 'styled-components';
2
- import { classes, tokens } from '../../Slider.tokens';
3
- export var StyledValue = /*#__PURE__*/styled.span.withConfig({
4
- componentId: "plasma-new-hope__sc-a1py3c-0"
5
- })(["position:absolute;z-index:1;top:var(", ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.currentValueTopOffset, tokens.valueFontFamily, tokens.valueFontSize, tokens.valueFontStyle, tokens.valueFontWeight, tokens.valueLetterSpacing, tokens.valueLineHeight);
2
+ import { tokens } from '../../Slider.tokens';
6
3
  export var HandlerStyled = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-a1py3c-0"
5
+ })(["cursor:pointer;position:absolute;z-index:1;top:0;left:0;"]);
6
+ export var StyledValue = /*#__PURE__*/styled.span.withConfig({
7
7
  componentId: "plasma-new-hope__sc-a1py3c-1"
8
- })(["cursor:pointer;position:absolute;z-index:1;top:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center;--thumb-size:", ";&.", "{right:0;bottom:auto;align-items:flex-start;justify-content:center;", "{margin:0;top:0;bottom:0;right:0;left:calc(var(", ") - (var(", ") - var(--thumb-size)) / 2 + 0.25rem);align-items:center;justify-content:flex-start;}}&.", "{", "{left:auto;right:calc(var(", ") - (var(", ") - var(--thumb-size)) / 2 + 0.3125rem);justify-content:flex-end;}}"], function (_ref) {
9
- var isLarge = _ref.isLarge;
10
- return isLarge ? "var(".concat(tokens.thumbSizeLarge, ")") : "var(".concat(tokens.thumbSize, ")");
11
- }, classes.verticalOrientation, StyledValue, tokens.size, tokens.size, classes.valuePlacementLeft, StyledValue, tokens.size, tokens.size);
8
+ })(["position:absolute;z-index:1;top:var(", ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.currentValueTopOffset, tokens.currentValueFontFamily, tokens.currentValueFontSize, tokens.currentValueFontStyle, tokens.currentValueFontWeight, tokens.currentValueLetterSpacing, tokens.currentValueLineHeight);
@@ -1,4 +1,4 @@
1
- var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled", "orientation"];
1
+ var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled"];
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,7 +12,6 @@ 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,
16
15
  rest = _objectWithoutProperties(_ref, _excluded);
17
16
  return /*#__PURE__*/React.createElement(ThumbBase, _extends({
18
17
  role: "slider",
@@ -21,6 +20,6 @@ export var Thumb = function Thumb(_ref) {
21
20
  "aria-valuemax": max,
22
21
  "aria-valuenow": value,
23
22
  disabled: disabled,
24
- "aria-orientation": orientation
23
+ "aria-orientation": "horizontal"
25
24
  }, rest));
26
25
  };
@@ -3,8 +3,8 @@ import { addFocus } from '../../../../mixins';
3
3
  import { tokens } from '../../Slider.tokens';
4
4
  export var ThumbBase = /*#__PURE__*/styled.div.withConfig({
5
5
  componentId: "plasma-new-hope__sc-13botku-0"
6
- })(["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(", ");margin:0.0625rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", ");margin:-0.0625rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", ""], tokens.thumbBackgroundColor, tokens.thumbBorderColor, tokens.thumbFocusBorderColor, /*#__PURE__*/addFocus({
7
- outlineOffset: '0.0625rem',
6
+ })(["width:var(", ");height:var(", ");position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(", ");margin:0.125rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", ");margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", ""], tokens.thumbSize, tokens.thumbSize, tokens.thumbBackgroundColor, tokens.thumbBorderColor, tokens.thumbFocusBorderColor, /*#__PURE__*/addFocus({
7
+ outlineOffset: '0.125rem',
8
8
  outlineSize: '0.125rem',
9
9
  outlineRadius: '50%',
10
10
  outlineColor: /*#__PURE__*/"var(".concat(tokens.thumbFocusBorderColor, ")")