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

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 (436) hide show
  1. package/bottom-sheet/component.js +12 -22
  2. package/bottom-sheet/cssm/component.js +12 -22
  3. package/bottom-sheet/esm/component.js +12 -23
  4. package/bottom-sheet/esm/index.js +0 -2
  5. package/bottom-sheet/modern/component.js +9 -23
  6. package/bottom-sheet/modern/index.js +0 -2
  7. package/calendar-range/esm/Component.js +1 -1
  8. package/calendar-range/esm/index.js +1 -1
  9. package/calendar-range/esm/views/popover.js +1 -1
  10. package/calendar-range/esm/views/static.js +1 -1
  11. package/calendar-range/modern/Component.js +1 -1
  12. package/calendar-range/modern/index.js +1 -1
  13. package/calendar-range/modern/views/popover.js +1 -1
  14. package/calendar-range/modern/views/static.js +1 -1
  15. package/calendar-range/utils.js +1 -3
  16. package/calendar-range/views/popover.js +1 -1
  17. package/calendar-range/views/static.js +1 -1
  18. package/dropzone/Component.d.ts +1 -1
  19. package/dropzone/Component.js +1 -1
  20. package/dropzone/cssm/Component.d.ts +1 -1
  21. package/dropzone/cssm/Component.js +1 -1
  22. package/dropzone/esm/Component.d.ts +1 -1
  23. package/dropzone/esm/Component.js +1 -1
  24. package/dropzone/modern/Component.d.ts +1 -1
  25. package/dropzone/modern/Component.js +1 -1
  26. package/gallery/components/header/Component.js +1 -1
  27. package/gallery/components/header/buttons.js +1 -1
  28. package/gallery/components/image-viewer/component.js +1 -1
  29. package/gallery/components/image-viewer/slide.js +1 -1
  30. package/gallery/esm/Component.js +2 -2
  31. package/gallery/esm/components/header/Component.js +1 -1
  32. package/gallery/esm/components/header/buttons.js +1 -1
  33. package/gallery/esm/components/header/index.js +1 -1
  34. package/gallery/esm/components/image-preview/Component.js +1 -1
  35. package/gallery/esm/components/image-preview/index.js +1 -1
  36. package/gallery/esm/components/image-viewer/component.js +1 -1
  37. package/gallery/esm/components/image-viewer/index.js +1 -1
  38. package/gallery/esm/components/image-viewer/slide.js +1 -1
  39. package/gallery/esm/components/index.js +2 -2
  40. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  41. package/gallery/esm/components/navigation-bar/index.js +1 -1
  42. package/gallery/esm/index.js +2 -2
  43. package/gallery/modern/Component.js +2 -2
  44. package/gallery/modern/components/header/Component.js +1 -1
  45. package/gallery/modern/components/header/buttons.js +1 -1
  46. package/gallery/modern/components/header/index.js +1 -1
  47. package/gallery/modern/components/image-preview/Component.js +1 -1
  48. package/gallery/modern/components/image-preview/index.js +1 -1
  49. package/gallery/modern/components/image-viewer/component.js +1 -1
  50. package/gallery/modern/components/image-viewer/index.js +1 -1
  51. package/gallery/modern/components/image-viewer/slide.js +1 -1
  52. package/gallery/modern/components/index.js +2 -2
  53. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  54. package/gallery/modern/components/navigation-bar/index.js +1 -1
  55. package/gallery/modern/index.js +2 -2
  56. package/international-phone-input/cssm/typings-57569e57.d.ts +2 -18
  57. package/international-phone-input/cssm/use-skeleton-1328ead9.d.ts +4 -0
  58. package/international-phone-input/esm/typings-57569e57.d.ts +2 -18
  59. package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +4 -0
  60. package/international-phone-input/modern/typings-57569e57.d.ts +2 -18
  61. package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +4 -0
  62. package/international-phone-input/typings-57569e57.d.ts +2 -18
  63. package/international-phone-input/use-skeleton-1328ead9.d.ts +4 -0
  64. package/modal/components/controls/Component.js +1 -1
  65. package/modal/components/footer/Component.js +1 -1
  66. package/modal/esm/Component.responsive.js +1 -1
  67. package/modal/esm/components/controls/Component.js +1 -1
  68. package/modal/esm/components/controls/index.js +1 -1
  69. package/modal/esm/components/footer/Component.js +1 -1
  70. package/modal/esm/desktop/Component.desktop.js +1 -1
  71. package/modal/esm/desktop/index.js +1 -1
  72. package/modal/esm/index.js +1 -1
  73. package/modal/esm/mobile/Component.mobile.js +1 -1
  74. package/modal/esm/mobile/index.js +1 -1
  75. package/modal/modern/Component.responsive.js +1 -1
  76. package/modal/modern/components/controls/Component.js +1 -1
  77. package/modal/modern/components/controls/index.js +1 -1
  78. package/modal/modern/components/footer/Component.js +1 -1
  79. package/modal/modern/desktop/Component.desktop.js +1 -1
  80. package/modal/modern/desktop/index.js +1 -1
  81. package/modal/modern/index.js +1 -1
  82. package/modal/modern/mobile/Component.mobile.js +1 -1
  83. package/modal/modern/mobile/index.js +1 -1
  84. package/notification/browser-a216f694.d.ts +6 -0
  85. package/notification/cssm/browser-a216f694.d.ts +6 -0
  86. package/notification/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  87. package/notification/cssm/utils/getNotificationTestIds.d.ts +5 -0
  88. package/notification/cssm/utils/getNotificationTestIds.js +18 -0
  89. package/notification/esm/browser-a216f694.d.ts +6 -0
  90. package/notification/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  91. package/notification/esm/utils/getNotificationTestIds.d.ts +5 -0
  92. package/notification/esm/utils/getNotificationTestIds.js +16 -0
  93. package/notification/modern/browser-a216f694.d.ts +6 -0
  94. package/notification/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  95. package/notification/modern/utils/getNotificationTestIds.d.ts +5 -0
  96. package/notification/modern/utils/getNotificationTestIds.js +16 -0
  97. package/notification/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  98. package/notification/utils/getNotificationTestIds.d.ts +5 -0
  99. package/notification/utils/getNotificationTestIds.js +18 -0
  100. package/package.json +1 -1
  101. package/picker-button/{esm/index-a5b021bd.d.ts → cssm/index-307da6d7.d.ts} +2 -1
  102. package/picker-button/cssm/typings-57569e57.d.ts +2 -18
  103. package/picker-button/cssm/use-skeleton-1328ead9.d.ts +4 -0
  104. package/picker-button/{modern/index-a5b021bd.d.ts → esm/index-307da6d7.d.ts} +2 -1
  105. package/picker-button/esm/typings-57569e57.d.ts +2 -18
  106. package/picker-button/esm/use-skeleton-1328ead9.d.ts +4 -0
  107. package/picker-button/{cssm/index-a5b021bd.d.ts → index-307da6d7.d.ts} +2 -1
  108. package/picker-button/{index-a5b021bd.d.ts → modern/index-307da6d7.d.ts} +2 -1
  109. package/picker-button/modern/typings-57569e57.d.ts +2 -18
  110. package/picker-button/modern/use-skeleton-1328ead9.d.ts +4 -0
  111. package/picker-button/typings-57569e57.d.ts +2 -18
  112. package/picker-button/use-skeleton-1328ead9.d.ts +4 -0
  113. package/select/esm/Component.responsive.js +1 -1
  114. package/select/esm/index.js +1 -1
  115. package/select/esm/mobile/Component.mobile.js +1 -1
  116. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  117. package/select/esm/mobile/index.js +1 -1
  118. package/select/esm/presets/index.js +1 -1
  119. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  120. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  121. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  122. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  123. package/select/esm/shared/index.js +1 -1
  124. package/select/mobile/Component.mobile.js +1 -1
  125. package/select/modern/Component.responsive.js +1 -1
  126. package/select/modern/index.js +1 -1
  127. package/select/modern/mobile/Component.mobile.js +1 -1
  128. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  129. package/select/modern/mobile/index.js +1 -1
  130. package/select/modern/presets/index.js +1 -1
  131. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  132. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  133. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  134. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  135. package/select/modern/shared/index.js +1 -1
  136. package/select/presets/index.js +1 -1
  137. package/select/presets/useSelectWithApply/hook.js +1 -1
  138. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  139. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  140. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  141. package/select/shared/index.js +1 -1
  142. package/shared/cssm/exhaustiveCheck.d.ts +2 -0
  143. package/shared/cssm/exhaustiveCheck.js +5 -0
  144. package/shared/cssm/index.d.ts +1 -0
  145. package/shared/cssm/index.js +2 -0
  146. package/shared/esm/exhaustiveCheck.d.ts +2 -0
  147. package/shared/esm/exhaustiveCheck.js +3 -0
  148. package/shared/esm/index.d.ts +1 -0
  149. package/shared/esm/index.js +1 -0
  150. package/shared/exhaustiveCheck.d.ts +2 -0
  151. package/shared/exhaustiveCheck.js +5 -0
  152. package/shared/index.d.ts +1 -0
  153. package/shared/index.js +2 -0
  154. package/shared/modern/exhaustiveCheck.d.ts +2 -0
  155. package/shared/modern/exhaustiveCheck.js +3 -0
  156. package/shared/modern/index.d.ts +1 -0
  157. package/shared/modern/index.js +1 -0
  158. package/side-panel/components/controls/Component.js +1 -1
  159. package/side-panel/components/footer/Component.js +1 -1
  160. package/side-panel/esm/Component.responsive.js +1 -1
  161. package/side-panel/esm/components/controls/Component.js +1 -1
  162. package/side-panel/esm/components/controls/index.js +1 -1
  163. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  164. package/side-panel/esm/components/footer/Component.js +1 -1
  165. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  166. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  167. package/side-panel/esm/desktop/index.js +1 -1
  168. package/side-panel/esm/index.js +1 -1
  169. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  170. package/side-panel/esm/mobile/index.js +1 -1
  171. package/side-panel/modern/Component.responsive.js +1 -1
  172. package/side-panel/modern/components/controls/Component.js +1 -1
  173. package/side-panel/modern/components/controls/index.js +1 -1
  174. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  175. package/side-panel/modern/components/footer/Component.js +1 -1
  176. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  177. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  178. package/side-panel/modern/desktop/index.js +1 -1
  179. package/side-panel/modern/index.js +1 -1
  180. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  181. package/side-panel/modern/mobile/index.js +1 -1
  182. package/skeleton/Component.d.ts +4 -0
  183. package/skeleton/Component.js +6 -3
  184. package/skeleton/cssm/Component.d.ts +4 -0
  185. package/skeleton/cssm/Component.js +5 -2
  186. package/skeleton/cssm/index.module.css +9 -42
  187. package/skeleton/esm/Component.d.ts +4 -0
  188. package/skeleton/esm/Component.js +6 -3
  189. package/skeleton/esm/index.css +9 -42
  190. package/skeleton/index.css +9 -42
  191. package/skeleton/modern/Component.d.ts +4 -0
  192. package/skeleton/modern/Component.js +6 -3
  193. package/skeleton/modern/index.css +9 -42
  194. package/status-badge/Component.d.ts +8 -3
  195. package/status-badge/Component.js +3 -73
  196. package/status-badge/consts/iconMap.d.ts +4 -0
  197. package/status-badge/consts/iconMap.js +76 -0
  198. package/status-badge/cssm/Component.d.ts +8 -3
  199. package/status-badge/cssm/Component.js +3 -73
  200. package/status-badge/cssm/consts/iconMap.d.ts +4 -0
  201. package/status-badge/cssm/consts/iconMap.js +76 -0
  202. package/status-badge/cssm/hooks/useStatusBadgeIcon.d.ts +5 -0
  203. package/status-badge/cssm/hooks/useStatusBadgeIcon.js +21 -0
  204. package/status-badge/cssm/index.d.ts +1 -0
  205. package/status-badge/cssm/types/statusBadgePropTypes.d.ts +7 -0
  206. package/status-badge/esm/Component.d.ts +8 -3
  207. package/status-badge/esm/Component.js +18 -73
  208. package/status-badge/esm/consts/iconMap.d.ts +4 -0
  209. package/status-badge/esm/consts/iconMap.js +74 -0
  210. package/status-badge/esm/hooks/useStatusBadgeIcon.d.ts +5 -0
  211. package/status-badge/esm/hooks/useStatusBadgeIcon.js +32 -0
  212. package/status-badge/esm/index.d.ts +1 -0
  213. package/status-badge/esm/index.js +3 -0
  214. package/status-badge/esm/types/statusBadgePropTypes.d.ts +7 -0
  215. package/status-badge/hooks/useStatusBadgeIcon.d.ts +5 -0
  216. package/status-badge/hooks/useStatusBadgeIcon.js +21 -0
  217. package/status-badge/index.d.ts +1 -0
  218. package/status-badge/modern/Component.d.ts +8 -3
  219. package/status-badge/modern/Component.js +17 -73
  220. package/status-badge/modern/consts/iconMap.d.ts +4 -0
  221. package/status-badge/modern/consts/iconMap.js +74 -0
  222. package/status-badge/modern/hooks/useStatusBadgeIcon.d.ts +5 -0
  223. package/status-badge/modern/hooks/useStatusBadgeIcon.js +34 -0
  224. package/status-badge/modern/index.d.ts +1 -0
  225. package/status-badge/modern/index.js +2 -0
  226. package/status-badge/modern/types/statusBadgePropTypes.d.ts +7 -0
  227. package/status-badge/types/statusBadgePropTypes.d.ts +7 -0
  228. package/tab-bar/Component.js +7 -3
  229. package/tab-bar/components/tab/Component.js +9 -5
  230. package/tab-bar/components/tab/index.css +5 -2
  231. package/tab-bar/consts.d.ts +9 -0
  232. package/tab-bar/consts.js +13 -0
  233. package/tab-bar/cssm/Component.js +6 -2
  234. package/tab-bar/cssm/components/tab/Component.js +8 -4
  235. package/tab-bar/cssm/components/tab/index.module.css +5 -2
  236. package/tab-bar/cssm/consts.d.ts +9 -0
  237. package/tab-bar/cssm/consts.js +13 -0
  238. package/tab-bar/cssm/index.module.css +9 -7
  239. package/tab-bar/cssm/types.d.ts +11 -3
  240. package/tab-bar/esm/Component.js +9 -4
  241. package/tab-bar/esm/components/tab/Component.js +9 -5
  242. package/tab-bar/esm/components/tab/index.css +5 -2
  243. package/tab-bar/esm/components/tab/index.js +2 -1
  244. package/tab-bar/esm/consts.d.ts +9 -0
  245. package/tab-bar/esm/consts.js +10 -0
  246. package/tab-bar/esm/index.css +9 -7
  247. package/tab-bar/esm/index.js +2 -1
  248. package/tab-bar/esm/types.d.ts +11 -3
  249. package/tab-bar/index.css +9 -7
  250. package/tab-bar/modern/Component.js +9 -4
  251. package/tab-bar/modern/components/tab/Component.js +9 -5
  252. package/tab-bar/modern/components/tab/index.css +5 -2
  253. package/tab-bar/modern/components/tab/index.js +2 -1
  254. package/tab-bar/modern/consts.d.ts +9 -0
  255. package/tab-bar/modern/consts.js +10 -0
  256. package/tab-bar/modern/index.css +9 -7
  257. package/tab-bar/modern/index.js +2 -1
  258. package/tab-bar/modern/types.d.ts +11 -3
  259. package/tab-bar/types.d.ts +11 -3
  260. package/themes/click.css +0 -6
  261. package/themes/compiled/mobile-dark-bluetint.css +17 -27
  262. package/themes/mixins/click.css +0 -2
  263. package/toast-plate/browser-a216f694.d.ts +6 -0
  264. package/toast-plate/components/base-toast-plate/component.d.ts +9 -12
  265. package/toast-plate/components/base-toast-plate/component.js +16 -14
  266. package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  267. package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.js +13 -0
  268. package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  269. package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.js +26 -0
  270. package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  271. package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  272. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  273. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +14 -0
  274. package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  275. package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.js +8 -0
  276. package/toast-plate/cssm/browser-a216f694.d.ts +6 -0
  277. package/toast-plate/cssm/components/base-toast-plate/component.d.ts +9 -12
  278. package/toast-plate/cssm/components/base-toast-plate/component.js +16 -14
  279. package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  280. package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.js +13 -0
  281. package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  282. package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.js +26 -0
  283. package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  284. package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  285. package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  286. package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +14 -0
  287. package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  288. package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.js +8 -0
  289. package/toast-plate/cssm/getDataTestId-73ea38f8.d.ts +3 -0
  290. package/toast-plate/cssm/getDataTestId-73ea38f8.js +6 -0
  291. package/toast-plate/cssm/index-307da6d7.d.ts +71 -0
  292. package/toast-plate/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  293. package/toast-plate/esm/Component.responsive.js +6 -4
  294. package/toast-plate/esm/browser-a216f694.d.ts +6 -0
  295. package/toast-plate/esm/components/base-toast-plate/component.d.ts +9 -12
  296. package/toast-plate/esm/components/base-toast-plate/component.js +16 -14
  297. package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  298. package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.js +11 -0
  299. package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  300. package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.js +24 -0
  301. package/toast-plate/esm/components/base-toast-plate/index.js +6 -4
  302. package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  303. package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  304. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  305. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +12 -0
  306. package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  307. package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.js +6 -0
  308. package/toast-plate/esm/desktop/Component.desktop.js +6 -4
  309. package/toast-plate/esm/desktop/index.js +6 -4
  310. package/toast-plate/esm/getDataTestId-b3cf0f77.d.ts +3 -0
  311. package/toast-plate/esm/getDataTestId-b3cf0f77.js +6 -0
  312. package/toast-plate/esm/index-307da6d7.d.ts +71 -0
  313. package/toast-plate/esm/index.js +6 -4
  314. package/toast-plate/esm/mobile/Component.mobile.js +6 -4
  315. package/toast-plate/esm/mobile/index.js +6 -4
  316. package/toast-plate/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  317. package/toast-plate/getDataTestId-439ac98c.d.ts +3 -0
  318. package/toast-plate/getDataTestId-439ac98c.js +6 -0
  319. package/toast-plate/index-307da6d7.d.ts +71 -0
  320. package/toast-plate/modern/Component.responsive.js +6 -4
  321. package/toast-plate/modern/browser-a216f694.d.ts +6 -0
  322. package/toast-plate/modern/components/base-toast-plate/component.d.ts +9 -12
  323. package/toast-plate/modern/components/base-toast-plate/component.js +16 -14
  324. package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  325. package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.js +11 -0
  326. package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  327. package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.js +24 -0
  328. package/toast-plate/modern/components/base-toast-plate/index.js +6 -4
  329. package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  330. package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  331. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  332. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +12 -0
  333. package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  334. package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.js +4 -0
  335. package/toast-plate/modern/desktop/Component.desktop.js +6 -4
  336. package/toast-plate/modern/desktop/index.js +6 -4
  337. package/toast-plate/modern/getDataTestId-8aa8ef85.d.ts +3 -0
  338. package/toast-plate/modern/getDataTestId-8aa8ef85.js +6 -0
  339. package/toast-plate/modern/index-307da6d7.d.ts +71 -0
  340. package/toast-plate/modern/index.js +6 -4
  341. package/toast-plate/modern/mobile/Component.mobile.js +6 -4
  342. package/toast-plate/modern/mobile/index.js +6 -4
  343. package/toast-plate/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  344. package/toast-plate/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  345. package/typography/esm/component.js +2 -2
  346. package/typography/esm/index.js +2 -2
  347. package/typography/esm/text/component.js +1 -1
  348. package/typography/esm/text/index.js +1 -1
  349. package/typography/esm/title/component.js +1 -1
  350. package/typography/esm/title/index.js +2 -2
  351. package/typography/esm/title-mobile/component.js +2 -2
  352. package/typography/esm/title-mobile/index.js +2 -2
  353. package/typography/esm/title-responsive/component.js +2 -2
  354. package/typography/esm/title-responsive/index.js +2 -2
  355. package/typography/modern/component.js +2 -2
  356. package/typography/modern/index.js +2 -2
  357. package/typography/modern/text/component.js +1 -1
  358. package/typography/modern/text/index.js +1 -1
  359. package/typography/modern/title/component.js +1 -1
  360. package/typography/modern/title/index.js +2 -2
  361. package/typography/modern/title-mobile/component.js +2 -2
  362. package/typography/modern/title-mobile/index.js +2 -2
  363. package/typography/modern/title-responsive/component.js +2 -2
  364. package/typography/modern/title-responsive/index.js +2 -2
  365. package/typography/text/component.js +1 -1
  366. package/typography/title/component.js +1 -1
  367. package/typography/title/index.js +1 -1
  368. package/typography/title-mobile/component.js +1 -1
  369. package/typography/title-responsive/component.js +1 -1
  370. package/universal-date-input/cssm/use-skeleton-1328ead9.d.ts +4 -0
  371. package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +4 -0
  372. package/universal-date-input/modern/use-skeleton-1328ead9.d.ts +4 -0
  373. package/universal-date-input/use-skeleton-1328ead9.d.ts +4 -0
  374. package/bottom-sheet/consts/swipeConsts.d.ts +0 -2
  375. package/bottom-sheet/consts/swipeConsts.js +0 -7
  376. package/bottom-sheet/cssm/consts/swipeConsts.d.ts +0 -2
  377. package/bottom-sheet/cssm/consts/swipeConsts.js +0 -7
  378. package/bottom-sheet/cssm/enums/swipeEnums.d.ts +0 -7
  379. package/bottom-sheet/cssm/enums/swipeEnums.js +0 -9
  380. package/bottom-sheet/cssm/types/swipeTypes.d.ts +0 -9
  381. package/bottom-sheet/enums/swipeEnums.d.ts +0 -7
  382. package/bottom-sheet/enums/swipeEnums.js +0 -9
  383. package/bottom-sheet/esm/consts/swipeConsts.d.ts +0 -2
  384. package/bottom-sheet/esm/consts/swipeConsts.js +0 -5
  385. package/bottom-sheet/esm/enums/swipeEnums.d.ts +0 -7
  386. package/bottom-sheet/esm/enums/swipeEnums.js +0 -9
  387. package/bottom-sheet/esm/types/swipeTypes.d.ts +0 -9
  388. package/bottom-sheet/modern/consts/swipeConsts.d.ts +0 -2
  389. package/bottom-sheet/modern/consts/swipeConsts.js +0 -5
  390. package/bottom-sheet/modern/enums/swipeEnums.d.ts +0 -7
  391. package/bottom-sheet/modern/enums/swipeEnums.js +0 -9
  392. package/bottom-sheet/modern/types/swipeTypes.d.ts +0 -9
  393. package/bottom-sheet/types/swipeTypes.d.ts +0 -9
  394. package/themes/mixins/skeleton/click.css +0 -8
  395. package/themes/skeleton/click.css +0 -8
  396. /package/calendar-range/esm/{index.module-7ba85cb1.js → index.module-912e88cf.js} +0 -0
  397. /package/calendar-range/{index.module-c6ded4a2.js → index.module-bf0591f0.js} +0 -0
  398. /package/calendar-range/modern/{index.module-0604d154.js → index.module-636e08a2.js} +0 -0
  399. /package/gallery/{buttons-01e8353f.d.ts → buttons-19c30d23.d.ts} +0 -0
  400. /package/gallery/{buttons-01e8353f.js → buttons-19c30d23.js} +0 -0
  401. /package/gallery/esm/{buttons-85c1b9a3.d.ts → buttons-37ed3ab5.d.ts} +0 -0
  402. /package/gallery/esm/{buttons-85c1b9a3.js → buttons-37ed3ab5.js} +0 -0
  403. /package/gallery/esm/{slide-530dfb83.d.ts → slide-8d1299a5.d.ts} +0 -0
  404. /package/gallery/esm/{slide-530dfb83.js → slide-8d1299a5.js} +0 -0
  405. /package/gallery/modern/{buttons-5f86c790.d.ts → buttons-92efe05c.d.ts} +0 -0
  406. /package/gallery/modern/{buttons-5f86c790.js → buttons-92efe05c.js} +0 -0
  407. /package/gallery/modern/{slide-afec4d99.d.ts → slide-57aa7661.d.ts} +0 -0
  408. /package/gallery/modern/{slide-afec4d99.js → slide-57aa7661.js} +0 -0
  409. /package/gallery/{slide-18998644.d.ts → slide-45ca49f1.d.ts} +0 -0
  410. /package/gallery/{slide-18998644.js → slide-45ca49f1.js} +0 -0
  411. /package/modal/esm/{layout.module-1b8afca9.js → layout.module-b635b128.js} +0 -0
  412. /package/modal/{layout.module-3eb92921.js → layout.module-34149103.js} +0 -0
  413. /package/modal/modern/{layout.module-13b15398.js → layout.module-41e8947b.js} +0 -0
  414. /package/picker-button/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  415. /package/picker-button/cssm/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  416. /package/picker-button/esm/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  417. /package/picker-button/modern/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  418. /package/select/esm/{hook-aa7d4c07.d.ts → hook-c0758dcd.d.ts} +0 -0
  419. /package/select/esm/{hook-aa7d4c07.js → hook-c0758dcd.js} +0 -0
  420. /package/select/{hook-f0adfa6b.d.ts → hook-10a14b43.d.ts} +0 -0
  421. /package/select/{hook-f0adfa6b.js → hook-10a14b43.js} +0 -0
  422. /package/select/modern/{hook-d72e58c4.d.ts → hook-5ccdb908.d.ts} +0 -0
  423. /package/select/modern/{hook-d72e58c4.js → hook-5ccdb908.js} +0 -0
  424. /package/side-panel/esm/{layout.module-d6ca40a5.js → layout.module-0dc6a00f.js} +0 -0
  425. /package/side-panel/{layout.module-85234bb1.js → layout.module-5eeb8248.js} +0 -0
  426. /package/side-panel/modern/{layout.module-9f8549ee.js → layout.module-6f83e451.js} +0 -0
  427. /package/{bottom-sheet/cssm/types/swipeTypes.js → status-badge/cssm/types/statusBadgePropTypes.js} +0 -0
  428. /package/{bottom-sheet/esm/types/swipeTypes.js → status-badge/esm/types/statusBadgePropTypes.js} +0 -0
  429. /package/{bottom-sheet/modern/types/swipeTypes.js → status-badge/modern/types/statusBadgePropTypes.js} +0 -0
  430. /package/{bottom-sheet/types/swipeTypes.js → status-badge/types/statusBadgePropTypes.js} +0 -0
  431. /package/typography/{colors.module-a11b73e9.js → colors.module-5b90a9cc.js} +0 -0
  432. /package/typography/{common.module-25e7ce83.js → common.module-53a00318.js} +0 -0
  433. /package/typography/esm/{colors.module-e5414e42.js → colors.module-f2501c6f.js} +0 -0
  434. /package/typography/esm/{common.module-bd07cc74.js → common.module-04c7810e.js} +0 -0
  435. /package/typography/modern/{colors.module-9fa7fdee.js → colors.module-83a4b747.js} +0 -0
  436. /package/typography/modern/{common.module-e73684d9.js → common.module-278c339a.js} +0 -0
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ /* eslint-disable no-plusplus, no-param-reassign */
4
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
5
+ import { useCustomWebkitScrollbar } from "./useCustomWebkitScrollbar-a216f694";
6
+ declare const isClient: () => boolean;
7
+ declare function isApplePlatform(): boolean;
8
+ declare function isIOS(): boolean;
9
+ declare const os: {
10
+ isIOS: typeof isIOS;
11
+ isApplePlatform: typeof isApplePlatform;
12
+ };
13
+ type PaddingType = number | string | {
14
+ top?: number;
15
+ right?: number;
16
+ bottom?: number;
17
+ left?: number;
18
+ };
19
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
20
+ declare function easeInOutQuad(x: number): number;
21
+ declare const easingFns: {
22
+ easeInOutQuad: typeof easeInOutQuad;
23
+ };
24
+ /**
25
+ * Возвращает true, если значение равно null или undefined
26
+ */
27
+ declare function isNil(value: unknown): boolean;
28
+ /**
29
+ * Выбор значения между min max границами
30
+ */
31
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
32
+ declare function noop(): void;
33
+ declare const fnUtils: {
34
+ clamp: typeof clamp;
35
+ noop: typeof noop;
36
+ isNil: typeof isNil;
37
+ };
38
+ /**
39
+ * Запрещает каретке становиться за указанные границы
40
+ */
41
+ declare function caretGuard(guard: (value: string, selection: readonly [
42
+ from: number,
43
+ to: number
44
+ ]) => [
45
+ from: number,
46
+ to: number
47
+ ]): MaskitoPlugin;
48
+ /**
49
+ * Запрещает удалять указанный префикс
50
+ */
51
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
52
+ /**
53
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
54
+ */
55
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
56
+ declare const maskUtils: {
57
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
58
+ prefixPostprocessor: typeof prefixPostprocessor;
59
+ caretGuard: typeof caretGuard;
60
+ };
61
+ declare const hooks: {
62
+ useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
63
+ };
64
+ declare function preventDefault(e: React.UIEvent): void;
65
+ declare const dom: {
66
+ preventDefault: typeof preventDefault;
67
+ };
68
+ export { isClient, os, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
69
+ export * from "./getDataTestId-73ea38f8";
70
+ export * from "./browser-a216f694";
71
+ export * from "./components/base-toast-plate/hooks/useDeprecatedBadge";
@@ -0,0 +1,2 @@
1
+ declare function useCustomWebkitScrollbar(): boolean;
2
+ export { useCustomWebkitScrollbar };
@@ -5,12 +5,14 @@ import { ToastPlateDesktop } from './desktop/Component.desktop.js';
5
5
  import { ToastPlateMobile } from './mobile/Component.mobile.js';
6
6
  import './components/base-toast-plate/component.js';
7
7
  import 'classnames';
8
- import '../../badge/esm';
9
8
  import '../../icon-button/esm';
10
- import '@alfalab/icons-glyph/AlertCircleMIcon';
11
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
12
- import '@alfalab/icons-glyph/CrossCircleMIcon';
9
+ import './getDataTestId-b3cf0f77.js';
10
+ import '@alfalab/hooks';
11
+ import '../../status-badge/esm';
13
12
  import '@alfalab/icons-glyph/CrossMIcon';
13
+ import './components/base-toast-plate/hooks/useCustomIcons.js';
14
+ import './components/base-toast-plate/hooks/useDeprecatedBadge.js';
15
+ import './components/base-toast-plate/utils/isUnsafeBadge.js';
14
16
 
15
17
  var ToastPlate = forwardRef(function (_a, ref) {
16
18
  var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["children", "breakpoint"]);
@@ -0,0 +1,6 @@
1
+ declare function isWebkitBased(): boolean;
2
+ declare const browser: {
3
+ getScrollbarSize: () => number;
4
+ isWebkitBased: typeof isWebkitBased;
5
+ };
6
+ export { browser };
@@ -1,11 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { HTMLAttributes, MouseEvent, ReactNode } from "react";
4
- type BadgeIcons = {
5
- negative: JSX.Element;
6
- positive: JSX.Element;
7
- attention: JSX.Element;
8
- };
4
+ import { StatusBadgeCustomIcon, StatusBadgeViews } from "../../../../status-badge";
5
+ import { unsafe_BadgeProps } from "./types/unsafeBadgeProps";
9
6
  type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
10
7
  /**
11
8
  * Дополнительный класс
@@ -34,7 +31,7 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
34
31
  /**
35
32
  * Вид бэйджа
36
33
  */
37
- badge?: 'negative' | 'positive' | 'attention';
34
+ badge?: unsafe_BadgeProps | StatusBadgeViews;
38
35
  /**
39
36
  * Слот слева, заменяет стандартную иконку
40
37
  */
@@ -68,9 +65,9 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
68
65
  */
69
66
  onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
70
67
  /**
71
- * Функция, с помощью которой можно переопределить иконки в Badge
68
+ * Функция, с помощью которой можно переопределить иконки в StatusBadge
72
69
  */
73
- getBadgeIcons?: (icons: BadgeIcons) => BadgeIcons;
70
+ getBadgeIcons?: StatusBadgeCustomIcon;
74
71
  /**
75
72
  * Набор цветов для компонента
76
73
  */
@@ -114,7 +111,7 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
114
111
  /**
115
112
  * Вид бэйджа
116
113
  */
117
- badge?: "attention" | "positive" | "negative" | undefined;
114
+ badge?: StatusBadgeViews | unsafe_BadgeProps | undefined;
118
115
  /**
119
116
  * Слот слева, заменяет стандартную иконку
120
117
  */
@@ -148,9 +145,9 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
148
145
  */
149
146
  onClose?: ((event?: MouseEvent<HTMLButtonElement>) => void) | undefined;
150
147
  /**
151
- * Функция, с помощью которой можно переопределить иконки в Badge
148
+ * Функция, с помощью которой можно переопределить иконки в StatusBadge
152
149
  */
153
- getBadgeIcons?: ((icons: BadgeIcons) => BadgeIcons) | undefined;
150
+ getBadgeIcons?: Partial<Record<StatusBadgeViews, Partial<Record<import("../../../../status-badge").StatusBadgeSizes, import("../../../../status-badge").StatusBadgeIcon>>>> | undefined;
154
151
  /**
155
152
  * Набор цветов для компонента
156
153
  */
@@ -166,4 +163,4 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
166
163
  [key: string]: string;
167
164
  } | undefined;
168
165
  } & React.RefAttributes<HTMLDivElement>>;
169
- export { BadgeIcons, BaseToastPlateProps, BaseToastPlate };
166
+ export { BaseToastPlateProps, BaseToastPlate };
@@ -1,12 +1,14 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef, useCallback } from 'react';
3
3
  import cn from 'classnames';
4
- import { Badge } from '../../../../badge/esm';
5
4
  import { IconButton } from '../../../../icon-button/esm';
6
- import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
7
- import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
8
- import { CrossCircleMIcon } from '@alfalab/icons-glyph/CrossCircleMIcon';
5
+ import { g as getDataTestId } from '../../getDataTestId-b3cf0f77.js';
6
+ import '@alfalab/hooks';
7
+ import { StatusBadge } from '../../../../status-badge/esm';
9
8
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
9
+ import { useCustomIcons } from './hooks/useCustomIcons.js';
10
+ import { useDeprecatedBadge } from './hooks/useDeprecatedBadge.js';
11
+ import { isUnsafeBadge } from './utils/isUnsafeBadge.js';
10
12
 
11
13
  var defaultColors = {"component":"toast-plate__component_eyew1","closeButtonWrapper":"toast-plate__closeButtonWrapper_eyew1"};
12
14
  require('./default.css');
@@ -21,27 +23,27 @@ var colorStyles = {
21
23
  default: defaultColors,
22
24
  inverted: invertedColors,
23
25
  };
24
- var iconDefaultComponents = {
25
- negative: React.createElement(CrossCircleMIcon, { className: commonStyles.badgeIcon }),
26
- positive: React.createElement(CheckmarkCircleMIcon, { className: commonStyles.badgeIcon }),
27
- attention: React.createElement(AlertCircleMIcon, { className: commonStyles.badgeIcon }),
28
- };
29
26
  var BaseToastPlate = forwardRef(function (_a, ref) {
30
27
  var _b, _c, _d;
31
28
  var dataTestId = _a.dataTestId, className = _a.className, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, actionSectionClassName = _a.actionSectionClassName, hasCloser = _a.hasCloser, leftAddons = _a.leftAddons, badge = _a.badge, title = _a.title, children = _a.children, actionButton = _a.actionButton, block = _a.block, onClose = _a.onClose, getBadgeIcons = _a.getBadgeIcons, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, closerWrapperClassName = _a.closerWrapperClassName, closerClassName = _a.closerClassName, _f = _a.bottomButtonPosition, bottomButtonPosition = _f === void 0 ? false : _f, _g = _a.styles, styles = _g === void 0 ? {} : _g, restProps = __rest(_a, ["dataTestId", "className", "titleClassName", "contentClassName", "actionSectionClassName", "hasCloser", "leftAddons", "badge", "title", "children", "actionButton", "block", "onClose", "getBadgeIcons", "colors", "closerWrapperClassName", "closerClassName", "bottomButtonPosition", "styles"]);
32
29
  var needRenderLeftAddons = Boolean(leftAddons || badge);
33
- var iconComponents = getBadgeIcons
34
- ? getBadgeIcons(iconDefaultComponents)
35
- : iconDefaultComponents;
30
+ var transformDeprecatedBadge = useDeprecatedBadge().transformDeprecatedBadge;
31
+ var getCustomIcons = useCustomIcons().getCustomIcons;
36
32
  var handleClose = useCallback(function (event) {
37
33
  if (onClose) {
38
34
  onClose(event);
39
35
  }
40
36
  }, [onClose]);
41
- return (React.createElement("div", __assign({ className: cn(commonStyles.component, colorStyles[colors].component, (_b = {}, _b[commonStyles.block] = block, _b[commonStyles.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": dataTestId }, restProps),
37
+ var statusBadgeView = badge;
38
+ if (badge && isUnsafeBadge(badge)) {
39
+ statusBadgeView = transformDeprecatedBadge(badge);
40
+ }
41
+ var customIcons = getCustomIcons(getBadgeIcons);
42
+ return (React.createElement("div", __assign({ className: cn(commonStyles.component, colorStyles[colors].component, (_b = {}, _b[commonStyles.block] = block, _b[commonStyles.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": getDataTestId(dataTestId, 'component') }, restProps),
42
43
  React.createElement("div", { className: commonStyles.wrapper },
43
44
  React.createElement("div", { className: commonStyles.contentWrapper },
44
- needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons || (React.createElement(Badge, { view: 'icon', content: badge && iconComponents[badge], iconColor: badge, className: commonStyles.badge, dataTestId: 'badge', visibleColorOutline: true })))),
45
+ needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons ||
46
+ (badge && (React.createElement(StatusBadge, __assign({ view: statusBadgeView, dataTestId: getDataTestId(dataTestId, 'badge') }, (customIcons && { customIcons: customIcons }))))))),
45
47
  React.createElement("div", { className: cn(contentClassName, commonStyles.content, (_c = {},
46
48
  _c[commonStyles.hasCloser] = hasCloser,
47
49
  _c[commonStyles.hasActionButton] = !!actionButton,
@@ -0,0 +1,6 @@
1
+ import { StatusBadgeCustomIcon } from "../../../../../status-badge";
2
+ type GetCustomIcons = StatusBadgeCustomIcon | null;
3
+ declare const useCustomIcons: () => {
4
+ getCustomIcons: (getBadgeIcons?: StatusBadgeCustomIcon) => GetCustomIcons;
5
+ };
6
+ export { useCustomIcons };
@@ -0,0 +1,11 @@
1
+ var useCustomIcons = function () {
2
+ var getCustomIcons = function (getBadgeIcons) {
3
+ if (getBadgeIcons) {
4
+ return getBadgeIcons;
5
+ }
6
+ return null;
7
+ };
8
+ return { getCustomIcons: getCustomIcons };
9
+ };
10
+
11
+ export { useCustomIcons };
@@ -0,0 +1,7 @@
1
+ import { StatusBadgeProps } from "../../../../../status-badge";
2
+ import { unsafe_BadgeProps } from "../types/unsafeBadgeProps";
3
+ type UseDeprecatedBadge = {
4
+ transformDeprecatedBadge: (deprecatedBadge: unsafe_BadgeProps) => StatusBadgeProps['view'];
5
+ };
6
+ declare const useDeprecatedBadge: () => UseDeprecatedBadge;
7
+ export { useDeprecatedBadge };
@@ -0,0 +1,24 @@
1
+ import 'react';
2
+ import '@alfalab/hooks';
3
+
4
+ var exhaustiveCheck = function (value) { return value; };
5
+
6
+ var useDeprecatedBadge = function () {
7
+ var transformDeprecatedBadge = function (unsafeBadge) {
8
+ switch (unsafeBadge) {
9
+ case 'negative':
10
+ return 'negative-cross';
11
+ case 'positive':
12
+ return 'positive-checkmark';
13
+ case 'attention':
14
+ return 'attention-alert';
15
+ default:
16
+ return exhaustiveCheck(unsafeBadge);
17
+ }
18
+ };
19
+ return {
20
+ transformDeprecatedBadge: transformDeprecatedBadge,
21
+ };
22
+ };
23
+
24
+ export { useDeprecatedBadge };
@@ -2,9 +2,11 @@ export { BaseToastPlate } from './component.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
4
  import 'classnames';
5
- import '../../../../badge/esm';
6
5
  import '../../../../icon-button/esm';
7
- import '@alfalab/icons-glyph/AlertCircleMIcon';
8
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
9
- import '@alfalab/icons-glyph/CrossCircleMIcon';
6
+ import '../../getDataTestId-b3cf0f77.js';
7
+ import '@alfalab/hooks';
8
+ import '../../../../status-badge/esm';
10
9
  import '@alfalab/icons-glyph/CrossMIcon';
10
+ import './hooks/useCustomIcons.js';
11
+ import './hooks/useDeprecatedBadge.js';
12
+ import './utils/isUnsafeBadge.js';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @deprecated Данный тип не будет поддерживаться в будущих версиях
3
+ * Используйте StatusBadgeProps['view']
4
+ */
5
+ type unsafe_BadgeProps = 'negative' | 'positive' | 'attention';
6
+ export { unsafe_BadgeProps };
@@ -0,0 +1,5 @@
1
+ declare function getBaseToastPlateTestIds(dataTestId: string): {
2
+ badge: string;
3
+ component: string;
4
+ };
5
+ export { getBaseToastPlateTestIds };
@@ -0,0 +1,12 @@
1
+ import { g as getDataTestId } from '../../../getDataTestId-b3cf0f77.js';
2
+ import 'react';
3
+ import '@alfalab/hooks';
4
+
5
+ function getBaseToastPlateTestIds(dataTestId) {
6
+ return {
7
+ badge: getDataTestId(dataTestId, 'badge'),
8
+ component: getDataTestId(dataTestId, 'component'),
9
+ };
10
+ }
11
+
12
+ export { getBaseToastPlateTestIds };
@@ -0,0 +1,5 @@
1
+ import { StatusBadgeProps } from "../../../../../status-badge";
2
+ import { unsafe_BadgeProps } from "../types/unsafeBadgeProps";
3
+ type IsUnsafeBadge = unsafe_BadgeProps | StatusBadgeProps['view'];
4
+ declare const isUnsafeBadge: (badge: IsUnsafeBadge) => badge is unsafe_BadgeProps;
5
+ export { isUnsafeBadge };
@@ -0,0 +1,6 @@
1
+ var unsafeBadgeValues = ['negative', 'positive', 'attention'];
2
+ var isUnsafeBadge = function (badge) {
3
+ return unsafeBadgeValues.includes(badge);
4
+ };
5
+
6
+ export { isUnsafeBadge };
@@ -2,12 +2,14 @@ import { __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { BaseToastPlate } from '../components/base-toast-plate/component.js';
4
4
  import 'classnames';
5
- import '../../../badge/esm';
6
5
  import '../../../icon-button/esm';
7
- import '@alfalab/icons-glyph/AlertCircleMIcon';
8
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
9
- import '@alfalab/icons-glyph/CrossCircleMIcon';
6
+ import '../getDataTestId-b3cf0f77.js';
7
+ import '@alfalab/hooks';
8
+ import '../../../status-badge/esm';
10
9
  import '@alfalab/icons-glyph/CrossMIcon';
10
+ import '../components/base-toast-plate/hooks/useCustomIcons.js';
11
+ import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
12
+ import '../components/base-toast-plate/utils/isUnsafeBadge.js';
11
13
 
12
14
  var styles = {"actionSection":"toast-plate__actionSection_1heyl","title":"toast-plate__title_1heyl","closeButtonWrapper":"toast-plate__closeButtonWrapper_1heyl","closeButton":"toast-plate__closeButton_1heyl"};
13
15
  require('./desktop.css');
@@ -3,9 +3,11 @@ import 'tslib';
3
3
  import 'react';
4
4
  import '../components/base-toast-plate/component.js';
5
5
  import 'classnames';
6
- import '../../../badge/esm';
7
6
  import '../../../icon-button/esm';
8
- import '@alfalab/icons-glyph/AlertCircleMIcon';
9
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
10
- import '@alfalab/icons-glyph/CrossCircleMIcon';
7
+ import '../getDataTestId-b3cf0f77.js';
8
+ import '@alfalab/hooks';
9
+ import '../../../status-badge/esm';
11
10
  import '@alfalab/icons-glyph/CrossMIcon';
11
+ import '../components/base-toast-plate/hooks/useCustomIcons.js';
12
+ import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
13
+ import '../components/base-toast-plate/utils/isUnsafeBadge.js';
@@ -0,0 +1,3 @@
1
+ declare function getDataTestId(dataTestId: string, element: string): string;
2
+ declare function getDataTestId(dataTestId?: string, element?: string): string | undefined;
3
+ export { getDataTestId };
@@ -0,0 +1,6 @@
1
+ function getDataTestId(dataTestId, element) {
2
+ var elementPart = element ? "-".concat(element.toLowerCase()) : '';
3
+ return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
4
+ }
5
+
6
+ export { getDataTestId as g };
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ /* eslint-disable no-plusplus, no-param-reassign */
4
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
5
+ import { useCustomWebkitScrollbar } from "./useCustomWebkitScrollbar-a216f694";
6
+ declare const isClient: () => boolean;
7
+ declare function isApplePlatform(): boolean;
8
+ declare function isIOS(): boolean;
9
+ declare const os: {
10
+ isIOS: typeof isIOS;
11
+ isApplePlatform: typeof isApplePlatform;
12
+ };
13
+ type PaddingType = number | string | {
14
+ top?: number;
15
+ right?: number;
16
+ bottom?: number;
17
+ left?: number;
18
+ };
19
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
20
+ declare function easeInOutQuad(x: number): number;
21
+ declare const easingFns: {
22
+ easeInOutQuad: typeof easeInOutQuad;
23
+ };
24
+ /**
25
+ * Возвращает true, если значение равно null или undefined
26
+ */
27
+ declare function isNil(value: unknown): boolean;
28
+ /**
29
+ * Выбор значения между min max границами
30
+ */
31
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
32
+ declare function noop(): void;
33
+ declare const fnUtils: {
34
+ clamp: typeof clamp;
35
+ noop: typeof noop;
36
+ isNil: typeof isNil;
37
+ };
38
+ /**
39
+ * Запрещает каретке становиться за указанные границы
40
+ */
41
+ declare function caretGuard(guard: (value: string, selection: readonly [
42
+ from: number,
43
+ to: number
44
+ ]) => [
45
+ from: number,
46
+ to: number
47
+ ]): MaskitoPlugin;
48
+ /**
49
+ * Запрещает удалять указанный префикс
50
+ */
51
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
52
+ /**
53
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
54
+ */
55
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
56
+ declare const maskUtils: {
57
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
58
+ prefixPostprocessor: typeof prefixPostprocessor;
59
+ caretGuard: typeof caretGuard;
60
+ };
61
+ declare const hooks: {
62
+ useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
63
+ };
64
+ declare function preventDefault(e: React.UIEvent): void;
65
+ declare const dom: {
66
+ preventDefault: typeof preventDefault;
67
+ };
68
+ export { isClient, os, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
69
+ export * from "./getDataTestId-b3cf0f77";
70
+ export * from "./browser-a216f694";
71
+ export * from "./components/base-toast-plate/hooks/useDeprecatedBadge";
@@ -5,10 +5,12 @@ import '../../mq/esm';
5
5
  import './desktop/Component.desktop.js';
6
6
  import './components/base-toast-plate/component.js';
7
7
  import 'classnames';
8
- import '../../badge/esm';
9
8
  import '../../icon-button/esm';
10
- import '@alfalab/icons-glyph/AlertCircleMIcon';
11
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
12
- import '@alfalab/icons-glyph/CrossCircleMIcon';
9
+ import './getDataTestId-b3cf0f77.js';
10
+ import '@alfalab/hooks';
11
+ import '../../status-badge/esm';
13
12
  import '@alfalab/icons-glyph/CrossMIcon';
13
+ import './components/base-toast-plate/hooks/useCustomIcons.js';
14
+ import './components/base-toast-plate/hooks/useDeprecatedBadge.js';
15
+ import './components/base-toast-plate/utils/isUnsafeBadge.js';
14
16
  import './mobile/Component.mobile.js';
@@ -2,12 +2,14 @@ import { __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { BaseToastPlate } from '../components/base-toast-plate/component.js';
4
4
  import 'classnames';
5
- import '../../../badge/esm';
6
5
  import '../../../icon-button/esm';
7
- import '@alfalab/icons-glyph/AlertCircleMIcon';
8
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
9
- import '@alfalab/icons-glyph/CrossCircleMIcon';
6
+ import '../getDataTestId-b3cf0f77.js';
7
+ import '@alfalab/hooks';
8
+ import '../../../status-badge/esm';
10
9
  import '@alfalab/icons-glyph/CrossMIcon';
10
+ import '../components/base-toast-plate/hooks/useCustomIcons.js';
11
+ import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
12
+ import '../components/base-toast-plate/utils/isUnsafeBadge.js';
11
13
 
12
14
  var styles = {"actionSection":"toast-plate__actionSection_fuxup","title":"toast-plate__title_fuxup","closeButtonWrapper":"toast-plate__closeButtonWrapper_fuxup","closeButton":"toast-plate__closeButton_fuxup"};
13
15
  require('./mobile.css');
@@ -3,9 +3,11 @@ import 'tslib';
3
3
  import 'react';
4
4
  import '../components/base-toast-plate/component.js';
5
5
  import 'classnames';
6
- import '../../../badge/esm';
7
6
  import '../../../icon-button/esm';
8
- import '@alfalab/icons-glyph/AlertCircleMIcon';
9
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
10
- import '@alfalab/icons-glyph/CrossCircleMIcon';
7
+ import '../getDataTestId-b3cf0f77.js';
8
+ import '@alfalab/hooks';
9
+ import '../../../status-badge/esm';
11
10
  import '@alfalab/icons-glyph/CrossMIcon';
11
+ import '../components/base-toast-plate/hooks/useCustomIcons.js';
12
+ import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
13
+ import '../components/base-toast-plate/utils/isUnsafeBadge.js';
@@ -0,0 +1,2 @@
1
+ declare function useCustomWebkitScrollbar(): boolean;
2
+ export { useCustomWebkitScrollbar };
@@ -0,0 +1,3 @@
1
+ declare function getDataTestId(dataTestId: string, element: string): string;
2
+ declare function getDataTestId(dataTestId?: string, element?: string): string | undefined;
3
+ export { getDataTestId };
@@ -0,0 +1,6 @@
1
+ function getDataTestId(dataTestId, element) {
2
+ var elementPart = element ? "-".concat(element.toLowerCase()) : '';
3
+ return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
4
+ }
5
+
6
+ exports.getDataTestId = getDataTestId;
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ /* eslint-disable no-plusplus, no-param-reassign */
4
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
5
+ import { useCustomWebkitScrollbar } from "./useCustomWebkitScrollbar-a216f694";
6
+ declare const isClient: () => boolean;
7
+ declare function isApplePlatform(): boolean;
8
+ declare function isIOS(): boolean;
9
+ declare const os: {
10
+ isIOS: typeof isIOS;
11
+ isApplePlatform: typeof isApplePlatform;
12
+ };
13
+ type PaddingType = number | string | {
14
+ top?: number;
15
+ right?: number;
16
+ bottom?: number;
17
+ left?: number;
18
+ };
19
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
20
+ declare function easeInOutQuad(x: number): number;
21
+ declare const easingFns: {
22
+ easeInOutQuad: typeof easeInOutQuad;
23
+ };
24
+ /**
25
+ * Возвращает true, если значение равно null или undefined
26
+ */
27
+ declare function isNil(value: unknown): boolean;
28
+ /**
29
+ * Выбор значения между min max границами
30
+ */
31
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
32
+ declare function noop(): void;
33
+ declare const fnUtils: {
34
+ clamp: typeof clamp;
35
+ noop: typeof noop;
36
+ isNil: typeof isNil;
37
+ };
38
+ /**
39
+ * Запрещает каретке становиться за указанные границы
40
+ */
41
+ declare function caretGuard(guard: (value: string, selection: readonly [
42
+ from: number,
43
+ to: number
44
+ ]) => [
45
+ from: number,
46
+ to: number
47
+ ]): MaskitoPlugin;
48
+ /**
49
+ * Запрещает удалять указанный префикс
50
+ */
51
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
52
+ /**
53
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
54
+ */
55
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
56
+ declare const maskUtils: {
57
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
58
+ prefixPostprocessor: typeof prefixPostprocessor;
59
+ caretGuard: typeof caretGuard;
60
+ };
61
+ declare const hooks: {
62
+ useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
63
+ };
64
+ declare function preventDefault(e: React.UIEvent): void;
65
+ declare const dom: {
66
+ preventDefault: typeof preventDefault;
67
+ };
68
+ export { isClient, os, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
69
+ export * from "./getDataTestId-439ac98c";
70
+ export * from "./browser-a216f694";
71
+ export * from "./components/base-toast-plate/hooks/useDeprecatedBadge";
@@ -4,12 +4,14 @@ import { ToastPlateDesktop } from './desktop/Component.desktop.js';
4
4
  import { ToastPlateMobile } from './mobile/Component.mobile.js';
5
5
  import './components/base-toast-plate/component.js';
6
6
  import 'classnames';
7
- import '../../badge/modern';
8
7
  import '../../icon-button/modern';
9
- import '@alfalab/icons-glyph/AlertCircleMIcon';
10
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
11
- import '@alfalab/icons-glyph/CrossCircleMIcon';
8
+ import './getDataTestId-8aa8ef85.js';
9
+ import '@alfalab/hooks';
10
+ import '../../status-badge/modern';
12
11
  import '@alfalab/icons-glyph/CrossMIcon';
12
+ import './components/base-toast-plate/hooks/useCustomIcons.js';
13
+ import './components/base-toast-plate/hooks/useDeprecatedBadge.js';
14
+ import './components/base-toast-plate/utils/isUnsafeBadge.js';
13
15
 
14
16
  const ToastPlate = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
15
17
  const query = `(min-width: ${breakpoint}px)`;
@@ -0,0 +1,6 @@
1
+ declare function isWebkitBased(): boolean;
2
+ declare const browser: {
3
+ getScrollbarSize: () => number;
4
+ isWebkitBased: typeof isWebkitBased;
5
+ };
6
+ export { browser };