@salutejs/sdds-cs 0.355.0-next-sbcom.0 → 0.355.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 (357) hide show
  1. package/dist/beta/cjs/Popover/Popover.closeInner.config.js +26 -68
  2. package/dist/beta/cjs/Popover/Popover.closeNone.config.js +18 -60
  3. package/dist/beta/cjs/Popover/Popover.js +8 -8
  4. package/dist/beta/cjs/Popover/index.js +1 -1
  5. package/dist/beta/cjs/Tooltip/Tooltip.config.js +29 -63
  6. package/dist/beta/cjs/Tooltip/Tooltip.js +4 -4
  7. package/dist/beta/cjs/Tooltip/index.js +1 -1
  8. package/dist/beta/es/Popover/Popover.closeInner.config.js +25 -67
  9. package/dist/beta/es/Popover/Popover.closeNone.config.js +17 -59
  10. package/dist/beta/es/Popover/Popover.js +5 -5
  11. package/dist/beta/es/Tooltip/Tooltip.config.js +28 -62
  12. package/dist/beta/es/Tooltip/Tooltip.js +2 -2
  13. package/dist/emotion/cjs/components/Accordion/Accordion.config.js +50 -85
  14. package/dist/emotion/cjs/components/Accordion/Accordion.js +4 -4
  15. package/dist/emotion/cjs/components/Accordion/index.js +1 -1
  16. package/dist/emotion/cjs/components/Attach/Attach.config.js +214 -248
  17. package/dist/emotion/cjs/components/Attach/Attach.js +4 -4
  18. package/dist/emotion/cjs/components/Attach/index.js +1 -1
  19. package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +188 -227
  20. package/dist/emotion/cjs/components/Autocomplete/Autocomplete.js +10 -61
  21. package/dist/emotion/cjs/components/Autocomplete/index.js +1 -1
  22. package/dist/emotion/cjs/components/Avatar/Avatar.config.js +97 -193
  23. package/dist/emotion/cjs/components/Avatar/Avatar.js +4 -4
  24. package/dist/emotion/cjs/components/Avatar/index.js +1 -1
  25. package/dist/emotion/cjs/components/AvatarGroup/AvatarGroup.js +3 -3
  26. package/dist/emotion/cjs/components/AvatarGroup/index.js +1 -1
  27. package/dist/emotion/cjs/components/Badge/Badge.config.js +55 -123
  28. package/dist/emotion/cjs/components/Badge/Badge.js +4 -4
  29. package/dist/emotion/cjs/components/Badge/index.js +1 -1
  30. package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +19 -44
  31. package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +5 -5
  32. package/dist/emotion/cjs/components/Breadcrumbs/index.js +1 -1
  33. package/dist/emotion/cjs/components/Button/Button.config.js +78 -161
  34. package/dist/emotion/cjs/components/Button/Button.js +15 -138
  35. package/dist/emotion/cjs/components/Button/index.js +1 -1
  36. package/dist/emotion/cjs/components/ButtonBase/index.js +1 -1
  37. package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +82 -208
  38. package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.js +4 -4
  39. package/dist/emotion/cjs/components/ButtonGroup/index.js +1 -1
  40. package/dist/emotion/cjs/components/Calendar/Calendar.config.js +101 -113
  41. package/dist/emotion/cjs/components/Calendar/Calendar.js +10 -10
  42. package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +101 -113
  43. package/dist/emotion/cjs/components/Calendar/index.js +1 -1
  44. package/dist/emotion/cjs/components/Card/Card.config.js +23 -65
  45. package/dist/emotion/cjs/components/Card/Card.js +5 -5
  46. package/dist/emotion/cjs/components/Card/index.js +1 -1
  47. package/dist/emotion/cjs/components/Carousel/Carousel.config.js +15 -41
  48. package/dist/emotion/cjs/components/Carousel/Carousel.js +4 -4
  49. package/dist/emotion/cjs/components/Carousel/index.js +2 -2
  50. package/dist/emotion/cjs/components/Cell/Cell.config.js +73 -97
  51. package/dist/emotion/cjs/components/Cell/Cell.js +5 -5
  52. package/dist/emotion/cjs/components/Cell/index.js +2 -2
  53. package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +41 -83
  54. package/dist/emotion/cjs/components/Checkbox/Checkbox.js +5 -5
  55. package/dist/emotion/cjs/components/Checkbox/index.js +1 -1
  56. package/dist/emotion/cjs/components/Chip/Chip.config.js +95 -148
  57. package/dist/emotion/cjs/components/Chip/Chip.js +5 -5
  58. package/dist/emotion/cjs/components/Chip/index.js +1 -1
  59. package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +53 -109
  60. package/dist/emotion/cjs/components/ChipGroup/ChipGroup.js +4 -4
  61. package/dist/emotion/cjs/components/ChipGroup/index.js +1 -1
  62. package/dist/emotion/cjs/components/Combobox/Combobox.config.js +270 -302
  63. package/dist/emotion/cjs/components/Combobox/Combobox.js +11 -38
  64. package/dist/emotion/cjs/components/Combobox/index.js +1 -1
  65. package/dist/emotion/cjs/components/Counter/Counter.config.js +23 -66
  66. package/dist/emotion/cjs/components/Counter/Counter.js +4 -4
  67. package/dist/emotion/cjs/components/Counter/index.js +2 -2
  68. package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +282 -278
  69. package/dist/emotion/cjs/components/DatePicker/DatePicker.js +6 -6
  70. package/dist/emotion/cjs/components/DatePicker/index.js +2 -2
  71. package/dist/emotion/cjs/components/Divider/Divider.config.js +23 -89
  72. package/dist/emotion/cjs/components/Divider/Divider.js +4 -4
  73. package/dist/emotion/cjs/components/Divider/index.js +2 -2
  74. package/dist/emotion/cjs/components/Drawer/Drawer.config.js +19 -61
  75. package/dist/emotion/cjs/components/Drawer/Drawer.js +10 -10
  76. package/dist/emotion/cjs/components/Drawer/index.js +1 -1
  77. package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +55 -76
  78. package/dist/emotion/cjs/components/Dropdown/Dropdown.js +11 -38
  79. package/dist/emotion/cjs/components/Dropdown/index.js +1 -1
  80. package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +58 -100
  81. package/dist/emotion/cjs/components/EmptyState/EmptyState.js +4 -4
  82. package/dist/emotion/cjs/components/EmptyState/index.js +1 -1
  83. package/dist/emotion/cjs/components/Flow/Flow.config.js +1 -1
  84. package/dist/emotion/cjs/components/Flow/Flow.js +4 -4
  85. package/dist/emotion/cjs/components/Flow/index.js +1 -1
  86. package/dist/emotion/cjs/components/Grid/Grid.config.js +36 -57
  87. package/dist/emotion/cjs/components/Grid/Grid.js +4 -4
  88. package/dist/emotion/cjs/components/Grid/index.js +1 -1
  89. package/dist/emotion/cjs/components/IconButton/IconButton.config.js +48 -105
  90. package/dist/emotion/cjs/components/IconButton/IconButton.js +5 -5
  91. package/dist/emotion/cjs/components/IconButton/index.js +1 -1
  92. package/dist/emotion/cjs/components/Image/Image.js +4 -4
  93. package/dist/emotion/cjs/components/Image/index.js +1 -1
  94. package/dist/emotion/cjs/components/Indicator/Indicator.config.js +32 -122
  95. package/dist/emotion/cjs/components/Indicator/Indicator.js +4 -4
  96. package/dist/emotion/cjs/components/Indicator/index.js +1 -1
  97. package/dist/emotion/cjs/components/Link/Link.config.js +107 -205
  98. package/dist/emotion/cjs/components/Link/Link.js +5 -5
  99. package/dist/emotion/cjs/components/Link/index.js +1 -1
  100. package/dist/emotion/cjs/components/Mask/Mask.js +3 -3
  101. package/dist/emotion/cjs/components/Mask/index.js +1 -1
  102. package/dist/emotion/cjs/components/Modal/Modal.config.js +15 -33
  103. package/dist/emotion/cjs/components/Modal/Modal.js +5 -5
  104. package/dist/emotion/cjs/components/Modal/index.js +2 -2
  105. package/dist/emotion/cjs/components/Notification/Notification.config.js +102 -143
  106. package/dist/emotion/cjs/components/Notification/Notification.js +7 -8
  107. package/dist/emotion/cjs/components/Notification/index.js +2 -2
  108. package/dist/emotion/cjs/components/NumberFormat/NumberFormat.js +3 -3
  109. package/dist/emotion/cjs/components/NumberFormat/index.js +2 -2
  110. package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +77 -133
  111. package/dist/emotion/cjs/components/NumberInput/NumberInput.js +4 -4
  112. package/dist/emotion/cjs/components/NumberInput/index.js +2 -2
  113. package/dist/emotion/cjs/components/Overlay/index.js +1 -1
  114. package/dist/emotion/cjs/components/Pagination/Pagination.config.js +76 -120
  115. package/dist/emotion/cjs/components/Pagination/Pagination.js +5 -5
  116. package/dist/emotion/cjs/components/Pagination/index.js +1 -1
  117. package/dist/emotion/cjs/components/Popover/Popover.config.js +12 -29
  118. package/dist/emotion/cjs/components/Popover/Popover.js +4 -4
  119. package/dist/emotion/cjs/components/Popover/index.js +1 -1
  120. package/dist/emotion/cjs/components/Popup/Popup.js +3 -3
  121. package/dist/emotion/cjs/components/Popup/index.js +2 -2
  122. package/dist/emotion/cjs/components/Portal/index.js +1 -1
  123. package/dist/emotion/cjs/components/Price/Price.config.js +1 -1
  124. package/dist/emotion/cjs/components/Price/Price.js +5 -5
  125. package/dist/emotion/cjs/components/Price/index.js +2 -2
  126. package/dist/emotion/cjs/components/Progress/Progress.config.js +182 -80
  127. package/dist/emotion/cjs/components/Progress/Progress.js +5 -5
  128. package/dist/emotion/cjs/components/Progress/index.js +1 -1
  129. package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +39 -81
  130. package/dist/emotion/cjs/components/Radiobox/Radiobox.js +5 -5
  131. package/dist/emotion/cjs/components/Radiobox/index.js +1 -1
  132. package/dist/emotion/cjs/components/Range/Range.config.js +124 -149
  133. package/dist/emotion/cjs/components/Range/Range.js +4 -4
  134. package/dist/emotion/cjs/components/Range/index.js +2 -2
  135. package/dist/emotion/cjs/components/Rating/Rating.config.js +69 -101
  136. package/dist/emotion/cjs/components/Rating/Rating.js +4 -4
  137. package/dist/emotion/cjs/components/Rating/index.js +2 -2
  138. package/dist/emotion/cjs/components/SSRProvider/index.js +1 -1
  139. package/dist/emotion/cjs/components/Segment/Segment.js +7 -7
  140. package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +27 -104
  141. package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +58 -104
  142. package/dist/emotion/cjs/components/Segment/index.js +1 -1
  143. package/dist/emotion/cjs/components/Select/Select.config.js +244 -288
  144. package/dist/emotion/cjs/components/Select/Select.js +11 -38
  145. package/dist/emotion/cjs/components/Select/index.js +1 -1
  146. package/dist/emotion/cjs/components/Sheet/Sheet.config.js +14 -48
  147. package/dist/emotion/cjs/components/Sheet/Sheet.js +5 -5
  148. package/dist/emotion/cjs/components/Sheet/index.js +2 -2
  149. package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +80 -242
  150. package/dist/emotion/cjs/components/Skeleton/Skeleton.js +5 -5
  151. package/dist/emotion/cjs/components/Skeleton/index.js +1 -1
  152. package/dist/emotion/cjs/components/Slider/Slider.config.js +119 -134
  153. package/dist/emotion/cjs/components/Slider/Slider.js +5 -5
  154. package/dist/emotion/cjs/components/Slider/index.js +1 -1
  155. package/dist/emotion/cjs/components/Spinner/Spinner.config.js +26 -92
  156. package/dist/emotion/cjs/components/Spinner/Spinner.js +6 -6
  157. package/dist/emotion/cjs/components/Spinner/index.js +1 -1
  158. package/dist/emotion/cjs/components/Steps/Steps.config.js +92 -102
  159. package/dist/emotion/cjs/components/Steps/Steps.js +5 -5
  160. package/dist/emotion/cjs/components/Steps/index.js +1 -1
  161. package/dist/emotion/cjs/components/Switch/Switch.config.js +62 -124
  162. package/dist/emotion/cjs/components/Switch/Switch.js +5 -5
  163. package/dist/emotion/cjs/components/Switch/index.js +1 -1
  164. package/dist/emotion/cjs/components/Table/Table.config.js +212 -241
  165. package/dist/emotion/cjs/components/Table/Table.js +5 -5
  166. package/dist/emotion/cjs/components/Table/index.js +1 -1
  167. package/dist/emotion/cjs/components/Tabs/TabItem.js +9 -9
  168. package/dist/emotion/cjs/components/Tabs/Tabs.js +9 -9
  169. package/dist/emotion/cjs/components/Tabs/TabsController.js +8 -8
  170. package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +151 -209
  171. package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +117 -244
  172. package/dist/emotion/cjs/components/Tabs/index.js +4 -4
  173. package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +71 -107
  174. package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +37 -78
  175. package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +276 -316
  176. package/dist/emotion/cjs/components/TextArea/TextArea.config.js +265 -308
  177. package/dist/emotion/cjs/components/TextArea/TextArea.js +8 -8
  178. package/dist/emotion/cjs/components/TextArea/index.js +1 -1
  179. package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +211 -266
  180. package/dist/emotion/cjs/components/TextField/TextField.config.js +235 -294
  181. package/dist/emotion/cjs/components/TextField/TextField.js +8 -8
  182. package/dist/emotion/cjs/components/TextField/index.js +2 -2
  183. package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +156 -165
  184. package/dist/emotion/cjs/components/TimePicker/TimePicker.js +4 -4
  185. package/dist/emotion/cjs/components/TimePicker/index.js +2 -2
  186. package/dist/emotion/cjs/components/Toast/Toast.config.js +48 -100
  187. package/dist/emotion/cjs/components/Toast/Toast.js +6 -6
  188. package/dist/emotion/cjs/components/Toast/index.js +1 -1
  189. package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +30 -62
  190. package/dist/emotion/cjs/components/ToastNew/ToastNew.js +5 -5
  191. package/dist/emotion/cjs/components/ToastNew/index.js +1 -1
  192. package/dist/emotion/cjs/components/Tokens/Colors/Colors.styles.js +18 -22
  193. package/dist/emotion/cjs/components/Tokens/NumberTokens/NumberTokens.styles.js +7 -7
  194. package/dist/emotion/cjs/components/Tokens/Typography/Typography.styles.js +22 -40
  195. package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +38 -68
  196. package/dist/emotion/cjs/components/Tooltip/Tooltip.js +4 -4
  197. package/dist/emotion/cjs/components/Tooltip/index.js +1 -1
  198. package/dist/emotion/cjs/components/Tour/Tour.config.js +7 -34
  199. package/dist/emotion/cjs/components/Tour/Tour.js +4 -4
  200. package/dist/emotion/cjs/components/Tour/index.js +1 -1
  201. package/dist/emotion/cjs/components/Tree/Tree.config.js +52 -77
  202. package/dist/emotion/cjs/components/Tree/Tree.js +4 -4
  203. package/dist/emotion/cjs/components/Tree/index.js +1 -1
  204. package/dist/emotion/cjs/components/Typography/Body.config.js +56 -106
  205. package/dist/emotion/cjs/components/Typography/Dspl.config.js +34 -68
  206. package/dist/emotion/cjs/components/Typography/Heading.config.js +56 -106
  207. package/dist/emotion/cjs/components/Typography/Text.config.js +45 -87
  208. package/dist/emotion/cjs/components/Typography/Typography.js +56 -56
  209. package/dist/emotion/cjs/components/Typography/index.js +1 -1
  210. package/dist/emotion/cjs/components/ViewContainer/ViewContainer.config.js +9 -35
  211. package/dist/emotion/cjs/components/ViewContainer/ViewContainer.js +4 -4
  212. package/dist/emotion/cjs/components/ViewContainer/index.js +1 -1
  213. package/dist/emotion/cjs/helpers/index.js +1 -1
  214. package/dist/emotion/cjs/mixins/index.js +3 -3
  215. package/dist/emotion/cjs/tokens/index.js +1 -1
  216. package/dist/emotion/es/components/Accordion/Accordion.config.js +49 -84
  217. package/dist/emotion/es/components/Accordion/Accordion.js +2 -2
  218. package/dist/emotion/es/components/Attach/Attach.config.js +213 -247
  219. package/dist/emotion/es/components/Attach/Attach.js +2 -2
  220. package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +187 -226
  221. package/dist/emotion/es/components/Autocomplete/Autocomplete.js +7 -58
  222. package/dist/emotion/es/components/Avatar/Avatar.config.js +96 -192
  223. package/dist/emotion/es/components/Avatar/Avatar.js +2 -2
  224. package/dist/emotion/es/components/AvatarGroup/AvatarGroup.js +2 -2
  225. package/dist/emotion/es/components/Badge/Badge.config.js +54 -122
  226. package/dist/emotion/es/components/Badge/Badge.js +2 -2
  227. package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +18 -43
  228. package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.js +3 -3
  229. package/dist/emotion/es/components/Button/Button.config.js +77 -160
  230. package/dist/emotion/es/components/Button/Button.js +10 -133
  231. package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +81 -207
  232. package/dist/emotion/es/components/ButtonGroup/ButtonGroup.js +2 -2
  233. package/dist/emotion/es/components/Calendar/Calendar.config.js +100 -112
  234. package/dist/emotion/es/components/Calendar/Calendar.js +7 -7
  235. package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +100 -112
  236. package/dist/emotion/es/components/Card/Card.config.js +22 -64
  237. package/dist/emotion/es/components/Card/Card.js +3 -3
  238. package/dist/emotion/es/components/Carousel/Carousel.config.js +14 -40
  239. package/dist/emotion/es/components/Carousel/Carousel.js +2 -2
  240. package/dist/emotion/es/components/Cell/Cell.config.js +72 -96
  241. package/dist/emotion/es/components/Cell/Cell.js +3 -3
  242. package/dist/emotion/es/components/Checkbox/Checkbox.config.js +40 -82
  243. package/dist/emotion/es/components/Checkbox/Checkbox.js +3 -3
  244. package/dist/emotion/es/components/Chip/Chip.config.js +94 -147
  245. package/dist/emotion/es/components/Chip/Chip.js +3 -3
  246. package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +52 -108
  247. package/dist/emotion/es/components/ChipGroup/ChipGroup.js +2 -2
  248. package/dist/emotion/es/components/Combobox/Combobox.config.js +270 -302
  249. package/dist/emotion/es/components/Combobox/Combobox.js +9 -36
  250. package/dist/emotion/es/components/Counter/Counter.config.js +21 -64
  251. package/dist/emotion/es/components/Counter/Counter.js +2 -2
  252. package/dist/emotion/es/components/DatePicker/DatePicker.config.js +281 -277
  253. package/dist/emotion/es/components/DatePicker/DatePicker.js +4 -4
  254. package/dist/emotion/es/components/Divider/Divider.config.js +22 -88
  255. package/dist/emotion/es/components/Divider/Divider.js +2 -2
  256. package/dist/emotion/es/components/Drawer/Drawer.config.js +18 -60
  257. package/dist/emotion/es/components/Drawer/Drawer.js +8 -8
  258. package/dist/emotion/es/components/Dropdown/Dropdown.config.js +54 -75
  259. package/dist/emotion/es/components/Dropdown/Dropdown.js +8 -35
  260. package/dist/emotion/es/components/EmptyState/EmptyState.config.js +57 -99
  261. package/dist/emotion/es/components/EmptyState/EmptyState.js +2 -2
  262. package/dist/emotion/es/components/Flow/Flow.config.js +1 -1
  263. package/dist/emotion/es/components/Flow/Flow.js +2 -2
  264. package/dist/emotion/es/components/Grid/Grid.config.js +35 -56
  265. package/dist/emotion/es/components/Grid/Grid.js +2 -2
  266. package/dist/emotion/es/components/IconButton/IconButton.config.js +47 -104
  267. package/dist/emotion/es/components/IconButton/IconButton.js +3 -3
  268. package/dist/emotion/es/components/Image/Image.js +3 -3
  269. package/dist/emotion/es/components/Indicator/Indicator.config.js +31 -121
  270. package/dist/emotion/es/components/Indicator/Indicator.js +2 -2
  271. package/dist/emotion/es/components/Link/Link.config.js +106 -204
  272. package/dist/emotion/es/components/Link/Link.js +3 -3
  273. package/dist/emotion/es/components/Mask/Mask.js +1 -1
  274. package/dist/emotion/es/components/Modal/Modal.config.js +14 -32
  275. package/dist/emotion/es/components/Modal/Modal.js +3 -3
  276. package/dist/emotion/es/components/Notification/Notification.config.js +101 -142
  277. package/dist/emotion/es/components/Notification/Notification.js +4 -5
  278. package/dist/emotion/es/components/NumberFormat/NumberFormat.js +1 -1
  279. package/dist/emotion/es/components/NumberInput/NumberInput.config.js +76 -132
  280. package/dist/emotion/es/components/NumberInput/NumberInput.js +2 -2
  281. package/dist/emotion/es/components/Pagination/Pagination.config.js +75 -119
  282. package/dist/emotion/es/components/Pagination/Pagination.js +3 -3
  283. package/dist/emotion/es/components/Popover/Popover.config.js +11 -28
  284. package/dist/emotion/es/components/Popover/Popover.js +2 -2
  285. package/dist/emotion/es/components/Popup/Popup.js +2 -2
  286. package/dist/emotion/es/components/Price/Price.config.js +1 -1
  287. package/dist/emotion/es/components/Price/Price.js +3 -3
  288. package/dist/emotion/es/components/Progress/Progress.config.js +181 -79
  289. package/dist/emotion/es/components/Progress/Progress.js +3 -3
  290. package/dist/emotion/es/components/Radiobox/Radiobox.config.js +38 -80
  291. package/dist/emotion/es/components/Radiobox/Radiobox.js +3 -3
  292. package/dist/emotion/es/components/Range/Range.config.js +123 -148
  293. package/dist/emotion/es/components/Range/Range.js +2 -2
  294. package/dist/emotion/es/components/Rating/Rating.config.js +68 -100
  295. package/dist/emotion/es/components/Rating/Rating.js +2 -2
  296. package/dist/emotion/es/components/Segment/Segment.js +4 -4
  297. package/dist/emotion/es/components/Segment/SegmentGroup.config.js +26 -103
  298. package/dist/emotion/es/components/Segment/SegmentItem.config.js +57 -103
  299. package/dist/emotion/es/components/Select/Select.config.js +243 -287
  300. package/dist/emotion/es/components/Select/Select.js +8 -35
  301. package/dist/emotion/es/components/Sheet/Sheet.config.js +13 -47
  302. package/dist/emotion/es/components/Sheet/Sheet.js +3 -3
  303. package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +79 -241
  304. package/dist/emotion/es/components/Skeleton/Skeleton.js +3 -3
  305. package/dist/emotion/es/components/Slider/Slider.config.js +118 -133
  306. package/dist/emotion/es/components/Slider/Slider.js +3 -3
  307. package/dist/emotion/es/components/Spinner/Spinner.config.js +25 -91
  308. package/dist/emotion/es/components/Spinner/Spinner.js +3 -3
  309. package/dist/emotion/es/components/Steps/Steps.config.js +91 -101
  310. package/dist/emotion/es/components/Steps/Steps.js +3 -3
  311. package/dist/emotion/es/components/Switch/Switch.config.js +61 -123
  312. package/dist/emotion/es/components/Switch/Switch.js +3 -3
  313. package/dist/emotion/es/components/Table/Table.config.js +211 -240
  314. package/dist/emotion/es/components/Table/Table.js +3 -3
  315. package/dist/emotion/es/components/Tabs/TabItem.js +5 -5
  316. package/dist/emotion/es/components/Tabs/Tabs.js +5 -5
  317. package/dist/emotion/es/components/Tabs/TabsController.js +5 -5
  318. package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +150 -208
  319. package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +116 -243
  320. package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +70 -106
  321. package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +36 -77
  322. package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +275 -315
  323. package/dist/emotion/es/components/TextArea/TextArea.config.js +264 -307
  324. package/dist/emotion/es/components/TextArea/TextArea.js +5 -5
  325. package/dist/emotion/es/components/TextField/TextField.clear.config.js +210 -265
  326. package/dist/emotion/es/components/TextField/TextField.config.js +234 -293
  327. package/dist/emotion/es/components/TextField/TextField.js +5 -5
  328. package/dist/emotion/es/components/TimePicker/TimePicker.config.js +155 -164
  329. package/dist/emotion/es/components/TimePicker/TimePicker.js +2 -2
  330. package/dist/emotion/es/components/Toast/Toast.config.js +47 -99
  331. package/dist/emotion/es/components/Toast/Toast.js +4 -4
  332. package/dist/emotion/es/components/ToastNew/ToastNew.config.js +29 -61
  333. package/dist/emotion/es/components/ToastNew/ToastNew.js +3 -3
  334. package/dist/emotion/es/components/Tokens/Colors/Colors.styles.js +14 -18
  335. package/dist/emotion/es/components/Tokens/NumberTokens/NumberTokens.styles.js +6 -6
  336. package/dist/emotion/es/components/Tokens/Typography/Typography.styles.js +18 -36
  337. package/dist/emotion/es/components/Tooltip/Tooltip.config.js +37 -67
  338. package/dist/emotion/es/components/Tooltip/Tooltip.js +2 -2
  339. package/dist/emotion/es/components/Tour/Tour.config.js +6 -33
  340. package/dist/emotion/es/components/Tour/Tour.js +2 -2
  341. package/dist/emotion/es/components/Tree/Tree.config.js +51 -76
  342. package/dist/emotion/es/components/Tree/Tree.js +2 -2
  343. package/dist/emotion/es/components/Typography/Body.config.js +55 -105
  344. package/dist/emotion/es/components/Typography/Dspl.config.js +33 -67
  345. package/dist/emotion/es/components/Typography/Heading.config.js +55 -105
  346. package/dist/emotion/es/components/Typography/Text.config.js +44 -86
  347. package/dist/emotion/es/components/Typography/Typography.js +51 -51
  348. package/dist/emotion/es/components/ViewContainer/ViewContainer.config.js +7 -33
  349. package/dist/emotion/es/components/ViewContainer/ViewContainer.js +2 -2
  350. package/dist/emotion/es/mixins/index.js +1 -1
  351. package/package.json +25 -29
  352. package/types/components/Combobox/Combobox.d.ts +211 -1227
  353. package/types/components/Progress/Progress.config.d.ts +13 -0
  354. package/types/components/Progress/Progress.d.ts +12 -0
  355. package/types/components/Select/Select.d.ts +24 -24
  356. package/types/components/TextArea/TextArea.d.ts +23 -1715
  357. package/types/components/TimePicker/TimePicker.d.ts +4 -0
@@ -1,82 +1,5 @@
1
- function _tagged_template_literal(strings, raw) {
2
- if (!raw) {
3
- raw = strings.slice(0);
4
- }
5
- return Object.freeze(Object.defineProperties(strings, {
6
- raw: {
7
- value: Object.freeze(raw)
8
- }
9
- }));
10
- }
11
- function _templateObject() {
12
- var data = _tagged_template_literal([
13
- "\n ",
14
- ": 0;\n ",
15
- ": 0.125rem;\n ",
16
- ": 1.25rem;\n ",
17
- ": 0.375rem;\n ",
18
- ": 0.125rem;\n ",
19
- ": 0rem;\n ",
20
- ": 0.75rem;\n ",
21
- ": 0.125rem;\n ",
22
- ": var(--plasma-typo-body-m-font-family);\n ",
23
- ": var(--plasma-typo-body-m-font-size);\n ",
24
- ": var(--plasma-typo-body-m-font-style);\n ",
25
- ": var(--plasma-typo-body-m-font-weight);\n ",
26
- ": var(--plasma-typo-body-m-letter-spacing);\n ",
27
- ": var(--plasma-typo-body-m-line-height);\n ",
28
- ": var(--plasma-typo-body-s-font-family);\n ",
29
- ": var(--plasma-typo-body-s-font-size);\n ",
30
- ": var(--plasma-typo-body-s-font-style);\n ",
31
- ": var(--plasma-typo-body-s-font-weight);\n ",
32
- ": var(--plasma-typo-body-s-letter-spacing);\n ",
33
- ": var(--plasma-typo-body-s-line-height);\n "
34
- ]);
35
- _templateObject = function _templateObject() {
36
- return data;
37
- };
38
- return data;
39
- }
40
- function _templateObject1() {
41
- var data = _tagged_template_literal([
42
- "\n ",
43
- ": var(--text-accent);\n ",
44
- ": var(--on-dark-text-primary);\n ",
45
- ": var(--text-primary);\n ",
46
- ": var(--text-secondary);\n ",
47
- ": var(--outline-accent);\n ",
48
- ": transparent;\n ",
49
- ": transparent;\n "
50
- ]);
51
- _templateObject1 = function _templateObject() {
52
- return data;
53
- };
54
- return data;
55
- }
56
- function _templateObject2() {
57
- var data = _tagged_template_literal([
58
- "\n ",
59
- ": var(--outline-solid-primary);\n ",
60
- ": var(--surface-solid-tertiary);\n ",
61
- ": var(--text-secondary);\n "
62
- ]);
63
- _templateObject2 = function _templateObject() {
64
- return data;
65
- };
66
- return data;
67
- }
68
- function _templateObject3() {
69
- var data = _tagged_template_literal([
70
- "\n ",
71
- ": var(--text-accent);\n "
72
- ]);
73
- _templateObject3 = function _templateObject() {
74
- return data;
75
- };
76
- return data;
77
- }
78
1
  import { css, checkboxTokens } from '@salutejs/plasma-new-hope/emotion';
79
- export var config = {
2
+ export const config = {
80
3
  defaults: {
81
4
  view: 'accent',
82
5
  size: 's',
@@ -84,16 +7,51 @@ export var config = {
84
7
  },
85
8
  variations: {
86
9
  size: {
87
- s: css(_templateObject(), checkboxTokens.margin, checkboxTokens.triggerPadding, checkboxTokens.triggerSize, checkboxTokens.triggerBorderRadius, checkboxTokens.triggerBorderWidth, checkboxTokens.contentTopOffset, checkboxTokens.contentLeftOffset, checkboxTokens.descriptionMarginTop, checkboxTokens.labelFontFamily, checkboxTokens.labelFontSize, checkboxTokens.labelFontStyle, checkboxTokens.labelFontWeight, checkboxTokens.labelLetterSpacing, checkboxTokens.labelLineHeight, checkboxTokens.descriptionFontFamily, checkboxTokens.descriptionFontSize, checkboxTokens.descriptionFontStyle, checkboxTokens.descriptionFontWeight, checkboxTokens.descriptionLetterSpacing, checkboxTokens.descriptionLineHeight)
10
+ s: css`
11
+ ${checkboxTokens.margin}: 0;
12
+ ${checkboxTokens.triggerPadding}: 0.125rem;
13
+ ${checkboxTokens.triggerSize}: 1.25rem;
14
+ ${checkboxTokens.triggerBorderRadius}: 0.375rem;
15
+ ${checkboxTokens.triggerBorderWidth}: 0.125rem;
16
+ ${checkboxTokens.contentTopOffset}: 0rem;
17
+ ${checkboxTokens.contentLeftOffset}: 0.75rem;
18
+ ${checkboxTokens.descriptionMarginTop}: 0.125rem;
19
+ ${checkboxTokens.labelFontFamily}: var(--plasma-typo-body-m-font-family);
20
+ ${checkboxTokens.labelFontSize}: var(--plasma-typo-body-m-font-size);
21
+ ${checkboxTokens.labelFontStyle}: var(--plasma-typo-body-m-font-style);
22
+ ${checkboxTokens.labelFontWeight}: var(--plasma-typo-body-m-font-weight);
23
+ ${checkboxTokens.labelLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
24
+ ${checkboxTokens.labelLineHeight}: var(--plasma-typo-body-m-line-height);
25
+ ${checkboxTokens.descriptionFontFamily}: var(--plasma-typo-body-s-font-family);
26
+ ${checkboxTokens.descriptionFontSize}: var(--plasma-typo-body-s-font-size);
27
+ ${checkboxTokens.descriptionFontStyle}: var(--plasma-typo-body-s-font-style);
28
+ ${checkboxTokens.descriptionFontWeight}: var(--plasma-typo-body-s-font-weight);
29
+ ${checkboxTokens.descriptionLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
30
+ ${checkboxTokens.descriptionLineHeight}: var(--plasma-typo-body-s-line-height);
31
+ `
88
32
  },
89
33
  view: {
90
- accent: css(_templateObject1(), checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.labelColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBorderColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderCheckedColor)
34
+ accent: css`
35
+ ${checkboxTokens.fillColor}: var(--text-accent);
36
+ ${checkboxTokens.iconColor}: var(--on-dark-text-primary);
37
+ ${checkboxTokens.labelColor}: var(--text-primary);
38
+ ${checkboxTokens.descriptionColor}: var(--text-secondary);
39
+ ${checkboxTokens.triggerBorderColor}: var(--outline-accent);
40
+ ${checkboxTokens.triggerBackgroundColor}: transparent;
41
+ ${checkboxTokens.triggerBorderCheckedColor}: transparent;
42
+ `
91
43
  },
92
44
  disabled: {
93
- true: css(_templateObject2(), checkboxTokens.triggerBorderColor, checkboxTokens.fillColor, checkboxTokens.labelColor)
45
+ true: css`
46
+ ${checkboxTokens.triggerBorderColor}: var(--outline-solid-primary);
47
+ ${checkboxTokens.fillColor}: var(--surface-solid-tertiary);
48
+ ${checkboxTokens.labelColor}: var(--text-secondary);
49
+ `
94
50
  },
95
51
  focused: {
96
- true: css(_templateObject3(), checkboxTokens.focusColor)
52
+ true: css`
53
+ ${checkboxTokens.focusColor}: var(--text-accent);
54
+ `
97
55
  }
98
56
  }
99
57
  };
@@ -1,7 +1,7 @@
1
1
  import { checkboxConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
2
2
  import { config } from './Checkbox.config';
3
- var mergedConfig = mergeConfig(checkboxConfig, config);
4
- var CheckboxComponent = component(mergedConfig);
3
+ const mergedConfig = mergeConfig(checkboxConfig, config);
4
+ const CheckboxComponent = component(mergedConfig);
5
5
  /**
6
6
  * Флажок или чекбокс. Позволяет пользователю управлять параметром с двумя состояниями — ☑ включено и ☐ отключено.
7
- */ export var Checkbox = CheckboxComponent;
7
+ */ export const Checkbox = CheckboxComponent;
@@ -1,145 +1,5 @@
1
- function _tagged_template_literal(strings, raw) {
2
- if (!raw) {
3
- raw = strings.slice(0);
4
- }
5
- return Object.freeze(Object.defineProperties(strings, {
6
- raw: {
7
- value: Object.freeze(raw)
8
- }
9
- }));
10
- }
11
- function _templateObject() {
12
- var data = _tagged_template_literal([
13
- "\n ",
14
- ": var(--text-primary);\n ",
15
- ": var(--surface-solid-card);\n ",
16
- ": var(--text-primary);\n ",
17
- ": var(--surface-solid-card);\n ",
18
- ": var(--text-primary);\n ",
19
- ": var(--surface-solid-card);\n ",
20
- ": var(--surface-solid-card);\n ",
21
- ": var(--text-primary);\n ",
22
- ": var(--surface-solid-card);\n ",
23
- ": var(--text-primary);\n ",
24
- ": var(--text-accent);\n ",
25
- ": var(--text-accent-minor);\n ",
26
- ": var(--text-accent);\n "
27
- ]);
28
- _templateObject = function _templateObject() {
29
- return data;
30
- };
31
- return data;
32
- }
33
- function _templateObject1() {
34
- var data = _tagged_template_literal([
35
- "\n ",
36
- ": var(--text-primary);\n ",
37
- ": var(--surface-solid-secondary);\n ",
38
- ": var(--text-primary);\n ",
39
- ": var(--surface-solid-secondary);\n ",
40
- ": var(--text-primary);\n ",
41
- ": var(--surface-solid-secondary);\n ",
42
- ": var(--surface-solid-primary);\n ",
43
- ": var(--text-primary);\n ",
44
- ": var(--surface-solid-primary);\n ",
45
- ": var(--text-primary);\n ",
46
- ": var(--text-accent);\n ",
47
- ": var(--text-accent-minor);\n ",
48
- ": var(--text-accent);\n "
49
- ]);
50
- _templateObject1 = function _templateObject() {
51
- return data;
52
- };
53
- return data;
54
- }
55
- function _templateObject2() {
56
- var data = _tagged_template_literal([
57
- "\n ",
58
- ": var(--on-dark-text-primary);\n ",
59
- ": var(--surface-accent);\n ",
60
- ": var(--on-dark-text-primary);\n ",
61
- ": var(--surface-accent-hover);\n ",
62
- ": var(--on-dark-text-primary);\n ",
63
- ": var(--surface-accent-active);\n ",
64
- ": var(--surface-accent);\n ",
65
- ": var(--on-dark-text-primary);\n ",
66
- ": var(--surface-accent);\n ",
67
- ": var(--on-dark-text-primary);\n\n ",
68
- ": var(--on-dark-text-primary);\n ",
69
- ": var(--on-dark-text-primary-hover);\n ",
70
- ": var(--on-dark-text-primary);\n "
71
- ]);
72
- _templateObject2 = function _templateObject() {
73
- return data;
74
- };
75
- return data;
76
- }
77
- function _templateObject3() {
78
- var data = _tagged_template_literal([
79
- "\n ",
80
- ": 0.625rem;\n ",
81
- ": 1rem;\n ",
82
- ": auto;\n ",
83
- ": 2.5rem;\n ",
84
- ": 0 1rem;\n\n ",
85
- ": var(--plasma-typo-body-m-font-family);\n ",
86
- ": var(--plasma-typo-body-m-font-size);\n ",
87
- ": var(--plasma-typo-body-m-font-style);\n ",
88
- ": var(--plasma-typo-body-m-font-weight);\n ",
89
- ": var(--plasma-typo-body-m-letter-spacing);\n ",
90
- ": var(--plasma-typo-body-m-line-height);\n\n ",
91
- ": -0.25rem;\n ",
92
- ": 0.25rem;\n ",
93
- ": 0.25rem;\n ",
94
- ": -0.25rem;\n ",
95
- ": 0.5rem;\n ",
96
- ": -0.5rem;\n ",
97
- ": 1.5rem;\n "
98
- ]);
99
- _templateObject3 = function _templateObject() {
100
- return data;
101
- };
102
- return data;
103
- }
104
- function _templateObject4() {
105
- var data = _tagged_template_literal([
106
- "\n ",
107
- ": 0.38rem;\n ",
108
- ": 0.75rem;\n ",
109
- ": auto;\n ",
110
- ": 1.5rem;\n ",
111
- ": 0.125rem 0.5rem;\n\n ",
112
- ": var(--plasma-typo-body-s-font-family);\n ",
113
- ": var(--plasma-typo-body-s-font-size);\n ",
114
- ": var(--plasma-typo-body-s-font-style);\n ",
115
- ": var(--plasma-typo-body-s-font-weight);\n ",
116
- ": var(--plasma-typo-body-s-letter-spacing);\n ",
117
- ": var(--plasma-typo-body-s-line-height);\n\n ",
118
- ": 0;\n ",
119
- ": 0.25rem;\n ",
120
- ": 0.25rem;\n ",
121
- ": 0;\n ",
122
- ": 0.25rem;\n ",
123
- ": -0.25rem;\n ",
124
- ": 1rem;\n "
125
- ]);
126
- _templateObject4 = function _templateObject() {
127
- return data;
128
- };
129
- return data;
130
- }
131
- function _templateObject5() {
132
- var data = _tagged_template_literal([
133
- "\n ",
134
- ": var(--text-accent);\n "
135
- ]);
136
- _templateObject5 = function _templateObject() {
137
- return data;
138
- };
139
- return data;
140
- }
141
1
  import { css, chipTokens } from '@salutejs/plasma-new-hope/emotion';
142
- export var config = {
2
+ export const config = {
143
3
  defaults: {
144
4
  view: 'default',
145
5
  focused: 'true',
@@ -147,16 +7,103 @@ export var config = {
147
7
  },
148
8
  variations: {
149
9
  view: {
150
- default: css(_templateObject(), chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover, chipTokens.closeIconColor, chipTokens.closeIconColorHover, chipTokens.leftContentColor),
151
- secondary: css(_templateObject1(), chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover, chipTokens.closeIconColor, chipTokens.closeIconColorHover, chipTokens.leftContentColor),
152
- accent: css(_templateObject2(), chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover, chipTokens.closeIconColor, chipTokens.closeIconColorHover, chipTokens.leftContentColor)
10
+ default: css`
11
+ ${chipTokens.color}: var(--text-primary);
12
+ ${chipTokens.background}: var(--surface-solid-card);
13
+ ${chipTokens.colorHover}: var(--text-primary);
14
+ ${chipTokens.backgroundHover}: var(--surface-solid-card);
15
+ ${chipTokens.colorActive}: var(--text-primary);
16
+ ${chipTokens.backgroundActive}: var(--surface-solid-card);
17
+ ${chipTokens.backgroundReadOnly}: var(--surface-solid-card);
18
+ ${chipTokens.colorReadOnly}: var(--text-primary);
19
+ ${chipTokens.backgroundReadOnlyHover}: var(--surface-solid-card);
20
+ ${chipTokens.colorReadOnlyHover}: var(--text-primary);
21
+ ${chipTokens.closeIconColor}: var(--text-accent);
22
+ ${chipTokens.closeIconColorHover}: var(--text-accent-minor);
23
+ ${chipTokens.leftContentColor}: var(--text-accent);
24
+ `,
25
+ secondary: css`
26
+ ${chipTokens.color}: var(--text-primary);
27
+ ${chipTokens.background}: var(--surface-solid-secondary);
28
+ ${chipTokens.colorHover}: var(--text-primary);
29
+ ${chipTokens.backgroundHover}: var(--surface-solid-secondary);
30
+ ${chipTokens.colorActive}: var(--text-primary);
31
+ ${chipTokens.backgroundActive}: var(--surface-solid-secondary);
32
+ ${chipTokens.backgroundReadOnly}: var(--surface-solid-primary);
33
+ ${chipTokens.colorReadOnly}: var(--text-primary);
34
+ ${chipTokens.backgroundReadOnlyHover}: var(--surface-solid-primary);
35
+ ${chipTokens.colorReadOnlyHover}: var(--text-primary);
36
+ ${chipTokens.closeIconColor}: var(--text-accent);
37
+ ${chipTokens.closeIconColorHover}: var(--text-accent-minor);
38
+ ${chipTokens.leftContentColor}: var(--text-accent);
39
+ `,
40
+ accent: css`
41
+ ${chipTokens.color}: var(--on-dark-text-primary);
42
+ ${chipTokens.background}: var(--surface-accent);
43
+ ${chipTokens.colorHover}: var(--on-dark-text-primary);
44
+ ${chipTokens.backgroundHover}: var(--surface-accent-hover);
45
+ ${chipTokens.colorActive}: var(--on-dark-text-primary);
46
+ ${chipTokens.backgroundActive}: var(--surface-accent-active);
47
+ ${chipTokens.backgroundReadOnly}: var(--surface-accent);
48
+ ${chipTokens.colorReadOnly}: var(--on-dark-text-primary);
49
+ ${chipTokens.backgroundReadOnlyHover}: var(--surface-accent);
50
+ ${chipTokens.colorReadOnlyHover}: var(--on-dark-text-primary);
51
+
52
+ ${chipTokens.closeIconColor}: var(--on-dark-text-primary);
53
+ ${chipTokens.closeIconColorHover}: var(--on-dark-text-primary-hover);
54
+ ${chipTokens.leftContentColor}: var(--on-dark-text-primary);
55
+ `
153
56
  },
154
57
  size: {
155
- s: css(_templateObject3(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.rightContentMarginLeft, chipTokens.rightContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.closeIconSize),
156
- xs: css(_templateObject4(), chipTokens.borderRadius, chipTokens.pilledBorderRadius, chipTokens.width, chipTokens.height, chipTokens.padding, chipTokens.fontFamily, chipTokens.fontSize, chipTokens.fontStyle, chipTokens.fontWeight, chipTokens.letterSpacing, chipTokens.lineHeight, chipTokens.leftContentMarginLeft, chipTokens.leftContentMarginRight, chipTokens.rightContentMarginLeft, chipTokens.rightContentMarginRight, chipTokens.clearContentMarginLeft, chipTokens.clearContentMarginRight, chipTokens.closeIconSize)
58
+ s: css`
59
+ ${chipTokens.borderRadius}: 0.625rem;
60
+ ${chipTokens.pilledBorderRadius}: 1rem;
61
+ ${chipTokens.width}: auto;
62
+ ${chipTokens.height}: 2.5rem;
63
+ ${chipTokens.padding}: 0 1rem;
64
+
65
+ ${chipTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
66
+ ${chipTokens.fontSize}: var(--plasma-typo-body-m-font-size);
67
+ ${chipTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
68
+ ${chipTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
69
+ ${chipTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
70
+ ${chipTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
71
+
72
+ ${chipTokens.leftContentMarginLeft}: -0.25rem;
73
+ ${chipTokens.leftContentMarginRight}: 0.25rem;
74
+ ${chipTokens.rightContentMarginLeft}: 0.25rem;
75
+ ${chipTokens.rightContentMarginRight}: -0.25rem;
76
+ ${chipTokens.clearContentMarginLeft}: 0.5rem;
77
+ ${chipTokens.clearContentMarginRight}: -0.5rem;
78
+ ${chipTokens.closeIconSize}: 1.5rem;
79
+ `,
80
+ xs: css`
81
+ ${chipTokens.borderRadius}: 0.38rem;
82
+ ${chipTokens.pilledBorderRadius}: 0.75rem;
83
+ ${chipTokens.width}: auto;
84
+ ${chipTokens.height}: 1.5rem;
85
+ ${chipTokens.padding}: 0.125rem 0.5rem;
86
+
87
+ ${chipTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
88
+ ${chipTokens.fontSize}: var(--plasma-typo-body-s-font-size);
89
+ ${chipTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
90
+ ${chipTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
91
+ ${chipTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
92
+ ${chipTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
93
+
94
+ ${chipTokens.leftContentMarginLeft}: 0;
95
+ ${chipTokens.leftContentMarginRight}: 0.25rem;
96
+ ${chipTokens.rightContentMarginLeft}: 0.25rem;
97
+ ${chipTokens.rightContentMarginRight}: 0;
98
+ ${chipTokens.clearContentMarginLeft}: 0.25rem;
99
+ ${chipTokens.clearContentMarginRight}: -0.25rem;
100
+ ${chipTokens.closeIconSize}: 1rem;
101
+ `
157
102
  },
158
103
  focused: {
159
- true: css(_templateObject5(), chipTokens.focusColor)
104
+ true: css`
105
+ ${chipTokens.focusColor}: var(--text-accent);
106
+ `
160
107
  }
161
108
  }
162
109
  };
@@ -1,7 +1,7 @@
1
1
  import { chipConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
2
2
  import { config } from './Chip.config';
3
- var mergedConfig = mergeConfig(chipConfig, config);
4
- var ChipComponent = component(mergedConfig);
3
+ const mergedConfig = mergeConfig(chipConfig, config);
4
+ const ChipComponent = component(mergedConfig);
5
5
  /**
6
6
  * Компонент chip.
7
- */ export var Chip = ChipComponent;
7
+ */ export const Chip = ChipComponent;
@@ -1,122 +1,66 @@
1
- function _tagged_template_literal(strings, raw) {
2
- if (!raw) {
3
- raw = strings.slice(0);
4
- }
5
- return Object.freeze(Object.defineProperties(strings, {
6
- raw: {
7
- value: Object.freeze(raw)
8
- }
9
- }));
10
- }
11
- function _templateObject() {
12
- var data = _tagged_template_literal([
13
- "\n ",
14
- ": var(--inverse-text-primary);\n ",
15
- ": var(--surface-solid-default);\n ",
16
- ": var(--inverse-text-primary);\n ",
17
- ": var(--surface-solid-default);\n ",
18
- ": var(--inverse-text-primary);\n ",
19
- ": var(--surface-solid-default);\n "
20
- ]);
21
- _templateObject = function _templateObject() {
22
- return data;
23
- };
24
- return data;
25
- }
26
- function _templateObject1() {
27
- var data = _tagged_template_literal([
28
- "\n ",
29
- ": var(--text-primary);\n ",
30
- ": var(--surface-solid-primary);\n ",
31
- ": var(--text-primary);\n ",
32
- ": var(--surface-solid-primary);\n ",
33
- ": var(--text-primary);\n ",
34
- ": var(--surface-solid-primary);\n "
35
- ]);
36
- _templateObject1 = function _templateObject() {
37
- return data;
38
- };
39
- return data;
40
- }
41
- function _templateObject2() {
42
- var data = _tagged_template_literal([
43
- "\n ",
44
- ": var(--on-dark-text-primary);\n ",
45
- ": var(--surface-accent);\n ",
46
- ": var(--on-dark-text-primary);\n ",
47
- ": var(--surface-accent);\n ",
48
- ": var(--on-dark-text-primary);\n ",
49
- ": var(--surface-accent);\n "
50
- ]);
51
- _templateObject2 = function _templateObject() {
52
- return data;
53
- };
54
- return data;
55
- }
56
- function _templateObject3() {
57
- var data = _tagged_template_literal([
58
- "\n ",
59
- ": 0.5rem;\n ",
60
- ": auto;\n ",
61
- ": 2.5rem;\n ",
62
- ": 0 1rem;\n\n ",
63
- ": var(--plasma-typo-body-m-font-family);\n ",
64
- ": var(--plasma-typo-body-m-font-size);\n ",
65
- ": var(--plasma-typo-body-m-font-style);\n ",
66
- ": var(--plasma-typo-body-m-font-weight);\n ",
67
- ": var(--plasma-typo-body-m-letter-spacing);\n ",
68
- ": var(--plasma-typo-body-m-line-height);\n\n ",
69
- ": -0.25rem;\n ",
70
- ": 0.25rem;\n ",
71
- ": 0.25rem;\n ",
72
- ": -0.25rem;\n ",
73
- ": 0.5rem;\n ",
74
- ": -0.25rem;\n ",
75
- ": 1.5rem;\n "
76
- ]);
77
- _templateObject3 = function _templateObject() {
78
- return data;
79
- };
80
- return data;
81
- }
82
- function _templateObject4() {
83
- var data = _tagged_template_literal([
84
- "\n ",
85
- ": 0.125rem;\n "
86
- ]);
87
- _templateObject4 = function _templateObject() {
88
- return data;
89
- };
90
- return data;
91
- }
92
- function _templateObject5() {
93
- var data = _tagged_template_literal([
94
- "\n ",
95
- ": 0.5rem;\n "
96
- ]);
97
- _templateObject5 = function _templateObject() {
98
- return data;
99
- };
100
- return data;
101
- }
102
1
  import { css, chipGroupTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
103
- export var config = {
2
+ export const config = {
104
3
  defaults: {
105
4
  view: 'default',
106
5
  size: 's'
107
6
  },
108
7
  variations: {
109
8
  view: {
110
- default: css(_templateObject(), tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive),
111
- secondary: css(_templateObject1(), tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive),
112
- accent: css(_templateObject2(), tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive)
9
+ default: css`
10
+ ${tokens.chipColor}: var(--inverse-text-primary);
11
+ ${tokens.chipBackground}: var(--surface-solid-default);
12
+ ${tokens.chipColorHover}: var(--inverse-text-primary);
13
+ ${tokens.chipBackgroundHover}: var(--surface-solid-default);
14
+ ${tokens.chipColorActive}: var(--inverse-text-primary);
15
+ ${tokens.chipBackgroundActive}: var(--surface-solid-default);
16
+ `,
17
+ secondary: css`
18
+ ${tokens.chipColor}: var(--text-primary);
19
+ ${tokens.chipBackground}: var(--surface-solid-primary);
20
+ ${tokens.chipColorHover}: var(--text-primary);
21
+ ${tokens.chipBackgroundHover}: var(--surface-solid-primary);
22
+ ${tokens.chipColorActive}: var(--text-primary);
23
+ ${tokens.chipBackgroundActive}: var(--surface-solid-primary);
24
+ `,
25
+ accent: css`
26
+ ${tokens.chipColor}: var(--on-dark-text-primary);
27
+ ${tokens.chipBackground}: var(--surface-accent);
28
+ ${tokens.chipColorHover}: var(--on-dark-text-primary);
29
+ ${tokens.chipBackgroundHover}: var(--surface-accent);
30
+ ${tokens.chipColorActive}: var(--on-dark-text-primary);
31
+ ${tokens.chipBackgroundActive}: var(--surface-accent);
32
+ `
113
33
  },
114
34
  size: {
115
- s: css(_templateObject3(), tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.chipLeftContentMarginLeft, tokens.chipLeftContentMarginRight, tokens.chipRightContentMarginLeft, tokens.chipRightContentMarginRight, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize)
35
+ s: css`
36
+ ${tokens.chipBorderRadius}: 0.5rem;
37
+ ${tokens.chipWidth}: auto;
38
+ ${tokens.chipHeight}: 2.5rem;
39
+ ${tokens.chipPadding}: 0 1rem;
40
+
41
+ ${tokens.chipFontFamily}: var(--plasma-typo-body-m-font-family);
42
+ ${tokens.chipFontSize}: var(--plasma-typo-body-m-font-size);
43
+ ${tokens.chipFontStyle}: var(--plasma-typo-body-m-font-style);
44
+ ${tokens.chipFontWeight}: var(--plasma-typo-body-m-font-weight);
45
+ ${tokens.chipLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
46
+ ${tokens.chipLineHeight}: var(--plasma-typo-body-m-line-height);
47
+
48
+ ${tokens.chipLeftContentMarginLeft}: -0.25rem;
49
+ ${tokens.chipLeftContentMarginRight}: 0.25rem;
50
+ ${tokens.chipRightContentMarginLeft}: 0.25rem;
51
+ ${tokens.chipRightContentMarginRight}: -0.25rem;
52
+ ${tokens.chipClearContentMarginLeft}: 0.5rem;
53
+ ${tokens.chipClearContentMarginRight}: -0.25rem;
54
+ ${tokens.chipCloseIconSize}: 1.5rem;
55
+ `
116
56
  },
117
57
  gap: {
118
- dense: css(_templateObject4(), tokens.chipGroupItemsGap),
119
- wide: css(_templateObject5(), tokens.chipGroupItemsGap)
58
+ dense: css`
59
+ ${tokens.chipGroupItemsGap}: 0.125rem;
60
+ `,
61
+ wide: css`
62
+ ${tokens.chipGroupItemsGap}: 0.5rem;
63
+ `
120
64
  }
121
65
  }
122
66
  };
@@ -1,4 +1,4 @@
1
1
  import { chipGroupConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
2
2
  import { config } from './ChipGroup.config';
3
- var mergedConfig = mergeConfig(chipGroupConfig, config);
4
- export var ChipGroup = component(mergedConfig);
3
+ const mergedConfig = mergeConfig(chipGroupConfig, config);
4
+ export const ChipGroup = component(mergedConfig);