@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
package/es/index.js CHANGED
@@ -13,7 +13,6 @@ export { useUniqId } from './hooks/useUniqId.js';
13
13
  export { usePreviousValue } from './hooks/usePreviousValue.js';
14
14
  export { useForceUpdate } from './hooks/useForceUpdate.js';
15
15
  export { useDidMountEffect } from './hooks/useDidMountEffect.js';
16
- export { useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayoutEffect.js';
17
16
  export { composableStyle, cx } from './utils/index.js';
18
17
  export { buttonConfig, buttonRoot } from './components/Button/Button.js';
19
18
  export { classes as buttonClasses, tokens as buttonTokens } from './components/Button/Button.tokens.js';
@@ -33,8 +32,10 @@ export { linkConfig, linkRoot } from './components/Link/Link.js';
33
32
  export { spinnerConfig, spinnerRoot } from './components/Spinner/Spinner.js';
34
33
  export { tokens as spinnerTokens } from './components/Spinner/Spinner.tokens.js';
35
34
  export { checkboxConfig, checkboxRoot } from './components/Checkbox/Checkbox.js';
35
+ export { tokens as checkboxTokens } from './components/Checkbox/Checkbox.tokens.js';
36
36
  export { radioboxConfig, radioboxRoot } from './components/Radiobox/Radiobox.js';
37
37
  export { RadioGroup } from './components/Radiobox/RadioGroup.js';
38
+ export { tokens as radioboxTokens } from './components/Radiobox/Radiobox.tokens.js';
38
39
  export { popoverConfig, popoverRoot } from './components/Popover/Popover.js';
39
40
  export { classes as popoverClasses, tokens as popoverTokens } from './components/Popover/Popover.tokens.js';
40
41
  export { textAreaConfig, textAreaRoot } from './components/TextArea/TextArea.js';
@@ -164,14 +165,7 @@ export { classes as dividerClasses, tokens as dividerTokens } from './components
164
165
  export { toolbarConfig, toolbarRoot } from './components/Toolbar/Toolbar.js';
165
166
  export { tokens as toolbarTokens } from './components/Toolbar/Toolbar.tokens.js';
166
167
  export { toolbarDividerConfig, toolbarDividerRoot } from './components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js';
167
- export { sliderConfig, sliderRoot } from './components/Slider/Slider.js';
168
- export { tokens as sliderTokens } from './components/Slider/Slider.tokens.js';
169
- import 'react';
170
- import 'react-draggable';
171
- export { ThumbBase } from './components/Slider/ui/Thumb/Thumb.styles.js';
172
- import '@linaria/react';
173
168
  export { component, mergeConfig } from './engines/common.js';
174
- export { canUseDOM } from './utils/canUseDOM.js';
175
169
  export { extractTextFrom } from './utils/extractTextFrom.js';
176
170
  export { getSizeValueFromProp } from './utils/getSizeValueFromProp.js';
177
171
  export { IS_REACT_18, safeUseId } from './utils/react.js';
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":";;;AAQaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAE/FC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":";;;AAOaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAE/FC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.80.0-canary.1194.9085423232.0",
3
+ "version": "0.81.0-canary.1203.9092095304.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -99,9 +99,8 @@
99
99
  "@popperjs/core": "2.11.8",
100
100
  "@salutejs/plasma-core": "1.159.0",
101
101
  "focus-visible": "5.2.0",
102
- "react-draggable": "4.4.3",
103
102
  "react-popper": "2.3.0",
104
103
  "storeon": "3.1.5"
105
104
  },
106
- "gitHead": "4d4612a7cec7c56e1a139e6822140c282d95e36e"
105
+ "gitHead": "94ee225af37a110330eb8ee7abbdff3559f76fb4"
107
106
  }
@@ -14,7 +14,7 @@ var _ui = /*#__PURE__*/require("../ui");
14
14
  var _base = /*#__PURE__*/require("./variations/_view/base");
15
15
  var _base2 = /*#__PURE__*/require("./variations/_size/base");
16
16
  var _CalendarBase = /*#__PURE__*/require("./CalendarBase.styles");
17
- var _excluded = ["value", "min", "max", "type", "eventList", "disabledList", "onChangeValue"];
17
+ var _excluded = ["value", "min", "max", "includeEdgeDates", "type", "eventList", "disabledList", "onChangeValue"];
18
18
  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); }
19
19
  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; }
20
20
  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); }
@@ -34,6 +34,7 @@ var calendarBaseRoot = exports.calendarBaseRoot = function calendarBaseRoot(Root
34
34
  var externalValue = _ref.value,
35
35
  min = _ref.min,
36
36
  max = _ref.max,
37
+ includeEdgeDates = _ref.includeEdgeDates,
37
38
  _ref$type = _ref.type,
38
39
  type = _ref$type === void 0 ? 'Days' : _ref$type,
39
40
  eventList = _ref.eventList,
@@ -242,6 +243,7 @@ var calendarBaseRoot = exports.calendarBaseRoot = function calendarBaseRoot(Root
242
243
  disabledList: disabledList,
243
244
  min: min,
244
245
  max: max,
246
+ includeEdgeDates: includeEdgeDates,
245
247
  value: externalValue,
246
248
  date: date,
247
249
  hoveredDay: hoveredDay,
@@ -188,6 +188,7 @@ var getDaysWithModifications = function getDaysWithModifications(days) {
188
188
  var disabledList = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
189
189
  var min = arguments.length > 3 ? arguments[3] : undefined;
190
190
  var max = arguments.length > 4 ? arguments[4] : undefined;
191
+ var includeEdgeDates = arguments.length > 5 ? arguments[5] : undefined;
191
192
  var eventsMap = getPropsMap(eventList);
192
193
  var disabledDaysMap = getPropsMap(disabledList);
193
194
  var daysList = days.filter(function (_ref3) {
@@ -205,7 +206,9 @@ var getDaysWithModifications = function getDaysWithModifications(days) {
205
206
  day = date.day;
206
207
  var keyDay = "".concat(year, "-").concat(monthIndex, "-").concat(day);
207
208
  var currentDate = new Date(year, monthIndex, day);
208
- var isOutOfMinMaxRange = min && min >= currentDate || max && max <= currentDate;
209
+ var minValue = min && (includeEdgeDates ? min > currentDate : min >= currentDate);
210
+ var maxValue = max && (includeEdgeDates ? max < currentDate : max <= currentDate);
211
+ var isOutOfMinMaxRange = minValue || maxValue;
209
212
  dayItem.events = eventsMap.get(keyDay);
210
213
  dayItem.disabled = disabledDaysMap.has(keyDay) || isOutOfMinMaxRange;
211
214
  dayItem.isOutOfMinMaxRange = isOutOfMinMaxRange;
@@ -218,7 +221,7 @@ var getDaysWithModifications = function getDaysWithModifications(days) {
218
221
  /**
219
222
  * Хук для получения списка дней.
220
223
  */
221
- var useDays = exports.useDays = function useDays(date, value, eventList, disabledList, min, max) {
224
+ var useDays = exports.useDays = function useDays(date, value, eventList, disabledList, min, max, includeEdgeDates) {
222
225
  return (0, _react.useMemo)(function () {
223
226
  var monthIndex = date.monthIndex,
224
227
  year = date.year;
@@ -226,7 +229,7 @@ var useDays = exports.useDays = function useDays(date, value, eventList, disable
226
229
  var offsetDayInWeek = (0, _utils.getOffsetDayInWeek)(monthIndex, year);
227
230
  var days = [].concat(_toConsumableArray(getDaysInPrevMonth(date, offsetDayInWeek, value)), _toConsumableArray(getDaysInCurrentMonth(date, daysInMonth, value)), _toConsumableArray(getDaysInNextMonth(date, daysInMonth, offsetDayInWeek, value)));
228
231
  if (eventList !== null && eventList !== void 0 && eventList.length || disabledList !== null && disabledList !== void 0 && disabledList.length || max || min) {
229
- var modifiedDays = getDaysWithModifications(days, eventList, disabledList, min, max);
232
+ var modifiedDays = getDaysWithModifications(days, eventList, disabledList, min, max, includeEdgeDates);
230
233
  return (0, _utils.getMatrix)(modifiedDays);
231
234
  }
232
235
  return (0, _utils.getMatrix)(days);
@@ -29,6 +29,7 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
29
29
  disabledList = _ref.disabledList,
30
30
  min = _ref.min,
31
31
  max = _ref.max,
32
+ includeEdgeDates = _ref.includeEdgeDates,
32
33
  hoveredDay = _ref.hoveredDay,
33
34
  selectIndexes = _ref.selectIndexes,
34
35
  isDouble = _ref.isDouble,
@@ -38,7 +39,7 @@ var CalendarDays = exports.CalendarDays = function CalendarDays(_ref) {
38
39
  onHoverDay = _ref.onHoverDay,
39
40
  onSetSelected = _ref.onSetSelected,
40
41
  onKeyDown = _ref.onKeyDown;
41
- var _useDays = (0, _hooks.useDays)(currentDate, value, eventList, disabledList, min, max),
42
+ var _useDays = (0, _hooks.useDays)(currentDate, value, eventList, disabledList, min, max, includeEdgeDates),
42
43
  _useDays2 = _slicedToArray(_useDays, 2),
43
44
  days = _useDays2[0],
44
45
  selected = _useDays2[1];
@@ -4,44 +4,24 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.checkboxRoot = exports.checkboxConfig = exports.StyledTrigger = exports.StyledLabel = exports.StyledInput = exports.StyledDescription = exports.StyledContentWrapper = exports.StyledContent = void 0;
7
+ exports.checkboxRoot = exports.checkboxConfig = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
10
9
  var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
11
- var _mixins = /*#__PURE__*/require("../../mixins");
12
10
  var _utils = /*#__PURE__*/require("../../utils");
13
- var _base = /*#__PURE__*/require("./_view/base");
14
- var _base2 = /*#__PURE__*/require("./_size/base");
15
- var _base3 = /*#__PURE__*/require("./_disabled/base");
16
- var _base4 = /*#__PURE__*/require("./_focused/base");
11
+ var _base = /*#__PURE__*/require("./variations/_view/base");
12
+ var _base2 = /*#__PURE__*/require("./variations/_size/base");
13
+ var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
14
+ var _base4 = /*#__PURE__*/require("./variations/_focused/base");
17
15
  var _IconsSvg = /*#__PURE__*/require("./IconsSvg");
16
+ var _Checkbox = /*#__PURE__*/require("./Checkbox.styles");
17
+ var _Checkbox2 = /*#__PURE__*/require("./Checkbox.tokens");
18
+ var _Indeterminate, _Done;
18
19
  var _excluded = ["size", "view", "focused", "disabled", "id", "label", "description", "indeterminate", "style", "className", "singleLine", "aria-label"];
19
- var _templateObject, _Indeterminate, _Done;
20
20
  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); }
21
21
  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; }
22
22
  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); }
23
23
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
24
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
26
- var StyledInput = exports.StyledInput = /*#__PURE__*/_styledComponents["default"].input.withConfig({
27
- componentId: "plasma-new-hope__sc-1lv7grl-0"
28
- })(["position:absolute;&:focus{outline:0 none;}width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);"]);
29
- var StyledTrigger = exports.StyledTrigger = /*#__PURE__*/_styledComponents["default"].div.withConfig({
30
- componentId: "plasma-new-hope__sc-1lv7grl-1"
31
- })(["margin:var(--plasma-checkbox-trigger-margin);width:var(--plasma-checkbox-trigger-size);height:var(--plasma-checkbox-trigger-size);border-radius:var(--plasma-checkbox-trigger-border-radius);position:relative;display:flex;align-items:center;justify-content:center;background:transparent;border:0.125rem solid var(--plasma-checkbox-trigger-border-color);box-sizing:border-box;flex-shrink:0;flex-grow:0;input:not(:indeterminate) + label & div{transform:scale(0);transition:transform 0.15s ease-in-out;}input:checked + label & div{transform:scale(1);}"]);
32
- var StyledContentWrapper = exports.StyledContentWrapper = /*#__PURE__*/_styledComponents["default"].label.withConfig({
33
- componentId: "plasma-new-hope__sc-1lv7grl-2"
34
- })(["position:relative;align-items:flex-start;display:flex;width:100%;cursor:inherit;"]);
35
- var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
36
- componentId: "plasma-new-hope__sc-1lv7grl-3"
37
- })(["display:flex;flex-direction:column;margin-top:var(--plasma-checkbox-content-top-offset);margin-left:var(--plasma-checkbox-content-left-offset);"]);
38
- var StyledLabel = exports.StyledLabel = /*#__PURE__*/_styledComponents["default"].span.withConfig({
39
- componentId: "plasma-new-hope__sc-1lv7grl-4"
40
- })(["font-family:var(--plasma-checkbox-label-font-family);font-size:var(--plasma-checkbox-label-font-size);font-style:var(--plasma-checkbox-label-font-style);font-weight:var(--plasma-checkbox-label-font-weight);letter-spacing:var(--plasma-checkbox-label-letter-spacing);line-height:var(--plasma-checkbox-label-line-height);"]);
41
- var StyledDescription = exports.StyledDescription = /*#__PURE__*/_styledComponents["default"].div.withConfig({
42
- componentId: "plasma-new-hope__sc-1lv7grl-5"
43
- })(["margin-top:0.25rem;color:var(--plasma-checkbox-description-color);font-family:var(--plasma-checkbox-description-font-family);font-size:var(--plasma-checkbox-description-font-size);font-style:var(--plasma-checkbox-description-font-style);font-weight:var(--plasma-checkbox-description-font-weight);letter-spacing:var(--plasma-checkbox-description-letter-spacing);line-height:var(--plasma-checkbox-description-line-height);"]);
44
- var base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n .single-line {\n ", ";\n }\n\n margin: var(--plasma-checkbox-margin);\n\n &.reset-margins {\n margin: 0;\n }\n\n ", ";\n\n position: relative;\n align-items: flex-start;\n display: flex;\n cursor: pointer;\n"])), /*#__PURE__*/(0, _mixins.applyEllipsis)(), /*#__PURE__*/(0, _mixins.applyNoUserSelect)());
45
25
  var checkboxRoot = exports.checkboxRoot = function checkboxRoot(Root) {
46
26
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
47
27
  var size = props.size,
@@ -75,17 +55,17 @@ var checkboxRoot = exports.checkboxRoot = function checkboxRoot(Root) {
75
55
  var isLabelAriaHidden = typeof label === 'string';
76
56
  var canFocused = focused ? 0 : -1;
77
57
  var hasContent = label || description;
78
- var singleLineClass = singleLine ? 'single-line' : undefined;
79
- var resetMargins = !hasContent ? 'reset-margins' : undefined;
58
+ var singleLineClass = singleLine ? _Checkbox2.classes.singleLine : undefined;
59
+ var onlyDescriptionClass = !label && description ? _Checkbox2.classes.onlyDescription : undefined;
80
60
  return /*#__PURE__*/_react["default"].createElement(Root, {
81
61
  view: view,
82
62
  size: size,
83
63
  disabled: disabled,
84
64
  focused: focused,
85
65
  style: style,
86
- className: (0, _utils.cx)(className, resetMargins),
66
+ className: className,
87
67
  tabIndex: -1
88
- }, /*#__PURE__*/_react["default"].createElement(StyledInput, _extends({}, rest, {
68
+ }, /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledInput, _extends({}, rest, {
89
69
  id: checkboxId,
90
70
  ref: forkRef,
91
71
  type: "checkbox",
@@ -93,18 +73,18 @@ var checkboxRoot = exports.checkboxRoot = function checkboxRoot(Root) {
93
73
  "aria-label": ariaLabel,
94
74
  "aria-describedby": uniqDescriptionId,
95
75
  tabIndex: canFocused
96
- })), /*#__PURE__*/_react["default"].createElement(StyledContentWrapper, {
76
+ })), /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledContentWrapper, {
97
77
  htmlFor: checkboxId
98
- }, /*#__PURE__*/_react["default"].createElement(StyledTrigger, {
99
- className: (0, _utils.cx)('checkbox-trigger', resetMargins)
100
- }, indeterminate ? _Indeterminate || (_Indeterminate = /*#__PURE__*/_react["default"].createElement(_IconsSvg.Indeterminate, null)) : _Done || (_Done = /*#__PURE__*/_react["default"].createElement(_IconsSvg.Done, null))), hasContent && /*#__PURE__*/_react["default"].createElement(StyledContent, {
78
+ }, /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledTrigger, {
79
+ className: _Checkbox2.classes.checkboxTrigger
80
+ }, indeterminate ? _Indeterminate || (_Indeterminate = /*#__PURE__*/_react["default"].createElement(_IconsSvg.Indeterminate, null)) : _Done || (_Done = /*#__PURE__*/_react["default"].createElement(_IconsSvg.Done, null))), hasContent && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledContent, {
101
81
  className: singleLineClass
102
- }, label && /*#__PURE__*/_react["default"].createElement(StyledLabel, {
82
+ }, label && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledLabel, {
103
83
  className: singleLineClass,
104
84
  id: uniqLabelId,
105
85
  "aria-hidden": isLabelAriaHidden
106
- }, label), description && /*#__PURE__*/_react["default"].createElement(StyledDescription, {
107
- className: singleLineClass,
86
+ }, label), description && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledDescription, {
87
+ className: (0, _utils.cx)(singleLineClass, onlyDescriptionClass),
108
88
  id: uniqDescriptionId
109
89
  }, description))));
110
90
  });
@@ -113,7 +93,7 @@ var checkboxConfig = exports.checkboxConfig = {
113
93
  name: 'Checkbox',
114
94
  tag: 'div',
115
95
  layout: checkboxRoot,
116
- base: base,
96
+ base: _Checkbox.base,
117
97
  variations: {
118
98
  size: {
119
99
  css: _base2.base
@@ -0,0 +1,33 @@
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.base = exports.StyledTrigger = exports.StyledLabel = exports.StyledInput = exports.StyledDescription = exports.StyledContentWrapper = exports.StyledContent = void 0;
8
+ var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
9
+ var _mixins = /*#__PURE__*/require("../../mixins");
10
+ var _Checkbox = /*#__PURE__*/require("./Checkbox.tokens");
11
+ var _templateObject;
12
+ 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); }
13
+ 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; }
14
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n margin: var(", ");\n\n ", ";\n\n position: relative;\n align-items: flex-start;\n display: flex;\n cursor: pointer;\n\n .", " {\n ", ";\n }\n"])), _Checkbox.tokens.margin, /*#__PURE__*/(0, _mixins.applyNoUserSelect)(), _Checkbox.classes.singleLine, /*#__PURE__*/(0, _mixins.applyEllipsis)());
16
+ var StyledInput = exports.StyledInput = /*#__PURE__*/_styledComponents["default"].input.withConfig({
17
+ componentId: "plasma-new-hope__sc-tydhc1-0"
18
+ })(["position:absolute;&:focus{outline:0 none;}width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);"]);
19
+ var StyledTrigger = exports.StyledTrigger = /*#__PURE__*/_styledComponents["default"].div.withConfig({
20
+ componentId: "plasma-new-hope__sc-tydhc1-1"
21
+ })(["margin:var(", ");width:var(", ");height:var(", ");border-radius:var(", ");position:relative;display:flex;align-items:center;justify-content:center;background:transparent;border:0.125rem solid var(", ");box-sizing:border-box;flex-shrink:0;flex-grow:0;input:not(:indeterminate) + label & div{transform:scale(0);transition:transform 0.15s ease-in-out;}input:checked + label & div{transform:scale(1);}"], _Checkbox.tokens.triggerMargin, _Checkbox.tokens.triggerSize, _Checkbox.tokens.triggerSize, _Checkbox.tokens.triggerBorderRadius, _Checkbox.tokens.triggerBorderColor);
22
+ var StyledContentWrapper = exports.StyledContentWrapper = /*#__PURE__*/_styledComponents["default"].label.withConfig({
23
+ componentId: "plasma-new-hope__sc-tydhc1-2"
24
+ })(["position:relative;align-items:flex-start;display:flex;width:100%;cursor:inherit;"]);
25
+ var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
26
+ componentId: "plasma-new-hope__sc-tydhc1-3"
27
+ })(["display:flex;flex-direction:column;margin-top:var(", ");margin-left:var(", ");"], _Checkbox.tokens.contentTopOffset, _Checkbox.tokens.contentLeftOffset);
28
+ var StyledLabel = exports.StyledLabel = /*#__PURE__*/_styledComponents["default"].span.withConfig({
29
+ componentId: "plasma-new-hope__sc-tydhc1-4"
30
+ })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Checkbox.tokens.labelFontFamily, _Checkbox.tokens.labelFontSize, _Checkbox.tokens.labelFontStyle, _Checkbox.tokens.labelFontWeight, _Checkbox.tokens.labelLetterSpacing, _Checkbox.tokens.labelLineHeight);
31
+ var StyledDescription = exports.StyledDescription = /*#__PURE__*/_styledComponents["default"].div.withConfig({
32
+ componentId: "plasma-new-hope__sc-tydhc1-5"
33
+ })(["margin-top:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");&.", "{margin-top:0;}"], _Checkbox.tokens.descriptionMarginTop, _Checkbox.tokens.descriptionColor, _Checkbox.tokens.descriptionFontFamily, _Checkbox.tokens.descriptionFontSize, _Checkbox.tokens.descriptionFontStyle, _Checkbox.tokens.descriptionFontWeight, _Checkbox.tokens.descriptionLetterSpacing, _Checkbox.tokens.descriptionLineHeight, _Checkbox.classes.onlyDescription);
@@ -0,0 +1,39 @@
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
+ singleLine: 'single-line',
9
+ checkboxTrigger: 'checkbox-trigger',
10
+ onlyDescription: 'only-description'
11
+ };
12
+ var tokens = exports.tokens = {
13
+ margin: '--plasma-checkbox-margin',
14
+ triggerMargin: '--plasma-checkbox-trigger-margin',
15
+ triggerSize: '--plasma-checkbox-trigger-size',
16
+ triggerBorderRadius: '--plasma-checkbox-trigger-border-radius',
17
+ contentTopOffset: '--plasma-checkbox-content-top-offset',
18
+ contentLeftOffset: '--plasma-checkbox-content-left-offset',
19
+ labelFontFamily: '--plasma-checkbox-label-font-family',
20
+ labelFontSize: '--plasma-checkbox-label-font-size',
21
+ labelFontStyle: '--plasma-checkbox-label-font-style',
22
+ labelFontWeight: '--plasma-checkbox-label-font-weight',
23
+ labelLetterSpacing: '--plasma-checkbox-label-letter-spacing',
24
+ labelLineHeight: '--plasma-checkbox-label-line-height',
25
+ descriptionMarginTop: '--plasma-checkbox-description-margin-top',
26
+ descriptionOnlyMarginTop: '--plasma-checkbox-description-only-margin-top',
27
+ descriptionFontFamily: '--plasma-checkbox-description-font-family',
28
+ descriptionFontSize: '--plasma-checkbox-description-font-size',
29
+ descriptionFontStyle: '--plasma-checkbox-description-font-style',
30
+ descriptionFontWeight: '--plasma-checkbox-description-font-weight',
31
+ descriptionLetterSpacing: '--plasma-checkbox-description-letter-spacing',
32
+ descriptionLineHeight: '--plasma-checkbox-description-line-height',
33
+ fillColor: '--plasma-checkbox-fill-color',
34
+ iconColor: '--plasma-checkbox-icon-color',
35
+ descriptionColor: '--plasma-checkbox-description-color',
36
+ triggerBorderColor: '--plasma-checkbox-trigger-border-color',
37
+ focusColor: '--plasma-checkbox-focus-color',
38
+ disabledOpacity: '--plasma-checkbox-disabled-opacity'
39
+ };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Indeterminate = exports.Done = void 0;
7
7
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
- var _path, _path2;
8
+ var _Checkbox = /*#__PURE__*/require("./Checkbox.tokens");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  var Done = exports.Done = function Done() {
11
11
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -17,12 +17,12 @@ var Done = exports.Done = function Done() {
17
17
  viewBox: "0 0 18 18",
18
18
  fill: "none",
19
19
  style: {
20
- width: 'var(--plasma-checkbox-trigger-size)'
20
+ width: "var(".concat(_Checkbox.tokens.triggerSize, ")")
21
21
  }
22
- }, _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
23
- fill: "var(--plasma-checkbox-icon-color)",
22
+ }, /*#__PURE__*/_react["default"].createElement("path", {
23
+ fill: "var(".concat(_Checkbox.tokens.iconColor, ")"),
24
24
  d: "m5.70711,8.15582c-0.39053,-0.39052 -1.02369,-0.39052 -1.41422,0c-0.39052,0.39053 -0.39052,1.02369 0,1.41422l3.70666,3.70666l6.71095,-6.70248c0.3908,-0.39027 0.3912,-1.02344 0.0009,-1.41421c-0.3903,-0.39077 -1.02344,-0.39117 -1.41421,-0.00089l-5.29674,5.29004l-2.29334,-2.29334z"
25
- }))));
25
+ })));
26
26
  };
27
27
  var Indeterminate = exports.Indeterminate = function Indeterminate() {
28
28
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -34,12 +34,12 @@ var Indeterminate = exports.Indeterminate = function Indeterminate() {
34
34
  viewBox: "0 0 18 18",
35
35
  fill: "none",
36
36
  style: {
37
- width: 'var(--plasma-checkbox-trigger-size)'
37
+ width: "var(".concat(_Checkbox.tokens.triggerSize, ")")
38
38
  }
39
- }, _path2 || (_path2 = /*#__PURE__*/_react["default"].createElement("path", {
39
+ }, /*#__PURE__*/_react["default"].createElement("path", {
40
40
  strokeLinecap: "round",
41
41
  strokeWidth: "2",
42
- stroke: "var(--plasma-checkbox-icon-color)",
42
+ stroke: "var(".concat(_Checkbox.tokens.iconColor, ")"),
43
43
  d: "m5.09449,9.0315l8,0"
44
- }))));
44
+ })));
45
45
  };
@@ -15,4 +15,11 @@ Object.defineProperty(exports, "checkboxRoot", {
15
15
  return _Checkbox.checkboxRoot;
16
16
  }
17
17
  });
18
- var _Checkbox = /*#__PURE__*/require("./Checkbox");
18
+ Object.defineProperty(exports, "checkboxTokens", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _Checkbox2.tokens;
22
+ }
23
+ });
24
+ var _Checkbox = /*#__PURE__*/require("./Checkbox");
25
+ var _Checkbox2 = /*#__PURE__*/require("./Checkbox.tokens");
@@ -0,0 +1,10 @@
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 _Checkbox = /*#__PURE__*/require("../../Checkbox.styles");
9
+ var _Checkbox2 = /*#__PURE__*/require("../../Checkbox.tokens");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input:disabled + ", "{opacity:var(", ");}input:disabled + ", "{cursor:not-allowed;}"], _Checkbox.StyledContentWrapper, _Checkbox2.tokens.disabledOpacity, _Checkbox.StyledContentWrapper);
@@ -0,0 +1,32 @@
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 _Checkbox = /*#__PURE__*/require("../../Checkbox.tokens");
10
+ /**
11
+ * INFO: на 36 строке нет возможности использвать .${classes.checkboxTrigger},
12
+ * потому что линтер правит селектор и он применяется некорректно
13
+ */
14
+
15
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([".", "{", "}input[data-focus-visible-added] + label .", "{border-color:transparent;", "}input[data-focus-visible-added]:checked + label .checkbox-trigger,input[type='checkbox'][data-focus-visible-added]:indeterminate + label .", "{", "}"], _Checkbox.classes.checkboxTrigger, /*#__PURE__*/(0, _mixins.addFocus)({
16
+ outlineOffset: '0',
17
+ outlineSize: '0.125rem',
18
+ outlineRadius: /*#__PURE__*/"var(".concat(_Checkbox.tokens.triggerBorderRadius, ")"),
19
+ outlineColor: 'transparent'
20
+ }), _Checkbox.classes.checkboxTrigger, /*#__PURE__*/(0, _mixins.addFocus)({
21
+ outlineOffset: '-0.125rem',
22
+ outlineSize: '0.125rem',
23
+ outlineRadius: /*#__PURE__*/"var(".concat(_Checkbox.tokens.triggerBorderRadius, ")"),
24
+ outlineColor: /*#__PURE__*/"var(".concat(_Checkbox.tokens.focusColor, ")"),
25
+ customFocusRules: /*#__PURE__*/"\n &::before {\n box-shadow: 0 0 0 0.125rem var(".concat(_Checkbox.tokens.focusColor, ");\n }\n ")
26
+ }), _Checkbox.classes.checkboxTrigger, /*#__PURE__*/(0, _mixins.addFocus)({
27
+ outlineOffset: '-0.125rem',
28
+ outlineSize: '0.063rem',
29
+ outlineRadius: /*#__PURE__*/"calc(var(".concat(_Checkbox.tokens.triggerBorderRadius, ") + 0.125rem)"),
30
+ outlineColor: /*#__PURE__*/"var(".concat(_Checkbox.tokens.focusColor, ")"),
31
+ customFocusRules: /*#__PURE__*/"\n &::before {\n box-shadow: 0 0 0 0.063rem var(".concat(_Checkbox.tokens.focusColor, ");\n }\n ")
32
+ }));
@@ -0,0 +1,10 @@
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 _Checkbox = /*#__PURE__*/require("../../Checkbox.styles");
9
+ var _Checkbox2 = /*#__PURE__*/require("../../Checkbox.tokens");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input[type='checkbox']:indeterminate + ", " ", "{border:none;background:var(", ");border-color:var(", ");}input:checked + ", " ", "{border:none;background:var(", ");border-color:var(", ");}"], _Checkbox.StyledContentWrapper, _Checkbox.StyledTrigger, _Checkbox2.tokens.fillColor, _Checkbox2.tokens.fillColor, _Checkbox.StyledContentWrapper, _Checkbox.StyledTrigger, _Checkbox2.tokens.fillColor, _Checkbox2.tokens.fillColor);
@@ -0,0 +1 @@
1
+ ["--plasma-checkbox-fill-color"]
@@ -6,29 +6,22 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.radioboxRoot = exports.radioboxConfig = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
10
9
  var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
11
- var _mixins = /*#__PURE__*/require("../../mixins");
12
- var _Checkbox = /*#__PURE__*/require("../Checkbox/Checkbox");
10
+ var _Checkbox = /*#__PURE__*/require("../Checkbox/Checkbox.styles");
13
11
  var _utils = /*#__PURE__*/require("../../utils");
14
- var _base = /*#__PURE__*/require("./_view/base");
15
- var _base2 = /*#__PURE__*/require("./_size/base");
16
- var _base3 = /*#__PURE__*/require("./_disabled/base");
17
- var _base4 = /*#__PURE__*/require("./_focused/base");
12
+ var _base = /*#__PURE__*/require("./variations/_view/base");
13
+ var _base2 = /*#__PURE__*/require("./variations/_size/base");
14
+ var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
15
+ var _base4 = /*#__PURE__*/require("./variations/_focused/base");
16
+ var _Radiobox = /*#__PURE__*/require("./Radiobox.styles");
17
+ var _Radiobox2 = /*#__PURE__*/require("./Radiobox.tokens");
18
+ var _StyledEllipse;
18
19
  var _excluded = ["size", "view", "focused", "disabled", "id", "label", "description", "style", "className", "singleLine", "aria-label"];
19
- var _templateObject, _StyledEllipse;
20
20
  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); }
21
21
  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; }
22
22
  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); }
23
23
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
24
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
26
- // NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части
27
- var mappingOverride = "\n --plasma-checkbox-label-font-family: var(--plasma-radiobox-label-font-family);\n --plasma-checkbox-label-font-size: var(--plasma-radiobox-label-font-size);\n --plasma-checkbox-label-font-style: var(--plasma-radiobox-label-font-style);\n --plasma-checkbox-label-font-weight: var(--plasma-radiobox-label-font-weight);\n --plasma-checkbox-label-letter-spacing: var(--plasma-radiobox-label-letter-spacing);\n --plasma-checkbox-label-line-height: var(--plasma-radiobox-label-line-height);\n --plasma-checkbox-description-font-family: var(--plasma-radiobox-description-font-family);\n --plasma-checkbox-description-font-size: var(--plasma-radiobox-description-font-size);\n --plasma-checkbox-description-font-style: var(--plasma-radiobox-description-font-style);\n --plasma-checkbox-description-font-weight: var(--plasma-radiobox-description-font-weight);\n --plasma-checkbox-description-letter-spacing: var(--plasma-radiobox-description-letter-spacing);\n --plasma-checkbox-description-line-height: var(--plasma-radiobox-description-line-height);\n --plasma-checkbox-fill-color: var(--plasma-radiobox-fill-color);\n --plasma-checkbox-description-color: var(--plasma-radiobox-description-color);\n --plasma-checkbox-trigger-border-color: var(--plasma-radiobox-trigger-border-color);\n --plasma-checkbox-content-top-offset: var(--plasma-radiobox-content-top-offset);\n --plasma-checkbox-content-left-offset: var(--plasma-radiobox-content-left-offset);\n --plasma-checkbox-trigger-size: var(--plasma-radiobox-trigger-size);\n --plasma-checkbox-trigger-border-radius: var(--plasma-radiobox-trigger-border-radius);\n --plasma-checkbox-trigger-margin: var(--plasma-radiobox-trigger-margin); \n";
28
- var StyledEllipse = /*#__PURE__*/_styledComponents["default"].div.withConfig({
29
- componentId: "plasma-new-hope__sc-fk5e49-0"
30
- })(["width:var(--plasma-radiobox-ellipse-size);height:var(--plasma-radiobox-ellipse-size);border-radius:var(--plasma-radiobox-ellipse-size);background-color:var(--plasma-radiobox-ellipse-color);transition:transform 0.3s ease-in-out;transform:scale(0);input:checked + label &{transform:scale(1);}"]);
31
- var base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ";\n\n .single-line {\n ", ";\n }\n\n margin: var(--plasma-radiobox-margin);\n\n &.reset-margins {\n margin: 0;\n }\n\n ", ";\n\n position: relative;\n align-items: flex-start;\n display: flex;\n cursor: pointer;\n"])), mappingOverride, /*#__PURE__*/(0, _mixins.applyEllipsis)(), /*#__PURE__*/(0, _mixins.applyNoUserSelect)());
32
25
  var radioboxRoot = exports.radioboxRoot = function radioboxRoot(Root) {
33
26
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
34
27
  var size = props.size,
@@ -54,15 +47,15 @@ var radioboxRoot = exports.radioboxRoot = function radioboxRoot(Root) {
54
47
  var isLabelAriaHidden = typeof label === 'string';
55
48
  var canFocused = focused ? 0 : -1;
56
49
  var hasContent = label || description;
57
- var singleLineClass = singleLine ? 'single-line' : undefined;
58
- var resetMargins = !hasContent ? 'reset-margins' : undefined;
50
+ var singleLineClass = singleLine ? _Radiobox2.classes.singleLine : undefined;
51
+ var onlyDescriptionClass = !label && description ? _Radiobox2.classes.onlyDescription : undefined;
59
52
  return /*#__PURE__*/_react["default"].createElement(Root, {
60
53
  view: view,
61
54
  size: size,
62
55
  disabled: disabled,
63
56
  focused: focused,
64
57
  style: style,
65
- className: (0, _utils.cx)(className, resetMargins),
58
+ className: className,
66
59
  tabIndex: -1
67
60
  }, /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledInput, _extends({}, rest, {
68
61
  id: radioboxId,
@@ -75,11 +68,11 @@ var radioboxRoot = exports.radioboxRoot = function radioboxRoot(Root) {
75
68
  })), /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledContentWrapper, {
76
69
  htmlFor: radioboxId
77
70
  }, /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledTrigger, {
78
- className: (0, _utils.cx)('radiobox-trigger', resetMargins)
79
- }, _StyledEllipse || (_StyledEllipse = /*#__PURE__*/_react["default"].createElement(StyledEllipse, null))), hasContent && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledContent, {
71
+ className: _Radiobox2.classes.radioboxTrigger
72
+ }, _StyledEllipse || (_StyledEllipse = /*#__PURE__*/_react["default"].createElement(_Radiobox.StyledEllipse, null))), hasContent && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledContent, {
80
73
  className: singleLineClass
81
74
  }, label && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledLabel, {
82
- className: singleLineClass,
75
+ className: (0, _utils.cx)(singleLineClass, onlyDescriptionClass),
83
76
  id: uniqLabelId,
84
77
  "aria-hidden": isLabelAriaHidden
85
78
  }, label), description && /*#__PURE__*/_react["default"].createElement(_Checkbox.StyledDescription, {
@@ -92,7 +85,7 @@ var radioboxConfig = exports.radioboxConfig = {
92
85
  name: 'Radiobox',
93
86
  tag: 'div',
94
87
  layout: radioboxRoot,
95
- base: base,
88
+ base: _Radiobox.base,
96
89
  variations: {
97
90
  size: {
98
91
  css: _base2.base
@@ -0,0 +1,19 @@
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.base = exports.StyledEllipse = void 0;
8
+ var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
9
+ var _Checkbox = /*#__PURE__*/require("../Checkbox");
10
+ var _mixins = /*#__PURE__*/require("../../mixins");
11
+ var _Radiobox = /*#__PURE__*/require("./Radiobox.tokens");
12
+ 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); }
13
+ 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; }
14
+ // NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части
15
+ var mappingOverride = /*#__PURE__*/"\n ".concat(_Checkbox.checkboxTokens.labelFontFamily, ": var(").concat(_Radiobox.tokens.labelFontFamily, ");\n ").concat(_Checkbox.checkboxTokens.labelFontSize, ": var(").concat(_Radiobox.tokens.labelFontSize, ");\n ").concat(_Checkbox.checkboxTokens.labelFontStyle, ": var(").concat(_Radiobox.tokens.labelFontStyle, ");\n ").concat(_Checkbox.checkboxTokens.labelFontWeight, ": var(").concat(_Radiobox.tokens.labelFontWeight, ");\n ").concat(_Checkbox.checkboxTokens.labelLetterSpacing, ": var(").concat(_Radiobox.tokens.labelLetterSpacing, ");\n ").concat(_Checkbox.checkboxTokens.labelLineHeight, ": var(").concat(_Radiobox.tokens.labelLineHeight, ");\n ").concat(_Checkbox.checkboxTokens.descriptionMarginTop, ": var(").concat(_Radiobox.tokens.descriptionMarginTop, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontFamily, ": var(").concat(_Radiobox.tokens.descriptionFontFamily, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontSize, ": var(").concat(_Radiobox.tokens.descriptionFontSize, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontStyle, ": var(").concat(_Radiobox.tokens.descriptionFontStyle, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontWeight, ": var(").concat(_Radiobox.tokens.descriptionFontWeight, ");\n ").concat(_Checkbox.checkboxTokens.descriptionLetterSpacing, ": var(").concat(_Radiobox.tokens.descriptionLetterSpacing, ");\n ").concat(_Checkbox.checkboxTokens.descriptionLineHeight, ": var(").concat(_Radiobox.tokens.descriptionLineHeight, ");\n\n ").concat(_Checkbox.checkboxTokens.fillColor, ": var(").concat(_Radiobox.tokens.fillColor, ");\n ").concat(_Checkbox.checkboxTokens.descriptionColor, ": var(").concat(_Radiobox.tokens.descriptionColor, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderColor, ": var(").concat(_Radiobox.tokens.triggerBorderColor, ");\n\n ").concat(_Checkbox.checkboxTokens.contentTopOffset, ": var(").concat(_Radiobox.tokens.contentTopOffset, ");\n ").concat(_Checkbox.checkboxTokens.contentLeftOffset, ": var(").concat(_Radiobox.tokens.contentLeftOffset, ");\n ").concat(_Checkbox.checkboxTokens.triggerSize, ": var(").concat(_Radiobox.tokens.triggerSize, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderRadius, ": var(").concat(_Radiobox.tokens.triggerBorderRadius, ");\n ").concat(_Checkbox.checkboxTokens.triggerMargin, ": var(").concat(_Radiobox.tokens.triggerMargin, ");\n");
16
+ var StyledEllipse = exports.StyledEllipse = /*#__PURE__*/_styledComponents["default"].div.withConfig({
17
+ componentId: "plasma-new-hope__sc-rqiilp-0"
18
+ })(["width:var(", ");height:var(", ");border-radius:var(", ");background-color:var(", ");transition:transform 0.3s ease-in-out;transform:scale(0);input:checked + label &{transform:scale(1);}"], _Radiobox.tokens.ellipseSize, _Radiobox.tokens.ellipseSize, _Radiobox.tokens.ellipseSize, _Radiobox.tokens.ellipseColor);
19
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", ";margin:var(", ");", ";position:relative;align-items:flex-start;display:flex;cursor:pointer;.", "{", ";}"], mappingOverride, _Radiobox.tokens.margin, /*#__PURE__*/(0, _mixins.applyNoUserSelect)(), _Radiobox.classes.singleLine, /*#__PURE__*/(0, _mixins.applyEllipsis)());