@salutejs/plasma-new-hope 0.80.0-canary.1194.9085423232.0 → 0.81.0-canary.1203.9092095304.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (569) hide show
  1. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  4. package/cjs/components/Calendar/hooks/useDays.js +6 -3
  5. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  6. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  7. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  8. package/cjs/components/Checkbox/Checkbox.css +13 -0
  9. package/cjs/components/Checkbox/Checkbox.js +22 -59
  10. package/cjs/components/Checkbox/Checkbox.js.map +1 -1
  11. package/cjs/components/Checkbox/Checkbox.styles.js +47 -0
  12. package/cjs/components/Checkbox/Checkbox.styles.js.map +1 -0
  13. package/cjs/components/Checkbox/Checkbox.styles_1266095.css +7 -0
  14. package/cjs/components/Checkbox/Checkbox.tokens.js +41 -0
  15. package/cjs/components/Checkbox/Checkbox.tokens.js.map +1 -0
  16. package/cjs/components/Checkbox/IconsSvg.js +9 -9
  17. package/cjs/components/Checkbox/IconsSvg.js.map +1 -1
  18. package/cjs/components/Checkbox/{_disabled → variations/_disabled}/base.js +2 -2
  19. package/cjs/components/Checkbox/variations/_disabled/base.js.map +1 -0
  20. package/cjs/components/Checkbox/variations/_disabled/base_1krdtt6.css +1 -0
  21. package/cjs/components/Checkbox/variations/_focused/base.js +14 -0
  22. package/cjs/components/Checkbox/variations/_focused/base.js.map +1 -0
  23. package/cjs/components/Checkbox/variations/_focused/base_hr4zpz.css +1 -0
  24. package/cjs/components/{Radiobox → Checkbox/variations}/_size/base.js +1 -1
  25. package/cjs/components/Checkbox/variations/_size/base.js.map +1 -0
  26. package/cjs/components/Checkbox/{_size → variations/_view}/base.js +2 -2
  27. package/cjs/components/Checkbox/variations/_view/base.js.map +1 -0
  28. package/cjs/components/Checkbox/variations/_view/base_x252cy.css +1 -0
  29. package/cjs/components/Combobox/hooks/useFocusController.js +0 -1
  30. package/cjs/components/Combobox/hooks/useFocusController.js.map +1 -1
  31. package/cjs/components/Radiobox/Radiobox.css +16 -0
  32. package/cjs/components/Radiobox/Radiobox.js +23 -32
  33. package/cjs/components/Radiobox/Radiobox.js.map +1 -1
  34. package/cjs/components/Radiobox/Radiobox.styles.js +19 -0
  35. package/cjs/components/Radiobox/Radiobox.styles.js.map +1 -0
  36. package/cjs/components/Radiobox/Radiobox.styles_1skfuon.css +2 -0
  37. package/cjs/components/Radiobox/Radiobox.tokens.js +41 -0
  38. package/cjs/components/Radiobox/Radiobox.tokens.js.map +1 -0
  39. package/cjs/components/{Checkbox/_focused → Radiobox/variations/_disabled}/base.js +2 -2
  40. package/cjs/components/Radiobox/variations/_disabled/base.js.map +1 -0
  41. package/cjs/components/Radiobox/variations/_disabled/base_6ae9j2.css +1 -0
  42. package/cjs/components/{Checkbox/_view → Radiobox/variations/_focused}/base.js +2 -2
  43. package/cjs/components/Radiobox/variations/_focused/base.js.map +1 -0
  44. package/cjs/components/Radiobox/{_focused/base_1nruwxa.css → variations/_focused/base_1d7o4za.css} +1 -1
  45. package/cjs/components/{Slider/variations/_disabled → Radiobox/variations/_size}/base.js +1 -1
  46. package/cjs/components/Radiobox/variations/_size/base.js.map +1 -0
  47. package/cjs/components/Radiobox/variations/_view/base.js +9 -0
  48. package/cjs/components/Radiobox/variations/_view/base.js.map +1 -0
  49. package/cjs/components/Radiobox/{_view/base_wj0ueq.css → variations/_view/base_11n1fn3.css} +1 -1
  50. package/cjs/components/TextField/TextField.js +3 -12
  51. package/cjs/components/TextField/TextField.js.map +1 -1
  52. package/cjs/engines/common.js +0 -4
  53. package/cjs/engines/common.js.map +1 -1
  54. package/cjs/engines/index.js.map +1 -1
  55. package/cjs/index.css +15 -40
  56. package/cjs/index.js +4 -14
  57. package/cjs/index.js.map +1 -1
  58. package/cjs/utils/index.js.map +1 -1
  59. package/es/components/Calendar/Calendar.types.js.map +1 -1
  60. package/es/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  61. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  62. package/es/components/Calendar/hooks/useDays.js +6 -3
  63. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  64. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  65. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  66. package/es/components/Checkbox/Checkbox.css +13 -0
  67. package/es/components/Checkbox/Checkbox.js +12 -43
  68. package/es/components/Checkbox/Checkbox.js.map +1 -1
  69. package/es/components/Checkbox/Checkbox.styles.js +37 -0
  70. package/es/components/Checkbox/Checkbox.styles.js.map +1 -0
  71. package/es/components/Checkbox/Checkbox.styles_1266095.css +7 -0
  72. package/es/components/Checkbox/Checkbox.tokens.js +36 -0
  73. package/es/components/Checkbox/Checkbox.tokens.js.map +1 -0
  74. package/es/components/Checkbox/IconsSvg.js +9 -9
  75. package/es/components/Checkbox/IconsSvg.js.map +1 -1
  76. package/es/components/Checkbox/{_focused → variations/_disabled}/base.js +2 -2
  77. package/es/components/Checkbox/variations/_disabled/base.js.map +1 -0
  78. package/es/components/Checkbox/variations/_disabled/base_1krdtt6.css +1 -0
  79. package/es/components/Checkbox/variations/_focused/base.js +10 -0
  80. package/es/components/Checkbox/variations/_focused/base.js.map +1 -0
  81. package/es/components/Checkbox/variations/_focused/base_hr4zpz.css +1 -0
  82. package/es/components/{Radiobox → Checkbox/variations}/_size/base.js +1 -1
  83. package/es/components/Checkbox/variations/_size/base.js.map +1 -0
  84. package/es/components/Checkbox/{_view → variations/_view}/base.js +2 -2
  85. package/es/components/Checkbox/variations/_view/base.js.map +1 -0
  86. package/es/components/Checkbox/variations/_view/base_x252cy.css +1 -0
  87. package/es/components/Combobox/hooks/useFocusController.js +0 -1
  88. package/es/components/Combobox/hooks/useFocusController.js.map +1 -1
  89. package/es/components/Radiobox/Radiobox.css +16 -0
  90. package/es/components/Radiobox/Radiobox.js +12 -21
  91. package/es/components/Radiobox/Radiobox.js.map +1 -1
  92. package/es/components/Radiobox/Radiobox.styles.js +14 -0
  93. package/es/components/Radiobox/Radiobox.styles.js.map +1 -0
  94. package/es/components/Radiobox/Radiobox.styles_1skfuon.css +2 -0
  95. package/es/components/Radiobox/Radiobox.tokens.js +36 -0
  96. package/es/components/Radiobox/Radiobox.tokens.js.map +1 -0
  97. package/es/components/{Checkbox → Radiobox/variations}/_disabled/base.js +2 -2
  98. package/es/components/Radiobox/variations/_disabled/base.js.map +1 -0
  99. package/es/components/Radiobox/variations/_disabled/base_6ae9j2.css +1 -0
  100. package/es/components/Radiobox/variations/_focused/base.js +5 -0
  101. package/es/components/Radiobox/variations/_focused/base.js.map +1 -0
  102. package/es/components/Radiobox/{_focused/base_1nruwxa.css → variations/_focused/base_1d7o4za.css} +1 -1
  103. package/es/components/{Checkbox → Radiobox/variations}/_size/base.js +1 -1
  104. package/es/components/Radiobox/variations/_size/base.js.map +1 -0
  105. package/es/components/Radiobox/variations/_view/base.js +5 -0
  106. package/es/components/Radiobox/variations/_view/base.js.map +1 -0
  107. package/es/components/Radiobox/{_view/base_wj0ueq.css → variations/_view/base_11n1fn3.css} +1 -1
  108. package/es/components/TextField/TextField.js +3 -12
  109. package/es/components/TextField/TextField.js.map +1 -1
  110. package/es/engines/common.js +0 -4
  111. package/es/engines/common.js.map +1 -1
  112. package/es/engines/index.js.map +1 -1
  113. package/es/index.css +15 -40
  114. package/es/index.js +2 -8
  115. package/es/index.js.map +1 -1
  116. package/es/utils/index.js.map +1 -1
  117. package/package.json +2 -3
  118. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  119. package/styled-components/cjs/components/Calendar/hooks/useDays.js +6 -3
  120. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  121. package/styled-components/cjs/components/Checkbox/Checkbox.js +20 -40
  122. package/styled-components/cjs/components/Checkbox/Checkbox.styles.js +33 -0
  123. package/styled-components/cjs/components/Checkbox/Checkbox.tokens.js +39 -0
  124. package/styled-components/cjs/components/Checkbox/IconsSvg.js +9 -9
  125. package/styled-components/cjs/components/Checkbox/index.js +8 -1
  126. package/styled-components/cjs/components/Checkbox/variations/_disabled/base.js +10 -0
  127. package/styled-components/cjs/components/Checkbox/variations/_focused/base.js +32 -0
  128. package/styled-components/cjs/components/Checkbox/variations/_view/base.js +10 -0
  129. package/styled-components/cjs/components/Checkbox/variations/_view/tokens.json +1 -0
  130. package/styled-components/cjs/components/Radiobox/Radiobox.js +15 -22
  131. package/styled-components/cjs/components/Radiobox/Radiobox.styles.js +19 -0
  132. package/styled-components/cjs/components/Radiobox/Radiobox.tokens.js +39 -0
  133. package/styled-components/cjs/components/Radiobox/index.js +8 -1
  134. package/styled-components/cjs/components/{Checkbox → Radiobox/variations}/_disabled/base.js +2 -1
  135. package/styled-components/cjs/components/Radiobox/variations/_focused/base.js +27 -0
  136. package/styled-components/cjs/components/Radiobox/variations/_view/base.js +9 -0
  137. package/styled-components/cjs/components/TextField/TextField.js +3 -12
  138. package/styled-components/cjs/engines/common.js +0 -4
  139. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +18 -6
  140. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +14 -14
  141. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -0
  142. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +13 -12
  143. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +18 -6
  144. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +14 -14
  145. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -0
  146. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +13 -12
  147. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +18 -6
  148. package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +14 -14
  149. package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +13 -12
  150. package/styled-components/cjs/hooks/index.js +1 -8
  151. package/styled-components/cjs/index.js +0 -11
  152. package/styled-components/cjs/utils/index.js +0 -7
  153. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +3 -1
  154. package/styled-components/es/components/Calendar/hooks/useDays.js +6 -3
  155. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +2 -1
  156. package/styled-components/es/components/Checkbox/Checkbox.js +12 -33
  157. package/styled-components/es/components/Checkbox/Checkbox.styles.js +25 -0
  158. package/styled-components/es/components/Checkbox/Checkbox.tokens.js +33 -0
  159. package/styled-components/es/components/Checkbox/IconsSvg.js +9 -9
  160. package/styled-components/es/components/Checkbox/index.js +2 -1
  161. package/styled-components/es/components/Checkbox/variations/_disabled/base.js +4 -0
  162. package/styled-components/es/components/Checkbox/variations/_focused/base.js +27 -0
  163. package/styled-components/es/components/Checkbox/variations/_view/base.js +4 -0
  164. package/styled-components/es/components/Checkbox/variations/_view/tokens.json +1 -0
  165. package/styled-components/es/components/Radiobox/Radiobox.js +13 -22
  166. package/styled-components/es/components/Radiobox/Radiobox.styles.js +12 -0
  167. package/styled-components/es/components/Radiobox/Radiobox.tokens.js +33 -0
  168. package/styled-components/es/components/Radiobox/index.js +2 -1
  169. package/styled-components/es/components/Radiobox/variations/_disabled/base.js +3 -0
  170. package/styled-components/es/components/Radiobox/variations/_focused/base.js +21 -0
  171. package/styled-components/es/components/Radiobox/variations/_view/base.js +3 -0
  172. package/styled-components/es/components/TextField/TextField.js +3 -12
  173. package/styled-components/es/engines/common.js +0 -4
  174. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +18 -6
  175. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +14 -14
  176. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -0
  177. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +13 -12
  178. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +18 -6
  179. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +14 -14
  180. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -0
  181. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +13 -12
  182. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +18 -6
  183. package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +14 -14
  184. package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +13 -12
  185. package/styled-components/es/hooks/index.js +1 -2
  186. package/styled-components/es/index.js +1 -2
  187. package/styled-components/es/utils/index.js +0 -1
  188. package/types/components/Calendar/Calendar.types.d.ts +4 -0
  189. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  190. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  191. package/types/components/Calendar/hooks/useDays.d.ts +1 -1
  192. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  193. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  194. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts +1 -0
  195. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts.map +1 -1
  196. package/types/components/Checkbox/Checkbox.d.ts +4 -37
  197. package/types/components/Checkbox/Checkbox.d.ts.map +1 -1
  198. package/types/components/Checkbox/Checkbox.styles.d.ts +9 -0
  199. package/types/components/Checkbox/Checkbox.styles.d.ts.map +1 -0
  200. package/types/components/Checkbox/Checkbox.tokens.d.ts +34 -0
  201. package/types/components/Checkbox/Checkbox.tokens.d.ts.map +1 -0
  202. package/types/components/Checkbox/Checkbox.types.d.ts +29 -0
  203. package/types/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  204. package/types/components/Checkbox/IconsSvg.d.ts.map +1 -1
  205. package/types/components/Checkbox/index.d.ts +2 -1
  206. package/types/components/Checkbox/index.d.ts.map +1 -1
  207. package/types/components/Checkbox/variations/_disabled/base.d.ts.map +1 -0
  208. package/types/components/Checkbox/variations/_focused/base.d.ts +6 -0
  209. package/types/components/Checkbox/variations/_focused/base.d.ts.map +1 -0
  210. package/types/components/Checkbox/variations/_size/base.d.ts.map +1 -0
  211. package/types/components/Checkbox/variations/_view/base.d.ts.map +1 -0
  212. package/types/components/Radiobox/Radiobox.d.ts +1 -1
  213. package/types/components/Radiobox/Radiobox.d.ts.map +1 -1
  214. package/types/components/Radiobox/Radiobox.styles.d.ts +4 -0
  215. package/types/components/Radiobox/Radiobox.styles.d.ts.map +1 -0
  216. package/types/components/Radiobox/Radiobox.tokens.d.ts +34 -0
  217. package/types/components/Radiobox/Radiobox.tokens.d.ts.map +1 -0
  218. package/types/components/Radiobox/index.d.ts +1 -0
  219. package/types/components/Radiobox/index.d.ts.map +1 -1
  220. package/types/components/Radiobox/variations/_disabled/base.d.ts.map +1 -0
  221. package/types/components/Radiobox/variations/_focused/base.d.ts.map +1 -0
  222. package/types/components/Radiobox/variations/_size/base.d.ts.map +1 -0
  223. package/types/components/Radiobox/variations/_view/base.d.ts.map +1 -0
  224. package/types/components/TextField/TextField.d.ts.map +1 -1
  225. package/types/engines/common.d.ts +3 -3
  226. package/types/engines/common.d.ts.map +1 -1
  227. package/types/engines/index.d.ts +1 -1
  228. package/types/engines/index.d.ts.map +1 -1
  229. package/types/engines/types.d.ts +0 -4
  230. package/types/engines/types.d.ts.map +1 -1
  231. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +0 -1
  232. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  233. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
  234. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts.map +1 -1
  235. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  236. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +0 -1
  237. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  238. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
  239. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts.map +1 -1
  240. package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  241. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts +0 -1
  242. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  243. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts +1 -1
  244. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts.map +1 -1
  245. package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  246. package/types/hooks/index.d.ts +0 -1
  247. package/types/hooks/index.d.ts.map +1 -1
  248. package/types/index.d.ts +0 -1
  249. package/types/index.d.ts.map +1 -1
  250. package/types/utils/index.d.ts +0 -1
  251. package/types/utils/index.d.ts.map +1 -1
  252. package/cjs/components/Checkbox/Checkbox_1q4l832.css +0 -7
  253. package/cjs/components/Checkbox/_disabled/base.js.map +0 -1
  254. package/cjs/components/Checkbox/_disabled/base_fyu17z.css +0 -1
  255. package/cjs/components/Checkbox/_focused/base.js.map +0 -1
  256. package/cjs/components/Checkbox/_focused/base_po5iiu.css +0 -1
  257. package/cjs/components/Checkbox/_size/base.js.map +0 -1
  258. package/cjs/components/Checkbox/_view/base.js.map +0 -1
  259. package/cjs/components/Checkbox/_view/base_1vqr3f.css +0 -1
  260. package/cjs/components/Radiobox/Radiobox_1ri2eqv.css +0 -2
  261. package/cjs/components/Radiobox/_disabled/base.js +0 -9
  262. package/cjs/components/Radiobox/_disabled/base.js.map +0 -1
  263. package/cjs/components/Radiobox/_disabled/base_1jca5bk.css +0 -1
  264. package/cjs/components/Radiobox/_focused/base.js +0 -9
  265. package/cjs/components/Radiobox/_focused/base.js.map +0 -1
  266. package/cjs/components/Radiobox/_size/base.js.map +0 -1
  267. package/cjs/components/Radiobox/_view/base.js +0 -9
  268. package/cjs/components/Radiobox/_view/base.js.map +0 -1
  269. package/cjs/components/Slider/Slider.css +0 -69
  270. package/cjs/components/Slider/Slider.js +0 -53
  271. package/cjs/components/Slider/Slider.js.map +0 -1
  272. package/cjs/components/Slider/Slider.tokens.js +0 -79
  273. package/cjs/components/Slider/Slider.tokens.js.map +0 -1
  274. package/cjs/components/Slider/components/Double/Double.css +0 -62
  275. package/cjs/components/Slider/components/Double/Double.js +0 -274
  276. package/cjs/components/Slider/components/Double/Double.js.map +0 -1
  277. package/cjs/components/Slider/components/Double/Double.styles.js +0 -61
  278. package/cjs/components/Slider/components/Double/Double.styles.js.map +0 -1
  279. package/cjs/components/Slider/components/Double/Double.styles_1jhda4u.css +0 -7
  280. package/cjs/components/Slider/components/Single/Single.css +0 -16
  281. package/cjs/components/Slider/components/Single/Single.js +0 -160
  282. package/cjs/components/Slider/components/Single/Single.js.map +0 -1
  283. package/cjs/components/Slider/components/Single/Single.styles.js +0 -45
  284. package/cjs/components/Slider/components/Single/Single.styles.js.map +0 -1
  285. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  286. package/cjs/components/Slider/components/SliderBase/SliderBase.css +0 -4
  287. package/cjs/components/Slider/components/SliderBase/SliderBase.js +0 -82
  288. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +0 -1
  289. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +0 -33
  290. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +0 -1
  291. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +0 -4
  292. package/cjs/components/Slider/ui/Handle/Handle.css +0 -4
  293. package/cjs/components/Slider/ui/Handle/Handle.js +0 -174
  294. package/cjs/components/Slider/ui/Handle/Handle.js.map +0 -1
  295. package/cjs/components/Slider/ui/Handle/Handle.styles.js +0 -21
  296. package/cjs/components/Slider/ui/Handle/Handle.styles.js.map +0 -1
  297. package/cjs/components/Slider/ui/Handle/Handle.styles_9m0x33.css +0 -2
  298. package/cjs/components/Slider/ui/Thumb/Thumb.css +0 -1
  299. package/cjs/components/Slider/ui/Thumb/Thumb.js +0 -31
  300. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +0 -1
  301. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +0 -15
  302. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +0 -1
  303. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  304. package/cjs/components/Slider/utils/index.js +0 -56
  305. package/cjs/components/Slider/utils/index.js.map +0 -1
  306. package/cjs/components/Slider/variations/_disabled/base.js.map +0 -1
  307. package/cjs/components/Slider/variations/_size/base.js +0 -9
  308. package/cjs/components/Slider/variations/_size/base.js.map +0 -1
  309. package/cjs/components/Slider/variations/_view/base.js +0 -9
  310. package/cjs/components/Slider/variations/_view/base.js.map +0 -1
  311. package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
  312. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -15
  313. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +0 -1
  314. package/cjs/utils/canUseDOM.js +0 -12
  315. package/cjs/utils/canUseDOM.js.map +0 -1
  316. package/es/components/Checkbox/Checkbox_1q4l832.css +0 -7
  317. package/es/components/Checkbox/_disabled/base.js.map +0 -1
  318. package/es/components/Checkbox/_disabled/base_fyu17z.css +0 -1
  319. package/es/components/Checkbox/_focused/base.js.map +0 -1
  320. package/es/components/Checkbox/_focused/base_po5iiu.css +0 -1
  321. package/es/components/Checkbox/_size/base.js.map +0 -1
  322. package/es/components/Checkbox/_size/base_x642ct.css +0 -1
  323. package/es/components/Checkbox/_view/base.js.map +0 -1
  324. package/es/components/Checkbox/_view/base_1vqr3f.css +0 -1
  325. package/es/components/Radiobox/Radiobox_1ri2eqv.css +0 -2
  326. package/es/components/Radiobox/_disabled/base.js +0 -5
  327. package/es/components/Radiobox/_disabled/base.js.map +0 -1
  328. package/es/components/Radiobox/_disabled/base_1jca5bk.css +0 -1
  329. package/es/components/Radiobox/_focused/base.js +0 -5
  330. package/es/components/Radiobox/_focused/base.js.map +0 -1
  331. package/es/components/Radiobox/_size/base.js.map +0 -1
  332. package/es/components/Radiobox/_size/base_x642ct.css +0 -1
  333. package/es/components/Radiobox/_view/base.js +0 -5
  334. package/es/components/Radiobox/_view/base.js.map +0 -1
  335. package/es/components/Slider/Slider.css +0 -69
  336. package/es/components/Slider/Slider.js +0 -48
  337. package/es/components/Slider/Slider.js.map +0 -1
  338. package/es/components/Slider/Slider.tokens.js +0 -74
  339. package/es/components/Slider/Slider.tokens.js.map +0 -1
  340. package/es/components/Slider/components/Double/Double.css +0 -62
  341. package/es/components/Slider/components/Double/Double.js +0 -270
  342. package/es/components/Slider/components/Double/Double.js.map +0 -1
  343. package/es/components/Slider/components/Double/Double.styles.js +0 -51
  344. package/es/components/Slider/components/Double/Double.styles.js.map +0 -1
  345. package/es/components/Slider/components/Double/Double.styles_1jhda4u.css +0 -7
  346. package/es/components/Slider/components/Single/Single.css +0 -16
  347. package/es/components/Slider/components/Single/Single.js +0 -156
  348. package/es/components/Slider/components/Single/Single.js.map +0 -1
  349. package/es/components/Slider/components/Single/Single.styles.js +0 -36
  350. package/es/components/Slider/components/Single/Single.styles.js.map +0 -1
  351. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  352. package/es/components/Slider/components/SliderBase/SliderBase.css +0 -4
  353. package/es/components/Slider/components/SliderBase/SliderBase.js +0 -78
  354. package/es/components/Slider/components/SliderBase/SliderBase.js.map +0 -1
  355. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +0 -26
  356. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +0 -1
  357. package/es/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +0 -4
  358. package/es/components/Slider/ui/Handle/Handle.css +0 -4
  359. package/es/components/Slider/ui/Handle/Handle.js +0 -170
  360. package/es/components/Slider/ui/Handle/Handle.js.map +0 -1
  361. package/es/components/Slider/ui/Handle/Handle.styles.js +0 -16
  362. package/es/components/Slider/ui/Handle/Handle.styles.js.map +0 -1
  363. package/es/components/Slider/ui/Handle/Handle.styles_9m0x33.css +0 -2
  364. package/es/components/Slider/ui/Thumb/Thumb.css +0 -1
  365. package/es/components/Slider/ui/Thumb/Thumb.js +0 -27
  366. package/es/components/Slider/ui/Thumb/Thumb.js.map +0 -1
  367. package/es/components/Slider/ui/Thumb/Thumb.styles.js +0 -11
  368. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +0 -1
  369. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  370. package/es/components/Slider/utils/index.js +0 -50
  371. package/es/components/Slider/utils/index.js.map +0 -1
  372. package/es/components/Slider/variations/_disabled/base.js +0 -5
  373. package/es/components/Slider/variations/_disabled/base.js.map +0 -1
  374. package/es/components/Slider/variations/_disabled/base_x642ct.css +0 -1
  375. package/es/components/Slider/variations/_size/base.js +0 -5
  376. package/es/components/Slider/variations/_size/base.js.map +0 -1
  377. package/es/components/Slider/variations/_size/base_x642ct.css +0 -1
  378. package/es/components/Slider/variations/_view/base.js +0 -5
  379. package/es/components/Slider/variations/_view/base.js.map +0 -1
  380. package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
  381. package/es/hooks/useIsomorphicLayoutEffect.js +0 -11
  382. package/es/hooks/useIsomorphicLayoutEffect.js.map +0 -1
  383. package/es/utils/canUseDOM.js +0 -8
  384. package/es/utils/canUseDOM.js.map +0 -1
  385. package/styled-components/cjs/components/Checkbox/_focused/base.js +0 -26
  386. package/styled-components/cjs/components/Checkbox/_view/base.js +0 -8
  387. package/styled-components/cjs/components/Checkbox/_view/tokens.json +0 -1
  388. package/styled-components/cjs/components/Radiobox/_disabled/base.js +0 -8
  389. package/styled-components/cjs/components/Radiobox/_focused/base.js +0 -26
  390. package/styled-components/cjs/components/Radiobox/_view/base.js +0 -8
  391. package/styled-components/cjs/components/Slider/Slider.js +0 -52
  392. package/styled-components/cjs/components/Slider/Slider.tokens.js +0 -77
  393. package/styled-components/cjs/components/Slider/components/Double/Double.js +0 -286
  394. package/styled-components/cjs/components/Slider/components/Double/Double.styles.js +0 -36
  395. package/styled-components/cjs/components/Slider/components/Double/Double.types.js +0 -5
  396. package/styled-components/cjs/components/Slider/components/Single/Single.js +0 -172
  397. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +0 -27
  398. package/styled-components/cjs/components/Slider/components/Single/Single.types.js +0 -5
  399. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +0 -83
  400. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +0 -21
  401. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.types.js +0 -5
  402. package/styled-components/cjs/components/Slider/components/index.js +0 -27
  403. package/styled-components/cjs/components/Slider/index.js +0 -32
  404. package/styled-components/cjs/components/Slider/ui/Handle/Handle.js +0 -183
  405. package/styled-components/cjs/components/Slider/ui/Handle/Handle.styles.js +0 -15
  406. package/styled-components/cjs/components/Slider/ui/Handle/Handle.types.js +0 -5
  407. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +0 -32
  408. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +0 -18
  409. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.types.js +0 -5
  410. package/styled-components/cjs/components/Slider/ui/index.js +0 -63
  411. package/styled-components/cjs/components/Slider/utils/index.js +0 -55
  412. package/styled-components/cjs/components/Slider/variations/_disabled/base.js +0 -8
  413. package/styled-components/cjs/components/Slider/variations/_disabled/tokens.json +0 -4
  414. package/styled-components/cjs/components/Slider/variations/_size/base.js +0 -8
  415. package/styled-components/cjs/components/Slider/variations/_size/tokens.json +0 -0
  416. package/styled-components/cjs/components/Slider/variations/_view/base.js +0 -8
  417. package/styled-components/cjs/components/Slider/variations/_view/tokens.json +0 -0
  418. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +0 -29
  419. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.js +0 -16
  420. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +0 -150
  421. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +0 -29
  422. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.js +0 -16
  423. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +0 -150
  424. package/styled-components/cjs/hooks/useIsomorphicLayoutEffect.js +0 -12
  425. package/styled-components/cjs/utils/canUseDOM.js +0 -11
  426. package/styled-components/es/components/Checkbox/_disabled/base.js +0 -2
  427. package/styled-components/es/components/Checkbox/_focused/base.js +0 -20
  428. package/styled-components/es/components/Checkbox/_view/base.js +0 -2
  429. package/styled-components/es/components/Checkbox/_view/tokens.json +0 -1
  430. package/styled-components/es/components/Radiobox/_disabled/base.js +0 -2
  431. package/styled-components/es/components/Radiobox/_focused/base.js +0 -20
  432. package/styled-components/es/components/Radiobox/_view/base.js +0 -2
  433. package/styled-components/es/components/Slider/Slider.js +0 -43
  434. package/styled-components/es/components/Slider/Slider.tokens.js +0 -71
  435. package/styled-components/es/components/Slider/components/Double/Double.js +0 -278
  436. package/styled-components/es/components/Slider/components/Double/Double.styles.js +0 -29
  437. package/styled-components/es/components/Slider/components/Double/Double.types.js +0 -1
  438. package/styled-components/es/components/Slider/components/Single/Single.js +0 -164
  439. package/styled-components/es/components/Slider/components/Single/Single.styles.js +0 -20
  440. package/styled-components/es/components/Slider/components/Single/Single.types.js +0 -1
  441. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +0 -74
  442. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +0 -14
  443. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.types.js +0 -1
  444. package/styled-components/es/components/Slider/components/index.js +0 -3
  445. package/styled-components/es/components/Slider/index.js +0 -3
  446. package/styled-components/es/components/Slider/ui/Handle/Handle.js +0 -174
  447. package/styled-components/es/components/Slider/ui/Handle/Handle.styles.js +0 -8
  448. package/styled-components/es/components/Slider/ui/Handle/Handle.types.js +0 -1
  449. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +0 -25
  450. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +0 -11
  451. package/styled-components/es/components/Slider/ui/Thumb/Thumb.types.js +0 -1
  452. package/styled-components/es/components/Slider/ui/index.js +0 -5
  453. package/styled-components/es/components/Slider/utils/index.js +0 -47
  454. package/styled-components/es/components/Slider/variations/_disabled/base.js +0 -2
  455. package/styled-components/es/components/Slider/variations/_disabled/tokens.json +0 -4
  456. package/styled-components/es/components/Slider/variations/_size/base.js +0 -2
  457. package/styled-components/es/components/Slider/variations/_size/tokens.json +0 -0
  458. package/styled-components/es/components/Slider/variations/_view/base.js +0 -2
  459. package/styled-components/es/components/Slider/variations/_view/tokens.json +0 -0
  460. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +0 -23
  461. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.js +0 -10
  462. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +0 -150
  463. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +0 -23
  464. package/styled-components/es/examples/plasma_web/components/Slider/Slider.js +0 -10
  465. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +0 -150
  466. package/styled-components/es/hooks/useIsomorphicLayoutEffect.js +0 -7
  467. package/styled-components/es/utils/canUseDOM.js +0 -5
  468. package/types/components/Checkbox/_disabled/base.d.ts.map +0 -1
  469. package/types/components/Checkbox/_focused/base.d.ts.map +0 -1
  470. package/types/components/Checkbox/_size/base.d.ts.map +0 -1
  471. package/types/components/Checkbox/_view/base.d.ts.map +0 -1
  472. package/types/components/Radiobox/_disabled/base.d.ts.map +0 -1
  473. package/types/components/Radiobox/_focused/base.d.ts.map +0 -1
  474. package/types/components/Radiobox/_size/base.d.ts.map +0 -1
  475. package/types/components/Radiobox/_view/base.d.ts +0 -2
  476. package/types/components/Radiobox/_view/base.d.ts.map +0 -1
  477. package/types/components/Slider/Slider.d.ts +0 -27
  478. package/types/components/Slider/Slider.d.ts.map +0 -1
  479. package/types/components/Slider/Slider.tokens.d.ts +0 -72
  480. package/types/components/Slider/Slider.tokens.d.ts.map +0 -1
  481. package/types/components/Slider/Slider.types.d.ts +0 -3
  482. package/types/components/Slider/Slider.types.d.ts.map +0 -1
  483. package/types/components/Slider/components/Double/Double.d.ts +0 -4
  484. package/types/components/Slider/components/Double/Double.d.ts.map +0 -1
  485. package/types/components/Slider/components/Double/Double.styles.d.ts +0 -43
  486. package/types/components/Slider/components/Double/Double.styles.d.ts.map +0 -1
  487. package/types/components/Slider/components/Double/Double.types.d.ts +0 -65
  488. package/types/components/Slider/components/Double/Double.types.d.ts.map +0 -1
  489. package/types/components/Slider/components/Single/Single.d.ts +0 -4
  490. package/types/components/Slider/components/Single/Single.d.ts.map +0 -1
  491. package/types/components/Slider/components/Single/Single.styles.d.ts +0 -8
  492. package/types/components/Slider/components/Single/Single.styles.d.ts.map +0 -1
  493. package/types/components/Slider/components/Single/Single.types.d.ts +0 -55
  494. package/types/components/Slider/components/Single/Single.types.d.ts.map +0 -1
  495. package/types/components/Slider/components/SliderBase/SliderBase.d.ts +0 -4
  496. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +0 -1
  497. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +0 -6
  498. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +0 -1
  499. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -45
  500. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +0 -1
  501. package/types/components/Slider/components/index.d.ts +0 -6
  502. package/types/components/Slider/components/index.d.ts.map +0 -1
  503. package/types/components/Slider/index.d.ts +0 -6
  504. package/types/components/Slider/index.d.ts.map +0 -1
  505. package/types/components/Slider/ui/Handle/Handle.d.ts +0 -9
  506. package/types/components/Slider/ui/Handle/Handle.d.ts.map +0 -1
  507. package/types/components/Slider/ui/Handle/Handle.styles.d.ts +0 -4
  508. package/types/components/Slider/ui/Handle/Handle.styles.d.ts.map +0 -1
  509. package/types/components/Slider/ui/Handle/Handle.types.d.ts +0 -24
  510. package/types/components/Slider/ui/Handle/Handle.types.d.ts.map +0 -1
  511. package/types/components/Slider/ui/Thumb/Thumb.d.ts +0 -4
  512. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +0 -1
  513. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts +0 -5
  514. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +0 -1
  515. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -12
  516. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +0 -1
  517. package/types/components/Slider/ui/index.d.ts +0 -6
  518. package/types/components/Slider/ui/index.d.ts.map +0 -1
  519. package/types/components/Slider/utils/index.d.ts +0 -33
  520. package/types/components/Slider/utils/index.d.ts.map +0 -1
  521. package/types/components/Slider/variations/_disabled/base.d.ts +0 -2
  522. package/types/components/Slider/variations/_disabled/base.d.ts.map +0 -1
  523. package/types/components/Slider/variations/_size/base.d.ts +0 -2
  524. package/types/components/Slider/variations/_size/base.d.ts.map +0 -1
  525. package/types/components/Slider/variations/_view/base.d.ts +0 -2
  526. package/types/components/Slider/variations/_view/base.d.ts.map +0 -1
  527. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts +0 -22
  528. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +0 -1
  529. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +0 -21
  530. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +0 -1
  531. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts +0 -22
  532. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +0 -1
  533. package/types/examples/plasma_web/components/Slider/Slider.d.ts +0 -21
  534. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +0 -1
  535. package/types/hooks/useIsomorphicLayoutEffect.d.ts +0 -6
  536. package/types/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
  537. package/types/utils/canUseDOM.d.ts +0 -6
  538. package/types/utils/canUseDOM.d.ts.map +0 -1
  539. /package/cjs/components/Checkbox/{_size → variations/_size}/base_x642ct.css +0 -0
  540. /package/cjs/components/Radiobox/{_size → variations/_size}/base_x642ct.css +0 -0
  541. /package/{cjs/components/Slider/variations/_disabled → es/components/Checkbox/variations/_size}/base_x642ct.css +0 -0
  542. /package/{cjs/components/Slider → es/components/Radiobox}/variations/_size/base_x642ct.css +0 -0
  543. /package/styled-components/cjs/components/{Slider/Slider.types.js → Checkbox/Checkbox.types.js} +0 -0
  544. /package/styled-components/cjs/components/Checkbox/{_disabled → variations/_disabled}/tokens.json +0 -0
  545. /package/styled-components/cjs/components/Checkbox/{_focused → variations/_focused}/tokens.json +0 -0
  546. /package/styled-components/cjs/components/Checkbox/{_size → variations/_size}/base.js +0 -0
  547. /package/styled-components/cjs/components/Checkbox/{_size → variations/_size}/tokens.json +0 -0
  548. /package/styled-components/cjs/components/Radiobox/{_disabled → variations/_disabled}/tokens.json +0 -0
  549. /package/styled-components/cjs/components/Radiobox/{_focused → variations/_focused}/tokens.json +0 -0
  550. /package/styled-components/cjs/components/Radiobox/{_size → variations/_size}/base.js +0 -0
  551. /package/styled-components/cjs/components/Radiobox/{_size → variations/_size}/tokens.json +0 -0
  552. /package/styled-components/cjs/components/Radiobox/{_view → variations/_view}/tokens.json +0 -0
  553. /package/styled-components/es/components/{Slider/Slider.types.js → Checkbox/Checkbox.types.js} +0 -0
  554. /package/styled-components/es/components/Checkbox/{_disabled → variations/_disabled}/tokens.json +0 -0
  555. /package/styled-components/es/components/Checkbox/{_focused → variations/_focused}/tokens.json +0 -0
  556. /package/styled-components/es/components/Checkbox/{_size → variations/_size}/base.js +0 -0
  557. /package/styled-components/es/components/Checkbox/{_size → variations/_size}/tokens.json +0 -0
  558. /package/styled-components/es/components/Radiobox/{_disabled → variations/_disabled}/tokens.json +0 -0
  559. /package/styled-components/es/components/Radiobox/{_focused → variations/_focused}/tokens.json +0 -0
  560. /package/styled-components/es/components/Radiobox/{_size → variations/_size}/base.js +0 -0
  561. /package/styled-components/es/components/Radiobox/{_size → variations/_size}/tokens.json +0 -0
  562. /package/styled-components/es/components/Radiobox/{_view → variations/_view}/tokens.json +0 -0
  563. /package/types/components/Checkbox/{_disabled → variations/_disabled}/base.d.ts +0 -0
  564. /package/types/components/Checkbox/{_focused → variations/_size}/base.d.ts +0 -0
  565. /package/types/components/Checkbox/{_size → variations/_view}/base.d.ts +0 -0
  566. /package/types/components/{Checkbox/_view → Radiobox/variations/_disabled}/base.d.ts +0 -0
  567. /package/types/components/Radiobox/{_disabled → variations/_focused}/base.d.ts +0 -0
  568. /package/types/components/Radiobox/{_focused → variations/_size}/base.d.ts +0 -0
  569. /package/types/components/Radiobox/{_size → variations/_view}/base.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handle.js","sources":["../../../../../src/components/Slider/ui/Handle/Handle.tsx"],"sourcesContent":["import React, { useState, useRef, useCallback, forwardRef, KeyboardEvent } from 'react';\nimport Draggable, { DraggableEventHandler } from 'react-draggable';\nimport type { DraggableData } from 'react-draggable';\n\nimport { getSliderThumbValue, getOffsets } from '../../utils';\nimport { Thumb } from '../Thumb/Thumb';\n\nimport type { HandleProps } from './Handle.types';\nimport { HandleStyled, StyledValue } from './Handle.styles';\n\n// TODO: PLASMA-1707\ndeclare module 'react-draggable' {\n export interface DraggableProps {\n children: React.ReactNode;\n }\n}\n\nconst KeyboardSupport = {\n PageUp: 33,\n PageDown: 34,\n End: 35,\n Home: 36,\n ArrowLeft: 37,\n ArrowUp: 38,\n ArrowRight: 39,\n ArrowDown: 40,\n};\n\nexport const Handle = forwardRef<HTMLDivElement, HandleProps>(\n (\n {\n stepSize,\n onChangeCommitted,\n onChange,\n xPosition = 0,\n min,\n max,\n bounds = [],\n zIndex,\n disabled,\n side,\n showCurrentValue = false,\n startOffset = 0,\n endOffset = 0,\n ...rest\n },\n ref,\n ) => {\n const lastOnChangeValue = useRef<number>();\n const currentSliderValue = lastOnChangeValue?.current ?? rest.value;\n\n const [offsetLeft, offsetRight] = getOffsets(ref, side);\n\n const [leftValueBound, rightValueBound] = bounds;\n const leftPositionBound = leftValueBound ? (leftValueBound - min) * stepSize : null;\n const rightPositionBound = rightValueBound ? (rightValueBound - min) * stepSize : null;\n\n const position = typeof xPosition === 'number' ? { x: xPosition, y: 0 } : undefined;\n const tabIndex = disabled ? -1 : 0;\n\n const [positionX, setPositionX] = useState(position?.x ?? 0);\n\n const computedBounds = {\n left: (leftPositionBound ?? 0) + offsetLeft,\n right: (rightPositionBound ?? stepSize * (max - min)) - offsetRight,\n };\n\n const showCurrentValueCondition =\n showCurrentValue && positionX >= startOffset && positionX <= max * stepSize - endOffset;\n\n const onDrag = useCallback<DraggableEventHandler>(\n (_, data) => {\n const newValue = getSliderThumbValue(data.x, stepSize, min, max);\n if (lastOnChangeValue.current !== newValue) {\n onChange?.(newValue, data);\n setPositionX(data.x);\n lastOnChangeValue.current = newValue;\n }\n },\n [onChange, setPositionX, stepSize, min, max],\n );\n\n const onStop = useCallback<DraggableEventHandler>(\n (_, data) => {\n const newValue = getSliderThumbValue(data.x, stepSize, min, max);\n setPositionX(data.x);\n onChangeCommitted && onChangeCommitted(newValue, data);\n },\n [onChangeCommitted, setPositionX, stepSize, min, max],\n );\n\n const onKeyPress = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n event.persist();\n\n const { keyCode, target } = event;\n\n if (!Object.values(KeyboardSupport).includes(keyCode)) {\n return;\n }\n\n const { ArrowUp, ArrowRight, ArrowDown, ArrowLeft, Home, End, PageDown, PageUp } = KeyboardSupport;\n\n const computedMultipleSteps = stepSize * ((rest.multipleStepSize / 100) * max);\n\n const data: DraggableData = {\n x: 0,\n deltaX: stepSize,\n lastX: xPosition,\n y: 0,\n deltaY: 0,\n lastY: 0,\n node: target as HTMLDivElement,\n };\n\n switch (keyCode) {\n case ArrowUp:\n case ArrowRight:\n data.x = xPosition + stepSize;\n break;\n case ArrowDown:\n case ArrowLeft:\n data.x = xPosition - stepSize;\n data.deltaX = -stepSize;\n break;\n case PageUp:\n data.x = xPosition + computedMultipleSteps;\n data.deltaX = computedMultipleSteps;\n break;\n case PageDown:\n data.x = xPosition - computedMultipleSteps;\n data.deltaX = -computedMultipleSteps;\n break;\n case End:\n data.x = max * stepSize;\n break;\n case Home:\n data.x = 0;\n break;\n default:\n data.x = 0;\n }\n\n const { left, right } = computedBounds;\n\n /*\n * INFO: Находим значение в диапазоне между указанными левой и правой границами.\n * Необходимо для правильного расчета положения SliderThumb.\n * см. функция clamp\n */\n const boundedValue = Math.max(Math.min(right, data.x), left);\n\n const computedValue = getSliderThumbValue(boundedValue, stepSize, min, max);\n lastOnChangeValue.current = computedValue;\n\n onChangeCommitted && onChangeCommitted(computedValue, data);\n },\n [onChangeCommitted, bounds, stepSize, rest.multipleStepSize, min, max, xPosition],\n );\n\n return (\n <Draggable\n axis=\"x\"\n bounds={computedBounds}\n grid={[stepSize, 1]}\n onStop={onStop}\n onDrag={onDrag}\n position={position}\n disabled={disabled}\n >\n <HandleStyled ref={ref} style={{ zIndex }} onKeyDown={onKeyPress}>\n <Thumb\n tabIndex={tabIndex}\n min={min}\n max={max}\n value={currentSliderValue}\n disabled={disabled}\n {...rest}\n />\n {showCurrentValueCondition && <StyledValue>{currentSliderValue}</StyledValue>}\n </HandleStyled>\n </Draggable>\n );\n },\n);\n"],"names":["KeyboardSupport","PageUp","PageDown","End","Home","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Handle","forwardRef","_ref","ref","_lastOnChangeValue$cu","_position$x","stepSize","onChangeCommitted","onChange","_ref$xPosition","xPosition","min","max","_ref$bounds","bounds","zIndex","disabled","side","_ref$showCurrentValue","showCurrentValue","_ref$startOffset","startOffset","_ref$endOffset","endOffset","rest","_objectWithoutProperties","_excluded","lastOnChangeValue","useRef","currentSliderValue","current","value","_getOffsets","getOffsets","_getOffsets2","_slicedToArray","offsetLeft","offsetRight","_bounds","leftValueBound","rightValueBound","leftPositionBound","rightPositionBound","position","x","y","undefined","tabIndex","_useState","useState","_useState2","positionX","setPositionX","computedBounds","left","right","showCurrentValueCondition","onDrag","useCallback","_","data","newValue","getSliderThumbValue","onStop","onKeyPress","event","persist","keyCode","target","Object","values","includes","computedMultipleSteps","multipleStepSize","deltaX","lastX","deltaY","lastY","node","boundedValue","Math","computedValue","React","createElement","Draggable","axis","grid","HandleStyled","style","onKeyDown","Thumb","_extends","StyledValue"],"mappings":";;;;;;;;;AAUA;;AAOA,IAAMA,eAAe,GAAG;AACpBC,EAAAA,MAAM,EAAE,EAAE;AACVC,EAAAA,QAAQ,EAAE,EAAE;AACZC,EAAAA,GAAG,EAAE,EAAE;AACPC,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,SAAS,EAAE,EAAE;AACbC,EAAAA,OAAO,EAAE,EAAE;AACXC,EAAAA,UAAU,EAAE,EAAE;AACdC,EAAAA,SAAS,EAAE,EAAA;AACf,CAAC,CAAA;AAEM,IAAMC,MAAM,gBAAGC,UAAU,CAC5B,UAAAC,IAAA,EAiBIC,GAAG,EACF;EAAA,IAAAC,qBAAA,EAAAC,WAAA,CAAA;AAAA,EAAA,IAhBGC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,iBAAiB,GAAAL,IAAA,CAAjBK,iBAAiB;IACjBC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;IAAAC,cAAA,GAAAP,IAAA,CACRQ,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,cAAA;IACbE,GAAG,GAAAT,IAAA,CAAHS,GAAG;IACHC,G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;;;;"}
@@ -1,16 +0,0 @@
1
- import './Handle.styles_9m0x33.css';
2
- import { styled } from '@linaria/react';
3
-
4
- var HandleStyled = /*#__PURE__*/styled('div')({
5
- name: "HandleStyled",
6
- "class": "hhwq33d",
7
- propsAsIs: false
8
- });
9
- var StyledValue = /*#__PURE__*/styled('span')({
10
- name: "StyledValue",
11
- "class": "shurctf",
12
- propsAsIs: false
13
- });
14
-
15
- export { HandleStyled, StyledValue };
16
- //# sourceMappingURL=Handle.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handle.styles.js","sources":["../../../../../src/components/Slider/ui/Handle/Handle.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from '../../Slider.tokens';\n\nexport const HandleStyled = styled.div`\n cursor: pointer;\n position: absolute;\n z-index: 1;\n top: 0;\n left: 0;\n`;\n\nexport const StyledValue = styled.span`\n position: absolute;\n z-index: 1;\n top: var(${tokens.currentValueTopOffset});\n text-align: center;\n width: 100%;\n margin-left: -0.125rem;\n display: flex;\n justify-content: center;\n font-family: var(${tokens.currentValueFontFamily});\n font-size: var(${tokens.currentValueFontSize});\n font-style: var(${tokens.currentValueFontStyle});\n font-weight: var(${tokens.currentValueFontWeight});\n letter-spacing: var(${tokens.currentValueLetterSpacing});\n line-height: var(${tokens.currentValueLineHeight});\n`;\n"],"names":["HandleStyled","styled","name","class","propsAsIs","StyledValue"],"mappings":";;AAIO,IAAMA,YAAY,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAMjC,EAAA;AAEM,IAAMC,WAAW,gBAAGJ,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAehC;;;;"}
@@ -1,2 +0,0 @@
1
- .hhwq33d{cursor:pointer;position:absolute;z-index:1;top:0;left:0;}
2
- .shurctf{position:absolute;z-index:1;top:var(--plasma-slider-current-value-top-offset);text-align:center;width:100%;margin-left:-0.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-family:var(--plasma-slider-current-value-font-family);font-size:var(--plasma-slider-current-value-font-size);font-style:var(--plasma-slider-current-value-font-style);font-weight:var(--plasma-slider-current-value-font-weight);-webkit-letter-spacing:var(--plasma-slider-current-value-letter-spacing);-moz-letter-spacing:var(--plasma-slider-current-value-letter-spacing);-ms-letter-spacing:var(--plasma-slider-current-value-letter-spacing);letter-spacing:var(--plasma-slider-current-value-letter-spacing);line-height:var(--plasma-slider-current-value-line-height);}
@@ -1 +0,0 @@
1
- .Thumb_styles_4w4gzn_tqbdf8b__14129a5b{width:var(--plasma-slider-thumb-size);height:var(--plasma-slider-thumb-size);position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(--plasma-slider-thumb-background-color);margin:0.125rem;-webkit-transition:border-color 0.1s ease-in-out;transition:border-color 0.1s ease-in-out;position:relative;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:after{background:var(--plasma-slider-thumb-border-color);margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:not([disabled]):hover:after,.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:not([disabled]):active:after{background:var(--plasma-slider-thumb-focus-border-color);}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b[disabled]{cursor:not-allowed;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:focus{outline:none;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b::before{content:'';position:absolute;top:0.125rem;left:0.125rem;right:0.125rem;bottom:0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b.Thumb_styles_4w4gzn_focusVisible__14129a5b:focus::before,.Thumb_styles_4w4gzn_tqbdf8b__14129a5b[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem var(--plasma-slider-thumb-focus-border-color);}
@@ -1,27 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React from 'react';
3
- import { ThumbBase } from './Thumb.styles.js';
4
-
5
- var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled"];
6
- var Thumb = function Thumb(_ref) {
7
- var min = _ref.min,
8
- max = _ref.max,
9
- value = _ref.value,
10
- _ref$ariaValueMin = _ref.ariaValueMin,
11
- ariaValueMin = _ref$ariaValueMin === void 0 ? min : _ref$ariaValueMin,
12
- ariaLabel = _ref.ariaLabel,
13
- disabled = _ref.disabled,
14
- rest = _objectWithoutProperties(_ref, _excluded);
15
- return /*#__PURE__*/React.createElement(ThumbBase, _extends({
16
- role: "slider",
17
- "aria-label": ariaLabel,
18
- "aria-valuemin": ariaValueMin,
19
- "aria-valuemax": max,
20
- "aria-valuenow": value,
21
- disabled: disabled,
22
- "aria-orientation": "horizontal"
23
- }, rest));
24
- };
25
-
26
- export { Thumb };
27
- //# sourceMappingURL=Thumb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Thumb.js","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { ThumbProps } from './Thumb.types';\nimport { ThumbBase } from './Thumb.styles';\n\nexport const Thumb = ({ min, max, value, ariaValueMin = min, ariaLabel, disabled, ...rest }: ThumbProps) => {\n return (\n <ThumbBase\n role=\"slider\"\n aria-label={ariaLabel}\n aria-valuemin={ariaValueMin}\n aria-valuemax={max}\n aria-valuenow={value}\n disabled={disabled}\n aria-orientation=\"horizontal\"\n {...rest}\n />\n );\n};\n"],"names":["Thumb","_ref","min","max","value","_ref$ariaValueMin","ariaValueMin","ariaLabel","disabled","rest","_objectWithoutProperties","_excluded","React","createElement","ThumbBase","_extends","role"],"mappings":";;;;;IAKaA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAA0F;AAAA,EAAA,IAApFC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAAC,iBAAA,GAAAJ,IAAA,CAAEK,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAGH,KAAAA,CAAAA,GAAAA,GAAG,GAAAG,iBAAA;IAAEE,SAAS,GAAAN,IAAA,CAATM,SAAS;IAAEC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;AAAKC,IAAAA,IAAI,GAAAC,wBAAA,CAAAT,IAAA,EAAAU,SAAA,CAAA,CAAA;AACrF,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,SAAS,EAAAC,QAAA,CAAA;AACNC,IAAAA,IAAI,EAAC,QAAQ;AACb,IAAA,YAAA,EAAYT,SAAU;AACtB,IAAA,eAAA,EAAeD,YAAa;AAC5B,IAAA,eAAA,EAAeH,GAAI;AACnB,IAAA,eAAA,EAAeC,KAAM;AACrBI,IAAAA,QAAQ,EAAEA,QAAS;IACnB,kBAAiB,EAAA,YAAA;GACbC,EAAAA,IAAI,CACX,CAAC,CAAA;AAEV;;;;"}
@@ -1,11 +0,0 @@
1
- import './Thumb.styles_4w4gzn.css';
2
- import { styled } from '@linaria/react';
3
-
4
- var ThumbBase = /*#__PURE__*/styled('div')({
5
- name: "ThumbBase",
6
- "class": "tqbdf8b",
7
- propsAsIs: false
8
- });
9
-
10
- export { ThumbBase };
11
- //# sourceMappingURL=Thumb.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Thumb.styles.js","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { addFocus } from '../../../../mixins';\nimport { tokens } from '../../Slider.tokens';\n\nexport const ThumbBase = styled.div<{ disabled?: boolean }>`\n width: var(${tokens.thumbSize});\n height: var(${tokens.thumbSize});\n position: relative;\n left: -0.125rem;\n top: -0.125rem;\n border-radius: 50%;\n box-sizing: border-box;\n background: var(${tokens.thumbBackgroundColor});\n margin: 0.125rem;\n transition: border-color 0.1s ease-in-out;\n\n &:after {\n background: var(${tokens.thumbBorderColor});\n margin: -0.125rem;\n content: '';\n position: absolute;\n inset: 0;\n z-index: -1;\n border-radius: inherit;\n }\n\n &:not([disabled]):hover:after,\n &:not([disabled]):active:after {\n background: var(${tokens.thumbFocusBorderColor});\n }\n\n &[disabled] {\n cursor: not-allowed;\n }\n\n &:focus {\n outline: none;\n }\n\n ${addFocus({\n outlineOffset: '0.125rem',\n outlineSize: '0.125rem',\n outlineRadius: '50%',\n outlineColor: `var(${tokens.thumbFocusBorderColor})`,\n })}\n`;\n"],"names":["ThumbBase","styled","name","class","propsAsIs"],"mappings":";;AAKO,IAAMA,SAAS,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,WAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAyC9B;;;;"}
@@ -1 +0,0 @@
1
- .tqbdf8b{width:var(--plasma-slider-thumb-size);height:var(--plasma-slider-thumb-size);position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(--plasma-slider-thumb-background-color);margin:0.125rem;-webkit-transition:border-color 0.1s ease-in-out;transition:border-color 0.1s ease-in-out;position:relative;}.tqbdf8b:after{background:var(--plasma-slider-thumb-border-color);margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}.tqbdf8b:not([disabled]):hover:after,.tqbdf8b:not([disabled]):active:after{background:var(--plasma-slider-thumb-focus-border-color);}.tqbdf8b[disabled]{cursor:not-allowed;}.tqbdf8b:focus{outline:none;}.tqbdf8b::before{content:'';position:absolute;top:0.125rem;left:0.125rem;right:0.125rem;bottom:0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.tqbdf8b.focus-visible:focus::before,.tqbdf8b[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem var(--plasma-slider-thumb-focus-border-color);}
@@ -1,50 +0,0 @@
1
- /**
2
- * Расчитать значение слайдера с учетом его координат и шага изменений.
3
- * @param {number} handleCenterXRelative
4
- * @param {number} stepSize
5
- * @param {number} min
6
- * @param {number} max
7
- * @return {number}
8
- */
9
- function getSliderThumbValue(handleCenterXRelative, stepSize, min, max) {
10
- var newValue = Math.round(handleCenterXRelative / stepSize) + min;
11
- return Math.min(Math.max(newValue, min), max);
12
- }
13
-
14
- /**
15
- * Расчитывает значение отступа слайдера на основе его положения (справа, слева) на отрезке слайдера.
16
- * Значение используется для правильного расчета ограничения движения слайдера.
17
- * @param ref
18
- * @param {'left' | 'right'} side
19
- * @return Array<number>
20
- */
21
- function getOffsets(ref, side) {
22
- if (!ref || !('current' in ref) || !ref.current || !side) {
23
- return [0, 0];
24
- }
25
- var size = ref.current.clientWidth;
26
- if (side === 'left') {
27
- return [0, size];
28
- }
29
- if (side === 'right') {
30
- return [size, 0];
31
- }
32
- return [0, 0];
33
- }
34
- var sizeData = {
35
- s: {
36
- indent: 0.5,
37
- fontSizeMultiplier: 16
38
- },
39
- m: {
40
- indent: 0.75,
41
- fontSizeMultiplier: 16
42
- },
43
- l: {
44
- indent: 0.75,
45
- fontSizeMultiplier: 16
46
- }
47
- };
48
-
49
- export { getOffsets, getSliderThumbValue, sizeData };
50
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Slider/utils/index.ts"],"sourcesContent":["import { MutableRefObject } from 'react';\n\n/**\n * Расчитать значение слайдера с учетом его координат и шага изменений.\n * @param {number} handleCenterXRelative\n * @param {number} stepSize\n * @param {number} min\n * @param {number} max\n * @return {number}\n */\nexport function getSliderThumbValue(handleCenterXRelative: number, stepSize: number, min: number, max: number) {\n const newValue = Math.round(handleCenterXRelative / stepSize) + min;\n\n return Math.min(Math.max(newValue, min), max);\n}\n\n/**\n * Расчитывает значение отступа слайдера на основе его положения (справа, слева) на отрезке слайдера.\n * Значение используется для правильного расчета ограничения движения слайдера.\n * @param ref\n * @param {'left' | 'right'} side\n * @return Array<number>\n */\nexport function getOffsets(\n ref: ((instance: HTMLDivElement | null) => void) | MutableRefObject<HTMLDivElement | null> | null,\n side?: 'left' | 'right',\n): number[] {\n if (!ref || !('current' in ref) || !ref.current || !side) {\n return [0, 0];\n }\n\n const size = ref.current.clientWidth;\n\n if (side === 'left') {\n return [0, size];\n }\n\n if (side === 'right') {\n return [size, 0];\n }\n\n return [0, 0];\n}\n\nexport const sizeData = {\n s: {\n indent: 0.5,\n fontSizeMultiplier: 16,\n },\n m: {\n indent: 0.75,\n fontSizeMultiplier: 16,\n },\n l: {\n indent: 0.75,\n fontSizeMultiplier: 16,\n },\n};\n"],"names":["getSliderThumbValue","handleCenterXRelative","stepSize","min","max","newValue","Math","round","getOffsets","ref","side","current","size","clientWidth","sizeData","s","indent","fontSizeMultiplier","m","l"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,mBAAmBA,CAACC,qBAA6B,EAAEC,QAAgB,EAAEC,GAAW,EAAEC,GAAW,EAAE;EAC3G,IAAMC,QAAQ,GAAGC,IAAI,CAACC,KAAK,CAACN,qBAAqB,GAAGC,QAAQ,CAAC,GAAGC,GAAG,CAAA;AAEnE,EAAA,OAAOG,IAAI,CAACH,GAAG,CAACG,IAAI,CAACF,GAAG,CAACC,QAAQ,EAAEF,GAAG,CAAC,EAAEC,GAAG,CAAC,CAAA;AACjD,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,UAAUA,CACtBC,GAAiG,EACjGC,IAAuB,EACf;AACR,EAAA,IAAI,CAACD,GAAG,IAAI,EAAE,SAAS,IAAIA,GAAG,CAAC,IAAI,CAACA,GAAG,CAACE,OAAO,IAAI,CAACD,IAAI,EAAE;AACtD,IAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,GAAA;AAEA,EAAA,IAAME,IAAI,GAAGH,GAAG,CAACE,OAAO,CAACE,WAAW,CAAA;EAEpC,IAAIH,IAAI,KAAK,MAAM,EAAE;AACjB,IAAA,OAAO,CAAC,CAAC,EAAEE,IAAI,CAAC,CAAA;AACpB,GAAA;EAEA,IAAIF,IAAI,KAAK,OAAO,EAAE;AAClB,IAAA,OAAO,CAACE,IAAI,EAAE,CAAC,CAAC,CAAA;AACpB,GAAA;AAEA,EAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,CAAA;AAEO,IAAME,QAAQ,GAAG;AACpBC,EAAAA,CAAC,EAAE;AACCC,IAAAA,MAAM,EAAE,GAAG;AACXC,IAAAA,kBAAkB,EAAE,EAAA;GACvB;AACDC,EAAAA,CAAC,EAAE;AACCF,IAAAA,MAAM,EAAE,IAAI;AACZC,IAAAA,kBAAkB,EAAE,EAAA;GACvB;AACDE,EAAAA,CAAC,EAAE;AACCH,IAAAA,MAAM,EAAE,IAAI;AACZC,IAAAA,kBAAkB,EAAE,EAAA;AACxB,GAAA;AACJ;;;;"}
@@ -1,5 +0,0 @@
1
- import './base_x642ct.css';
2
- var base = "bbio09e";
3
-
4
- export { base };
5
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Slider/variations/_disabled/base.tsx"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,5 +0,0 @@
1
- import './base_x642ct.css';
2
- var base = "b7iqet7";
3
-
4
- export { base };
5
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Slider/variations/_size/base.tsx"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,5 +0,0 @@
1
- import './base_x642ct.css';
2
- var base = "b1c93yiw";
3
-
4
- export { base };
5
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Slider/variations/_view/base.tsx"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,11 +0,0 @@
1
- import { useLayoutEffect, useEffect } from 'react';
2
- import { canUseDOM } from '../utils/canUseDOM.js';
3
- import '../utils/react.js';
4
-
5
- /**
6
- * Runs effect safely on server.
7
- */
8
- var useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
9
-
10
- export { useIsomorphicLayoutEffect };
11
- //# sourceMappingURL=useIsomorphicLayoutEffect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIsomorphicLayoutEffect.js","sources":["../../src/hooks/useIsomorphicLayoutEffect.ts"],"sourcesContent":["import { useLayoutEffect, useEffect } from 'react';\n\nimport { canUseDOM } from '../utils';\n\n/**\n * Runs effect safely on server.\n */\nexport const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\n"],"names":["useIsomorphicLayoutEffect","canUseDOM","useLayoutEffect","useEffect"],"mappings":";;;;AAIA;AACA;AACA;IACaA,yBAAyB,GAAGC,SAAS,GAAGC,eAAe,GAAGC;;;;"}
@@ -1,8 +0,0 @@
1
- /**
2
- * This constant tells you whether can DOM be used.
3
- * https://github.com/facebook/react/blob/master/packages/shared/ExecutionEnvironment.js
4
- */
5
- var canUseDOM = /*#__PURE__*/Boolean(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
6
-
7
- export { canUseDOM };
8
- //# sourceMappingURL=canUseDOM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canUseDOM.js","sources":["../../src/utils/canUseDOM.ts"],"sourcesContent":["/**\n * This constant tells you whether can DOM be used.\n * https://github.com/facebook/react/blob/master/packages/shared/ExecutionEnvironment.js\n */\nexport const canUseDOM = Boolean(\n typeof window !== 'undefined' &&\n typeof window.document !== 'undefined' &&\n typeof window.document.createElement !== 'undefined',\n);\n"],"names":["canUseDOM","Boolean","window","document","createElement"],"mappings":"AAAA;AACA;AACA;AACA;AACO,IAAMA,SAAS,gBAAGC,OAAO,CAC5B,OAAOC,MAAM,KAAK,WAAW,IACzB,OAAOA,MAAM,CAACC,QAAQ,KAAK,WAAW,IACtC,OAAOD,MAAM,CAACC,QAAQ,CAACC,aAAa,KAAK,WACjD;;;;"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _mixins = /*#__PURE__*/require("../../../mixins");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([".checkbox-trigger{", "}input[data-focus-visible-added] + label .checkbox-trigger{border-color:transparent;", "}input[data-focus-visible-added]:checked + label .checkbox-trigger,input[type='checkbox'][data-focus-visible-added]:indeterminate + label .checkbox-trigger{", "}"], /*#__PURE__*/(0, _mixins.addFocus)({
10
- outlineOffset: '0',
11
- outlineSize: '0.125rem',
12
- outlineRadius: 'var(--plasma-checkbox-trigger-border-radius)',
13
- outlineColor: 'transparent'
14
- }), /*#__PURE__*/(0, _mixins.addFocus)({
15
- outlineOffset: '-0.188rem',
16
- outlineSize: '0.125rem',
17
- outlineRadius: 'var(--plasma-checkbox-trigger-border-radius)',
18
- outlineColor: 'var(--plasma-checkbox-focus-color)',
19
- customFocusRules: "\n &::before {\n box-shadow: 0 0 0 0.125rem var(--plasma-checkbox-focus-color);\n }\n "
20
- }), /*#__PURE__*/(0, _mixins.addFocus)({
21
- outlineOffset: '-0.125rem',
22
- outlineSize: '0.063rem',
23
- outlineRadius: 'calc(var(--plasma-checkbox-trigger-border-radius) + 0.125rem)',
24
- outlineColor: 'var(--plasma-checkbox-focus-color)',
25
- customFocusRules: "\n &::before {\n box-shadow: 0 0 0 0.063rem var(--plasma-checkbox-focus-color);\n }\n "
26
- }));
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input[type='checkbox']:indeterminate + label .checkbox-trigger{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}input:checked + label .checkbox-trigger{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}"]);
@@ -1 +0,0 @@
1
- ["--plasma-checkbox-fill-color", "--plasma-checkbox-icon-color"]
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input:disabled + label{opacity:var(--plasma-radiobox-disabled-opacity);}input:disabled + label{cursor:not-allowed;}"]);
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _mixins = /*#__PURE__*/require("../../../mixins");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([".radiobox-trigger{", "}input[data-focus-visible-added] + label .radiobox-trigger{border-color:transparent;", "}input[data-focus-visible-added]:checked + label .radiobox-trigger{", "}"], /*#__PURE__*/(0, _mixins.addFocus)({
10
- outlineOffset: '0',
11
- outlineSize: '0.125rem',
12
- outlineRadius: 'var(--plasma-radiobox-trigger-border-radius)',
13
- outlineColor: 'transparent'
14
- }), /*#__PURE__*/(0, _mixins.addFocus)({
15
- outlineOffset: '-0.188rem',
16
- outlineSize: '0.125rem',
17
- outlineRadius: 'var(--plasma-radiobox-trigger-border-radius)',
18
- outlineColor: 'var(--plasma-radiobox-focus-color)',
19
- customFocusRules: "\n &::before {\n box-shadow: 0 0 0 0.125rem var(--plasma-radiobox-focus-color);\n }\n "
20
- }), /*#__PURE__*/(0, _mixins.addFocus)({
21
- outlineOffset: '-0.125rem',
22
- outlineSize: '0.063rem',
23
- outlineRadius: 'calc(var(--plasma-radiobox-trigger-border-radius) + 0.125rem)',
24
- outlineColor: 'var(--plasma-radiobox-focus-color)',
25
- customFocusRules: "\n &::before {\n box-shadow: 0 0 0 0.063rem var(--plasma-radiobox-focus-color);\n }\n "
26
- }));
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input:checked + label .radiobox-trigger{border:none;background:var(--plasma-radiobox-fill-color);border-color:var(--plasma-radiobox-fill-color);}"]);
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.sliderRoot = exports.sliderConfig = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _base = /*#__PURE__*/require("./variations/_view/base");
10
- var _base2 = /*#__PURE__*/require("./variations/_size/base");
11
- var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
12
- var _components = /*#__PURE__*/require("./components");
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
- 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); }
16
- var isSingleValueProps = function isSingleValueProps(props) {
17
- return typeof props.value === 'number';
18
- };
19
- var sliderRoot = exports.sliderRoot = function sliderRoot(Root) {
20
- return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
21
- if (isSingleValueProps(props)) {
22
- return /*#__PURE__*/_react["default"].createElement(Root, _extends({
23
- ref: ref
24
- }, props), /*#__PURE__*/_react["default"].createElement(_components.SingleSlider, props));
25
- }
26
- return /*#__PURE__*/_react["default"].createElement(Root, _extends({
27
- ref: ref
28
- }, props), /*#__PURE__*/_react["default"].createElement(_components.DoubleSlider, props));
29
- });
30
- };
31
- var sliderConfig = exports.sliderConfig = {
32
- name: 'Slider',
33
- tag: 'div',
34
- layout: sliderRoot,
35
- base: '',
36
- variations: {
37
- view: {
38
- css: _base.base
39
- },
40
- size: {
41
- css: _base2.base
42
- },
43
- disabled: {
44
- css: _base3.base,
45
- attrs: true
46
- }
47
- },
48
- defaults: {
49
- view: 'default',
50
- size: 'm'
51
- }
52
- };
@@ -1,77 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tokens = exports.classes = void 0;
7
- var classes = exports.classes = {
8
- labelPlacementOuter: 'slider-label-placement-outer',
9
- labelPlacementInner: 'slider-label-placement-inner',
10
- rangeValuesPlacementOuter: 'slider-range-values-placement-outer',
11
- rangeValuesPlacementInner: 'slider-range-values-placement-inner',
12
- maxRangeValue: 'slider-max-range-value',
13
- hideMinValue: 'slider-hide-min-value',
14
- hideMaxValue: 'slider-hide-max-value',
15
- textFieldActive: 'slider-text-field-active',
16
- firstTextField: 'slider-first-text-field',
17
- secondTextField: 'slider-second-text-field',
18
- activeRangeValue: 'slider-active-range-value'
19
- };
20
- var tokens = exports.tokens = {
21
- height: '--plasma-slider-height',
22
- labelWrapperGap: '--plasma-slider-label-wrapper-gap',
23
- labelWrapperMarginBottom: '--plasma-slider-label-wrapper-margin-bottom',
24
- labelWrapperMarginRight: '--plasma-slider-label-wrapper-margin-right',
25
- labelColor: '--plasma-slider-label-color',
26
- labelFontFamily: '--plasma-slider-label-font-family',
27
- labelFontSize: '--plasma-slider-label-font-size',
28
- labelFontStyle: '--plasma-slider-label-font-style',
29
- labelFontWeight: '--plasma-slider-label-font-weight',
30
- labelLetterSpacing: '--plasma-slider-label-letter-spacing',
31
- labelLineHeight: '--plasma-slider-label-line-height',
32
- rangeMinValueMargin: '--plasma-slider-range-min-value-margin',
33
- rangeMaxValueMargin: '--plasma-slider-range-max-value-margin',
34
- rangeValueBottomOffset: '--plasma-slider-range-value-bottom-offset',
35
- rangeValueColor: '--plasma-slider-range-value-color',
36
- rangeValueFontFamily: '--plasma-slider-range-value-font-family',
37
- rangeValueFontSize: '--plasma-slider-range-value-font-size',
38
- rangeValueFontStyle: '--plasma-slider-range-value-font-style',
39
- rangeValueFontWeight: '--plasma-slider-range-value-font-weight',
40
- rangeValueLetterSpacing: '--plasma-slider-range-value-letter-spacing',
41
- rangeValueLineHeight: '--plasma-slider-range-value-line-height',
42
- doubleWrapperGap: '--plasma-slider-double-wrapper-gap',
43
- thumbSize: '--plasma-slider-thumb-size',
44
- thumbBorder: '--plasma-slider-thumb-border',
45
- thumbBorderColor: '--plasma-slider-thumb-border-color',
46
- thumbBackgroundColor: '--plasma-slider-thumb-background-color',
47
- thumbFocusBorderColor: '--plasma-slider-thumb-focus-border-color',
48
- currentValueTopOffset: '--plasma-slider-current-value-top-offset',
49
- currentValueFontFamily: '--plasma-slider-current-value-font-family',
50
- currentValueFontSize: '--plasma-slider-current-value-font-size',
51
- currentValueFontStyle: '--plasma-slider-current-value-font-style',
52
- currentValueFontWeight: '--plasma-slider-current-value-font-weight',
53
- currentValueLetterSpacing: '--plasma-slider-current-value-letter-spacing',
54
- currentValueLineHeight: '--plasma-slider-current-value-line-height',
55
- railBackgroundColor: '--plasma-slider-rail-background-color',
56
- railHeight: '--plasma-slider-rail-height',
57
- railBorderRadius: '--plasma-slider-rail-border-radius',
58
- railIndent: '--plasma-slider-rail-indent',
59
- fillColor: '--plasma-slider-fill-color',
60
- textFieldWrapperGap: '--plasma-slider-text-field-wrapper-gap',
61
- textFieldFontFamily: '--plasma-slider-text-field-font-family',
62
- textFieldFontSize: '--plasma-slider-text-field-font-size',
63
- textFieldFontStyle: '--plasma-slider-text-field-font-style',
64
- textFieldFontWeight: '--plasma-slider-text-field-font-weight',
65
- textFieldLetterSpacing: '--plasma-slider-text-field-letter-spacing',
66
- textFieldLineHeight: '--plasma-slider-text-field-line-height',
67
- textFieldHeight: '--plasma-slider-text-field-height',
68
- textFieldPadding: '--plasma-slider-text-field-padding',
69
- textFieldBorderRadius: '--plasma-slider-text-field-border-radius',
70
- textFieldColor: '--plasma-slider-text-field-color',
71
- textFieldActiveColor: '--plasma-slider-text-field-active-color',
72
- textFieldBackgroundColor: '--plasma-slider-text-field-background-color',
73
- textFieldCaretColor: '--plasma-slider-text-field-caret-color',
74
- textFieldPlaceholderColor: '--plasma-slider-text-field-placeholder-color',
75
- textFiledFocusColor: '--plasma-slider-text-field-focus-color',
76
- disabledOpacity: '--plasma-slider-disabled-opacity'
77
- };