@salutejs/plasma-new-hope 0.316.0-canary.1877.14207597686.0 → 0.316.0-dev.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 (273) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -52
  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_1dv1w6k.css → Checkbox.styles_rxomqi.css} +1 -1
  7. package/cjs/components/Checkbox/Checkbox.tokens.js +0 -2
  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_x86p0b.css → cjs/components/Checkbox/variations/_focused/base_hr4zpz.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_1xk2qu8.css +1 -0
  15. package/cjs/components/Combobox/ComboboxNew/Combobox.css +22 -22
  16. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -2
  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_1fy6e2z.css → cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1cijcra.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_1u9zve5.css → Radiobox.styles_8cwqg9.css} +1 -1
  29. package/cjs/components/Radiobox/Radiobox.tokens.js +0 -2
  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_11n1fn3.css +1 -0
  34. package/cjs/components/Select/Select.css +19 -19
  35. package/cjs/components/Select/Select.tokens.js +0 -2
  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_1gk72bp.css → Item.styles_nvzopo.css} +1 -1
  41. package/cjs/components/Select/ui/VirtualList/VirtualList.css +19 -19
  42. package/cjs/components/Slider/Slider.css +6 -6
  43. package/cjs/components/Slider/components/Single/Single.css +6 -6
  44. package/cjs/components/Slider/components/Single/Single.styles.js +1 -1
  45. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  46. package/cjs/components/Slider/components/Single/{Single.styles_1a6l9pg.css → Single.styles_e0wk24.css} +2 -2
  47. package/cjs/components/Table/Table.css +19 -19
  48. package/cjs/components/Table/ui/Cell/Cell.css +19 -19
  49. package/cjs/components/Table/ui/EditableCell/EditableCell.css +19 -19
  50. package/cjs/components/Table/ui/HeadCell/HeadCell.css +19 -19
  51. package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +19 -19
  52. package/cjs/index.css +39 -39
  53. package/cjs/index.js +0 -2
  54. package/cjs/index.js.map +1 -1
  55. package/cjs/utils/index.js.map +1 -1
  56. package/emotion/cjs/components/Checkbox/Checkbox.styles.js +8 -8
  57. package/emotion/cjs/components/Checkbox/Checkbox.tokens.js +0 -2
  58. package/emotion/cjs/components/Checkbox/variations/_focused/base.js +2 -2
  59. package/emotion/cjs/components/Checkbox/variations/_view/base.js +1 -1
  60. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -2
  61. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +13 -13
  62. package/emotion/cjs/components/Radiobox/Radiobox.styles.js +3 -3
  63. package/emotion/cjs/components/Radiobox/Radiobox.tokens.js +0 -2
  64. package/emotion/cjs/components/Radiobox/variations/_view/base.js +1 -1
  65. package/emotion/cjs/components/Select/Select.tokens.js +0 -2
  66. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -11
  67. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +7 -6
  68. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +13 -12
  69. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.js +3 -14
  70. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -8
  71. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +15 -15
  72. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +12 -12
  73. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.js +3 -14
  74. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +2 -13
  75. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  76. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +13 -12
  77. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.js +3 -14
  78. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -8
  79. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +15 -15
  80. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +12 -12
  81. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.js +3 -14
  82. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +2 -13
  83. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +24 -24
  84. package/emotion/cjs/utils/index.js +0 -8
  85. package/emotion/es/components/Checkbox/Checkbox.styles.js +8 -8
  86. package/emotion/es/components/Checkbox/Checkbox.tokens.js +0 -2
  87. package/emotion/es/components/Checkbox/variations/_focused/base.js +2 -2
  88. package/emotion/es/components/Checkbox/variations/_view/base.js +1 -1
  89. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -2
  90. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +13 -13
  91. package/emotion/es/components/Radiobox/Radiobox.styles.js +3 -3
  92. package/emotion/es/components/Radiobox/Radiobox.tokens.js +0 -2
  93. package/emotion/es/components/Radiobox/variations/_view/base.js +1 -1
  94. package/emotion/es/components/Select/Select.tokens.js +0 -2
  95. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -11
  96. package/emotion/es/components/Slider/components/Single/Single.styles.js +7 -6
  97. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +13 -12
  98. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.js +2 -13
  99. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -8
  100. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +15 -15
  101. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +12 -12
  102. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.js +2 -13
  103. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +2 -13
  104. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +24 -24
  105. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +13 -12
  106. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.js +2 -13
  107. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -8
  108. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +15 -15
  109. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +12 -12
  110. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.js +2 -13
  111. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +2 -13
  112. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +24 -24
  113. package/emotion/es/utils/index.js +0 -1
  114. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -52
  115. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  116. package/es/components/Checkbox/Checkbox.css +10 -10
  117. package/es/components/Checkbox/Checkbox.styles.js +1 -1
  118. package/es/components/Checkbox/Checkbox.styles.js.map +1 -1
  119. package/es/components/Checkbox/{Checkbox.styles_1dv1w6k.css → Checkbox.styles_rxomqi.css} +1 -1
  120. package/es/components/Checkbox/Checkbox.tokens.js +0 -2
  121. package/es/components/Checkbox/Checkbox.tokens.js.map +1 -1
  122. package/es/components/Checkbox/variations/_focused/base.js +1 -1
  123. package/es/components/Checkbox/variations/_focused/base.js.map +1 -1
  124. package/{cjs/components/Checkbox/variations/_focused/base_x86p0b.css → es/components/Checkbox/variations/_focused/base_hr4zpz.css} +1 -1
  125. package/es/components/Checkbox/variations/_view/base.js +1 -1
  126. package/es/components/Checkbox/variations/_view/base.js.map +1 -1
  127. package/es/components/Checkbox/variations/_view/base_1xk2qu8.css +1 -0
  128. package/es/components/Combobox/ComboboxNew/Combobox.css +22 -22
  129. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -2
  130. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  131. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -22
  132. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -15
  133. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  134. package/{cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1fy6e2z.css → es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles_1cijcra.css} +1 -1
  135. package/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.css +22 -22
  136. package/es/components/Pagination/Pagination.css +19 -19
  137. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +19 -19
  138. package/es/components/Radiobox/Radiobox.css +11 -11
  139. package/es/components/Radiobox/Radiobox.styles.js +1 -1
  140. package/es/components/Radiobox/Radiobox.styles.js.map +1 -1
  141. package/es/components/Radiobox/{Radiobox.styles_1u9zve5.css → Radiobox.styles_8cwqg9.css} +1 -1
  142. package/es/components/Radiobox/Radiobox.tokens.js +0 -2
  143. package/es/components/Radiobox/Radiobox.tokens.js.map +1 -1
  144. package/es/components/Radiobox/variations/_view/base.js +1 -1
  145. package/es/components/Radiobox/variations/_view/base.js.map +1 -1
  146. package/es/components/Radiobox/variations/_view/base_11n1fn3.css +1 -0
  147. package/es/components/Select/Select.css +19 -19
  148. package/es/components/Select/Select.tokens.js +0 -2
  149. package/es/components/Select/Select.tokens.js.map +1 -1
  150. package/es/components/Select/ui/Inner/Inner.css +19 -19
  151. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +15 -15
  152. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  153. package/es/components/Select/ui/Inner/ui/Item/{Item.styles_1gk72bp.css → Item.styles_nvzopo.css} +1 -1
  154. package/es/components/Select/ui/VirtualList/VirtualList.css +19 -19
  155. package/es/components/Slider/Slider.css +6 -6
  156. package/es/components/Slider/components/Single/Single.css +6 -6
  157. package/es/components/Slider/components/Single/Single.styles.js +1 -1
  158. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  159. package/es/components/Slider/components/Single/{Single.styles_1a6l9pg.css → Single.styles_e0wk24.css} +2 -2
  160. package/es/components/Table/Table.css +19 -19
  161. package/es/components/Table/ui/Cell/Cell.css +19 -19
  162. package/es/components/Table/ui/EditableCell/EditableCell.css +19 -19
  163. package/es/components/Table/ui/HeadCell/HeadCell.css +19 -19
  164. package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +19 -19
  165. package/es/index.css +39 -39
  166. package/es/index.js +0 -1
  167. package/es/index.js.map +1 -1
  168. package/es/utils/index.js.map +1 -1
  169. package/package.json +2 -2
  170. package/styled-components/cjs/components/Checkbox/Checkbox.styles.js +1 -1
  171. package/styled-components/cjs/components/Checkbox/Checkbox.tokens.js +0 -2
  172. package/styled-components/cjs/components/Checkbox/variations/_focused/base.js +1 -1
  173. package/styled-components/cjs/components/Checkbox/variations/_view/base.js +1 -1
  174. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -2
  175. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  176. package/styled-components/cjs/components/Radiobox/Radiobox.styles.js +1 -1
  177. package/styled-components/cjs/components/Radiobox/Radiobox.tokens.js +0 -2
  178. package/styled-components/cjs/components/Radiobox/variations/_view/base.js +1 -1
  179. package/styled-components/cjs/components/Select/Select.tokens.js +0 -2
  180. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  181. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +3 -2
  182. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +11 -10
  183. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.js +3 -14
  184. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -8
  185. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  186. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +10 -10
  187. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.js +3 -14
  188. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +2 -13
  189. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +4 -4
  190. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +11 -10
  191. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.js +3 -14
  192. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -8
  193. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  194. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +10 -10
  195. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.js +3 -14
  196. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +2 -13
  197. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +4 -4
  198. package/styled-components/cjs/utils/index.js +0 -8
  199. package/styled-components/es/components/Checkbox/Checkbox.styles.js +1 -1
  200. package/styled-components/es/components/Checkbox/Checkbox.tokens.js +0 -2
  201. package/styled-components/es/components/Checkbox/variations/_focused/base.js +1 -1
  202. package/styled-components/es/components/Checkbox/variations/_view/base.js +1 -1
  203. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -2
  204. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -1
  205. package/styled-components/es/components/Radiobox/Radiobox.styles.js +1 -1
  206. package/styled-components/es/components/Radiobox/Radiobox.tokens.js +0 -2
  207. package/styled-components/es/components/Radiobox/variations/_view/base.js +1 -1
  208. package/styled-components/es/components/Select/Select.tokens.js +0 -2
  209. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  210. package/styled-components/es/components/Slider/components/Single/Single.styles.js +3 -2
  211. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +11 -10
  212. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.js +2 -13
  213. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -8
  214. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  215. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +10 -10
  216. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.js +2 -13
  217. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +2 -13
  218. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +4 -4
  219. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +11 -10
  220. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.js +2 -13
  221. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -8
  222. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  223. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +10 -10
  224. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.js +2 -13
  225. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +2 -13
  226. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +4 -4
  227. package/styled-components/es/utils/index.js +0 -1
  228. package/types/components/Checkbox/Checkbox.tokens.d.ts +0 -2
  229. package/types/components/Checkbox/Checkbox.tokens.d.ts.map +1 -1
  230. package/types/components/Checkbox/variations/_view/base.d.ts.map +1 -1
  231. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -2
  232. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  233. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  234. package/types/components/Radiobox/Radiobox.styles.d.ts.map +1 -1
  235. package/types/components/Radiobox/Radiobox.tokens.d.ts +0 -2
  236. package/types/components/Radiobox/Radiobox.tokens.d.ts.map +1 -1
  237. package/types/components/Radiobox/variations/_view/base.d.ts.map +1 -1
  238. package/types/components/Select/Select.tokens.d.ts +0 -2
  239. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  240. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  241. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  242. package/types/utils/index.d.ts +0 -1
  243. package/types/utils/index.d.ts.map +1 -1
  244. package/cjs/components/Checkbox/variations/_view/base_tj850e.css +0 -1
  245. package/cjs/components/Radiobox/variations/_view/base_1f50j99.css +0 -1
  246. package/cjs/utils/createConditionalComponent.js +0 -41
  247. package/cjs/utils/createConditionalComponent.js.map +0 -1
  248. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +0 -47
  249. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +0 -49
  250. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +0 -47
  251. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +0 -49
  252. package/emotion/cjs/utils/createConditionalComponent.js +0 -38
  253. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +0 -41
  254. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +0 -43
  255. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +0 -41
  256. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +0 -43
  257. package/emotion/es/utils/createConditionalComponent.js +0 -31
  258. package/es/components/Checkbox/variations/_view/base_tj850e.css +0 -1
  259. package/es/components/Radiobox/variations/_view/base_1f50j99.css +0 -1
  260. package/es/utils/createConditionalComponent.js +0 -33
  261. package/es/utils/createConditionalComponent.js.map +0 -1
  262. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +0 -47
  263. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +0 -49
  264. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +0 -47
  265. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +0 -49
  266. package/styled-components/cjs/utils/createConditionalComponent.js +0 -38
  267. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.outline.config.js +0 -41
  268. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.outline.config.js +0 -43
  269. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.outline.config.js +0 -41
  270. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.outline.config.js +0 -43
  271. package/styled-components/es/utils/createConditionalComponent.js +0 -31
  272. package/types/utils/createConditionalComponent.d.ts +0 -12
  273. package/types/utils/createConditionalComponent.d.ts.map +0 -1
@@ -1,47 +0,0 @@
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
- };
@@ -1,49 +0,0 @@
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 _Radiobox = /*#__PURE__*/require("../../../../components/Radiobox");
9
- var config = exports.config = {
10
- defaults: {
11
- view: 'accent',
12
- focused: 'true'
13
- },
14
- variations: {
15
- /**
16
- * Размер контрола.
17
- */
18
- size: {
19
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.0625rem 0;", ":1rem;", ":1.125rem;", ":0.0625rem;", ":0.5rem;", ":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);", ":var(--plasma-typo-body-xs-font-family);", ":0.125rem;", ":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);"], _Radiobox.radioboxTokens.margin, _Radiobox.radioboxTokens.triggerPadding, _Radiobox.radioboxTokens.triggerSize, _Radiobox.radioboxTokens.triggerBorderRadius, _Radiobox.radioboxTokens.triggerBorderWidth, _Radiobox.radioboxTokens.ellipseSize, _Radiobox.radioboxTokens.contentTopOffset, _Radiobox.radioboxTokens.contentLeftOffset, _Radiobox.radioboxTokens.labelFontFamily, _Radiobox.radioboxTokens.labelFontSize, _Radiobox.radioboxTokens.labelFontStyle, _Radiobox.radioboxTokens.labelFontWeight, _Radiobox.radioboxTokens.labelLetterSpacing, _Radiobox.radioboxTokens.labelLineHeight, _Radiobox.radioboxTokens.descriptionFontFamily, _Radiobox.radioboxTokens.descriptionMarginTop, _Radiobox.radioboxTokens.descriptionFontSize, _Radiobox.radioboxTokens.descriptionFontStyle, _Radiobox.radioboxTokens.descriptionFontWeight, _Radiobox.radioboxTokens.descriptionLetterSpacing, _Radiobox.radioboxTokens.descriptionLineHeight),
20
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0;", ":0.0625rem;", ":1.375rem;", ":1.125rem;", ":0.0625rem;", ":0.625rem;", ":0.125rem;", ":0.625rem;", ":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);", ":var(--plasma-typo-body-s-font-family);", ":0.125rem;", ":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);"], _Radiobox.radioboxTokens.margin, _Radiobox.radioboxTokens.triggerPadding, _Radiobox.radioboxTokens.triggerSize, _Radiobox.radioboxTokens.triggerBorderRadius, _Radiobox.radioboxTokens.triggerBorderWidth, _Radiobox.radioboxTokens.ellipseSize, _Radiobox.radioboxTokens.contentTopOffset, _Radiobox.radioboxTokens.contentLeftOffset, _Radiobox.radioboxTokens.labelFontFamily, _Radiobox.radioboxTokens.labelFontSize, _Radiobox.radioboxTokens.labelFontStyle, _Radiobox.radioboxTokens.labelFontWeight, _Radiobox.radioboxTokens.labelLetterSpacing, _Radiobox.radioboxTokens.labelLineHeight, _Radiobox.radioboxTokens.descriptionFontFamily, _Radiobox.radioboxTokens.descriptionMarginTop, _Radiobox.radioboxTokens.descriptionFontSize, _Radiobox.radioboxTokens.descriptionFontStyle, _Radiobox.radioboxTokens.descriptionFontWeight, _Radiobox.radioboxTokens.descriptionLetterSpacing, _Radiobox.radioboxTokens.descriptionLineHeight)
21
- },
22
- /**
23
- * Вид контрола.
24
- */
25
- view: {
26
- accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-accent);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
27
- // deprecated
28
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-default);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-default);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
29
- // deprecated
30
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
31
- // deprecated
32
- tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-tertiary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-tertiary);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
33
- // deprecated
34
- paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-paragraph);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-paragraph);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
35
- // deprecated
36
- positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-positive);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-positive);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
37
- // deprecated
38
- warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-warning);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-warning);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor),
39
- // deprecated
40
- negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":transparent;", ":var(--text-negative);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-negative);"], _Radiobox.radioboxTokens.fillColor, _Radiobox.radioboxTokens.ellipseColor, _Radiobox.radioboxTokens.descriptionColor, _Radiobox.radioboxTokens.triggerBackgroundColor, _Radiobox.radioboxTokens.triggerBorderColor, _Radiobox.radioboxTokens.triggerBorderCheckedColor)
41
- },
42
- disabled: {
43
- "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Radiobox.radioboxTokens.disabledOpacity)
44
- },
45
- focused: {
46
- "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);"], _Radiobox.radioboxTokens.focusColor)
47
- }
48
- }
49
- };
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createConditionalComponent = createConditionalComponent;
7
- var _react = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("react"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
10
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
- function createConditionalComponent(defaultComponent, mappings) {
13
- return function (props) {
14
- var _iterator = _createForOfIteratorHelper(mappings),
15
- _step;
16
- try {
17
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
18
- var mapping = _step.value;
19
- var conditions = mapping.conditions,
20
- component = mapping.component;
21
- var conditionsArray = Array.isArray(conditions) ? conditions : [conditions];
22
- var allConditionsMatch = conditionsArray.every(function (condition) {
23
- return props[condition.prop] === condition.value;
24
- });
25
- if (allConditionsMatch) {
26
- var Component = component;
27
- return /*#__PURE__*/_react["default"].createElement(Component, props);
28
- }
29
- }
30
- } catch (err) {
31
- _iterator.e(err);
32
- } finally {
33
- _iterator.f();
34
- }
35
- var DefaultComponent = defaultComponent;
36
- return /*#__PURE__*/_react["default"].createElement(DefaultComponent, props);
37
- };
38
- }
@@ -1,41 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { checkboxTokens } from '../../../../components/Checkbox';
3
- export var config = {
4
- defaults: {
5
- view: 'accent'
6
- },
7
- variations: {
8
- /**
9
- * Размер контрола.
10
- */
11
- size: {
12
- s: /*#__PURE__*/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);"], checkboxTokens.margin, checkboxTokens.triggerPadding, checkboxTokens.triggerSize, checkboxTokens.triggerBorderRadius, checkboxTokens.triggerBorderWidth, checkboxTokens.contentTopOffset, checkboxTokens.contentLeftOffset, checkboxTokens.labelFontFamily, checkboxTokens.labelFontSize, checkboxTokens.labelFontStyle, checkboxTokens.labelFontWeight, checkboxTokens.labelLetterSpacing, checkboxTokens.labelLineHeight, checkboxTokens.descriptionMarginTop, checkboxTokens.descriptionFontFamily, checkboxTokens.descriptionFontSize, checkboxTokens.descriptionFontStyle, checkboxTokens.descriptionFontWeight, checkboxTokens.descriptionLetterSpacing, checkboxTokens.descriptionLineHeight),
13
- m: /*#__PURE__*/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);"], checkboxTokens.margin, checkboxTokens.triggerPadding, checkboxTokens.triggerSize, checkboxTokens.triggerBorderRadius, checkboxTokens.triggerBorderWidth, checkboxTokens.contentTopOffset, checkboxTokens.contentLeftOffset, checkboxTokens.labelFontFamily, checkboxTokens.labelFontSize, checkboxTokens.labelFontStyle, checkboxTokens.labelFontWeight, checkboxTokens.labelLetterSpacing, checkboxTokens.labelLineHeight, checkboxTokens.descriptionMarginTop, checkboxTokens.descriptionFontFamily, checkboxTokens.descriptionFontSize, checkboxTokens.descriptionFontStyle, checkboxTokens.descriptionFontWeight, checkboxTokens.descriptionLetterSpacing, checkboxTokens.descriptionLineHeight)
14
- },
15
- /**
16
- * Вид контрола.
17
- */
18
- view: {
19
- accent: /*#__PURE__*/css(["", ":transparent;", ":var(--text-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
20
- // deprecated
21
- "default": /*#__PURE__*/css(["", ":transparent;", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-primary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
22
- // deprecated
23
- secondary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
24
- // deprecated
25
- tertiary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-tertiary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
26
- // deprecated
27
- paragraph: /*#__PURE__*/css(["", ":transparent;", ":var(--text-paragraph);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-paragraph);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
28
- // deprecated
29
- positive: /*#__PURE__*/css(["", ":transparent;", ":var(--text-positive);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-positive);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
30
- // deprecated
31
- warning: /*#__PURE__*/css(["", ":transparent;", ":var(--text-warning);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-warning);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
32
- negative: /*#__PURE__*/css(["", ":transparent;", ":var(--text-negative);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-negative);", ":var(--text-negative);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor)
33
- },
34
- disabled: {
35
- "true": /*#__PURE__*/css(["", ":0.4;"], checkboxTokens.disabledOpacity)
36
- },
37
- focused: {
38
- "true": /*#__PURE__*/css(["", ":var(--text-accent);"], checkboxTokens.focusColor)
39
- }
40
- }
41
- };
@@ -1,43 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { radioboxTokens } from '../../../../components/Radiobox';
3
- export var config = {
4
- defaults: {
5
- view: 'accent',
6
- focused: 'true'
7
- },
8
- variations: {
9
- /**
10
- * Размер контрола.
11
- */
12
- size: {
13
- s: /*#__PURE__*/css(["", ":0;", ":0.0625rem 0;", ":1rem;", ":1.125rem;", ":0.0625rem;", ":0.5rem;", ":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);", ":var(--plasma-typo-body-xs-font-family);", ":0.125rem;", ":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);"], radioboxTokens.margin, radioboxTokens.triggerPadding, radioboxTokens.triggerSize, radioboxTokens.triggerBorderRadius, radioboxTokens.triggerBorderWidth, radioboxTokens.ellipseSize, radioboxTokens.contentTopOffset, radioboxTokens.contentLeftOffset, radioboxTokens.labelFontFamily, radioboxTokens.labelFontSize, radioboxTokens.labelFontStyle, radioboxTokens.labelFontWeight, radioboxTokens.labelLetterSpacing, radioboxTokens.labelLineHeight, radioboxTokens.descriptionFontFamily, radioboxTokens.descriptionMarginTop, radioboxTokens.descriptionFontSize, radioboxTokens.descriptionFontStyle, radioboxTokens.descriptionFontWeight, radioboxTokens.descriptionLetterSpacing, radioboxTokens.descriptionLineHeight),
14
- m: /*#__PURE__*/css(["", ":0;", ":0.0625rem;", ":1.375rem;", ":1.125rem;", ":0.0625rem;", ":0.625rem;", ":0.125rem;", ":0.625rem;", ":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);", ":var(--plasma-typo-body-s-font-family);", ":0.125rem;", ":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);"], radioboxTokens.margin, radioboxTokens.triggerPadding, radioboxTokens.triggerSize, radioboxTokens.triggerBorderRadius, radioboxTokens.triggerBorderWidth, radioboxTokens.ellipseSize, radioboxTokens.contentTopOffset, radioboxTokens.contentLeftOffset, radioboxTokens.labelFontFamily, radioboxTokens.labelFontSize, radioboxTokens.labelFontStyle, radioboxTokens.labelFontWeight, radioboxTokens.labelLetterSpacing, radioboxTokens.labelLineHeight, radioboxTokens.descriptionFontFamily, radioboxTokens.descriptionMarginTop, radioboxTokens.descriptionFontSize, radioboxTokens.descriptionFontStyle, radioboxTokens.descriptionFontWeight, radioboxTokens.descriptionLetterSpacing, radioboxTokens.descriptionLineHeight)
15
- },
16
- /**
17
- * Вид контрола.
18
- */
19
- view: {
20
- accent: /*#__PURE__*/css(["", ":transparent;", ":var(--text-accent);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
21
- // deprecated
22
- "default": /*#__PURE__*/css(["", ":transparent;", ":var(--text-default);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-default);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
23
- // deprecated
24
- secondary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
25
- // deprecated
26
- tertiary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-tertiary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-tertiary);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
27
- // deprecated
28
- paragraph: /*#__PURE__*/css(["", ":transparent;", ":var(--text-paragraph);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-paragraph);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
29
- // deprecated
30
- positive: /*#__PURE__*/css(["", ":transparent;", ":var(--text-positive);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-positive);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
31
- // deprecated
32
- warning: /*#__PURE__*/css(["", ":transparent;", ":var(--text-warning);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-warning);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
33
- // deprecated
34
- negative: /*#__PURE__*/css(["", ":transparent;", ":var(--text-negative);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-negative);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor)
35
- },
36
- disabled: {
37
- "true": /*#__PURE__*/css(["", ":0.4;"], radioboxTokens.disabledOpacity)
38
- },
39
- focused: {
40
- "true": /*#__PURE__*/css(["", ":var(--text-accent);"], radioboxTokens.focusColor)
41
- }
42
- }
43
- };
@@ -1,41 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { checkboxTokens } from '../../../../components/Checkbox';
3
- export var config = {
4
- defaults: {
5
- view: 'accent'
6
- },
7
- variations: {
8
- /**
9
- * Размер контрола.
10
- */
11
- size: {
12
- s: /*#__PURE__*/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);"], checkboxTokens.margin, checkboxTokens.triggerPadding, checkboxTokens.triggerSize, checkboxTokens.triggerBorderRadius, checkboxTokens.triggerBorderWidth, checkboxTokens.contentTopOffset, checkboxTokens.contentLeftOffset, checkboxTokens.labelFontFamily, checkboxTokens.labelFontSize, checkboxTokens.labelFontStyle, checkboxTokens.labelFontWeight, checkboxTokens.labelLetterSpacing, checkboxTokens.labelLineHeight, checkboxTokens.descriptionMarginTop, checkboxTokens.descriptionFontFamily, checkboxTokens.descriptionFontSize, checkboxTokens.descriptionFontStyle, checkboxTokens.descriptionFontWeight, checkboxTokens.descriptionLetterSpacing, checkboxTokens.descriptionLineHeight),
13
- m: /*#__PURE__*/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);"], checkboxTokens.margin, checkboxTokens.triggerPadding, checkboxTokens.triggerSize, checkboxTokens.triggerBorderRadius, checkboxTokens.triggerBorderWidth, checkboxTokens.contentTopOffset, checkboxTokens.contentLeftOffset, checkboxTokens.labelFontFamily, checkboxTokens.labelFontSize, checkboxTokens.labelFontStyle, checkboxTokens.labelFontWeight, checkboxTokens.labelLetterSpacing, checkboxTokens.labelLineHeight, checkboxTokens.descriptionMarginTop, checkboxTokens.descriptionFontFamily, checkboxTokens.descriptionFontSize, checkboxTokens.descriptionFontStyle, checkboxTokens.descriptionFontWeight, checkboxTokens.descriptionLetterSpacing, checkboxTokens.descriptionLineHeight)
14
- },
15
- /**
16
- * Вид контрола.
17
- */
18
- view: {
19
- accent: /*#__PURE__*/css(["", ":transparent;", ":var(--text-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
20
- // deprecated
21
- "default": /*#__PURE__*/css(["", ":transparent;", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-primary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
22
- // deprecated
23
- secondary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
24
- // deprecated
25
- tertiary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-tertiary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-tertiary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
26
- // deprecated
27
- paragraph: /*#__PURE__*/css(["", ":transparent;", ":var(--text-paragraph);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-paragraph);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
28
- // deprecated
29
- positive: /*#__PURE__*/css(["", ":transparent;", ":var(--text-positive);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-positive);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
30
- // deprecated
31
- warning: /*#__PURE__*/css(["", ":transparent;", ":var(--text-warning);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-warning);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor),
32
- negative: /*#__PURE__*/css(["", ":transparent;", ":var(--text-negative);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-negative);", ":var(--text-negative);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBorderCheckedColor)
33
- },
34
- disabled: {
35
- "true": /*#__PURE__*/css(["", ":0.4;"], checkboxTokens.disabledOpacity)
36
- },
37
- focused: {
38
- "true": /*#__PURE__*/css(["", ":var(--text-accent);"], checkboxTokens.focusColor)
39
- }
40
- }
41
- };
@@ -1,43 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { radioboxTokens } from '../../../../components/Radiobox';
3
- export var config = {
4
- defaults: {
5
- view: 'accent',
6
- focused: 'true'
7
- },
8
- variations: {
9
- /**
10
- * Размер контрола.
11
- */
12
- size: {
13
- s: /*#__PURE__*/css(["", ":0;", ":0.0625rem 0;", ":1rem;", ":1.125rem;", ":0.0625rem;", ":0.5rem;", ":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);", ":var(--plasma-typo-body-xs-font-family);", ":0.125rem;", ":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);"], radioboxTokens.margin, radioboxTokens.triggerPadding, radioboxTokens.triggerSize, radioboxTokens.triggerBorderRadius, radioboxTokens.triggerBorderWidth, radioboxTokens.ellipseSize, radioboxTokens.contentTopOffset, radioboxTokens.contentLeftOffset, radioboxTokens.labelFontFamily, radioboxTokens.labelFontSize, radioboxTokens.labelFontStyle, radioboxTokens.labelFontWeight, radioboxTokens.labelLetterSpacing, radioboxTokens.labelLineHeight, radioboxTokens.descriptionFontFamily, radioboxTokens.descriptionMarginTop, radioboxTokens.descriptionFontSize, radioboxTokens.descriptionFontStyle, radioboxTokens.descriptionFontWeight, radioboxTokens.descriptionLetterSpacing, radioboxTokens.descriptionLineHeight),
14
- m: /*#__PURE__*/css(["", ":0;", ":0.0625rem;", ":1.375rem;", ":1.125rem;", ":0.0625rem;", ":0.625rem;", ":0.125rem;", ":0.625rem;", ":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);", ":var(--plasma-typo-body-s-font-family);", ":0.125rem;", ":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);"], radioboxTokens.margin, radioboxTokens.triggerPadding, radioboxTokens.triggerSize, radioboxTokens.triggerBorderRadius, radioboxTokens.triggerBorderWidth, radioboxTokens.ellipseSize, radioboxTokens.contentTopOffset, radioboxTokens.contentLeftOffset, radioboxTokens.labelFontFamily, radioboxTokens.labelFontSize, radioboxTokens.labelFontStyle, radioboxTokens.labelFontWeight, radioboxTokens.labelLetterSpacing, radioboxTokens.labelLineHeight, radioboxTokens.descriptionFontFamily, radioboxTokens.descriptionMarginTop, radioboxTokens.descriptionFontSize, radioboxTokens.descriptionFontStyle, radioboxTokens.descriptionFontWeight, radioboxTokens.descriptionLetterSpacing, radioboxTokens.descriptionLineHeight)
15
- },
16
- /**
17
- * Вид контрола.
18
- */
19
- view: {
20
- accent: /*#__PURE__*/css(["", ":transparent;", ":var(--text-accent);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-accent);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
21
- // deprecated
22
- "default": /*#__PURE__*/css(["", ":transparent;", ":var(--text-default);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-default);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
23
- // deprecated
24
- secondary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-secondary);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
25
- // deprecated
26
- tertiary: /*#__PURE__*/css(["", ":transparent;", ":var(--text-tertiary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-tertiary);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
27
- // deprecated
28
- paragraph: /*#__PURE__*/css(["", ":transparent;", ":var(--text-paragraph);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-paragraph);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
29
- // deprecated
30
- positive: /*#__PURE__*/css(["", ":transparent;", ":var(--text-positive);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-positive);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
31
- // deprecated
32
- warning: /*#__PURE__*/css(["", ":transparent;", ":var(--text-warning);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-warning);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor),
33
- // deprecated
34
- negative: /*#__PURE__*/css(["", ":transparent;", ":var(--text-negative);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);", ":var(--text-negative);"], radioboxTokens.fillColor, radioboxTokens.ellipseColor, radioboxTokens.descriptionColor, radioboxTokens.triggerBackgroundColor, radioboxTokens.triggerBorderColor, radioboxTokens.triggerBorderCheckedColor)
35
- },
36
- disabled: {
37
- "true": /*#__PURE__*/css(["", ":0.4;"], radioboxTokens.disabledOpacity)
38
- },
39
- focused: {
40
- "true": /*#__PURE__*/css(["", ":var(--text-accent);"], radioboxTokens.focusColor)
41
- }
42
- }
43
- };
@@ -1,31 +0,0 @@
1
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
4
- import React from 'react';
5
- export function createConditionalComponent(defaultComponent, mappings) {
6
- return function (props) {
7
- var _iterator = _createForOfIteratorHelper(mappings),
8
- _step;
9
- try {
10
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11
- var mapping = _step.value;
12
- var conditions = mapping.conditions,
13
- component = mapping.component;
14
- var conditionsArray = Array.isArray(conditions) ? conditions : [conditions];
15
- var allConditionsMatch = conditionsArray.every(function (condition) {
16
- return props[condition.prop] === condition.value;
17
- });
18
- if (allConditionsMatch) {
19
- var Component = component;
20
- return /*#__PURE__*/React.createElement(Component, props);
21
- }
22
- }
23
- } catch (err) {
24
- _iterator.e(err);
25
- } finally {
26
- _iterator.f();
27
- }
28
- var DefaultComponent = defaultComponent;
29
- return /*#__PURE__*/React.createElement(DefaultComponent, props);
30
- };
31
- }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- declare type PropCondition<T> = {
3
- prop: keyof T;
4
- value: any;
5
- };
6
- declare type ComponentMapping<T> = {
7
- conditions: PropCondition<T> | PropCondition<T>[];
8
- component: React.ComponentType<T>;
9
- };
10
- export declare function createConditionalComponent<T extends object>(defaultComponent: React.ComponentType<T>, mappings: ComponentMapping<T>[]): React.FC<T>;
11
- export {};
12
- //# sourceMappingURL=createConditionalComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createConditionalComponent.d.ts","sourceRoot":"","sources":["../../src/utils/createConditionalComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,aAAK,aAAa,CAAC,CAAC,IAAI;IACpB,IAAI,EAAE,MAAM,CAAC,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,aAAK,gBAAgB,CAAC,CAAC,IAAI;IACvB,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAClD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,EACvD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACxC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAChC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAkBb"}