@salutejs/plasma-new-hope 0.315.0-dev.0 → 0.316.0-canary.1877.14207597686.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +52 -0
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/cjs/components/Checkbox/Checkbox.css +10 -10
  4. package/cjs/components/Checkbox/Checkbox.styles.js +1 -1
  5. package/cjs/components/Checkbox/Checkbox.styles.js.map +1 -1
  6. package/cjs/components/Checkbox/{Checkbox.styles_rxomqi.css → Checkbox.styles_1dv1w6k.css} +1 -1
  7. package/cjs/components/Checkbox/Checkbox.tokens.js +2 -0
  8. package/cjs/components/Checkbox/Checkbox.tokens.js.map +1 -1
  9. package/cjs/components/Checkbox/variations/_focused/base.js +1 -1
  10. package/cjs/components/Checkbox/variations/_focused/base.js.map +1 -1
  11. package/{es/components/Checkbox/variations/_focused/base_hr4zpz.css → cjs/components/Checkbox/variations/_focused/base_x86p0b.css} +1 -1
  12. package/cjs/components/Checkbox/variations/_view/base.js +1 -1
  13. package/cjs/components/Checkbox/variations/_view/base.js.map +1 -1
  14. package/cjs/components/Checkbox/variations/_view/base_tj850e.css +1 -0
  15. package/cjs/components/Combobox/ComboboxNew/Combobox.css +22 -22
  16. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  17. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  18. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -22
  19. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -15
  20. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  21. package/{es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1cijcra.css → cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1fy6e2z.css} +1 -1
  22. package/cjs/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.css +22 -22
  23. package/cjs/components/Pagination/Pagination.css +19 -19
  24. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +19 -19
  25. package/cjs/components/Radiobox/Radiobox.css +11 -11
  26. package/cjs/components/Radiobox/Radiobox.styles.js +1 -1
  27. package/cjs/components/Radiobox/Radiobox.styles.js.map +1 -1
  28. package/cjs/components/Radiobox/{Radiobox.styles_8cwqg9.css → Radiobox.styles_1u9zve5.css} +1 -1
  29. package/cjs/components/Radiobox/Radiobox.tokens.js +2 -0
  30. package/cjs/components/Radiobox/Radiobox.tokens.js.map +1 -1
  31. package/cjs/components/Radiobox/variations/_view/base.js +1 -1
  32. package/cjs/components/Radiobox/variations/_view/base.js.map +1 -1
  33. package/cjs/components/Radiobox/variations/_view/base_1f50j99.css +1 -0
  34. package/cjs/components/Select/Select.css +19 -19
  35. package/cjs/components/Select/Select.tokens.js +2 -0
  36. package/cjs/components/Select/Select.tokens.js.map +1 -1
  37. package/cjs/components/Select/ui/Inner/Inner.css +19 -19
  38. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +15 -15
  39. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  40. package/cjs/components/Select/ui/Inner/ui/Item/{Item.styles_nvzopo.css → Item.styles_1gk72bp.css} +1 -1
  41. package/cjs/components/Select/ui/VirtualList/VirtualList.css +19 -19
  42. package/cjs/components/Table/Table.css +19 -19
  43. package/cjs/components/Table/ui/Cell/Cell.css +19 -19
  44. package/cjs/components/Table/ui/EditableCell/EditableCell.css +19 -19
  45. package/cjs/components/Table/ui/HeadCell/HeadCell.css +19 -19
  46. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +19 -19
  47. package/cjs/components/TextArea/TextArea.js +1 -0
  48. package/cjs/components/TextArea/TextArea.js.map +1 -1
  49. package/cjs/components/TextArea/TextArea.styles.js +79 -72
  50. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  51. package/cjs/components/TextArea/{TextArea.styles_ztsrpt.css → TextArea.styles_1r7xix5.css} +1 -1
  52. package/cjs/components/TextArea/ui/Hint/Hint.css +18 -18
  53. package/cjs/index.css +52 -52
  54. package/cjs/index.js +2 -0
  55. package/cjs/index.js.map +1 -1
  56. package/cjs/utils/createConditionalComponent.js +41 -0
  57. package/cjs/utils/createConditionalComponent.js.map +1 -0
  58. package/cjs/utils/index.js.map +1 -1
  59. package/emotion/cjs/components/Checkbox/Checkbox.styles.js +8 -8
  60. package/emotion/cjs/components/Checkbox/Checkbox.tokens.js +2 -0
  61. package/emotion/cjs/components/Checkbox/variations/_focused/base.js +2 -2
  62. package/emotion/cjs/components/Checkbox/variations/_view/base.js +1 -1
  63. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  64. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +13 -13
  65. package/emotion/cjs/components/Radiobox/Radiobox.styles.js +3 -3
  66. package/emotion/cjs/components/Radiobox/Radiobox.tokens.js +2 -0
  67. package/emotion/cjs/components/Radiobox/variations/_view/base.js +1 -1
  68. package/emotion/cjs/components/Select/Select.tokens.js +2 -0
  69. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -11
  70. package/emotion/cjs/components/TextArea/TextArea.js +2 -1
  71. package/emotion/cjs/components/TextArea/TextArea.styles.js +66 -63
  72. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +12 -13
  73. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.js +14 -3
  74. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +47 -0
  75. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +8 -1
  76. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +15 -15
  77. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +12 -12
  78. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.js +14 -3
  79. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +49 -0
  80. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +13 -2
  81. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  82. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +12 -13
  83. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.js +14 -3
  84. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +47 -0
  85. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +8 -1
  86. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +15 -15
  87. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +12 -12
  88. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.js +14 -3
  89. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +49 -0
  90. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +13 -2
  91. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +24 -24
  92. package/emotion/cjs/utils/createConditionalComponent.js +38 -0
  93. package/emotion/cjs/utils/index.js +8 -0
  94. package/emotion/es/components/Checkbox/Checkbox.styles.js +8 -8
  95. package/emotion/es/components/Checkbox/Checkbox.tokens.js +2 -0
  96. package/emotion/es/components/Checkbox/variations/_focused/base.js +2 -2
  97. package/emotion/es/components/Checkbox/variations/_view/base.js +1 -1
  98. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  99. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +13 -13
  100. package/emotion/es/components/Radiobox/Radiobox.styles.js +3 -3
  101. package/emotion/es/components/Radiobox/Radiobox.tokens.js +2 -0
  102. package/emotion/es/components/Radiobox/variations/_view/base.js +1 -1
  103. package/emotion/es/components/Select/Select.tokens.js +2 -0
  104. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -11
  105. package/emotion/es/components/TextArea/TextArea.js +2 -1
  106. package/emotion/es/components/TextArea/TextArea.styles.js +66 -63
  107. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +12 -13
  108. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.js +13 -2
  109. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +41 -0
  110. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +8 -1
  111. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +15 -15
  112. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +12 -12
  113. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.js +13 -2
  114. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +43 -0
  115. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +13 -2
  116. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  117. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +12 -13
  118. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.js +13 -2
  119. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +41 -0
  120. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +8 -1
  121. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +15 -15
  122. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +12 -12
  123. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.js +13 -2
  124. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +43 -0
  125. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +13 -2
  126. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +24 -24
  127. package/emotion/es/utils/createConditionalComponent.js +31 -0
  128. package/emotion/es/utils/index.js +1 -0
  129. package/es/_virtual/_rollupPluginBabelHelpers.js +52 -1
  130. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  131. package/es/components/Checkbox/Checkbox.css +10 -10
  132. package/es/components/Checkbox/Checkbox.styles.js +1 -1
  133. package/es/components/Checkbox/Checkbox.styles.js.map +1 -1
  134. package/es/components/Checkbox/{Checkbox.styles_rxomqi.css → Checkbox.styles_1dv1w6k.css} +1 -1
  135. package/es/components/Checkbox/Checkbox.tokens.js +2 -0
  136. package/es/components/Checkbox/Checkbox.tokens.js.map +1 -1
  137. package/es/components/Checkbox/variations/_focused/base.js +1 -1
  138. package/es/components/Checkbox/variations/_focused/base.js.map +1 -1
  139. package/{cjs/components/Checkbox/variations/_focused/base_hr4zpz.css → es/components/Checkbox/variations/_focused/base_x86p0b.css} +1 -1
  140. package/es/components/Checkbox/variations/_view/base.js +1 -1
  141. package/es/components/Checkbox/variations/_view/base.js.map +1 -1
  142. package/es/components/Checkbox/variations/_view/base_tj850e.css +1 -0
  143. package/es/components/Combobox/ComboboxNew/Combobox.css +22 -22
  144. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  145. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  146. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -22
  147. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -15
  148. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  149. package/{cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1cijcra.css → es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1fy6e2z.css} +1 -1
  150. package/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.css +22 -22
  151. package/es/components/Pagination/Pagination.css +19 -19
  152. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +19 -19
  153. package/es/components/Radiobox/Radiobox.css +11 -11
  154. package/es/components/Radiobox/Radiobox.styles.js +1 -1
  155. package/es/components/Radiobox/Radiobox.styles.js.map +1 -1
  156. package/es/components/Radiobox/{Radiobox.styles_8cwqg9.css → Radiobox.styles_1u9zve5.css} +1 -1
  157. package/es/components/Radiobox/Radiobox.tokens.js +2 -0
  158. package/es/components/Radiobox/Radiobox.tokens.js.map +1 -1
  159. package/es/components/Radiobox/variations/_view/base.js +1 -1
  160. package/es/components/Radiobox/variations/_view/base.js.map +1 -1
  161. package/es/components/Radiobox/variations/_view/base_1f50j99.css +1 -0
  162. package/es/components/Select/Select.css +19 -19
  163. package/es/components/Select/Select.tokens.js +2 -0
  164. package/es/components/Select/Select.tokens.js.map +1 -1
  165. package/es/components/Select/ui/Inner/Inner.css +19 -19
  166. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +15 -15
  167. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  168. package/es/components/Select/ui/Inner/ui/Item/{Item.styles_nvzopo.css → Item.styles_1gk72bp.css} +1 -1
  169. package/es/components/Select/ui/VirtualList/VirtualList.css +19 -19
  170. package/es/components/Table/Table.css +19 -19
  171. package/es/components/Table/ui/Cell/Cell.css +19 -19
  172. package/es/components/Table/ui/EditableCell/EditableCell.css +19 -19
  173. package/es/components/Table/ui/HeadCell/HeadCell.css +19 -19
  174. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +19 -19
  175. package/es/components/TextArea/TextArea.js +1 -0
  176. package/es/components/TextArea/TextArea.js.map +1 -1
  177. package/es/components/TextArea/TextArea.styles.js +79 -72
  178. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  179. package/es/components/TextArea/{TextArea.styles_ztsrpt.css → TextArea.styles_1r7xix5.css} +1 -1
  180. package/es/components/TextArea/ui/Hint/Hint.css +18 -18
  181. package/es/index.css +52 -52
  182. package/es/index.js +1 -0
  183. package/es/index.js.map +1 -1
  184. package/es/utils/createConditionalComponent.js +33 -0
  185. package/es/utils/createConditionalComponent.js.map +1 -0
  186. package/es/utils/index.js.map +1 -1
  187. package/package.json +2 -2
  188. package/styled-components/cjs/components/Checkbox/Checkbox.styles.js +1 -1
  189. package/styled-components/cjs/components/Checkbox/Checkbox.tokens.js +2 -0
  190. package/styled-components/cjs/components/Checkbox/variations/_focused/base.js +1 -1
  191. package/styled-components/cjs/components/Checkbox/variations/_view/base.js +1 -1
  192. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  193. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  194. package/styled-components/cjs/components/Radiobox/Radiobox.styles.js +1 -1
  195. package/styled-components/cjs/components/Radiobox/Radiobox.tokens.js +2 -0
  196. package/styled-components/cjs/components/Radiobox/variations/_view/base.js +1 -1
  197. package/styled-components/cjs/components/Select/Select.tokens.js +2 -0
  198. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  199. package/styled-components/cjs/components/TextArea/TextArea.js +1 -0
  200. package/styled-components/cjs/components/TextArea/TextArea.styles.js +41 -38
  201. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +10 -11
  202. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.js +14 -3
  203. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +47 -0
  204. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +8 -1
  205. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  206. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +10 -10
  207. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.js +14 -3
  208. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +49 -0
  209. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +13 -2
  210. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +4 -4
  211. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +10 -11
  212. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.js +14 -3
  213. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +47 -0
  214. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +8 -1
  215. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  216. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +10 -10
  217. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.js +14 -3
  218. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +49 -0
  219. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +13 -2
  220. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +4 -4
  221. package/styled-components/cjs/utils/createConditionalComponent.js +38 -0
  222. package/styled-components/cjs/utils/index.js +8 -0
  223. package/styled-components/es/components/Checkbox/Checkbox.styles.js +1 -1
  224. package/styled-components/es/components/Checkbox/Checkbox.tokens.js +2 -0
  225. package/styled-components/es/components/Checkbox/variations/_focused/base.js +1 -1
  226. package/styled-components/es/components/Checkbox/variations/_view/base.js +1 -1
  227. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  228. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  229. package/styled-components/es/components/Radiobox/Radiobox.styles.js +1 -1
  230. package/styled-components/es/components/Radiobox/Radiobox.tokens.js +2 -0
  231. package/styled-components/es/components/Radiobox/variations/_view/base.js +1 -1
  232. package/styled-components/es/components/Select/Select.tokens.js +2 -0
  233. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  234. package/styled-components/es/components/TextArea/TextArea.js +1 -0
  235. package/styled-components/es/components/TextArea/TextArea.styles.js +41 -38
  236. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +10 -11
  237. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.js +13 -2
  238. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +41 -0
  239. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +8 -1
  240. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  241. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +10 -10
  242. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.js +13 -2
  243. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +43 -0
  244. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +13 -2
  245. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +4 -4
  246. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +10 -11
  247. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.js +13 -2
  248. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +41 -0
  249. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +8 -1
  250. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  251. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +10 -10
  252. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.js +13 -2
  253. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +43 -0
  254. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +13 -2
  255. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +4 -4
  256. package/styled-components/es/utils/createConditionalComponent.js +31 -0
  257. package/styled-components/es/utils/index.js +1 -0
  258. package/types/components/Checkbox/Checkbox.tokens.d.ts +2 -0
  259. package/types/components/Checkbox/Checkbox.tokens.d.ts.map +1 -1
  260. package/types/components/Checkbox/variations/_view/base.d.ts.map +1 -1
  261. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +2 -0
  262. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  263. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  264. package/types/components/Radiobox/Radiobox.styles.d.ts.map +1 -1
  265. package/types/components/Radiobox/Radiobox.tokens.d.ts +2 -0
  266. package/types/components/Radiobox/Radiobox.tokens.d.ts.map +1 -1
  267. package/types/components/Radiobox/variations/_view/base.d.ts.map +1 -1
  268. package/types/components/Select/Select.tokens.d.ts +2 -0
  269. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  270. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  271. package/types/components/TextArea/TextArea.styles.d.ts +1 -0
  272. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  273. package/types/utils/createConditionalComponent.d.ts +12 -0
  274. package/types/utils/createConditionalComponent.d.ts.map +1 -0
  275. package/types/utils/index.d.ts +1 -0
  276. package/types/utils/index.d.ts.map +1 -1
  277. package/cjs/components/Checkbox/variations/_view/base_1xk2qu8.css +0 -1
  278. package/cjs/components/Radiobox/variations/_view/base_11n1fn3.css +0 -1
  279. package/es/components/Checkbox/variations/_view/base_1xk2qu8.css +0 -1
  280. package/es/components/Radiobox/variations/_view/base_11n1fn3.css +0 -1
@@ -57,6 +57,8 @@ var tokens = exports.tokens = {
57
57
  checkboxFillColor: '--plasma-combobox-checkbox-fill-color',
58
58
  checkboxIconColor: '--plasma-combobox-checkbox-icon-color',
59
59
  checkboxTriggerBorderColor: '--plasma-combobox-checkbox-trigger-border-color',
60
+ checkboxTriggerBorderCheckedColor: '--plasma-combobox-checkbox-trigger-border-checked-color',
61
+ checkboxTriggerBorderWidth: '--plasma-combobox-checkbox-trigger-border-width',
60
62
  indicatorSize: '--plasma-combobox-indicator-size',
61
63
  // Токены для TextField
62
64
  textFieldColor: '--plasma-combobox-new-textfield-color',
@@ -25,7 +25,7 @@ var StyledCell = exports.StyledCell = /*#__PURE__*/(0, _styledComponents["defaul
25
25
  })([""]);
26
26
  var StyledCheckbox = exports.StyledCheckbox = /*#__PURE__*/(0, _styledComponents["default"])(Checkbox).withConfig({
27
27
  componentId: "plasma-new-hope__sc-1n1xg1s-2"
28
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Checkbox.checkboxTokens.triggerSize, _Combobox.tokens.checkboxTriggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Combobox.tokens.checkboxTriggerBorderRadius, _Checkbox.checkboxTokens.fillColor, _Combobox.tokens.checkboxFillColor, _Checkbox.checkboxTokens.iconColor, _Combobox.tokens.checkboxIconColor, _Checkbox.checkboxTokens.triggerBorderColor, _Combobox.tokens.checkboxTriggerBorderColor);
28
+ })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Checkbox.checkboxTokens.triggerSize, _Combobox.tokens.checkboxTriggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Combobox.tokens.checkboxTriggerBorderRadius, _Checkbox.checkboxTokens.fillColor, _Combobox.tokens.checkboxFillColor, _Checkbox.checkboxTokens.iconColor, _Combobox.tokens.checkboxIconColor, _Checkbox.checkboxTokens.triggerBorderColor, _Combobox.tokens.checkboxTriggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor, _Combobox.tokens.checkboxTriggerBorderCheckedColor, _Checkbox.checkboxTokens.triggerBorderWidth, _Combobox.tokens.checkboxTriggerBorderWidth);
29
29
  var mergedIndicatorConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Indicator.indicatorConfig);
30
30
  var Indicator = /*#__PURE__*/(0, _engines.component)(mergedIndicatorConfig);
31
31
  var StyledIndicator = exports.StyledIndicator = /*#__PURE__*/(0, _styledComponents["default"])(Indicator).withConfig({
@@ -12,7 +12,7 @@ var _Radiobox = /*#__PURE__*/require("./Radiobox.tokens");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
14
  // NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части
15
- var mappingOverride = /*#__PURE__*/"\n ".concat(_Checkbox.checkboxTokens.labelFontFamily, ": var(").concat(_Radiobox.tokens.labelFontFamily, ");\n ").concat(_Checkbox.checkboxTokens.labelFontSize, ": var(").concat(_Radiobox.tokens.labelFontSize, ");\n ").concat(_Checkbox.checkboxTokens.labelFontStyle, ": var(").concat(_Radiobox.tokens.labelFontStyle, ");\n ").concat(_Checkbox.checkboxTokens.labelFontWeight, ": var(").concat(_Radiobox.tokens.labelFontWeight, ");\n ").concat(_Checkbox.checkboxTokens.labelLetterSpacing, ": var(").concat(_Radiobox.tokens.labelLetterSpacing, ");\n ").concat(_Checkbox.checkboxTokens.labelLineHeight, ": var(").concat(_Radiobox.tokens.labelLineHeight, ");\n ").concat(_Checkbox.checkboxTokens.descriptionMarginTop, ": var(").concat(_Radiobox.tokens.descriptionMarginTop, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontFamily, ": var(").concat(_Radiobox.tokens.descriptionFontFamily, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontSize, ": var(").concat(_Radiobox.tokens.descriptionFontSize, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontStyle, ": var(").concat(_Radiobox.tokens.descriptionFontStyle, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontWeight, ": var(").concat(_Radiobox.tokens.descriptionFontWeight, ");\n ").concat(_Checkbox.checkboxTokens.descriptionLetterSpacing, ": var(").concat(_Radiobox.tokens.descriptionLetterSpacing, ");\n ").concat(_Checkbox.checkboxTokens.descriptionLineHeight, ": var(").concat(_Radiobox.tokens.descriptionLineHeight, ");\n\n ").concat(_Checkbox.checkboxTokens.fillColor, ": var(").concat(_Radiobox.tokens.fillColor, ");\n ").concat(_Checkbox.checkboxTokens.descriptionColor, ": var(").concat(_Radiobox.tokens.descriptionColor, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderColor, ": var(").concat(_Radiobox.tokens.triggerBorderColor, ");\n ").concat(_Checkbox.checkboxTokens.triggerBackgroundColor, ": var(").concat(_Radiobox.tokens.triggerBackgroundColor, ");\n\n ").concat(_Checkbox.checkboxTokens.contentTopOffset, ": var(").concat(_Radiobox.tokens.contentTopOffset, ");\n ").concat(_Checkbox.checkboxTokens.contentLeftOffset, ": var(").concat(_Radiobox.tokens.contentLeftOffset, ");\n ").concat(_Checkbox.checkboxTokens.triggerSize, ": var(").concat(_Radiobox.tokens.triggerSize, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderRadius, ": var(").concat(_Radiobox.tokens.triggerBorderRadius, ");\n ").concat(_Checkbox.checkboxTokens.triggerPadding, ": var(").concat(_Radiobox.tokens.triggerPadding, ");\n");
15
+ var mappingOverride = /*#__PURE__*/"\n ".concat(_Checkbox.checkboxTokens.labelFontFamily, ": var(").concat(_Radiobox.tokens.labelFontFamily, ");\n ").concat(_Checkbox.checkboxTokens.labelFontSize, ": var(").concat(_Radiobox.tokens.labelFontSize, ");\n ").concat(_Checkbox.checkboxTokens.labelFontStyle, ": var(").concat(_Radiobox.tokens.labelFontStyle, ");\n ").concat(_Checkbox.checkboxTokens.labelFontWeight, ": var(").concat(_Radiobox.tokens.labelFontWeight, ");\n ").concat(_Checkbox.checkboxTokens.labelLetterSpacing, ": var(").concat(_Radiobox.tokens.labelLetterSpacing, ");\n ").concat(_Checkbox.checkboxTokens.labelLineHeight, ": var(").concat(_Radiobox.tokens.labelLineHeight, ");\n ").concat(_Checkbox.checkboxTokens.descriptionMarginTop, ": var(").concat(_Radiobox.tokens.descriptionMarginTop, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontFamily, ": var(").concat(_Radiobox.tokens.descriptionFontFamily, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontSize, ": var(").concat(_Radiobox.tokens.descriptionFontSize, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontStyle, ": var(").concat(_Radiobox.tokens.descriptionFontStyle, ");\n ").concat(_Checkbox.checkboxTokens.descriptionFontWeight, ": var(").concat(_Radiobox.tokens.descriptionFontWeight, ");\n ").concat(_Checkbox.checkboxTokens.descriptionLetterSpacing, ": var(").concat(_Radiobox.tokens.descriptionLetterSpacing, ");\n ").concat(_Checkbox.checkboxTokens.descriptionLineHeight, ": var(").concat(_Radiobox.tokens.descriptionLineHeight, ");\n\n ").concat(_Checkbox.checkboxTokens.fillColor, ": var(").concat(_Radiobox.tokens.fillColor, ");\n ").concat(_Checkbox.checkboxTokens.descriptionColor, ": var(").concat(_Radiobox.tokens.descriptionColor, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderWidth, ": var(").concat(_Radiobox.tokens.triggerBorderWidth, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderColor, ": var(").concat(_Radiobox.tokens.triggerBorderColor, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderCheckedColor, ": var(").concat(_Radiobox.tokens.triggerBorderCheckedColor, ");\n ").concat(_Checkbox.checkboxTokens.triggerBackgroundColor, ": var(").concat(_Radiobox.tokens.triggerBackgroundColor, ");\n\n ").concat(_Checkbox.checkboxTokens.contentTopOffset, ": var(").concat(_Radiobox.tokens.contentTopOffset, ");\n ").concat(_Checkbox.checkboxTokens.contentLeftOffset, ": var(").concat(_Radiobox.tokens.contentLeftOffset, ");\n ").concat(_Checkbox.checkboxTokens.triggerSize, ": var(").concat(_Radiobox.tokens.triggerSize, ");\n ").concat(_Checkbox.checkboxTokens.triggerBorderRadius, ": var(").concat(_Radiobox.tokens.triggerBorderRadius, ");\n ").concat(_Checkbox.checkboxTokens.triggerPadding, ": var(").concat(_Radiobox.tokens.triggerPadding, ");\n");
16
16
  var StyledEllipse = exports.StyledEllipse = /*#__PURE__*/_styledComponents["default"].div.withConfig({
17
17
  componentId: "plasma-new-hope__sc-rqiilp-0"
18
18
  })(["width:var(", ");height:var(", ");border-radius:var(", ");background-color:var(", ");transition:transform 0.3s ease-in-out;transform:scale(0);input:checked + label &{transform:scale(1);}"], _Radiobox.tokens.ellipseSize, _Radiobox.tokens.ellipseSize, _Radiobox.tokens.ellipseSize, _Radiobox.tokens.ellipseColor);
@@ -25,7 +25,9 @@ var tokens = exports.tokens = {
25
25
  descriptionLineHeight: '--plasma-radiobox-description-line-height',
26
26
  fillColor: '--plasma-radiobox-fill-color',
27
27
  descriptionColor: '--plasma-radiobox-description-color',
28
+ triggerBorderWidth: '--plasma-checkbox-trigger-border-width',
28
29
  triggerBorderColor: '--plasma-radiobox-trigger-border-color',
30
+ triggerBorderCheckedColor: '--plasma-checkbox-trigger-border-checked-color',
29
31
  triggerBackgroundColor: '--plasma-radiobox-trigger-background-color',
30
32
  contentTopOffset: '--plasma-radiobox-content-top-offset',
31
33
  contentLeftOffset: '--plasma-radiobox-content-left-offset',
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _Radiobox = /*#__PURE__*/require("../../Radiobox.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input:checked + label .", "{border:none;background:var(", ");border-color:var(", ");}"], _Radiobox.classes.radioboxTrigger, _Radiobox.tokens.fillColor, _Radiobox.tokens.fillColor);
9
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["input:checked + label .", "{background:var(", ");border-color:var(", ");}"], _Radiobox.classes.radioboxTrigger, _Radiobox.tokens.fillColor, _Radiobox.tokens.triggerBorderCheckedColor);
@@ -55,6 +55,8 @@ var tokens = exports.tokens = {
55
55
  checkboxFillColor: '--plasma-select-checkbox-fill-color',
56
56
  checkboxIconColor: '--plasma-select-checkbox-icon-color',
57
57
  checkboxTriggerBorderColor: '--plasma-select-checkbox-trigger-border-color',
58
+ checkboxTriggerBorderCheckedColor: '--plasma-select-checkbox-trigger-border-checked-color',
59
+ checkboxTriggerBorderWidth: '--plasma-select-checkbox-trigger-border-width',
58
60
  indicatorSize: '--plasma-select-indicator-size',
59
61
  targetHeight: '--plasma-select-target-height',
60
62
  // Токены для Button
@@ -27,7 +27,7 @@ var StyledCell = exports.StyledCell = /*#__PURE__*/(0, _styledComponents["defaul
27
27
  })([""]);
28
28
  var StyledCheckbox = exports.StyledCheckbox = /*#__PURE__*/(0, _styledComponents["default"])(Checkbox).withConfig({
29
29
  componentId: "plasma-new-hope__sc-fr2h0y-2"
30
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Checkbox.checkboxTokens.triggerSize, _Select.tokens.checkboxTriggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Select.tokens.checkboxTriggerBorderRadius, _Checkbox.checkboxTokens.fillColor, _Select.tokens.checkboxFillColor, _Checkbox.checkboxTokens.iconColor, _Select.tokens.checkboxIconColor, _Checkbox.checkboxTokens.triggerBorderColor, _Select.tokens.checkboxTriggerBorderColor);
30
+ })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Checkbox.checkboxTokens.triggerSize, _Select.tokens.checkboxTriggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Select.tokens.checkboxTriggerBorderRadius, _Checkbox.checkboxTokens.fillColor, _Select.tokens.checkboxFillColor, _Checkbox.checkboxTokens.iconColor, _Select.tokens.checkboxIconColor, _Checkbox.checkboxTokens.triggerBorderWidth, _Select.tokens.checkboxTriggerBorderWidth, _Checkbox.checkboxTokens.triggerBorderColor, _Select.tokens.checkboxTriggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor, _Select.tokens.checkboxTriggerBorderCheckedColor);
31
31
  var StyledIndicator = exports.StyledIndicator = /*#__PURE__*/(0, _styledComponents["default"])(Indicator).withConfig({
32
32
  componentId: "plasma-new-hope__sc-fr2h0y-3"
33
33
  })(["", ":var(", ");", ":var(", ");"], _Indicator.indicatorTokens.size, _Select.tokens.indicatorSize, _Indicator.indicatorTokens.color, _Select.tokens.checkboxFillColor);
@@ -262,6 +262,7 @@ var textAreaRoot = exports.textAreaRoot = function textAreaRoot(Root) {
262
262
  hintView: hintView,
263
263
  hintSize: hintSize
264
264
  }), (hasOuterLabel || titleCaption) && /*#__PURE__*/_react["default"].createElement(_TextArea.OuterLabelWrapper, {
265
+ width: helperWidth,
265
266
  isInnerLabel: labelPlacement === 'inner'
266
267
  }, hasOuterLabel && /*#__PURE__*/_react["default"].createElement(_TextArea.StyledIndicatorWrapper, null, /*#__PURE__*/_react["default"].createElement(_TextArea.StyledLabel, null, label), hintText && /*#__PURE__*/_react["default"].createElement(_TextArea.StyledHintWrapper, null, /*#__PURE__*/_react["default"].createElement(_Hint.HintComponent, {
267
268
  ref: hintForkRef,
@@ -17,8 +17,11 @@ var Hint = exports.Hint = /*#__PURE__*/(0, _styledComponents["default"])(Tooltip
17
17
  })([""]);
18
18
  var OuterLabelWrapper = exports.OuterLabelWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
19
19
  componentId: "plasma-new-hope__sc-pxxv3p-1"
20
- })(["display:flex;align-items:center;margin-bottom:", ";"], function (_ref) {
21
- var isInnerLabel = _ref.isInnerLabel;
20
+ })(["display:flex;align-items:center;max-width:", ";margin-bottom:", ";"], function (_ref) {
21
+ var width = _ref.width;
22
+ return width;
23
+ }, function (_ref2) {
24
+ var isInnerLabel = _ref2.isInnerLabel;
22
25
  return isInnerLabel ? "var(".concat(_TextArea.tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(_TextArea.tokens.labelMarginBottom, ")");
23
26
  });
24
27
  var StyledLabel = exports.StyledLabel = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -32,23 +35,23 @@ var StyledIndicatorWrapper = exports.StyledIndicatorWrapper = /*#__PURE__*/_styl
32
35
  })(["position:relative;display:inline-flex;align-items:center;"]);
33
36
  var StyledOptionalText = exports.StyledOptionalText = /*#__PURE__*/_styledComponents["default"].span.withConfig({
34
37
  componentId: "plasma-new-hope__sc-pxxv3p-5"
35
- })(["color:var(", ");font-family:", ";font-size:", ";font-style:", ";font-weight:", ";letter-spacing:", ";line-height:", ";"], _TextArea.tokens.optionalColor, function (_ref2) {
36
- var inheritFont = _ref2.inheritFont;
37
- return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontFamily, ", var(").concat(_TextArea.tokens.inputFontFamily, "))");
38
- }, function (_ref3) {
38
+ })(["color:var(", ");font-family:", ";font-size:", ";font-style:", ";font-weight:", ";letter-spacing:", ";line-height:", ";"], _TextArea.tokens.optionalColor, function (_ref3) {
39
39
  var inheritFont = _ref3.inheritFont;
40
- return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontSize, ", var(").concat(_TextArea.tokens.inputFontSize, "))");
40
+ return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontFamily, ", var(").concat(_TextArea.tokens.inputFontFamily, "))");
41
41
  }, function (_ref4) {
42
42
  var inheritFont = _ref4.inheritFont;
43
- return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontStyle, ", var(").concat(_TextArea.tokens.inputFontStyle, "))");
43
+ return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontSize, ", var(").concat(_TextArea.tokens.inputFontSize, "))");
44
44
  }, function (_ref5) {
45
45
  var inheritFont = _ref5.inheritFont;
46
- return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontWeight, ", var(").concat(_TextArea.tokens.inputFontWeight, "))");
46
+ return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontStyle, ", var(").concat(_TextArea.tokens.inputFontStyle, "))");
47
47
  }, function (_ref6) {
48
48
  var inheritFont = _ref6.inheritFont;
49
- return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterLetterSpacing, ", var(").concat(_TextArea.tokens.inputLetterSpacing, "))");
49
+ return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterFontWeight, ", var(").concat(_TextArea.tokens.inputFontWeight, "))");
50
50
  }, function (_ref7) {
51
51
  var inheritFont = _ref7.inheritFont;
52
+ return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterLetterSpacing, ", var(").concat(_TextArea.tokens.inputLetterSpacing, "))");
53
+ }, function (_ref8) {
54
+ var inheritFont = _ref8.inheritFont;
52
55
  return inheritFont ? 'inherit' : "var(".concat(_TextArea.tokens.labelOuterLineHeight, ", var(").concat(_TextArea.tokens.inputLineHeight, "))");
53
56
  });
54
57
  var StyledHintWrapper = exports.StyledHintWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -62,11 +65,11 @@ var HintIconWrapper = exports.HintIconWrapper = /*#__PURE__*/_styledComponents["
62
65
  })([""]);
63
66
  var StyledTextAreaWrapper = exports.StyledTextAreaWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
64
67
  componentId: "plasma-new-hope__sc-pxxv3p-9"
65
- })(["background-color:var(", ");padding-top:var(", ");padding-bottom:", ";border-radius:", ";"], _TextArea.tokens.inputBackgroundColor, _TextArea.tokens.inputPaddingTop, function (_ref8) {
66
- var hasHelper = _ref8.hasHelper;
67
- return hasHelper ? "var(".concat(_TextArea.tokens.inputPaddingBottomWithHelpers, ")") : "var(".concat(_TextArea.tokens.inputPaddingBottom, ")");
68
- }, function (_ref9) {
68
+ })(["background-color:var(", ");padding-top:var(", ");padding-bottom:", ";border-radius:", ";"], _TextArea.tokens.inputBackgroundColor, _TextArea.tokens.inputPaddingTop, function (_ref9) {
69
69
  var hasHelper = _ref9.hasHelper;
70
+ return hasHelper ? "var(".concat(_TextArea.tokens.inputPaddingBottomWithHelpers, ")") : "var(".concat(_TextArea.tokens.inputPaddingBottom, ")");
71
+ }, function (_ref10) {
72
+ var hasHelper = _ref10.hasHelper;
70
73
  return hasHelper ? "var(".concat(_TextArea.tokens.borderRadiusWithHelpers, ")") : "var(".concat(_TextArea.tokens.borderRadius, ")");
71
74
  });
72
75
  var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -74,45 +77,45 @@ var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["defa
74
77
  })(["position:absolute;display:flex;align-items:center;bottom:0;z-index:1;color:var(", ",var(", "));top:var(", ");right:var(", ");height:var(", ");"], _TextArea.tokens.rightContentColor, _TextArea.tokens.inputColor, _TextArea.tokens.rightContentTop, _TextArea.tokens.rightContentRight, _TextArea.tokens.rightContentHeight);
75
78
  var StyledContainer = exports.StyledContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
76
79
  componentId: "plasma-new-hope__sc-pxxv3p-11"
77
- })(["display:inline-flex;flex-direction:column;width:", ";position:relative;"], function (_ref10) {
78
- var width = _ref10.width;
80
+ })(["display:inline-flex;flex-direction:column;width:", ";position:relative;"], function (_ref11) {
81
+ var width = _ref11.width;
79
82
  return width;
80
83
  });
81
84
  var StyledTextArea = exports.StyledTextArea = /*#__PURE__*/_styledComponents["default"].textarea.withConfig({
82
85
  componentId: "plasma-new-hope__sc-pxxv3p-12"
83
- })(["display:block;box-sizing:border-box;outline:none;border:none;-webkit-appearance:none;background-color:transparent;color:var(", ");caret-color:var(", ");resize:", ";--plasma_private-textarea-height:", ";--plasma_private-textarea-width:", ";--plasma_private-textarea-computed-height:", ";--plasma_private-textarea-computed-width:", ";height:var(--plasma_private-textarea-computed-height);width:var(--plasma_private-textarea-computed-width);min-width:", ";max-width:", ";min-height:var(", ");padding-right:", ";padding-left:var(", ",0);padding-top:0;padding-bottom:0;--plasma_private-textarea-helpers-computed-height:calc( var(", ",0) + var(", ",0) + var(", ") );--plasma_private-textarea-input-with-helpers-height:calc( var(--plasma_private-textarea-height) - var(--plasma_private-textarea-helpers-computed-height) + var(", ") );--plasma_private-textarea-input-without-helpers-height:calc( var(--plasma_private-textarea-computed-height) - var(", ") );--plasma_private-textarea-input-actual-height:", ";height:var(--plasma_private-textarea-input-actual-height);font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");&::placeholder{opacity:0;}&:read-only{cursor:default;}&:focus:not(:disabled){color:var(", ");}&::-webkit-scrollbar{width:var(", ");}&::-webkit-scrollbar-thumb{background-color:var(", ");background-clip:content-box;border:var(", ") solid transparent;border-radius:1rem;}&::-webkit-scrollbar-track{background-color:var(", ");background-clip:content-box;border:var(", ") solid transparent;border-radius:1rem;}"], _TextArea.tokens.inputColor, _TextArea.tokens.inputCaretColor, function (_ref11) {
84
- var resize = _ref11.resize;
86
+ })(["display:block;box-sizing:border-box;outline:none;border:none;-webkit-appearance:none;background-color:transparent;color:var(", ");caret-color:var(", ");resize:", ";--plasma_private-textarea-height:", ";--plasma_private-textarea-width:", ";--plasma_private-textarea-computed-height:", ";--plasma_private-textarea-computed-width:", ";height:var(--plasma_private-textarea-computed-height);width:var(--plasma_private-textarea-computed-width);min-width:", ";max-width:", ";min-height:var(", ");padding-right:", ";padding-left:var(", ",0);padding-top:0;padding-bottom:0;--plasma_private-textarea-helpers-computed-height:calc( var(", ",0) + var(", ",0) + var(", ") );--plasma_private-textarea-input-with-helpers-height:calc( var(--plasma_private-textarea-height) - var(--plasma_private-textarea-helpers-computed-height) + var(", ") );--plasma_private-textarea-input-without-helpers-height:calc( var(--plasma_private-textarea-computed-height) - var(", ") );--plasma_private-textarea-input-actual-height:", ";height:var(--plasma_private-textarea-input-actual-height);font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");&::placeholder{opacity:0;}&:read-only{cursor:default;}&:focus:not(:disabled){color:var(", ");}&::-webkit-scrollbar{width:var(", ");}&::-webkit-scrollbar-thumb{background-color:var(", ");background-clip:content-box;border:var(", ") solid transparent;border-radius:1rem;}&::-webkit-scrollbar-track{background-color:var(", ");background-clip:content-box;border:var(", ") solid transparent;border-radius:1rem;}"], _TextArea.tokens.inputColor, _TextArea.tokens.inputCaretColor, function (_ref12) {
87
+ var resize = _ref12.resize;
85
88
  return resize || 'none';
86
- }, function (_ref12) {
87
- var height = _ref12.height;
88
- return !Number.isNaN(Number(height)) ? "calc(".concat(height, "rem - 0.875rem)") : height || "var(".concat(_TextArea.tokens.inputHeight, ")");
89
89
  }, function (_ref13) {
90
- var width = _ref13.width;
91
- return !Number.isNaN(Number(width)) ? "".concat(width, "rem") : width || "var(".concat(_TextArea.tokens.inputWidth, ")");
90
+ var height = _ref13.height;
91
+ return !Number.isNaN(Number(height)) ? "calc(".concat(height, "rem - 0.875rem)") : height || "var(".concat(_TextArea.tokens.inputHeight, ")");
92
92
  }, function (_ref14) {
93
- var rows = _ref14.rows;
94
- return rows ? 'unset' : 'var(--plasma_private-textarea-height)';
93
+ var width = _ref14.width;
94
+ return !Number.isNaN(Number(width)) ? "".concat(width, "rem") : width || "var(".concat(_TextArea.tokens.inputWidth, ")");
95
95
  }, function (_ref15) {
96
- var cols = _ref15.cols;
97
- return cols ? 'unset' : 'var(--plasma_private-textarea-width)';
96
+ var rows = _ref15.rows;
97
+ return rows ? 'unset' : 'var(--plasma_private-textarea-height)';
98
98
  }, function (_ref16) {
99
- var applyCustomWidth = _ref16.applyCustomWidth;
100
- return applyCustomWidth ? 'var(--plasma_private-textarea-width)' : 'auto';
99
+ var cols = _ref16.cols;
100
+ return cols ? 'unset' : 'var(--plasma_private-textarea-width)';
101
101
  }, function (_ref17) {
102
102
  var applyCustomWidth = _ref17.applyCustomWidth;
103
103
  return applyCustomWidth ? 'var(--plasma_private-textarea-width)' : 'auto';
104
- }, _TextArea.tokens.inputMinHeight, function (_ref18) {
105
- var hasContentRight = _ref18.hasContentRight;
104
+ }, function (_ref18) {
105
+ var applyCustomWidth = _ref18.applyCustomWidth;
106
+ return applyCustomWidth ? 'var(--plasma_private-textarea-width)' : 'auto';
107
+ }, _TextArea.tokens.inputMinHeight, function (_ref19) {
108
+ var hasContentRight = _ref19.hasContentRight;
106
109
  return hasContentRight ? "var(".concat(_TextArea.tokens.inputPaddingRightWithRightContent, ", 0)") : "var(".concat(_TextArea.tokens.inputPaddingRight, ", 0)");
107
- }, _TextArea.tokens.inputPaddingLeft, _TextArea.tokens.helpersPaddingTop, _TextArea.tokens.helpersPaddingBottom, _TextArea.tokens.helpersLineHeight, _TextArea.tokens.helpersOffset, _TextArea.tokens.inputPaddingBottom, function (_ref19) {
108
- var hasHelper = _ref19.hasHelper,
109
- rows = _ref19.rows;
110
+ }, _TextArea.tokens.inputPaddingLeft, _TextArea.tokens.helpersPaddingTop, _TextArea.tokens.helpersPaddingBottom, _TextArea.tokens.helpersLineHeight, _TextArea.tokens.helpersOffset, _TextArea.tokens.inputPaddingBottom, function (_ref20) {
111
+ var hasHelper = _ref20.hasHelper,
112
+ rows = _ref20.rows;
110
113
  return hasHelper && !rows ? 'var(--plasma_private-textarea-input-with-helpers-height)' : 'var(--plasma_private-textarea-input-without-helpers-height)';
111
114
  }, _TextArea.tokens.inputFontFamily, _TextArea.tokens.inputFontSize, _TextArea.tokens.inputFontStyle, _TextArea.tokens.inputFontWeight, _TextArea.tokens.inputLetterSpacing, _TextArea.tokens.inputLineHeight, _TextArea.tokens.inputColorFocus, _TextArea.tokens.scrollbarWidth, _TextArea.tokens.scrollbarThumbBackgroundColor, _TextArea.tokens.scrollbarBorderWidth, _TextArea.tokens.scrollbarTrackBackgroundColor, _TextArea.tokens.scrollbarBorderWidth);
112
115
  var StyledHiddenTextArea = exports.StyledHiddenTextArea = /*#__PURE__*/_styledComponents["default"].textarea.withConfig({
113
116
  componentId: "plasma-new-hope__sc-pxxv3p-13"
114
- })(["max-height:none !important;min-height:var(", ") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:0.0625rem !important;border-width:0;padding-right:", ";padding-left:var(", ",0);padding-top:0;padding-bottom:0;box-sizing:border-box;text-indent:0;text-rendering:auto;text-transform:none;tab-size:8;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _TextArea.tokens.inputMinHeight, function (_ref20) {
115
- var hasContentRight = _ref20.hasContentRight;
117
+ })(["max-height:none !important;min-height:var(", ") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:0.0625rem !important;border-width:0;padding-right:", ";padding-left:var(", ",0);padding-top:0;padding-bottom:0;box-sizing:border-box;text-indent:0;text-rendering:auto;text-transform:none;tab-size:8;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _TextArea.tokens.inputMinHeight, function (_ref21) {
118
+ var hasContentRight = _ref21.hasContentRight;
116
119
  return hasContentRight ? "var(".concat(_TextArea.tokens.inputPaddingRightWithRightContent, ", 0)") : "var(".concat(_TextArea.tokens.inputPaddingRight, ", 0)");
117
120
  }, _TextArea.tokens.inputPaddingLeft, _TextArea.tokens.inputFontFamily, _TextArea.tokens.inputFontSize, _TextArea.tokens.inputFontStyle, _TextArea.tokens.inputFontWeight, _TextArea.tokens.inputLetterSpacing, _TextArea.tokens.inputLineHeight);
118
121
  var StyledHelpers = exports.StyledHelpers = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -129,8 +132,8 @@ var StyledRightHelper = exports.StyledRightHelper = /*#__PURE__*/(0, _styledComp
129
132
  })(["color:var(", ");margin-left:auto;"], _TextArea.tokens.rightHelperColor);
130
133
  var StyledPlaceholder = exports.StyledPlaceholder = /*#__PURE__*/_styledComponents["default"].label.withConfig({
131
134
  componentId: "plasma-new-hope__sc-pxxv3p-18"
132
- })(["box-sizing:border-box;position:absolute;pointer-events:none;display:inline-flex;align-items:center;transition:all 0.1s ease-in-out;transform-origin:top left;color:var(", ");width:100%;height:auto;top:var(", ");padding-left:var(", ");padding-right:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _TextArea.tokens.placeholderColor, _TextArea.tokens.inputPaddingTop, _TextArea.tokens.inputPaddingLeft, function (_ref21) {
133
- var hasContentRight = _ref21.hasContentRight;
135
+ })(["box-sizing:border-box;position:absolute;pointer-events:none;display:inline-flex;align-items:center;transition:all 0.1s ease-in-out;transform-origin:top left;color:var(", ");width:100%;height:auto;top:var(", ");padding-left:var(", ");padding-right:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _TextArea.tokens.placeholderColor, _TextArea.tokens.inputPaddingTop, _TextArea.tokens.inputPaddingLeft, function (_ref22) {
136
+ var hasContentRight = _ref22.hasContentRight;
134
137
  return hasContentRight ? "var(".concat(_TextArea.tokens.inputPaddingRightWithRightContent, ")") : "var(".concat(_TextArea.tokens.inputPaddingRight, ")");
135
138
  }, _TextArea.tokens.inputFontFamily, _TextArea.tokens.inputFontSize, _TextArea.tokens.inputFontStyle, _TextArea.tokens.inputFontWeight, _TextArea.tokens.inputLetterSpacing, _TextArea.tokens.inputLineHeight);
136
139
  var StyledIndicator = exports.StyledIndicator = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -15,28 +15,27 @@ var config = exports.config = {
15
15
  * Размер контрола.
16
16
  */
17
17
  size: {
18
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.0625rem;", ":0.875rem;", ":0.25rem;", ":0;", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.125rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Checkbox.checkboxTokens.margin, _Checkbox.checkboxTokens.triggerPadding, _Checkbox.checkboxTokens.triggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Checkbox.checkboxTokens.contentTopOffset, _Checkbox.checkboxTokens.contentLeftOffset, _Checkbox.checkboxTokens.labelFontFamily, _Checkbox.checkboxTokens.labelFontSize, _Checkbox.checkboxTokens.labelFontStyle, _Checkbox.checkboxTokens.labelFontWeight, _Checkbox.checkboxTokens.labelLetterSpacing, _Checkbox.checkboxTokens.labelLineHeight, _Checkbox.checkboxTokens.descriptionMarginTop, _Checkbox.checkboxTokens.descriptionFontFamily, _Checkbox.checkboxTokens.descriptionFontSize, _Checkbox.checkboxTokens.descriptionFontStyle, _Checkbox.checkboxTokens.descriptionFontWeight, _Checkbox.checkboxTokens.descriptionLetterSpacing, _Checkbox.checkboxTokens.descriptionLineHeight),
19
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.125rem;", ":1.25rem;", ":0.375rem;", ":0.125rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.125rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Checkbox.checkboxTokens.margin, _Checkbox.checkboxTokens.triggerPadding, _Checkbox.checkboxTokens.triggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Checkbox.checkboxTokens.contentTopOffset, _Checkbox.checkboxTokens.contentLeftOffset, _Checkbox.checkboxTokens.labelFontFamily, _Checkbox.checkboxTokens.labelFontSize, _Checkbox.checkboxTokens.labelFontStyle, _Checkbox.checkboxTokens.labelFontWeight, _Checkbox.checkboxTokens.labelLetterSpacing, _Checkbox.checkboxTokens.labelLineHeight, _Checkbox.checkboxTokens.descriptionMarginTop, _Checkbox.checkboxTokens.descriptionFontFamily, _Checkbox.checkboxTokens.descriptionFontSize, _Checkbox.checkboxTokens.descriptionFontStyle, _Checkbox.checkboxTokens.descriptionFontWeight, _Checkbox.checkboxTokens.descriptionLetterSpacing, _Checkbox.checkboxTokens.descriptionLineHeight)
18
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.0625rem;", ":0.875rem;", ":0.25rem;", ":0.125rem;", ":0;", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.125rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Checkbox.checkboxTokens.margin, _Checkbox.checkboxTokens.triggerPadding, _Checkbox.checkboxTokens.triggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Checkbox.checkboxTokens.triggerBorderWidth, _Checkbox.checkboxTokens.contentTopOffset, _Checkbox.checkboxTokens.contentLeftOffset, _Checkbox.checkboxTokens.labelFontFamily, _Checkbox.checkboxTokens.labelFontSize, _Checkbox.checkboxTokens.labelFontStyle, _Checkbox.checkboxTokens.labelFontWeight, _Checkbox.checkboxTokens.labelLetterSpacing, _Checkbox.checkboxTokens.labelLineHeight, _Checkbox.checkboxTokens.descriptionMarginTop, _Checkbox.checkboxTokens.descriptionFontFamily, _Checkbox.checkboxTokens.descriptionFontSize, _Checkbox.checkboxTokens.descriptionFontStyle, _Checkbox.checkboxTokens.descriptionFontWeight, _Checkbox.checkboxTokens.descriptionLetterSpacing, _Checkbox.checkboxTokens.descriptionLineHeight),
19
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.125rem;", ":1.25rem;", ":0.375rem;", ":0.125rem;", ":0.125rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.125rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Checkbox.checkboxTokens.margin, _Checkbox.checkboxTokens.triggerPadding, _Checkbox.checkboxTokens.triggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Checkbox.checkboxTokens.triggerBorderWidth, _Checkbox.checkboxTokens.contentTopOffset, _Checkbox.checkboxTokens.contentLeftOffset, _Checkbox.checkboxTokens.labelFontFamily, _Checkbox.checkboxTokens.labelFontSize, _Checkbox.checkboxTokens.labelFontStyle, _Checkbox.checkboxTokens.labelFontWeight, _Checkbox.checkboxTokens.labelLetterSpacing, _Checkbox.checkboxTokens.labelLineHeight, _Checkbox.checkboxTokens.descriptionMarginTop, _Checkbox.checkboxTokens.descriptionFontFamily, _Checkbox.checkboxTokens.descriptionFontSize, _Checkbox.checkboxTokens.descriptionFontStyle, _Checkbox.checkboxTokens.descriptionFontWeight, _Checkbox.checkboxTokens.descriptionLetterSpacing, _Checkbox.checkboxTokens.descriptionLineHeight)
20
20
  },
21
21
  /**
22
22
  * Вид контрола.
23
23
  */
24
24
  view: {
25
- accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
25
+ accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
26
26
  // deprecated
27
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
27
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
28
28
  // deprecated
29
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
29
+ secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
30
30
  // deprecated
31
- tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
31
+ tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
32
32
  // deprecated
33
- paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-paragraph);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
33
+ paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-paragraph);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
34
34
  // deprecated
35
- positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
35
+ positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
36
36
  // deprecated
37
- warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
38
- // deprecated
39
- negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor)
37
+ warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
38
+ negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-negative);", ":transparent;"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor)
40
39
  },
41
40
  disabled: {
42
41
  "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Checkbox.checkboxTokens.disabledOpacity)
@@ -3,9 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Checkbox = void 0;
6
+ exports.CheckboxOutline = exports.CheckboxDefalut = exports.Checkbox = void 0;
7
7
  var _Checkbox = /*#__PURE__*/require("../../../../components/Checkbox");
8
8
  var _engines = /*#__PURE__*/require("../../../../engines");
9
+ var _createConditionalComponent = /*#__PURE__*/require("../../../../utils/createConditionalComponent");
9
10
  var _Checkbox2 = /*#__PURE__*/require("./Checkbox.config");
10
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Checkbox.checkboxConfig, _Checkbox2.config);
11
- var Checkbox = exports.Checkbox = /*#__PURE__*/(0, _engines.component)(mergedConfig);
11
+ var _CheckboxOutline = /*#__PURE__*/require("./Checkbox.outline.config");
12
+ var mergedConfigDefault = /*#__PURE__*/(0, _engines.mergeConfig)(_Checkbox.checkboxConfig, _Checkbox2.config);
13
+ var CheckboxDefalut = exports.CheckboxDefalut = /*#__PURE__*/(0, _engines.component)(mergedConfigDefault);
14
+ var mergedConfigOutline = /*#__PURE__*/(0, _engines.mergeConfig)(_Checkbox.checkboxConfig, _CheckboxOutline.config);
15
+ var CheckboxOutline = exports.CheckboxOutline = /*#__PURE__*/(0, _engines.component)(mergedConfigOutline);
16
+ var Checkbox = exports.Checkbox = /*#__PURE__*/(0, _createConditionalComponent.createConditionalComponent)(CheckboxDefalut, [{
17
+ conditions: {
18
+ prop: 'appearance',
19
+ value: 'outline'
20
+ },
21
+ component: CheckboxOutline
22
+ }]);
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _Checkbox = /*#__PURE__*/require("../../../../components/Checkbox");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'accent'
12
+ },
13
+ variations: {
14
+ /**
15
+ * Размер контрола.
16
+ */
17
+ size: {
18
+ s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.0625rem;", ":0.875rem;", ":0.25rem;", ":0.0625rem;", ":0;", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.125rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Checkbox.checkboxTokens.margin, _Checkbox.checkboxTokens.triggerPadding, _Checkbox.checkboxTokens.triggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Checkbox.checkboxTokens.triggerBorderWidth, _Checkbox.checkboxTokens.contentTopOffset, _Checkbox.checkboxTokens.contentLeftOffset, _Checkbox.checkboxTokens.labelFontFamily, _Checkbox.checkboxTokens.labelFontSize, _Checkbox.checkboxTokens.labelFontStyle, _Checkbox.checkboxTokens.labelFontWeight, _Checkbox.checkboxTokens.labelLetterSpacing, _Checkbox.checkboxTokens.labelLineHeight, _Checkbox.checkboxTokens.descriptionMarginTop, _Checkbox.checkboxTokens.descriptionFontFamily, _Checkbox.checkboxTokens.descriptionFontSize, _Checkbox.checkboxTokens.descriptionFontStyle, _Checkbox.checkboxTokens.descriptionFontWeight, _Checkbox.checkboxTokens.descriptionLetterSpacing, _Checkbox.checkboxTokens.descriptionLineHeight),
19
+ m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.125rem;", ":1.25rem;", ":0.375rem;", ":0.0625rem;", ":0.125rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.125rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Checkbox.checkboxTokens.margin, _Checkbox.checkboxTokens.triggerPadding, _Checkbox.checkboxTokens.triggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Checkbox.checkboxTokens.triggerBorderWidth, _Checkbox.checkboxTokens.contentTopOffset, _Checkbox.checkboxTokens.contentLeftOffset, _Checkbox.checkboxTokens.labelFontFamily, _Checkbox.checkboxTokens.labelFontSize, _Checkbox.checkboxTokens.labelFontStyle, _Checkbox.checkboxTokens.labelFontWeight, _Checkbox.checkboxTokens.labelLetterSpacing, _Checkbox.checkboxTokens.labelLineHeight, _Checkbox.checkboxTokens.descriptionMarginTop, _Checkbox.checkboxTokens.descriptionFontFamily, _Checkbox.checkboxTokens.descriptionFontSize, _Checkbox.checkboxTokens.descriptionFontStyle, _Checkbox.checkboxTokens.descriptionFontWeight, _Checkbox.checkboxTokens.descriptionLetterSpacing, _Checkbox.checkboxTokens.descriptionLineHeight)
20
+ },
21
+ /**
22
+ * Вид контрола.
23
+ */
24
+ view: {
25
+ accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
26
+ // deprecated
27
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-primary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
28
+ // deprecated
29
+ secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
30
+ // deprecated
31
+ tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-tertiary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
32
+ // deprecated
33
+ paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-paragraph);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-paragraph);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
34
+ // deprecated
35
+ positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-positive);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-positive);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
36
+ // deprecated
37
+ warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-warning);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-warning);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor),
38
+ negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-negative);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-negative);", ":var(--text-negative);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.labelColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor, _Checkbox.checkboxTokens.triggerBorderCheckedColor)
39
+ },
40
+ disabled: {
41
+ "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Checkbox.checkboxTokens.disabledOpacity)
42
+ },
43
+ focused: {
44
+ "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);"], _Checkbox.checkboxTokens.focusColor)
45
+ }
46
+ }
47
+ };
@@ -18,7 +18,7 @@ const meta: Meta<typeof Checkbox> = {
18
18
  component: Checkbox,
19
19
  argTypes: {
20
20
  view: {
21
- options: ['accent'],
21
+ options: ['accent', 'negative'],
22
22
  control: {
23
23
  type: 'radio',
24
24
  },
@@ -29,12 +29,19 @@ const meta: Meta<typeof Checkbox> = {
29
29
  type: 'radio',
30
30
  },
31
31
  },
32
+ appearance: {
33
+ options: ['default', 'outline'],
34
+ control: {
35
+ type: 'radio',
36
+ },
37
+ },
32
38
  },
33
39
  args: {
34
40
  view: 'accent',
35
41
  size: 'm',
36
42
  disabled: false,
37
43
  focused: true,
44
+ appearance: 'default',
38
45
  },
39
46
  };
40
47