@itcase/ui 1.9.64 → 1.9.66

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 (623) hide show
  1. package/dist/context/Notifications.js +12 -186
  2. package/dist/context/UIContext.js +12 -70
  3. package/dist/context/UrlAssetPrefix.js +12 -12
  4. package/dist/hoc/urlWithAssetPrefix.js +12 -74
  5. package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +1 -0
  6. package/dist/hooks/useActiveClasses/useActiveClasses.interface.js +1 -0
  7. package/dist/hooks/useActiveClasses/useActiveClasses.js +3 -1
  8. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +12 -25
  9. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js +1 -1
  10. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +12 -121
  11. package/dist/hooks/useDeviceTargetClass.js +52 -37
  12. package/dist/hooks/useDropzoneFieldFiles.js +20540 -2
  13. package/dist/hooks/useHoldProgress.js +3 -1
  14. package/dist/hooks/useMediaQueries/useMediaQueries.js +12 -112
  15. package/dist/hooks/useStyles/styleAttributes.interface.js +1 -1
  16. package/dist/hooks/useStyles/styleAttributes.js +12 -167
  17. package/dist/hooks/useStyles/useStyles.js +12 -193
  18. package/dist/hooks/useViewportFix.js +2 -0
  19. package/dist/utils/mergeAppearanceKeys.js +12 -15
  20. package/dist/utils/setViewportProperty.js +12 -5
  21. package/package.json +2 -2
  22. package/dist/components/Accordion/Accordion.appearance.js +0 -9
  23. package/dist/components/Accordion/Accordion.interface.js +0 -1
  24. package/dist/components/Accordion/Accordion.js +0 -57
  25. package/dist/components/Accordion/AccordionItem.js +0 -36
  26. package/dist/components/Accordion/appearance/accordionSize.js +0 -52
  27. package/dist/components/Accordion/appearance/accordionStyle.js +0 -14
  28. package/dist/components/Accordion/appearance/accordionSurface.js +0 -36
  29. package/dist/components/Accordion/index.js +0 -4
  30. package/dist/components/Avatar/Avatar.appearance.js +0 -11
  31. package/dist/components/Avatar/Avatar.interface.js +0 -1
  32. package/dist/components/Avatar/Avatar.js +0 -29
  33. package/dist/components/Avatar/appearance/avatarDefault.js +0 -23
  34. package/dist/components/Avatar/appearance/avatarShape.js +0 -25
  35. package/dist/components/Avatar/appearance/avatarSize.js +0 -63
  36. package/dist/components/Avatar/appearance/avatarStyle.js +0 -16
  37. package/dist/components/Avatar/index.js +0 -2
  38. package/dist/components/AvatarStack/AvatarStack.appearance.js +0 -5
  39. package/dist/components/AvatarStack/AvatarStack.interface.js +0 -1
  40. package/dist/components/AvatarStack/AvatarStack.js +0 -25
  41. package/dist/components/AvatarStack/appearance/avatarStackSize.js +0 -21
  42. package/dist/components/AvatarStack/index.js +0 -2
  43. package/dist/components/Badge/Badge.appearance.js +0 -29
  44. package/dist/components/Badge/Badge.interface.js +0 -1
  45. package/dist/components/Badge/Badge.js +0 -35
  46. package/dist/components/Badge/appearance/badgeAccent.js +0 -31
  47. package/dist/components/Badge/appearance/badgeDanger.js +0 -10
  48. package/dist/components/Badge/appearance/badgeDisabled.js +0 -9
  49. package/dist/components/Badge/appearance/badgeError.js +0 -9
  50. package/dist/components/Badge/appearance/badgeExtra.js +0 -10
  51. package/dist/components/Badge/appearance/badgeInfo.js +0 -16
  52. package/dist/components/Badge/appearance/badgeShape.js +0 -25
  53. package/dist/components/Badge/appearance/badgeSize.js +0 -38
  54. package/dist/components/Badge/appearance/badgeSpecial.js +0 -10
  55. package/dist/components/Badge/appearance/badgeStyle.js +0 -14
  56. package/dist/components/Badge/appearance/badgeSuccess.js +0 -10
  57. package/dist/components/Badge/appearance/badgeSurface.js +0 -25
  58. package/dist/components/Badge/appearance/badgeWarning.js +0 -10
  59. package/dist/components/Badge/index.js +0 -2
  60. package/dist/components/Breadcrumbs/Breadcrumbs.appearance.js +0 -11
  61. package/dist/components/Breadcrumbs/Breadcrumbs.interface.js +0 -1
  62. package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -23
  63. package/dist/components/Breadcrumbs/BreadcrumbsItem.js +0 -24
  64. package/dist/components/Breadcrumbs/appearance/breadcrumbsAccent.js +0 -9
  65. package/dist/components/Breadcrumbs/appearance/breadcrumbsSize.js +0 -39
  66. package/dist/components/Breadcrumbs/appearance/breadcrumbsStyle.js +0 -14
  67. package/dist/components/Breadcrumbs/appearance/breadcrumbsSurface.js +0 -27
  68. package/dist/components/Breadcrumbs/index.js +0 -4
  69. package/dist/components/Button/Button.appearance.js +0 -27
  70. package/dist/components/Button/Button.interface.js +0 -1
  71. package/dist/components/Button/Button.js +0 -46
  72. package/dist/components/Button/appearance/buttonAccent.js +0 -36
  73. package/dist/components/Button/appearance/buttonDanger.js +0 -24
  74. package/dist/components/Button/appearance/buttonError.js +0 -24
  75. package/dist/components/Button/appearance/buttonExtra.js +0 -22
  76. package/dist/components/Button/appearance/buttonInfo.js +0 -36
  77. package/dist/components/Button/appearance/buttonShape.js +0 -25
  78. package/dist/components/Button/appearance/buttonSize.js +0 -52
  79. package/dist/components/Button/appearance/buttonSpecial.js +0 -22
  80. package/dist/components/Button/appearance/buttonStyle.js +0 -14
  81. package/dist/components/Button/appearance/buttonSuccess.js +0 -24
  82. package/dist/components/Button/appearance/buttonSurface.js +0 -52
  83. package/dist/components/Button/appearance/buttonWarning.js +0 -24
  84. package/dist/components/Button/index.js +0 -2
  85. package/dist/components/Cell/Cell.appearance.js +0 -9
  86. package/dist/components/Cell/Cell.interface.js +0 -1
  87. package/dist/components/Cell/Cell.js +0 -36
  88. package/dist/components/Cell/appearance/cellSize.js +0 -59
  89. package/dist/components/Cell/appearance/cellStyle.js +0 -14
  90. package/dist/components/Cell/appearance/cellSurface.js +0 -51
  91. package/dist/components/Cell/index.js +0 -2
  92. package/dist/components/Checkbox/Checkbox.appearance.js +0 -19
  93. package/dist/components/Checkbox/Checkbox.interface.js +0 -1
  94. package/dist/components/Checkbox/Checkbox.js +0 -39
  95. package/dist/components/Checkbox/appearance/checkboxDefault.js +0 -16
  96. package/dist/components/Checkbox/appearance/checkboxDisabled.js +0 -16
  97. package/dist/components/Checkbox/appearance/checkboxError.js +0 -16
  98. package/dist/components/Checkbox/appearance/checkboxRequire.js +0 -16
  99. package/dist/components/Checkbox/appearance/checkboxShape.js +0 -10
  100. package/dist/components/Checkbox/appearance/checkboxSize.js +0 -23
  101. package/dist/components/Checkbox/appearance/checkboxStyle.js +0 -22
  102. package/dist/components/Checkbox/appearance/checkboxSuccess.js +0 -16
  103. package/dist/components/Checkbox/index.js +0 -2
  104. package/dist/components/Checkmark/Checkmark.appearance.js +0 -15
  105. package/dist/components/Checkmark/Checkmark.interface.js +0 -1
  106. package/dist/components/Checkmark/Checkmark.js +0 -33
  107. package/dist/components/Checkmark/appearance/checkmarkAccent.js +0 -10
  108. package/dist/components/Checkmark/appearance/checkmarkDisabled.js +0 -10
  109. package/dist/components/Checkmark/appearance/checkmarkError.js +0 -10
  110. package/dist/components/Checkmark/appearance/checkmarkSize.js +0 -32
  111. package/dist/components/Checkmark/appearance/checkmarkStyle.js +0 -14
  112. package/dist/components/Checkmark/appearance/checkmarkSurface.js +0 -21
  113. package/dist/components/Checkmark/index.js +0 -2
  114. package/dist/components/Chips/Chips.appearance.js +0 -29
  115. package/dist/components/Chips/Chips.interface.js +0 -1
  116. package/dist/components/Chips/Chips.js +0 -28
  117. package/dist/components/Chips/ChipsGroup.js +0 -19
  118. package/dist/components/Chips/appearance/chipsAccent.js +0 -24
  119. package/dist/components/Chips/appearance/chipsDanger.js +0 -17
  120. package/dist/components/Chips/appearance/chipsDisabled.js +0 -14
  121. package/dist/components/Chips/appearance/chipsError.js +0 -17
  122. package/dist/components/Chips/appearance/chipsExtra.js +0 -17
  123. package/dist/components/Chips/appearance/chipsInfo.js +0 -17
  124. package/dist/components/Chips/appearance/chipsShape.js +0 -25
  125. package/dist/components/Chips/appearance/chipsSize.js +0 -45
  126. package/dist/components/Chips/appearance/chipsSpecial.js +0 -17
  127. package/dist/components/Chips/appearance/chipsStyle.js +0 -14
  128. package/dist/components/Chips/appearance/chipsSuccess.js +0 -17
  129. package/dist/components/Chips/appearance/chipsSurface.js +0 -45
  130. package/dist/components/Chips/appearance/chipsWarning.js +0 -17
  131. package/dist/components/Chips/index.js +0 -3
  132. package/dist/components/Choice/Choice.appearance.js +0 -19
  133. package/dist/components/Choice/Choice.interface.js +0 -1
  134. package/dist/components/Choice/Choice.js +0 -57
  135. package/dist/components/Choice/appearance/choiceDefault.js +0 -37
  136. package/dist/components/Choice/appearance/choiceDisabled.js +0 -18
  137. package/dist/components/Choice/appearance/choiceError.js +0 -17
  138. package/dist/components/Choice/appearance/choiceRequire.js +0 -18
  139. package/dist/components/Choice/appearance/choiceShape.js +0 -25
  140. package/dist/components/Choice/appearance/choiceSize.js +0 -18
  141. package/dist/components/Choice/appearance/choiceStyle.js +0 -14
  142. package/dist/components/Choice/appearance/choiceSuccess.js +0 -18
  143. package/dist/components/Choice/index.js +0 -2
  144. package/dist/components/Code/Code.appearance.js +0 -19
  145. package/dist/components/Code/Code.interface.js +0 -1
  146. package/dist/components/Code/Code.js +0 -37
  147. package/dist/components/Code/appearance/codeDefault.js +0 -11
  148. package/dist/components/Code/appearance/codeDisabled.js +0 -12
  149. package/dist/components/Code/appearance/codeError.js +0 -12
  150. package/dist/components/Code/appearance/codeRequire.js +0 -12
  151. package/dist/components/Code/appearance/codeShape.js +0 -25
  152. package/dist/components/Code/appearance/codeSize.js +0 -13
  153. package/dist/components/Code/appearance/codeStyle.js +0 -16
  154. package/dist/components/Code/appearance/codeSuccess.js +0 -12
  155. package/dist/components/Code/index.js +0 -2
  156. package/dist/components/CookiesWarning/CookiesWarning.appearance.js +0 -5
  157. package/dist/components/CookiesWarning/CookiesWarning.interface.js +0 -1
  158. package/dist/components/CookiesWarning/CookiesWarning.js +0 -42
  159. package/dist/components/CookiesWarning/appearance/cookiesWarningDefault.js +0 -12
  160. package/dist/components/CookiesWarning/index.js +0 -3
  161. package/dist/components/Dadata/Dadata.interface.js +0 -1
  162. package/dist/components/Dadata/Dadata.js +0 -35
  163. package/dist/components/Dadata/index.js +0 -1
  164. package/dist/components/DatePeriod/DatePeriod.appearance.js +0 -9
  165. package/dist/components/DatePeriod/DatePeriod.interface.js +0 -1
  166. package/dist/components/DatePeriod/DatePeriod.js +0 -60
  167. package/dist/components/DatePeriod/appearance/datePeriodShape.js +0 -35
  168. package/dist/components/DatePeriod/appearance/datePeriodSize.js +0 -24
  169. package/dist/components/DatePeriod/appearance/datePeriodSurface.js +0 -17
  170. package/dist/components/DatePeriod/index.js +0 -2
  171. package/dist/components/DatePicker/DatePicker.appearance.js +0 -9
  172. package/dist/components/DatePicker/DatePicker.interface.js +0 -1
  173. package/dist/components/DatePicker/DatePicker.js +0 -110
  174. package/dist/components/DatePicker/DatePicker.utils.js +0 -12
  175. package/dist/components/DatePicker/appearance/datePickerSize.js +0 -31
  176. package/dist/components/DatePicker/appearance/datePickerStyle.js +0 -20
  177. package/dist/components/DatePicker/appearance/datePickerSurface.js +0 -14
  178. package/dist/components/DatePicker/index.js +0 -2
  179. package/dist/components/Divider/Divider.appearance.js +0 -19
  180. package/dist/components/Divider/Divider.interface.js +0 -1
  181. package/dist/components/Divider/Divider.js +0 -25
  182. package/dist/components/Divider/appearance/dividerAccent.js +0 -6
  183. package/dist/components/Divider/appearance/dividerError.js +0 -6
  184. package/dist/components/Divider/appearance/dividerExtra.js +0 -6
  185. package/dist/components/Divider/appearance/dividerSize.js +0 -12
  186. package/dist/components/Divider/appearance/dividerSpecial.js +0 -6
  187. package/dist/components/Divider/appearance/dividerSuccess.js +0 -6
  188. package/dist/components/Divider/appearance/dividerSurface.js +0 -15
  189. package/dist/components/Divider/appearance/dividerWarning.js +0 -6
  190. package/dist/components/Divider/index.js +0 -2
  191. package/dist/components/Dot/Dot.interface.js +0 -1
  192. package/dist/components/Dot/Dot.js +0 -12
  193. package/dist/components/Dot/index.js +0 -1
  194. package/dist/components/Drawer/Drawer.appearance.js +0 -7
  195. package/dist/components/Drawer/Drawer.constants.js +0 -16
  196. package/dist/components/Drawer/Drawer.interface.js +0 -1
  197. package/dist/components/Drawer/Drawer.js +0 -65
  198. package/dist/components/Drawer/appearance/drawerSize.js +0 -8
  199. package/dist/components/Drawer/appearance/drawerSurface.js +0 -10
  200. package/dist/components/Drawer/index.js +0 -2
  201. package/dist/components/Dropdown/Dropdown.appearance.js +0 -13
  202. package/dist/components/Dropdown/Dropdown.interface.js +0 -1
  203. package/dist/components/Dropdown/Dropdown.js +0 -56
  204. package/dist/components/Dropdown/DropdownItem.appearance.js +0 -13
  205. package/dist/components/Dropdown/DropdownItem.js +0 -31
  206. package/dist/components/Dropdown/appearance/dropdownAccent.js +0 -24
  207. package/dist/components/Dropdown/appearance/dropdownShape.js +0 -25
  208. package/dist/components/Dropdown/appearance/dropdownSize.js +0 -39
  209. package/dist/components/Dropdown/appearance/dropdownStyle.js +0 -14
  210. package/dist/components/Dropdown/appearance/dropdownSurface.js +0 -32
  211. package/dist/components/Dropdown/index.js +0 -4
  212. package/dist/components/Dropzone/Dropzone.appearance.js +0 -15
  213. package/dist/components/Dropzone/Dropzone.interface.js +0 -1
  214. package/dist/components/Dropzone/Dropzone.js +0 -131
  215. package/dist/components/Dropzone/appearance/dropzoneDefault.js +0 -17
  216. package/dist/components/Dropzone/appearance/dropzoneDisabled.js +0 -17
  217. package/dist/components/Dropzone/appearance/dropzoneError.js +0 -17
  218. package/dist/components/Dropzone/appearance/dropzoneRequire.js +0 -17
  219. package/dist/components/Dropzone/appearance/dropzoneShape.js +0 -25
  220. package/dist/components/Dropzone/appearance/dropzoneSuccess.js +0 -17
  221. package/dist/components/Dropzone/index.js +0 -1
  222. package/dist/components/Flex/Flex.interface.js +0 -1
  223. package/dist/components/Flex/Flex.js +0 -12
  224. package/dist/components/Flex/FlexItem.js +0 -13
  225. package/dist/components/Flex/index.js +0 -3
  226. package/dist/components/Grid/Grid.interface.js +0 -1
  227. package/dist/components/Grid/Grid.js +0 -12
  228. package/dist/components/Grid/GridItem.js +0 -12
  229. package/dist/components/Grid/GridRow.js +0 -12
  230. package/dist/components/Grid/index.js +0 -4
  231. package/dist/components/Group/Group.appearance.js +0 -2
  232. package/dist/components/Group/Group.interface.js +0 -1
  233. package/dist/components/Group/Group.js +0 -43
  234. package/dist/components/Group/index.js +0 -2
  235. package/dist/components/HTMLContent/HTMLContent.interface.js +0 -1
  236. package/dist/components/HTMLContent/HTMLContent.js +0 -12
  237. package/dist/components/HTMLContent/index.js +0 -1
  238. package/dist/components/HeroTitle/HeroTitle.appearance.js +0 -5
  239. package/dist/components/HeroTitle/HeroTitle.interface.js +0 -1
  240. package/dist/components/HeroTitle/HeroTitle.js +0 -30
  241. package/dist/components/HeroTitle/appearance/heroTitleSize.js +0 -21
  242. package/dist/components/HeroTitle/index.js +0 -2
  243. package/dist/components/Icon/Icon.appearance.js +0 -29
  244. package/dist/components/Icon/Icon.interface.js +0 -1
  245. package/dist/components/Icon/Icon.js +0 -69
  246. package/dist/components/Icon/appearance/iconAccent.js +0 -16
  247. package/dist/components/Icon/appearance/iconDanger.js +0 -10
  248. package/dist/components/Icon/appearance/iconDisabled.js +0 -9
  249. package/dist/components/Icon/appearance/iconError.js +0 -10
  250. package/dist/components/Icon/appearance/iconExtra.js +0 -10
  251. package/dist/components/Icon/appearance/iconInfo.js +0 -15
  252. package/dist/components/Icon/appearance/iconShape.js +0 -25
  253. package/dist/components/Icon/appearance/iconSize.js +0 -171
  254. package/dist/components/Icon/appearance/iconSpecial.js +0 -10
  255. package/dist/components/Icon/appearance/iconStyle.js +0 -14
  256. package/dist/components/Icon/appearance/iconSuccess.js +0 -10
  257. package/dist/components/Icon/appearance/iconSurface.js +0 -28
  258. package/dist/components/Icon/appearance/iconWarning.js +0 -10
  259. package/dist/components/Icon/index.js +0 -2
  260. package/dist/components/Image/Image.interface.js +0 -1
  261. package/dist/components/Image/Image.js +0 -33
  262. package/dist/components/Image/index.js +0 -1
  263. package/dist/components/Input/Input.appearance.js +0 -19
  264. package/dist/components/Input/Input.interface.js +0 -1
  265. package/dist/components/Input/Input.js +0 -22
  266. package/dist/components/Input/appearance/inputDefault.js +0 -21
  267. package/dist/components/Input/appearance/inputDisabled.js +0 -17
  268. package/dist/components/Input/appearance/inputError.js +0 -18
  269. package/dist/components/Input/appearance/inputRequire.js +0 -19
  270. package/dist/components/Input/appearance/inputShape.js +0 -25
  271. package/dist/components/Input/appearance/inputSize.js +0 -31
  272. package/dist/components/Input/appearance/inputStyle.js +0 -16
  273. package/dist/components/Input/appearance/inputSuccess.js +0 -18
  274. package/dist/components/Input/index.js +0 -2
  275. package/dist/components/InputNumber/InputNumber.appearance.js +0 -11
  276. package/dist/components/InputNumber/InputNumber.interfaces.js +0 -1
  277. package/dist/components/InputNumber/InputNumber.js +0 -44
  278. package/dist/components/InputNumber/appearance/InputNumberShape.js +0 -25
  279. package/dist/components/InputNumber/appearance/inputNumberSize.js +0 -28
  280. package/dist/components/InputNumber/appearance/inputNumberStyle.js +0 -16
  281. package/dist/components/InputNumber/appearance/inputNumberSurface.js +0 -16
  282. package/dist/components/InputNumber/index.js +0 -2
  283. package/dist/components/InputPassword/InputPassword.appearance.js +0 -19
  284. package/dist/components/InputPassword/InputPassword.interface.js +0 -1
  285. package/dist/components/InputPassword/InputPassword.js +0 -31
  286. package/dist/components/InputPassword/appearance/inputPasswordDefault.js +0 -24
  287. package/dist/components/InputPassword/appearance/inputPasswordDisabled.js +0 -21
  288. package/dist/components/InputPassword/appearance/inputPasswordError.js +0 -21
  289. package/dist/components/InputPassword/appearance/inputPasswordRequire.js +0 -21
  290. package/dist/components/InputPassword/appearance/inputPasswordShape.js +0 -25
  291. package/dist/components/InputPassword/appearance/inputPasswordSize.js +0 -38
  292. package/dist/components/InputPassword/appearance/inputPasswordStyle.js +0 -16
  293. package/dist/components/InputPassword/appearance/inputPasswordSuccess.js +0 -21
  294. package/dist/components/InputPassword/index.js +0 -2
  295. package/dist/components/Label/Label.appearance.js +0 -31
  296. package/dist/components/Label/Label.interface.js +0 -1
  297. package/dist/components/Label/Label.js +0 -32
  298. package/dist/components/Label/appearance/labelAccent.js +0 -21
  299. package/dist/components/Label/appearance/labelDanger.js +0 -17
  300. package/dist/components/Label/appearance/labelDisabled.js +0 -10
  301. package/dist/components/Label/appearance/labelError.js +0 -17
  302. package/dist/components/Label/appearance/labelExtra.js +0 -17
  303. package/dist/components/Label/appearance/labelGradient.js +0 -10
  304. package/dist/components/Label/appearance/labelInfo.js +0 -17
  305. package/dist/components/Label/appearance/labelShape.js +0 -25
  306. package/dist/components/Label/appearance/labelSize.js +0 -59
  307. package/dist/components/Label/appearance/labelSpecial.js +0 -17
  308. package/dist/components/Label/appearance/labelStyle.js +0 -14
  309. package/dist/components/Label/appearance/labelSuccess.js +0 -17
  310. package/dist/components/Label/appearance/labelSurface.js +0 -25
  311. package/dist/components/Label/appearance/labelWarning.js +0 -17
  312. package/dist/components/Label/index.js +0 -2
  313. package/dist/components/Link/Link.appearance.js +0 -29
  314. package/dist/components/Link/Link.interface.js +0 -1
  315. package/dist/components/Link/Link.js +0 -50
  316. package/dist/components/Link/appearance/linkAccent.js +0 -15
  317. package/dist/components/Link/appearance/linkDanger.js +0 -7
  318. package/dist/components/Link/appearance/linkDisabled.js +0 -13
  319. package/dist/components/Link/appearance/linkError.js +0 -9
  320. package/dist/components/Link/appearance/linkExtra.js +0 -8
  321. package/dist/components/Link/appearance/linkInfo.js +0 -17
  322. package/dist/components/Link/appearance/linkRequire.js +0 -12
  323. package/dist/components/Link/appearance/linkSize.js +0 -59
  324. package/dist/components/Link/appearance/linkSpecial.js +0 -8
  325. package/dist/components/Link/appearance/linkStyle.js +0 -16
  326. package/dist/components/Link/appearance/linkSuccess.js +0 -9
  327. package/dist/components/Link/appearance/linkSurface.js +0 -23
  328. package/dist/components/Link/appearance/linkWarning.js +0 -9
  329. package/dist/components/Link/index.js +0 -2
  330. package/dist/components/List/List.appearance.js +0 -25
  331. package/dist/components/List/List.interface.js +0 -1
  332. package/dist/components/List/List.js +0 -22
  333. package/dist/components/List/ListItem.js +0 -16
  334. package/dist/components/List/appearance/listAccent.js +0 -8
  335. package/dist/components/List/appearance/listDanger.js +0 -7
  336. package/dist/components/List/appearance/listError.js +0 -7
  337. package/dist/components/List/appearance/listExtra.js +0 -7
  338. package/dist/components/List/appearance/listInfo.js +0 -13
  339. package/dist/components/List/appearance/listSize.js +0 -24
  340. package/dist/components/List/appearance/listSpecial.js +0 -7
  341. package/dist/components/List/appearance/listStyle.js +0 -16
  342. package/dist/components/List/appearance/listSuccess.js +0 -7
  343. package/dist/components/List/appearance/listSurface.js +0 -19
  344. package/dist/components/List/appearance/listWarning.js +0 -7
  345. package/dist/components/List/index.js +0 -3
  346. package/dist/components/Loader/Loader.appearance.js +0 -25
  347. package/dist/components/Loader/Loader.interface.js +0 -1
  348. package/dist/components/Loader/Loader.js +0 -22
  349. package/dist/components/Loader/appearance/loaderAccent.js +0 -13
  350. package/dist/components/Loader/appearance/loaderDanger.js +0 -8
  351. package/dist/components/Loader/appearance/loaderError.js +0 -8
  352. package/dist/components/Loader/appearance/loaderExtra.js +0 -8
  353. package/dist/components/Loader/appearance/loaderInfo.js +0 -8
  354. package/dist/components/Loader/appearance/loaderSize.js +0 -15
  355. package/dist/components/Loader/appearance/loaderSpecial.js +0 -8
  356. package/dist/components/Loader/appearance/loaderStyle.js +0 -14
  357. package/dist/components/Loader/appearance/loaderSuccess.js +0 -8
  358. package/dist/components/Loader/appearance/loaderSurface.js +0 -18
  359. package/dist/components/Loader/appearance/loaderWarning.js +0 -8
  360. package/dist/components/Loader/index.js +0 -2
  361. package/dist/components/Logo/Logo.interface.js +0 -1
  362. package/dist/components/Logo/Logo.js +0 -23
  363. package/dist/components/Logo/index.js +0 -1
  364. package/dist/components/MenuItem/MenuItem.appearance.js +0 -15
  365. package/dist/components/MenuItem/MenuItem.interface.js +0 -1
  366. package/dist/components/MenuItem/MenuItem.js +0 -47
  367. package/dist/components/MenuItem/appearance/menuItemAccent.js +0 -27
  368. package/dist/components/MenuItem/appearance/menuItemError.js +0 -19
  369. package/dist/components/MenuItem/appearance/menuItemShape.js +0 -25
  370. package/dist/components/MenuItem/appearance/menuItemSize.js +0 -47
  371. package/dist/components/MenuItem/appearance/menuItemStyle.js +0 -14
  372. package/dist/components/MenuItem/appearance/menuItemSurface.js +0 -45
  373. package/dist/components/MenuItem/index.js +0 -2
  374. package/dist/components/Modal/Modal.appearance.js +0 -11
  375. package/dist/components/Modal/Modal.interface.js +0 -1
  376. package/dist/components/Modal/Modal.js +0 -139
  377. package/dist/components/Modal/ModalLoader.js +0 -6
  378. package/dist/components/Modal/appearance/modalShape.js +0 -25
  379. package/dist/components/Modal/appearance/modalSize.js +0 -28
  380. package/dist/components/Modal/appearance/modalStyle.js +0 -14
  381. package/dist/components/Modal/appearance/modalSurface.js +0 -8
  382. package/dist/components/Modal/index.js +0 -4
  383. package/dist/components/ModalSheetBottom/ModalSheetBottom.appearance.js +0 -5
  384. package/dist/components/ModalSheetBottom/ModalSheetBottom.interface.js +0 -1
  385. package/dist/components/ModalSheetBottom/ModalSheetBottom.js +0 -38
  386. package/dist/components/ModalSheetBottom/appearance/modalSheetBottomSize.js +0 -9
  387. package/dist/components/ModalSheetBottom/index.js +0 -2
  388. package/dist/components/Notification/Notification.appearance.js +0 -19
  389. package/dist/components/Notification/Notification.interface.js +0 -1
  390. package/dist/components/Notification/Notification.js +0 -26
  391. package/dist/components/Notification/NotificationWrapper.js +0 -11
  392. package/dist/components/Notification/appearance/notificationDefault.js +0 -16
  393. package/dist/components/Notification/appearance/notificationError.js +0 -16
  394. package/dist/components/Notification/appearance/notificationInfo.js +0 -16
  395. package/dist/components/Notification/appearance/notificationShape.js +0 -25
  396. package/dist/components/Notification/appearance/notificationSize.js +0 -17
  397. package/dist/components/Notification/appearance/notificationStyle.js +0 -14
  398. package/dist/components/Notification/appearance/notificationSuccess.js +0 -16
  399. package/dist/components/Notification/appearance/notificationWarning.js +0 -16
  400. package/dist/components/Notification/index.js +0 -4
  401. package/dist/components/Overlay/Overlay.appearance.js +0 -5
  402. package/dist/components/Overlay/Overlay.interface.js +0 -1
  403. package/dist/components/Overlay/Overlay.js +0 -21
  404. package/dist/components/Overlay/appearance/overlayDefault.js +0 -11
  405. package/dist/components/Overlay/index.js +0 -2
  406. package/dist/components/Pagination/Pagination.appearance.js +0 -13
  407. package/dist/components/Pagination/Pagination.interface.js +0 -1
  408. package/dist/components/Pagination/Pagination.js +0 -117
  409. package/dist/components/Pagination/appearance/paginationAccent.js +0 -38
  410. package/dist/components/Pagination/appearance/paginationShape.js +0 -34
  411. package/dist/components/Pagination/appearance/paginationSize.js +0 -63
  412. package/dist/components/Pagination/appearance/paginationStyle.js +0 -14
  413. package/dist/components/Pagination/appearance/paginationSurface.js +0 -35
  414. package/dist/components/Pagination/index.js +0 -2
  415. package/dist/components/Radio/Radio.appearance.js +0 -19
  416. package/dist/components/Radio/Radio.interface.js +0 -1
  417. package/dist/components/Radio/Radio.js +0 -33
  418. package/dist/components/Radio/appearance/radioDefault.js +0 -17
  419. package/dist/components/Radio/appearance/radioDisabled.js +0 -14
  420. package/dist/components/Radio/appearance/radioError.js +0 -14
  421. package/dist/components/Radio/appearance/radioRequire.js +0 -14
  422. package/dist/components/Radio/appearance/radioShape.js +0 -25
  423. package/dist/components/Radio/appearance/radioSize.js +0 -18
  424. package/dist/components/Radio/appearance/radioStyle.js +0 -24
  425. package/dist/components/Radio/appearance/radioSuccess.js +0 -14
  426. package/dist/components/Radio/index.js +0 -2
  427. package/dist/components/RangeSlider/RangeSlider.interface.js +0 -1
  428. package/dist/components/RangeSlider/RangeSlider.js +0 -16
  429. package/dist/components/RangeSlider/index.js +0 -1
  430. package/dist/components/Response/Response.appearance.js +0 -25
  431. package/dist/components/Response/Response.constant.js +0 -68
  432. package/dist/components/Response/Response.interface.js +0 -1
  433. package/dist/components/Response/Response.js +0 -49
  434. package/dist/components/Response/appearance/responseConfirm.js +0 -15
  435. package/dist/components/Response/appearance/responseDanger.js +0 -15
  436. package/dist/components/Response/appearance/responseEmpty.js +0 -15
  437. package/dist/components/Response/appearance/responseError.js +0 -15
  438. package/dist/components/Response/appearance/responseFail.js +0 -15
  439. package/dist/components/Response/appearance/responseNothingFound.js +0 -15
  440. package/dist/components/Response/appearance/responseRefresh.js +0 -15
  441. package/dist/components/Response/appearance/responseStyle.js +0 -14
  442. package/dist/components/Response/appearance/responseSuccess.js +0 -15
  443. package/dist/components/Response/appearance/responseUnableLoadData.js +0 -15
  444. package/dist/components/Response/appearance/responseWarning.js +0 -15
  445. package/dist/components/Response/img/index.js +0 -25
  446. package/dist/components/Response/index.js +0 -5
  447. package/dist/components/SVGContent/SVGContent.interface.js +0 -1
  448. package/dist/components/SVGContent/SVGContent.js +0 -15
  449. package/dist/components/SVGContent/index.js +0 -1
  450. package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.js +0 -1
  451. package/dist/components/ScrollOnDrag/ScrollOnDrag.js +0 -18
  452. package/dist/components/ScrollOnDrag/index.js +0 -1
  453. package/dist/components/ScrollToView/ScrollToView.interface.js +0 -1
  454. package/dist/components/ScrollToView/ScrollToView.js +0 -15
  455. package/dist/components/ScrollToView/index.js +0 -1
  456. package/dist/components/Scrollbar/Scrollbar.interface.js +0 -1
  457. package/dist/components/Scrollbar/Scrollbar.js +0 -22
  458. package/dist/components/Scrollbar/index.js +0 -1
  459. package/dist/components/Search/Search.appearance.js +0 -19
  460. package/dist/components/Search/Search.interface.js +0 -1
  461. package/dist/components/Search/SearchInput.js +0 -42
  462. package/dist/components/Search/SearchResult.js +0 -12
  463. package/dist/components/Search/appearance/searchDefault.js +0 -23
  464. package/dist/components/Search/appearance/searchDisabled.js +0 -13
  465. package/dist/components/Search/appearance/searchError.js +0 -13
  466. package/dist/components/Search/appearance/searchRequire.js +0 -13
  467. package/dist/components/Search/appearance/searchShape.js +0 -25
  468. package/dist/components/Search/appearance/searchSize.js +0 -46
  469. package/dist/components/Search/appearance/searchStyle.js +0 -17
  470. package/dist/components/Search/appearance/searchSuccess.js +0 -12
  471. package/dist/components/Search/index.js +0 -4
  472. package/dist/components/Segmented/Segmented.appearance.js +0 -21
  473. package/dist/components/Segmented/Segmented.interface.js +0 -1
  474. package/dist/components/Segmented/Segmented.js +0 -53
  475. package/dist/components/Segmented/appearance/segmentedDefault.js +0 -29
  476. package/dist/components/Segmented/appearance/segmentedDisabled.js +0 -12
  477. package/dist/components/Segmented/appearance/segmentedError.js +0 -14
  478. package/dist/components/Segmented/appearance/segmentedRequire.js +0 -15
  479. package/dist/components/Segmented/appearance/segmentedShape.js +0 -25
  480. package/dist/components/Segmented/appearance/segmentedSize.js +0 -28
  481. package/dist/components/Segmented/appearance/segmentedStyle.js +0 -16
  482. package/dist/components/Segmented/appearance/segmentedSuccess.js +0 -13
  483. package/dist/components/Segmented/appearance/segmentedWarning.js +0 -14
  484. package/dist/components/Segmented/index.js +0 -2
  485. package/dist/components/Select/Select.appearance.js +0 -19
  486. package/dist/components/Select/Select.interface.js +0 -1
  487. package/dist/components/Select/SelectClearIndicator.js +0 -9
  488. package/dist/components/Select/SelectContainer.js +0 -100
  489. package/dist/components/Select/SelectControl.js +0 -9
  490. package/dist/components/Select/SelectDropdownIndicator.js +0 -9
  491. package/dist/components/Select/SelectGroupHeading.js +0 -9
  492. package/dist/components/Select/SelectIndicatorsContainer.js +0 -13
  493. package/dist/components/Select/SelectInput.js +0 -8
  494. package/dist/components/Select/SelectLoadingIndicator.js +0 -7
  495. package/dist/components/Select/SelectLoadingMessage.js +0 -8
  496. package/dist/components/Select/SelectMenu.js +0 -9
  497. package/dist/components/Select/SelectMultiValue.js +0 -18
  498. package/dist/components/Select/SelectMultiValueContainer.js +0 -9
  499. package/dist/components/Select/SelectMultiValueLabel.js +0 -8
  500. package/dist/components/Select/SelectMultiValueRemove.js +0 -8
  501. package/dist/components/Select/SelectNoOptions.js +0 -12
  502. package/dist/components/Select/SelectOption.js +0 -26
  503. package/dist/components/Select/SelectOverflowBadge.js +0 -9
  504. package/dist/components/Select/SelectPlaceholder.js +0 -8
  505. package/dist/components/Select/SelectSingleValue.js +0 -11
  506. package/dist/components/Select/SelectValueContainer.js +0 -7
  507. package/dist/components/Select/appearance/selectDefault.js +0 -37
  508. package/dist/components/Select/appearance/selectDisabled.js +0 -28
  509. package/dist/components/Select/appearance/selectError.js +0 -37
  510. package/dist/components/Select/appearance/selectRequire.js +0 -37
  511. package/dist/components/Select/appearance/selectShape.js +0 -27
  512. package/dist/components/Select/appearance/selectSize.js +0 -116
  513. package/dist/components/Select/appearance/selectStyle.js +0 -17
  514. package/dist/components/Select/appearance/selectSuccess.js +0 -37
  515. package/dist/components/Select/index.js +0 -16
  516. package/dist/components/Swiper/Swiper.interface.js +0 -1
  517. package/dist/components/Swiper/Swiper.js +0 -73
  518. package/dist/components/Swiper/index.js +0 -1
  519. package/dist/components/Switch/Switch.appearance.js +0 -17
  520. package/dist/components/Switch/Switch.interface.js +0 -1
  521. package/dist/components/Switch/Switch.js +0 -31
  522. package/dist/components/Switch/appearance/switchDefault.js +0 -11
  523. package/dist/components/Switch/appearance/switchDisabled.js +0 -11
  524. package/dist/components/Switch/appearance/switchError.js +0 -11
  525. package/dist/components/Switch/appearance/switchRequire.js +0 -11
  526. package/dist/components/Switch/appearance/switchSize.js +0 -18
  527. package/dist/components/Switch/appearance/switchStyle.js +0 -16
  528. package/dist/components/Switch/appearance/switchSuccess.js +0 -11
  529. package/dist/components/Switch/index.js +0 -2
  530. package/dist/components/Tab/Tab.appearance.js +0 -15
  531. package/dist/components/Tab/Tab.interface.js +0 -1
  532. package/dist/components/Tab/Tab.js +0 -34
  533. package/dist/components/Tab/TabGroup.js +0 -14
  534. package/dist/components/Tab/appearance/tabError.js +0 -13
  535. package/dist/components/Tab/appearance/tabSize.js +0 -44
  536. package/dist/components/Tab/appearance/tabStyle.js +0 -16
  537. package/dist/components/Tab/appearance/tabSuccess.js +0 -13
  538. package/dist/components/Tab/appearance/tabSurface.js +0 -64
  539. package/dist/components/Tab/appearance/tabWarning.js +0 -12
  540. package/dist/components/Tab/index.js +0 -3
  541. package/dist/components/Text/Text.appearance.js +0 -5
  542. package/dist/components/Text/Text.interface.js +0 -1
  543. package/dist/components/Text/Text.js +0 -35
  544. package/dist/components/Text/appearance/textSize.js +0 -24
  545. package/dist/components/Text/index.js +0 -2
  546. package/dist/components/Textarea/Textarea.appearance.js +0 -19
  547. package/dist/components/Textarea/Textarea.interface.js +0 -1
  548. package/dist/components/Textarea/Textarea.js +0 -20
  549. package/dist/components/Textarea/appearance/textareaDefault.js +0 -33
  550. package/dist/components/Textarea/appearance/textareaDisabled.js +0 -18
  551. package/dist/components/Textarea/appearance/textareaError.js +0 -18
  552. package/dist/components/Textarea/appearance/textareaRequire.js +0 -18
  553. package/dist/components/Textarea/appearance/textareaShape.js +0 -25
  554. package/dist/components/Textarea/appearance/textareaSize.js +0 -31
  555. package/dist/components/Textarea/appearance/textareaStyle.js +0 -16
  556. package/dist/components/Textarea/appearance/textareaSuccess.js +0 -19
  557. package/dist/components/Textarea/index.js +0 -2
  558. package/dist/components/Tile/Tile.appearance.js +0 -11
  559. package/dist/components/Tile/Tile.interface.js +0 -1
  560. package/dist/components/Tile/Tile.js +0 -26
  561. package/dist/components/Tile/appearance/tileShape.js +0 -25
  562. package/dist/components/Tile/appearance/tileSize.js +0 -51
  563. package/dist/components/Tile/appearance/tileStyle.js +0 -14
  564. package/dist/components/Tile/appearance/tileSurface.js +0 -35
  565. package/dist/components/Tile/index.js +0 -2
  566. package/dist/components/Title/Title.appearance.js +0 -29
  567. package/dist/components/Title/Title.interface.js +0 -1
  568. package/dist/components/Title/Title.js +0 -43
  569. package/dist/components/Title/appearance/titleAccent.js +0 -11
  570. package/dist/components/Title/appearance/titleDanger.js +0 -7
  571. package/dist/components/Title/appearance/titleDisabled.js +0 -16
  572. package/dist/components/Title/appearance/titleError.js +0 -9
  573. package/dist/components/Title/appearance/titleExtra.js +0 -8
  574. package/dist/components/Title/appearance/titleInfo.js +0 -11
  575. package/dist/components/Title/appearance/titleRequire.js +0 -16
  576. package/dist/components/Title/appearance/titleSize.js +0 -45
  577. package/dist/components/Title/appearance/titleSpecial.js +0 -7
  578. package/dist/components/Title/appearance/titleStyle.js +0 -11
  579. package/dist/components/Title/appearance/titleSuccess.js +0 -7
  580. package/dist/components/Title/appearance/titleSurface.js +0 -19
  581. package/dist/components/Title/appearance/titleWarning.js +0 -9
  582. package/dist/components/Title/index.js +0 -2
  583. package/dist/components/Tooltip/Tooltip.appearance.js +0 -19
  584. package/dist/components/Tooltip/Tooltip.interface.js +0 -1
  585. package/dist/components/Tooltip/Tooltip.js +0 -68
  586. package/dist/components/Tooltip/appearance/tooltipDefault.js +0 -10
  587. package/dist/components/Tooltip/appearance/tooltipDisabled.js +0 -9
  588. package/dist/components/Tooltip/appearance/tooltipError.js +0 -10
  589. package/dist/components/Tooltip/appearance/tooltipRequire.js +0 -10
  590. package/dist/components/Tooltip/appearance/tooltipShape.js +0 -25
  591. package/dist/components/Tooltip/appearance/tooltipSize.js +0 -18
  592. package/dist/components/Tooltip/appearance/tooltipStyle.js +0 -14
  593. package/dist/components/Tooltip/appearance/tooltipSuccess.js +0 -10
  594. package/dist/components/Tooltip/index.js +0 -2
  595. package/dist/components/Video/Video.interface.js +0 -1
  596. package/dist/components/Video/Video.js +0 -9
  597. package/dist/components/Video/index.js +0 -1
  598. package/dist/components/Warning/Warning.appearance.js +0 -17
  599. package/dist/components/Warning/Warning.interface.js +0 -1
  600. package/dist/components/Warning/Warning.js +0 -25
  601. package/dist/components/Warning/appearance/warningAccent.js +0 -24
  602. package/dist/components/Warning/appearance/warningError.js +0 -24
  603. package/dist/components/Warning/appearance/warningInfo.js +0 -24
  604. package/dist/components/Warning/appearance/warningShape.js +0 -25
  605. package/dist/components/Warning/appearance/warningSize.js +0 -11
  606. package/dist/components/Warning/appearance/warningStyle.js +0 -14
  607. package/dist/components/Warning/appearance/warningWarning.js +0 -24
  608. package/dist/components/Warning/index.js +0 -2
  609. package/dist/config/forms/datepicker.js +0 -18
  610. package/dist/config/forms/index.js +0 -3
  611. package/dist/config/forms/input.js +0 -17
  612. package/dist/context/Notifications.interface.js +0 -1
  613. package/dist/context/index.js +0 -2
  614. package/dist/hooks/index.helpers.js +0 -6
  615. package/dist/hooks/useActiveClasses/index.js +0 -2
  616. package/dist/hooks/useAppearanceConfig/index.js +0 -1
  617. package/dist/hooks/useDevicePropsGenerator/index.js +0 -1
  618. package/dist/hooks/useMediaQueries/index.js +0 -1
  619. package/dist/hooks/useMediaQueries/mediaQueries.json +0 -19
  620. package/dist/hooks/useStyles/index.js +0 -1
  621. package/dist/types/index.js +0 -1
  622. package/dist/types/utils.js +0 -1
  623. package/dist/utils/index.js +0 -3
@@ -1,28 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
4
- import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
5
- import { useStyles } from 'src/hooks/useStyles';
6
- import { Badge } from 'src/components/Badge';
7
- import { Icon } from 'src/components/Icon';
8
- import { Text } from 'src/components/Text';
9
- import { chipsAppearance } from './Chips.appearance';
10
- const chipsConfig = {
11
- appearance: chipsAppearance,
12
- setAppearance: (appearanceConfig) => {
13
- chipsConfig.appearance = appearanceConfig;
14
- },
15
- };
16
- function Chips(props) {
17
- const { appearance, className, dataTestId, dataTour, label = '', isActive, isDisabled, isSkeleton, onClick, onClickIconAfter, onClickIconBefore, children, } = props;
18
- const appearanceConfig = useAppearanceConfig(appearance, chipsConfig, isDisabled);
19
- const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
20
- const { alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, cursorClass, iconAfter, iconAfterActive, iconAfterFill, iconAfterFillActiveIcon, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeActive, iconBeforeFill, iconBeforeFillActiveIcon, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
21
- const { styles: chipsStyles } = useStyles(props);
22
- return (_jsx("div", { className: clsx(className, 'chips', !isActive
23
- ? fillClass && `fill_${fillClass}`
24
- : fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
25
- ? fillHoverClass && `fill_hover_${fillHoverClass}`
26
- : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), "data-testid": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: _jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc || (iconBeforeActive && isActive)) && (_jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBeforeActive && isActive ? iconBeforeActive : iconBefore, isActive: isActive, onClick: onClickIconBefore })), typeof label === 'string' ? (_jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (_jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc || (iconAfterActive && isActive)) && (_jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfterActive && isActive ? iconAfterActive : iconAfter, isActive: isActive, onClick: onClickIconAfter })), badgeValue && (_jsx(Badge, { appearance: badgeAppearance, className: "chips__badge", size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
27
- }
28
- export { Chips, chipsConfig };
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import clsx from 'clsx';
3
- import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
4
- import { useStyles } from 'src/hooks/useStyles';
5
- import { Chips } from './Chips';
6
- function ChipsGroup(props) {
7
- /** TODO:
8
- * rename "chipsList" to "chipsOptions"
9
- * to do same structure for "Option" object.
10
- */
11
- const { className, dataTestId, dataTour, chipsList, horizontalScroll, style, onClick, children, } = props;
12
- const propsGenerator = useDevicePropsGenerator(props);
13
- const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
14
- const { styles: groupStyles } = useStyles(props);
15
- return (_jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: children
16
- ? children
17
- : chipsList?.map((item) => (_jsx(Chips, { appearance: chipsAppearance, label: item.label, iconAfter: item.iconAfter, iconAfterActive: item.iconAfterActive, iconBefore: item.iconBefore, iconBeforeActive: item.iconBeforeActive, isActive: item.isActive, isDisabled: item.isDisabled, onClick: (event) => onClick?.(item, event) }, item.value))) }));
18
- }
19
- export { ChipsGroup };
@@ -1,24 +0,0 @@
1
- const chipsAppearanceAccent = {
2
- accentMutedPrimary: {
3
- fill: 'accentTertiary',
4
- fillHover: 'accentHoverPrimary',
5
- labelTextColor: 'accentTextSecondary',
6
- borderColor: 'accentBorderSecondary',
7
- iconAfterFillIcon: 'accentItemQuaternary',
8
- iconBeforeFillIcon: 'accentItemQuaternary',
9
- },
10
- accentPrimary: {
11
- fill: 'accentPrimary',
12
- fillActive: 'accentPrimary',
13
- fillActiveHover: 'accentActiveHoverPrimary',
14
- fillHover: 'accentHoverPrimary',
15
- labelTextActiveColor: 'accentTextPrimary',
16
- labelTextColor: 'accentTextPrimary',
17
- borderColor: 'accentBorderPrimary',
18
- iconAfterFillActiveIcon: 'accentItemPrimary',
19
- iconAfterFillIcon: 'accentItemPrimary',
20
- iconBeforeFillActiveIcon: 'accentItemPrimary',
21
- iconBeforeFillIcon: 'accentItemPrimary',
22
- },
23
- };
24
- export { chipsAppearanceAccent };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceDanger = {
2
- dangerMutedPrimary: {
3
- fill: 'dangerTertiary',
4
- labelTextColor: 'dangerTextQuaternary',
5
- borderColor: 'dangerBorderQuaternary',
6
- iconAfterFillIcon: 'dangerItemQuaternary',
7
- iconBeforeFillIcon: 'dangerItemQuaternary',
8
- },
9
- dangerPrimary: {
10
- fill: 'dangerPrimary',
11
- labelTextColor: 'dangerTextPrimary',
12
- borderColor: 'dangerBorderSecondary',
13
- iconAfterFillIcon: 'dangerItemPrimary',
14
- iconBeforeFillIcon: 'dangerItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceDanger };
@@ -1,14 +0,0 @@
1
- const chipsAppearanceDisabled = {
2
- disabledPrimary: {
3
- fill: 'surfaceSecondary',
4
- fillHover: 'surfaceHoverSecondary',
5
- labelTextActiveColor: 'surfaceTextActiveQuaternary',
6
- labelTextActiveColorHover: 'surfaceTextActiveHoverQuaternary',
7
- labelTextColor: 'surfaceTextQuaternary',
8
- labelTextColorHover: 'surfaceTextQuaternary',
9
- borderColor: 'disabledBorderPrimary',
10
- iconAfterFillIcon: 'disabledItemPrimary',
11
- iconBeforeFillIcon: 'disabledItemPrimary',
12
- },
13
- };
14
- export { chipsAppearanceDisabled };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceError = {
2
- errorMutedPrimary: {
3
- fill: 'errorTertiary',
4
- labelTextColor: 'errorTextQuaternary',
5
- borderColor: 'errorBorderQuaternary',
6
- iconAfterFillIcon: 'errorItemQuaternary',
7
- iconBeforeFillIcon: 'errorItemQuaternary',
8
- },
9
- errorPrimary: {
10
- fill: 'errorPrimary',
11
- labelTextColor: 'errorTextPrimary',
12
- borderColor: 'errorBorderSecondary',
13
- iconAfterFillIcon: 'errorItemPrimary',
14
- iconBeforeFillIcon: 'errorItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceError };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceExtra = {
2
- extraMutedPrimary: {
3
- fill: 'extraTertiary',
4
- labelTextColor: 'extraTextQuaternary',
5
- borderColor: 'extraBorderSecondary',
6
- iconAfterFillIcon: 'extraItemQuaternary',
7
- iconBeforeFillIcon: 'extraItemQuaternary',
8
- },
9
- extraPrimary: {
10
- fill: 'extraPrimary',
11
- labelTextColor: 'extraTextPrimary',
12
- borderColor: 'extraBorderSecondary',
13
- iconAfterFillIcon: 'extraItemPrimary',
14
- iconBeforeFillIcon: 'extraItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceExtra };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceInfo = {
2
- infoMutedPrimary: {
3
- fill: 'infoTertiary',
4
- labelTextColor: 'infoTextSecondary',
5
- borderColor: 'infoBorderSecondary',
6
- iconAfterFillIcon: 'infoItemPrimary',
7
- iconBeforeFillIcon: 'infoItemPrimary',
8
- },
9
- infoPrimary: {
10
- fill: 'infoPrimary',
11
- labelTextColor: 'infoTextPrimary',
12
- borderColor: 'infoBorderPrimary',
13
- iconAfterFillIcon: 'infoItemPrimary',
14
- iconBeforeFillIcon: 'infoItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceInfo };
@@ -1,25 +0,0 @@
1
- const chipsAppearanceShape = {
2
- circular: {
3
- shape: 'circular',
4
- },
5
- rounded: {
6
- shape: 'rounded',
7
- },
8
- roundedXL: {
9
- shape: 'rounded',
10
- shapeStrength: '2m',
11
- },
12
- roundedL: {
13
- shape: 'rounded',
14
- shapeStrength: '1_5m',
15
- },
16
- roundedM: {
17
- shape: 'rounded',
18
- shapeStrength: '1m',
19
- },
20
- roundedS: {
21
- shape: 'rounded',
22
- shapeStrength: '0_5m',
23
- },
24
- };
25
- export { chipsAppearanceShape };
@@ -1,45 +0,0 @@
1
- const chipsAppearanceSize = {
2
- sizeXXL: {
3
- size: 'xxl',
4
- labelTextSize: 'xl',
5
- iconAfterSize: '24',
6
- iconBeforeSize: '24',
7
- },
8
- sizeXL: {
9
- size: 'xl',
10
- labelTextSize: 'm',
11
- iconAfterSize: '20',
12
- iconBeforeSize: '20',
13
- },
14
- sizeL: {
15
- size: 'l',
16
- labelTextSize: 'm',
17
- iconAfterSize: '16',
18
- iconBeforeSize: '16',
19
- },
20
- sizeM: {
21
- size: 'm',
22
- labelTextSize: 's',
23
- iconAfterSize: '16',
24
- iconBeforeSize: '16',
25
- },
26
- sizeS: {
27
- size: 's',
28
- labelTextSize: 's',
29
- iconAfterSize: '16',
30
- iconBeforeSize: '16',
31
- },
32
- sizeXS: {
33
- size: 'xs',
34
- labelTextSize: 'xs',
35
- iconAfterSize: '14',
36
- iconBeforeSize: '14',
37
- },
38
- sizeXXS: {
39
- size: 'xxs',
40
- labelTextSize: 'xxs',
41
- iconAfterSize: '14',
42
- iconBeforeSize: '14',
43
- },
44
- };
45
- export { chipsAppearanceSize };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceSpecial = {
2
- specialMutedPrimary: {
3
- fill: 'specialTertiary',
4
- labelTextColor: 'specialTextSecondary',
5
- borderColor: 'specialBorderSecondary',
6
- iconAfterFillIcon: 'specialItemSecondary',
7
- iconBeforeFillIcon: 'specialItemSecondary',
8
- },
9
- specialPrimary: {
10
- fill: 'specialPrimary',
11
- labelTextColor: 'specialTextPrimary',
12
- borderColor: 'specialBorderSecondary',
13
- iconAfterFillIcon: 'specialItemPrimary',
14
- iconBeforeFillIcon: 'specialItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceSpecial };
@@ -1,14 +0,0 @@
1
- const chipsAppearanceStyle = {
2
- solid: {
3
- borderColor: 'none',
4
- },
5
- outlined: {
6
- fill: 'none',
7
- },
8
- full: {},
9
- ghost: {
10
- fill: 'none',
11
- borderColor: 'none',
12
- },
13
- };
14
- export { chipsAppearanceStyle };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceSuccess = {
2
- successMutedPrimary: {
3
- fill: 'successTertiary',
4
- labelTextColor: 'successTextQuaternary',
5
- borderColor: 'successBorderQuaternary',
6
- iconAfterFillIcon: 'successItemQuaternary',
7
- iconBeforeFillIcon: 'successItemQuaternary',
8
- },
9
- successPrimary: {
10
- fill: 'successPrimary',
11
- labelTextColor: 'successTextPrimary',
12
- borderColor: 'successBorderSecondary',
13
- iconAfterFillIcon: 'successItemPrimary',
14
- iconBeforeFillIcon: 'successItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceSuccess };
@@ -1,45 +0,0 @@
1
- const chipsAppearanceSurface = {
2
- surfaceMutedPrimary: {
3
- fill: 'surfaceSecondary',
4
- labelTextColor: 'surfaceTextQuaternary',
5
- borderColor: 'surfaceBorderQuaternary',
6
- iconAfterFillIcon: 'surfaceItemQuaternary',
7
- iconBeforeFillIcon: 'surfaceItemQuaternary',
8
- },
9
- surfacePrimary: {
10
- fill: 'surfacePrimary',
11
- fillActive: 'accentPrimary',
12
- fillActiveHover: 'accentSecondary',
13
- fillHover: 'surfaceHoverTertiary',
14
- labelTextActiveColor: 'accentTextPrimary',
15
- labelTextColor: 'surfaceTextPrimary',
16
- labelTextColorHover: 'surfaceTextPrimary',
17
- borderColor: 'surfaceBorderTertiary',
18
- badgeAppearance: 'surfacePrimary sizeXS solid',
19
- iconAfterFillActiveIcon: 'accentItemPrimary',
20
- iconAfterFillIcon: 'surfaceItemPrimary',
21
- iconBeforeFillActiveIcon: 'accentItemPrimary',
22
- iconBeforeFillIcon: 'surfaceItemPrimary',
23
- },
24
- surfaceSecondary: {
25
- fill: 'surfaceSecondary',
26
- fillActive: 'accentPrimary',
27
- fillActiveHover: 'accentSecondary',
28
- fillHover: 'surfaceHoverTertiary',
29
- labelTextActiveColor: 'accentTextPrimary',
30
- labelTextColor: 'surfaceTextPrimary',
31
- labelTextColorHover: 'surfaceTextPrimary',
32
- borderColor: 'surfaceBorderSecondary',
33
- iconAfterFillActiveIcon: 'accentItemPrimary',
34
- iconAfterFillIcon: 'surfaceItemPrimary',
35
- iconBeforeFillActiveIcon: 'accentItemPrimary',
36
- iconBeforeFillIcon: 'surfaceItemPrimary',
37
- },
38
- surfaceTertiary: {
39
- fill: 'surfaceTertiary',
40
- fillHover: 'surfaceHoverTertiary',
41
- labelTextColor: 'surfaceTextPrimary',
42
- borderColor: 'surfaceBorderTertiary',
43
- },
44
- };
45
- export { chipsAppearanceSurface };
@@ -1,17 +0,0 @@
1
- const chipsAppearanceWarning = {
2
- warningMutedPrimary: {
3
- fill: 'warningTertiary',
4
- labelTextColor: 'warningTextSecondary',
5
- borderColor: 'warningBorderSecondary',
6
- iconAfterFillIcon: 'warningItemSecondary',
7
- iconBeforeFillIcon: 'warningItemSecondary',
8
- },
9
- warningPrimary: {
10
- fill: 'warningPrimary',
11
- labelTextColor: 'warningTextPrimary',
12
- borderColor: 'warningBorderSecondary',
13
- iconAfterFillIcon: 'warningItemPrimary',
14
- iconBeforeFillIcon: 'warningItemPrimary',
15
- },
16
- };
17
- export { chipsAppearanceWarning };
@@ -1,3 +0,0 @@
1
- export { Chips, chipsConfig } from './Chips';
2
- export { chipsAppearance } from './Chips.appearance';
3
- export { ChipsGroup } from './ChipsGroup';
@@ -1,19 +0,0 @@
1
- import { choiceAppearanceDefault } from './appearance/choiceDefault';
2
- import { choiceAppearanceDisabled } from './appearance/choiceDisabled';
3
- import { choiceAppearanceError } from './appearance/choiceError';
4
- import { choiceAppearanceRequire } from './appearance/choiceRequire';
5
- import { choiceAppearanceShape } from './appearance/choiceShape';
6
- import { choiceAppearanceSize } from './appearance/choiceSize';
7
- import { choiceAppearanceStyle } from './appearance/choiceStyle';
8
- import { choiceAppearanceSuccess } from './appearance/choiceSuccess';
9
- const choiceAppearance = {
10
- ...choiceAppearanceError,
11
- ...choiceAppearanceDisabled,
12
- ...choiceAppearanceDefault,
13
- ...choiceAppearanceSuccess,
14
- ...choiceAppearanceRequire,
15
- ...choiceAppearanceStyle,
16
- ...choiceAppearanceShape,
17
- ...choiceAppearanceSize,
18
- };
19
- export { choiceAppearance };
@@ -1 +0,0 @@
1
- export {};
@@ -1,57 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { createRef, useCallback, useMemo, useRef, } from 'react';
3
- import clsx from 'clsx';
4
- import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
5
- import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
6
- import { useStyles } from 'src/hooks/useStyles';
7
- import { Icon } from 'src/components/Icon';
8
- import { Loader } from 'src/components/Loader';
9
- import { Text } from 'src/components/Text';
10
- import { choiceAppearance } from './Choice.appearance';
11
- const choiceConfig = {
12
- appearance: choiceAppearance,
13
- setAppearance: (appearanceConfig) => {
14
- choiceConfig.appearance = appearanceConfig;
15
- },
16
- };
17
- function Choice(props) {
18
- const { id, appearance, className, dataTestId, dataTour, name, active = { value: undefined }, itemAfter, itemBefore, options = [], before, after, isDisabled = false, isSkeleton, isCheckbox = false, isLoading = false, setActiveSegment, } = props;
19
- const controlRef = useRef(null);
20
- const optionsRefs = useMemo(() => new Map(options.map((item) => [item.value, createRef()])), [options]);
21
- const onChange = useCallback((event, item) => {
22
- const isChecked = isCheckbox ? event.target.checked : true;
23
- setActiveSegment && setActiveSegment(item, isChecked);
24
- }, [isCheckbox, setActiveSegment]);
25
- const appearanceConfig = useAppearanceConfig(appearance, choiceConfig, isDisabled);
26
- const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
27
- const { size, fillClass, fillItemActiveClass, fillItemActiveDisabledClass, fillItemActiveHoverClass, fillItemClass, fillItemDisabledClass, fillItemHoverClass, labelTextColor, labelTextColorActive, labelTextColorActiveHover, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconAfterFill, iconAfterFillActive, iconAfterFillDisabled, iconAfterSize, iconBeforeFill, iconBeforeFillActive, iconBeforeFillDisabled, iconBeforeSize, iconFill, iconFillActive, iconFillDisabled, iconSize, shapeClass, shapeStrengthClass, wrapClass, } = propsGenerator;
28
- const { styles } = useStyles(props);
29
- return (_jsxs("div", { id: id, className: clsx(className, 'choice', size && `choice_size_${size}`, fillClass && `fill_${fillClass}`, wrapClass && `choice_wrap_${wrapClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `choice_skeleton`), ref: controlRef, "data-testid": dataTestId && `${dataTestId}Choice`, "data-tour": dataTour, style: styles, children: [before && _jsx("div", { className: "choice__before", children: before }), isLoading ? (_jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemPrimary" })) : (_jsx(React.Fragment, { children: options.map((item) => {
30
- const isActive = typeof active === 'object'
31
- ? String(item.value) === String(active.value)
32
- : String(item.value) === String(active);
33
- return (_jsxs("div", { className: clsx('choice__item', size && `choice__item_size_${size}`, (item.icon || item.iconActive) && 'choice__item_icon', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, !isActive && !isDisabled
34
- ? fillItemClass && `fill_${fillItemClass}`
35
- : fillItemDisabledClass &&
36
- `fill_disabled_${fillItemDisabledClass}`, !isActive && !isDisabled
37
- ? fillItemHoverClass && `fill_hover_${fillItemHoverClass}`
38
- : fillItemActiveHoverClass &&
39
- `fill_active_hover_${fillItemActiveHoverClass}`, isActive
40
- ? !isDisabled
41
- ? fillItemActiveClass &&
42
- `fill_active_${fillItemActiveClass}`
43
- : fillItemActiveDisabledClass &&
44
- `fill_active_disabled_${fillItemActiveDisabledClass}`
45
- : !isDisabled
46
- ? fillItemClass && `fill_${fillItemClass}`
47
- : fillItemDisabledClass &&
48
- `fill_disabled_${fillItemDisabledClass}`, !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
49
- isDisabled &&
50
- 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [_jsx("input", { id: `${name}-${item.value}`, className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, checked: isActive, disabled: isDisabled, value: item.value, onChange: (event) => onChange(event, item) }), _jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: `${name}-${item.value}`, children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (_jsx(Icon, { className: "choice__item-icon", iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconFillDisabled: iconBeforeFillDisabled, iconSize: iconBeforeSize, SvgImage: isActive
51
- ? item.iconBeforeActive || item.iconBefore
52
- : item.iconBefore, isActive: isActive, isDisabled: isDisabled })), item.label && (_jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorActiveHover: labelTextColorActiveHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: item.label })), (item.icon || item.iconActive) && (_jsx(Icon, { className: "choice__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })), (item.iconAfter || item.iconAfterActive) && (_jsx(Icon, { className: "choice__item-icon", iconFill: iconAfterFill, iconFillActive: iconAfterFillActive, iconFillDisabled: iconAfterFillDisabled, iconSize: iconAfterSize, SvgImage: isActive
53
- ? item.iconAfterActive || item.iconAfter
54
- : item.iconAfter, isActive: isActive })), itemAfter] })] }, `${name}-${item.value}`));
55
- }) })), after && _jsx("div", { className: "choice__after", children: after })] }));
56
- }
57
- export { Choice, choiceConfig };
@@ -1,37 +0,0 @@
1
- const choiceAppearanceDefault = {
2
- defaultMutedPrimary: {
3
- fill: 'surfaceSecondary',
4
- fillItem: 'surfaceSecondary',
5
- fillItemActive: 'accentTertiary',
6
- fillItemActiveHover: 'accentPrimary',
7
- fillItemHover: 'surfaceTertiary',
8
- labelTextColor: 'surfaceTextPrimary',
9
- labelTextColorActive: 'surfaceTextPrimary',
10
- labelTextColorActiveHover: 'accentTextPrimary',
11
- borderColor: 'surfaceBorderSecondary',
12
- iconAfterFill: 'surfaceItemQuaternary',
13
- iconAfterFillActive: 'surfaceItemSecondary',
14
- iconBeforeFill: 'surfaceItemQuaternary',
15
- iconBeforeFillActive: 'surfaceItemSecondary',
16
- iconFill: 'surfaceItemQuaternary',
17
- iconFillActive: 'surfaceItemSecondary',
18
- },
19
- defaultPrimary: {
20
- fill: 'surfaceSecondary',
21
- fillItem: 'surfaceSecondary',
22
- fillItemActive: 'accentPrimary',
23
- fillItemActiveHover: 'accentActiveHoverPrimary',
24
- fillItemHover: 'surfaceTertiary',
25
- labelTextColor: 'surfaceTextPrimary',
26
- labelTextColorActive: 'accentTextPrimary',
27
- labelTextColorActiveHover: 'accentTextPrimary',
28
- borderColor: 'surfaceBorderQuaternary',
29
- iconAfterFill: 'surfaceItemQuaternary',
30
- iconAfterFillActive: 'surfaceItemSecondary',
31
- iconBeforeFill: 'surfaceItemQuaternary',
32
- iconBeforeFillActive: 'surfaceItemSecondary',
33
- iconFill: 'surfaceItemQuaternary',
34
- iconFillActive: 'surfaceItemSecondary',
35
- },
36
- };
37
- export { choiceAppearanceDefault };
@@ -1,18 +0,0 @@
1
- const choiceAppearanceDisabled = {
2
- disabledPrimary: {
3
- fill: 'disabledTertiary',
4
- fillItem: 'disabledTertiary',
5
- fillItemActive: 'surfaceDisabled',
6
- fillItemActiveHover: 'surfaceDisabled',
7
- fillItemHover: 'surfaceTertiary',
8
- labelTextColor: 'surfaceTextQuaternary',
9
- borderColor: 'surfaceBorderPrimary',
10
- iconAfterFill: 'surfaceItemPrimary',
11
- iconAfterFillActive: 'disabledItemSecondary',
12
- iconBeforeFill: 'surfaceItemPrimary',
13
- iconBeforeFillActive: 'disabledItemSecondary',
14
- iconFill: 'surfaceItemPrimary',
15
- iconFillActive: 'disabledItemSecondary',
16
- },
17
- };
18
- export { choiceAppearanceDisabled };
@@ -1,17 +0,0 @@
1
- const choiceAppearanceError = {
2
- errorPrimary: {
3
- fill: 'errorTertiary',
4
- fillItem: 'errorTertiary',
5
- fillItemActive: 'errorSecondary',
6
- fillItemHover: 'errorHoverPrimary',
7
- labelTextColor: 'errorTextSecondary',
8
- borderColor: 'errorBorderQuaternary',
9
- iconAfterFill: 'errorItemSecondary',
10
- iconAfterFillActive: 'errorItemTertiary',
11
- iconBeforeFill: 'errorItemSecondary',
12
- iconBeforeFillActive: 'errorItemTertiary',
13
- iconFill: 'errorItemSecondary',
14
- iconFillActive: 'errorItemTertiary',
15
- },
16
- };
17
- export { choiceAppearanceError };
@@ -1,18 +0,0 @@
1
- const choiceAppearanceRequire = {
2
- requirePrimary: {
3
- fill: 'warningTertiary',
4
- fillItem: 'warningTertiary',
5
- fillItemActive: 'warningSecondary',
6
- fillItemHover: 'warningHoverPrimary',
7
- labelTextColor: 'warningTextSecondary',
8
- labelTextColorActive: 'warningTextPrimary',
9
- borderColor: 'warningBorderSecondary',
10
- iconAfterFill: 'warningItemSecondary',
11
- iconAfterFillActive: 'warningItemTertiary',
12
- iconBeforeFill: 'warningItemSecondary',
13
- iconBeforeFillActive: 'warningItemTertiary',
14
- iconFill: 'warningItemSecondary',
15
- iconFillActive: 'warningItemTertiary',
16
- },
17
- };
18
- export { choiceAppearanceRequire };
@@ -1,25 +0,0 @@
1
- const choiceAppearanceShape = {
2
- circular: {
3
- shape: 'circular',
4
- },
5
- rounded: {
6
- shape: 'rounded',
7
- },
8
- roundedXL: {
9
- shape: 'rounded',
10
- shapeStrength: '2m',
11
- },
12
- roundedL: {
13
- shape: 'rounded',
14
- shapeStrength: '1_5m',
15
- },
16
- roundedM: {
17
- shape: 'rounded',
18
- shapeStrength: '1m',
19
- },
20
- roundedS: {
21
- shape: 'rounded',
22
- shapeStrength: '0_5m',
23
- },
24
- };
25
- export { choiceAppearanceShape };
@@ -1,18 +0,0 @@
1
- const choiceAppearanceSize = {
2
- sizeL: {
3
- size: 'l',
4
- labelTextSize: 'm',
5
- iconSize: '24',
6
- },
7
- sizeM: {
8
- size: 'm',
9
- labelTextSize: 'm',
10
- iconSize: '24',
11
- },
12
- sizeS: {
13
- size: 's',
14
- labelTextSize: 's',
15
- iconSize: '20',
16
- },
17
- };
18
- export { choiceAppearanceSize };
@@ -1,14 +0,0 @@
1
- const choiceAppearanceStyle = {
2
- solid: {
3
- borderColor: 'none',
4
- },
5
- outlined: {
6
- fill: 'none',
7
- },
8
- full: {},
9
- ghost: {
10
- fill: 'none',
11
- borderColor: 'none',
12
- },
13
- };
14
- export { choiceAppearanceStyle };
@@ -1,18 +0,0 @@
1
- const choiceAppearanceSuccess = {
2
- successPrimary: {
3
- fill: 'successTertiary',
4
- fillItem: 'successTertiary',
5
- fillItemActive: 'successSecondary',
6
- fillItemHover: 'successHoverPrimary',
7
- labelTextColor: 'successTextSecondary',
8
- labelTextColorActive: 'successTextActivePrimary',
9
- borderColor: 'successBorderSecondary',
10
- iconAfterFill: 'successItemSecondary',
11
- iconAfterFillActive: 'successItemTertiary',
12
- iconBeforeFill: 'successItemSecondary',
13
- iconBeforeFillActive: 'successItemTertiary',
14
- iconFill: 'successItemSecondary',
15
- iconFillActive: 'successItemTertiary',
16
- },
17
- };
18
- export { choiceAppearanceSuccess };
@@ -1,2 +0,0 @@
1
- export { Choice, choiceConfig } from './Choice';
2
- export { choiceAppearance } from './Choice.appearance';