@itcase/ui-web 1.9.89 → 1.9.91

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 (531) hide show
  1. package/dist/{Avatar_cjs_O3Mqev_y.js → Avatar_cjs_CTpQ8p9y.js} +1 -1
  2. package/dist/{Avatar_es_CI38tl1r.js → Avatar_es_CZaOp89f.js} +1 -1
  3. package/dist/{Button_cjs_DgfP3zXh.js → Button_cjs_BwvUAR8Q.js} +1 -1
  4. package/dist/{Button_es_BeH1wb72.js → Button_es_CVTnbWvY.js} +1 -1
  5. package/dist/{ChipsGroup_cjs_DZFoYq_p.js → ChipsGroup_cjs_BsIhJo6T.js} +1 -1
  6. package/dist/{ChipsGroup_es_CixbNPu4.js → ChipsGroup_es_0BYWqUPj.js} +1 -1
  7. package/dist/{DatePicker_cjs_cgZVFwW1.js → DatePicker_cjs_CiMRU0F5.js} +1 -1
  8. package/dist/{DatePicker_es_CtpBf0Oy.js → DatePicker_es_BRmU-HB_.js} +1 -1
  9. package/dist/{Label_cjs_S3h7Wkqk.js → Label_cjs_ChRo7KzR.js} +1 -1
  10. package/dist/{Label_es_nDJnvGbl.js → Label_es_BsCvIlt8.js} +1 -1
  11. package/dist/{Loader_cjs_DCaihKWJ.js → Loader_cjs_CqtSa-19.js} +1 -1
  12. package/dist/{Loader_es_BpnrZrr1.js → Loader_es_Gu2mEy8z.js} +1 -1
  13. package/dist/{SelectContainer_cjs_QG2vYocV.js → SelectContainer_cjs_yJf1uj-L.js} +1 -1
  14. package/dist/{SelectContainer_es_BJV7WeSC.js → SelectContainer_es_CfRZq9xe.js} +1 -1
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +1 -1
  17. package/dist/cjs/components/AvatarStack.js +1 -1
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs.js +1 -1
  20. package/dist/cjs/components/Button.js +1 -1
  21. package/dist/cjs/components/Cell.js +1 -1
  22. package/dist/cjs/components/Checkbox.js +1 -1
  23. package/dist/cjs/components/Checkmark.js +1 -1
  24. package/dist/cjs/components/Chips.js +1 -1
  25. package/dist/cjs/components/Choice.js +1 -1
  26. package/dist/cjs/components/CookiesWarning.js +1 -1
  27. package/dist/cjs/components/DatePeriod.js +1 -1
  28. package/dist/cjs/components/DatePicker.js +1 -1
  29. package/dist/cjs/components/Divider.js +1 -1
  30. package/dist/cjs/components/Drawer.js +1 -1
  31. package/dist/cjs/components/Dropdown.js +1 -1
  32. package/dist/cjs/components/Dropzone.js +1 -1
  33. package/dist/cjs/components/HeroTitle.js +1 -1
  34. package/dist/cjs/components/Icon.js +1 -1
  35. package/dist/cjs/components/InputNumber.js +1 -1
  36. package/dist/cjs/components/InputPassword.js +1 -1
  37. package/dist/cjs/components/Label.js +1 -1
  38. package/dist/cjs/components/Link.js +1 -1
  39. package/dist/cjs/components/List.js +1 -1
  40. package/dist/cjs/components/Loader.js +1 -1
  41. package/dist/cjs/components/Logo.js +1 -1
  42. package/dist/cjs/components/MenuItem.js +1 -1
  43. package/dist/cjs/components/Modal.js +1 -1
  44. package/dist/cjs/components/ModalSheetBottom.js +1 -1
  45. package/dist/cjs/components/Notification.js +1 -1
  46. package/dist/cjs/components/Pagination.js +1 -1
  47. package/dist/cjs/components/Radio.js +1 -1
  48. package/dist/cjs/components/Response.js +1 -1
  49. package/dist/cjs/components/Search.js +1 -1
  50. package/dist/cjs/components/Segmented.js +1 -1
  51. package/dist/cjs/components/Select.js +1 -1
  52. package/dist/cjs/components/Swiper.js +1 -1
  53. package/dist/cjs/components/Switch.js +1 -1
  54. package/dist/cjs/components/Tab.js +1 -1
  55. package/dist/cjs/components/Text.js +1 -1
  56. package/dist/cjs/components/Tile.js +1 -1
  57. package/dist/cjs/components/Title.js +1 -1
  58. package/dist/cjs/components/Tooltip.js +1 -1
  59. package/dist/cjs/components/Warning.js +1 -1
  60. package/dist/components/Accordion.js +1 -1
  61. package/dist/components/Avatar.js +1 -1
  62. package/dist/components/AvatarStack.js +1 -1
  63. package/dist/components/Badge.js +1 -1
  64. package/dist/components/Breadcrumbs.js +1 -1
  65. package/dist/components/Button.js +1 -1
  66. package/dist/components/Cell.js +1 -1
  67. package/dist/components/Checkbox.js +1 -1
  68. package/dist/components/Checkmark.js +1 -1
  69. package/dist/components/Chips.js +1 -1
  70. package/dist/components/Choice.js +1 -1
  71. package/dist/components/CookiesWarning.js +1 -1
  72. package/dist/components/DatePeriod.js +1 -1
  73. package/dist/components/DatePicker.js +1 -1
  74. package/dist/components/Divider.js +1 -1
  75. package/dist/components/Drawer.js +1 -1
  76. package/dist/components/Dropdown.js +1 -1
  77. package/dist/components/Dropzone.js +1 -1
  78. package/dist/components/HeroTitle.js +1 -1
  79. package/dist/components/Icon.js +1 -1
  80. package/dist/components/InputNumber.js +1 -1
  81. package/dist/components/InputPassword.js +1 -1
  82. package/dist/components/Label.js +1 -1
  83. package/dist/components/Link.js +1 -1
  84. package/dist/components/List.js +1 -1
  85. package/dist/components/Loader.js +1 -1
  86. package/dist/components/Logo.js +1 -1
  87. package/dist/components/MenuItem.js +1 -1
  88. package/dist/components/Modal.js +1 -1
  89. package/dist/components/ModalSheetBottom.js +1 -1
  90. package/dist/components/Notification.js +1 -1
  91. package/dist/components/Pagination.js +1 -1
  92. package/dist/components/Radio.js +1 -1
  93. package/dist/components/Response.js +1 -1
  94. package/dist/components/Search.js +1 -1
  95. package/dist/components/Segmented.js +1 -1
  96. package/dist/components/Select.js +1 -1
  97. package/dist/components/Swiper.js +1 -1
  98. package/dist/components/Switch.js +1 -1
  99. package/dist/components/Tab.js +1 -1
  100. package/dist/components/Text.js +1 -1
  101. package/dist/components/Tile.js +1 -1
  102. package/dist/components/Title.js +1 -1
  103. package/dist/components/Tooltip.js +1 -1
  104. package/dist/components/Warning.js +1 -1
  105. package/dist/css/styles/bundles.css +28 -11
  106. package/dist/{primitives_cjs_ATnAJofs.js → primitives_cjs_ggfFWBhs.js} +1 -1
  107. package/dist/{primitives_es_BRduTiVl.js → primitives_es_1Ei6qOpa.js} +1 -1
  108. package/dist/types/components/Accordion/Accordion.appearance.d.ts +94 -2
  109. package/dist/types/components/Accordion/Accordion.interface.d.ts +5 -2
  110. package/dist/types/components/Accordion/appearance/accordionSize.d.ts +50 -2
  111. package/dist/types/components/Accordion/appearance/accordionStyle.d.ts +13 -2
  112. package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +35 -2
  113. package/dist/types/components/Avatar/Avatar.appearance.d.ts +113 -2
  114. package/dist/types/components/Avatar/Avatar.interface.d.ts +6 -2
  115. package/dist/types/components/Avatar/appearance/avatarDefault.d.ts +22 -2
  116. package/dist/types/components/Avatar/appearance/avatarShape.d.ts +20 -2
  117. package/dist/types/components/Avatar/appearance/avatarSize.d.ts +62 -2
  118. package/dist/types/components/Avatar/appearance/avatarStyle.d.ts +15 -2
  119. package/dist/types/components/AvatarStack/AvatarStack.appearance.d.ts +20 -2
  120. package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +3 -2
  121. package/dist/types/components/AvatarStack/appearance/avatarStackSize.d.ts +20 -2
  122. package/dist/types/components/Badge/Badge.appearance.d.ts +176 -2
  123. package/dist/types/components/Badge/Badge.interface.d.ts +6 -2
  124. package/dist/types/components/Badge/appearance/badgeAccent.d.ts +30 -2
  125. package/dist/types/components/Badge/appearance/badgeDanger.d.ts +9 -2
  126. package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +8 -2
  127. package/dist/types/components/Badge/appearance/badgeError.d.ts +8 -2
  128. package/dist/types/components/Badge/appearance/badgeExtra.d.ts +9 -2
  129. package/dist/types/components/Badge/appearance/badgeInfo.d.ts +15 -2
  130. package/dist/types/components/Badge/appearance/badgeShape.d.ts +20 -2
  131. package/dist/types/components/Badge/appearance/badgeSize.d.ts +37 -2
  132. package/dist/types/components/Badge/appearance/badgeSpecial.d.ts +9 -2
  133. package/dist/types/components/Badge/appearance/badgeStyle.d.ts +13 -2
  134. package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +9 -2
  135. package/dist/types/components/Badge/appearance/badgeSurface.d.ts +24 -2
  136. package/dist/types/components/Badge/appearance/badgeWarning.d.ts +9 -2
  137. package/dist/types/components/Breadcrumbs/Breadcrumbs.appearance.d.ts +78 -2
  138. package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +5 -2
  139. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +8 -2
  140. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +37 -2
  141. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +13 -2
  142. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +26 -2
  143. package/dist/types/components/Button/Button.appearance.d.ts +317 -2
  144. package/dist/types/components/Button/Button.interface.d.ts +6 -2
  145. package/dist/types/components/Button/Button.js +3 -3
  146. package/dist/types/components/Button/appearance/buttonAccent.d.ts +35 -2
  147. package/dist/types/components/Button/appearance/buttonDanger.d.ts +23 -2
  148. package/dist/types/components/Button/appearance/buttonError.d.ts +23 -2
  149. package/dist/types/components/Button/appearance/buttonExtra.d.ts +21 -2
  150. package/dist/types/components/Button/appearance/buttonInfo.d.ts +35 -2
  151. package/dist/types/components/Button/appearance/buttonShape.d.ts +20 -2
  152. package/dist/types/components/Button/appearance/buttonSize.d.ts +51 -2
  153. package/dist/types/components/Button/appearance/buttonSpecial.d.ts +21 -2
  154. package/dist/types/components/Button/appearance/buttonStyle.d.ts +13 -2
  155. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +23 -2
  156. package/dist/types/components/Button/appearance/buttonSurface.d.ts +51 -2
  157. package/dist/types/components/Button/appearance/buttonWarning.d.ts +23 -2
  158. package/dist/types/components/Cell/Cell.appearance.d.ts +117 -2
  159. package/dist/types/components/Cell/Cell.interface.d.ts +5 -2
  160. package/dist/types/components/Cell/appearance/cellSize.d.ts +58 -2
  161. package/dist/types/components/Cell/appearance/cellStyle.d.ts +13 -2
  162. package/dist/types/components/Cell/appearance/cellSurface.d.ts +50 -2
  163. package/dist/types/components/Checkbox/Checkbox.appearance.d.ts +109 -2
  164. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +6 -2
  165. package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +15 -2
  166. package/dist/types/components/Checkbox/appearance/checkboxDisabled.d.ts +15 -2
  167. package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +15 -2
  168. package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +15 -2
  169. package/dist/types/components/Checkbox/appearance/checkboxShape.d.ts +5 -2
  170. package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +22 -2
  171. package/dist/types/components/Checkbox/appearance/checkboxStyle.d.ts +21 -2
  172. package/dist/types/components/Checkbox/appearance/checkboxSuccess.d.ts +15 -2
  173. package/dist/types/components/Checkmark/Checkmark.appearance.d.ts +87 -2
  174. package/dist/types/components/Checkmark/Checkmark.interface.d.ts +5 -2
  175. package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +9 -2
  176. package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +9 -2
  177. package/dist/types/components/Checkmark/appearance/checkmarkError.d.ts +9 -2
  178. package/dist/types/components/Checkmark/appearance/checkmarkSize.d.ts +37 -2
  179. package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +13 -2
  180. package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +20 -2
  181. package/dist/types/components/Chips/Chips.appearance.d.ts +245 -2
  182. package/dist/types/components/Chips/Chips.interface.d.ts +6 -2
  183. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +23 -2
  184. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -2
  185. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +13 -2
  186. package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -2
  187. package/dist/types/components/Chips/appearance/chipsExtra.d.ts +16 -2
  188. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -2
  189. package/dist/types/components/Chips/appearance/chipsShape.d.ts +20 -2
  190. package/dist/types/components/Chips/appearance/chipsSize.d.ts +44 -2
  191. package/dist/types/components/Chips/appearance/chipsSpecial.d.ts +16 -2
  192. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +13 -2
  193. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -2
  194. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +44 -2
  195. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -2
  196. package/dist/types/components/Choice/Choice.appearance.d.ts +139 -2
  197. package/dist/types/components/Choice/Choice.interface.d.ts +6 -2
  198. package/dist/types/components/Choice/appearance/choiceDefault.d.ts +36 -2
  199. package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +17 -2
  200. package/dist/types/components/Choice/appearance/choiceError.d.ts +16 -2
  201. package/dist/types/components/Choice/appearance/choiceRequire.d.ts +17 -2
  202. package/dist/types/components/Choice/appearance/choiceShape.d.ts +20 -2
  203. package/dist/types/components/Choice/appearance/choiceSize.d.ts +17 -2
  204. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +13 -2
  205. package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +17 -2
  206. package/dist/types/components/Code/Code.appearance.d.ts +87 -2
  207. package/dist/types/components/Code/Code.interface.d.ts +6 -2
  208. package/dist/types/components/Code/appearance/codeDefault.d.ts +10 -2
  209. package/dist/types/components/Code/appearance/codeDisabled.d.ts +11 -2
  210. package/dist/types/components/Code/appearance/codeError.d.ts +11 -2
  211. package/dist/types/components/Code/appearance/codeRequire.d.ts +11 -2
  212. package/dist/types/components/Code/appearance/codeShape.d.ts +20 -2
  213. package/dist/types/components/Code/appearance/codeSize.d.ts +12 -2
  214. package/dist/types/components/Code/appearance/codeStyle.d.ts +15 -2
  215. package/dist/types/components/Code/appearance/codeSuccess.d.ts +11 -2
  216. package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +11 -2
  217. package/dist/types/components/CookiesWarning/appearance/cookiesWarningDefault.d.ts +11 -2
  218. package/dist/types/components/DatePeriod/DatePeriod.appearance.d.ts +65 -2
  219. package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +4 -2
  220. package/dist/types/components/DatePeriod/appearance/datePeriodShape.d.ts +30 -2
  221. package/dist/types/components/DatePeriod/appearance/datePeriodSize.d.ts +23 -2
  222. package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +16 -2
  223. package/dist/types/components/DatePeriod/stories/DatePeriodSize.stories.js +1 -10
  224. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +57 -2
  225. package/dist/types/components/DatePicker/DatePicker.interface.d.ts +5 -2
  226. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +29 -2
  227. package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +19 -2
  228. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +13 -2
  229. package/dist/types/components/Divider/Divider.appearance.d.ts +41 -2
  230. package/dist/types/components/Divider/appearance/dividerAccent.d.ts +5 -2
  231. package/dist/types/components/Divider/appearance/dividerError.d.ts +5 -2
  232. package/dist/types/components/Divider/appearance/dividerExtra.d.ts +5 -2
  233. package/dist/types/components/Divider/appearance/dividerSize.d.ts +11 -2
  234. package/dist/types/components/Divider/appearance/dividerSpecial.d.ts +5 -2
  235. package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +5 -2
  236. package/dist/types/components/Divider/appearance/dividerSurface.d.ts +14 -2
  237. package/dist/types/components/Divider/appearance/dividerWarning.d.ts +5 -2
  238. package/dist/types/components/Drawer/Drawer.appearance.d.ts +13 -2
  239. package/dist/types/components/Drawer/Drawer.interface.d.ts +4 -2
  240. package/dist/types/components/Drawer/Drawer.js +4 -10
  241. package/dist/types/components/Drawer/appearance/drawerSize.d.ts +7 -2
  242. package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +8 -2
  243. package/dist/types/components/Dropdown/Dropdown.appearance.d.ts +117 -2
  244. package/dist/types/components/Dropdown/Dropdown.interface.d.ts +6 -2
  245. package/dist/types/components/Dropdown/DropdownItem.appearance.d.ts +117 -2
  246. package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +23 -2
  247. package/dist/types/components/Dropdown/appearance/dropdownShape.d.ts +20 -2
  248. package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +38 -2
  249. package/dist/types/components/Dropdown/appearance/dropdownStyle.d.ts +13 -2
  250. package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +31 -2
  251. package/dist/types/components/Dropzone/Dropzone.appearance.d.ts +90 -2
  252. package/dist/types/components/Dropzone/Dropzone.d.ts +1 -1
  253. package/dist/types/components/Dropzone/Dropzone.interface.d.ts +4 -2
  254. package/dist/types/components/Dropzone/appearance/dropzoneDefault.d.ts +16 -2
  255. package/dist/types/components/Dropzone/appearance/dropzoneDisabled.d.ts +16 -2
  256. package/dist/types/components/Dropzone/appearance/dropzoneError.d.ts +16 -2
  257. package/dist/types/components/Dropzone/appearance/dropzoneRequire.d.ts +16 -2
  258. package/dist/types/components/Dropzone/appearance/dropzoneShape.d.ts +20 -2
  259. package/dist/types/components/Dropzone/appearance/dropzoneSuccess.d.ts +16 -2
  260. package/dist/types/components/Dropzone/stories/DropzoneDefault.stories.d.ts +1 -1
  261. package/dist/types/components/Dropzone/stories/DropzoneDemo.stories.d.ts +1 -1
  262. package/dist/types/components/Group/Group.appearance.d.ts +7 -2
  263. package/dist/types/components/Group/appearance/groupSurface.d.ts +7 -2
  264. package/dist/types/components/HeroTitle/HeroTitle.appearance.d.ts +20 -2
  265. package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +3 -1
  266. package/dist/types/components/HeroTitle/appearance/heroTitleSize.d.ts +20 -2
  267. package/dist/types/components/Icon/Icon.appearance.d.ts +297 -2
  268. package/dist/types/components/Icon/Icon.interface.d.ts +6 -2
  269. package/dist/types/components/Icon/appearance/iconAccent.d.ts +15 -2
  270. package/dist/types/components/Icon/appearance/iconDanger.d.ts +9 -2
  271. package/dist/types/components/Icon/appearance/iconDisabled.d.ts +8 -2
  272. package/dist/types/components/Icon/appearance/iconError.d.ts +9 -2
  273. package/dist/types/components/Icon/appearance/iconExtra.d.ts +9 -2
  274. package/dist/types/components/Icon/appearance/iconInfo.d.ts +14 -2
  275. package/dist/types/components/Icon/appearance/iconShape.d.ts +20 -2
  276. package/dist/types/components/Icon/appearance/iconSize.d.ts +170 -2
  277. package/dist/types/components/Icon/appearance/iconSpecial.d.ts +9 -2
  278. package/dist/types/components/Icon/appearance/iconStyle.d.ts +13 -2
  279. package/dist/types/components/Icon/appearance/iconSuccess.d.ts +9 -2
  280. package/dist/types/components/Icon/appearance/iconSurface.d.ts +27 -2
  281. package/dist/types/components/Icon/appearance/iconSurface.js +1 -1
  282. package/dist/types/components/Icon/appearance/iconWarning.d.ts +9 -2
  283. package/dist/types/components/Input/Input.appearance.d.ts +127 -2
  284. package/dist/types/components/Input/Input.interface.d.ts +6 -2
  285. package/dist/types/components/Input/appearance/inputDefault.d.ts +20 -2
  286. package/dist/types/components/Input/appearance/inputDisabled.d.ts +16 -2
  287. package/dist/types/components/Input/appearance/inputError.d.ts +17 -2
  288. package/dist/types/components/Input/appearance/inputRequire.d.ts +18 -2
  289. package/dist/types/components/Input/appearance/inputShape.d.ts +20 -2
  290. package/dist/types/components/Input/appearance/inputSize.d.ts +18 -2
  291. package/dist/types/components/Input/appearance/inputStyle.d.ts +15 -2
  292. package/dist/types/components/Input/appearance/inputSuccess.d.ts +17 -2
  293. package/dist/types/components/InputNumber/InputNumber.appearance.d.ts +101 -2
  294. package/dist/types/components/InputNumber/appearance/InputNumberShape.d.ts +20 -2
  295. package/dist/types/components/InputNumber/appearance/inputNumberDefault.d.ts +14 -2
  296. package/dist/types/components/InputNumber/appearance/inputNumberError.d.ts +14 -2
  297. package/dist/types/components/InputNumber/appearance/inputNumberRequire.d.ts +14 -2
  298. package/dist/types/components/InputNumber/appearance/inputNumberSize.d.ts +22 -2
  299. package/dist/types/components/InputNumber/appearance/inputNumberStyle.d.ts +15 -2
  300. package/dist/types/components/InputNumber/appearance/inputNumberSuccess.d.ts +14 -2
  301. package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +156 -2
  302. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +6 -2
  303. package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +22 -2
  304. package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +19 -2
  305. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +19 -2
  306. package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +19 -2
  307. package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +20 -2
  308. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +37 -2
  309. package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +15 -2
  310. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +19 -2
  311. package/dist/types/components/Label/Label.appearance.d.ts +239 -2
  312. package/dist/types/components/Label/Label.interface.d.ts +6 -2
  313. package/dist/types/components/Label/appearance/labelAccent.d.ts +20 -2
  314. package/dist/types/components/Label/appearance/labelDanger.d.ts +16 -2
  315. package/dist/types/components/Label/appearance/labelDisabled.d.ts +9 -2
  316. package/dist/types/components/Label/appearance/labelError.d.ts +16 -2
  317. package/dist/types/components/Label/appearance/labelExtra.d.ts +16 -2
  318. package/dist/types/components/Label/appearance/labelGradient.d.ts +9 -2
  319. package/dist/types/components/Label/appearance/labelInfo.d.ts +16 -2
  320. package/dist/types/components/Label/appearance/labelShape.d.ts +20 -2
  321. package/dist/types/components/Label/appearance/labelSize.d.ts +58 -2
  322. package/dist/types/components/Label/appearance/labelSpecial.d.ts +16 -2
  323. package/dist/types/components/Label/appearance/labelStyle.d.ts +13 -2
  324. package/dist/types/components/Label/appearance/labelSuccess.d.ts +16 -2
  325. package/dist/types/components/Label/appearance/labelSurface.d.ts +24 -2
  326. package/dist/types/components/Label/appearance/labelWarning.d.ts +16 -2
  327. package/dist/types/components/Link/Link.appearance.d.ts +168 -2
  328. package/dist/types/components/Link/Link.interface.d.ts +5 -2
  329. package/dist/types/components/Link/appearance/linkAccent.d.ts +14 -2
  330. package/dist/types/components/Link/appearance/linkDanger.d.ts +6 -2
  331. package/dist/types/components/Link/appearance/linkDisabled.d.ts +12 -2
  332. package/dist/types/components/Link/appearance/linkError.d.ts +8 -2
  333. package/dist/types/components/Link/appearance/linkExtra.d.ts +7 -2
  334. package/dist/types/components/Link/appearance/linkInfo.d.ts +16 -2
  335. package/dist/types/components/Link/appearance/linkRequire.d.ts +11 -2
  336. package/dist/types/components/Link/appearance/linkSize.d.ts +58 -2
  337. package/dist/types/components/Link/appearance/linkSpecial.d.ts +7 -2
  338. package/dist/types/components/Link/appearance/linkStyle.d.ts +15 -2
  339. package/dist/types/components/Link/appearance/linkSuccess.d.ts +8 -2
  340. package/dist/types/components/Link/appearance/linkSurface.d.ts +22 -2
  341. package/dist/types/components/Link/appearance/linkWarning.d.ts +8 -2
  342. package/dist/types/components/List/List.appearance.d.ts +91 -2
  343. package/dist/types/components/List/List.interface.d.ts +5 -2
  344. package/dist/types/components/List/appearance/listAccent.d.ts +7 -2
  345. package/dist/types/components/List/appearance/listDanger.d.ts +6 -2
  346. package/dist/types/components/List/appearance/listError.d.ts +6 -2
  347. package/dist/types/components/List/appearance/listExtra.d.ts +6 -2
  348. package/dist/types/components/List/appearance/listInfo.d.ts +12 -2
  349. package/dist/types/components/List/appearance/listSize.d.ts +23 -2
  350. package/dist/types/components/List/appearance/listSpecial.d.ts +6 -2
  351. package/dist/types/components/List/appearance/listStyle.d.ts +15 -2
  352. package/dist/types/components/List/appearance/listSuccess.d.ts +6 -2
  353. package/dist/types/components/List/appearance/listSurface.d.ts +18 -2
  354. package/dist/types/components/List/appearance/listWarning.d.ts +6 -2
  355. package/dist/types/components/Loader/Loader.appearance.d.ts +85 -2
  356. package/dist/types/components/Loader/Loader.interface.d.ts +5 -2
  357. package/dist/types/components/Loader/appearance/loaderAccent.d.ts +12 -2
  358. package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -2
  359. package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -2
  360. package/dist/types/components/Loader/appearance/loaderExtra.d.ts +7 -2
  361. package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -2
  362. package/dist/types/components/Loader/appearance/loaderSize.d.ts +14 -2
  363. package/dist/types/components/Loader/appearance/loaderSpecial.d.ts +7 -2
  364. package/dist/types/components/Loader/appearance/loaderStyle.d.ts +13 -2
  365. package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -2
  366. package/dist/types/components/Loader/appearance/loaderSurface.d.ts +17 -2
  367. package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -2
  368. package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +157 -2
  369. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +5 -2
  370. package/dist/types/components/MenuItem/MenuItem.js +2 -2
  371. package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +26 -2
  372. package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +18 -2
  373. package/dist/types/components/MenuItem/appearance/menuItemShape.d.ts +20 -2
  374. package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +46 -2
  375. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +13 -2
  376. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +44 -2
  377. package/dist/types/components/Modal/Modal.appearance.d.ts +60 -2
  378. package/dist/types/components/Modal/Modal.interface.d.ts +6 -2
  379. package/dist/types/components/Modal/Modal.js +0 -1
  380. package/dist/types/components/Modal/appearance/modalShape.d.ts +20 -2
  381. package/dist/types/components/Modal/appearance/modalSize.d.ts +26 -2
  382. package/dist/types/components/Modal/appearance/modalStyle.d.ts +13 -2
  383. package/dist/types/components/Modal/appearance/modalSurface.d.ts +7 -2
  384. package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +8 -2
  385. package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +3 -1
  386. package/dist/types/components/ModalSheetBottom/appearance/modalSheetBottomSize.d.ts +8 -2
  387. package/dist/types/components/Notification/Notification.appearance.d.ts +105 -2
  388. package/dist/types/components/Notification/Notification.interface.d.ts +6 -2
  389. package/dist/types/components/Notification/appearance/notificationDefault.d.ts +14 -2
  390. package/dist/types/components/Notification/appearance/notificationError.d.ts +14 -2
  391. package/dist/types/components/Notification/appearance/notificationInfo.d.ts +14 -2
  392. package/dist/types/components/Notification/appearance/notificationShape.d.ts +20 -2
  393. package/dist/types/components/Notification/appearance/notificationSize.d.ts +16 -2
  394. package/dist/types/components/Notification/appearance/notificationStyle.d.ts +13 -2
  395. package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +14 -2
  396. package/dist/types/components/Notification/appearance/notificationWarning.d.ts +14 -2
  397. package/dist/types/components/Overlay/Overlay.appearance.d.ts +10 -2
  398. package/dist/types/components/Overlay/appearance/overlayDefault.d.ts +10 -2
  399. package/dist/types/components/Pagination/Pagination.appearance.d.ts +162 -2
  400. package/dist/types/components/Pagination/Pagination.interface.d.ts +6 -2
  401. package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +37 -2
  402. package/dist/types/components/Pagination/appearance/paginationShape.d.ts +25 -2
  403. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +61 -2
  404. package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +13 -2
  405. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +34 -2
  406. package/dist/types/components/Radio/Radio.appearance.d.ts +114 -2
  407. package/dist/types/components/Radio/Radio.interface.d.ts +6 -2
  408. package/dist/types/components/Radio/appearance/radioDefault.d.ts +16 -2
  409. package/dist/types/components/Radio/appearance/radioDisabled.d.ts +13 -2
  410. package/dist/types/components/Radio/appearance/radioError.d.ts +13 -2
  411. package/dist/types/components/Radio/appearance/radioRequire.d.ts +13 -2
  412. package/dist/types/components/Radio/appearance/radioShape.d.ts +20 -2
  413. package/dist/types/components/Radio/appearance/radioSize.d.ts +17 -2
  414. package/dist/types/components/Radio/appearance/radioStyle.d.ts +23 -2
  415. package/dist/types/components/Radio/appearance/radioSuccess.d.ts +13 -2
  416. package/dist/types/components/Response/Response.appearance.d.ts +123 -2
  417. package/dist/types/components/Response/Response.interface.d.ts +4 -2
  418. package/dist/types/components/Response/appearance/responseConfirm.d.ts +13 -2
  419. package/dist/types/components/Response/appearance/responseDanger.d.ts +13 -2
  420. package/dist/types/components/Response/appearance/responseEmpty.d.ts +13 -2
  421. package/dist/types/components/Response/appearance/responseError.d.ts +13 -2
  422. package/dist/types/components/Response/appearance/responseFail.d.ts +13 -2
  423. package/dist/types/components/Response/appearance/responseNothingFound.d.ts +13 -2
  424. package/dist/types/components/Response/appearance/responseRefresh.d.ts +13 -2
  425. package/dist/types/components/Response/appearance/responseStyle.d.ts +13 -2
  426. package/dist/types/components/Response/appearance/responseSuccess.d.ts +13 -2
  427. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -2
  428. package/dist/types/components/Response/appearance/responseWarning.d.ts +13 -2
  429. package/dist/types/components/Search/Search.appearance.d.ts +135 -2
  430. package/dist/types/components/Search/Search.interface.d.ts +6 -2
  431. package/dist/types/components/Search/appearance/searchDefault.d.ts +22 -2
  432. package/dist/types/components/Search/appearance/searchDefault.js +2 -2
  433. package/dist/types/components/Search/appearance/searchDisabled.d.ts +12 -2
  434. package/dist/types/components/Search/appearance/searchError.d.ts +12 -2
  435. package/dist/types/components/Search/appearance/searchRequire.d.ts +12 -2
  436. package/dist/types/components/Search/appearance/searchShape.d.ts +20 -2
  437. package/dist/types/components/Search/appearance/searchSize.d.ts +44 -2
  438. package/dist/types/components/Search/appearance/searchStyle.d.ts +16 -2
  439. package/dist/types/components/Search/appearance/searchSuccess.d.ts +11 -2
  440. package/dist/types/components/Segmented/Segmented.appearance.d.ts +126 -2
  441. package/dist/types/components/Segmented/Segmented.interface.d.ts +6 -2
  442. package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +28 -2
  443. package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +11 -2
  444. package/dist/types/components/Segmented/appearance/segmentedError.d.ts +13 -2
  445. package/dist/types/components/Segmented/appearance/segmentedRequire.d.ts +14 -2
  446. package/dist/types/components/Segmented/appearance/segmentedShape.d.ts +20 -2
  447. package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +27 -2
  448. package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +15 -2
  449. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +12 -2
  450. package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +13 -2
  451. package/dist/types/components/Select/Select.appearance.d.ts +309 -2
  452. package/dist/types/components/Select/Select.interface.d.ts +6 -2
  453. package/dist/types/components/Select/appearance/selectDefault.d.ts +36 -2
  454. package/dist/types/components/Select/appearance/selectDisabled.d.ts +27 -2
  455. package/dist/types/components/Select/appearance/selectError.d.ts +36 -2
  456. package/dist/types/components/Select/appearance/selectRequire.d.ts +36 -2
  457. package/dist/types/components/Select/appearance/selectShape.d.ts +22 -2
  458. package/dist/types/components/Select/appearance/selectSize.d.ts +114 -2
  459. package/dist/types/components/Select/appearance/selectStyle.d.ts +16 -2
  460. package/dist/types/components/Select/appearance/selectSuccess.d.ts +36 -2
  461. package/dist/types/components/Switch/Switch.appearance.d.ts +70 -2
  462. package/dist/types/components/Switch/Switch.interface.d.ts +5 -2
  463. package/dist/types/components/Switch/appearance/switchDefault.d.ts +10 -2
  464. package/dist/types/components/Switch/appearance/switchDisabled.d.ts +10 -2
  465. package/dist/types/components/Switch/appearance/switchError.d.ts +10 -2
  466. package/dist/types/components/Switch/appearance/switchRequire.d.ts +10 -2
  467. package/dist/types/components/Switch/appearance/switchSize.d.ts +17 -2
  468. package/dist/types/components/Switch/appearance/switchStyle.d.ts +15 -2
  469. package/dist/types/components/Switch/appearance/switchSuccess.d.ts +10 -2
  470. package/dist/types/components/Tab/Tab.appearance.d.ts +147 -2
  471. package/dist/types/components/Tab/Tab.interface.d.ts +5 -2
  472. package/dist/types/components/Tab/appearance/tabError.d.ts +12 -2
  473. package/dist/types/components/Tab/appearance/tabSize.d.ts +43 -2
  474. package/dist/types/components/Tab/appearance/tabStyle.d.ts +16 -2
  475. package/dist/types/components/Tab/appearance/tabSuccess.d.ts +12 -2
  476. package/dist/types/components/Tab/appearance/tabSurface.d.ts +63 -2
  477. package/dist/types/components/Tab/appearance/tabWarning.d.ts +11 -2
  478. package/dist/types/components/Text/Text.appearance.d.ts +23 -2
  479. package/dist/types/components/Text/Text.interface.d.ts +3 -1
  480. package/dist/types/components/Text/appearance/textSize.d.ts +23 -2
  481. package/dist/types/components/Textarea/Textarea.appearance.d.ts +140 -2
  482. package/dist/types/components/Textarea/Textarea.interface.d.ts +6 -2
  483. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +32 -2
  484. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +17 -2
  485. package/dist/types/components/Textarea/appearance/textareaError.d.ts +17 -2
  486. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +17 -2
  487. package/dist/types/components/Textarea/appearance/textareaShape.d.ts +20 -2
  488. package/dist/types/components/Textarea/appearance/textareaSize.d.ts +18 -2
  489. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +15 -2
  490. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +18 -2
  491. package/dist/types/components/Tile/Tile.appearance.d.ts +111 -2
  492. package/dist/types/components/Tile/Tile.interface.d.ts +6 -2
  493. package/dist/types/components/Tile/appearance/tileShape.d.ts +20 -2
  494. package/dist/types/components/Tile/appearance/tileSize.d.ts +50 -2
  495. package/dist/types/components/Tile/appearance/tileStyle.d.ts +13 -2
  496. package/dist/types/components/Tile/appearance/tileSurface.d.ts +34 -2
  497. package/dist/types/components/Title/Title.appearance.d.ts +139 -2
  498. package/dist/types/components/Title/Title.interface.d.ts +5 -2
  499. package/dist/types/components/Title/appearance/titleAccent.d.ts +10 -2
  500. package/dist/types/components/Title/appearance/titleDanger.d.ts +6 -2
  501. package/dist/types/components/Title/appearance/titleDisabled.d.ts +15 -2
  502. package/dist/types/components/Title/appearance/titleError.d.ts +8 -2
  503. package/dist/types/components/Title/appearance/titleExtra.d.ts +7 -2
  504. package/dist/types/components/Title/appearance/titleInfo.d.ts +10 -2
  505. package/dist/types/components/Title/appearance/titleRequire.d.ts +15 -2
  506. package/dist/types/components/Title/appearance/titleSize.d.ts +44 -2
  507. package/dist/types/components/Title/appearance/titleSpecial.d.ts +6 -2
  508. package/dist/types/components/Title/appearance/titleStyle.d.ts +10 -2
  509. package/dist/types/components/Title/appearance/titleSuccess.d.ts +6 -2
  510. package/dist/types/components/Title/appearance/titleSurface.d.ts +18 -2
  511. package/dist/types/components/Title/appearance/titleWarning.d.ts +8 -2
  512. package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +80 -2
  513. package/dist/types/components/Tooltip/Tooltip.interface.d.ts +6 -2
  514. package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +9 -2
  515. package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +8 -2
  516. package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +9 -2
  517. package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +9 -2
  518. package/dist/types/components/Tooltip/appearance/tooltipShape.d.ts +20 -2
  519. package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +17 -2
  520. package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +13 -2
  521. package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +9 -2
  522. package/dist/types/components/Warning/Warning.appearance.d.ts +119 -2
  523. package/dist/types/components/Warning/Warning.interface.d.ts +6 -2
  524. package/dist/types/components/Warning/appearance/warningAccent.d.ts +22 -2
  525. package/dist/types/components/Warning/appearance/warningError.d.ts +22 -2
  526. package/dist/types/components/Warning/appearance/warningInfo.d.ts +22 -2
  527. package/dist/types/components/Warning/appearance/warningShape.d.ts +20 -2
  528. package/dist/types/components/Warning/appearance/warningSize.d.ts +10 -2
  529. package/dist/types/components/Warning/appearance/warningStyle.d.ts +13 -2
  530. package/dist/types/components/Warning/appearance/warningWarning.d.ts +22 -2
  531. package/package.json +20 -20
@@ -1 +1 @@
1
- import{jsx as e,jsxs as i}from"react/jsx-runtime";import r from"clsx";import{useAppearanceConfig as a,useDevicePropsGenerator as t,useStyles as o}from"@itcase/ui-core/hooks";import{mergeAppearanceKeys as c}from"@itcase/ui-core/utils";import{T as l,a as s,B as n,I as d}from"../primitives_es_BRduTiVl.js";import"@rc-component/tooltip";import"react";import"react-inlinesvg";import"@itcase/ui-core/hoc";const p={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},sizeXL:{size:"xl",titleTextSize:"h4",descTextSize:"l",badgeAppearanceSize:"sizeM",iconFillSize:"32",iconSize:"24"},sizeL:{size:"l",titleTextSize:"h4",descTextSize:"l",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeM:{size:"m",titleTextSize:"h4",descTextSize:"m",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeS:{size:"s",titleTextSize:"h4",descTextSize:"s",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeXS:{size:"xs",titleTextSize:"h6",descTextSize:"xs",badgeAppearanceSize:"sizeXXS",iconFillSize:"12",iconSize:"12"},sizeXXS:{size:"xxs",titleTextSize:"h6",descTextSize:"xs",badgeAppearanceSize:"sizeXXS",iconFillSize:"12",iconSize:"12"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},surfacePrimary:{fill:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceSecondary:{fill:"surfaceSecondary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceTertiary:{fill:"surfaceTertiary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"}},z={appearance:p,setAppearance:e=>{z.appearance=e}};function x(p){const{appearance:x,className:S,dataTestId:m,dataTour:T,type:u,title:f,desc:h,badgeValue:C,iconClick:_,before:b,after:y,isSkeleton:g,onClick:A,children:P}=p,v=a(x,z),$=t(p,v),{directionClass:F,alignClass:N,alignDirectionClass:X,fillClass:k,titleTextAlign:W,titleTextColor:M,titleTextSize:B,titleTextWeight:w,titleTextWrap:I,descTextColor:L,descTextSize:j,descTextWrap:Q,borderColorClass:D,borderColorHoverClass:H,borderTypeClass:V,borderWidthClass:q,badgeAppearance:E,badgeAppearanceSize:G,badgeShape:J,badgeSize:K,badgeTextColor:O,badgeTextSize:R,icon:U,iconAppearance:Y,iconFill:Z,iconFillIcon:ee,iconFillSize:ie,iconShape:re,iconSize:ae,iconSrc:te,shapeClass:oe,sizeClass:ce,widthClass:le}=$,{styles:se}=o(p);return e("div",{className:r("tile",S,k&&`fill_${k}`,oe&&`shape_${oe}`,N&&`align_${N}`,F&&`direction_${F}`,D&&`border-color_${D}`,H&&`border-color_hover_${H}`,q&&`border-width_${q}`,V&&`border_type_${V}`,ce&&`tile_size_${ce}`,u&&`tile_type_${u}`,C&&"tile_state_badge",le&&`width_${le}`,g&&"skeleton"),"data-testid":m,"data-tour":T,style:se,onClick:A,children:i("div",{className:r("tile__wrapper",N,X),children:[b,i("div",{className:"tile__header",children:[i("div",{className:"tile__header-inner",children:[f&&e(l,{className:"tile__title",size:B,textAlign:W,textColor:M,textWeight:w,textWrap:I,children:f}),h&&e(s,{className:"tile__text",size:j,textColor:L,textWrap:Q,children:h})]}),i("div",{className:"tile__header-actions",children:[C&&e(n,{appearance:c(E,G),className:"tile__badge",size:K,textColor:O,textSize:R,shape:J,value:C}),(U||te)&&e(d,{appearance:Y,className:"tile__icon",fill:Z,fillSize:ie,iconFill:ee,iconSize:ae,imageSrc:te,shape:re,SvgImage:U,onClick:_})]})]}),P,y]})})}export{x as Tile,p as tileAppearance,z as tileConfig};
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import r from"clsx";import{useAppearanceConfig as a,useDevicePropsGenerator as t,useStyles as o}from"@itcase/ui-core/hooks";import{mergeAppearanceKeys as c}from"@itcase/ui-core/utils";import{T as l,a as s,B as n,I as d}from"../primitives_es_1Ei6qOpa.js";import"@rc-component/tooltip";import"react";import"react-inlinesvg";import"@itcase/ui-core/hoc";const p={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},sizeXL:{size:"xl",titleTextSize:"h4",descTextSize:"l",badgeAppearanceSize:"sizeM",iconFillSize:"32",iconSize:"24"},sizeL:{size:"l",titleTextSize:"h4",descTextSize:"l",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeM:{size:"m",titleTextSize:"h4",descTextSize:"m",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeS:{size:"s",titleTextSize:"h4",descTextSize:"s",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeXS:{size:"xs",titleTextSize:"h6",descTextSize:"xs",badgeAppearanceSize:"sizeXXS",iconFillSize:"12",iconSize:"12"},sizeXXS:{size:"xxs",titleTextSize:"h6",descTextSize:"xs",badgeAppearanceSize:"sizeXXS",iconFillSize:"12",iconSize:"12"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},surfacePrimary:{fill:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceSecondary:{fill:"surfaceSecondary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceTertiary:{fill:"surfaceTertiary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"}},z={appearance:p,setAppearance:e=>{z.appearance=e}};function x(p){const{appearance:x,className:S,dataTestId:m,dataTour:T,type:u,title:f,desc:h,badgeValue:C,iconClick:_,before:b,after:y,isSkeleton:g,onClick:A,children:P}=p,v=a(x,z),$=t(p,v),{directionClass:F,alignClass:N,alignDirectionClass:X,fillClass:k,titleTextAlign:W,titleTextColor:M,titleTextSize:B,titleTextWeight:w,titleTextWrap:I,descTextColor:L,descTextSize:j,descTextWrap:Q,borderColorClass:D,borderColorHoverClass:H,borderTypeClass:V,borderWidthClass:q,badgeAppearance:E,badgeAppearanceSize:G,badgeShape:J,badgeSize:K,badgeTextColor:O,badgeTextSize:R,icon:U,iconAppearance:Y,iconFill:Z,iconFillIcon:ee,iconFillSize:ie,iconShape:re,iconSize:ae,iconSrc:te,shapeClass:oe,sizeClass:ce,widthClass:le}=$,{styles:se}=o(p);return e("div",{className:r("tile",S,k&&`fill_${k}`,oe&&`shape_${oe}`,N&&`align_${N}`,F&&`direction_${F}`,D&&`border-color_${D}`,H&&`border-color_hover_${H}`,q&&`border-width_${q}`,V&&`border_type_${V}`,ce&&`tile_size_${ce}`,u&&`tile_type_${u}`,C&&"tile_state_badge",le&&`width_${le}`,g&&"skeleton"),"data-testid":m,"data-tour":T,style:se,onClick:A,children:i("div",{className:r("tile__wrapper",N,X),children:[b,i("div",{className:"tile__header",children:[i("div",{className:"tile__header-inner",children:[f&&e(l,{className:"tile__title",size:B,textAlign:W,textColor:M,textWeight:w,textWrap:I,children:f}),h&&e(s,{className:"tile__text",size:j,textColor:L,textWrap:Q,children:h})]}),i("div",{className:"tile__header-actions",children:[C&&e(n,{appearance:c(E,G),className:"tile__badge",size:K,textColor:O,textSize:R,shape:J,value:C}),(U||te)&&e(d,{appearance:Y,className:"tile__icon",fill:Z,fillSize:ie,iconFill:ee,iconSize:ae,imageSrc:te,shape:re,SvgImage:U,onClick:_})]})]}),P,y]})})}export{x as Tile,p as tileAppearance,z as tileConfig};
@@ -1 +1 @@
1
- export{T as Title,k as titleAppearance,m as titleConfig}from"../primitives_es_BRduTiVl.js";import"react/jsx-runtime";import"@rc-component/tooltip";import"react";import"clsx";import"@itcase/ui-core/hooks";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";
1
+ export{T as Title,k as titleAppearance,m as titleConfig}from"../primitives_es_1Ei6qOpa.js";import"react/jsx-runtime";import"@rc-component/tooltip";import"react";import"clsx";import"@itcase/ui-core/hooks";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";
@@ -1 +1 @@
1
- export{f as Tooltip,d as TooltipWrapper,n as tooltipAppearance,o as tooltipConfig}from"../primitives_es_BRduTiVl.js";import"react/jsx-runtime";import"@rc-component/tooltip";import"react";import"clsx";import"@itcase/ui-core/hooks";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";
1
+ export{f as Tooltip,d as TooltipWrapper,n as tooltipAppearance,o as tooltipConfig}from"../primitives_es_1Ei6qOpa.js";import"react/jsx-runtime";import"@rc-component/tooltip";import"react";import"clsx";import"@itcase/ui-core/hooks";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";
@@ -1 +1 @@
1
- import{jsx as r,jsxs as e}from"react/jsx-runtime";import{useState as o,Fragment as i}from"react";import n from"clsx";import{useAppearanceConfig as t,useDevicePropsGenerator as l,useStyles as a}from"@itcase/ui-core/hooks";import{I as c,a as d}from"../primitives_es_BRduTiVl.js";import{b as f}from"../default_es_l85QutMi.js";import"@rc-component/tooltip";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";const s={accentMutedPrimary:{fill:"accentTertiary",labelTextColor:"accentTextQuaternary",descriptionTextColor:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"accentItemQuaternary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"accentItemQuaternary"},accentPrimary:{fill:"accentPrimary",labelTextColor:"accentTextPrimary",descriptionTextColor:"accentTextPrimary",borderColor:"accentBorderQuaternary",iconAfter:f.Action.Close,iconAfterFillIcon:"accentItemPrimary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"accentItemPrimary"}},m={errorMutedPrimary:{fill:"errorTertiary",labelTextColor:"errorTextQuaternary",descriptionTextColor:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"errorItemQuaternary",iconBefore:f.Action.Block,iconBeforeFillIcon:"errorItemQuaternary"},errorPrimary:{fill:"errorPrimary",labelTextColor:"errorTextPrimary",descriptionTextColor:"errorTextPrimary",borderColor:"errorBorderQuaternary",iconAfter:f.Action.Close,iconAfterFillIcon:"errorItemPrimary",iconBefore:f.Action.Block,iconBeforeFillIcon:"errorItemPrimary"}},y={infoMutedPrimary:{fill:"infoTertiary",labelTextColor:"infoTextSecondary",descriptionTextColor:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"infoItemQuaternary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"infoItemQuaternary"},infoPrimary:{fill:"infoPrimary",labelTextColor:"infoTextPrimary",descriptionTextColor:"infoTextPrimary",borderColor:"infoBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"infoItemPrimary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"infoItemPrimary"}},T={...s,...{warningMutedPrimary:{fill:"warningTertiary",labelTextColor:"warningTextSecondary",descriptionTextColor:"warningTextSecondary",borderColor:"warningBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"warningItemSecondary",iconBefore:f.Alert.WarningTriangle,iconBeforeFillIcon:"warningItemSecondary"},warningPrimary:{fill:"warningPrimary",labelTextColor:"warningTextPrimary",descriptionTextColor:"warningTextPrimary",borderColor:"warningBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"warningItemPrimary",iconBefore:f.Alert.WarningTriangle,iconBeforeFillIcon:"warningItemPrimary"}},...m,...y,solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},sizeL:{size:"l",labelTextSize:"s",labelTextWeight:"600",descriptionTextSize:"s",iconAfterSize:"16",iconBeforeSize:"16"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},x={appearance:T,setAppearance:r=>{x.appearance=r}};function C(f){const{appearance:s,className:m,dataTestId:y,dataTour:T,label:C,description:p,isSkeleton:u,children:A}=f,I=t(s,x),g=l(f,I),{fillClass:B,labelTextColor:S,labelTextSize:P,labelTextWeight:b,descriptionTextColor:F,descriptionTextSize:h,borderColorClass:w,iconAfter:z,iconAfterFill:Q,iconAfterFillIcon:_,iconAfterSize:W,iconAfterSrc:k,iconBefore:v,iconBeforeFill:M,iconBeforeFillIcon:$,iconBeforeSize:j,iconBeforeSrc:L,shapeClass:N,sizeClass:X}=g,{styles:q}=a(f),[D,E]=o(!0);return r(i,{children:D&&e("div",{className:n(m,"warning",B&&`fill_${B}`,X&&`warning_size_${X}`,w&&`border-color_${w}`,N&&`shape_${N}`,u&&"skeleton"),"data-testid":y,"data-tour":T,style:q,children:[(v||L)&&r(c,{fill:M,iconFill:$,iconSize:j,imageSrc:L,SvgImage:v}),e("div",{className:"warning__content",children:[C&&r(d,{size:P,textColor:S,textWeight:b,children:C}),p&&r(d,{size:h,textColor:F,children:p}),A]}),(z||k)&&r(c,{fill:Q,iconFill:_,iconSize:W,imageSrc:k,SvgImage:z,onClick:()=>E(!1)})]})})}export{C as Warning,T as warningAppearance,x as warningConfig};
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";import{useState as o,Fragment as i}from"react";import n from"clsx";import{useAppearanceConfig as t,useDevicePropsGenerator as l,useStyles as a}from"@itcase/ui-core/hooks";import{I as c,a as d}from"../primitives_es_1Ei6qOpa.js";import{b as f}from"../default_es_l85QutMi.js";import"@rc-component/tooltip";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";const s={accentMutedPrimary:{fill:"accentTertiary",labelTextColor:"accentTextQuaternary",descriptionTextColor:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"accentItemQuaternary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"accentItemQuaternary"},accentPrimary:{fill:"accentPrimary",labelTextColor:"accentTextPrimary",descriptionTextColor:"accentTextPrimary",borderColor:"accentBorderQuaternary",iconAfter:f.Action.Close,iconAfterFillIcon:"accentItemPrimary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"accentItemPrimary"}},m={errorMutedPrimary:{fill:"errorTertiary",labelTextColor:"errorTextQuaternary",descriptionTextColor:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"errorItemQuaternary",iconBefore:f.Action.Block,iconBeforeFillIcon:"errorItemQuaternary"},errorPrimary:{fill:"errorPrimary",labelTextColor:"errorTextPrimary",descriptionTextColor:"errorTextPrimary",borderColor:"errorBorderQuaternary",iconAfter:f.Action.Close,iconAfterFillIcon:"errorItemPrimary",iconBefore:f.Action.Block,iconBeforeFillIcon:"errorItemPrimary"}},y={infoMutedPrimary:{fill:"infoTertiary",labelTextColor:"infoTextSecondary",descriptionTextColor:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"infoItemQuaternary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"infoItemQuaternary"},infoPrimary:{fill:"infoPrimary",labelTextColor:"infoTextPrimary",descriptionTextColor:"infoTextPrimary",borderColor:"infoBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"infoItemPrimary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"infoItemPrimary"}},T={...s,...{warningMutedPrimary:{fill:"warningTertiary",labelTextColor:"warningTextSecondary",descriptionTextColor:"warningTextSecondary",borderColor:"warningBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"warningItemSecondary",iconBefore:f.Alert.WarningTriangle,iconBeforeFillIcon:"warningItemSecondary"},warningPrimary:{fill:"warningPrimary",labelTextColor:"warningTextPrimary",descriptionTextColor:"warningTextPrimary",borderColor:"warningBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"warningItemPrimary",iconBefore:f.Alert.WarningTriangle,iconBeforeFillIcon:"warningItemPrimary"}},...m,...y,solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},sizeL:{size:"l",labelTextSize:"s",labelTextWeight:"600",descriptionTextSize:"s",iconAfterSize:"16",iconBeforeSize:"16"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},x={appearance:T,setAppearance:r=>{x.appearance=r}};function C(f){const{appearance:s,className:m,dataTestId:y,dataTour:T,label:C,description:p,isSkeleton:u,children:A}=f,I=t(s,x),g=l(f,I),{fillClass:B,labelTextColor:S,labelTextSize:P,labelTextWeight:b,descriptionTextColor:F,descriptionTextSize:h,borderColorClass:w,iconAfter:z,iconAfterFill:Q,iconAfterFillIcon:_,iconAfterSize:W,iconAfterSrc:k,iconBefore:v,iconBeforeFill:M,iconBeforeFillIcon:$,iconBeforeSize:j,iconBeforeSrc:L,shapeClass:N,sizeClass:X}=g,{styles:q}=a(f),[D,E]=o(!0);return r(i,{children:D&&e("div",{className:n(m,"warning",B&&`fill_${B}`,X&&`warning_size_${X}`,w&&`border-color_${w}`,N&&`shape_${N}`,u&&"skeleton"),"data-testid":y,"data-tour":T,style:q,children:[(v||L)&&r(c,{fill:M,iconFill:$,iconSize:j,imageSrc:L,SvgImage:v}),e("div",{className:"warning__content",children:[C&&r(d,{size:P,textColor:S,textWeight:b,children:C}),p&&r(d,{size:h,textColor:F,children:p}),A]}),(z||k)&&r(c,{fill:Q,iconFill:_,iconSize:W,imageSrc:k,SvgImage:z,onClick:()=>E(!1)})]})})}export{C as Warning,T as warningAppearance,x as warningConfig};
@@ -45158,6 +45158,9 @@ textarea.fill {
45158
45158
  &_900 {
45159
45159
  font-weight: 900;
45160
45160
  }
45161
+ &_950 {
45162
+ font-weight: 950;
45163
+ }
45161
45164
  &_thin {
45162
45165
  font-weight: 100;
45163
45166
  }
@@ -45185,6 +45188,9 @@ textarea.fill {
45185
45188
  &_black {
45186
45189
  font-weight: 900;
45187
45190
  }
45191
+ &_heavy {
45192
+ font-weight: 950;
45193
+ }
45188
45194
  }
45189
45195
  }
45190
45196
  .title.text,
@@ -45227,6 +45233,9 @@ textarea.fill {
45227
45233
  &_900 {
45228
45234
  font-weight: 900;
45229
45235
  }
45236
+ &_950 {
45237
+ font-weight: 950;
45238
+ }
45230
45239
  &_thin {
45231
45240
  font-weight: 100;
45232
45241
  }
@@ -45254,6 +45263,9 @@ textarea.fill {
45254
45263
  &_black {
45255
45264
  font-weight: 900;
45256
45265
  }
45266
+ &_heavy {
45267
+ font-weight: 950;
45268
+ }
45257
45269
  }
45258
45270
  }
45259
45271
  .title.text,
@@ -45296,6 +45308,9 @@ textarea.fill {
45296
45308
  &_900 {
45297
45309
  font-weight: 900;
45298
45310
  }
45311
+ &_950 {
45312
+ font-weight: 950;
45313
+ }
45299
45314
  &_thin {
45300
45315
  font-weight: 100;
45301
45316
  }
@@ -45323,6 +45338,9 @@ textarea.fill {
45323
45338
  &_black {
45324
45339
  font-weight: 900;
45325
45340
  }
45341
+ &_heavy {
45342
+ font-weight: 950;
45343
+ }
45326
45344
  }
45327
45345
  }
45328
45346
  .width {
@@ -47094,7 +47112,6 @@ div.avatar-stack {
47094
47112
  }
47095
47113
  .button {
47096
47114
  text-decoration: none;
47097
- background: none;
47098
47115
  padding: 0;
47099
47116
  margin: 0;
47100
47117
  border: solid 0 #fff;
@@ -47694,7 +47711,7 @@ div.avatar-stack {
47694
47711
  --button-xl-gap: 0.5m;
47695
47712
  --button-xl-padding: 1m 1m;
47696
47713
  --button-xl-min-width: 40px;
47697
- --button-xl-min-height: 40px;
47714
+ --button-xl-min-height: 38px;
47698
47715
 
47699
47716
  /* Size L */
47700
47717
  --button-l-gap: 0.5m;
@@ -47704,8 +47721,8 @@ div.avatar-stack {
47704
47721
 
47705
47722
  /* Size M */
47706
47723
  --button-m-gap: 0.5m;
47707
- --button-m-padding: 0.25m 0.5m;
47708
- --button-m-min-width: 28px;
47724
+ --button-m-padding: 0.5m 0.5m;
47725
+ --button-m-min-width: 30px;
47709
47726
  --button-m-min-height: 28px;
47710
47727
 
47711
47728
  /* Size S */
@@ -79952,8 +79969,8 @@ div.label {
79952
79969
  align-items: center;
79953
79970
  align-content: center;
79954
79971
  &__wrapper {
79955
- display: flex;
79956
79972
  width: 100%;
79973
+ display: flex;
79957
79974
  }
79958
79975
  &__icon_before {
79959
79976
  height: 100%;
@@ -97472,27 +97489,27 @@ div.label {
97472
97489
  }
97473
97490
  }
97474
97491
  :root {
97475
- --search-input-xxl-padding: 16px 12px;
97492
+ --search-input-xxl-padding: 0 12px;
97476
97493
  --search-input-xxl-gap: 4px;
97477
97494
  --search-input-xxl-min-height: 62px;
97478
97495
 
97479
- --search-input-xl-padding: 16px 12px;
97496
+ --search-input-xl-padding: 0 12px;
97480
97497
  --search-input-xl-gap: 4px;
97481
97498
  --search-input-xl-min-height: 56px;
97482
97499
 
97483
- --search-input-l-padding: 12px;
97500
+ --search-input-l-padding: 0 12px;
97484
97501
  --search-input-l-gap: 4px;
97485
97502
  --search-input-l-min-height: 48px;
97486
97503
 
97487
- --search-input-m-padding: 8px;
97504
+ --search-input-m-padding: 0 8px;
97488
97505
  --search-input-m-gap: 4px;
97489
97506
  --search-input-m-min-height: 40px;
97490
97507
 
97491
- --search-input-s-padding: 2px 8px;
97508
+ --search-input-s-padding: 0 8px;
97492
97509
  --search-input-s-gap: 4px;
97493
97510
  --search-input-s-min-height: 28px;
97494
97511
 
97495
- --search-input-xs-padding: 2px 8px;
97512
+ --search-input-xs-padding: 0 8px;
97496
97513
  --search-input-xs-gap: 4px;
97497
97514
  --search-input-xs-min-height: 24px;
97498
97515
 
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("@rc-component/tooltip"),i=require("react"),a=require("clsx"),o=require("@itcase/ui-core/hooks"),l=require("react-inlinesvg"),t=require("@itcase/ui-core/hoc"),s=require("@itcase/ui-core/utils");const n={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},c={appearance:n,setAppearance:e=>{c.appearance=e}};function d(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,cursor:n,style:d,tag:f="span",before:y,after:p,isActive:x,isDisabled:m,isSkeleton:u,onClick:S,onDoubleClick:z,children:g}=r,C=o.useAppearanceConfig(i,c,m),_=o.useDevicePropsGenerator(r,C),{textAlignClass:b,textColorActiveClass:v,textColorActiveHoverClass:P,textColorClass:T,textColorDisabledClass:h,textColorHoverClass:A,textFontClass:H,textStyleClass:w,textTruncateClass:B,textWeightClass:$,textWrapClass:F,cursorClass:I,sizeClass:X,widthClass:k}=_,{styles:j}=o.useStyles(r);return e.jsxs(f,{className:a(l,"text",X&&`text_size_${X}`,$&&`text-weight_${$}`,b&&`text-align_${b}`,m&&h&&`text-color_${h}`,!x&&!m&&T&&`text-color_${T}`,!x&&!m&&A&&`text-color_hover_${A}`,x&&!m&&P&&`text-color_active_hover_${P}`,x&&!m&&v&&`text-color_active_${v}`,H&&`text-font_${H}`,w&&`text-style_${w}`,F&&`word-wrap_${F}`,B&&`text-truncate_${B}`,u&&"skeleton",k&&`width_${k}`,I&&`cursor_${I}`,S&&(n||"cursor_type_pointer")),"data-testid":t,"data-tour":s,style:Object.assign({},j,d),onClick:S,onDoubleClick:z,children:[y,g,p]})}const f={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xxs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xxs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},y={appearance:f,setAppearance:e=>{y.appearance=e}};function p(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,dot:n,icon:c,iconSrc:f,value:p,isSkeleton:x,children:m}=r,u=o.useAppearanceConfig(i,y),S=o.useDevicePropsGenerator(r,u),{fillClass:z,fillHoverClass:g,borderColorClass:C,borderColorHoverClass:_,borderTypeClass:b,borderWidthClass:v,textColor:P,textSize:h,dotFillClass:A,iconFill:H,iconShape:w,iconSize:B,shapeClass:$,sizeClass:F}=S,{styles:I}=o.useStyles(r),X=p?c?n?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":c?"badge_type_icon":n?"badge_type_dot":"badge_type_fill";return e.jsxs("div",{className:a(l,"badge",C&&`border-color_${C}`,_&&`border-color_hover_${_}`,v&&`border-width_${v}`,b&&`border_type_${b}`,z&&`fill_${z}`,g&&`fill_hover_${g}`,F&&`badge_size_${F}`,$&&`shape_${$}`,X,x&&"skeleton"),"data-testid":t,"data-tour":s,style:I,children:[n&&e.jsx("div",{className:a("badge__dot",A&&`svg_fill_${A}`),children:e.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{width:"6",height:"6",rx:"50"})})}),c&&e.jsx(T,{className:"badge__icon",size:B,iconFill:H,imageSrc:f,shape:w,SvgImage:c}),m||p&&e.jsx(d,{className:"badge__value",size:h,textColor:P,children:p})]})}const x={sizeXXL:{size:"xxl",labelTextSize:"xxl",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeL:{size:"l",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeM:{size:"m",labelTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterFillSize:"14",iconAfterSize:"14",iconBeforeFillSize:"14",iconBeforeSize:"14"},disabledPrimary:{fill:"surfaceDisabled",borderColor:"errorBorderQuaternary",textColor:"surfaceTextQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderColorHover:"surfaceBorderQuaternary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",textColor:"surfaceTextPrimary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{borderColor:"none"},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextSecondary",labelTextColorHover:"successTextSecondary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextSecondary"}},m={appearance:x,LinkComponent:"a",setAppearance:e=>{m.appearance=e},setLinkComponent:e=>{m.LinkComponent=e}};function u(r){const{href:a,LinkComponent:o,rel:l,target:t,children:s,...n}=r;if(a){const r=o||m.LinkComponent;if(r)return e.jsx(r,{href:a,rel:l,target:t,...n,children:s})}else if(o)return e.jsx(o,{...n,children:s});return i.Children.toArray(s).filter(Boolean).map(e=>i.isValidElement(e)?i.cloneElement(e,n):e)}const S={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},z={appearance:S,setAppearance:e=>{z.appearance=e}};function g(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,text:c,afterWrapper:d,beforeWrapper:f,style:y,tag:p="span",before:x,after:m,isActive:u,isDisabled:S,isSkeleton:g,onClick:C,children:_}=r,b=o.useAppearanceConfig(l,z,S),v=o.useDevicePropsGenerator(r,b),{directionClass:P,size:h,fillClass:A,fillHoverClass:H,textAlignClass:w,textColorActiveClass:B,textColorActiveHoverClass:$,textColorClass:F,textColorDisabledClass:I,textColorHoverClass:X,textFontClass:k,textStyleClass:j,textTruncateClass:D,textWeightClass:N,textWrap:Q,heightClass:L,iconAfter:M,iconAfterFill:W,iconAfterFillIcon:E,iconAfterFillSize:V,iconAfterShape:q,iconAfterSize:G,iconAfterSrc:O,iconBadgeAppearance:R,iconBadgeShape:U,iconBadgeSize:K,iconBadgeTextColor:J,iconBadgeTextSize:Y,iconBadgeValue:Z,iconBefore:ee,iconBeforeFill:re,iconBeforeFillIcon:ie,iconBeforeFillSize:ae,iconBeforeShape:oe,iconBeforeSize:le,iconBeforeSrc:te,svgFillClass:se,svgFillHoverClass:ne,widthClass:ce,wrapperDirectionClass:de,onClickIconAfter:fe,onClickIconBefore:ye}=v,{styles:pe,wrapper:xe}=o.useStyles(r),me=i.useMemo(()=>p||(h||"span"),[p,h]);return e.jsxs(me,{className:a(t,"title",A&&`fill_${A}`,H&&`fill_hover_${H}`,se&&`svg_fill_${se}`,ne&&`svg_fill_hover_${ne}`,ce&&`width_${ce}`,L&&`height_${L}`,h&&`title_size_${h}`,P&&`title_direction_${P}`,S&&I&&`text-color_${I}`,!u&&!S&&F&&`text text-color_${F}`,u&&!S&&B&&`text-color_active_${B}`,!u&&!S&&X&&`text-color_hover_${X}`,u&&!S&&$&&`text-color_active_hover${$}`,k&&`text-font_${k}`,j&&`text-style_${j}`,N&&`text-weight_${N}`,Q&&`word-wrap_${Q}`,Z&&"title_badge",g&&"skeleton"),"data-testid":s,"data-tour":n,style:Object.assign({},pe,y),onClick:C,children:[x,e.jsxs("span",{className:a(w&&`text-align_${w}`,de&&`title_direction_${de}`,"title__wrapper",D&&`text-truncate_${D}`),style:xe,children:[(ee||te)&&e.jsx(T,{className:a("title__icon_before",Z&&"title__icon_before-badge"),fill:re,fillSize:ae,badgeAppearance:R,badgeClass:"title__icon_before_badge",badgeShape:U,badgeSize:K,badgeTextColor:J,badgeTextSize:Y,badgeValue:Z,iconFill:ie,iconSize:le,imageSrc:te,shape:oe,SvgImage:ee,onClick:ye}),f,_||c,d,(M||O)&&e.jsx(T,{className:a("title__icon_after",Z&&"title__icon_after-badge"),fill:W,fillSize:V,badgeAppearance:R,badgeClass:"title__icon_after_badge",badgeShape:U,badgeSize:K,badgeTextColor:J,badgeTextSize:Y,badgeValue:Z,iconFill:E,iconSize:G,imageSrc:O,shape:q,SvgImage:M,onClick:fe})]}),m]})}const C={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},_={appearance:C,setAppearance:e=>{_.appearance=e}},b=i.forwardRef(function(r,l){const{appearance:t,className:s,dataTestId:n,dataTour:c,initialIsVisible:f,title:y,text:p,before:x,after:m,openTimeoutDelay:u=500,closeTimeoutDelay:S=250,isSkeleton:z,children:C}=r,b=i.useRef(null),v=i.useRef(null),P=i.useRef(null),T=i.useRef(!1),[h,A]=i.useState(f),H=i.useCallback(()=>{T.current||(v.current&&clearTimeout(v.current),P.current=setTimeout(()=>{A(!0)},u))},[u]),w=i.useCallback(()=>{P.current&&clearTimeout(P.current),v.current=setTimeout(()=>{A(e=>(!0===e&&(T.current=!0),!1))},S)},[S]),B=i.useCallback(()=>{T.current=!1},[]);i.useImperativeHandle(l,()=>({get tooltipElement(){return b.current},openTooltip:H,closeTooltip:w,isTooltipVisible:h}),[h,H,w]);const $=o.useAppearanceConfig(t,_),F=o.useDevicePropsGenerator(r,$),{alignClass:I,alignDirectionClass:X,alignmentClass:k,alignPosition:j,fillClass:D,titleColor:N,titleSize:Q,titleWeight:L,borderColorClass:M,borderTypeClass:W,borderWidthClass:E,textColor:V,textSize:q,textWeight:G,arrowPosition:O,elevationClass:R,shapeClass:U,sizeClass:K,widthClass:J}=F,{styles:Y}=o.useStyles(r);return e.jsxs("div",{className:a(s,"tooltip",j&&`tooltip_align-position_${j}`,X&&`align_${X}`,I&&`align_${I}`,R&&`elevation_${R}`,k&&`alignment_${k}`,K&&`tooltip_size_${K}`,z&&"skeleton",J&&`width_${J}`),ref:b,"data-testid":n,"data-tour":c,style:Y,onAnimationEnd:B,children:[O&&e.jsx("div",{className:a("tooltip__arrow",O&&`tooltip__arrow_position_${O}`,D&&`fill_${D}`),children:" "}),x,e.jsxs("div",{className:a("tooltip__inner",E&&`border-width_${E}`,M&&`border-color_${M}`,W&&`border_type_${W}`,D&&`fill_${D}`,U&&`shape_${U}`),children:[y&&e.jsx(g,{className:"tooltip__title text",size:Q,textColor:N,textWeight:L,children:y}),p&&e.jsx(d,{className:"tooltip__text",size:q,textColor:V,textWeight:G,children:p}),C]}),m]})}),v={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},P={appearance:v,setAppearance:e=>{P.appearance=e}},T=t.urlWithAssetPrefix(i.forwardRef(function(r,t){const{id:n,appearance:c,className:d,dataTestId:f,dataTour:y,width:x,height:m,badgeClass:S,href:z,imageSrc:g,link:C,linkRel:_,linkTarget:v,notification:T,saveFillStroke:A,showTooltip:H,SvgImage:w,svgImageStyles:B,before:$,after:F,isActive:I,isDisabled:X,isSkeleton:k,onClick:j,onMouseEnter:D,onMouseLeave:N}=r,Q=i.useMemo(()=>{if(w){const r=w,i={};return x&&(i.width=x),m&&(i.height=m),e.jsx(r,{...i,...B})}return g?g.endsWith(".svg")?A?e.jsx(l,{src:g}):e.jsx(l,{src:g,preProcessor:h}):e.jsx("img",{src:g}):null},[w,g,x,m,B,A]),L=o.useAppearanceConfig(c,P,X),M=o.useDevicePropsGenerator(r,L),{alignmentClass:W,fillActiveClass:E,fillActiveHoverClass:V,fillClass:q,fillDisabledClass:G,fillHoverClass:O,fillSizeClass:R,borderColorClass:U,borderColorHoverClass:K,borderTypeClass:J,borderWidthClass:Y,badgeAppearance:Z,badgeAppearanceSize:ee,badgeShape:re,badgeSize:ie,badgeTextColor:ae,badgeTextSize:oe,badgeValue:le,centeringClass:te,iconFillActiveClass:se,iconFillActiveHoverClass:ne,iconFillClass:ce,iconFillDisabledClass:de,iconFillHoverClass:fe,iconSizeClass:ye,shapeClass:pe,tooltipAppearance:xe,tooltipText:me,tooltipTextSize:ue,tooltipTitle:Se,tooltipTitleSize:ze}=M,{styles:ge}=o.useStyles(r);return e.jsxs("div",{id:n,className:a(d,"icon",I?E&&`fill_active_${E}`:q&&`fill_${q}`,I?V&&`fill_active_hover_${V}`:O&&`fill_hover_${O}`,R&&`icon_fill_size_${R}`,G&&`fill_disabled_${G}`,I?se&&`icon_fill_active_${se}`:ce&&`icon_fill_${ce}`,I?ne&&`icon_fill_active_hover_${ne}`:fe&&`icon_fill_hover_${fe}`,X&&de&&`icon_fill_disabled_${de}`,pe&&`shape_${pe}`,U&&`border-color_${U}`,K&&`border-color_hover_${K}`,Y&&`border-width_${Y}`,J&&`border_type_${J}`,le&&"icon_with-badge",te&&`centering_${te}`,j&&"cursor_type_pointer",k&&"skeleton"),ref:t,"data-testid":f,"data-tour":y,style:ge,onClick:j,onMouseEnter:D,onMouseLeave:N,children:[$,e.jsxs(u,{className:a((C||z||j)&&"cursor_type_pointer",C||z?"icon__link":"icon__item",ye&&`icon_size_${ye}`),href:C||z,LinkComponent:"div",rel:_,target:v,children:[Q,(le||T)&&e.jsx(p,{appearance:s.mergeAppearanceKeys(Z,ee),className:a(S,"icon__badge"),size:ie,textColor:ae,textSize:oe,shape:re,value:le}),H&&e.jsx(b,{appearance:xe,className:a(d,"icon__tooltip",W&&`alignment_${W}`),title:Se,titleSize:ze,text:me,textSize:ue})]}),F]})})),h=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""'),A={sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},accentPrimary:{fill:"accentPrimary"},errorPrimary:{fill:"errorPrimary"},specialPrimary:{fill:"specialPrimary"},extraPrimary:{fill:"extraPrimary"},successPrimary:{fill:"successPrimary"},surfacePrimary:{fill:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceQuaternary"},surfaceSecondary:{fill:"surfaceSecondary"},surfaceTertiary:{fill:"surfaceTertiary"},warningPrimary:{fill:"warningPrimary"}},H={appearance:A,setAppearance:e=>{H.appearance=e}};function w(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,print:n,isActive:c,isDisabled:d,isSkeleton:f}=r,y=o.useAppearanceConfig(i,H),p=o.useDevicePropsGenerator(r,y),{directionClass:x,fillActiveClass:m,fillActiveHoverClass:u,fillClass:S,fillDisabledClass:z,fillHoverClass:g,shapeClass:C,sizeClass:_,widthClass:b}=p,{styles:v}=o.useStyles(r);return e.jsx("hr",{className:a(l,"divider",b&&`width_${b}`,x&&`divider_direction_${x}`,C&&`shape_${C}`,_&&`divider_size_${_}`,c?m&&`fill_active_${m}`:S&&`fill_${S}`,c?u&&`fill_active_hover_${u}`:g&&`fill_hover_${g}`,d&&z&&`fill_disabled_${z}`,f&&"skeleton",!n&&"no-print",n&&"print"),"data-testid":t,"data-tour":s,style:v})}const B={accentPrimary:{fill:"accentPrimary",fillActive:"accentActivePrimary",fillActiveHover:"accentActiveHoverPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorActive:"accentTextPrimary",labelTextColorActiveHover:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",badgeAppearance:"surfacePrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"accentTextPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary"}},$={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},F={sizeL:{size:"l",labelTextSize:"m",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXS:{size:"xs",labelTextSize:"xs",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"xs",iconAfterFillSize:"12",iconAfterSize:"12",iconBeforeFillSize:"12",iconBeforeSize:"12"}},I={solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},X={surfacePrimary:{fill:"surfacePrimary",fillActive:"surfaceActivePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary",labelTextColorActive:"surfaceTextPrimary",labelTextColorActiveHover:"surfaceTextPrimary",labelTextColorHover:"surfaceTextPrimary",badgeAppearance:"accentPrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"}},k={appearance:{...X,...I,...$,...B,...F},setAppearance:e=>{k.appearance=e}};const j={...X,...I,...$,...B,...F},D={appearance:j,setAppearance:e=>{D.appearance=e}};function N(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,label:c,desc:f,badgeValue:y,emptyMessage:x,showDivider:m,before:u,after:S,isActive:z,isDisabled:g,isSkeleton:C,isHover:_,onClick:b,onMouseEnter:v,children:P}=r,h=o.useAppearanceConfig(l,D),A=o.useDevicePropsGenerator(r,h),{directionClass:H,justifyContentClass:B,fillActiveClass:$,fillActiveHoverClass:F,fillClass:I,fillDisabledClass:X,fillHoverClass:k,labelTextAlign:j,labelTextColor:N,labelTextColorActive:Q,labelTextColorActiveHover:L,labelTextColorHover:M,labelTextSize:W,labelTextStyle:E,labelTextWeight:V,labelTextWrap:q,descTextColor:G,descTextColorHover:O,descTextGradient:R,descTextSize:U,descTextStyle:K,descTextWeight:J,descTextWrap:Y,badgeAppearance:Z,badgeShape:ee,badgeSize:re,badgeTextColor:ie,badgeTextSize:ae,dividerDirection:oe,dividerFill:le,dividerSize:te,emptyMessageTextColor:se,emptyMessageTextColorHover:ne,emptyMessageTextSize:ce,emptyMessageTextStyle:de,emptyMessageTextWeight:fe,emptyMessageTextWrap:ye,iconAfter:pe,iconAfterFill:xe,iconAfterFillIcon:me,iconAfterFillSize:ue,iconAfterShape:Se,iconAfterSize:ze,iconAfterSrc:ge,iconBadgeAppearance:Ce,iconBadgeShape:_e,iconBadgeSize:be,iconBadgeTextColor:ve,iconBadgeTextSize:Pe,iconBadgeValue:Te,iconBefore:he,iconBeforeFill:Ae,iconBeforeFillIcon:He,iconBeforeFillSize:we,iconBeforeShape:Be,iconBeforeSize:$e,iconBeforeSrc:Fe,shapeClass:Ie,sizeClass:Xe,widthClass:ke}=A,{styles:je}=o.useStyles(r);return e.jsxs("div",{className:a("dropdown__item",z&&"dropdown__item_state_active",_&&"dropdown__item_state_hover",H&&`dropdown__item_direction_${H}`,t,z?$&&`fill_active_${$}`:I&&`fill_${I}`,z?F&&`fill_active_hover_${F}`:k&&`fill_hover_${k}`,X&&`fill_disabled_${X}`,Xe&&`dropdown__item_size_${Xe}`,Ie&&`shape_${Ie}`,ke&&`dropdown__item_width_${ke}`,g&&"dropdown__item_state_disabled",b&&"cursor_type_pointer",C&&"skeleton",B&&`dropdown__item_justify-content_${B}`),"data-testid":s,"data-tour":n,style:je,onClick:b,onMouseEnter:v,children:[e.jsx("div",{className:"dropdown__item-wrapper",children:e.jsxs(i.Fragment,{children:[u,(he||Fe)&&e.jsx(T,{className:a("dropdown__item_before",Te&&"dropdown__item_before-badge"),fill:Ae,fillSize:we,badgeAppearance:Ce,badgeClass:"dropdown__item_before_badge",badgeShape:_e,badgeSize:be,badgeTextColor:ve,badgeTextSize:Pe,badgeValue:Te,iconFill:He,iconSize:$e,imageSrc:Fe,shape:Be,SvgImage:he}),P||e.jsxs(i.Fragment,{children:[c&&e.jsx(d,{className:"dropdown__item-label",size:W,textAlign:j,textColor:N,textColorActive:Q,textColorActiveHover:L,textColorHover:M,textStyle:E,textWeight:V,textWrap:q,isActive:z,children:c}),y&&e.jsx(p,{appearance:Z,size:re,textColor:ie,textSize:ae,shape:ee,value:y}),f&&e.jsx(d,{className:"dropdown__item-desc",size:U,textColor:G,textColorGradient:R,textColorHover:O,textStyle:K,textWeight:J,textWrap:Y,isActive:z,children:f}),x&&e.jsx(d,{className:"dropdown__item",size:ce,textColor:se,textColorHover:ne,textStyle:de,textWeight:fe,textWrap:ye,isActive:z,children:x})]}),S,(pe||ge)&&e.jsx(T,{className:a("dropdown__item_after",Te&&"dropdown__item_after-badge"),fill:xe,fillSize:ue,badgeAppearance:Ce,badgeClass:"dropdown__item_after_badge",badgeShape:_e,badgeSize:be,badgeTextColor:ve,badgeTextSize:Pe,badgeValue:Te,iconFill:me,iconSize:ze,imageSrc:ge,shape:Se,SvgImage:pe})]})}),m&&e.jsx(w,{width:"fill",direction:oe,size:te,fill:le})]})}exports.Badge=p,exports.Divider=w,exports.Dropdown=function(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,animationClose:c="dropdown_animation_close",animationOpen:d="dropdown_animation_open",dropdownList:f,showDivider:y,before:p,after:x,isSkeleton:m,isOpen:u,setIsOpen:S,onClickItem:z,children:g}=r,C=i.useRef(null),_=o.useAppearanceConfig(l,k),[b,v]=i.useState({className:""}),P=i.useCallback(()=>{v(e=>({className:u?e.className:""}))},[u]);i.useEffect(()=>{d&&c&&v(()=>({className:u?d:c}))},[u,d,c]),i.useEffect(()=>{function e(e){const r=C.current;if(r&&d){const i=r.contains(e.target),a=r.classList.contains(d);!i&&a&&S(!1)}}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[d,S]);const T=o.useDevicePropsGenerator(r,_),{alignmentClass:h,fillClass:A,elevationClass:H,shapeClass:w}=T,{styles:B}=o.useStyles(r);return e.jsxs("div",{className:a(t,"dropdown",h&&`alignment_${h}`,A&&`fill_${A}`,w&&`shape_${w}`,H&&`elevation_${H}`,u?"dropdown_state_open":"dropdown_state_close",b.className),ref:C,"data-testid":s,"data-tour":n,style:B,children:[p,(g||f)&&e.jsxs("div",{className:a("dropdown__wrapper"),onAnimationEnd:P,children:[f?.map(r=>e.jsx(N,{appearance:l,label:r.label,badgeValue:r.badgeValue,emptyMessage:r.emptyMessage,iconAfter:r.iconAfter,iconBefore:r.iconBefore,iconSrc:r.icon,showDivider:y,isActive:r.isActive,isSkeleton:m,onClick:r.onClick||(e=>z?.(r,e))},r.key)),g]}),x]})},exports.DropdownItem=N,exports.Icon=T,exports.Link=function(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,text:n,href:c,link:d,LinkComponent:f,rel:y,style:p,target:x,before:S,after:z,isDisabled:g,onClick:C,onMouseDown:_,onPointerCancel:b,onPointerDown:v,onPointerLeave:P,onPointerUp:T,children:h}=r,A=o.useAppearanceConfig(i,m,g),H=o.useDevicePropsGenerator(r,A),{directionClass:w,fillClass:B,fillHoverClass:$,borderColorClass:F,borderColorHoverClass:I,borderTypeClass:X,borderWidthClass:k,textColorClass:j,textColorHoverClass:D,textGradientClass:N,textStyleClass:Q,textWeightClass:L,heightClass:M,shapeClass:W,sizeClass:E,svgFillClass:V,svgFillHoverClass:q,underline:G="underline",widthClass:O}=H,{styles:R}=o.useStyles(r);return e.jsxs(u,{className:a(l,"link",O&&`width_${O}`,M&&`height_${M}`,w&&`link_direction_${w}`,E&&`text_size_${E}`,V&&`svg_fill_${V}`,q&&`svg_fill_hover_${q}`,G&&`link_underline_${G}`,"text",(j||D||N||Q||L)&&"text",j&&`text-color_${j}`,D&&`text-color_hover_${D}`,N&&`text-gradient_${N}`,Q&&`text-style_${Q}`,L&&`text-weight_${L}`,B&&`fill_${B}`,$&&`fill_hover_${$}`,F&&`border-color_${F}`,I&&`border-color_hover_${I}`,k&&`border-width_${k}`,X&&`border_type_${X}`,W&&`link_shape_${W}`),"data-testid":t,"data-tour":s,href:c||d,LinkComponent:f,rel:y,style:Object.assign({},R,p),target:x,onClick:C,onMouseDown:_,onPointerCancel:b,onPointerDown:v,onPointerLeave:P,onPointerUp:T,children:[S,h||n,z]})},exports.LinkWrapper=u,exports.Text=d,exports.Title=g,exports.Tooltip=b,exports.TooltipWrapper=i=>{const{destroyOnHidden:a=!1,placement:o="right",tooltipContent:l,trigger:t="hover",openDelay:s=.5,closeDelay:n=.25,isOpen:c,children:d,...f}=i;return e.jsx(r,{destroyOnHidden:a,mouseEnterDelay:s,mouseLeaveDelay:n,overlay:e.jsx(b,{initialIsVisible:!0,...f,children:l}),placement:o,prefixCls:"tooltip-wrapper",trigger:t,visible:c,children:d})},exports.badgeAppearance=f,exports.badgeConfig=y,exports.dividerAppearance=A,exports.dividerConfig=H,exports.dropdownItemAppearance=j,exports.dropdownItemConfig=D,exports.iconAppearance=v,exports.iconConfig=P,exports.linkAppearance=x,exports.linkConfig=m,exports.textAppearance=n,exports.textConfig=c,exports.titleAppearance=S,exports.titleConfig=z,exports.tooltipAppearance=C,exports.tooltipConfig=_;
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("@rc-component/tooltip"),i=require("react"),a=require("clsx"),o=require("@itcase/ui-core/hooks"),l=require("react-inlinesvg"),t=require("@itcase/ui-core/hoc"),s=require("@itcase/ui-core/utils");const n={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},c={appearance:n,setAppearance:e=>{c.appearance=e}};function d(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,cursor:n,style:d,tag:f="span",before:y,after:p,isActive:x,isDisabled:m,isSkeleton:u,onClick:S,onDoubleClick:z,children:g}=r,C=o.useAppearanceConfig(i,c,m),_=o.useDevicePropsGenerator(r,C),{textAlignClass:b,textColorActiveClass:v,textColorActiveHoverClass:P,textColorClass:T,textColorDisabledClass:h,textColorHoverClass:A,textFontClass:H,textStyleClass:w,textTruncateClass:B,textWeightClass:$,textWrapClass:F,cursorClass:I,sizeClass:X,widthClass:k}=_,{styles:j}=o.useStyles(r);return e.jsxs(f,{className:a(l,"text",X&&`text_size_${X}`,$&&`text-weight_${$}`,b&&`text-align_${b}`,m&&h&&`text-color_${h}`,!x&&!m&&T&&`text-color_${T}`,!x&&!m&&A&&`text-color_hover_${A}`,x&&!m&&P&&`text-color_active_hover_${P}`,x&&!m&&v&&`text-color_active_${v}`,H&&`text-font_${H}`,w&&`text-style_${w}`,F&&`word-wrap_${F}`,B&&`text-truncate_${B}`,u&&"skeleton",k&&`width_${k}`,I&&`cursor_${I}`,S&&(n||"cursor_type_pointer")),"data-testid":t,"data-tour":s,style:Object.assign({},j,d),onClick:S,onDoubleClick:z,children:[y,g,p]})}const f={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xxs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xxs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},y={appearance:f,setAppearance:e=>{y.appearance=e}};function p(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,dot:n,icon:c,iconSrc:f,value:p,isSkeleton:x,children:m}=r,u=o.useAppearanceConfig(i,y),S=o.useDevicePropsGenerator(r,u),{fillClass:z,fillHoverClass:g,borderColorClass:C,borderColorHoverClass:_,borderTypeClass:b,borderWidthClass:v,textColor:P,textSize:h,dotFillClass:A,iconFill:H,iconShape:w,iconSize:B,shapeClass:$,sizeClass:F}=S,{styles:I}=o.useStyles(r),X=p?c?n?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":c?"badge_type_icon":n?"badge_type_dot":"badge_type_fill";return e.jsxs("div",{className:a(l,"badge",C&&`border-color_${C}`,_&&`border-color_hover_${_}`,v&&`border-width_${v}`,b&&`border_type_${b}`,z&&`fill_${z}`,g&&`fill_hover_${g}`,F&&`badge_size_${F}`,$&&`shape_${$}`,X,x&&"skeleton"),"data-testid":t,"data-tour":s,style:I,children:[n&&e.jsx("div",{className:a("badge__dot",A&&`svg_fill_${A}`),children:e.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{width:"6",height:"6",rx:"50"})})}),c&&e.jsx(T,{className:"badge__icon",size:B,iconFill:H,imageSrc:f,shape:w,SvgImage:c}),m||p&&e.jsx(d,{className:"badge__value",size:h,textColor:P,children:p})]})}const x={sizeXXL:{size:"xxl",labelTextSize:"xxl",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeL:{size:"l",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeM:{size:"m",labelTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterFillSize:"14",iconAfterSize:"14",iconBeforeFillSize:"14",iconBeforeSize:"14"},disabledPrimary:{fill:"surfaceDisabled",borderColor:"errorBorderQuaternary",textColor:"surfaceTextQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderColorHover:"surfaceBorderQuaternary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",textColor:"surfaceTextPrimary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{borderColor:"none"},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextSecondary",labelTextColorHover:"successTextSecondary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextSecondary"}},m={appearance:x,LinkComponent:"a",setAppearance:e=>{m.appearance=e},setLinkComponent:e=>{m.LinkComponent=e}};function u(r){const{href:a,LinkComponent:o,rel:l,target:t,children:s,...n}=r;if(a){const r=o||m.LinkComponent;if(r)return e.jsx(r,{href:a,rel:l,target:t,...n,children:s})}else if(o)return e.jsx(o,{...n,children:s});return i.Children.toArray(s).filter(Boolean).map(e=>i.isValidElement(e)?i.cloneElement(e,n):e)}const S={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},z={appearance:S,setAppearance:e=>{z.appearance=e}};function g(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,text:c,afterWrapper:d,beforeWrapper:f,style:y,tag:p="span",before:x,after:m,isActive:u,isDisabled:S,isSkeleton:g,onClick:C,children:_}=r,b=o.useAppearanceConfig(l,z,S),v=o.useDevicePropsGenerator(r,b),{directionClass:P,size:h,fillClass:A,fillHoverClass:H,textAlignClass:w,textColorActiveClass:B,textColorActiveHoverClass:$,textColorClass:F,textColorDisabledClass:I,textColorHoverClass:X,textFontClass:k,textStyleClass:j,textTruncateClass:D,textWeightClass:N,textWrap:Q,heightClass:L,iconAfter:M,iconAfterFill:W,iconAfterFillIcon:E,iconAfterFillSize:V,iconAfterShape:q,iconAfterSize:G,iconAfterSrc:O,iconBadgeAppearance:R,iconBadgeShape:U,iconBadgeSize:K,iconBadgeTextColor:J,iconBadgeTextSize:Y,iconBadgeValue:Z,iconBefore:ee,iconBeforeFill:re,iconBeforeFillIcon:ie,iconBeforeFillSize:ae,iconBeforeShape:oe,iconBeforeSize:le,iconBeforeSrc:te,svgFillClass:se,svgFillHoverClass:ne,widthClass:ce,wrapperDirectionClass:de,onClickIconAfter:fe,onClickIconBefore:ye}=v,{styles:pe,wrapper:xe}=o.useStyles(r),me=i.useMemo(()=>p||(h||"span"),[p,h]);return e.jsxs(me,{className:a(t,"title",A&&`fill_${A}`,H&&`fill_hover_${H}`,se&&`svg_fill_${se}`,ne&&`svg_fill_hover_${ne}`,ce&&`width_${ce}`,L&&`height_${L}`,h&&`title_size_${h}`,P&&`title_direction_${P}`,S&&I&&`text-color_${I}`,!u&&!S&&F&&`text text-color_${F}`,u&&!S&&B&&`text-color_active_${B}`,!u&&!S&&X&&`text-color_hover_${X}`,u&&!S&&$&&`text-color_active_hover${$}`,k&&`text-font_${k}`,j&&`text-style_${j}`,N&&`text-weight_${N}`,Q&&`word-wrap_${Q}`,Z&&"title_badge",g&&"skeleton"),"data-testid":s,"data-tour":n,style:Object.assign({},pe,y),onClick:C,children:[x,e.jsxs("span",{className:a(w&&`text-align_${w}`,de&&`title_direction_${de}`,"title__wrapper",D&&`text-truncate_${D}`),style:xe,children:[(ee||te)&&e.jsx(T,{className:a("title__icon_before",Z&&"title__icon_before-badge"),fill:re,fillSize:ae,badgeAppearance:R,badgeClass:"title__icon_before_badge",badgeShape:U,badgeSize:K,badgeTextColor:J,badgeTextSize:Y,badgeValue:Z,iconFill:ie,iconSize:le,imageSrc:te,shape:oe,SvgImage:ee,onClick:ye}),f,_||c,d,(M||O)&&e.jsx(T,{className:a("title__icon_after",Z&&"title__icon_after-badge"),fill:W,fillSize:V,badgeAppearance:R,badgeClass:"title__icon_after_badge",badgeShape:U,badgeSize:K,badgeTextColor:J,badgeTextSize:Y,badgeValue:Z,iconFill:E,iconSize:G,imageSrc:O,shape:q,SvgImage:M,onClick:fe})]}),m]})}const C={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},_={appearance:C,setAppearance:e=>{_.appearance=e}},b=i.forwardRef(function(r,l){const{appearance:t,className:s,dataTestId:n,dataTour:c,initialIsVisible:f,title:y,text:p,before:x,after:m,openTimeoutDelay:u=500,closeTimeoutDelay:S=250,isSkeleton:z,children:C}=r,b=i.useRef(null),v=i.useRef(null),P=i.useRef(null),T=i.useRef(!1),[h,A]=i.useState(f),H=i.useCallback(()=>{T.current||(v.current&&clearTimeout(v.current),P.current=setTimeout(()=>{A(!0)},u))},[u]),w=i.useCallback(()=>{P.current&&clearTimeout(P.current),v.current=setTimeout(()=>{A(e=>(!0===e&&(T.current=!0),!1))},S)},[S]),B=i.useCallback(()=>{T.current=!1},[]);i.useImperativeHandle(l,()=>({get tooltipElement(){return b.current},openTooltip:H,closeTooltip:w,isTooltipVisible:h}),[h,H,w]);const $=o.useAppearanceConfig(t,_),F=o.useDevicePropsGenerator(r,$),{alignClass:I,alignDirectionClass:X,alignmentClass:k,alignPosition:j,fillClass:D,titleColor:N,titleSize:Q,titleWeight:L,borderColorClass:M,borderTypeClass:W,borderWidthClass:E,textColor:V,textSize:q,textWeight:G,arrowPosition:O,elevationClass:R,shapeClass:U,sizeClass:K,widthClass:J}=F,{styles:Y}=o.useStyles(r);return e.jsxs("div",{className:a(s,"tooltip",j&&`tooltip_align-position_${j}`,X&&`align_${X}`,I&&`align_${I}`,R&&`elevation_${R}`,k&&`alignment_${k}`,K&&`tooltip_size_${K}`,z&&"skeleton",J&&`width_${J}`),ref:b,"data-testid":n,"data-tour":c,style:Y,onAnimationEnd:B,children:[O&&e.jsx("div",{className:a("tooltip__arrow",O&&`tooltip__arrow_position_${O}`,D&&`fill_${D}`),children:" "}),x,e.jsxs("div",{className:a("tooltip__inner",E&&`border-width_${E}`,M&&`border-color_${M}`,W&&`border_type_${W}`,D&&`fill_${D}`,U&&`shape_${U}`),children:[y&&e.jsx(g,{className:"tooltip__title text",size:Q,textColor:N,textWeight:L,children:y}),p&&e.jsx(d,{className:"tooltip__text",size:q,textColor:V,textWeight:G,children:p}),C]}),m]})}),v={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},P={appearance:v,setAppearance:e=>{P.appearance=e}},T=t.urlWithAssetPrefix(i.forwardRef(function(r,t){const{id:n,appearance:c,className:d,dataTestId:f,dataTour:y,width:x,height:m,badgeClass:S,href:z,imageSrc:g,link:C,linkRel:_,linkTarget:v,notification:T,saveFillStroke:A,showTooltip:H,SvgImage:w,svgImageStyles:B,before:$,after:F,isActive:I,isDisabled:X,isSkeleton:k,onClick:j,onMouseEnter:D,onMouseLeave:N}=r,Q=i.useMemo(()=>{if(w){const r=w,i={};return x&&(i.width=x),m&&(i.height=m),e.jsx(r,{...i,...B})}return g?g.endsWith(".svg")?A?e.jsx(l,{src:g}):e.jsx(l,{src:g,preProcessor:h}):e.jsx("img",{src:g}):null},[w,g,x,m,B,A]),L=o.useAppearanceConfig(c,P,X),M=o.useDevicePropsGenerator(r,L),{alignmentClass:W,fillActiveClass:E,fillActiveHoverClass:V,fillClass:q,fillDisabledClass:G,fillHoverClass:O,fillSizeClass:R,borderColorClass:U,borderColorHoverClass:K,borderTypeClass:J,borderWidthClass:Y,badgeAppearance:Z,badgeAppearanceSize:ee,badgeShape:re,badgeSize:ie,badgeTextColor:ae,badgeTextSize:oe,badgeValue:le,centeringClass:te,iconFillActiveClass:se,iconFillActiveHoverClass:ne,iconFillClass:ce,iconFillDisabledClass:de,iconFillHoverClass:fe,iconSizeClass:ye,shapeClass:pe,tooltipAppearance:xe,tooltipText:me,tooltipTextSize:ue,tooltipTitle:Se,tooltipTitleSize:ze}=M,{styles:ge}=o.useStyles(r);return e.jsxs("div",{id:n,className:a(d,"icon",I?E&&`fill_active_${E}`:q&&`fill_${q}`,I?V&&`fill_active_hover_${V}`:O&&`fill_hover_${O}`,R&&`icon_fill_size_${R}`,G&&`fill_disabled_${G}`,I?se&&`icon_fill_active_${se}`:ce&&`icon_fill_${ce}`,I?ne&&`icon_fill_active_hover_${ne}`:fe&&`icon_fill_hover_${fe}`,X&&de&&`icon_fill_disabled_${de}`,pe&&`shape_${pe}`,U&&`border-color_${U}`,K&&`border-color_hover_${K}`,Y&&`border-width_${Y}`,J&&`border_type_${J}`,le&&"icon_with-badge",te&&`centering_${te}`,j&&"cursor_type_pointer",k&&"skeleton"),ref:t,"data-testid":f,"data-tour":y,style:ge,onClick:j,onMouseEnter:D,onMouseLeave:N,children:[$,e.jsxs(u,{className:a((C||z||j)&&"cursor_type_pointer",C||z?"icon__link":"icon__item",ye&&`icon_size_${ye}`),href:C||z,LinkComponent:"div",rel:_,target:v,children:[Q,(le||T)&&e.jsx(p,{appearance:s.mergeAppearanceKeys(Z,ee),className:a(S,"icon__badge"),size:ie,textColor:ae,textSize:oe,shape:re,value:le}),H&&e.jsx(b,{appearance:xe,className:a(d,"icon__tooltip",W&&`alignment_${W}`),title:Se,titleSize:ze,text:me,textSize:ue})]}),F]})})),h=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""'),A={sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},accentPrimary:{fill:"accentPrimary"},errorPrimary:{fill:"errorPrimary"},specialPrimary:{fill:"specialPrimary"},extraPrimary:{fill:"extraPrimary"},successPrimary:{fill:"successPrimary"},surfacePrimary:{fill:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceQuaternary"},surfaceSecondary:{fill:"surfaceSecondary"},surfaceTertiary:{fill:"surfaceTertiary"},warningPrimary:{fill:"warningPrimary"}},H={appearance:A,setAppearance:e=>{H.appearance=e}};function w(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,print:n,isActive:c,isDisabled:d,isSkeleton:f}=r,y=o.useAppearanceConfig(i,H),p=o.useDevicePropsGenerator(r,y),{directionClass:x,fillActiveClass:m,fillActiveHoverClass:u,fillClass:S,fillDisabledClass:z,fillHoverClass:g,shapeClass:C,sizeClass:_,widthClass:b}=p,{styles:v}=o.useStyles(r);return e.jsx("hr",{className:a(l,"divider",b&&`width_${b}`,x&&`divider_direction_${x}`,C&&`shape_${C}`,_&&`divider_size_${_}`,c?m&&`fill_active_${m}`:S&&`fill_${S}`,c?u&&`fill_active_hover_${u}`:g&&`fill_hover_${g}`,d&&z&&`fill_disabled_${z}`,f&&"skeleton",!n&&"no-print",n&&"print"),"data-testid":t,"data-tour":s,style:v})}const B={accentPrimary:{fill:"accentPrimary",fillActive:"accentActivePrimary",fillActiveHover:"accentActiveHoverPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorActive:"accentTextPrimary",labelTextColorActiveHover:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",badgeAppearance:"surfacePrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"accentTextPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary"}},$={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},F={sizeL:{size:"l",labelTextSize:"m",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXS:{size:"xs",labelTextSize:"xs",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"xs",iconAfterFillSize:"12",iconAfterSize:"12",iconBeforeFillSize:"12",iconBeforeSize:"12"}},I={solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},X={surfacePrimary:{fill:"surfacePrimary",fillActive:"surfaceActivePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary",labelTextColorActive:"surfaceTextPrimary",labelTextColorActiveHover:"surfaceTextPrimary",labelTextColorHover:"surfaceTextPrimary",badgeAppearance:"accentPrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"}},k={appearance:{...X,...I,...$,...B,...F},setAppearance:e=>{k.appearance=e}};const j={...X,...I,...$,...B,...F},D={appearance:j,setAppearance:e=>{D.appearance=e}};function N(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,label:c,desc:f,badgeValue:y,emptyMessage:x,showDivider:m,before:u,after:S,isActive:z,isDisabled:g,isSkeleton:C,isHover:_,onClick:b,onMouseEnter:v,children:P}=r,h=o.useAppearanceConfig(l,D),A=o.useDevicePropsGenerator(r,h),{directionClass:H,justifyContentClass:B,fillActiveClass:$,fillActiveHoverClass:F,fillClass:I,fillDisabledClass:X,fillHoverClass:k,labelTextAlign:j,labelTextColor:N,labelTextColorActive:Q,labelTextColorActiveHover:L,labelTextColorHover:M,labelTextSize:W,labelTextStyle:E,labelTextWeight:V,labelTextWrap:q,descTextColor:G,descTextColorHover:O,descTextGradient:R,descTextSize:U,descTextStyle:K,descTextWeight:J,descTextWrap:Y,badgeAppearance:Z,badgeShape:ee,badgeSize:re,badgeTextColor:ie,badgeTextSize:ae,dividerDirection:oe,dividerFill:le,dividerSize:te,emptyMessageTextColor:se,emptyMessageTextColorHover:ne,emptyMessageTextSize:ce,emptyMessageTextStyle:de,emptyMessageTextWeight:fe,emptyMessageTextWrap:ye,iconAfter:pe,iconAfterFill:xe,iconAfterFillIcon:me,iconAfterFillSize:ue,iconAfterShape:Se,iconAfterSize:ze,iconAfterSrc:ge,iconBadgeAppearance:Ce,iconBadgeShape:_e,iconBadgeSize:be,iconBadgeTextColor:ve,iconBadgeTextSize:Pe,iconBadgeValue:Te,iconBefore:he,iconBeforeFill:Ae,iconBeforeFillIcon:He,iconBeforeFillSize:we,iconBeforeShape:Be,iconBeforeSize:$e,iconBeforeSrc:Fe,shapeClass:Ie,sizeClass:Xe,widthClass:ke}=A,{styles:je}=o.useStyles(r);return e.jsxs("div",{className:a("dropdown__item",z&&"dropdown__item_state_active",_&&"dropdown__item_state_hover",H&&`dropdown__item_direction_${H}`,t,z?$&&`fill_active_${$}`:I&&`fill_${I}`,z?F&&`fill_active_hover_${F}`:k&&`fill_hover_${k}`,X&&`fill_disabled_${X}`,Xe&&`dropdown__item_size_${Xe}`,Ie&&`shape_${Ie}`,ke&&`dropdown__item_width_${ke}`,g&&"dropdown__item_state_disabled",b&&"cursor_type_pointer",C&&"skeleton",B&&`dropdown__item_justify-content_${B}`),"data-testid":s,"data-tour":n,style:je,onClick:b,onMouseEnter:v,children:[e.jsx("div",{className:"dropdown__item-wrapper",children:e.jsxs(i.Fragment,{children:[u,(he||Fe)&&e.jsx(T,{className:a("dropdown__item_before",Te&&"dropdown__item_before-badge"),fill:Ae,fillSize:we,badgeAppearance:Ce,badgeClass:"dropdown__item_before_badge",badgeShape:_e,badgeSize:be,badgeTextColor:ve,badgeTextSize:Pe,badgeValue:Te,iconFill:He,iconSize:$e,imageSrc:Fe,shape:Be,SvgImage:he}),P||e.jsxs(i.Fragment,{children:[c&&e.jsx(d,{className:"dropdown__item-label",size:W,textAlign:j,textColor:N,textColorActive:Q,textColorActiveHover:L,textColorHover:M,textStyle:E,textWeight:V,textWrap:q,isActive:z,children:c}),y&&e.jsx(p,{appearance:Z,size:re,textColor:ie,textSize:ae,shape:ee,value:y}),f&&e.jsx(d,{className:"dropdown__item-desc",size:U,textColor:G,textColorGradient:R,textColorHover:O,textStyle:K,textWeight:J,textWrap:Y,isActive:z,children:f}),x&&e.jsx(d,{className:"dropdown__item",size:ce,textColor:se,textColorHover:ne,textStyle:de,textWeight:fe,textWrap:ye,isActive:z,children:x})]}),S,(pe||ge)&&e.jsx(T,{className:a("dropdown__item_after",Te&&"dropdown__item_after-badge"),fill:xe,fillSize:ue,badgeAppearance:Ce,badgeClass:"dropdown__item_after_badge",badgeShape:_e,badgeSize:be,badgeTextColor:ve,badgeTextSize:Pe,badgeValue:Te,iconFill:me,iconSize:ze,imageSrc:ge,shape:Se,SvgImage:pe})]})}),m&&e.jsx(w,{width:"fill",direction:oe,size:te,fill:le})]})}exports.Badge=p,exports.Divider=w,exports.Dropdown=function(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,animationClose:c="dropdown_animation_close",animationOpen:d="dropdown_animation_open",dropdownList:f,showDivider:y,before:p,after:x,isSkeleton:m,isOpen:u,setIsOpen:S,onClickItem:z,children:g}=r,C=i.useRef(null),_=o.useAppearanceConfig(l,k),[b,v]=i.useState({className:""}),P=i.useCallback(()=>{v(e=>({className:u?e.className:""}))},[u]);i.useEffect(()=>{d&&c&&v(()=>({className:u?d:c}))},[u,d,c]),i.useEffect(()=>{function e(e){const r=C.current;if(r&&d){const i=r.contains(e.target),a=r.classList.contains(d);!i&&a&&S(!1)}}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[d,S]);const T=o.useDevicePropsGenerator(r,_),{alignmentClass:h,fillClass:A,elevationClass:H,shapeClass:w}=T,{styles:B}=o.useStyles(r);return e.jsxs("div",{className:a(t,"dropdown",h&&`alignment_${h}`,A&&`fill_${A}`,w&&`shape_${w}`,H&&`elevation_${H}`,u?"dropdown_state_open":"dropdown_state_close",b.className),ref:C,"data-testid":s,"data-tour":n,style:B,children:[p,(g||f)&&e.jsxs("div",{className:a("dropdown__wrapper"),onAnimationEnd:P,children:[f?.map(r=>e.jsx(N,{appearance:l,label:r.label,badgeValue:r.badgeValue,emptyMessage:r.emptyMessage,iconAfter:r.iconAfter,iconBefore:r.iconBefore,iconSrc:r.icon,showDivider:y,isActive:r.isActive,isSkeleton:m,onClick:r.onClick||(e=>z?.(r,e))},r.key)),g]}),x]})},exports.DropdownItem=N,exports.Icon=T,exports.Link=function(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,text:n,href:c,link:d,LinkComponent:f,rel:y,style:p,target:x,before:S,after:z,isDisabled:g,onClick:C,onMouseDown:_,onPointerCancel:b,onPointerDown:v,onPointerLeave:P,onPointerUp:T,children:h}=r,A=o.useAppearanceConfig(i,m,g),H=o.useDevicePropsGenerator(r,A),{directionClass:w,fillClass:B,fillHoverClass:$,borderColorClass:F,borderColorHoverClass:I,borderTypeClass:X,borderWidthClass:k,textColorClass:j,textColorHoverClass:D,textGradientClass:N,textStyleClass:Q,textWeightClass:L,heightClass:M,shapeClass:W,sizeClass:E,svgFillClass:V,svgFillHoverClass:q,underline:G="underline",widthClass:O}=H,{styles:R}=o.useStyles(r);return e.jsxs(u,{className:a(l,"link",O&&`width_${O}`,M&&`height_${M}`,w&&`link_direction_${w}`,E&&`text_size_${E}`,V&&`svg_fill_${V}`,q&&`svg_fill_hover_${q}`,G&&`link_underline_${G}`,"text",(j||D||N||Q||L)&&"text",j&&`text-color_${j}`,D&&`text-color_hover_${D}`,N&&`text-gradient_${N}`,Q&&`text-style_${Q}`,L&&`text-weight_${L}`,B&&`fill_${B}`,$&&`fill_hover_${$}`,F&&`border-color_${F}`,I&&`border-color_hover_${I}`,k&&`border-width_${k}`,X&&`border_type_${X}`,W&&`link_shape_${W}`),"data-testid":t,"data-tour":s,href:c||d,LinkComponent:f,rel:y,style:Object.assign({},R,p),target:x,onClick:C,onMouseDown:_,onPointerCancel:b,onPointerDown:v,onPointerLeave:P,onPointerUp:T,children:[S,h||n,z]})},exports.LinkWrapper=u,exports.Text=d,exports.Title=g,exports.Tooltip=b,exports.TooltipWrapper=i=>{const{destroyOnHidden:a=!1,placement:o="right",tooltipContent:l,trigger:t="hover",openDelay:s=.5,closeDelay:n=.25,isOpen:c,children:d,...f}=i;return e.jsx(r,{destroyOnHidden:a,mouseEnterDelay:s,mouseLeaveDelay:n,overlay:e.jsx(b,{initialIsVisible:!0,...f,children:l}),placement:o,prefixCls:"tooltip-wrapper",trigger:t,visible:c,children:d})},exports.badgeAppearance=f,exports.badgeConfig=y,exports.dividerAppearance=A,exports.dividerConfig=H,exports.dropdownItemAppearance=j,exports.dropdownItemConfig=D,exports.iconAppearance=v,exports.iconConfig=P,exports.linkAppearance=x,exports.linkConfig=m,exports.textAppearance=n,exports.textConfig=c,exports.titleAppearance=S,exports.titleConfig=z,exports.tooltipAppearance=C,exports.tooltipConfig=_;
@@ -1 +1 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import i from"@rc-component/tooltip";import a,{useMemo as o,useRef as l,useState as t,useCallback as s,useImperativeHandle as n,useEffect as c}from"react";import d from"clsx";import{useAppearanceConfig as f,useDevicePropsGenerator as y,useStyles as m}from"@itcase/ui-core/hooks";import S from"react-inlinesvg";import{urlWithAssetPrefix as p}from"@itcase/ui-core/hoc";import{mergeAppearanceKeys as x}from"@itcase/ui-core/utils";const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u={appearance:z,setAppearance:e=>{u.appearance=e}};function _(r){const{appearance:i,className:a,dataTestId:o,dataTour:l,cursor:t,style:s,tag:n="span",before:c,after:S,isActive:p,isDisabled:x,isSkeleton:z,onClick:_,onDoubleClick:b,children:g}=r,C=f(i,u,x),v=y(r,C),{textAlignClass:P,textColorActiveClass:T,textColorActiveHoverClass:h,textColorClass:H,textColorDisabledClass:A,textColorHoverClass:B,textFontClass:$,textStyleClass:w,textTruncateClass:F,textWeightClass:X,textWrapClass:I,cursorClass:k,sizeClass:N,widthClass:Q}=v,{styles:L}=m(r);return e(n,{className:d(a,"text",N&&`text_size_${N}`,X&&`text-weight_${X}`,P&&`text-align_${P}`,x&&A&&`text-color_${A}`,!p&&!x&&H&&`text-color_${H}`,!p&&!x&&B&&`text-color_hover_${B}`,p&&!x&&h&&`text-color_active_hover_${h}`,p&&!x&&T&&`text-color_active_${T}`,$&&`text-font_${$}`,w&&`text-style_${w}`,I&&`word-wrap_${I}`,F&&`text-truncate_${F}`,z&&"skeleton",Q&&`width_${Q}`,k&&`cursor_${k}`,_&&(t||"cursor_type_pointer")),"data-testid":o,"data-tour":l,style:Object.assign({},L,s),onClick:_,onDoubleClick:b,children:[c,g,S]})}const b={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xxs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xxs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},g={appearance:b,setAppearance:e=>{g.appearance=e}};function C(i){const{appearance:a,className:o,dataTestId:l,dataTour:t,dot:s,icon:n,iconSrc:c,value:S,isSkeleton:p,children:x}=i,z=f(a,g),u=y(i,z),{fillClass:b,fillHoverClass:C,borderColorClass:v,borderColorHoverClass:P,borderTypeClass:T,borderWidthClass:h,textColor:H,textSize:A,dotFillClass:B,iconFill:$,iconShape:w,iconSize:F,shapeClass:X,sizeClass:I}=u,{styles:k}=m(i);return e("div",{className:d(o,"badge",v&&`border-color_${v}`,P&&`border-color_hover_${P}`,h&&`border-width_${h}`,T&&`border_type_${T}`,b&&`fill_${b}`,C&&`fill_hover_${C}`,I&&`badge_size_${I}`,X&&`shape_${X}`,S?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",p&&"skeleton"),"data-testid":l,"data-tour":t,style:k,children:[s&&r("div",{className:d("badge__dot",B&&`svg_fill_${B}`),children:r("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:r("rect",{width:"6",height:"6",rx:"50"})})}),n&&r(N,{className:"badge__icon",size:F,iconFill:$,imageSrc:c,shape:w,SvgImage:n}),x||S&&r(_,{className:"badge__value",size:A,textColor:H,children:S})]})}const v={sizeXXL:{size:"xxl",labelTextSize:"xxl",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeL:{size:"l",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeM:{size:"m",labelTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterFillSize:"14",iconAfterSize:"14",iconBeforeFillSize:"14",iconBeforeSize:"14"},disabledPrimary:{fill:"surfaceDisabled",borderColor:"errorBorderQuaternary",textColor:"surfaceTextQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderColorHover:"surfaceBorderQuaternary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",textColor:"surfaceTextPrimary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{borderColor:"none"},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextSecondary",labelTextColorHover:"successTextSecondary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextSecondary"}},P={appearance:v,LinkComponent:"a",setAppearance:e=>{P.appearance=e},setLinkComponent:e=>{P.LinkComponent=e}};function T(r){const{appearance:i,className:a,dataTestId:o,dataTour:l,text:t,href:s,link:n,LinkComponent:c,rel:S,style:p,target:x,before:z,after:u,isDisabled:_,onClick:b,onMouseDown:g,onPointerCancel:C,onPointerDown:v,onPointerLeave:T,onPointerUp:H,children:A}=r,B=f(i,P,_),$=y(r,B),{directionClass:w,fillClass:F,fillHoverClass:X,borderColorClass:I,borderColorHoverClass:k,borderTypeClass:N,borderWidthClass:Q,textColorClass:L,textColorHoverClass:D,textGradientClass:M,textStyleClass:W,textWeightClass:V,heightClass:E,shapeClass:O,sizeClass:j,svgFillClass:q,svgFillHoverClass:G,underline:R="underline",widthClass:U}=$,{styles:J}=m(r);return e(h,{className:d(a,"link",U&&`width_${U}`,E&&`height_${E}`,w&&`link_direction_${w}`,j&&`text_size_${j}`,q&&`svg_fill_${q}`,G&&`svg_fill_hover_${G}`,R&&`link_underline_${R}`,"text",(L||D||M||W||V)&&"text",L&&`text-color_${L}`,D&&`text-color_hover_${D}`,M&&`text-gradient_${M}`,W&&`text-style_${W}`,V&&`text-weight_${V}`,F&&`fill_${F}`,X&&`fill_hover_${X}`,I&&`border-color_${I}`,k&&`border-color_hover_${k}`,Q&&`border-width_${Q}`,N&&`border_type_${N}`,O&&`link_shape_${O}`),"data-testid":o,"data-tour":l,href:s||n,LinkComponent:c,rel:S,style:Object.assign({},J,p),target:x,onClick:b,onMouseDown:g,onPointerCancel:C,onPointerDown:v,onPointerLeave:T,onPointerUp:H,children:[z,A||t,u]})}function h(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P.LinkComponent;if(e)return r(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return r(o,{...n,children:s});return a.Children.toArray(s).filter(Boolean).map(e=>a.isValidElement(e)?a.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H,setAppearance:e=>{A.appearance=e}};function B(i){const{appearance:a,className:l,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:S,style:p,tag:x="span",before:z,after:u,isActive:_,isDisabled:b,isSkeleton:g,onClick:C,children:v}=i,P=f(a,A,b),T=y(i,P),{directionClass:h,size:H,fillClass:B,fillHoverClass:$,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:ye,wrapperDirectionClass:me,onClickIconAfter:Se,onClickIconBefore:pe}=T,{styles:xe,wrapper:ze}=m(i),ue=o(()=>x||(H||"span"),[x,H]);return e(ue,{className:d(l,"title",B&&`fill_${B}`,$&&`fill_hover_${$}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,ye&&`width_${ye}`,E&&`height_${E}`,H&&`title_size_${H}`,h&&`title_direction_${h}`,b&&k&&`text-color_${k}`,!_&&!b&&I&&`text text-color_${I}`,_&&!b&&F&&`text-color_active_${F}`,!_&&!b&&Q&&`text-color_hover_${Q}`,_&&!b&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",g&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,p),onClick:C,children:[z,e("span",{className:d(w&&`text-align_${w}`,me&&`title_direction_${me}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&r(N,{className:d("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:pe}),S,v||n,c,(O||J)&&r(N,{className:d("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:Se})]}),u]})}const $={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:$,setAppearance:e=>{w.appearance=e}},F=a.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:S,dataTour:p,initialIsVisible:x,title:z,text:u,before:b,after:g,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:T}=i,h=l(null),H=l(null),A=l(null),$=l(!1),[F,X]=t(x),I=s(()=>{$.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(!0)},C))},[C]),k=s(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(!0===e&&($.current=!0),!1))},v)},[v]),N=s(()=>{$.current=!1},[]);n(a,()=>({get tooltipElement(){return h.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=f(o,w),L=y(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,sizeClass:ie,widthClass:ae}=L,{styles:oe}=m(i);return e("div",{className:d(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ie&&`tooltip_size_${ie}`,P&&"skeleton",ae&&`width_${ae}`),ref:h,"data-testid":S,"data-tour":p,style:oe,onAnimationEnd:N,children:[Z&&r("div",{className:d("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),b,e("div",{className:d("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`),children:[z&&r(B,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&r(_,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),T]}),g]})}),X=e=>{const{destroyOnHidden:a=!1,placement:o="right",tooltipContent:l,trigger:t="hover",openDelay:s=.5,closeDelay:n=.25,isOpen:c,children:d,...f}=e;return r(i,{destroyOnHidden:a,mouseEnterDelay:s,mouseLeaveDelay:n,overlay:r(F,{initialIsVisible:!0,...f,children:l}),placement:o,prefixCls:"tooltip-wrapper",trigger:t,visible:c,children:d})},I={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I,setAppearance:e=>{k.appearance=e}},N=p(a.forwardRef(function(i,a){const{id:l,appearance:t,className:s,dataTestId:n,dataTour:c,width:p,height:z,badgeClass:u,href:_,imageSrc:b,link:g,linkRel:v,linkTarget:P,notification:T,saveFillStroke:H,showTooltip:A,SvgImage:B,svgImageStyles:$,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=o(()=>{if(B){const e=B,i={};return p&&(i.width=p),z&&(i.height=z),r(e,{...i,...$})}return b?b.endsWith(".svg")?r(S,H?{src:b}:{src:b,preProcessor:Q}):r("img",{src:b}):null},[B,b,p,z,$,H]),E=f(t,k,N),O=y(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:ye,iconFillDisabledClass:me,iconFillHoverClass:Se,iconSizeClass:pe,shapeClass:xe,tooltipAppearance:ze,tooltipText:ue,tooltipTextSize:_e,tooltipTitle:be,tooltipTitleSize:ge}=O,{styles:Ce}=m(i);return e("div",{id:l,className:d(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:ye&&`icon_fill_${ye}`,I?fe&&`icon_fill_active_hover_${fe}`:Se&&`icon_fill_hover_${Se}`,N&&me&&`icon_fill_disabled_${me}`,xe&&`shape_${xe}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:Ce,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,e(h,{className:d((g||_||D)&&"cursor_type_pointer",g||_?"icon__link":"icon__item",pe&&`icon_size_${pe}`),href:g||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||T)&&r(C,{appearance:x(ie,ae),className:d(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&r(F,{appearance:ze,className:d(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:ge,text:ue,textSize:_e})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""'),L={sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},accentPrimary:{fill:"accentPrimary"},errorPrimary:{fill:"errorPrimary"},specialPrimary:{fill:"specialPrimary"},extraPrimary:{fill:"extraPrimary"},successPrimary:{fill:"successPrimary"},surfacePrimary:{fill:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceQuaternary"},surfaceSecondary:{fill:"surfaceSecondary"},surfaceTertiary:{fill:"surfaceTertiary"},warningPrimary:{fill:"warningPrimary"}},D={appearance:L,setAppearance:e=>{D.appearance=e}};function M(e){const{appearance:i,className:a,dataTestId:o,dataTour:l,print:t,isActive:s,isDisabled:n,isSkeleton:c}=e,S=f(i,D),p=y(e,S),{directionClass:x,fillActiveClass:z,fillActiveHoverClass:u,fillClass:_,fillDisabledClass:b,fillHoverClass:g,shapeClass:C,sizeClass:v,widthClass:P}=p,{styles:T}=m(e);return r("hr",{className:d(a,"divider",P&&`width_${P}`,x&&`divider_direction_${x}`,C&&`shape_${C}`,v&&`divider_size_${v}`,s?z&&`fill_active_${z}`:_&&`fill_${_}`,s?u&&`fill_active_hover_${u}`:g&&`fill_hover_${g}`,n&&b&&`fill_disabled_${b}`,c&&"skeleton",!t&&"no-print",t&&"print"),"data-testid":o,"data-tour":l,style:T})}const W={accentPrimary:{fill:"accentPrimary",fillActive:"accentActivePrimary",fillActiveHover:"accentActiveHoverPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorActive:"accentTextPrimary",labelTextColorActiveHover:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",badgeAppearance:"surfacePrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"accentTextPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary"}},V={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},E={sizeL:{size:"l",labelTextSize:"m",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXS:{size:"xs",labelTextSize:"xs",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"xs",iconAfterFillSize:"12",iconAfterSize:"12",iconBeforeFillSize:"12",iconBeforeSize:"12"}},O={solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},j={surfacePrimary:{fill:"surfacePrimary",fillActive:"surfaceActivePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary",labelTextColorActive:"surfaceTextPrimary",labelTextColorActiveHover:"surfaceTextPrimary",labelTextColorHover:"surfaceTextPrimary",badgeAppearance:"accentPrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"}},q={appearance:{...j,...O,...V,...W,...E},setAppearance:e=>{q.appearance=e}};function G(i){const{appearance:a,className:o,dataTestId:n,dataTour:S,animationClose:p="dropdown_animation_close",animationOpen:x="dropdown_animation_open",dropdownList:z,showDivider:u,before:_,after:b,isSkeleton:g,isOpen:C,setIsOpen:v,onClickItem:P,children:T}=i,h=l(null),H=f(a,q),[A,B]=t({className:""}),$=s(()=>{B(e=>({className:C?e.className:""}))},[C]);c(()=>{x&&p&&B(()=>({className:C?x:p}))},[C,x,p]),c(()=>{function e(e){const r=h.current;if(r&&x){const i=r.contains(e.target),a=r.classList.contains(x);!i&&a&&v(!1)}}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[x,v]);const w=y(i,H),{alignmentClass:F,fillClass:X,elevationClass:I,shapeClass:k}=w,{styles:N}=m(i);return e("div",{className:d(o,"dropdown",F&&`alignment_${F}`,X&&`fill_${X}`,k&&`shape_${k}`,I&&`elevation_${I}`,C?"dropdown_state_open":"dropdown_state_close",A.className),ref:h,"data-testid":n,"data-tour":S,style:N,children:[_,(T||z)&&e("div",{className:d("dropdown__wrapper"),onAnimationEnd:$,children:[z?.map(e=>r(J,{appearance:a,label:e.label,badgeValue:e.badgeValue,emptyMessage:e.emptyMessage,iconAfter:e.iconAfter,iconBefore:e.iconBefore,iconSrc:e.icon,showDivider:u,isActive:e.isActive,isSkeleton:g,onClick:e.onClick||(r=>P?.(e,r))},e.key)),T]}),b]})}const R={...j,...O,...V,...W,...E},U={appearance:R,setAppearance:e=>{U.appearance=e}};function J(i){const{appearance:o,className:l,dataTestId:t,dataTour:s,label:n,desc:c,badgeValue:S,emptyMessage:p,showDivider:x,before:z,after:u,isActive:b,isDisabled:g,isSkeleton:v,isHover:P,onClick:T,onMouseEnter:h,children:H}=i,A=f(o,U),B=y(i,A),{directionClass:$,justifyContentClass:w,fillActiveClass:F,fillActiveHoverClass:X,fillClass:I,fillDisabledClass:k,fillHoverClass:Q,labelTextAlign:L,labelTextColor:D,labelTextColorActive:W,labelTextColorActiveHover:V,labelTextColorHover:E,labelTextSize:O,labelTextStyle:j,labelTextWeight:q,labelTextWrap:G,descTextColor:R,descTextColorHover:J,descTextGradient:K,descTextSize:Y,descTextStyle:Z,descTextWeight:ee,descTextWrap:re,badgeAppearance:ie,badgeShape:ae,badgeSize:oe,badgeTextColor:le,badgeTextSize:te,dividerDirection:se,dividerFill:ne,dividerSize:ce,emptyMessageTextColor:de,emptyMessageTextColorHover:fe,emptyMessageTextSize:ye,emptyMessageTextStyle:me,emptyMessageTextWeight:Se,emptyMessageTextWrap:pe,iconAfter:xe,iconAfterFill:ze,iconAfterFillIcon:ue,iconAfterFillSize:_e,iconAfterShape:be,iconAfterSize:ge,iconAfterSrc:Ce,iconBadgeAppearance:ve,iconBadgeShape:Pe,iconBadgeSize:Te,iconBadgeTextColor:he,iconBadgeTextSize:He,iconBadgeValue:Ae,iconBefore:Be,iconBeforeFill:$e,iconBeforeFillIcon:we,iconBeforeFillSize:Fe,iconBeforeShape:Xe,iconBeforeSize:Ie,iconBeforeSrc:ke,shapeClass:Ne,sizeClass:Qe,widthClass:Le}=B,{styles:De}=m(i);return e("div",{className:d("dropdown__item",b&&"dropdown__item_state_active",P&&"dropdown__item_state_hover",$&&`dropdown__item_direction_${$}`,l,b?F&&`fill_active_${F}`:I&&`fill_${I}`,b?X&&`fill_active_hover_${X}`:Q&&`fill_hover_${Q}`,k&&`fill_disabled_${k}`,Qe&&`dropdown__item_size_${Qe}`,Ne&&`shape_${Ne}`,Le&&`dropdown__item_width_${Le}`,g&&"dropdown__item_state_disabled",T&&"cursor_type_pointer",v&&"skeleton",w&&`dropdown__item_justify-content_${w}`),"data-testid":t,"data-tour":s,style:De,onClick:T,onMouseEnter:h,children:[r("div",{className:"dropdown__item-wrapper",children:e(a.Fragment,{children:[z,(Be||ke)&&r(N,{className:d("dropdown__item_before",Ae&&"dropdown__item_before-badge"),fill:$e,fillSize:Fe,badgeAppearance:ve,badgeClass:"dropdown__item_before_badge",badgeShape:Pe,badgeSize:Te,badgeTextColor:he,badgeTextSize:He,badgeValue:Ae,iconFill:we,iconSize:Ie,imageSrc:ke,shape:Xe,SvgImage:Be}),H||e(a.Fragment,{children:[n&&r(_,{className:"dropdown__item-label",size:O,textAlign:L,textColor:D,textColorActive:W,textColorActiveHover:V,textColorHover:E,textStyle:j,textWeight:q,textWrap:G,isActive:b,children:n}),S&&r(C,{appearance:ie,size:oe,textColor:le,textSize:te,shape:ae,value:S}),c&&r(_,{className:"dropdown__item-desc",size:Y,textColor:R,textColorGradient:K,textColorHover:J,textStyle:Z,textWeight:ee,textWrap:re,isActive:b,children:c}),p&&r(_,{className:"dropdown__item",size:ye,textColor:de,textColorHover:fe,textStyle:me,textWeight:Se,textWrap:pe,isActive:b,children:p})]}),u,(xe||Ce)&&r(N,{className:d("dropdown__item_after",Ae&&"dropdown__item_after-badge"),fill:ze,fillSize:_e,badgeAppearance:ve,badgeClass:"dropdown__item_after_badge",badgeShape:Pe,badgeSize:Te,badgeTextColor:he,badgeTextSize:He,badgeValue:Ae,iconFill:ue,iconSize:ge,imageSrc:Ce,shape:be,SvgImage:xe})]})}),x&&r(M,{width:"fill",direction:se,size:ce,fill:ne})]})}export{C as B,M as D,N as I,h as L,B as T,_ as a,G as b,J as c,X as d,T as e,F as f,u as g,b as h,g as i,P as j,H as k,v as l,A as m,$ as n,w as o,I as p,k as q,L as r,D as s,z as t,R as u,U as v};
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import i from"@rc-component/tooltip";import a,{useMemo as o,useRef as l,useState as t,useCallback as s,useImperativeHandle as n,useEffect as c}from"react";import d from"clsx";import{useAppearanceConfig as f,useDevicePropsGenerator as y,useStyles as m}from"@itcase/ui-core/hooks";import S from"react-inlinesvg";import{urlWithAssetPrefix as p}from"@itcase/ui-core/hoc";import{mergeAppearanceKeys as x}from"@itcase/ui-core/utils";const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u={appearance:z,setAppearance:e=>{u.appearance=e}};function _(r){const{appearance:i,className:a,dataTestId:o,dataTour:l,cursor:t,style:s,tag:n="span",before:c,after:S,isActive:p,isDisabled:x,isSkeleton:z,onClick:_,onDoubleClick:b,children:g}=r,C=f(i,u,x),v=y(r,C),{textAlignClass:P,textColorActiveClass:T,textColorActiveHoverClass:h,textColorClass:H,textColorDisabledClass:A,textColorHoverClass:B,textFontClass:$,textStyleClass:w,textTruncateClass:F,textWeightClass:X,textWrapClass:I,cursorClass:k,sizeClass:N,widthClass:Q}=v,{styles:L}=m(r);return e(n,{className:d(a,"text",N&&`text_size_${N}`,X&&`text-weight_${X}`,P&&`text-align_${P}`,x&&A&&`text-color_${A}`,!p&&!x&&H&&`text-color_${H}`,!p&&!x&&B&&`text-color_hover_${B}`,p&&!x&&h&&`text-color_active_hover_${h}`,p&&!x&&T&&`text-color_active_${T}`,$&&`text-font_${$}`,w&&`text-style_${w}`,I&&`word-wrap_${I}`,F&&`text-truncate_${F}`,z&&"skeleton",Q&&`width_${Q}`,k&&`cursor_${k}`,_&&(t||"cursor_type_pointer")),"data-testid":o,"data-tour":l,style:Object.assign({},L,s),onClick:_,onDoubleClick:b,children:[c,g,S]})}const b={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xxs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xxs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},g={appearance:b,setAppearance:e=>{g.appearance=e}};function C(i){const{appearance:a,className:o,dataTestId:l,dataTour:t,dot:s,icon:n,iconSrc:c,value:S,isSkeleton:p,children:x}=i,z=f(a,g),u=y(i,z),{fillClass:b,fillHoverClass:C,borderColorClass:v,borderColorHoverClass:P,borderTypeClass:T,borderWidthClass:h,textColor:H,textSize:A,dotFillClass:B,iconFill:$,iconShape:w,iconSize:F,shapeClass:X,sizeClass:I}=u,{styles:k}=m(i);return e("div",{className:d(o,"badge",v&&`border-color_${v}`,P&&`border-color_hover_${P}`,h&&`border-width_${h}`,T&&`border_type_${T}`,b&&`fill_${b}`,C&&`fill_hover_${C}`,I&&`badge_size_${I}`,X&&`shape_${X}`,S?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",p&&"skeleton"),"data-testid":l,"data-tour":t,style:k,children:[s&&r("div",{className:d("badge__dot",B&&`svg_fill_${B}`),children:r("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:r("rect",{width:"6",height:"6",rx:"50"})})}),n&&r(N,{className:"badge__icon",size:F,iconFill:$,imageSrc:c,shape:w,SvgImage:n}),x||S&&r(_,{className:"badge__value",size:A,textColor:H,children:S})]})}const v={sizeXXL:{size:"xxl",labelTextSize:"xxl",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeL:{size:"l",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeM:{size:"m",labelTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterFillSize:"14",iconAfterSize:"14",iconBeforeFillSize:"14",iconBeforeSize:"14"},disabledPrimary:{fill:"surfaceDisabled",borderColor:"errorBorderQuaternary",textColor:"surfaceTextQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderColorHover:"surfaceBorderQuaternary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",textColor:"surfaceTextPrimary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{borderColor:"none"},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextSecondary",labelTextColorHover:"successTextSecondary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextSecondary"}},P={appearance:v,LinkComponent:"a",setAppearance:e=>{P.appearance=e},setLinkComponent:e=>{P.LinkComponent=e}};function T(r){const{appearance:i,className:a,dataTestId:o,dataTour:l,text:t,href:s,link:n,LinkComponent:c,rel:S,style:p,target:x,before:z,after:u,isDisabled:_,onClick:b,onMouseDown:g,onPointerCancel:C,onPointerDown:v,onPointerLeave:T,onPointerUp:H,children:A}=r,B=f(i,P,_),$=y(r,B),{directionClass:w,fillClass:F,fillHoverClass:X,borderColorClass:I,borderColorHoverClass:k,borderTypeClass:N,borderWidthClass:Q,textColorClass:L,textColorHoverClass:D,textGradientClass:M,textStyleClass:W,textWeightClass:V,heightClass:E,shapeClass:O,sizeClass:j,svgFillClass:q,svgFillHoverClass:G,underline:R="underline",widthClass:U}=$,{styles:J}=m(r);return e(h,{className:d(a,"link",U&&`width_${U}`,E&&`height_${E}`,w&&`link_direction_${w}`,j&&`text_size_${j}`,q&&`svg_fill_${q}`,G&&`svg_fill_hover_${G}`,R&&`link_underline_${R}`,"text",(L||D||M||W||V)&&"text",L&&`text-color_${L}`,D&&`text-color_hover_${D}`,M&&`text-gradient_${M}`,W&&`text-style_${W}`,V&&`text-weight_${V}`,F&&`fill_${F}`,X&&`fill_hover_${X}`,I&&`border-color_${I}`,k&&`border-color_hover_${k}`,Q&&`border-width_${Q}`,N&&`border_type_${N}`,O&&`link_shape_${O}`),"data-testid":o,"data-tour":l,href:s||n,LinkComponent:c,rel:S,style:Object.assign({},J,p),target:x,onClick:b,onMouseDown:g,onPointerCancel:C,onPointerDown:v,onPointerLeave:T,onPointerUp:H,children:[z,A||t,u]})}function h(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P.LinkComponent;if(e)return r(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return r(o,{...n,children:s});return a.Children.toArray(s).filter(Boolean).map(e=>a.isValidElement(e)?a.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H,setAppearance:e=>{A.appearance=e}};function B(i){const{appearance:a,className:l,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:S,style:p,tag:x="span",before:z,after:u,isActive:_,isDisabled:b,isSkeleton:g,onClick:C,children:v}=i,P=f(a,A,b),T=y(i,P),{directionClass:h,size:H,fillClass:B,fillHoverClass:$,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:ye,wrapperDirectionClass:me,onClickIconAfter:Se,onClickIconBefore:pe}=T,{styles:xe,wrapper:ze}=m(i),ue=o(()=>x||(H||"span"),[x,H]);return e(ue,{className:d(l,"title",B&&`fill_${B}`,$&&`fill_hover_${$}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,ye&&`width_${ye}`,E&&`height_${E}`,H&&`title_size_${H}`,h&&`title_direction_${h}`,b&&k&&`text-color_${k}`,!_&&!b&&I&&`text text-color_${I}`,_&&!b&&F&&`text-color_active_${F}`,!_&&!b&&Q&&`text-color_hover_${Q}`,_&&!b&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",g&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,p),onClick:C,children:[z,e("span",{className:d(w&&`text-align_${w}`,me&&`title_direction_${me}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&r(N,{className:d("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:pe}),S,v||n,c,(O||J)&&r(N,{className:d("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:Se})]}),u]})}const $={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:$,setAppearance:e=>{w.appearance=e}},F=a.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:S,dataTour:p,initialIsVisible:x,title:z,text:u,before:b,after:g,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:T}=i,h=l(null),H=l(null),A=l(null),$=l(!1),[F,X]=t(x),I=s(()=>{$.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(!0)},C))},[C]),k=s(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(!0===e&&($.current=!0),!1))},v)},[v]),N=s(()=>{$.current=!1},[]);n(a,()=>({get tooltipElement(){return h.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=f(o,w),L=y(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,sizeClass:ie,widthClass:ae}=L,{styles:oe}=m(i);return e("div",{className:d(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ie&&`tooltip_size_${ie}`,P&&"skeleton",ae&&`width_${ae}`),ref:h,"data-testid":S,"data-tour":p,style:oe,onAnimationEnd:N,children:[Z&&r("div",{className:d("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),b,e("div",{className:d("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`),children:[z&&r(B,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&r(_,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),T]}),g]})}),X=e=>{const{destroyOnHidden:a=!1,placement:o="right",tooltipContent:l,trigger:t="hover",openDelay:s=.5,closeDelay:n=.25,isOpen:c,children:d,...f}=e;return r(i,{destroyOnHidden:a,mouseEnterDelay:s,mouseLeaveDelay:n,overlay:r(F,{initialIsVisible:!0,...f,children:l}),placement:o,prefixCls:"tooltip-wrapper",trigger:t,visible:c,children:d})},I={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I,setAppearance:e=>{k.appearance=e}},N=p(a.forwardRef(function(i,a){const{id:l,appearance:t,className:s,dataTestId:n,dataTour:c,width:p,height:z,badgeClass:u,href:_,imageSrc:b,link:g,linkRel:v,linkTarget:P,notification:T,saveFillStroke:H,showTooltip:A,SvgImage:B,svgImageStyles:$,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=o(()=>{if(B){const e=B,i={};return p&&(i.width=p),z&&(i.height=z),r(e,{...i,...$})}return b?b.endsWith(".svg")?r(S,H?{src:b}:{src:b,preProcessor:Q}):r("img",{src:b}):null},[B,b,p,z,$,H]),E=f(t,k,N),O=y(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:ye,iconFillDisabledClass:me,iconFillHoverClass:Se,iconSizeClass:pe,shapeClass:xe,tooltipAppearance:ze,tooltipText:ue,tooltipTextSize:_e,tooltipTitle:be,tooltipTitleSize:ge}=O,{styles:Ce}=m(i);return e("div",{id:l,className:d(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:ye&&`icon_fill_${ye}`,I?fe&&`icon_fill_active_hover_${fe}`:Se&&`icon_fill_hover_${Se}`,N&&me&&`icon_fill_disabled_${me}`,xe&&`shape_${xe}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:Ce,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,e(h,{className:d((g||_||D)&&"cursor_type_pointer",g||_?"icon__link":"icon__item",pe&&`icon_size_${pe}`),href:g||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||T)&&r(C,{appearance:x(ie,ae),className:d(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&r(F,{appearance:ze,className:d(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:ge,text:ue,textSize:_e})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""'),L={sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},accentPrimary:{fill:"accentPrimary"},errorPrimary:{fill:"errorPrimary"},specialPrimary:{fill:"specialPrimary"},extraPrimary:{fill:"extraPrimary"},successPrimary:{fill:"successPrimary"},surfacePrimary:{fill:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceQuaternary"},surfaceSecondary:{fill:"surfaceSecondary"},surfaceTertiary:{fill:"surfaceTertiary"},warningPrimary:{fill:"warningPrimary"}},D={appearance:L,setAppearance:e=>{D.appearance=e}};function M(e){const{appearance:i,className:a,dataTestId:o,dataTour:l,print:t,isActive:s,isDisabled:n,isSkeleton:c}=e,S=f(i,D),p=y(e,S),{directionClass:x,fillActiveClass:z,fillActiveHoverClass:u,fillClass:_,fillDisabledClass:b,fillHoverClass:g,shapeClass:C,sizeClass:v,widthClass:P}=p,{styles:T}=m(e);return r("hr",{className:d(a,"divider",P&&`width_${P}`,x&&`divider_direction_${x}`,C&&`shape_${C}`,v&&`divider_size_${v}`,s?z&&`fill_active_${z}`:_&&`fill_${_}`,s?u&&`fill_active_hover_${u}`:g&&`fill_hover_${g}`,n&&b&&`fill_disabled_${b}`,c&&"skeleton",!t&&"no-print",t&&"print"),"data-testid":o,"data-tour":l,style:T})}const W={accentPrimary:{fill:"accentPrimary",fillActive:"accentActivePrimary",fillActiveHover:"accentActiveHoverPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorActive:"accentTextPrimary",labelTextColorActiveHover:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",badgeAppearance:"surfacePrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"accentTextPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary"}},V={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},E={sizeL:{size:"l",labelTextSize:"m",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXS:{size:"xs",labelTextSize:"xs",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"xs",iconAfterFillSize:"12",iconAfterSize:"12",iconBeforeFillSize:"12",iconBeforeSize:"12"}},O={solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},j={surfacePrimary:{fill:"surfacePrimary",fillActive:"surfaceActivePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary",labelTextColorActive:"surfaceTextPrimary",labelTextColorActiveHover:"surfaceTextPrimary",labelTextColorHover:"surfaceTextPrimary",badgeAppearance:"accentPrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"}},q={appearance:{...j,...O,...V,...W,...E},setAppearance:e=>{q.appearance=e}};function G(i){const{appearance:a,className:o,dataTestId:n,dataTour:S,animationClose:p="dropdown_animation_close",animationOpen:x="dropdown_animation_open",dropdownList:z,showDivider:u,before:_,after:b,isSkeleton:g,isOpen:C,setIsOpen:v,onClickItem:P,children:T}=i,h=l(null),H=f(a,q),[A,B]=t({className:""}),$=s(()=>{B(e=>({className:C?e.className:""}))},[C]);c(()=>{x&&p&&B(()=>({className:C?x:p}))},[C,x,p]),c(()=>{function e(e){const r=h.current;if(r&&x){const i=r.contains(e.target),a=r.classList.contains(x);!i&&a&&v(!1)}}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[x,v]);const w=y(i,H),{alignmentClass:F,fillClass:X,elevationClass:I,shapeClass:k}=w,{styles:N}=m(i);return e("div",{className:d(o,"dropdown",F&&`alignment_${F}`,X&&`fill_${X}`,k&&`shape_${k}`,I&&`elevation_${I}`,C?"dropdown_state_open":"dropdown_state_close",A.className),ref:h,"data-testid":n,"data-tour":S,style:N,children:[_,(T||z)&&e("div",{className:d("dropdown__wrapper"),onAnimationEnd:$,children:[z?.map(e=>r(J,{appearance:a,label:e.label,badgeValue:e.badgeValue,emptyMessage:e.emptyMessage,iconAfter:e.iconAfter,iconBefore:e.iconBefore,iconSrc:e.icon,showDivider:u,isActive:e.isActive,isSkeleton:g,onClick:e.onClick||(r=>P?.(e,r))},e.key)),T]}),b]})}const R={...j,...O,...V,...W,...E},U={appearance:R,setAppearance:e=>{U.appearance=e}};function J(i){const{appearance:o,className:l,dataTestId:t,dataTour:s,label:n,desc:c,badgeValue:S,emptyMessage:p,showDivider:x,before:z,after:u,isActive:b,isDisabled:g,isSkeleton:v,isHover:P,onClick:T,onMouseEnter:h,children:H}=i,A=f(o,U),B=y(i,A),{directionClass:$,justifyContentClass:w,fillActiveClass:F,fillActiveHoverClass:X,fillClass:I,fillDisabledClass:k,fillHoverClass:Q,labelTextAlign:L,labelTextColor:D,labelTextColorActive:W,labelTextColorActiveHover:V,labelTextColorHover:E,labelTextSize:O,labelTextStyle:j,labelTextWeight:q,labelTextWrap:G,descTextColor:R,descTextColorHover:J,descTextGradient:K,descTextSize:Y,descTextStyle:Z,descTextWeight:ee,descTextWrap:re,badgeAppearance:ie,badgeShape:ae,badgeSize:oe,badgeTextColor:le,badgeTextSize:te,dividerDirection:se,dividerFill:ne,dividerSize:ce,emptyMessageTextColor:de,emptyMessageTextColorHover:fe,emptyMessageTextSize:ye,emptyMessageTextStyle:me,emptyMessageTextWeight:Se,emptyMessageTextWrap:pe,iconAfter:xe,iconAfterFill:ze,iconAfterFillIcon:ue,iconAfterFillSize:_e,iconAfterShape:be,iconAfterSize:ge,iconAfterSrc:Ce,iconBadgeAppearance:ve,iconBadgeShape:Pe,iconBadgeSize:Te,iconBadgeTextColor:he,iconBadgeTextSize:He,iconBadgeValue:Ae,iconBefore:Be,iconBeforeFill:$e,iconBeforeFillIcon:we,iconBeforeFillSize:Fe,iconBeforeShape:Xe,iconBeforeSize:Ie,iconBeforeSrc:ke,shapeClass:Ne,sizeClass:Qe,widthClass:Le}=B,{styles:De}=m(i);return e("div",{className:d("dropdown__item",b&&"dropdown__item_state_active",P&&"dropdown__item_state_hover",$&&`dropdown__item_direction_${$}`,l,b?F&&`fill_active_${F}`:I&&`fill_${I}`,b?X&&`fill_active_hover_${X}`:Q&&`fill_hover_${Q}`,k&&`fill_disabled_${k}`,Qe&&`dropdown__item_size_${Qe}`,Ne&&`shape_${Ne}`,Le&&`dropdown__item_width_${Le}`,g&&"dropdown__item_state_disabled",T&&"cursor_type_pointer",v&&"skeleton",w&&`dropdown__item_justify-content_${w}`),"data-testid":t,"data-tour":s,style:De,onClick:T,onMouseEnter:h,children:[r("div",{className:"dropdown__item-wrapper",children:e(a.Fragment,{children:[z,(Be||ke)&&r(N,{className:d("dropdown__item_before",Ae&&"dropdown__item_before-badge"),fill:$e,fillSize:Fe,badgeAppearance:ve,badgeClass:"dropdown__item_before_badge",badgeShape:Pe,badgeSize:Te,badgeTextColor:he,badgeTextSize:He,badgeValue:Ae,iconFill:we,iconSize:Ie,imageSrc:ke,shape:Xe,SvgImage:Be}),H||e(a.Fragment,{children:[n&&r(_,{className:"dropdown__item-label",size:O,textAlign:L,textColor:D,textColorActive:W,textColorActiveHover:V,textColorHover:E,textStyle:j,textWeight:q,textWrap:G,isActive:b,children:n}),S&&r(C,{appearance:ie,size:oe,textColor:le,textSize:te,shape:ae,value:S}),c&&r(_,{className:"dropdown__item-desc",size:Y,textColor:R,textColorGradient:K,textColorHover:J,textStyle:Z,textWeight:ee,textWrap:re,isActive:b,children:c}),p&&r(_,{className:"dropdown__item",size:ye,textColor:de,textColorHover:fe,textStyle:me,textWeight:Se,textWrap:pe,isActive:b,children:p})]}),u,(xe||Ce)&&r(N,{className:d("dropdown__item_after",Ae&&"dropdown__item_after-badge"),fill:ze,fillSize:_e,badgeAppearance:ve,badgeClass:"dropdown__item_after_badge",badgeShape:Pe,badgeSize:Te,badgeTextColor:he,badgeTextSize:He,badgeValue:Ae,iconFill:ue,iconSize:ge,imageSrc:Ce,shape:be,SvgImage:xe})]})}),x&&r(M,{width:"fill",direction:se,size:ce,fill:ne})]})}export{C as B,M as D,N as I,h as L,B as T,_ as a,G as b,J as c,X as d,T as e,F as f,u as g,b as h,g as i,P as j,H as k,v as l,A as m,$ as n,w as o,I as p,k as q,L as r,D as s,z as t,R as u,U as v};