@salutejs/plasma-new-hope 0.79.0-dev.0 → 0.80.0-canary.1176.9060349970.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. package/cjs/components/Checkbox/Checkbox.css +13 -0
  2. package/cjs/components/Checkbox/Checkbox.js +22 -59
  3. package/cjs/components/Checkbox/Checkbox.js.map +1 -1
  4. package/cjs/components/Checkbox/Checkbox.styles.js +47 -0
  5. package/cjs/components/Checkbox/Checkbox.styles.js.map +1 -0
  6. package/cjs/components/Checkbox/Checkbox.styles_1266095.css +7 -0
  7. package/cjs/components/Checkbox/Checkbox.tokens.js +41 -0
  8. package/cjs/components/Checkbox/Checkbox.tokens.js.map +1 -0
  9. package/cjs/components/Checkbox/IconsSvg.js +9 -9
  10. package/cjs/components/Checkbox/IconsSvg.js.map +1 -1
  11. package/cjs/components/Checkbox/{_disabled → variations/_disabled}/base.js +2 -2
  12. package/cjs/components/Checkbox/variations/_disabled/base.js.map +1 -0
  13. package/cjs/components/Checkbox/variations/_disabled/base_1krdtt6.css +1 -0
  14. package/cjs/components/Checkbox/variations/_focused/base.js +14 -0
  15. package/cjs/components/Checkbox/variations/_focused/base.js.map +1 -0
  16. package/cjs/components/Checkbox/variations/_focused/base_hr4zpz.css +1 -0
  17. package/cjs/components/{Radiobox → Checkbox/variations}/_size/base.js +1 -1
  18. package/cjs/components/Checkbox/variations/_size/base.js.map +1 -0
  19. package/cjs/components/Checkbox/{_view → variations/_view}/base.js +2 -2
  20. package/cjs/components/Checkbox/variations/_view/base.js.map +1 -0
  21. package/cjs/components/Checkbox/variations/_view/base_x252cy.css +1 -0
  22. package/cjs/components/Radiobox/Radiobox.css +16 -0
  23. package/cjs/components/Radiobox/Radiobox.js +23 -32
  24. package/cjs/components/Radiobox/Radiobox.js.map +1 -1
  25. package/cjs/components/Radiobox/Radiobox.styles.js +19 -0
  26. package/cjs/components/Radiobox/Radiobox.styles.js.map +1 -0
  27. package/cjs/components/Radiobox/Radiobox.styles_1skfuon.css +2 -0
  28. package/cjs/components/Radiobox/Radiobox.tokens.js +41 -0
  29. package/cjs/components/Radiobox/Radiobox.tokens.js.map +1 -0
  30. package/cjs/components/{Checkbox/_focused → Radiobox/variations/_disabled}/base.js +2 -2
  31. package/cjs/components/Radiobox/variations/_disabled/base.js.map +1 -0
  32. package/cjs/components/Radiobox/variations/_disabled/base_6ae9j2.css +1 -0
  33. package/cjs/components/Radiobox/variations/_focused/base.js +9 -0
  34. package/cjs/components/Radiobox/variations/_focused/base.js.map +1 -0
  35. package/cjs/components/Radiobox/{_focused/base_1nruwxa.css → variations/_focused/base_1d7o4za.css} +1 -1
  36. package/cjs/components/{Checkbox → Radiobox/variations}/_size/base.js +1 -1
  37. package/cjs/components/Radiobox/variations/_size/base.js.map +1 -0
  38. package/cjs/components/Radiobox/variations/_view/base.js +9 -0
  39. package/cjs/components/Radiobox/variations/_view/base.js.map +1 -0
  40. package/cjs/components/Radiobox/{_view/base_wj0ueq.css → variations/_view/base_11n1fn3.css} +1 -1
  41. package/cjs/index.css +15 -15
  42. package/cjs/index.js +4 -0
  43. package/cjs/index.js.map +1 -1
  44. package/es/components/Checkbox/Checkbox.css +13 -0
  45. package/es/components/Checkbox/Checkbox.js +12 -43
  46. package/es/components/Checkbox/Checkbox.js.map +1 -1
  47. package/es/components/Checkbox/Checkbox.styles.js +37 -0
  48. package/es/components/Checkbox/Checkbox.styles.js.map +1 -0
  49. package/es/components/Checkbox/Checkbox.styles_1266095.css +7 -0
  50. package/es/components/Checkbox/Checkbox.tokens.js +36 -0
  51. package/es/components/Checkbox/Checkbox.tokens.js.map +1 -0
  52. package/es/components/Checkbox/IconsSvg.js +9 -9
  53. package/es/components/Checkbox/IconsSvg.js.map +1 -1
  54. package/es/components/Checkbox/{_disabled → variations/_disabled}/base.js +2 -2
  55. package/es/components/Checkbox/variations/_disabled/base.js.map +1 -0
  56. package/es/components/Checkbox/variations/_disabled/base_1krdtt6.css +1 -0
  57. package/es/components/Checkbox/variations/_focused/base.js +10 -0
  58. package/es/components/Checkbox/variations/_focused/base.js.map +1 -0
  59. package/es/components/Checkbox/variations/_focused/base_hr4zpz.css +1 -0
  60. package/es/components/Checkbox/{_size → variations/_size}/base.js +1 -1
  61. package/es/components/Checkbox/variations/_size/base.js.map +1 -0
  62. package/es/components/Checkbox/{_view → variations/_view}/base.js +2 -2
  63. package/es/components/Checkbox/variations/_view/base.js.map +1 -0
  64. package/es/components/Checkbox/variations/_view/base_x252cy.css +1 -0
  65. package/es/components/Radiobox/Radiobox.css +16 -0
  66. package/es/components/Radiobox/Radiobox.js +12 -21
  67. package/es/components/Radiobox/Radiobox.js.map +1 -1
  68. package/es/components/Radiobox/Radiobox.styles.js +14 -0
  69. package/es/components/Radiobox/Radiobox.styles.js.map +1 -0
  70. package/es/components/Radiobox/Radiobox.styles_1skfuon.css +2 -0
  71. package/es/components/Radiobox/Radiobox.tokens.js +36 -0
  72. package/es/components/Radiobox/Radiobox.tokens.js.map +1 -0
  73. package/es/components/{Checkbox/_focused → Radiobox/variations/_disabled}/base.js +2 -2
  74. package/es/components/Radiobox/variations/_disabled/base.js.map +1 -0
  75. package/es/components/Radiobox/variations/_disabled/base_6ae9j2.css +1 -0
  76. package/es/components/Radiobox/variations/_focused/base.js +5 -0
  77. package/es/components/Radiobox/variations/_focused/base.js.map +1 -0
  78. package/es/components/Radiobox/{_focused/base_1nruwxa.css → variations/_focused/base_1d7o4za.css} +1 -1
  79. package/es/components/Radiobox/{_size → variations/_size}/base.js +1 -1
  80. package/es/components/Radiobox/variations/_size/base.js.map +1 -0
  81. package/es/components/Radiobox/variations/_view/base.js +5 -0
  82. package/es/components/Radiobox/variations/_view/base.js.map +1 -0
  83. package/es/components/Radiobox/{_view/base_wj0ueq.css → variations/_view/base_11n1fn3.css} +1 -1
  84. package/es/index.css +15 -15
  85. package/es/index.js +2 -0
  86. package/es/index.js.map +1 -1
  87. package/package.json +2 -2
  88. package/styled-components/cjs/components/Checkbox/Checkbox.js +20 -40
  89. package/styled-components/cjs/components/Checkbox/Checkbox.styles.js +33 -0
  90. package/styled-components/cjs/components/Checkbox/Checkbox.tokens.js +39 -0
  91. package/styled-components/cjs/components/Checkbox/Checkbox.types.js +5 -0
  92. package/styled-components/cjs/components/Checkbox/IconsSvg.js +9 -9
  93. package/styled-components/cjs/components/Checkbox/index.js +8 -1
  94. package/styled-components/cjs/components/Checkbox/variations/_disabled/base.js +10 -0
  95. package/styled-components/cjs/components/Checkbox/variations/_focused/base.js +32 -0
  96. package/styled-components/cjs/components/Checkbox/variations/_view/base.js +10 -0
  97. package/styled-components/cjs/components/Checkbox/variations/_view/tokens.json +1 -0
  98. package/styled-components/cjs/components/Radiobox/Radiobox.js +15 -22
  99. package/styled-components/cjs/components/Radiobox/Radiobox.styles.js +19 -0
  100. package/styled-components/cjs/components/Radiobox/Radiobox.tokens.js +39 -0
  101. package/styled-components/cjs/components/Radiobox/index.js +8 -1
  102. package/styled-components/cjs/components/{Checkbox → Radiobox/variations}/_disabled/base.js +2 -1
  103. package/styled-components/cjs/components/Radiobox/variations/_focused/base.js +27 -0
  104. package/styled-components/cjs/components/Radiobox/variations/_view/base.js +9 -0
  105. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +14 -14
  106. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -0
  107. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +13 -12
  108. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +14 -14
  109. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -0
  110. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +13 -12
  111. package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +14 -14
  112. package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +13 -12
  113. package/styled-components/es/components/Checkbox/Checkbox.js +12 -33
  114. package/styled-components/es/components/Checkbox/Checkbox.styles.js +25 -0
  115. package/styled-components/es/components/Checkbox/Checkbox.tokens.js +33 -0
  116. package/styled-components/es/components/Checkbox/Checkbox.types.js +1 -0
  117. package/styled-components/es/components/Checkbox/IconsSvg.js +9 -9
  118. package/styled-components/es/components/Checkbox/index.js +2 -1
  119. package/styled-components/es/components/Checkbox/variations/_disabled/base.js +4 -0
  120. package/styled-components/es/components/Checkbox/variations/_focused/base.js +27 -0
  121. package/styled-components/es/components/Checkbox/variations/_view/base.js +4 -0
  122. package/styled-components/es/components/Checkbox/variations/_view/tokens.json +1 -0
  123. package/styled-components/es/components/Radiobox/Radiobox.js +13 -22
  124. package/styled-components/es/components/Radiobox/Radiobox.styles.js +12 -0
  125. package/styled-components/es/components/Radiobox/Radiobox.tokens.js +33 -0
  126. package/styled-components/es/components/Radiobox/index.js +2 -1
  127. package/styled-components/es/components/Radiobox/variations/_disabled/base.js +3 -0
  128. package/styled-components/es/components/Radiobox/variations/_focused/base.js +21 -0
  129. package/styled-components/es/components/Radiobox/variations/_view/base.js +3 -0
  130. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +14 -14
  131. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -0
  132. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +13 -12
  133. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +14 -14
  134. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -0
  135. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +13 -12
  136. package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +14 -14
  137. package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +13 -12
  138. package/types/components/Checkbox/Checkbox.d.ts +4 -37
  139. package/types/components/Checkbox/Checkbox.d.ts.map +1 -1
  140. package/types/components/Checkbox/Checkbox.styles.d.ts +9 -0
  141. package/types/components/Checkbox/Checkbox.styles.d.ts.map +1 -0
  142. package/types/components/Checkbox/Checkbox.tokens.d.ts +34 -0
  143. package/types/components/Checkbox/Checkbox.tokens.d.ts.map +1 -0
  144. package/types/components/Checkbox/Checkbox.types.d.ts +29 -0
  145. package/types/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  146. package/types/components/Checkbox/IconsSvg.d.ts.map +1 -1
  147. package/types/components/Checkbox/index.d.ts +2 -1
  148. package/types/components/Checkbox/index.d.ts.map +1 -1
  149. package/types/components/Checkbox/variations/_disabled/base.d.ts.map +1 -0
  150. package/types/components/Checkbox/variations/_focused/base.d.ts +6 -0
  151. package/types/components/Checkbox/variations/_focused/base.d.ts.map +1 -0
  152. package/types/components/Checkbox/variations/_size/base.d.ts.map +1 -0
  153. package/types/components/Checkbox/variations/_view/base.d.ts.map +1 -0
  154. package/types/components/Radiobox/Radiobox.d.ts +1 -1
  155. package/types/components/Radiobox/Radiobox.d.ts.map +1 -1
  156. package/types/components/Radiobox/Radiobox.styles.d.ts +4 -0
  157. package/types/components/Radiobox/Radiobox.styles.d.ts.map +1 -0
  158. package/types/components/Radiobox/Radiobox.tokens.d.ts +34 -0
  159. package/types/components/Radiobox/Radiobox.tokens.d.ts.map +1 -0
  160. package/types/components/Radiobox/index.d.ts +1 -0
  161. package/types/components/Radiobox/index.d.ts.map +1 -1
  162. package/types/components/Radiobox/variations/_disabled/base.d.ts.map +1 -0
  163. package/types/components/Radiobox/variations/_focused/base.d.ts.map +1 -0
  164. package/types/components/Radiobox/variations/_size/base.d.ts.map +1 -0
  165. package/types/components/Radiobox/variations/_view/base.d.ts.map +1 -0
  166. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +0 -1
  167. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  168. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
  169. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts.map +1 -1
  170. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  171. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +0 -1
  172. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  173. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
  174. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts.map +1 -1
  175. package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  176. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts +0 -1
  177. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  178. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts +1 -1
  179. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts.map +1 -1
  180. package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts.map +1 -1
  181. package/cjs/components/Checkbox/Checkbox_1q4l832.css +0 -7
  182. package/cjs/components/Checkbox/_disabled/base.js.map +0 -1
  183. package/cjs/components/Checkbox/_disabled/base_fyu17z.css +0 -1
  184. package/cjs/components/Checkbox/_focused/base.js.map +0 -1
  185. package/cjs/components/Checkbox/_focused/base_po5iiu.css +0 -1
  186. package/cjs/components/Checkbox/_size/base.js.map +0 -1
  187. package/cjs/components/Checkbox/_view/base.js.map +0 -1
  188. package/cjs/components/Checkbox/_view/base_1vqr3f.css +0 -1
  189. package/cjs/components/Radiobox/Radiobox_1ri2eqv.css +0 -2
  190. package/cjs/components/Radiobox/_disabled/base.js +0 -9
  191. package/cjs/components/Radiobox/_disabled/base.js.map +0 -1
  192. package/cjs/components/Radiobox/_disabled/base_1jca5bk.css +0 -1
  193. package/cjs/components/Radiobox/_focused/base.js +0 -9
  194. package/cjs/components/Radiobox/_focused/base.js.map +0 -1
  195. package/cjs/components/Radiobox/_size/base.js.map +0 -1
  196. package/cjs/components/Radiobox/_view/base.js +0 -9
  197. package/cjs/components/Radiobox/_view/base.js.map +0 -1
  198. package/es/components/Checkbox/Checkbox_1q4l832.css +0 -7
  199. package/es/components/Checkbox/_disabled/base.js.map +0 -1
  200. package/es/components/Checkbox/_disabled/base_fyu17z.css +0 -1
  201. package/es/components/Checkbox/_focused/base.js.map +0 -1
  202. package/es/components/Checkbox/_focused/base_po5iiu.css +0 -1
  203. package/es/components/Checkbox/_size/base.js.map +0 -1
  204. package/es/components/Checkbox/_view/base.js.map +0 -1
  205. package/es/components/Checkbox/_view/base_1vqr3f.css +0 -1
  206. package/es/components/Radiobox/Radiobox_1ri2eqv.css +0 -2
  207. package/es/components/Radiobox/_disabled/base.js +0 -5
  208. package/es/components/Radiobox/_disabled/base.js.map +0 -1
  209. package/es/components/Radiobox/_disabled/base_1jca5bk.css +0 -1
  210. package/es/components/Radiobox/_focused/base.js +0 -5
  211. package/es/components/Radiobox/_focused/base.js.map +0 -1
  212. package/es/components/Radiobox/_size/base.js.map +0 -1
  213. package/es/components/Radiobox/_view/base.js +0 -5
  214. package/es/components/Radiobox/_view/base.js.map +0 -1
  215. package/styled-components/cjs/components/Checkbox/_focused/base.js +0 -26
  216. package/styled-components/cjs/components/Checkbox/_view/base.js +0 -8
  217. package/styled-components/cjs/components/Checkbox/_view/tokens.json +0 -1
  218. package/styled-components/cjs/components/Radiobox/_disabled/base.js +0 -8
  219. package/styled-components/cjs/components/Radiobox/_focused/base.js +0 -26
  220. package/styled-components/cjs/components/Radiobox/_view/base.js +0 -8
  221. package/styled-components/es/components/Checkbox/_disabled/base.js +0 -2
  222. package/styled-components/es/components/Checkbox/_focused/base.js +0 -20
  223. package/styled-components/es/components/Checkbox/_view/base.js +0 -2
  224. package/styled-components/es/components/Checkbox/_view/tokens.json +0 -1
  225. package/styled-components/es/components/Radiobox/_disabled/base.js +0 -2
  226. package/styled-components/es/components/Radiobox/_focused/base.js +0 -20
  227. package/styled-components/es/components/Radiobox/_view/base.js +0 -2
  228. package/types/components/Checkbox/_disabled/base.d.ts.map +0 -1
  229. package/types/components/Checkbox/_focused/base.d.ts.map +0 -1
  230. package/types/components/Checkbox/_size/base.d.ts.map +0 -1
  231. package/types/components/Checkbox/_view/base.d.ts.map +0 -1
  232. package/types/components/Radiobox/_disabled/base.d.ts.map +0 -1
  233. package/types/components/Radiobox/_focused/base.d.ts.map +0 -1
  234. package/types/components/Radiobox/_size/base.d.ts.map +0 -1
  235. package/types/components/Radiobox/_view/base.d.ts +0 -2
  236. package/types/components/Radiobox/_view/base.d.ts.map +0 -1
  237. /package/cjs/components/Checkbox/{_size → variations/_size}/base_x642ct.css +0 -0
  238. /package/cjs/components/Radiobox/{_size → variations/_size}/base_x642ct.css +0 -0
  239. /package/es/components/Checkbox/{_size → variations/_size}/base_x642ct.css +0 -0
  240. /package/es/components/Radiobox/{_size → variations/_size}/base_x642ct.css +0 -0
  241. /package/styled-components/cjs/components/Checkbox/{_disabled → variations/_disabled}/tokens.json +0 -0
  242. /package/styled-components/cjs/components/Checkbox/{_focused → variations/_focused}/tokens.json +0 -0
  243. /package/styled-components/cjs/components/Checkbox/{_size → variations/_size}/base.js +0 -0
  244. /package/styled-components/cjs/components/Checkbox/{_size → variations/_size}/tokens.json +0 -0
  245. /package/styled-components/cjs/components/Radiobox/{_disabled → variations/_disabled}/tokens.json +0 -0
  246. /package/styled-components/cjs/components/Radiobox/{_focused → variations/_focused}/tokens.json +0 -0
  247. /package/styled-components/cjs/components/Radiobox/{_size → variations/_size}/base.js +0 -0
  248. /package/styled-components/cjs/components/Radiobox/{_size → variations/_size}/tokens.json +0 -0
  249. /package/styled-components/cjs/components/Radiobox/{_view → variations/_view}/tokens.json +0 -0
  250. /package/styled-components/es/components/Checkbox/{_disabled → variations/_disabled}/tokens.json +0 -0
  251. /package/styled-components/es/components/Checkbox/{_focused → variations/_focused}/tokens.json +0 -0
  252. /package/styled-components/es/components/Checkbox/{_size → variations/_size}/base.js +0 -0
  253. /package/styled-components/es/components/Checkbox/{_size → variations/_size}/tokens.json +0 -0
  254. /package/styled-components/es/components/Radiobox/{_disabled → variations/_disabled}/tokens.json +0 -0
  255. /package/styled-components/es/components/Radiobox/{_focused → variations/_focused}/tokens.json +0 -0
  256. /package/styled-components/es/components/Radiobox/{_size → variations/_size}/base.js +0 -0
  257. /package/styled-components/es/components/Radiobox/{_size → variations/_size}/tokens.json +0 -0
  258. /package/styled-components/es/components/Radiobox/{_view → variations/_view}/tokens.json +0 -0
  259. /package/types/components/Checkbox/{_disabled → variations/_disabled}/base.d.ts +0 -0
  260. /package/types/components/Checkbox/{_focused → variations/_size}/base.d.ts +0 -0
  261. /package/types/components/Checkbox/{_size → variations/_view}/base.d.ts +0 -0
  262. /package/types/components/{Checkbox/_view → Radiobox/variations/_disabled}/base.d.ts +0 -0
  263. /package/types/components/Radiobox/{_disabled → variations/_focused}/base.d.ts +0 -0
  264. /package/types/components/Radiobox/{_focused → variations/_size}/base.d.ts +0 -0
  265. /package/types/components/Radiobox/{_size → variations/_view}/base.d.ts +0 -0
@@ -1,30 +1,21 @@
1
- import './Radiobox_1ri2eqv.css';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
6
5
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
7
6
  var React = require('react');
8
- var react = require('@linaria/react');
9
7
  var plasmaCore = require('@salutejs/plasma-core');
10
- var Checkbox = require('../Checkbox/Checkbox.js');
8
+ var Checkbox_styles = require('../Checkbox/Checkbox.styles.js');
11
9
  var index = require('../../utils/index.js');
12
- var base$2 = require('./_view/base.js');
13
- var base$1 = require('./_size/base.js');
14
- var base$3 = require('./_disabled/base.js');
15
- var base$4 = require('./_focused/base.js');
10
+ var base$1 = require('./variations/_view/base.js');
11
+ var base = require('./variations/_size/base.js');
12
+ var base$2 = require('./variations/_disabled/base.js');
13
+ var base$3 = require('./variations/_focused/base.js');
14
+ var Radiobox_styles = require('./Radiobox.styles.js');
15
+ var Radiobox_tokens = require('./Radiobox.tokens.js');
16
16
 
17
17
  var _StyledEllipse;
18
18
  var _excluded = ["size", "view", "focused", "disabled", "id", "label", "description", "style", "className", "singleLine", "aria-label"];
19
-
20
- // NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части
21
-
22
- var StyledEllipse = /*#__PURE__*/react.styled('div')({
23
- name: "StyledEllipse",
24
- "class": "sv18cw2",
25
- propsAsIs: false
26
- });
27
- var base = "b1ls92xy";
28
19
  var radioboxRoot = function radioboxRoot(Root) {
29
20
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
30
21
  var size = props.size,
@@ -50,17 +41,17 @@ var radioboxRoot = function radioboxRoot(Root) {
50
41
  var isLabelAriaHidden = typeof label === 'string';
51
42
  var canFocused = focused ? 0 : -1;
52
43
  var hasContent = label || description;
53
- var singleLineClass = singleLine ? 'single-line' : undefined;
54
- var resetMargins = !hasContent ? 'reset-margins' : undefined;
44
+ var singleLineClass = singleLine ? Radiobox_tokens.classes.singleLine : undefined;
45
+ var onlyDescriptionClass = !label && description ? Radiobox_tokens.classes.onlyDescription : undefined;
55
46
  return /*#__PURE__*/React.createElement(Root, {
56
47
  view: view,
57
48
  size: size,
58
49
  disabled: disabled,
59
50
  focused: focused,
60
51
  style: style,
61
- className: index.cx(className, resetMargins),
52
+ className: className,
62
53
  tabIndex: -1
63
- }, /*#__PURE__*/React.createElement(Checkbox.StyledInput, _rollupPluginBabelHelpers.extends({}, rest, {
54
+ }, /*#__PURE__*/React.createElement(Checkbox_styles.StyledInput, _rollupPluginBabelHelpers.extends({}, rest, {
64
55
  id: radioboxId,
65
56
  ref: ref,
66
57
  type: "radio",
@@ -68,17 +59,17 @@ var radioboxRoot = function radioboxRoot(Root) {
68
59
  "aria-label": ariaLabel,
69
60
  "aria-describedby": uniqDescriptionId,
70
61
  tabIndex: canFocused
71
- })), /*#__PURE__*/React.createElement(Checkbox.StyledContentWrapper, {
62
+ })), /*#__PURE__*/React.createElement(Checkbox_styles.StyledContentWrapper, {
72
63
  htmlFor: radioboxId
73
- }, /*#__PURE__*/React.createElement(Checkbox.StyledTrigger, {
74
- className: index.cx('radiobox-trigger', resetMargins)
75
- }, _StyledEllipse || (_StyledEllipse = /*#__PURE__*/React.createElement(StyledEllipse, null))), hasContent && /*#__PURE__*/React.createElement(Checkbox.StyledContent, {
64
+ }, /*#__PURE__*/React.createElement(Checkbox_styles.StyledTrigger, {
65
+ className: Radiobox_tokens.classes.radioboxTrigger
66
+ }, _StyledEllipse || (_StyledEllipse = /*#__PURE__*/React.createElement(Radiobox_styles.StyledEllipse, null))), hasContent && /*#__PURE__*/React.createElement(Checkbox_styles.StyledContent, {
76
67
  className: singleLineClass
77
- }, label && /*#__PURE__*/React.createElement(Checkbox.StyledLabel, {
78
- className: singleLineClass,
68
+ }, label && /*#__PURE__*/React.createElement(Checkbox_styles.StyledLabel, {
69
+ className: index.cx(singleLineClass, onlyDescriptionClass),
79
70
  id: uniqLabelId,
80
71
  "aria-hidden": isLabelAriaHidden
81
- }, label), description && /*#__PURE__*/React.createElement(Checkbox.StyledDescription, {
72
+ }, label), description && /*#__PURE__*/React.createElement(Checkbox_styles.StyledDescription, {
82
73
  className: singleLineClass,
83
74
  id: uniqDescriptionId
84
75
  }, description))));
@@ -88,19 +79,19 @@ var radioboxConfig = {
88
79
  name: 'Radiobox',
89
80
  tag: 'div',
90
81
  layout: radioboxRoot,
91
- base: base,
82
+ base: Radiobox_styles.base,
92
83
  variations: {
93
84
  size: {
94
- css: base$1.base
85
+ css: base.base
95
86
  },
96
87
  view: {
97
- css: base$2.base
88
+ css: base$1.base
98
89
  },
99
90
  disabled: {
100
- css: base$3.base
91
+ css: base$2.base
101
92
  },
102
93
  focused: {
103
- css: base$4.base
94
+ css: base$3.base
104
95
  }
105
96
  },
106
97
  defaults: {
@@ -1 +1 @@
1
- {"version":3,"file":"Radiobox.js","sources":["../../../src/components/Radiobox/Radiobox.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\nimport { safeUseId, extractTextFrom } from '@salutejs/plasma-core';\nimport type { InputHTMLAttributes } from '@salutejs/plasma-core';\n\nimport { applyNoUserSelect, applyEllipsis } from '../../mixins';\nimport type { Filter, RootProps } from '../../engines/types';\nimport {\n StyledContentWrapper,\n StyledDescription,\n StyledInput,\n StyledLabel,\n StyledContent,\n StyledTrigger,\n BaseboxProps,\n} from '../Checkbox/Checkbox';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './_view/base';\nimport { base as sizeCSS } from './_size/base';\nimport { base as disabledCSS } from './_disabled/base';\nimport { base as focusedCSS } from './_focused/base';\n\n// NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части\nconst 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`;\n\nconst StyledEllipse = styled.div`\n width: var(--plasma-radiobox-ellipse-size);\n height: var(--plasma-radiobox-ellipse-size);\n border-radius: var(--plasma-radiobox-ellipse-size);\n\n background-color: var(--plasma-radiobox-ellipse-color);\n transition: transform 0.3s ease-in-out;\n transform: scale(0);\n\n input:checked + label & {\n transform: scale(1);\n }\n`;\n\nconst base = css`\n ${mappingOverride};\n\n .single-line {\n ${applyEllipsis()};\n }\n\n margin: var(--plasma-radiobox-margin);\n\n &.reset-margins {\n margin: 0;\n }\n\n ${applyNoUserSelect()};\n\n position: relative;\n align-items: flex-start;\n display: flex;\n cursor: pointer;\n`;\n\ntype RadioboxProps = Filter<InputHTMLAttributes<HTMLInputElement>, 'size'> & Omit<BaseboxProps, 'indeterminate'>;\n\nexport const radioboxRoot = (Root: RootProps<HTMLInputElement, RadioboxProps>) =>\n forwardRef<HTMLInputElement, RadioboxProps>((props, ref) => {\n const {\n size,\n view,\n focused,\n disabled,\n id,\n label,\n description,\n style,\n className,\n singleLine = false,\n 'aria-label': ariaLabelExternal,\n ...rest\n } = props;\n\n const uniqId = safeUseId();\n const uniqLabelId = `label-${uniqId}`;\n const uniqDescriptionId = `description-${uniqId}`;\n const radioboxId = id || `input-${uniqId}`;\n\n const ariaLabel = useMemo(() => ariaLabelExternal || extractTextFrom(label), [ariaLabelExternal, label]);\n const isLabelAriaHidden = typeof label === 'string';\n const canFocused = focused ? 0 : -1;\n const hasContent = label || description;\n const singleLineClass = singleLine ? 'single-line' : undefined;\n const resetMargins = !hasContent ? 'reset-margins' : undefined;\n\n return (\n <Root\n view={view}\n size={size}\n disabled={disabled}\n focused={focused}\n style={style}\n className={cx(className, resetMargins)}\n tabIndex={-1}\n >\n <StyledInput\n {...rest}\n id={radioboxId}\n ref={ref}\n type=\"radio\"\n disabled={disabled}\n aria-label={ariaLabel}\n aria-describedby={uniqDescriptionId}\n tabIndex={canFocused}\n />\n <StyledContentWrapper htmlFor={radioboxId}>\n <StyledTrigger className={cx('radiobox-trigger', resetMargins)}>\n <StyledEllipse />\n </StyledTrigger>\n {hasContent && (\n <StyledContent className={singleLineClass}>\n {label && (\n <StyledLabel\n className={singleLineClass}\n id={uniqLabelId}\n aria-hidden={isLabelAriaHidden}\n >\n {label}\n </StyledLabel>\n )}\n {description && (\n <StyledDescription className={singleLineClass} id={uniqDescriptionId}>\n {description}\n </StyledDescription>\n )}\n </StyledContent>\n )}\n </StyledContentWrapper>\n </Root>\n );\n });\n\nexport const radioboxConfig = {\n name: 'Radiobox',\n tag: 'div',\n layout: radioboxRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'accent',\n },\n};\n"],"names":["StyledEllipse","styled","name","class","propsAsIs","base","radioboxRoot","Root","forwardRef","props","ref","size","view","focused","disabled","id","label","description","style","className","_props$singleLine","singleLine","ariaLabelExternal","rest","_excluded","uniqId","safeUseId","uniqLabelId","concat","uniqDescriptionId","radioboxId","ariaLabel","useMemo","extractTextFrom","isLabelAriaHidden","canFocused","hasContent","singleLineClass","undefined","resetMargins","React","createElement","cx","tabIndex","StyledInput","_extends","type","StyledContentWrapper","htmlFor","StyledTrigger","_StyledEllipse","StyledContent","StyledLabel","StyledDescription","radioboxConfig","tag","layout","variations","css","sizeCSS","viewCSS","disabledCSS","focusedCSS","defaults"],"mappings":"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"}
1
+ {"version":3,"file":"Radiobox.js","sources":["../../../src/components/Radiobox/Radiobox.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { safeUseId, extractTextFrom } from '@salutejs/plasma-core';\nimport type { InputHTMLAttributes } from '@salutejs/plasma-core';\n\nimport type { Filter, RootProps } from '../../engines/types';\nimport {\n StyledContentWrapper,\n StyledDescription,\n StyledInput,\n StyledLabel,\n StyledContent,\n StyledTrigger,\n} from '../Checkbox/Checkbox.styles';\nimport { BaseboxProps } from '../Checkbox/Checkbox.types';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as focusedCSS } from './variations/_focused/base';\nimport { StyledEllipse, base } from './Radiobox.styles';\nimport { classes } from './Radiobox.tokens';\n\ntype RadioboxProps = Filter<InputHTMLAttributes<HTMLInputElement>, 'size'> & Omit<BaseboxProps, 'indeterminate'>;\n\nexport const radioboxRoot = (Root: RootProps<HTMLInputElement, RadioboxProps>) =>\n forwardRef<HTMLInputElement, RadioboxProps>((props, ref) => {\n const {\n size,\n view,\n focused,\n disabled,\n id,\n label,\n description,\n style,\n className,\n singleLine = false,\n 'aria-label': ariaLabelExternal,\n ...rest\n } = props;\n\n const uniqId = safeUseId();\n const uniqLabelId = `label-${uniqId}`;\n const uniqDescriptionId = `description-${uniqId}`;\n const radioboxId = id || `input-${uniqId}`;\n\n const ariaLabel = useMemo(() => ariaLabelExternal || extractTextFrom(label), [ariaLabelExternal, label]);\n const isLabelAriaHidden = typeof label === 'string';\n const canFocused = focused ? 0 : -1;\n const hasContent = label || description;\n const singleLineClass = singleLine ? classes.singleLine : undefined;\n const onlyDescriptionClass = !label && description ? classes.onlyDescription : undefined;\n\n return (\n <Root\n view={view}\n size={size}\n disabled={disabled}\n focused={focused}\n style={style}\n className={className}\n tabIndex={-1}\n >\n <StyledInput\n {...rest}\n id={radioboxId}\n ref={ref}\n type=\"radio\"\n disabled={disabled}\n aria-label={ariaLabel}\n aria-describedby={uniqDescriptionId}\n tabIndex={canFocused}\n />\n <StyledContentWrapper htmlFor={radioboxId}>\n <StyledTrigger className={classes.radioboxTrigger}>\n <StyledEllipse />\n </StyledTrigger>\n {hasContent && (\n <StyledContent className={singleLineClass}>\n {label && (\n <StyledLabel\n className={cx(singleLineClass, onlyDescriptionClass)}\n id={uniqLabelId}\n aria-hidden={isLabelAriaHidden}\n >\n {label}\n </StyledLabel>\n )}\n {description && (\n <StyledDescription className={singleLineClass} id={uniqDescriptionId}>\n {description}\n </StyledDescription>\n )}\n </StyledContent>\n )}\n </StyledContentWrapper>\n </Root>\n );\n });\n\nexport const radioboxConfig = {\n name: 'Radiobox',\n tag: 'div',\n layout: radioboxRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'accent',\n },\n};\n"],"names":["radioboxRoot","Root","forwardRef","props","ref","size","view","focused","disabled","id","label","description","style","className","_props$singleLine","singleLine","ariaLabelExternal","rest","_objectWithoutProperties","_excluded","uniqId","safeUseId","uniqLabelId","concat","uniqDescriptionId","radioboxId","ariaLabel","useMemo","extractTextFrom","isLabelAriaHidden","canFocused","hasContent","singleLineClass","classes","undefined","onlyDescriptionClass","onlyDescription","React","createElement","tabIndex","StyledInput","_extends","type","StyledContentWrapper","htmlFor","StyledTrigger","radioboxTrigger","_StyledEllipse","StyledEllipse","StyledContent","StyledLabel","cx","StyledDescription","radioboxConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","disabledCSS","focusedCSS","defaults"],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ import './Radiobox.styles_1skfuon.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var react = require('@linaria/react');
7
+
8
+ // NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части
9
+
10
+ var StyledEllipse = /*#__PURE__*/react.styled('div')({
11
+ name: "StyledEllipse",
12
+ "class": "s14xglkp",
13
+ propsAsIs: false
14
+ });
15
+ var base = "bdte4ex";
16
+
17
+ exports.StyledEllipse = StyledEllipse;
18
+ exports.base = base;
19
+ //# sourceMappingURL=Radiobox.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radiobox.styles.js","sources":["../../../src/components/Radiobox/Radiobox.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { checkboxTokens } from '../Checkbox';\nimport { applyEllipsis, applyNoUserSelect } from '../../mixins';\n\nimport { classes, tokens } from './Radiobox.tokens';\n\n// NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части\nconst mappingOverride = `\n ${checkboxTokens.labelFontFamily}: var(${tokens.labelFontFamily});\n ${checkboxTokens.labelFontSize}: var(${tokens.labelFontSize});\n ${checkboxTokens.labelFontStyle}: var(${tokens.labelFontStyle});\n ${checkboxTokens.labelFontWeight}: var(${tokens.labelFontWeight});\n ${checkboxTokens.labelLetterSpacing}: var(${tokens.labelLetterSpacing});\n ${checkboxTokens.labelLineHeight}: var(${tokens.labelLineHeight});\n ${checkboxTokens.descriptionMarginTop}: var(${tokens.descriptionMarginTop});\n ${checkboxTokens.descriptionFontFamily}: var(${tokens.descriptionFontFamily});\n ${checkboxTokens.descriptionFontSize}: var(${tokens.descriptionFontSize});\n ${checkboxTokens.descriptionFontStyle}: var(${tokens.descriptionFontStyle});\n ${checkboxTokens.descriptionFontWeight}: var(${tokens.descriptionFontWeight});\n ${checkboxTokens.descriptionLetterSpacing}: var(${tokens.descriptionLetterSpacing});\n ${checkboxTokens.descriptionLineHeight}: var(${tokens.descriptionLineHeight});\n\n ${checkboxTokens.fillColor}: var(${tokens.fillColor});\n ${checkboxTokens.descriptionColor}: var(${tokens.descriptionColor});\n ${checkboxTokens.triggerBorderColor}: var(${tokens.triggerBorderColor});\n\n ${checkboxTokens.contentTopOffset}: var(${tokens.contentTopOffset});\n ${checkboxTokens.contentLeftOffset}: var(${tokens.contentLeftOffset});\n ${checkboxTokens.triggerSize}: var(${tokens.triggerSize});\n ${checkboxTokens.triggerBorderRadius}: var(${tokens.triggerBorderRadius});\n ${checkboxTokens.triggerMargin}: var(${tokens.triggerMargin});\n`;\n\nexport const StyledEllipse = styled.div`\n width: var(${tokens.ellipseSize});\n height: var(${tokens.ellipseSize});\n border-radius: var(${tokens.ellipseSize});\n\n background-color: var(${tokens.ellipseColor});\n transition: transform 0.3s ease-in-out;\n transform: scale(0);\n\n input:checked + label & {\n transform: scale(1);\n }\n`;\n\nexport const base = css`\n ${mappingOverride};\n\n margin: var(${tokens.margin});\n\n ${applyNoUserSelect()};\n\n position: relative;\n align-items: flex-start;\n display: flex;\n cursor: pointer;\n\n .${classes.singleLine} {\n ${applyEllipsis()};\n }\n`;\n"],"names":["StyledEllipse","styled","name","class","propsAsIs","base"],"mappings":";;;;;;AAQA;;AA2BO,IAAMA,aAAa,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAYlC,EAAA;AAEM,IAAMC,IAAI,GAehB;;;;;"}
@@ -0,0 +1,2 @@
1
+ .s14xglkp{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);-webkit-transition:-webkit-transform 0.3s ease-in-out;-webkit-transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);}input:checked + label .s14xglkp{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
2
+ .bdte4ex{--plasma-checkbox-label-font-family:var(--plasma-radiobox-label-font-family);--plasma-checkbox-label-font-size:var(--plasma-radiobox-label-font-size);--plasma-checkbox-label-font-style:var(--plasma-radiobox-label-font-style);--plasma-checkbox-label-font-weight:var(--plasma-radiobox-label-font-weight);--plasma-checkbox-label-letter-spacing:var(--plasma-radiobox-label-letter-spacing);--plasma-checkbox-label-line-height:var(--plasma-radiobox-label-line-height);--plasma-checkbox-description-margin-top:var(--plasma-checkbox-description-margin-top);--plasma-checkbox-description-font-family:var(--plasma-radiobox-description-font-family);--plasma-checkbox-description-font-size:var(--plasma-radiobox-description-font-size);--plasma-checkbox-description-font-style:var(--plasma-radiobox-description-font-style);--plasma-checkbox-description-font-weight:var(--plasma-radiobox-description-font-weight);--plasma-checkbox-description-letter-spacing:var(--plasma-radiobox-description-letter-spacing);--plasma-checkbox-description-line-height:var(--plasma-radiobox-description-line-height);--plasma-checkbox-fill-color:var(--plasma-radiobox-fill-color);--plasma-checkbox-description-color:var(--plasma-radiobox-description-color);--plasma-checkbox-trigger-border-color:var(--plasma-radiobox-trigger-border-color);--plasma-checkbox-content-top-offset:var(--plasma-radiobox-content-top-offset);--plasma-checkbox-content-left-offset:var(--plasma-radiobox-content-left-offset);--plasma-checkbox-trigger-size:var(--plasma-radiobox-trigger-size);--plasma-checkbox-trigger-border-radius:var(--plasma-radiobox-trigger-border-radius);--plasma-checkbox-trigger-margin:var(--plasma-radiobox-trigger-margin);margin:var(--plasma-radiobox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}.bdte4ex .single-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var classes = {
6
+ singleLine: 'single-line',
7
+ radioboxTrigger: 'radiobox-trigger',
8
+ onlyDescription: 'only-description'
9
+ };
10
+ var tokens = {
11
+ labelFontFamily: '--plasma-radiobox-label-font-family',
12
+ labelFontSize: '--plasma-radiobox-label-font-size',
13
+ labelFontStyle: '--plasma-radiobox-label-font-style',
14
+ labelFontWeight: '--plasma-radiobox-label-font-weight',
15
+ labelLetterSpacing: '--plasma-radiobox-label-letter-spacing',
16
+ labelLineHeight: '--plasma-radiobox-label-line-height',
17
+ descriptionMarginTop: '--plasma-checkbox-description-margin-top',
18
+ descriptionFontFamily: '--plasma-radiobox-description-font-family',
19
+ descriptionFontSize: '--plasma-radiobox-description-font-size',
20
+ descriptionFontStyle: '--plasma-radiobox-description-font-style',
21
+ descriptionFontWeight: '--plasma-radiobox-description-font-weight',
22
+ descriptionLetterSpacing: '--plasma-radiobox-description-letter-spacing',
23
+ descriptionLineHeight: '--plasma-radiobox-description-line-height',
24
+ fillColor: '--plasma-radiobox-fill-color',
25
+ descriptionColor: '--plasma-radiobox-description-color',
26
+ triggerBorderColor: '--plasma-radiobox-trigger-border-color',
27
+ contentTopOffset: '--plasma-radiobox-content-top-offset',
28
+ contentLeftOffset: '--plasma-radiobox-content-left-offset',
29
+ triggerSize: '--plasma-radiobox-trigger-size',
30
+ triggerBorderRadius: '--plasma-radiobox-trigger-border-radius',
31
+ triggerMargin: '--plasma-radiobox-trigger-margin',
32
+ margin: '--plasma-radiobox-margin',
33
+ ellipseSize: '--plasma-radiobox-ellipse-size',
34
+ ellipseColor: '--plasma-radiobox-ellipse-color',
35
+ disabledOpacity: '--plasma-radiobox-disabled-opacity',
36
+ focusColor: '--plasma-radiobox-focus-color'
37
+ };
38
+
39
+ exports.classes = classes;
40
+ exports.tokens = tokens;
41
+ //# sourceMappingURL=Radiobox.tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radiobox.tokens.js","sources":["../../../src/components/Radiobox/Radiobox.tokens.ts"],"sourcesContent":["export const classes = {\n singleLine: 'single-line',\n radioboxTrigger: 'radiobox-trigger',\n onlyDescription: 'only-description',\n};\n\nexport const tokens = {\n labelFontFamily: '--plasma-radiobox-label-font-family',\n labelFontSize: '--plasma-radiobox-label-font-size',\n labelFontStyle: '--plasma-radiobox-label-font-style',\n labelFontWeight: '--plasma-radiobox-label-font-weight',\n labelLetterSpacing: '--plasma-radiobox-label-letter-spacing',\n labelLineHeight: '--plasma-radiobox-label-line-height',\n descriptionMarginTop: '--plasma-checkbox-description-margin-top',\n descriptionFontFamily: '--plasma-radiobox-description-font-family',\n descriptionFontSize: '--plasma-radiobox-description-font-size',\n descriptionFontStyle: '--plasma-radiobox-description-font-style',\n descriptionFontWeight: '--plasma-radiobox-description-font-weight',\n descriptionLetterSpacing: '--plasma-radiobox-description-letter-spacing',\n descriptionLineHeight: '--plasma-radiobox-description-line-height',\n\n fillColor: '--plasma-radiobox-fill-color',\n descriptionColor: '--plasma-radiobox-description-color',\n triggerBorderColor: '--plasma-radiobox-trigger-border-color',\n\n contentTopOffset: '--plasma-radiobox-content-top-offset',\n contentLeftOffset: '--plasma-radiobox-content-left-offset',\n triggerSize: '--plasma-radiobox-trigger-size',\n triggerBorderRadius: '--plasma-radiobox-trigger-border-radius',\n triggerMargin: '--plasma-radiobox-trigger-margin',\n margin: '--plasma-radiobox-margin',\n\n ellipseSize: '--plasma-radiobox-ellipse-size',\n ellipseColor: '--plasma-radiobox-ellipse-color',\n\n disabledOpacity: '--plasma-radiobox-disabled-opacity',\n focusColor: '--plasma-radiobox-focus-color',\n};\n"],"names":["classes","singleLine","radioboxTrigger","onlyDescription","tokens","labelFontFamily","labelFontSize","labelFontStyle","labelFontWeight","labelLetterSpacing","labelLineHeight","descriptionMarginTop","descriptionFontFamily","descriptionFontSize","descriptionFontStyle","descriptionFontWeight","descriptionLetterSpacing","descriptionLineHeight","fillColor","descriptionColor","triggerBorderColor","contentTopOffset","contentLeftOffset","triggerSize","triggerBorderRadius","triggerMargin","margin","ellipseSize","ellipseColor","disabledOpacity","focusColor"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,eAAe,EAAE,kBAAkB;AACnCC,EAAAA,eAAe,EAAE,kBAAA;AACrB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,cAAc,EAAE,oCAAoC;AACpDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,kBAAkB,EAAE,wCAAwC;AAC5DC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,oBAAoB,EAAE,0CAA0C;AAChEC,EAAAA,qBAAqB,EAAE,2CAA2C;AAClEC,EAAAA,mBAAmB,EAAE,yCAAyC;AAC9DC,EAAAA,oBAAoB,EAAE,0CAA0C;AAChEC,EAAAA,qBAAqB,EAAE,2CAA2C;AAClEC,EAAAA,wBAAwB,EAAE,8CAA8C;AACxEC,EAAAA,qBAAqB,EAAE,2CAA2C;AAElEC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,gBAAgB,EAAE,qCAAqC;AACvDC,EAAAA,kBAAkB,EAAE,wCAAwC;AAE5DC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAAA,WAAW,EAAE,gCAAgC;AAC7CC,EAAAA,mBAAmB,EAAE,yCAAyC;AAC9DC,EAAAA,aAAa,EAAE,kCAAkC;AACjDC,EAAAA,MAAM,EAAE,0BAA0B;AAElCC,EAAAA,WAAW,EAAE,gCAAgC;AAC7CC,EAAAA,YAAY,EAAE,iCAAiC;AAE/CC,EAAAA,eAAe,EAAE,oCAAoC;AACrDC,EAAAA,UAAU,EAAE,+BAAA;AAChB;;;;;"}
@@ -1,9 +1,9 @@
1
- import './base_po5iiu.css';
1
+ import './base_6ae9j2.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var base = "brrdlt4";
6
+ var base = "bmkf7xj";
7
7
 
8
8
  exports.base = base;
9
9
  //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Radiobox/variations/_disabled/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Radiobox.tokens';\n\nexport const base = css`\n input:disabled + label {\n opacity: var(${tokens.disabledOpacity});\n }\n\n input:disabled + label {\n cursor: not-allowed;\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAQhB;;;;"}
@@ -0,0 +1 @@
1
+ .bmkf7xj input:disabled + label{opacity:var(--plasma-radiobox-disabled-opacity);}.bmkf7xj input:disabled + label{cursor:not-allowed;}
@@ -0,0 +1,9 @@
1
+ import './base_1d7o4za.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "buxu4te";
7
+
8
+ exports.base = base;
9
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Radiobox/variations/_focused/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { addFocus } from '../../../../mixins';\nimport { classes, tokens } from '../../Radiobox.tokens';\n\nexport const base = css`\n .${classes.radioboxTrigger} {\n ${addFocus({\n outlineOffset: '0',\n outlineSize: '0.125rem',\n outlineRadius: `var(${tokens.triggerBorderRadius})`,\n outlineColor: 'transparent',\n })}\n }\n\n input[data-focus-visible-added] + label .${classes.radioboxTrigger} {\n border-color: transparent;\n ${addFocus({\n outlineOffset: '-0.125rem',\n outlineSize: '0.125rem',\n outlineRadius: `var(${tokens.triggerBorderRadius})`,\n outlineColor: `var(${tokens.focusColor})`,\n customFocusRules: `\n &::before {\n box-shadow: 0 0 0 0.125rem var(${tokens.focusColor});\n }\n `,\n })}\n }\n\n input[data-focus-visible-added]:checked + label .${classes.radioboxTrigger} {\n ${addFocus({\n outlineOffset: '-0.125rem',\n outlineSize: '0.063rem',\n outlineRadius: `calc(var(${tokens.triggerBorderRadius}) + 0.125rem)`,\n outlineColor: `var(${tokens.focusColor})`,\n customFocusRules: `\n &::before {\n box-shadow: 0 0 0 0.063rem var(${tokens.focusColor});\n }\n `,\n })}\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAsChB;;;;"}
@@ -1 +1 @@
1
- .bp7016u .radiobox-trigger{position:relative;}.bp7016u .radiobox-trigger::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.bp7016u .radiobox-trigger.focus-visible:focus::before,.bp7016u .radiobox-trigger[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.bp7016u input[data-focus-visible-added] + label .radiobox-trigger{border-color:transparent;position:relative;}.bp7016u input[data-focus-visible-added] + label .radiobox-trigger::before{content:'';position:absolute;top:-0.188rem;left:-0.188rem;right:-0.188rem;bottom:-0.188rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.bp7016u input[data-focus-visible-added] + label .radiobox-trigger::before{box-shadow:0 0 0 0.125rem var(--plasma-radiobox-focus-color);}.bp7016u input[data-focus-visible-added]:checked + label .radiobox-trigger{position:relative;}.bp7016u input[data-focus-visible-added]:checked + label .radiobox-trigger::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-radiobox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.bp7016u input[data-focus-visible-added]:checked + label .radiobox-trigger::before{box-shadow:0 0 0 0.063rem var(--plasma-radiobox-focus-color);}
1
+ .buxu4te .radiobox-trigger{position:relative;}.buxu4te .radiobox-trigger::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.buxu4te .radiobox-trigger.focus-visible:focus::before,.buxu4te .radiobox-trigger[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.buxu4te input[data-focus-visible-added] + label .radiobox-trigger{border-color:transparent;position:relative;}.buxu4te input[data-focus-visible-added] + label .radiobox-trigger::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.buxu4te input[data-focus-visible-added] + label .radiobox-trigger::before{box-shadow:0 0 0 0.125rem var(--plasma-radiobox-focus-color);}.buxu4te input[data-focus-visible-added]:checked + label .radiobox-trigger{position:relative;}.buxu4te input[data-focus-visible-added]:checked + label .radiobox-trigger::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-radiobox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.buxu4te input[data-focus-visible-added]:checked + label .radiobox-trigger::before{box-shadow:0 0 0 0.063rem var(--plasma-radiobox-focus-color);}
@@ -3,7 +3,7 @@ import './base_x642ct.css';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var base = "b17b3eb7";
6
+ var base = "b1eflyxe";
7
7
 
8
8
  exports.base = base;
9
9
  //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Radiobox/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -0,0 +1,9 @@
1
+ import './base_11n1fn3.css';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var base = "b1yt66an";
7
+
8
+ exports.base = base;
9
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Radiobox/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Radiobox.tokens';\n\nexport const base = css`\n input:checked + label .${classes.radioboxTrigger} {\n border: none;\n background: var(${tokens.fillColor});\n border-color: var(${tokens.fillColor});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAMhB;;;;"}
@@ -1 +1 @@
1
- .b1lfwhkj input:checked + label .radiobox-trigger{border:none;background:var(--plasma-radiobox-fill-color);border-color:var(--plasma-radiobox-fill-color);}
1
+ .b1yt66an input:checked + label .radiobox-trigger{border:none;background:var(--plasma-radiobox-fill-color);border-color:var(--plasma-radiobox-fill-color);}
package/cjs/index.css CHANGED
@@ -69,28 +69,28 @@
69
69
  .Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
70
70
  .Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
71
71
 
72
- .base_1vqr3f_bjda290__b2f2c792 input[type='checkbox']:indeterminate + label .base_1vqr3f_checkboxTrigger__b2f2c792{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}.base_1vqr3f_bjda290__b2f2c792 input:checked + label .base_1vqr3f_checkboxTrigger__b2f2c792{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}
72
+ .base_x252cy_b17hdes8__856a05b7 input[type='checkbox']:indeterminate + .base_x252cy_s1u3nd7e__856a05b7 .base_x252cy_sft3zxv__856a05b7{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}.base_x252cy_b17hdes8__856a05b7 input:checked + .base_x252cy_s1u3nd7e__856a05b7 .base_x252cy_sft3zxv__856a05b7{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}
73
73
 
74
- .base_fyu17z_b7dgytu__1e125c64 input:disabled + label{opacity:var(--plasma-checkbox-disabled-opacity);}.base_fyu17z_b7dgytu__1e125c64 input:disabled + label{cursor:not-allowed;}
74
+ .base_1krdtt6_bxbqqc3__2d5e2cdd input:disabled + .base_1krdtt6_s1u3nd7e__2d5e2cdd{opacity:var(--plasma-checkbox-disabled-opacity);}.base_1krdtt6_bxbqqc3__2d5e2cdd input:disabled + .base_1krdtt6_s1u3nd7e__2d5e2cdd{cursor:not-allowed;}
75
75
 
76
- .base_po5iiu_brrdlt4__42bc7689 .base_po5iiu_checkboxTrigger__42bc7689{position:relative;}.base_po5iiu_brrdlt4__42bc7689 .base_po5iiu_checkboxTrigger__42bc7689::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-checkbox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_po5iiu_brrdlt4__42bc7689 .base_po5iiu_checkboxTrigger__42bc7689.base_po5iiu_focusVisible__42bc7689:focus::before,.base_po5iiu_brrdlt4__42bc7689 .base_po5iiu_checkboxTrigger__42bc7689[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.base_po5iiu_brrdlt4__42bc7689 input[data-focus-visible-added] + label .base_po5iiu_checkboxTrigger__42bc7689{border-color:transparent;position:relative;}.base_po5iiu_brrdlt4__42bc7689 input[data-focus-visible-added] + label .base_po5iiu_checkboxTrigger__42bc7689::before{content:'';position:absolute;top:-0.188rem;left:-0.188rem;right:-0.188rem;bottom:-0.188rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-checkbox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_po5iiu_brrdlt4__42bc7689 input[data-focus-visible-added] + label .base_po5iiu_checkboxTrigger__42bc7689::before{box-shadow:0 0 0 0.125rem var(--plasma-checkbox-focus-color);}.base_po5iiu_brrdlt4__42bc7689 input[data-focus-visible-added]:checked + label .base_po5iiu_checkboxTrigger__42bc7689,.base_po5iiu_brrdlt4__42bc7689 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_po5iiu_checkboxTrigger__42bc7689{position:relative;}.base_po5iiu_brrdlt4__42bc7689 input[data-focus-visible-added]:checked + label .base_po5iiu_checkboxTrigger__42bc7689::before,.base_po5iiu_brrdlt4__42bc7689 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_po5iiu_checkboxTrigger__42bc7689::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-checkbox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_po5iiu_brrdlt4__42bc7689 input[data-focus-visible-added]:checked + label .base_po5iiu_checkboxTrigger__42bc7689::before,.base_po5iiu_brrdlt4__42bc7689 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_po5iiu_checkboxTrigger__42bc7689::before{box-shadow:0 0 0 0.063rem var(--plasma-checkbox-focus-color);}
76
+ .base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059{position:relative;}.base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-checkbox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059.base_hr4zpz_focusVisible__d6390059:focus::before,.base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added] + label .base_hr4zpz_checkboxTrigger__d6390059{border-color:transparent;position:relative;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added] + label .base_hr4zpz_checkboxTrigger__d6390059::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-checkbox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added] + label .base_hr4zpz_checkboxTrigger__d6390059::before{box-shadow:0 0 0 0.125rem var(--plasma-checkbox-focus-color);}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added]:checked + label .base_hr4zpz_checkboxTrigger__d6390059,.base_hr4zpz_b1y5wkm1__d6390059 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_hr4zpz_checkboxTrigger__d6390059{position:relative;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added]:checked + label .base_hr4zpz_checkboxTrigger__d6390059::before,.base_hr4zpz_b1y5wkm1__d6390059 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_hr4zpz_checkboxTrigger__d6390059::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-checkbox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added]:checked + label .base_hr4zpz_checkboxTrigger__d6390059::before,.base_hr4zpz_b1y5wkm1__d6390059 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_hr4zpz_checkboxTrigger__d6390059::before{box-shadow:0 0 0 0.063rem var(--plasma-checkbox-focus-color);}
77
77
 
78
- .Checkbox_1q4l832_so9l3q2__ea6445d5{position:absolute;width:1px;height:1px;overflow:hidden;-webkit-clip:rect(0 0 0 0);clip:rect(0 0 0 0);}.Checkbox_1q4l832_so9l3q2__ea6445d5:focus{outline:0 none;}
79
- .Checkbox_1q4l832_s1o5tixe__ea6445d5{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:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:transparent;border:0.125rem solid var(--plasma-checkbox-trigger-border-color);box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;}input:not(:indeterminate) + label .Checkbox_1q4l832_s1o5tixe__ea6445d5 div{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 0.15s ease-in-out;-webkit-transition:transform 0.15s ease-in-out;transition:transform 0.15s ease-in-out;}input:checked + label .Checkbox_1q4l832_s1o5tixe__ea6445d5 div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
80
- .Checkbox_1q4l832_s136y9ve__ea6445d5{position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;cursor:inherit;}
81
- .Checkbox_1q4l832_s8lcvtu__ea6445d5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:var(--plasma-checkbox-content-top-offset);margin-left:var(--plasma-checkbox-content-left-offset);}
82
- .Checkbox_1q4l832_s1dif9mh__ea6445d5{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);-webkit-letter-spacing:var(--plasma-checkbox-label-letter-spacing);-moz-letter-spacing:var(--plasma-checkbox-label-letter-spacing);-ms-letter-spacing:var(--plasma-checkbox-label-letter-spacing);letter-spacing:var(--plasma-checkbox-label-letter-spacing);line-height:var(--plasma-checkbox-label-line-height);}
83
- .Checkbox_1q4l832_s1v492xg__ea6445d5{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);-webkit-letter-spacing:var(--plasma-checkbox-description-letter-spacing);-moz-letter-spacing:var(--plasma-checkbox-description-letter-spacing);-ms-letter-spacing:var(--plasma-checkbox-description-letter-spacing);letter-spacing:var(--plasma-checkbox-description-letter-spacing);line-height:var(--plasma-checkbox-description-line-height);}
84
- .Checkbox_1q4l832_b1kn3qi9__ea6445d5{margin:var(--plasma-checkbox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}.Checkbox_1q4l832_b1kn3qi9__ea6445d5 .Checkbox_1q4l832_singleLine__ea6445d5{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Checkbox_1q4l832_b1kn3qi9__ea6445d5.Checkbox_1q4l832_resetMargins__ea6445d5{margin:0;}
78
+ .Checkbox_styles_1266095_b1udywkg__e7223270{margin:var(--plasma-checkbox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}.Checkbox_styles_1266095_b1udywkg__e7223270 .Checkbox_styles_1266095_singleLine__e7223270{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
79
+ .Checkbox_styles_1266095_s165w87d__e7223270{position:absolute;width:1px;height:1px;overflow:hidden;-webkit-clip:rect(0 0 0 0);clip:rect(0 0 0 0);}.Checkbox_styles_1266095_s165w87d__e7223270:focus{outline:0 none;}
80
+ .Checkbox_styles_1266095_sft3zxv__e7223270{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:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:transparent;border:0.125rem solid var(--plasma-checkbox-trigger-border-color);box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;}input:not(:indeterminate) + label .Checkbox_styles_1266095_sft3zxv__e7223270 div{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 0.15s ease-in-out;-webkit-transition:transform 0.15s ease-in-out;transition:transform 0.15s ease-in-out;}input:checked + label .Checkbox_styles_1266095_sft3zxv__e7223270 div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
81
+ .Checkbox_styles_1266095_s1u3nd7e__e7223270{position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;cursor:inherit;}
82
+ .Checkbox_styles_1266095_shwv1in__e7223270{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:var(--plasma-checkbox-content-top-offset);margin-left:var(--plasma-checkbox-content-left-offset);}
83
+ .Checkbox_styles_1266095_s1my1ay__e7223270{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);-webkit-letter-spacing:var(--plasma-checkbox-label-letter-spacing);-moz-letter-spacing:var(--plasma-checkbox-label-letter-spacing);-ms-letter-spacing:var(--plasma-checkbox-label-letter-spacing);letter-spacing:var(--plasma-checkbox-label-letter-spacing);line-height:var(--plasma-checkbox-label-line-height);}
84
+ .Checkbox_styles_1266095_s14u8fnn__e7223270{margin-top:var(--plasma-checkbox-description-margin-top);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);-webkit-letter-spacing:var(--plasma-checkbox-description-letter-spacing);-moz-letter-spacing:var(--plasma-checkbox-description-letter-spacing);-ms-letter-spacing:var(--plasma-checkbox-description-letter-spacing);letter-spacing:var(--plasma-checkbox-description-letter-spacing);line-height:var(--plasma-checkbox-description-line-height);}.Checkbox_styles_1266095_s14u8fnn__e7223270.Checkbox_styles_1266095_onlyDescription__e7223270{margin-top:0;}
85
85
 
86
- .base_wj0ueq_b1lfwhkj__434a3d79 input:checked + label .base_wj0ueq_radioboxTrigger__434a3d79{border:none;background:var(--plasma-radiobox-fill-color);border-color:var(--plasma-radiobox-fill-color);}
86
+ .base_11n1fn3_b1yt66an__50fb7cfc input:checked + label .base_11n1fn3_radioboxTrigger__50fb7cfc{border:none;background:var(--plasma-radiobox-fill-color);border-color:var(--plasma-radiobox-fill-color);}
87
87
 
88
- .base_1jca5bk_bya1zrj__c42664c9 input:disabled + label{opacity:var(--plasma-radiobox-disabled-opacity);}.base_1jca5bk_bya1zrj__c42664c9 input:disabled + label{cursor:not-allowed;}
88
+ .base_6ae9j2_bmkf7xj__b9915620 input:disabled + label{opacity:var(--plasma-radiobox-disabled-opacity);}.base_6ae9j2_bmkf7xj__b9915620 input:disabled + label{cursor:not-allowed;}
89
89
 
90
- .base_1nruwxa_bp7016u__13de8fe5 .base_1nruwxa_radioboxTrigger__13de8fe5{position:relative;}.base_1nruwxa_bp7016u__13de8fe5 .base_1nruwxa_radioboxTrigger__13de8fe5::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1nruwxa_bp7016u__13de8fe5 .base_1nruwxa_radioboxTrigger__13de8fe5.base_1nruwxa_focusVisible__13de8fe5:focus::before,.base_1nruwxa_bp7016u__13de8fe5 .base_1nruwxa_radioboxTrigger__13de8fe5[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.base_1nruwxa_bp7016u__13de8fe5 input[data-focus-visible-added] + label .base_1nruwxa_radioboxTrigger__13de8fe5{border-color:transparent;position:relative;}.base_1nruwxa_bp7016u__13de8fe5 input[data-focus-visible-added] + label .base_1nruwxa_radioboxTrigger__13de8fe5::before{content:'';position:absolute;top:-0.188rem;left:-0.188rem;right:-0.188rem;bottom:-0.188rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1nruwxa_bp7016u__13de8fe5 input[data-focus-visible-added] + label .base_1nruwxa_radioboxTrigger__13de8fe5::before{box-shadow:0 0 0 0.125rem var(--plasma-radiobox-focus-color);}.base_1nruwxa_bp7016u__13de8fe5 input[data-focus-visible-added]:checked + label .base_1nruwxa_radioboxTrigger__13de8fe5{position:relative;}.base_1nruwxa_bp7016u__13de8fe5 input[data-focus-visible-added]:checked + label .base_1nruwxa_radioboxTrigger__13de8fe5::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-radiobox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1nruwxa_bp7016u__13de8fe5 input[data-focus-visible-added]:checked + label .base_1nruwxa_radioboxTrigger__13de8fe5::before{box-shadow:0 0 0 0.063rem var(--plasma-radiobox-focus-color);}
90
+ .base_1d7o4za_buxu4te__19288bae .base_1d7o4za_radioboxTrigger__19288bae{position:relative;}.base_1d7o4za_buxu4te__19288bae .base_1d7o4za_radioboxTrigger__19288bae::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1d7o4za_buxu4te__19288bae .base_1d7o4za_radioboxTrigger__19288bae.base_1d7o4za_focusVisible__19288bae:focus::before,.base_1d7o4za_buxu4te__19288bae .base_1d7o4za_radioboxTrigger__19288bae[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.base_1d7o4za_buxu4te__19288bae input[data-focus-visible-added] + label .base_1d7o4za_radioboxTrigger__19288bae{border-color:transparent;position:relative;}.base_1d7o4za_buxu4te__19288bae input[data-focus-visible-added] + label .base_1d7o4za_radioboxTrigger__19288bae::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-radiobox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1d7o4za_buxu4te__19288bae input[data-focus-visible-added] + label .base_1d7o4za_radioboxTrigger__19288bae::before{box-shadow:0 0 0 0.125rem var(--plasma-radiobox-focus-color);}.base_1d7o4za_buxu4te__19288bae input[data-focus-visible-added]:checked + label .base_1d7o4za_radioboxTrigger__19288bae{position:relative;}.base_1d7o4za_buxu4te__19288bae input[data-focus-visible-added]:checked + label .base_1d7o4za_radioboxTrigger__19288bae::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-radiobox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1d7o4za_buxu4te__19288bae input[data-focus-visible-added]:checked + label .base_1d7o4za_radioboxTrigger__19288bae::before{box-shadow:0 0 0 0.063rem var(--plasma-radiobox-focus-color);}
91
91
 
92
- .Radiobox_1ri2eqv_sv18cw2__70e20968{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);-webkit-transition:-webkit-transform 0.3s ease-in-out;-webkit-transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);}input:checked + label .Radiobox_1ri2eqv_sv18cw2__70e20968{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
93
- .Radiobox_1ri2eqv_b1ls92xy__70e20968{--plasma-checkbox-label-font-family:var(--plasma-radiobox-label-font-family);--plasma-checkbox-label-font-size:var(--plasma-radiobox-label-font-size);--plasma-checkbox-label-font-style:var(--plasma-radiobox-label-font-style);--plasma-checkbox-label-font-weight:var(--plasma-radiobox-label-font-weight);--plasma-checkbox-label-letter-spacing:var(--plasma-radiobox-label-letter-spacing);--plasma-checkbox-label-line-height:var(--plasma-radiobox-label-line-height);--plasma-checkbox-description-font-family:var(--plasma-radiobox-description-font-family);--plasma-checkbox-description-font-size:var(--plasma-radiobox-description-font-size);--plasma-checkbox-description-font-style:var(--plasma-radiobox-description-font-style);--plasma-checkbox-description-font-weight:var(--plasma-radiobox-description-font-weight);--plasma-checkbox-description-letter-spacing:var(--plasma-radiobox-description-letter-spacing);--plasma-checkbox-description-line-height:var(--plasma-radiobox-description-line-height);--plasma-checkbox-fill-color:var(--plasma-radiobox-fill-color);--plasma-checkbox-description-color:var(--plasma-radiobox-description-color);--plasma-checkbox-trigger-border-color:var(--plasma-radiobox-trigger-border-color);--plasma-checkbox-content-top-offset:var(--plasma-radiobox-content-top-offset);--plasma-checkbox-content-left-offset:var(--plasma-radiobox-content-left-offset);--plasma-checkbox-trigger-size:var(--plasma-radiobox-trigger-size);--plasma-checkbox-trigger-border-radius:var(--plasma-radiobox-trigger-border-radius);--plasma-checkbox-trigger-margin:var(--plasma-radiobox-trigger-margin);margin:var(--plasma-radiobox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}.Radiobox_1ri2eqv_b1ls92xy__70e20968 .Radiobox_1ri2eqv_singleLine__70e20968{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Radiobox_1ri2eqv_b1ls92xy__70e20968.Radiobox_1ri2eqv_resetMargins__70e20968{margin:0;}
92
+ .Radiobox_styles_1skfuon_s14xglkp__585ca743{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);-webkit-transition:-webkit-transform 0.3s ease-in-out;-webkit-transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);}input:checked + label .Radiobox_styles_1skfuon_s14xglkp__585ca743{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
93
+ .Radiobox_styles_1skfuon_bdte4ex__585ca743{--plasma-checkbox-label-font-family:var(--plasma-radiobox-label-font-family);--plasma-checkbox-label-font-size:var(--plasma-radiobox-label-font-size);--plasma-checkbox-label-font-style:var(--plasma-radiobox-label-font-style);--plasma-checkbox-label-font-weight:var(--plasma-radiobox-label-font-weight);--plasma-checkbox-label-letter-spacing:var(--plasma-radiobox-label-letter-spacing);--plasma-checkbox-label-line-height:var(--plasma-radiobox-label-line-height);--plasma-checkbox-description-margin-top:var(--plasma-checkbox-description-margin-top);--plasma-checkbox-description-font-family:var(--plasma-radiobox-description-font-family);--plasma-checkbox-description-font-size:var(--plasma-radiobox-description-font-size);--plasma-checkbox-description-font-style:var(--plasma-radiobox-description-font-style);--plasma-checkbox-description-font-weight:var(--plasma-radiobox-description-font-weight);--plasma-checkbox-description-letter-spacing:var(--plasma-radiobox-description-letter-spacing);--plasma-checkbox-description-line-height:var(--plasma-radiobox-description-line-height);--plasma-checkbox-fill-color:var(--plasma-radiobox-fill-color);--plasma-checkbox-description-color:var(--plasma-radiobox-description-color);--plasma-checkbox-trigger-border-color:var(--plasma-radiobox-trigger-border-color);--plasma-checkbox-content-top-offset:var(--plasma-radiobox-content-top-offset);--plasma-checkbox-content-left-offset:var(--plasma-radiobox-content-left-offset);--plasma-checkbox-trigger-size:var(--plasma-radiobox-trigger-size);--plasma-checkbox-trigger-border-radius:var(--plasma-radiobox-trigger-border-radius);--plasma-checkbox-trigger-margin:var(--plasma-radiobox-trigger-margin);margin:var(--plasma-radiobox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}.Radiobox_styles_1skfuon_bdte4ex__585ca743 .Radiobox_styles_1skfuon_singleLine__585ca743{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
94
94
 
95
95
  .Popover_styles_rmr9za_s1g1xbt5__0bafa6fb{display:inline-block;}
96
96
  .Popover_styles_rmr9za_s12xwbyh__0bafa6fb{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
package/cjs/index.js CHANGED
@@ -36,8 +36,10 @@ var Link = require('./components/Link/Link.js');
36
36
  var Spinner = require('./components/Spinner/Spinner.js');
37
37
  var Spinner_tokens = require('./components/Spinner/Spinner.tokens.js');
38
38
  var Checkbox = require('./components/Checkbox/Checkbox.js');
39
+ var Checkbox_tokens = require('./components/Checkbox/Checkbox.tokens.js');
39
40
  var Radiobox = require('./components/Radiobox/Radiobox.js');
40
41
  var RadioGroup = require('./components/Radiobox/RadioGroup.js');
42
+ var Radiobox_tokens = require('./components/Radiobox/Radiobox.tokens.js');
41
43
  var Popover = require('./components/Popover/Popover.js');
42
44
  var Popover_tokens = require('./components/Popover/Popover.tokens.js');
43
45
  var TextArea = require('./components/TextArea/TextArea.js');
@@ -284,9 +286,11 @@ exports.spinnerRoot = Spinner.spinnerRoot;
284
286
  exports.spinnerTokens = Spinner_tokens.tokens;
285
287
  exports.checkboxConfig = Checkbox.checkboxConfig;
286
288
  exports.checkboxRoot = Checkbox.checkboxRoot;
289
+ exports.checkboxTokens = Checkbox_tokens.tokens;
287
290
  exports.radioboxConfig = Radiobox.radioboxConfig;
288
291
  exports.radioboxRoot = Radiobox.radioboxRoot;
289
292
  exports.RadioGroup = RadioGroup.RadioGroup;
293
+ exports.radioboxTokens = Radiobox_tokens.tokens;
290
294
  exports.popoverConfig = Popover.popoverConfig;
291
295
  exports.popoverRoot = Popover.popoverRoot;
292
296
  exports.popoverClasses = Popover_tokens.classes;
package/cjs/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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,13 @@
1
+ .base_x252cy_b17hdes8__856a05b7 input[type='checkbox']:indeterminate + .base_x252cy_s1u3nd7e__856a05b7 .base_x252cy_sft3zxv__856a05b7{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}.base_x252cy_b17hdes8__856a05b7 input:checked + .base_x252cy_s1u3nd7e__856a05b7 .base_x252cy_sft3zxv__856a05b7{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}
2
+
3
+ .base_1krdtt6_bxbqqc3__2d5e2cdd input:disabled + .base_1krdtt6_s1u3nd7e__2d5e2cdd{opacity:var(--plasma-checkbox-disabled-opacity);}.base_1krdtt6_bxbqqc3__2d5e2cdd input:disabled + .base_1krdtt6_s1u3nd7e__2d5e2cdd{cursor:not-allowed;}
4
+
5
+ .base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059{position:relative;}.base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-checkbox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059.base_hr4zpz_focusVisible__d6390059:focus::before,.base_hr4zpz_b1y5wkm1__d6390059 .base_hr4zpz_checkboxTrigger__d6390059[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem transparent;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added] + label .base_hr4zpz_checkboxTrigger__d6390059{border-color:transparent;position:relative;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added] + label .base_hr4zpz_checkboxTrigger__d6390059::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:var(--plasma-checkbox-trigger-border-radius);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added] + label .base_hr4zpz_checkboxTrigger__d6390059::before{box-shadow:0 0 0 0.125rem var(--plasma-checkbox-focus-color);}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added]:checked + label .base_hr4zpz_checkboxTrigger__d6390059,.base_hr4zpz_b1y5wkm1__d6390059 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_hr4zpz_checkboxTrigger__d6390059{position:relative;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added]:checked + label .base_hr4zpz_checkboxTrigger__d6390059::before,.base_hr4zpz_b1y5wkm1__d6390059 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_hr4zpz_checkboxTrigger__d6390059::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma-checkbox-trigger-border-radius) + 0.125rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_hr4zpz_b1y5wkm1__d6390059 input[data-focus-visible-added]:checked + label .base_hr4zpz_checkboxTrigger__d6390059::before,.base_hr4zpz_b1y5wkm1__d6390059 input[type='checkbox'][data-focus-visible-added]:indeterminate + label .base_hr4zpz_checkboxTrigger__d6390059::before{box-shadow:0 0 0 0.063rem var(--plasma-checkbox-focus-color);}
6
+
7
+ .Checkbox_styles_1266095_b1udywkg__e7223270{margin:var(--plasma-checkbox-margin);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;}.Checkbox_styles_1266095_b1udywkg__e7223270 .Checkbox_styles_1266095_singleLine__e7223270{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
8
+ .Checkbox_styles_1266095_s165w87d__e7223270{position:absolute;width:1px;height:1px;overflow:hidden;-webkit-clip:rect(0 0 0 0);clip:rect(0 0 0 0);}.Checkbox_styles_1266095_s165w87d__e7223270:focus{outline:0 none;}
9
+ .Checkbox_styles_1266095_sft3zxv__e7223270{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:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:transparent;border:0.125rem solid var(--plasma-checkbox-trigger-border-color);box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;}input:not(:indeterminate) + label .Checkbox_styles_1266095_sft3zxv__e7223270 div{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 0.15s ease-in-out;-webkit-transition:transform 0.15s ease-in-out;transition:transform 0.15s ease-in-out;}input:checked + label .Checkbox_styles_1266095_sft3zxv__e7223270 div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}
10
+ .Checkbox_styles_1266095_s1u3nd7e__e7223270{position:relative;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;cursor:inherit;}
11
+ .Checkbox_styles_1266095_shwv1in__e7223270{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:var(--plasma-checkbox-content-top-offset);margin-left:var(--plasma-checkbox-content-left-offset);}
12
+ .Checkbox_styles_1266095_s1my1ay__e7223270{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);-webkit-letter-spacing:var(--plasma-checkbox-label-letter-spacing);-moz-letter-spacing:var(--plasma-checkbox-label-letter-spacing);-ms-letter-spacing:var(--plasma-checkbox-label-letter-spacing);letter-spacing:var(--plasma-checkbox-label-letter-spacing);line-height:var(--plasma-checkbox-label-line-height);}
13
+ .Checkbox_styles_1266095_s14u8fnn__e7223270{margin-top:var(--plasma-checkbox-description-margin-top);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);-webkit-letter-spacing:var(--plasma-checkbox-description-letter-spacing);-moz-letter-spacing:var(--plasma-checkbox-description-letter-spacing);-ms-letter-spacing:var(--plasma-checkbox-description-letter-spacing);letter-spacing:var(--plasma-checkbox-description-letter-spacing);line-height:var(--plasma-checkbox-description-line-height);}.Checkbox_styles_1266095_s14u8fnn__e7223270.Checkbox_styles_1266095_onlyDescription__e7223270{margin-top:0;}
@@ -1,48 +1,17 @@
1
- import './Checkbox_1q4l832.css';
2
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
3
2
  import React, { forwardRef, useRef, useEffect, useMemo } from 'react';
4
- import { styled } from '@linaria/react';
5
3
  import { useForkRef, safeUseId, extractTextFrom } from '@salutejs/plasma-core';
6
4
  import { cx } from '../../utils/index.js';
7
- import { base as base$2 } from './_view/base.js';
8
- import { base as base$1 } from './_size/base.js';
9
- import { base as base$3 } from './_disabled/base.js';
10
- import { base as base$4 } from './_focused/base.js';
5
+ import { base as base$2 } from './variations/_view/base.js';
6
+ import { base as base$1 } from './variations/_size/base.js';
7
+ import { base as base$3 } from './variations/_disabled/base.js';
8
+ import { base as base$4 } from './variations/_focused/base.js';
11
9
  import { Indeterminate, Done } from './IconsSvg.js';
10
+ import { StyledInput, StyledContentWrapper, StyledTrigger, StyledContent, StyledLabel, StyledDescription, base } from './Checkbox.styles.js';
11
+ import { classes } from './Checkbox.tokens.js';
12
12
 
13
13
  var _Indeterminate, _Done;
14
14
  var _excluded = ["size", "view", "focused", "disabled", "id", "label", "description", "indeterminate", "style", "className", "singleLine", "aria-label"];
15
- var StyledInput = /*#__PURE__*/styled('input')({
16
- name: "StyledInput",
17
- "class": "so9l3q2",
18
- propsAsIs: false
19
- });
20
- var StyledTrigger = /*#__PURE__*/styled('div')({
21
- name: "StyledTrigger",
22
- "class": "s1o5tixe",
23
- propsAsIs: false
24
- });
25
- var StyledContentWrapper = /*#__PURE__*/styled('label')({
26
- name: "StyledContentWrapper",
27
- "class": "s136y9ve",
28
- propsAsIs: false
29
- });
30
- var StyledContent = /*#__PURE__*/styled('div')({
31
- name: "StyledContent",
32
- "class": "s8lcvtu",
33
- propsAsIs: false
34
- });
35
- var StyledLabel = /*#__PURE__*/styled('span')({
36
- name: "StyledLabel",
37
- "class": "s1dif9mh",
38
- propsAsIs: false
39
- });
40
- var StyledDescription = /*#__PURE__*/styled('div')({
41
- name: "StyledDescription",
42
- "class": "s1v492xg",
43
- propsAsIs: false
44
- });
45
- var base = "b1kn3qi9";
46
15
  var checkboxRoot = function checkboxRoot(Root) {
47
16
  return /*#__PURE__*/forwardRef(function (props, ref) {
48
17
  var size = props.size,
@@ -76,15 +45,15 @@ var checkboxRoot = function checkboxRoot(Root) {
76
45
  var isLabelAriaHidden = typeof label === 'string';
77
46
  var canFocused = focused ? 0 : -1;
78
47
  var hasContent = label || description;
79
- var singleLineClass = singleLine ? 'single-line' : undefined;
80
- var resetMargins = !hasContent ? 'reset-margins' : undefined;
48
+ var singleLineClass = singleLine ? classes.singleLine : undefined;
49
+ var onlyDescriptionClass = !label && description ? classes.onlyDescription : undefined;
81
50
  return /*#__PURE__*/React.createElement(Root, {
82
51
  view: view,
83
52
  size: size,
84
53
  disabled: disabled,
85
54
  focused: focused,
86
55
  style: style,
87
- className: cx(className, resetMargins),
56
+ className: className,
88
57
  tabIndex: -1
89
58
  }, /*#__PURE__*/React.createElement(StyledInput, _extends({}, rest, {
90
59
  id: checkboxId,
@@ -97,7 +66,7 @@ var checkboxRoot = function checkboxRoot(Root) {
97
66
  })), /*#__PURE__*/React.createElement(StyledContentWrapper, {
98
67
  htmlFor: checkboxId
99
68
  }, /*#__PURE__*/React.createElement(StyledTrigger, {
100
- className: cx('checkbox-trigger', resetMargins)
69
+ className: classes.checkboxTrigger
101
70
  }, indeterminate ? _Indeterminate || (_Indeterminate = /*#__PURE__*/React.createElement(Indeterminate, null)) : _Done || (_Done = /*#__PURE__*/React.createElement(Done, null))), hasContent && /*#__PURE__*/React.createElement(StyledContent, {
102
71
  className: singleLineClass
103
72
  }, label && /*#__PURE__*/React.createElement(StyledLabel, {
@@ -105,7 +74,7 @@ var checkboxRoot = function checkboxRoot(Root) {
105
74
  id: uniqLabelId,
106
75
  "aria-hidden": isLabelAriaHidden
107
76
  }, label), description && /*#__PURE__*/React.createElement(StyledDescription, {
108
- className: singleLineClass,
77
+ className: cx(singleLineClass, onlyDescriptionClass),
109
78
  id: uniqDescriptionId
110
79
  }, description))));
111
80
  });
@@ -135,5 +104,5 @@ var checkboxConfig = {
135
104
  }
136
105
  };
137
106
 
138
- export { StyledContent, StyledContentWrapper, StyledDescription, StyledInput, StyledLabel, StyledTrigger, checkboxConfig, checkboxRoot };
107
+ export { checkboxConfig, checkboxRoot };
139
108
  //# sourceMappingURL=Checkbox.js.map