@salutejs/plasma-new-hope 0.78.0-canary.1194.8928682263.0 → 0.78.0-canary.1195.8924860991.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. package/cjs/components/Button/Button.styles.js +1 -0
  2. package/cjs/components/Button/Button.styles.js.map +1 -1
  3. package/cjs/components/Combobox/hooks/useFocusController.js +0 -1
  4. package/cjs/components/Combobox/hooks/useFocusController.js.map +1 -1
  5. package/cjs/components/Drawer/Drawer.js +1 -0
  6. package/cjs/components/Drawer/Drawer.js.map +1 -1
  7. package/cjs/components/IconButton/IconButton.css +24 -0
  8. package/cjs/components/IconButton/IconButton.js +50 -0
  9. package/cjs/components/IconButton/IconButton.js.map +1 -0
  10. package/cjs/components/IconButton/IconButton.styles.js +16 -0
  11. package/cjs/components/IconButton/IconButton.styles.js.map +1 -0
  12. package/cjs/components/IconButton/IconButton.styles_1hknr37.css +1 -0
  13. package/cjs/components/IconButton/IconButton.tokens.js +32 -0
  14. package/cjs/components/IconButton/IconButton.tokens.js.map +1 -0
  15. package/cjs/components/TextField/TextField.js +2 -6
  16. package/cjs/components/TextField/TextField.js.map +1 -1
  17. package/cjs/index.css +2 -25
  18. package/cjs/index.js +5 -14
  19. package/cjs/index.js.map +1 -1
  20. package/cjs/utils/index.js.map +1 -1
  21. package/es/components/Button/Button.styles.js +1 -0
  22. package/es/components/Button/Button.styles.js.map +1 -1
  23. package/es/components/Combobox/hooks/useFocusController.js +0 -1
  24. package/es/components/Combobox/hooks/useFocusController.js.map +1 -1
  25. package/es/components/Drawer/Drawer.js +1 -0
  26. package/es/components/Drawer/Drawer.js.map +1 -1
  27. package/es/components/IconButton/IconButton.css +24 -0
  28. package/es/components/IconButton/IconButton.js +45 -0
  29. package/es/components/IconButton/IconButton.js.map +1 -0
  30. package/es/components/IconButton/IconButton.styles.js +12 -0
  31. package/es/components/IconButton/IconButton.styles.js.map +1 -0
  32. package/es/components/IconButton/IconButton.styles_1hknr37.css +1 -0
  33. package/es/components/IconButton/IconButton.tokens.js +28 -0
  34. package/es/components/IconButton/IconButton.tokens.js.map +1 -0
  35. package/es/components/TextField/TextField.js +2 -6
  36. package/es/components/TextField/TextField.js.map +1 -1
  37. package/es/index.css +2 -25
  38. package/es/index.js +2 -8
  39. package/es/index.js.map +1 -1
  40. package/es/utils/index.js.map +1 -1
  41. package/package.json +2 -4
  42. package/styled-components/cjs/components/Button/Button.styles.js +10 -2
  43. package/styled-components/cjs/components/IconButton/IconButton.js +47 -0
  44. package/styled-components/cjs/components/IconButton/IconButton.styles.js +12 -0
  45. package/styled-components/cjs/components/IconButton/IconButton.tokens.js +31 -0
  46. package/styled-components/cjs/components/IconButton/index.js +25 -0
  47. package/styled-components/cjs/components/TextField/TextField.js +2 -6
  48. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.config.js +46 -0
  49. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.js +11 -0
  50. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +69 -0
  51. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.config.js +46 -0
  52. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.js +11 -0
  53. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +69 -0
  54. package/styled-components/cjs/hooks/index.js +1 -8
  55. package/styled-components/cjs/index.js +11 -11
  56. package/styled-components/cjs/utils/index.js +0 -7
  57. package/styled-components/es/components/Button/Button.styles.js +10 -2
  58. package/styled-components/es/components/IconButton/IconButton.js +41 -0
  59. package/styled-components/es/components/IconButton/IconButton.styles.js +6 -0
  60. package/styled-components/es/components/IconButton/IconButton.tokens.js +25 -0
  61. package/styled-components/es/components/IconButton/index.js +2 -0
  62. package/styled-components/es/components/TextField/TextField.js +2 -6
  63. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.config.js +40 -0
  64. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.js +5 -0
  65. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +69 -0
  66. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.config.js +40 -0
  67. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.js +5 -0
  68. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +69 -0
  69. package/styled-components/es/hooks/index.js +1 -2
  70. package/styled-components/es/index.js +2 -2
  71. package/styled-components/es/utils/index.js +0 -1
  72. package/types/components/Button/Button.styles.d.ts +1 -0
  73. package/types/components/Button/Button.styles.d.ts.map +1 -1
  74. package/types/components/IconButton/IconButton.d.ts +35 -0
  75. package/types/components/IconButton/IconButton.d.ts.map +1 -0
  76. package/types/components/IconButton/IconButton.styles.d.ts +3 -0
  77. package/types/components/IconButton/IconButton.styles.d.ts.map +1 -0
  78. package/types/components/IconButton/IconButton.tokens.d.ts +26 -0
  79. package/types/components/IconButton/IconButton.tokens.d.ts.map +1 -0
  80. package/types/components/IconButton/index.d.ts +3 -0
  81. package/types/components/IconButton/index.d.ts.map +1 -0
  82. package/types/components/TextField/TextField.d.ts.map +1 -1
  83. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts +39 -0
  84. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts.map +1 -0
  85. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +33 -0
  86. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -0
  87. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts +39 -0
  88. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts.map +1 -0
  89. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +33 -0
  90. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -0
  91. package/types/hooks/index.d.ts +0 -1
  92. package/types/hooks/index.d.ts.map +1 -1
  93. package/types/index.d.ts +1 -1
  94. package/types/index.d.ts.map +1 -1
  95. package/types/utils/index.d.ts +0 -1
  96. package/types/utils/index.d.ts.map +1 -1
  97. package/cjs/components/Slider/Slider.css +0 -69
  98. package/cjs/components/Slider/Slider.js +0 -58
  99. package/cjs/components/Slider/Slider.js.map +0 -1
  100. package/cjs/components/Slider/Slider.tokens.js +0 -79
  101. package/cjs/components/Slider/Slider.tokens.js.map +0 -1
  102. package/cjs/components/Slider/components/Double/Double.css +0 -62
  103. package/cjs/components/Slider/components/Double/Double.js +0 -274
  104. package/cjs/components/Slider/components/Double/Double.js.map +0 -1
  105. package/cjs/components/Slider/components/Double/Double.styles.js +0 -61
  106. package/cjs/components/Slider/components/Double/Double.styles.js.map +0 -1
  107. package/cjs/components/Slider/components/Double/Double.styles_1jhda4u.css +0 -7
  108. package/cjs/components/Slider/components/Single/Single.css +0 -16
  109. package/cjs/components/Slider/components/Single/Single.js +0 -160
  110. package/cjs/components/Slider/components/Single/Single.js.map +0 -1
  111. package/cjs/components/Slider/components/Single/Single.styles.js +0 -45
  112. package/cjs/components/Slider/components/Single/Single.styles.js.map +0 -1
  113. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  114. package/cjs/components/Slider/components/SliderBase/SliderBase.css +0 -4
  115. package/cjs/components/Slider/components/SliderBase/SliderBase.js +0 -82
  116. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +0 -1
  117. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +0 -33
  118. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +0 -1
  119. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +0 -4
  120. package/cjs/components/Slider/ui/Handle/Handle.css +0 -4
  121. package/cjs/components/Slider/ui/Handle/Handle.js +0 -174
  122. package/cjs/components/Slider/ui/Handle/Handle.js.map +0 -1
  123. package/cjs/components/Slider/ui/Handle/Handle.styles.js +0 -21
  124. package/cjs/components/Slider/ui/Handle/Handle.styles.js.map +0 -1
  125. package/cjs/components/Slider/ui/Handle/Handle.styles_16a5sl.css +0 -2
  126. package/cjs/components/Slider/ui/Thumb/Thumb.css +0 -1
  127. package/cjs/components/Slider/ui/Thumb/Thumb.js +0 -31
  128. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +0 -1
  129. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +0 -15
  130. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +0 -1
  131. package/cjs/components/Slider/ui/Thumb/Thumb.styles_zwgsh8.css +0 -1
  132. package/cjs/components/Slider/utils/index.js +0 -56
  133. package/cjs/components/Slider/utils/index.js.map +0 -1
  134. package/cjs/components/Slider/variations/_disabled/base.js +0 -9
  135. package/cjs/components/Slider/variations/_disabled/base.js.map +0 -1
  136. package/cjs/components/Slider/variations/_disabled/base_x642ct.css +0 -1
  137. package/cjs/components/Slider/variations/_size/base.js +0 -9
  138. package/cjs/components/Slider/variations/_size/base.js.map +0 -1
  139. package/cjs/components/Slider/variations/_size/base_x642ct.css +0 -1
  140. package/cjs/components/Slider/variations/_view/base.js +0 -9
  141. package/cjs/components/Slider/variations/_view/base.js.map +0 -1
  142. package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
  143. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -15
  144. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +0 -1
  145. package/cjs/utils/canUseDOM.js +0 -12
  146. package/cjs/utils/canUseDOM.js.map +0 -1
  147. package/es/components/Slider/Slider.css +0 -69
  148. package/es/components/Slider/Slider.js +0 -53
  149. package/es/components/Slider/Slider.js.map +0 -1
  150. package/es/components/Slider/Slider.tokens.js +0 -74
  151. package/es/components/Slider/Slider.tokens.js.map +0 -1
  152. package/es/components/Slider/components/Double/Double.css +0 -62
  153. package/es/components/Slider/components/Double/Double.js +0 -270
  154. package/es/components/Slider/components/Double/Double.js.map +0 -1
  155. package/es/components/Slider/components/Double/Double.styles.js +0 -51
  156. package/es/components/Slider/components/Double/Double.styles.js.map +0 -1
  157. package/es/components/Slider/components/Double/Double.styles_1jhda4u.css +0 -7
  158. package/es/components/Slider/components/Single/Single.css +0 -16
  159. package/es/components/Slider/components/Single/Single.js +0 -156
  160. package/es/components/Slider/components/Single/Single.js.map +0 -1
  161. package/es/components/Slider/components/Single/Single.styles.js +0 -36
  162. package/es/components/Slider/components/Single/Single.styles.js.map +0 -1
  163. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  164. package/es/components/Slider/components/SliderBase/SliderBase.css +0 -4
  165. package/es/components/Slider/components/SliderBase/SliderBase.js +0 -78
  166. package/es/components/Slider/components/SliderBase/SliderBase.js.map +0 -1
  167. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +0 -26
  168. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +0 -1
  169. package/es/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +0 -4
  170. package/es/components/Slider/ui/Handle/Handle.css +0 -4
  171. package/es/components/Slider/ui/Handle/Handle.js +0 -170
  172. package/es/components/Slider/ui/Handle/Handle.js.map +0 -1
  173. package/es/components/Slider/ui/Handle/Handle.styles.js +0 -16
  174. package/es/components/Slider/ui/Handle/Handle.styles.js.map +0 -1
  175. package/es/components/Slider/ui/Handle/Handle.styles_16a5sl.css +0 -2
  176. package/es/components/Slider/ui/Thumb/Thumb.css +0 -1
  177. package/es/components/Slider/ui/Thumb/Thumb.js +0 -27
  178. package/es/components/Slider/ui/Thumb/Thumb.js.map +0 -1
  179. package/es/components/Slider/ui/Thumb/Thumb.styles.js +0 -11
  180. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +0 -1
  181. package/es/components/Slider/ui/Thumb/Thumb.styles_zwgsh8.css +0 -1
  182. package/es/components/Slider/utils/index.js +0 -50
  183. package/es/components/Slider/utils/index.js.map +0 -1
  184. package/es/components/Slider/variations/_disabled/base.js +0 -5
  185. package/es/components/Slider/variations/_disabled/base.js.map +0 -1
  186. package/es/components/Slider/variations/_disabled/base_x642ct.css +0 -1
  187. package/es/components/Slider/variations/_size/base.js +0 -5
  188. package/es/components/Slider/variations/_size/base.js.map +0 -1
  189. package/es/components/Slider/variations/_size/base_x642ct.css +0 -1
  190. package/es/components/Slider/variations/_view/base.js +0 -5
  191. package/es/components/Slider/variations/_view/base.js.map +0 -1
  192. package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
  193. package/es/hooks/useIsomorphicLayoutEffect.js +0 -11
  194. package/es/hooks/useIsomorphicLayoutEffect.js.map +0 -1
  195. package/es/utils/canUseDOM.js +0 -8
  196. package/es/utils/canUseDOM.js.map +0 -1
  197. package/styled-components/cjs/components/Slider/Slider.js +0 -57
  198. package/styled-components/cjs/components/Slider/Slider.tokens.js +0 -77
  199. package/styled-components/cjs/components/Slider/Slider.types.js +0 -5
  200. package/styled-components/cjs/components/Slider/components/Double/Double.js +0 -286
  201. package/styled-components/cjs/components/Slider/components/Double/Double.styles.js +0 -36
  202. package/styled-components/cjs/components/Slider/components/Double/Double.types.js +0 -5
  203. package/styled-components/cjs/components/Slider/components/Single/Single.js +0 -172
  204. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +0 -27
  205. package/styled-components/cjs/components/Slider/components/Single/Single.types.js +0 -5
  206. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +0 -83
  207. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +0 -21
  208. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.types.js +0 -5
  209. package/styled-components/cjs/components/Slider/components/index.js +0 -27
  210. package/styled-components/cjs/components/Slider/index.js +0 -32
  211. package/styled-components/cjs/components/Slider/ui/Handle/Handle.js +0 -183
  212. package/styled-components/cjs/components/Slider/ui/Handle/Handle.styles.js +0 -15
  213. package/styled-components/cjs/components/Slider/ui/Handle/Handle.types.js +0 -5
  214. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +0 -32
  215. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +0 -12
  216. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.types.js +0 -5
  217. package/styled-components/cjs/components/Slider/ui/index.js +0 -63
  218. package/styled-components/cjs/components/Slider/utils/index.js +0 -55
  219. package/styled-components/cjs/components/Slider/variations/_disabled/base.js +0 -8
  220. package/styled-components/cjs/components/Slider/variations/_disabled/tokens.json +0 -4
  221. package/styled-components/cjs/components/Slider/variations/_size/base.js +0 -8
  222. package/styled-components/cjs/components/Slider/variations/_size/tokens.json +0 -0
  223. package/styled-components/cjs/components/Slider/variations/_view/base.js +0 -8
  224. package/styled-components/cjs/components/Slider/variations/_view/tokens.json +0 -0
  225. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +0 -29
  226. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.js +0 -11
  227. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +0 -131
  228. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +0 -29
  229. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.js +0 -11
  230. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +0 -131
  231. package/styled-components/cjs/hooks/useIsomorphicLayoutEffect.js +0 -12
  232. package/styled-components/cjs/utils/canUseDOM.js +0 -11
  233. package/styled-components/es/components/Slider/Slider.js +0 -48
  234. package/styled-components/es/components/Slider/Slider.tokens.js +0 -71
  235. package/styled-components/es/components/Slider/Slider.types.js +0 -1
  236. package/styled-components/es/components/Slider/components/Double/Double.js +0 -278
  237. package/styled-components/es/components/Slider/components/Double/Double.styles.js +0 -29
  238. package/styled-components/es/components/Slider/components/Double/Double.types.js +0 -1
  239. package/styled-components/es/components/Slider/components/Single/Single.js +0 -164
  240. package/styled-components/es/components/Slider/components/Single/Single.styles.js +0 -20
  241. package/styled-components/es/components/Slider/components/Single/Single.types.js +0 -1
  242. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +0 -74
  243. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +0 -14
  244. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.types.js +0 -1
  245. package/styled-components/es/components/Slider/components/index.js +0 -3
  246. package/styled-components/es/components/Slider/index.js +0 -3
  247. package/styled-components/es/components/Slider/ui/Handle/Handle.js +0 -174
  248. package/styled-components/es/components/Slider/ui/Handle/Handle.styles.js +0 -8
  249. package/styled-components/es/components/Slider/ui/Handle/Handle.types.js +0 -1
  250. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +0 -25
  251. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +0 -5
  252. package/styled-components/es/components/Slider/ui/Thumb/Thumb.types.js +0 -1
  253. package/styled-components/es/components/Slider/ui/index.js +0 -5
  254. package/styled-components/es/components/Slider/utils/index.js +0 -47
  255. package/styled-components/es/components/Slider/variations/_disabled/base.js +0 -2
  256. package/styled-components/es/components/Slider/variations/_disabled/tokens.json +0 -4
  257. package/styled-components/es/components/Slider/variations/_size/base.js +0 -2
  258. package/styled-components/es/components/Slider/variations/_size/tokens.json +0 -0
  259. package/styled-components/es/components/Slider/variations/_view/base.js +0 -2
  260. package/styled-components/es/components/Slider/variations/_view/tokens.json +0 -0
  261. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +0 -23
  262. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.js +0 -5
  263. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +0 -131
  264. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +0 -23
  265. package/styled-components/es/examples/plasma_web/components/Slider/Slider.js +0 -5
  266. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +0 -131
  267. package/styled-components/es/hooks/useIsomorphicLayoutEffect.js +0 -7
  268. package/styled-components/es/utils/canUseDOM.js +0 -5
  269. package/types/components/Slider/Slider.d.ts +0 -31
  270. package/types/components/Slider/Slider.d.ts.map +0 -1
  271. package/types/components/Slider/Slider.tokens.d.ts +0 -72
  272. package/types/components/Slider/Slider.tokens.d.ts.map +0 -1
  273. package/types/components/Slider/Slider.types.d.ts +0 -3
  274. package/types/components/Slider/Slider.types.d.ts.map +0 -1
  275. package/types/components/Slider/components/Double/Double.d.ts +0 -4
  276. package/types/components/Slider/components/Double/Double.d.ts.map +0 -1
  277. package/types/components/Slider/components/Double/Double.styles.d.ts +0 -43
  278. package/types/components/Slider/components/Double/Double.styles.d.ts.map +0 -1
  279. package/types/components/Slider/components/Double/Double.types.d.ts +0 -60
  280. package/types/components/Slider/components/Double/Double.types.d.ts.map +0 -1
  281. package/types/components/Slider/components/Single/Single.d.ts +0 -4
  282. package/types/components/Slider/components/Single/Single.d.ts.map +0 -1
  283. package/types/components/Slider/components/Single/Single.styles.d.ts +0 -8
  284. package/types/components/Slider/components/Single/Single.styles.d.ts.map +0 -1
  285. package/types/components/Slider/components/Single/Single.types.d.ts +0 -62
  286. package/types/components/Slider/components/Single/Single.types.d.ts.map +0 -1
  287. package/types/components/Slider/components/SliderBase/SliderBase.d.ts +0 -4
  288. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +0 -1
  289. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +0 -6
  290. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +0 -1
  291. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -45
  292. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +0 -1
  293. package/types/components/Slider/components/index.d.ts +0 -6
  294. package/types/components/Slider/components/index.d.ts.map +0 -1
  295. package/types/components/Slider/index.d.ts +0 -6
  296. package/types/components/Slider/index.d.ts.map +0 -1
  297. package/types/components/Slider/ui/Handle/Handle.d.ts +0 -9
  298. package/types/components/Slider/ui/Handle/Handle.d.ts.map +0 -1
  299. package/types/components/Slider/ui/Handle/Handle.styles.d.ts +0 -4
  300. package/types/components/Slider/ui/Handle/Handle.styles.d.ts.map +0 -1
  301. package/types/components/Slider/ui/Handle/Handle.types.d.ts +0 -24
  302. package/types/components/Slider/ui/Handle/Handle.types.d.ts.map +0 -1
  303. package/types/components/Slider/ui/Thumb/Thumb.d.ts +0 -4
  304. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +0 -1
  305. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts +0 -5
  306. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +0 -1
  307. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -12
  308. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +0 -1
  309. package/types/components/Slider/ui/index.d.ts +0 -6
  310. package/types/components/Slider/ui/index.d.ts.map +0 -1
  311. package/types/components/Slider/utils/index.d.ts +0 -33
  312. package/types/components/Slider/utils/index.d.ts.map +0 -1
  313. package/types/components/Slider/variations/_disabled/base.d.ts +0 -2
  314. package/types/components/Slider/variations/_disabled/base.d.ts.map +0 -1
  315. package/types/components/Slider/variations/_size/base.d.ts +0 -2
  316. package/types/components/Slider/variations/_size/base.d.ts.map +0 -1
  317. package/types/components/Slider/variations/_view/base.d.ts +0 -2
  318. package/types/components/Slider/variations/_view/base.d.ts.map +0 -1
  319. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts +0 -22
  320. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +0 -1
  321. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +0 -17
  322. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +0 -1
  323. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts +0 -22
  324. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +0 -1
  325. package/types/examples/plasma_web/components/Slider/Slider.d.ts +0 -17
  326. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +0 -1
  327. package/types/hooks/useIsomorphicLayoutEffect.d.ts +0 -6
  328. package/types/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
  329. package/types/utils/canUseDOM.d.ts +0 -6
  330. package/types/utils/canUseDOM.d.ts.map +0 -1
@@ -1,131 +0,0 @@
1
- import React, { useState } from 'react';
2
- import type { ComponentProps } from 'react';
3
- import styled from 'styled-components';
4
- import { disableProps } from '@salutejs/plasma-sb-utils';
5
- import type { StoryObj, Meta } from '@storybook/react';
6
- import { action } from '@storybook/addon-actions';
7
-
8
- import { WithTheme } from '../../../_helpers';
9
-
10
- import { Slider } from './Slider';
11
-
12
- const sizes = ['l', 'm', 's'];
13
- const views = ['default', 'accent', 'gradient'];
14
- const labelPlacements = ['outer', 'inner'];
15
- const rangeValuesPlacement = ['outer', 'inner'];
16
-
17
- const meta: Meta<typeof Slider> = {
18
- title: 'plasma_web/Slider',
19
- component: Slider,
20
- decorators: [WithTheme],
21
- argTypes: {
22
- view: {
23
- options: views,
24
- control: {
25
- type: 'select',
26
- },
27
- },
28
- size: {
29
- options: sizes,
30
- control: {
31
- type: 'inline-radio',
32
- },
33
- },
34
- ...disableProps([
35
- 'value',
36
- 'onChangeCommitted',
37
- 'ariaLabel',
38
- 'onChange',
39
- 'fontSizeMultiplier',
40
- 'gap',
41
- 'settings',
42
- 'hasHoverAnimation',
43
- ]),
44
- },
45
- };
46
-
47
- export default meta;
48
-
49
- type StoryProps = Omit<ComponentProps<typeof Slider>, 'value' | 'onChangeCommitted'>;
50
- type StorySingleProps = StoryProps;
51
-
52
- type StorySingle = StoryObj<StorySingleProps>;
53
- type StoryDouble = StoryObj<StoryProps>;
54
-
55
- const SliderWrapper = styled.div`
56
- width: 25rem;
57
- `;
58
-
59
- const StoryDefault = (args: StorySingleProps) => {
60
- const [value, setValue] = useState(30);
61
-
62
- const onChangeCommittedHandle = (values) => {
63
- setValue(values);
64
- };
65
-
66
- return (
67
- <SliderWrapper>
68
- <Slider value={value} onChangeCommitted={onChangeCommittedHandle} onChange={action('onChange')} {...args} />
69
- </SliderWrapper>
70
- );
71
- };
72
-
73
- export const Default: StorySingle = {
74
- argTypes: {
75
- labelPlacement: {
76
- options: labelPlacements,
77
- control: {
78
- type: 'inline-radio',
79
- },
80
- },
81
- rangeValuesPlacement: {
82
- options: rangeValuesPlacement,
83
- control: {
84
- type: 'inline-radio',
85
- },
86
- },
87
- },
88
- args: {
89
- view: 'default',
90
- size: 'm',
91
- min: 0,
92
- max: 100,
93
- disabled: false,
94
- ariaLabel: 'Цена товара',
95
- multipleStepSize: 10,
96
- label: 'Цена товара',
97
- labelPlacement: 'outer',
98
- rangeValuesPlacement: 'outer',
99
- showRangeValues: true,
100
- showCurrentValue: false,
101
- },
102
- render: (args) => <StoryDefault {...args} />,
103
- };
104
-
105
- const StoryMultipleValues = (args: StoryProps) => {
106
- const [value, setValue] = useState([10, 80]);
107
-
108
- const onChangeCommittedHandle = (values) => {
109
- setValue(values);
110
- };
111
-
112
- return (
113
- <SliderWrapper>
114
- <Slider value={value} onChangeCommitted={onChangeCommittedHandle} onChange={action('onChange')} {...args} />
115
- </SliderWrapper>
116
- );
117
- };
118
-
119
- export const MultipleValues: StoryDouble = {
120
- args: {
121
- view: 'default',
122
- size: 'm',
123
- min: 0,
124
- max: 100,
125
- disabled: false,
126
- label: 'Цена товара',
127
- ariaLabel: ['Минимальная цена товара', 'Максимальная цена товара'],
128
- multipleStepSize: 10,
129
- },
130
- render: (args) => <StoryMultipleValues {...args} />,
131
- };
@@ -1,7 +0,0 @@
1
- import { useLayoutEffect, useEffect } from 'react';
2
- import { canUseDOM } from '../utils';
3
-
4
- /**
5
- * Runs effect safely on server.
6
- */
7
- export var useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
@@ -1,5 +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
- export var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import type { RootProps } from '../../engines';
3
- import { SliderProps } from './Slider.types';
4
- /**
5
- * Слайдер позволяет определить числовое значение в пределах указанного промежутка.
6
- * Можно указать два значения.
7
- */
8
- export declare const sliderRoot: (Root: RootProps<HTMLDivElement, SliderProps>) => React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
9
- export declare const sliderConfig: {
10
- name: string;
11
- tag: string;
12
- layout: (Root: RootProps<HTMLDivElement, SliderProps>) => React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
13
- base: string;
14
- variations: {
15
- view: {
16
- css: import("@linaria/core").LinariaClassName;
17
- };
18
- size: {
19
- css: import("@linaria/core").LinariaClassName;
20
- };
21
- disabled: {
22
- css: import("@linaria/core").LinariaClassName;
23
- attrs: boolean;
24
- };
25
- };
26
- defaults: {
27
- view: string;
28
- size: string;
29
- };
30
- };
31
- //# sourceMappingURL=Slider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAO/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;;;GAGG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,cAAc,EAAE,WAAW,CAAC,uFAcjE,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAhBQ,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;CAqCtE,CAAC"}
@@ -1,72 +0,0 @@
1
- export declare const classes: {
2
- labelPlacementOuter: string;
3
- labelPlacementInner: string;
4
- rangeValuesPlacementOuter: string;
5
- rangeValuesPlacementInner: string;
6
- maxRangeValue: string;
7
- hideMinValue: string;
8
- hideMaxValue: string;
9
- textFieldActive: string;
10
- firstTextField: string;
11
- secondTextField: string;
12
- activeRangeValue: string;
13
- };
14
- export declare const tokens: {
15
- height: string;
16
- labelWrapperGap: string;
17
- labelWrapperMarginBottom: string;
18
- labelWrapperMarginRight: string;
19
- labelColor: string;
20
- labelFontFamily: string;
21
- labelFontSize: string;
22
- labelFontStyle: string;
23
- labelFontWeight: string;
24
- labelLetterSpacing: string;
25
- labelLineHeight: string;
26
- rangeMinValueMargin: string;
27
- rangeMaxValueMargin: string;
28
- rangeValueBottomOffset: string;
29
- rangeValueColor: string;
30
- rangeValueFontFamily: string;
31
- rangeValueFontSize: string;
32
- rangeValueFontStyle: string;
33
- rangeValueFontWeight: string;
34
- rangeValueLetterSpacing: string;
35
- rangeValueLineHeight: string;
36
- doubleWrapperGap: string;
37
- thumbSize: string;
38
- thumbBorder: string;
39
- thumbBorderColor: string;
40
- thumbBackgroundColor: string;
41
- thumbFocusBorderColor: string;
42
- currentValueTopOffset: string;
43
- currentValueFontFamily: string;
44
- currentValueFontSize: string;
45
- currentValueFontStyle: string;
46
- currentValueFontWeight: string;
47
- currentValueLetterSpacing: string;
48
- currentValueLineHeight: string;
49
- railBackgroundColor: string;
50
- railHeight: string;
51
- railBorderRadius: string;
52
- railIndent: string;
53
- fillColor: string;
54
- textFieldWrapperGap: string;
55
- textFieldFontFamily: string;
56
- textFieldFontSize: string;
57
- textFieldFontStyle: string;
58
- textFieldFontWeight: string;
59
- textFieldLetterSpacing: string;
60
- textFieldLineHeight: string;
61
- textFieldHeight: string;
62
- textFieldPadding: string;
63
- textFieldBorderRadius: string;
64
- textFieldColor: string;
65
- textFieldActiveColor: string;
66
- textFieldBackgroundColor: string;
67
- textFieldCaretColor: string;
68
- textFieldPlaceholderColor: string;
69
- textFiledFocusColor: string;
70
- disabledOpacity: string;
71
- };
72
- //# sourceMappingURL=Slider.tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyElB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { DoubleSliderProps, SingleSliderProps } from './components';
2
- export declare type SliderProps = SingleSliderProps | DoubleSliderProps;
3
- //# sourceMappingURL=Slider.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.types.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEzE,oBAAY,WAAW,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import { DoubleSliderProps } from './Double.types';
3
- export declare const DoubleSlider: FC<DoubleSliderProps>;
4
- //# sourceMappingURL=Double.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Double.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;AAS7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAkBnD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA2R9C,CAAC"}
@@ -1,43 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LabelWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const LabelContentLeft: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Label: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
5
- export declare const InputsWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const StyledInput: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & (({
7
- size?: string | undefined;
8
- view?: string | undefined;
9
- readOnly?: boolean | undefined;
10
- disabled?: boolean | undefined;
11
- } & {
12
- label?: string | undefined;
13
- labelPlacement?: "inner" | "outer" | undefined;
14
- leftHelper?: string | undefined;
15
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
16
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
17
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
18
- } & {
19
- chips?: undefined;
20
- onChangeChips?: undefined;
21
- enumerationType?: "plain" | undefined;
22
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
23
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLDivElement>) | ({
24
- size?: string | undefined;
25
- view?: string | undefined;
26
- readOnly?: boolean | undefined;
27
- disabled?: boolean | undefined;
28
- } & {
29
- label?: string | undefined;
30
- labelPlacement?: "inner" | "outer" | undefined;
31
- leftHelper?: string | undefined;
32
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
33
- contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
34
- onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
35
- } & {
36
- enumerationType: "chip";
37
- onSearch?: undefined;
38
- chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
39
- onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
40
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLDivElement>))>;
41
- export declare const DoubleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
42
- export declare const SliderWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
43
- //# sourceMappingURL=Double.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Double.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY,qKAMxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,KAAK,8KAOjB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAIzB,CAAC;AAGF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0HAiCvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAEzB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC"}
@@ -1,60 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- import type { SliderBaseProps, SliderInternalProps } from '../SliderBase/SliderBase.types';
3
- export interface DoubleSliderProps extends SliderBaseProps, SliderInternalProps, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
- /**
5
- * Текущее значение
6
- */
7
- value: number[];
8
- /**
9
- * Вызывается при отпускании ползунка
10
- */
11
- onChangeCommitted?: (value: number[]) => void;
12
- /**
13
- * Вызывается при перемещении ползунка
14
- */
15
- onChangeDrag?: (value: number[]) => void;
16
- /**
17
- * Расположение значений минимума и максимума интервала.
18
- */
19
- rangeValuesPlacement?: never;
20
- /**
21
- * Отображать ли текущее значение.
22
- */
23
- showCurrentValue?: never;
24
- /**
25
- * Отображать ли значения минимума и максимума интервала.
26
- */
27
- showRangeValues?: never;
28
- /**
29
- * Разница между текущим значением и минимальным, при котором минимальное будет скрыто.
30
- */
31
- hideMinValueDiff?: never;
32
- /**
33
- * Разница между текущим значением и максимальным, при котором максимальное будет скрыто.
34
- */
35
- hideMaxValueDiff?: never;
36
- /**
37
- * Расположение подписи.
38
- */
39
- labelPlacement?: never;
40
- /**
41
- * Ярлык, определяющий назначение ползунка, например «Минимальная цена» [a11y].
42
- */
43
- ariaLabel?: string[];
44
- /**
45
- * Плейсхолдеры, определяющие подпись к полям ввода.
46
- */
47
- inputPlaceholder?: string[];
48
- /**
49
- * Размера увеличенного шага (для клавиш PageUp, PageDown).
50
- * Указывает процентное отношение от максимально возможного значения.
51
- * Указав значение 20 при максимуме в 100, получим 20%.
52
- */
53
- multipleStepSize?: number;
54
- /**
55
- * Вызывается при перемещении ползунка
56
- */
57
- view?: string;
58
- size?: 's' | 'm' | 'l';
59
- }
60
- //# sourceMappingURL=Double.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Double.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE3F,MAAM,WAAW,iBACb,SAAQ,eAAe,EACnB,mBAAmB,EACnB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACpD;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IAGH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CAC1B"}
@@ -1,4 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { SingleSliderProps } from './Single.types';
3
- export declare const SingleSlider: FC<SingleSliderProps>;
4
- //# sourceMappingURL=Single.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Single.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAShC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAUxD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkK9C,CAAC"}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LabelWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const LabelContentLeft: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Label: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
5
- export declare const StyledRangeValue: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
6
- export declare const SliderBaseWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
- export declare const SingleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- //# sourceMappingURL=Single.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Single.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,qKAKxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,KAAK,8KAOjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAkB5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKA8B7B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAiBzB,CAAC"}
@@ -1,62 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- import type { SliderBaseProps, SliderInternalProps } from '../SliderBase/SliderBase.types';
3
- export interface SingleSliderProps extends SliderBaseProps, SliderInternalProps, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
- /**
5
- * Текущее значение
6
- */
7
- value: number;
8
- /**
9
- * Вызывается при отпускании ползунка
10
- */
11
- onChangeCommitted?: (value: number) => void;
12
- /**
13
- * Вызывается при перемещении ползунка
14
- */
15
- onChangeDrag?: (value: number) => void;
16
- /**
17
- * Ярлык, определяющий назначение ползунка, например «Минимальная цена» [a11y].
18
- */
19
- ariaLabel?: string;
20
- /**
21
- * Отображать ли текущее значение.
22
- */
23
- showCurrentValue?: boolean;
24
- /**
25
- * Отображать ли значения минимума и максимума интервала.
26
- */
27
- showRangeValues?: boolean;
28
- /**
29
- * Разница между текущим значением и минимальным, при котором минимальное будет скрыто.
30
- */
31
- hideMinValueDiff?: number;
32
- /**
33
- * Разница между текущим значением и максимальным, при котором максимальное будет скрыто.
34
- */
35
- hideMaxValueDiff?: number;
36
- /**
37
- * Расположение значений минимума и максимума интервала.
38
- * @default `outer`
39
- */
40
- rangeValuesPlacement?: 'inner' | 'outer';
41
- /**
42
- * Расположение подписи.
43
- * @default `outer`
44
- */
45
- labelPlacement?: 'inner' | 'outer';
46
- /**
47
- * Размера увеличенного шага (для клавиш PageUp, PageDown).
48
- * Указывает процентное отношение от максимально возможного значения.
49
- * Указав значение 20 при максимуме в 100, получим 20%.
50
- */
51
- multipleStepSize?: number;
52
- /**
53
- * Плейсхолдеры, определяющие подпись к полям ввода.
54
- */
55
- inputPlaceholder?: never;
56
- /**
57
- * Вызывается при отпускании ползунка
58
- */
59
- view?: string;
60
- size?: 'm' | 'l' | 's';
61
- }
62
- //# sourceMappingURL=Single.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Single.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE3F,MAAM,WAAW,iBACb,SAAQ,eAAe,EACnB,mBAAmB,EACnB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACpD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IAGH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CAC1B"}
@@ -1,4 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import type { SliderViewProps } from './SliderBase.types';
3
- export declare const SliderBase: React.FC<PropsWithChildren<SliderViewProps>>;
4
- //# sourceMappingURL=SliderBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SliderBase.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAKpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CA8EnE,CAAC"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Slider: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const RailWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Rail: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const Fill: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- //# sourceMappingURL=SliderBase.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SliderBase.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,MAAM,qKAKlB,CAAC;AAEF,eAAO,MAAM,QAAQ,qKAEpB,CAAC;AAEF,eAAO,MAAM,IAAI,qKAWhB,CAAC;AAEF,eAAO,MAAM,IAAI,qKAOhB,CAAC"}
@@ -1,45 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { DraggableData } from 'react-draggable';
3
- export declare type SliderSettings = Partial<{
4
- indent: number;
5
- fontSizeMultiplier: number;
6
- backgroundColor: string;
7
- fillColor: string;
8
- }>;
9
- export interface SliderBaseProps {
10
- /**
11
- * Минимальное значение
12
- */
13
- min: number;
14
- /**
15
- * Максимальное значение
16
- */
17
- max: number;
18
- /**
19
- * подпись к слайдеру
20
- */
21
- label?: string;
22
- /**
23
- * Слот под контент слева от подписи (например иконку)
24
- */
25
- labelContentLeft?: ReactNode;
26
- /**
27
- * Компонент неактивен
28
- */
29
- disabled?: boolean;
30
- labelPlacement?: string;
31
- rangeValuesPlacement?: string;
32
- }
33
- export interface SliderInternalProps {
34
- /**
35
- * Настройки внешнего вида slider
36
- */
37
- settings?: SliderSettings;
38
- }
39
- export interface SliderViewProps extends SliderBaseProps, SliderInternalProps {
40
- railFillWidth: number;
41
- setStepSize(stepSize: number): void;
42
- railFillXPosition?: number;
43
- onChange?(value: number, data: DraggableData): void;
44
- }
45
- //# sourceMappingURL=SliderBase.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SliderBase.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,cAAc,GAAG,OAAO,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,mBAAmB;IACzE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;CACvD"}
@@ -1,6 +0,0 @@
1
- export * from './Single/Single';
2
- export * from './Double/Double';
3
- export type { SingleSliderProps } from './Single/Single.types';
4
- export type { DoubleSliderProps } from './Double/Double.types';
5
- export type { SliderInternalProps, SliderSettings } from './SliderBase/SliderBase.types';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,6 +0,0 @@
1
- export { sliderConfig, sliderRoot } from './Slider';
2
- export { tokens as sliderTokens } from './Slider.tokens';
3
- export { ThumbBase } from './ui';
4
- export type { SliderProps } from './Slider.types';
5
- export type { SliderSettings, SingleSliderProps, DoubleSliderProps } from './components';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjC,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { HandleProps } from './Handle.types';
3
- declare module 'react-draggable' {
4
- interface DraggableProps {
5
- children: React.ReactNode;
6
- }
7
- }
8
- export declare const Handle: React.ForwardRefExoticComponent<HandleProps & React.RefAttributes<HTMLDivElement>>;
9
- //# sourceMappingURL=Handle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handle/Handle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAOxF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,OAAO,QAAQ,iBAAiB,CAAC;IAC7B,UAAiB,cAAc;QAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;KAC7B;CACJ;AAaD,eAAO,MAAM,MAAM,oFA4JlB,CAAC"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const HandleStyled: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const StyledValue: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
4
- //# sourceMappingURL=Handle.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handle.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handle/Handle.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,qKAMxB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAevB,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { DraggableData } from 'react-draggable';
2
- export interface HandleProps {
3
- stepSize: number;
4
- min: number;
5
- max: number;
6
- multipleStepSize: number;
7
- onChangeCommitted?(value: number, data: DraggableData): void;
8
- side?: 'left' | 'right';
9
- bounds?: number[];
10
- xPosition?: number;
11
- zIndex?: number;
12
- disabled?: boolean;
13
- value?: number;
14
- ariaLabel?: string;
15
- ariaValueMin?: number;
16
- hasHoverAnimation?: boolean;
17
- showCurrentValue?: boolean;
18
- startOffset?: number;
19
- endOffset?: number;
20
- onChange?(value: number, data: DraggableData): void;
21
- onMouseEnter?(): void;
22
- onMouseLeave?(): void;
23
- }
24
- //# sourceMappingURL=Handle.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handle.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handle/Handle.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,WAAW;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IACpD,YAAY,CAAC,IAAI,IAAI,CAAC;IACtB,YAAY,CAAC,IAAI,IAAI,CAAC;CACzB"}