@alfalab/core-components 45.8.0-beta.3 → 45.8.0-beta.5

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 (530) hide show
  1. package/bottom-sheet/component.js +7 -3
  2. package/bottom-sheet/cssm/component.js +6 -2
  3. package/bottom-sheet/cssm/index.module.css +3 -1
  4. package/bottom-sheet/esm/component.js +8 -4
  5. package/bottom-sheet/esm/index.css +3 -1
  6. package/bottom-sheet/index.css +3 -1
  7. package/bottom-sheet/modern/component.js +7 -4
  8. package/bottom-sheet/modern/index.css +3 -1
  9. package/calendar-range/esm/Component.js +1 -1
  10. package/calendar-range/esm/index.js +1 -1
  11. package/calendar-range/esm/views/popover.js +1 -1
  12. package/calendar-range/esm/views/static.js +1 -1
  13. package/calendar-range/modern/Component.js +1 -1
  14. package/calendar-range/modern/index.js +1 -1
  15. package/calendar-range/modern/views/popover.js +1 -1
  16. package/calendar-range/modern/views/static.js +1 -1
  17. package/calendar-range/utils.js +3 -1
  18. package/calendar-range/views/popover.js +1 -1
  19. package/calendar-range/views/static.js +1 -1
  20. package/confirmation/components/screens/initial/component.js +1 -1
  21. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  22. package/confirmation/esm/component.responsive.js +1 -1
  23. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  24. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  25. package/confirmation/esm/components/index.js +1 -1
  26. package/confirmation/esm/components/screens/index.js +1 -1
  27. package/confirmation/esm/components/screens/initial/component.js +1 -1
  28. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  29. package/confirmation/esm/components/screens/initial/index.js +1 -1
  30. package/confirmation/esm/desktop/component.desktop.js +1 -1
  31. package/confirmation/esm/desktop/index.js +1 -1
  32. package/confirmation/esm/index.js +1 -1
  33. package/confirmation/esm/mobile/component.mobile.js +1 -1
  34. package/confirmation/esm/mobile/index.js +1 -1
  35. package/confirmation/esm/shared/index.js +1 -1
  36. package/confirmation/modern/component.responsive.js +1 -1
  37. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  38. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  39. package/confirmation/modern/components/index.js +1 -1
  40. package/confirmation/modern/components/screens/index.js +1 -1
  41. package/confirmation/modern/components/screens/initial/component.js +1 -1
  42. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  43. package/confirmation/modern/components/screens/initial/index.js +1 -1
  44. package/confirmation/modern/desktop/component.desktop.js +1 -1
  45. package/confirmation/modern/desktop/index.js +1 -1
  46. package/confirmation/modern/index.js +1 -1
  47. package/confirmation/modern/mobile/component.mobile.js +1 -1
  48. package/confirmation/modern/mobile/index.js +1 -1
  49. package/confirmation/modern/shared/index.js +1 -1
  50. package/dropzone/Component.d.ts +1 -1
  51. package/dropzone/Component.js +1 -1
  52. package/dropzone/cssm/Component.d.ts +1 -1
  53. package/dropzone/cssm/Component.js +1 -1
  54. package/dropzone/esm/Component.d.ts +1 -1
  55. package/dropzone/esm/Component.js +1 -1
  56. package/dropzone/modern/Component.d.ts +1 -1
  57. package/dropzone/modern/Component.js +1 -1
  58. package/gallery/components/header/Component.js +1 -1
  59. package/gallery/components/header/buttons.js +1 -1
  60. package/gallery/components/image-viewer/component.js +1 -1
  61. package/gallery/components/image-viewer/slide.js +1 -1
  62. package/gallery/esm/Component.js +2 -2
  63. package/gallery/esm/components/header/Component.js +1 -1
  64. package/gallery/esm/components/header/buttons.js +1 -1
  65. package/gallery/esm/components/header/index.js +1 -1
  66. package/gallery/esm/components/image-preview/Component.js +1 -1
  67. package/gallery/esm/components/image-preview/index.js +1 -1
  68. package/gallery/esm/components/image-viewer/component.js +1 -1
  69. package/gallery/esm/components/image-viewer/index.js +1 -1
  70. package/gallery/esm/components/image-viewer/slide.js +1 -1
  71. package/gallery/esm/components/index.js +2 -2
  72. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  73. package/gallery/esm/components/navigation-bar/index.js +1 -1
  74. package/gallery/esm/index.js +2 -2
  75. package/gallery/modern/Component.js +2 -2
  76. package/gallery/modern/components/header/Component.js +1 -1
  77. package/gallery/modern/components/header/buttons.js +1 -1
  78. package/gallery/modern/components/header/index.js +1 -1
  79. package/gallery/modern/components/image-preview/Component.js +1 -1
  80. package/gallery/modern/components/image-preview/index.js +1 -1
  81. package/gallery/modern/components/image-viewer/component.js +1 -1
  82. package/gallery/modern/components/image-viewer/index.js +1 -1
  83. package/gallery/modern/components/image-viewer/slide.js +1 -1
  84. package/gallery/modern/components/index.js +2 -2
  85. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  86. package/gallery/modern/components/navigation-bar/index.js +1 -1
  87. package/gallery/modern/index.js +2 -2
  88. package/international-phone-input/cssm/use-skeleton-1328ead9.d.ts +0 -4
  89. package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +0 -4
  90. package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +0 -4
  91. package/international-phone-input/use-skeleton-1328ead9.d.ts +0 -4
  92. package/modal/components/controls/Component.js +1 -1
  93. package/modal/components/footer/Component.js +1 -1
  94. package/modal/esm/Component.responsive.js +1 -1
  95. package/modal/esm/components/controls/Component.js +1 -1
  96. package/modal/esm/components/controls/index.js +1 -1
  97. package/modal/esm/components/footer/Component.js +1 -1
  98. package/modal/esm/desktop/Component.desktop.js +1 -1
  99. package/modal/esm/desktop/index.js +1 -1
  100. package/modal/esm/index.js +1 -1
  101. package/modal/esm/mobile/Component.mobile.js +1 -1
  102. package/modal/esm/mobile/index.js +1 -1
  103. package/modal/modern/Component.responsive.js +1 -1
  104. package/modal/modern/components/controls/Component.js +1 -1
  105. package/modal/modern/components/controls/index.js +1 -1
  106. package/modal/modern/components/footer/Component.js +1 -1
  107. package/modal/modern/desktop/Component.desktop.js +1 -1
  108. package/modal/modern/desktop/index.js +1 -1
  109. package/modal/modern/index.js +1 -1
  110. package/modal/modern/mobile/Component.mobile.js +1 -1
  111. package/modal/modern/mobile/index.js +1 -1
  112. package/package.json +1 -1
  113. package/picker-button/{modern/index-307da6d7.d.ts → cssm/index-a5b021bd.d.ts} +1 -2
  114. package/picker-button/cssm/use-skeleton-1328ead9.d.ts +0 -4
  115. package/picker-button/{cssm/index-307da6d7.d.ts → esm/index-a5b021bd.d.ts} +1 -2
  116. package/picker-button/esm/use-skeleton-1328ead9.d.ts +0 -4
  117. package/picker-button/{index-307da6d7.d.ts → index-a5b021bd.d.ts} +1 -2
  118. package/picker-button/{esm/index-307da6d7.d.ts → modern/index-a5b021bd.d.ts} +1 -2
  119. package/picker-button/modern/use-skeleton-1328ead9.d.ts +0 -4
  120. package/picker-button/use-skeleton-1328ead9.d.ts +0 -4
  121. package/pure-cell/component.js +1 -1
  122. package/pure-cell/components/addon/component.js +1 -1
  123. package/pure-cell/components/addon/index.d.ts +1 -1
  124. package/pure-cell/components/addon/index.js +1 -1
  125. package/pure-cell/components/amount/component.js +1 -1
  126. package/pure-cell/components/amount/index.d.ts +1 -1
  127. package/pure-cell/components/amount/index.js +1 -1
  128. package/pure-cell/components/amount-title/component.js +1 -1
  129. package/pure-cell/components/amount-title/index.d.ts +1 -1
  130. package/pure-cell/components/amount-title/index.js +1 -1
  131. package/pure-cell/components/category/component.js +1 -1
  132. package/pure-cell/components/category/index.d.ts +1 -1
  133. package/pure-cell/components/category/index.js +1 -1
  134. package/pure-cell/components/content/component.js +1 -1
  135. package/pure-cell/components/content/index.d.ts +1 -1
  136. package/pure-cell/components/content/index.js +1 -1
  137. package/pure-cell/components/footer/component.js +1 -1
  138. package/pure-cell/components/footer/index.d.ts +1 -1
  139. package/pure-cell/components/footer/index.js +1 -1
  140. package/pure-cell/components/footer-button/component.js +1 -1
  141. package/pure-cell/components/footer-button/index.d.ts +1 -1
  142. package/pure-cell/components/footer-button/index.js +1 -1
  143. package/pure-cell/components/footer-text/component.js +1 -1
  144. package/pure-cell/components/footer-text/index.d.ts +1 -1
  145. package/pure-cell/components/footer-text/index.js +1 -1
  146. package/pure-cell/components/graphics/component.js +1 -1
  147. package/pure-cell/components/graphics/index.d.ts +1 -1
  148. package/pure-cell/components/graphics/index.js +1 -1
  149. package/pure-cell/components/main/component.js +1 -1
  150. package/pure-cell/components/main/index.d.ts +1 -1
  151. package/pure-cell/components/main/index.js +1 -1
  152. package/pure-cell/components/text/component.js +1 -1
  153. package/pure-cell/components/text/index.d.ts +1 -1
  154. package/pure-cell/components/text/index.js +1 -1
  155. package/pure-cell/esm/component.js +1 -1
  156. package/pure-cell/esm/components/addon/component.js +1 -1
  157. package/pure-cell/esm/components/addon/index.d.ts +1 -1
  158. package/pure-cell/esm/components/addon/index.js +1 -1
  159. package/pure-cell/esm/components/amount/component.js +1 -1
  160. package/pure-cell/esm/components/amount/index.d.ts +1 -1
  161. package/pure-cell/esm/components/amount/index.js +1 -1
  162. package/pure-cell/esm/components/amount-title/component.js +1 -1
  163. package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
  164. package/pure-cell/esm/components/amount-title/index.js +1 -1
  165. package/pure-cell/esm/components/category/component.js +1 -1
  166. package/pure-cell/esm/components/category/index.d.ts +1 -1
  167. package/pure-cell/esm/components/category/index.js +1 -1
  168. package/pure-cell/esm/components/content/component.js +1 -1
  169. package/pure-cell/esm/components/content/index.d.ts +1 -1
  170. package/pure-cell/esm/components/content/index.js +1 -1
  171. package/pure-cell/esm/components/footer/component.js +1 -1
  172. package/pure-cell/esm/components/footer/index.d.ts +1 -1
  173. package/pure-cell/esm/components/footer/index.js +1 -1
  174. package/pure-cell/esm/components/footer-button/component.js +1 -1
  175. package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
  176. package/pure-cell/esm/components/footer-button/index.js +1 -1
  177. package/pure-cell/esm/components/footer-text/component.js +1 -1
  178. package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
  179. package/pure-cell/esm/components/footer-text/index.js +1 -1
  180. package/pure-cell/esm/components/graphics/component.js +1 -1
  181. package/pure-cell/esm/components/graphics/index.d.ts +1 -1
  182. package/pure-cell/esm/components/graphics/index.js +1 -1
  183. package/pure-cell/esm/components/main/component.js +1 -1
  184. package/pure-cell/esm/components/main/index.d.ts +1 -1
  185. package/pure-cell/esm/components/main/index.js +1 -1
  186. package/pure-cell/esm/components/text/component.js +1 -1
  187. package/pure-cell/esm/components/text/index.d.ts +1 -1
  188. package/pure-cell/esm/components/text/index.js +1 -1
  189. package/pure-cell/esm/index.js +1 -1
  190. package/pure-cell/index.js +1 -1
  191. package/pure-cell/modern/component.js +1 -1
  192. package/pure-cell/modern/components/addon/component.js +1 -1
  193. package/pure-cell/modern/components/addon/index.d.ts +1 -1
  194. package/pure-cell/modern/components/addon/index.js +1 -1
  195. package/pure-cell/modern/components/amount/component.js +1 -1
  196. package/pure-cell/modern/components/amount/index.d.ts +1 -1
  197. package/pure-cell/modern/components/amount/index.js +1 -1
  198. package/pure-cell/modern/components/amount-title/component.js +1 -1
  199. package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
  200. package/pure-cell/modern/components/amount-title/index.js +1 -1
  201. package/pure-cell/modern/components/category/component.js +1 -1
  202. package/pure-cell/modern/components/category/index.d.ts +1 -1
  203. package/pure-cell/modern/components/category/index.js +1 -1
  204. package/pure-cell/modern/components/content/component.js +1 -1
  205. package/pure-cell/modern/components/content/index.d.ts +1 -1
  206. package/pure-cell/modern/components/content/index.js +1 -1
  207. package/pure-cell/modern/components/footer/component.js +1 -1
  208. package/pure-cell/modern/components/footer/index.d.ts +1 -1
  209. package/pure-cell/modern/components/footer/index.js +1 -1
  210. package/pure-cell/modern/components/footer-button/component.js +1 -1
  211. package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
  212. package/pure-cell/modern/components/footer-button/index.js +1 -1
  213. package/pure-cell/modern/components/footer-text/component.js +1 -1
  214. package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
  215. package/pure-cell/modern/components/footer-text/index.js +1 -1
  216. package/pure-cell/modern/components/graphics/component.js +1 -1
  217. package/pure-cell/modern/components/graphics/index.d.ts +1 -1
  218. package/pure-cell/modern/components/graphics/index.js +1 -1
  219. package/pure-cell/modern/components/main/component.js +1 -1
  220. package/pure-cell/modern/components/main/index.d.ts +1 -1
  221. package/pure-cell/modern/components/main/index.js +1 -1
  222. package/pure-cell/modern/components/text/component.js +1 -1
  223. package/pure-cell/modern/components/text/index.d.ts +1 -1
  224. package/pure-cell/modern/components/text/index.js +1 -1
  225. package/pure-cell/modern/index.js +1 -1
  226. package/select/esm/Component.responsive.js +1 -1
  227. package/select/esm/index.js +1 -1
  228. package/select/esm/mobile/Component.mobile.js +1 -1
  229. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  230. package/select/esm/mobile/index.js +1 -1
  231. package/select/esm/presets/index.js +1 -1
  232. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  233. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  234. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  235. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  236. package/select/esm/shared/index.js +1 -1
  237. package/select/mobile/Component.mobile.js +1 -1
  238. package/select/modern/Component.responsive.js +1 -1
  239. package/select/modern/index.js +1 -1
  240. package/select/modern/mobile/Component.mobile.js +1 -1
  241. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  242. package/select/modern/mobile/index.js +1 -1
  243. package/select/modern/presets/index.js +1 -1
  244. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  245. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  246. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  247. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  248. package/select/modern/shared/index.js +1 -1
  249. package/select/presets/index.js +1 -1
  250. package/select/presets/useSelectWithApply/hook.js +1 -1
  251. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  252. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  253. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  254. package/select/shared/index.js +1 -1
  255. package/shared/cssm/index.d.ts +0 -1
  256. package/shared/cssm/index.js +0 -2
  257. package/shared/esm/index.d.ts +0 -1
  258. package/shared/esm/index.js +0 -1
  259. package/shared/index.d.ts +0 -1
  260. package/shared/index.js +0 -2
  261. package/shared/modern/index.d.ts +0 -1
  262. package/shared/modern/index.js +0 -1
  263. package/skeleton/Component.d.ts +0 -4
  264. package/skeleton/Component.js +3 -6
  265. package/skeleton/cssm/Component.d.ts +0 -4
  266. package/skeleton/cssm/Component.js +2 -5
  267. package/skeleton/cssm/index.module.css +42 -9
  268. package/skeleton/esm/Component.d.ts +0 -4
  269. package/skeleton/esm/Component.js +3 -6
  270. package/skeleton/esm/index.css +42 -9
  271. package/skeleton/index.css +42 -9
  272. package/skeleton/modern/Component.d.ts +0 -4
  273. package/skeleton/modern/Component.js +3 -6
  274. package/skeleton/modern/index.css +42 -9
  275. package/status-badge/Component.d.ts +3 -8
  276. package/status-badge/Component.js +73 -3
  277. package/status-badge/cssm/Component.d.ts +3 -8
  278. package/status-badge/cssm/Component.js +73 -3
  279. package/status-badge/cssm/index.d.ts +0 -1
  280. package/status-badge/esm/Component.d.ts +3 -8
  281. package/status-badge/esm/Component.js +73 -18
  282. package/status-badge/esm/index.d.ts +0 -1
  283. package/status-badge/esm/index.js +0 -3
  284. package/status-badge/index.d.ts +0 -1
  285. package/status-badge/modern/Component.d.ts +3 -8
  286. package/status-badge/modern/Component.js +73 -17
  287. package/status-badge/modern/index.d.ts +0 -1
  288. package/status-badge/modern/index.js +0 -2
  289. package/tab-bar/Component.js +3 -7
  290. package/tab-bar/components/tab/Component.js +5 -9
  291. package/tab-bar/components/tab/index.css +2 -5
  292. package/tab-bar/cssm/Component.js +2 -6
  293. package/tab-bar/cssm/components/tab/Component.js +4 -8
  294. package/tab-bar/cssm/components/tab/index.module.css +2 -5
  295. package/tab-bar/cssm/index.module.css +7 -9
  296. package/tab-bar/cssm/types.d.ts +3 -11
  297. package/tab-bar/esm/Component.js +4 -9
  298. package/tab-bar/esm/components/tab/Component.js +5 -9
  299. package/tab-bar/esm/components/tab/index.css +2 -5
  300. package/tab-bar/esm/components/tab/index.js +1 -2
  301. package/tab-bar/esm/index.css +7 -9
  302. package/tab-bar/esm/index.js +1 -2
  303. package/tab-bar/esm/types.d.ts +3 -11
  304. package/tab-bar/index.css +7 -9
  305. package/tab-bar/modern/Component.js +4 -9
  306. package/tab-bar/modern/components/tab/Component.js +5 -9
  307. package/tab-bar/modern/components/tab/index.css +2 -5
  308. package/tab-bar/modern/components/tab/index.js +1 -2
  309. package/tab-bar/modern/index.css +7 -9
  310. package/tab-bar/modern/index.js +1 -2
  311. package/tab-bar/modern/types.d.ts +3 -11
  312. package/tab-bar/types.d.ts +3 -11
  313. package/themes/click.css +6 -0
  314. package/themes/compiled/mobile-dark-bluetint.css +228 -79
  315. package/themes/mixins/click.css +2 -0
  316. package/themes/mixins/skeleton/click.css +8 -0
  317. package/themes/skeleton/click.css +8 -0
  318. package/toast-plate/components/base-toast-plate/component.d.ts +12 -9
  319. package/toast-plate/components/base-toast-plate/component.js +14 -16
  320. package/toast-plate/cssm/components/base-toast-plate/component.d.ts +12 -9
  321. package/toast-plate/cssm/components/base-toast-plate/component.js +14 -16
  322. package/toast-plate/esm/Component.responsive.js +4 -6
  323. package/toast-plate/esm/components/base-toast-plate/component.d.ts +12 -9
  324. package/toast-plate/esm/components/base-toast-plate/component.js +14 -16
  325. package/toast-plate/esm/components/base-toast-plate/index.js +4 -6
  326. package/toast-plate/esm/desktop/Component.desktop.js +4 -6
  327. package/toast-plate/esm/desktop/index.js +4 -6
  328. package/toast-plate/esm/index.js +4 -6
  329. package/toast-plate/esm/mobile/Component.mobile.js +4 -6
  330. package/toast-plate/esm/mobile/index.js +4 -6
  331. package/toast-plate/modern/Component.responsive.js +4 -6
  332. package/toast-plate/modern/components/base-toast-plate/component.d.ts +12 -9
  333. package/toast-plate/modern/components/base-toast-plate/component.js +14 -16
  334. package/toast-plate/modern/components/base-toast-plate/index.js +4 -6
  335. package/toast-plate/modern/desktop/Component.desktop.js +4 -6
  336. package/toast-plate/modern/desktop/index.js +4 -6
  337. package/toast-plate/modern/index.js +4 -6
  338. package/toast-plate/modern/mobile/Component.mobile.js +4 -6
  339. package/toast-plate/modern/mobile/index.js +4 -6
  340. package/typography/esm/component.js +2 -2
  341. package/typography/esm/index.js +2 -2
  342. package/typography/esm/text/component.js +1 -1
  343. package/typography/esm/text/index.js +1 -1
  344. package/typography/esm/title/component.js +1 -1
  345. package/typography/esm/title/index.js +2 -2
  346. package/typography/esm/title-mobile/component.js +2 -2
  347. package/typography/esm/title-mobile/index.js +2 -2
  348. package/typography/esm/title-responsive/component.js +2 -2
  349. package/typography/esm/title-responsive/index.js +2 -2
  350. package/typography/modern/component.js +2 -2
  351. package/typography/modern/index.js +2 -2
  352. package/typography/modern/text/component.js +1 -1
  353. package/typography/modern/text/index.js +1 -1
  354. package/typography/modern/title/component.js +1 -1
  355. package/typography/modern/title/index.js +2 -2
  356. package/typography/modern/title-mobile/component.js +2 -2
  357. package/typography/modern/title-mobile/index.js +2 -2
  358. package/typography/modern/title-responsive/component.js +2 -2
  359. package/typography/modern/title-responsive/index.js +2 -2
  360. package/typography/text/component.js +1 -1
  361. package/typography/title/component.js +1 -1
  362. package/typography/title/index.js +1 -1
  363. package/typography/title-mobile/component.js +1 -1
  364. package/typography/title-responsive/component.js +1 -1
  365. package/universal-date-input/cssm/use-skeleton-1328ead9.d.ts +0 -4
  366. package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +0 -4
  367. package/universal-date-input/modern/use-skeleton-1328ead9.d.ts +0 -4
  368. package/universal-date-input/use-skeleton-1328ead9.d.ts +0 -4
  369. package/notification/browser-a216f694.d.ts +0 -6
  370. package/notification/cssm/browser-a216f694.d.ts +0 -6
  371. package/notification/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  372. package/notification/cssm/utils/getNotificationTestIds.d.ts +0 -5
  373. package/notification/cssm/utils/getNotificationTestIds.js +0 -18
  374. package/notification/esm/browser-a216f694.d.ts +0 -6
  375. package/notification/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  376. package/notification/esm/utils/getNotificationTestIds.d.ts +0 -5
  377. package/notification/esm/utils/getNotificationTestIds.js +0 -16
  378. package/notification/modern/browser-a216f694.d.ts +0 -6
  379. package/notification/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  380. package/notification/modern/utils/getNotificationTestIds.d.ts +0 -5
  381. package/notification/modern/utils/getNotificationTestIds.js +0 -16
  382. package/notification/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  383. package/notification/utils/getNotificationTestIds.d.ts +0 -5
  384. package/notification/utils/getNotificationTestIds.js +0 -18
  385. package/shared/cssm/exhaustiveCheck.d.ts +0 -2
  386. package/shared/cssm/exhaustiveCheck.js +0 -5
  387. package/shared/esm/exhaustiveCheck.d.ts +0 -2
  388. package/shared/esm/exhaustiveCheck.js +0 -3
  389. package/shared/exhaustiveCheck.d.ts +0 -2
  390. package/shared/exhaustiveCheck.js +0 -5
  391. package/shared/modern/exhaustiveCheck.d.ts +0 -2
  392. package/shared/modern/exhaustiveCheck.js +0 -3
  393. package/status-badge/consts/iconMap.d.ts +0 -4
  394. package/status-badge/consts/iconMap.js +0 -76
  395. package/status-badge/cssm/consts/iconMap.d.ts +0 -4
  396. package/status-badge/cssm/consts/iconMap.js +0 -76
  397. package/status-badge/cssm/hooks/useStatusBadgeIcon.d.ts +0 -5
  398. package/status-badge/cssm/hooks/useStatusBadgeIcon.js +0 -21
  399. package/status-badge/cssm/types/statusBadgePropTypes.d.ts +0 -7
  400. package/status-badge/cssm/types/statusBadgePropTypes.js +0 -1
  401. package/status-badge/esm/consts/iconMap.d.ts +0 -4
  402. package/status-badge/esm/consts/iconMap.js +0 -74
  403. package/status-badge/esm/hooks/useStatusBadgeIcon.d.ts +0 -5
  404. package/status-badge/esm/hooks/useStatusBadgeIcon.js +0 -32
  405. package/status-badge/esm/types/statusBadgePropTypes.d.ts +0 -7
  406. package/status-badge/esm/types/statusBadgePropTypes.js +0 -1
  407. package/status-badge/hooks/useStatusBadgeIcon.d.ts +0 -5
  408. package/status-badge/hooks/useStatusBadgeIcon.js +0 -21
  409. package/status-badge/modern/consts/iconMap.d.ts +0 -4
  410. package/status-badge/modern/consts/iconMap.js +0 -74
  411. package/status-badge/modern/hooks/useStatusBadgeIcon.d.ts +0 -5
  412. package/status-badge/modern/hooks/useStatusBadgeIcon.js +0 -34
  413. package/status-badge/modern/types/statusBadgePropTypes.d.ts +0 -7
  414. package/status-badge/modern/types/statusBadgePropTypes.js +0 -1
  415. package/status-badge/types/statusBadgePropTypes.d.ts +0 -7
  416. package/status-badge/types/statusBadgePropTypes.js +0 -1
  417. package/tab-bar/consts.d.ts +0 -9
  418. package/tab-bar/consts.js +0 -13
  419. package/tab-bar/cssm/consts.d.ts +0 -9
  420. package/tab-bar/cssm/consts.js +0 -13
  421. package/tab-bar/esm/consts.d.ts +0 -9
  422. package/tab-bar/esm/consts.js +0 -10
  423. package/tab-bar/modern/consts.d.ts +0 -9
  424. package/tab-bar/modern/consts.js +0 -10
  425. package/toast-plate/browser-a216f694.d.ts +0 -6
  426. package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
  427. package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.js +0 -13
  428. package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
  429. package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -26
  430. package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
  431. package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
  432. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
  433. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -14
  434. package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
  435. package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.js +0 -8
  436. package/toast-plate/cssm/browser-a216f694.d.ts +0 -6
  437. package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
  438. package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.js +0 -13
  439. package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
  440. package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -26
  441. package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
  442. package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
  443. package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
  444. package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -14
  445. package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
  446. package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.js +0 -8
  447. package/toast-plate/cssm/getDataTestId-73ea38f8.d.ts +0 -3
  448. package/toast-plate/cssm/getDataTestId-73ea38f8.js +0 -6
  449. package/toast-plate/cssm/index-307da6d7.d.ts +0 -71
  450. package/toast-plate/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  451. package/toast-plate/esm/browser-a216f694.d.ts +0 -6
  452. package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
  453. package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.js +0 -11
  454. package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
  455. package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -24
  456. package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
  457. package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
  458. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
  459. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -12
  460. package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
  461. package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.js +0 -6
  462. package/toast-plate/esm/getDataTestId-b3cf0f77.d.ts +0 -3
  463. package/toast-plate/esm/getDataTestId-b3cf0f77.js +0 -6
  464. package/toast-plate/esm/index-307da6d7.d.ts +0 -71
  465. package/toast-plate/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  466. package/toast-plate/getDataTestId-439ac98c.d.ts +0 -3
  467. package/toast-plate/getDataTestId-439ac98c.js +0 -6
  468. package/toast-plate/index-307da6d7.d.ts +0 -71
  469. package/toast-plate/modern/browser-a216f694.d.ts +0 -6
  470. package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
  471. package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.js +0 -11
  472. package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
  473. package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -24
  474. package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
  475. package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
  476. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
  477. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -12
  478. package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
  479. package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.js +0 -4
  480. package/toast-plate/modern/getDataTestId-8aa8ef85.d.ts +0 -3
  481. package/toast-plate/modern/getDataTestId-8aa8ef85.js +0 -6
  482. package/toast-plate/modern/index-307da6d7.d.ts +0 -71
  483. package/toast-plate/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  484. package/toast-plate/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  485. /package/calendar-range/esm/{index.module-912e88cf.js → index.module-7ba85cb1.js} +0 -0
  486. /package/calendar-range/{index.module-bf0591f0.js → index.module-c6ded4a2.js} +0 -0
  487. /package/calendar-range/modern/{index.module-636e08a2.js → index.module-0604d154.js} +0 -0
  488. /package/confirmation/{countdown-section-b30d5212.d.ts → countdown-section-5581379b.d.ts} +0 -0
  489. /package/confirmation/{countdown-section-b30d5212.js → countdown-section-5581379b.js} +0 -0
  490. /package/confirmation/esm/{countdown-section-c4f73a77.d.ts → countdown-section-2f02c020.d.ts} +0 -0
  491. /package/confirmation/esm/{countdown-section-c4f73a77.js → countdown-section-2f02c020.js} +0 -0
  492. /package/confirmation/modern/{countdown-section-f3215ad8.d.ts → countdown-section-27ad8a44.d.ts} +0 -0
  493. /package/confirmation/modern/{countdown-section-f3215ad8.js → countdown-section-27ad8a44.js} +0 -0
  494. /package/gallery/{buttons-19c30d23.d.ts → buttons-160fdb5a.d.ts} +0 -0
  495. /package/gallery/{buttons-19c30d23.js → buttons-160fdb5a.js} +0 -0
  496. /package/gallery/esm/{buttons-37ed3ab5.d.ts → buttons-f951e5ce.d.ts} +0 -0
  497. /package/gallery/esm/{buttons-37ed3ab5.js → buttons-f951e5ce.js} +0 -0
  498. /package/gallery/esm/{slide-8d1299a5.d.ts → slide-3595abb4.d.ts} +0 -0
  499. /package/gallery/esm/{slide-8d1299a5.js → slide-3595abb4.js} +0 -0
  500. /package/gallery/modern/{buttons-92efe05c.d.ts → buttons-a3ff616b.d.ts} +0 -0
  501. /package/gallery/modern/{buttons-92efe05c.js → buttons-a3ff616b.js} +0 -0
  502. /package/gallery/modern/{slide-57aa7661.d.ts → slide-acb49e8e.d.ts} +0 -0
  503. /package/gallery/modern/{slide-57aa7661.js → slide-acb49e8e.js} +0 -0
  504. /package/gallery/{slide-45ca49f1.d.ts → slide-2268997b.d.ts} +0 -0
  505. /package/gallery/{slide-45ca49f1.js → slide-2268997b.js} +0 -0
  506. /package/modal/esm/{layout.module-b635b128.js → layout.module-ec4a90b6.js} +0 -0
  507. /package/modal/{layout.module-34149103.js → layout.module-0786cc33.js} +0 -0
  508. /package/modal/modern/{layout.module-41e8947b.js → layout.module-8379050e.js} +0 -0
  509. /package/picker-button/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
  510. /package/picker-button/cssm/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
  511. /package/picker-button/esm/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
  512. /package/picker-button/modern/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
  513. /package/pure-cell/{component-5e8acf12.d.ts → component-911cc97f.d.ts} +0 -0
  514. /package/pure-cell/{component-5e8acf12.js → component-911cc97f.js} +0 -0
  515. /package/pure-cell/esm/{component-f28a5631.d.ts → component-53618056.d.ts} +0 -0
  516. /package/pure-cell/esm/{component-f28a5631.js → component-53618056.js} +0 -0
  517. /package/pure-cell/modern/{component-10bc9276.d.ts → component-254f4794.d.ts} +0 -0
  518. /package/pure-cell/modern/{component-10bc9276.js → component-254f4794.js} +0 -0
  519. /package/select/esm/{hook-c0758dcd.d.ts → hook-234f7a67.d.ts} +0 -0
  520. /package/select/esm/{hook-c0758dcd.js → hook-234f7a67.js} +0 -0
  521. /package/select/{hook-10a14b43.d.ts → hook-5f6e7b13.d.ts} +0 -0
  522. /package/select/{hook-10a14b43.js → hook-5f6e7b13.js} +0 -0
  523. /package/select/modern/{hook-5ccdb908.d.ts → hook-46a9009f.d.ts} +0 -0
  524. /package/select/modern/{hook-5ccdb908.js → hook-46a9009f.js} +0 -0
  525. /package/typography/{colors.module-5b90a9cc.js → colors.module-a11b73e9.js} +0 -0
  526. /package/typography/{common.module-53a00318.js → common.module-25e7ce83.js} +0 -0
  527. /package/typography/esm/{colors.module-f2501c6f.js → colors.module-e5414e42.js} +0 -0
  528. /package/typography/esm/{common.module-04c7810e.js → common.module-bd07cc74.js} +0 -0
  529. /package/typography/modern/{colors.module-83a4b747.js → colors.module-9fa7fdee.js} +0 -0
  530. /package/typography/modern/{common.module-278c339a.js → common.module-e73684d9.js} +0 -0
@@ -2,7 +2,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var React = require('react');
4
4
  var cn = require('classnames');
5
- var hooks_useStatusBadgeIcon = require('./hooks/useStatusBadgeIcon.js');
5
+ var CheckmarkCompactMIcon = require('@alfalab/icons-glyph/CheckmarkCompactMIcon');
6
+ var CheckmarkCompactSIcon = require('@alfalab/icons-glyph/CheckmarkCompactSIcon');
7
+ var ClockHandsCompactMIcon = require('@alfalab/icons-glyph/ClockHandsCompactMIcon');
8
+ var ClockHandsCompactSIcon = require('@alfalab/icons-glyph/ClockHandsCompactSIcon');
9
+ var CrossCompactMIcon = require('@alfalab/icons-glyph/CrossCompactMIcon');
10
+ var CrossCompactSIcon = require('@alfalab/icons-glyph/CrossCompactSIcon');
11
+ var ExclamationCompactMIcon = require('@alfalab/icons-glyph/ExclamationCompactMIcon');
12
+ var ExclamationCompactSIcon = require('@alfalab/icons-glyph/ExclamationCompactSIcon');
13
+ var InformationCompactMIcon = require('@alfalab/icons-glyph/InformationCompactMIcon');
14
+ var InformationCompactSIcon = require('@alfalab/icons-glyph/InformationCompactSIcon');
15
+ var StopBrickCompactMIcon = require('@alfalab/icons-glyph/StopBrickCompactMIcon');
16
+ var StopBrickMIcon = require('@alfalab/icons-glyph/StopBrickMIcon');
17
+ var StopBrickSIcon = require('@alfalab/icons-glyph/StopBrickSIcon');
6
18
 
7
19
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
8
20
 
@@ -22,9 +34,67 @@ var colorStyles = {
22
34
  default: defaultColors,
23
35
  inverted: invertedColors,
24
36
  };
37
+ var ICON_MAP = {
38
+ 'positive-checkmark': {
39
+ 16: CheckmarkCompactSIcon.CheckmarkCompactSIcon,
40
+ 20: CheckmarkCompactSIcon.CheckmarkCompactSIcon,
41
+ 24: CheckmarkCompactMIcon.CheckmarkCompactMIcon,
42
+ 32: CheckmarkCompactMIcon.CheckmarkCompactMIcon,
43
+ 40: CheckmarkCompactMIcon.CheckmarkCompactMIcon,
44
+ },
45
+ 'negative-cross': {
46
+ 16: CrossCompactSIcon.CrossCompactSIcon,
47
+ 20: CrossCompactSIcon.CrossCompactSIcon,
48
+ 24: CrossCompactMIcon.CrossCompactMIcon,
49
+ 32: CrossCompactMIcon.CrossCompactMIcon,
50
+ 40: CrossCompactMIcon.CrossCompactMIcon,
51
+ },
52
+ 'negative-alert': {
53
+ 16: ExclamationCompactSIcon.ExclamationCompactSIcon,
54
+ 20: ExclamationCompactSIcon.ExclamationCompactSIcon,
55
+ 24: ExclamationCompactMIcon.ExclamationCompactMIcon,
56
+ 32: ExclamationCompactMIcon.ExclamationCompactMIcon,
57
+ 40: ExclamationCompactMIcon.ExclamationCompactMIcon,
58
+ },
59
+ 'negative-block': {
60
+ 16: StopBrickSIcon.StopBrickSIcon,
61
+ 20: StopBrickSIcon.StopBrickSIcon,
62
+ 24: StopBrickCompactMIcon.StopBrickCompactMIcon,
63
+ 32: StopBrickMIcon.StopBrickMIcon,
64
+ 40: StopBrickMIcon.StopBrickMIcon,
65
+ },
66
+ 'attention-alert': {
67
+ 16: ExclamationCompactSIcon.ExclamationCompactSIcon,
68
+ 20: ExclamationCompactSIcon.ExclamationCompactSIcon,
69
+ 24: ExclamationCompactMIcon.ExclamationCompactMIcon,
70
+ 32: ExclamationCompactMIcon.ExclamationCompactMIcon,
71
+ 40: ExclamationCompactMIcon.ExclamationCompactMIcon,
72
+ },
73
+ 'neutral-information': {
74
+ 16: InformationCompactSIcon.InformationCompactSIcon,
75
+ 20: InformationCompactSIcon.InformationCompactSIcon,
76
+ 24: InformationCompactMIcon.InformationCompactMIcon,
77
+ 32: InformationCompactMIcon.InformationCompactMIcon,
78
+ 40: InformationCompactMIcon.InformationCompactMIcon,
79
+ },
80
+ 'neutral-operation': {
81
+ 16: ClockHandsCompactSIcon.ClockHandsCompactSIcon,
82
+ 20: ClockHandsCompactSIcon.ClockHandsCompactSIcon,
83
+ 24: ClockHandsCompactMIcon.ClockHandsCompactMIcon,
84
+ 32: ClockHandsCompactMIcon.ClockHandsCompactMIcon,
85
+ 40: ClockHandsCompactMIcon.ClockHandsCompactMIcon,
86
+ },
87
+ 'neutral-cross': {
88
+ 16: CrossCompactSIcon.CrossCompactSIcon,
89
+ 20: CrossCompactSIcon.CrossCompactSIcon,
90
+ 24: CrossCompactMIcon.CrossCompactMIcon,
91
+ 32: CrossCompactMIcon.CrossCompactMIcon,
92
+ 40: CrossCompactMIcon.CrossCompactMIcon,
93
+ },
94
+ };
25
95
  var StatusBadge = function (_a) {
26
- var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c, customIcons = _a.customIcons;
27
- var Icon = hooks_useStatusBadgeIcon.useStatusBadgeIcon(view, size, customIcons).Icon;
96
+ var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c;
97
+ var Icon = ICON_MAP[view][size];
28
98
  return (React__default.default.createElement("div", { className: cn__default.default(styles.component, className, styles["size-".concat(size)], colorStyles[colors].component, colorStyles[colors][view]), "data-test-id": dataTestId },
29
99
  React__default.default.createElement(Icon, null)));
30
100
  };
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { StatusBadgeCustomIcon, StatusBadgeSizes, StatusBadgeViews } from "./types/statusBadgePropTypes";
4
3
  type StatusBadgeProps = {
5
4
  /**
6
5
  * Дополнительный класс
@@ -10,7 +9,7 @@ type StatusBadgeProps = {
10
9
  * Размер компонента
11
10
  * @default 24
12
11
  */
13
- size?: StatusBadgeSizes;
12
+ size?: 16 | 20 | 24 | 32 | 40;
14
13
  /**
15
14
  * Набор цветов для компонента
16
15
  */
@@ -18,15 +17,11 @@ type StatusBadgeProps = {
18
17
  /**
19
18
  * Вид бейджа.
20
19
  */
21
- view: StatusBadgeViews;
20
+ view: 'positive-checkmark' | 'negative-cross' | 'negative-alert' | 'negative-block' | 'attention-alert' | 'neutral-information' | 'neutral-operation' | 'neutral-cross';
22
21
  /**
23
22
  * Идентификатор для систем автоматизированного тестирования
24
23
  */
25
24
  dataTestId?: string;
26
- /**
27
- * Кастомные иконки
28
- */
29
- customIcons?: StatusBadgeCustomIcon;
30
25
  };
31
- declare const StatusBadge: ({ className, dataTestId, size, view, colors, customIcons, }: StatusBadgeProps) => React.JSX.Element;
26
+ declare const StatusBadge: ({ className, dataTestId, size, view, colors, }: StatusBadgeProps) => React.JSX.Element;
32
27
  export { StatusBadgeProps, StatusBadge };
@@ -2,7 +2,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var React = require('react');
4
4
  var cn = require('classnames');
5
- var hooks_useStatusBadgeIcon = require('./hooks/useStatusBadgeIcon.js');
5
+ var CheckmarkCompactMIcon = require('@alfalab/icons-glyph/CheckmarkCompactMIcon');
6
+ var CheckmarkCompactSIcon = require('@alfalab/icons-glyph/CheckmarkCompactSIcon');
7
+ var ClockHandsCompactMIcon = require('@alfalab/icons-glyph/ClockHandsCompactMIcon');
8
+ var ClockHandsCompactSIcon = require('@alfalab/icons-glyph/ClockHandsCompactSIcon');
9
+ var CrossCompactMIcon = require('@alfalab/icons-glyph/CrossCompactMIcon');
10
+ var CrossCompactSIcon = require('@alfalab/icons-glyph/CrossCompactSIcon');
11
+ var ExclamationCompactMIcon = require('@alfalab/icons-glyph/ExclamationCompactMIcon');
12
+ var ExclamationCompactSIcon = require('@alfalab/icons-glyph/ExclamationCompactSIcon');
13
+ var InformationCompactMIcon = require('@alfalab/icons-glyph/InformationCompactMIcon');
14
+ var InformationCompactSIcon = require('@alfalab/icons-glyph/InformationCompactSIcon');
15
+ var StopBrickCompactMIcon = require('@alfalab/icons-glyph/StopBrickCompactMIcon');
16
+ var StopBrickMIcon = require('@alfalab/icons-glyph/StopBrickMIcon');
17
+ var StopBrickSIcon = require('@alfalab/icons-glyph/StopBrickSIcon');
6
18
  var defaultColors = require('./default.module.css');
7
19
  var styles = require('./index.module.css');
8
20
  var invertedColors = require('./inverted.module.css');
@@ -19,9 +31,67 @@ var colorStyles = {
19
31
  default: defaultColors__default.default,
20
32
  inverted: invertedColors__default.default,
21
33
  };
34
+ var ICON_MAP = {
35
+ 'positive-checkmark': {
36
+ 16: CheckmarkCompactSIcon.CheckmarkCompactSIcon,
37
+ 20: CheckmarkCompactSIcon.CheckmarkCompactSIcon,
38
+ 24: CheckmarkCompactMIcon.CheckmarkCompactMIcon,
39
+ 32: CheckmarkCompactMIcon.CheckmarkCompactMIcon,
40
+ 40: CheckmarkCompactMIcon.CheckmarkCompactMIcon,
41
+ },
42
+ 'negative-cross': {
43
+ 16: CrossCompactSIcon.CrossCompactSIcon,
44
+ 20: CrossCompactSIcon.CrossCompactSIcon,
45
+ 24: CrossCompactMIcon.CrossCompactMIcon,
46
+ 32: CrossCompactMIcon.CrossCompactMIcon,
47
+ 40: CrossCompactMIcon.CrossCompactMIcon,
48
+ },
49
+ 'negative-alert': {
50
+ 16: ExclamationCompactSIcon.ExclamationCompactSIcon,
51
+ 20: ExclamationCompactSIcon.ExclamationCompactSIcon,
52
+ 24: ExclamationCompactMIcon.ExclamationCompactMIcon,
53
+ 32: ExclamationCompactMIcon.ExclamationCompactMIcon,
54
+ 40: ExclamationCompactMIcon.ExclamationCompactMIcon,
55
+ },
56
+ 'negative-block': {
57
+ 16: StopBrickSIcon.StopBrickSIcon,
58
+ 20: StopBrickSIcon.StopBrickSIcon,
59
+ 24: StopBrickCompactMIcon.StopBrickCompactMIcon,
60
+ 32: StopBrickMIcon.StopBrickMIcon,
61
+ 40: StopBrickMIcon.StopBrickMIcon,
62
+ },
63
+ 'attention-alert': {
64
+ 16: ExclamationCompactSIcon.ExclamationCompactSIcon,
65
+ 20: ExclamationCompactSIcon.ExclamationCompactSIcon,
66
+ 24: ExclamationCompactMIcon.ExclamationCompactMIcon,
67
+ 32: ExclamationCompactMIcon.ExclamationCompactMIcon,
68
+ 40: ExclamationCompactMIcon.ExclamationCompactMIcon,
69
+ },
70
+ 'neutral-information': {
71
+ 16: InformationCompactSIcon.InformationCompactSIcon,
72
+ 20: InformationCompactSIcon.InformationCompactSIcon,
73
+ 24: InformationCompactMIcon.InformationCompactMIcon,
74
+ 32: InformationCompactMIcon.InformationCompactMIcon,
75
+ 40: InformationCompactMIcon.InformationCompactMIcon,
76
+ },
77
+ 'neutral-operation': {
78
+ 16: ClockHandsCompactSIcon.ClockHandsCompactSIcon,
79
+ 20: ClockHandsCompactSIcon.ClockHandsCompactSIcon,
80
+ 24: ClockHandsCompactMIcon.ClockHandsCompactMIcon,
81
+ 32: ClockHandsCompactMIcon.ClockHandsCompactMIcon,
82
+ 40: ClockHandsCompactMIcon.ClockHandsCompactMIcon,
83
+ },
84
+ 'neutral-cross': {
85
+ 16: CrossCompactSIcon.CrossCompactSIcon,
86
+ 20: CrossCompactSIcon.CrossCompactSIcon,
87
+ 24: CrossCompactMIcon.CrossCompactMIcon,
88
+ 32: CrossCompactMIcon.CrossCompactMIcon,
89
+ 40: CrossCompactMIcon.CrossCompactMIcon,
90
+ },
91
+ };
22
92
  var StatusBadge = function (_a) {
23
- var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c, customIcons = _a.customIcons;
24
- var Icon = hooks_useStatusBadgeIcon.useStatusBadgeIcon(view, size, customIcons).Icon;
93
+ var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c;
94
+ var Icon = ICON_MAP[view][size];
25
95
  return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, className, styles__default.default["size-".concat(size)], colorStyles[colors].component, colorStyles[colors][view]), "data-test-id": dataTestId },
26
96
  React__default.default.createElement(Icon, null)));
27
97
  };
@@ -1,2 +1 @@
1
1
  export * from "./Component";
2
- export { StatusBadgeViews, StatusBadgeSizes, StatusBadgeIcon, StatusBadgeCustomIcon } from "./types/statusBadgePropTypes";
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { StatusBadgeCustomIcon, StatusBadgeSizes, StatusBadgeViews } from "./types/statusBadgePropTypes";
4
3
  type StatusBadgeProps = {
5
4
  /**
6
5
  * Дополнительный класс
@@ -10,7 +9,7 @@ type StatusBadgeProps = {
10
9
  * Размер компонента
11
10
  * @default 24
12
11
  */
13
- size?: StatusBadgeSizes;
12
+ size?: 16 | 20 | 24 | 32 | 40;
14
13
  /**
15
14
  * Набор цветов для компонента
16
15
  */
@@ -18,15 +17,11 @@ type StatusBadgeProps = {
18
17
  /**
19
18
  * Вид бейджа.
20
19
  */
21
- view: StatusBadgeViews;
20
+ view: 'positive-checkmark' | 'negative-cross' | 'negative-alert' | 'negative-block' | 'attention-alert' | 'neutral-information' | 'neutral-operation' | 'neutral-cross';
22
21
  /**
23
22
  * Идентификатор для систем автоматизированного тестирования
24
23
  */
25
24
  dataTestId?: string;
26
- /**
27
- * Кастомные иконки
28
- */
29
- customIcons?: StatusBadgeCustomIcon;
30
25
  };
31
- declare const StatusBadge: ({ className, dataTestId, size, view, colors, customIcons, }: StatusBadgeProps) => React.JSX.Element;
26
+ declare const StatusBadge: ({ className, dataTestId, size, view, colors, }: StatusBadgeProps) => React.JSX.Element;
32
27
  export { StatusBadgeProps, StatusBadge };
@@ -1,21 +1,18 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { useStatusBadgeIcon } from './hooks/useStatusBadgeIcon.js';
4
- import 'tslib';
5
- import './consts/iconMap.js';
6
- import '@alfalab/icons-glyph/CheckmarkCompactMIcon';
7
- import '@alfalab/icons-glyph/CheckmarkCompactSIcon';
8
- import '@alfalab/icons-glyph/ClockHandsCompactMIcon';
9
- import '@alfalab/icons-glyph/ClockHandsCompactSIcon';
10
- import '@alfalab/icons-glyph/CrossCompactMIcon';
11
- import '@alfalab/icons-glyph/CrossCompactSIcon';
12
- import '@alfalab/icons-glyph/ExclamationCompactMIcon';
13
- import '@alfalab/icons-glyph/ExclamationCompactSIcon';
14
- import '@alfalab/icons-glyph/InformationCompactMIcon';
15
- import '@alfalab/icons-glyph/InformationCompactSIcon';
16
- import '@alfalab/icons-glyph/StopBrickCompactMIcon';
17
- import '@alfalab/icons-glyph/StopBrickMIcon';
18
- import '@alfalab/icons-glyph/StopBrickSIcon';
3
+ import { CheckmarkCompactMIcon } from '@alfalab/icons-glyph/CheckmarkCompactMIcon';
4
+ import { CheckmarkCompactSIcon } from '@alfalab/icons-glyph/CheckmarkCompactSIcon';
5
+ import { ClockHandsCompactMIcon } from '@alfalab/icons-glyph/ClockHandsCompactMIcon';
6
+ import { ClockHandsCompactSIcon } from '@alfalab/icons-glyph/ClockHandsCompactSIcon';
7
+ import { CrossCompactMIcon } from '@alfalab/icons-glyph/CrossCompactMIcon';
8
+ import { CrossCompactSIcon } from '@alfalab/icons-glyph/CrossCompactSIcon';
9
+ import { ExclamationCompactMIcon } from '@alfalab/icons-glyph/ExclamationCompactMIcon';
10
+ import { ExclamationCompactSIcon } from '@alfalab/icons-glyph/ExclamationCompactSIcon';
11
+ import { InformationCompactMIcon } from '@alfalab/icons-glyph/InformationCompactMIcon';
12
+ import { InformationCompactSIcon } from '@alfalab/icons-glyph/InformationCompactSIcon';
13
+ import { StopBrickCompactMIcon } from '@alfalab/icons-glyph/StopBrickCompactMIcon';
14
+ import { StopBrickMIcon } from '@alfalab/icons-glyph/StopBrickMIcon';
15
+ import { StopBrickSIcon } from '@alfalab/icons-glyph/StopBrickSIcon';
19
16
 
20
17
  var defaultColors = {"positive-checkmark":"status-badge__positive-checkmark_1qjlx","negative-cross":"status-badge__negative-cross_1qjlx","negative-alert":"status-badge__negative-alert_1qjlx","negative-block":"status-badge__negative-block_1qjlx","attention-alert":"status-badge__attention-alert_1qjlx","neutral-information":"status-badge__neutral-information_1qjlx","neutral-operation":"status-badge__neutral-operation_1qjlx","neutral-cross":"status-badge__neutral-cross_1qjlx"};
21
18
  require('./default.css');
@@ -30,9 +27,67 @@ var colorStyles = {
30
27
  default: defaultColors,
31
28
  inverted: invertedColors,
32
29
  };
30
+ var ICON_MAP = {
31
+ 'positive-checkmark': {
32
+ 16: CheckmarkCompactSIcon,
33
+ 20: CheckmarkCompactSIcon,
34
+ 24: CheckmarkCompactMIcon,
35
+ 32: CheckmarkCompactMIcon,
36
+ 40: CheckmarkCompactMIcon,
37
+ },
38
+ 'negative-cross': {
39
+ 16: CrossCompactSIcon,
40
+ 20: CrossCompactSIcon,
41
+ 24: CrossCompactMIcon,
42
+ 32: CrossCompactMIcon,
43
+ 40: CrossCompactMIcon,
44
+ },
45
+ 'negative-alert': {
46
+ 16: ExclamationCompactSIcon,
47
+ 20: ExclamationCompactSIcon,
48
+ 24: ExclamationCompactMIcon,
49
+ 32: ExclamationCompactMIcon,
50
+ 40: ExclamationCompactMIcon,
51
+ },
52
+ 'negative-block': {
53
+ 16: StopBrickSIcon,
54
+ 20: StopBrickSIcon,
55
+ 24: StopBrickCompactMIcon,
56
+ 32: StopBrickMIcon,
57
+ 40: StopBrickMIcon,
58
+ },
59
+ 'attention-alert': {
60
+ 16: ExclamationCompactSIcon,
61
+ 20: ExclamationCompactSIcon,
62
+ 24: ExclamationCompactMIcon,
63
+ 32: ExclamationCompactMIcon,
64
+ 40: ExclamationCompactMIcon,
65
+ },
66
+ 'neutral-information': {
67
+ 16: InformationCompactSIcon,
68
+ 20: InformationCompactSIcon,
69
+ 24: InformationCompactMIcon,
70
+ 32: InformationCompactMIcon,
71
+ 40: InformationCompactMIcon,
72
+ },
73
+ 'neutral-operation': {
74
+ 16: ClockHandsCompactSIcon,
75
+ 20: ClockHandsCompactSIcon,
76
+ 24: ClockHandsCompactMIcon,
77
+ 32: ClockHandsCompactMIcon,
78
+ 40: ClockHandsCompactMIcon,
79
+ },
80
+ 'neutral-cross': {
81
+ 16: CrossCompactSIcon,
82
+ 20: CrossCompactSIcon,
83
+ 24: CrossCompactMIcon,
84
+ 32: CrossCompactMIcon,
85
+ 40: CrossCompactMIcon,
86
+ },
87
+ };
33
88
  var StatusBadge = function (_a) {
34
- var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c, customIcons = _a.customIcons;
35
- var Icon = useStatusBadgeIcon(view, size, customIcons).Icon;
89
+ var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c;
90
+ var Icon = ICON_MAP[view][size];
36
91
  return (React.createElement("div", { className: cn(styles.component, className, styles["size-".concat(size)], colorStyles[colors].component, colorStyles[colors][view]), "data-test-id": dataTestId },
37
92
  React.createElement(Icon, null)));
38
93
  };
@@ -1,2 +1 @@
1
1
  export * from "./Component";
2
- export { StatusBadgeViews, StatusBadgeSizes, StatusBadgeIcon, StatusBadgeCustomIcon } from "./types/statusBadgePropTypes";
@@ -1,9 +1,6 @@
1
1
  export { StatusBadge } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import './hooks/useStatusBadgeIcon.js';
5
- import 'tslib';
6
- import './consts/iconMap.js';
7
4
  import '@alfalab/icons-glyph/CheckmarkCompactMIcon';
8
5
  import '@alfalab/icons-glyph/CheckmarkCompactSIcon';
9
6
  import '@alfalab/icons-glyph/ClockHandsCompactMIcon';
@@ -1,2 +1 @@
1
1
  export * from "./Component";
2
- export { StatusBadgeViews, StatusBadgeSizes, StatusBadgeIcon, StatusBadgeCustomIcon } from "./types/statusBadgePropTypes";
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { StatusBadgeCustomIcon, StatusBadgeSizes, StatusBadgeViews } from "./types/statusBadgePropTypes";
4
3
  type StatusBadgeProps = {
5
4
  /**
6
5
  * Дополнительный класс
@@ -10,7 +9,7 @@ type StatusBadgeProps = {
10
9
  * Размер компонента
11
10
  * @default 24
12
11
  */
13
- size?: StatusBadgeSizes;
12
+ size?: 16 | 20 | 24 | 32 | 40;
14
13
  /**
15
14
  * Набор цветов для компонента
16
15
  */
@@ -18,15 +17,11 @@ type StatusBadgeProps = {
18
17
  /**
19
18
  * Вид бейджа.
20
19
  */
21
- view: StatusBadgeViews;
20
+ view: 'positive-checkmark' | 'negative-cross' | 'negative-alert' | 'negative-block' | 'attention-alert' | 'neutral-information' | 'neutral-operation' | 'neutral-cross';
22
21
  /**
23
22
  * Идентификатор для систем автоматизированного тестирования
24
23
  */
25
24
  dataTestId?: string;
26
- /**
27
- * Кастомные иконки
28
- */
29
- customIcons?: StatusBadgeCustomIcon;
30
25
  };
31
- declare const StatusBadge: ({ className, dataTestId, size, view, colors, customIcons, }: StatusBadgeProps) => React.JSX.Element;
26
+ declare const StatusBadge: ({ className, dataTestId, size, view, colors, }: StatusBadgeProps) => React.JSX.Element;
32
27
  export { StatusBadgeProps, StatusBadge };
@@ -1,20 +1,18 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { useStatusBadgeIcon } from './hooks/useStatusBadgeIcon.js';
4
- import './consts/iconMap.js';
5
- import '@alfalab/icons-glyph/CheckmarkCompactMIcon';
6
- import '@alfalab/icons-glyph/CheckmarkCompactSIcon';
7
- import '@alfalab/icons-glyph/ClockHandsCompactMIcon';
8
- import '@alfalab/icons-glyph/ClockHandsCompactSIcon';
9
- import '@alfalab/icons-glyph/CrossCompactMIcon';
10
- import '@alfalab/icons-glyph/CrossCompactSIcon';
11
- import '@alfalab/icons-glyph/ExclamationCompactMIcon';
12
- import '@alfalab/icons-glyph/ExclamationCompactSIcon';
13
- import '@alfalab/icons-glyph/InformationCompactMIcon';
14
- import '@alfalab/icons-glyph/InformationCompactSIcon';
15
- import '@alfalab/icons-glyph/StopBrickCompactMIcon';
16
- import '@alfalab/icons-glyph/StopBrickMIcon';
17
- import '@alfalab/icons-glyph/StopBrickSIcon';
3
+ import { CheckmarkCompactMIcon } from '@alfalab/icons-glyph/CheckmarkCompactMIcon';
4
+ import { CheckmarkCompactSIcon } from '@alfalab/icons-glyph/CheckmarkCompactSIcon';
5
+ import { ClockHandsCompactMIcon } from '@alfalab/icons-glyph/ClockHandsCompactMIcon';
6
+ import { ClockHandsCompactSIcon } from '@alfalab/icons-glyph/ClockHandsCompactSIcon';
7
+ import { CrossCompactMIcon } from '@alfalab/icons-glyph/CrossCompactMIcon';
8
+ import { CrossCompactSIcon } from '@alfalab/icons-glyph/CrossCompactSIcon';
9
+ import { ExclamationCompactMIcon } from '@alfalab/icons-glyph/ExclamationCompactMIcon';
10
+ import { ExclamationCompactSIcon } from '@alfalab/icons-glyph/ExclamationCompactSIcon';
11
+ import { InformationCompactMIcon } from '@alfalab/icons-glyph/InformationCompactMIcon';
12
+ import { InformationCompactSIcon } from '@alfalab/icons-glyph/InformationCompactSIcon';
13
+ import { StopBrickCompactMIcon } from '@alfalab/icons-glyph/StopBrickCompactMIcon';
14
+ import { StopBrickMIcon } from '@alfalab/icons-glyph/StopBrickMIcon';
15
+ import { StopBrickSIcon } from '@alfalab/icons-glyph/StopBrickSIcon';
18
16
 
19
17
  const defaultColors = {"positive-checkmark":"status-badge__positive-checkmark_1qjlx","negative-cross":"status-badge__negative-cross_1qjlx","negative-alert":"status-badge__negative-alert_1qjlx","negative-block":"status-badge__negative-block_1qjlx","attention-alert":"status-badge__attention-alert_1qjlx","neutral-information":"status-badge__neutral-information_1qjlx","neutral-operation":"status-badge__neutral-operation_1qjlx","neutral-cross":"status-badge__neutral-cross_1qjlx"};
20
18
  require('./default.css');
@@ -29,8 +27,66 @@ const colorStyles = {
29
27
  default: defaultColors,
30
28
  inverted: invertedColors,
31
29
  };
32
- const StatusBadge = ({ className, dataTestId, size = 24, view, colors = 'default', customIcons, }) => {
33
- const { Icon } = useStatusBadgeIcon(view, size, customIcons);
30
+ const ICON_MAP = {
31
+ 'positive-checkmark': {
32
+ 16: CheckmarkCompactSIcon,
33
+ 20: CheckmarkCompactSIcon,
34
+ 24: CheckmarkCompactMIcon,
35
+ 32: CheckmarkCompactMIcon,
36
+ 40: CheckmarkCompactMIcon,
37
+ },
38
+ 'negative-cross': {
39
+ 16: CrossCompactSIcon,
40
+ 20: CrossCompactSIcon,
41
+ 24: CrossCompactMIcon,
42
+ 32: CrossCompactMIcon,
43
+ 40: CrossCompactMIcon,
44
+ },
45
+ 'negative-alert': {
46
+ 16: ExclamationCompactSIcon,
47
+ 20: ExclamationCompactSIcon,
48
+ 24: ExclamationCompactMIcon,
49
+ 32: ExclamationCompactMIcon,
50
+ 40: ExclamationCompactMIcon,
51
+ },
52
+ 'negative-block': {
53
+ 16: StopBrickSIcon,
54
+ 20: StopBrickSIcon,
55
+ 24: StopBrickCompactMIcon,
56
+ 32: StopBrickMIcon,
57
+ 40: StopBrickMIcon,
58
+ },
59
+ 'attention-alert': {
60
+ 16: ExclamationCompactSIcon,
61
+ 20: ExclamationCompactSIcon,
62
+ 24: ExclamationCompactMIcon,
63
+ 32: ExclamationCompactMIcon,
64
+ 40: ExclamationCompactMIcon,
65
+ },
66
+ 'neutral-information': {
67
+ 16: InformationCompactSIcon,
68
+ 20: InformationCompactSIcon,
69
+ 24: InformationCompactMIcon,
70
+ 32: InformationCompactMIcon,
71
+ 40: InformationCompactMIcon,
72
+ },
73
+ 'neutral-operation': {
74
+ 16: ClockHandsCompactSIcon,
75
+ 20: ClockHandsCompactSIcon,
76
+ 24: ClockHandsCompactMIcon,
77
+ 32: ClockHandsCompactMIcon,
78
+ 40: ClockHandsCompactMIcon,
79
+ },
80
+ 'neutral-cross': {
81
+ 16: CrossCompactSIcon,
82
+ 20: CrossCompactSIcon,
83
+ 24: CrossCompactMIcon,
84
+ 32: CrossCompactMIcon,
85
+ 40: CrossCompactMIcon,
86
+ },
87
+ };
88
+ const StatusBadge = ({ className, dataTestId, size = 24, view, colors = 'default', }) => {
89
+ const Icon = ICON_MAP[view][size];
34
90
  return (React.createElement("div", { className: cn(styles.component, className, styles[`size-${size}`], colorStyles[colors].component, colorStyles[colors][view]), "data-test-id": dataTestId },
35
91
  React.createElement(Icon, null)));
36
92
  };
@@ -1,2 +1 @@
1
1
  export * from "./Component";
2
- export { StatusBadgeViews, StatusBadgeSizes, StatusBadgeIcon, StatusBadgeCustomIcon } from "./types/statusBadgePropTypes";
@@ -1,8 +1,6 @@
1
1
  export { StatusBadge } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import './hooks/useStatusBadgeIcon.js';
5
- import './consts/iconMap.js';
6
4
  import '@alfalab/icons-glyph/CheckmarkCompactMIcon';
7
5
  import '@alfalab/icons-glyph/CheckmarkCompactSIcon';
8
6
  import '@alfalab/icons-glyph/ClockHandsCompactMIcon';
@@ -11,22 +11,18 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"component":"tab-bar__component_1naag","modal-bg-primary":"tab-bar__modal-bg-primary_1naag","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1naag","border":"tab-bar__border_1naag"};
14
+ var styles = {"component":"tab-bar__component_1naag","border":"tab-bar__border_1naag"};
15
15
  require('./index.css');
16
16
 
17
17
  var TabBarComponent = React.forwardRef(function (_a, ref) {
18
18
  var _b;
19
- var children = _a.children, className = _a.className, selectedId = _a.selectedId, border = _a.border, dataTestId = _a.dataTestId, tabClassNames = _a.tabClassNames, onChange = _a.onChange, _c = _a.accentColor, accentColor = _c === void 0 ? 'primary' : _c, _d = _a.bgColor, bgColor = _d === void 0 ? 'modal-bg-primary' : _d, restProps = tslib.__rest(_a, ["children", "className", "selectedId", "border", "dataTestId", "tabClassNames", "onChange", "accentColor", "bgColor"]);
19
+ var children = _a.children, className = _a.className, selectedId = _a.selectedId, border = _a.border, dataTestId = _a.dataTestId, tabClassNames = _a.tabClassNames, onChange = _a.onChange, restProps = tslib.__rest(_a, ["children", "className", "selectedId", "border", "dataTestId", "tabClassNames", "onChange"]);
20
20
  if (React.Children.count(children) > 5) {
21
21
  // eslint-disable-next-line no-console
22
22
  console.error('Компонент TabBar не может содержать больше 5 табов');
23
23
  }
24
- return (React__default.default.createElement("nav", tslib.__assign({ "data-test-id": dataTestId }, restProps, { ref: ref, className: cn__default.default(styles.component, styles[bgColor], className, (_b = {},
25
- _b[styles.border] = border,
26
- _b)) }), React.Children.map(children, function (tab) {
24
+ return (React__default.default.createElement("nav", tslib.__assign({ "data-test-id": dataTestId }, restProps, { ref: ref, className: cn__default.default(styles.component, className, (_b = {}, _b[styles.border] = border, _b)) }), React.Children.map(children, function (tab) {
27
25
  return React.cloneElement(tab, {
28
- bgColor: bgColor,
29
- accentColor: accentColor,
30
26
  selected: tab.props.id === selectedId,
31
27
  onChange: onChange,
32
28
  tabClassNames: tabClassNames,
@@ -3,38 +3,34 @@ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
- var coreComponentsIndicator = require('../../../indicator');
6
+ var coreComponentsBadge = require('../../../badge');
7
7
  var coreComponentsTypography = require('../../../typography');
8
- var consts = require('../../consts.js');
9
8
 
10
9
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
10
 
12
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
13
 
15
- var styles = {"component":"tab-bar__component_zqkzg","primary":"tab-bar__primary_zqkzg","secondary":"tab-bar__secondary_zqkzg","icon":"tab-bar__icon_zqkzg","label":"tab-bar__label_zqkzg","labelSelected":"tab-bar__labelSelected_zqkzg","indicator":"tab-bar__indicator_zqkzg"};
14
+ var styles = {"component":"tab-bar__component_zqkzg","selected":"tab-bar__selected_zqkzg","icon":"tab-bar__icon_zqkzg","label":"tab-bar__label_zqkzg","labelSelected":"tab-bar__labelSelected_zqkzg","indicator":"tab-bar__indicator_zqkzg"};
16
15
  require('./index.css');
17
16
 
18
17
  var TabComponent = React.forwardRef(function (_a, ref) {
19
18
  var _b, _c;
20
- var showIndicator = _a.showIndicator, indicatorProps = _a.indicatorProps, label = _a.label, icon = _a.icon, id = _a.id, selected = _a.selected, onChange = _a.onChange, onClick = _a.onClick, _d = _a.tabClassNames, tabClassNames = _d === void 0 ? {} : _d, dataTestId = _a.dataTestId, className = _a.className, labelClassName = _a.labelClassName, selectedClassName = _a.selectedClassName, iconClassName = _a.iconClassName, href = _a.href, _e = _a.Component, Component = _e === void 0 ? href ? 'a' : 'button' : _e, _f = _a.accentColor, accentColor = _f === void 0 ? 'primary' : _f, _g = _a.bgColor, bgColor = _g === void 0 ? 'modal-bg-primary' : _g, restProps = tslib.__rest(_a, ["showIndicator", "indicatorProps", "label", "icon", "id", "selected", "onChange", "onClick", "tabClassNames", "dataTestId", "className", "labelClassName", "selectedClassName", "iconClassName", "href", "Component", "accentColor", "bgColor"]);
19
+ var showIndicator = _a.showIndicator, indicatorProps = _a.indicatorProps, label = _a.label, icon = _a.icon, id = _a.id, selected = _a.selected, onChange = _a.onChange, onClick = _a.onClick, _d = _a.tabClassNames, tabClassNames = _d === void 0 ? {} : _d, dataTestId = _a.dataTestId, className = _a.className, labelClassName = _a.labelClassName, selectedClassName = _a.selectedClassName, iconClassName = _a.iconClassName, href = _a.href, _e = _a.Component, Component = _e === void 0 ? href ? 'a' : 'button' : _e, restProps = tslib.__rest(_a, ["showIndicator", "indicatorProps", "label", "icon", "id", "selected", "onChange", "onClick", "tabClassNames", "dataTestId", "className", "labelClassName", "selectedClassName", "iconClassName", "href", "Component"]);
21
20
  var handleClick = function (event) {
22
21
  onChange === null || onChange === void 0 ? void 0 : onChange(id);
23
22
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
24
23
  };
25
24
  var commonClassName = tabClassNames.className, commonLabelClassName = tabClassNames.labelClassName, commonSelectedClassName = tabClassNames.selectedClassName, commonIconClassName = tabClassNames.iconClassName;
26
25
  return (React__default.default.createElement(Component, tslib.__assign({ "data-test-id": dataTestId, tabIndex: 0 }, (Component === 'button' ? { type: 'button' } : null), restProps, { href: href, id: id, ref: ref, className: cn__default.default(styles.component, commonClassName, className, selected && commonSelectedClassName, selected && selectedClassName, (_b = {},
27
- _b[styles[accentColor]] = selected,
26
+ _b[styles.selected] = selected,
28
27
  _b)), onClick: handleClick }),
29
28
  React__default.default.createElement("div", { className: cn__default.default(styles.icon, commonIconClassName, iconClassName) }, React.isValidElement(icon) ? React.cloneElement(icon, { selected: selected }) : icon),
30
29
  React__default.default.createElement(coreComponentsTypography.Typography.Text, { weight: 'medium', view: 'secondary-small', className: cn__default.default(styles.label, commonLabelClassName, labelClassName, (_c = {},
31
30
  _c[styles.labelSelected] = selected,
32
31
  _c)) }, React.isValidElement(label) ? React.cloneElement(label, { selected: selected }) : label),
33
32
  showIndicator && (React__default.default.createElement("div", { className: styles.indicator },
34
- React__default.default.createElement(coreComponentsIndicator.Indicator, tslib.__assign({}, indicatorProps, { height: (indicatorProps === null || indicatorProps === void 0 ? void 0 : indicatorProps.value) ? 16 : undefined, border: {
35
- width: 2,
36
- color: consts.INDICATOR_BORDER_COLOR[bgColor],
37
- }, backgroundColor: consts.INDICATOR_BG_COLOR[accentColor] }))))));
33
+ React__default.default.createElement(coreComponentsBadge.Badge, tslib.__assign({ visibleIconOutline: true }, indicatorProps, { view: 'count' }))))));
38
34
  });
39
35
  var Tab = TabComponent;
40
36
 
@@ -2,7 +2,6 @@
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-accent-primary: #ef3124;
5
- --color-light-accent-secondary: #212124;
6
5
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
7
6
  --color-light-text-secondary: rgba(4, 4, 19, 0.55); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
8
7
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -44,10 +43,8 @@
44
43
  align-items: center;
45
44
  padding: var(--gap-xs) 0;
46
45
  color: var(--color-light-neutral-translucent-700);
47
- } .tab-bar__primary_zqkzg {
46
+ } .tab-bar__selected_zqkzg {
48
47
  color: var(--color-light-accent-primary);
49
- } .tab-bar__secondary_zqkzg {
50
- color: var(--color-light-accent-secondary);
51
48
  } .tab-bar__icon_zqkzg {
52
49
  display: flex;
53
50
  align-items: center;
@@ -67,7 +64,7 @@
67
64
  color: inherit;
68
65
  } .tab-bar__indicator_zqkzg {
69
66
  position: absolute;
70
- top: 3px;
67
+ top: var(--gap-2xs);
71
68
  left: calc(50% + var(--gap-2xs));
72
69
  height: 16px;
73
70
  min-width: 16px;