@sberbusiness/triplex-next 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/chunks/AlertProcessSpoiler-BQv9QI6L.js +39 -0
  2. package/chunks/Card.module-kTbr6OQy.js +17 -0
  3. package/chunks/Chip-G6cGXuGj.js +90 -0
  4. package/chunks/DropdownListItem-D2hzyBGc.js +57 -0
  5. package/chunks/DropdownMobile.module-Fa_t6vz1.js +21 -0
  6. package/chunks/Footer.module-B3uFxh54.js +9 -0
  7. package/chunks/FormFieldInput-CO7yZP0Q.js +62 -0
  8. package/chunks/HeaderLayoutSidebar.module-CGCy_cim.js +9 -0
  9. package/chunks/HeaderTabs.module-DMuNfILv.js +9 -0
  10. package/chunks/HeaderTitle.module-BHyH17ZI.js +11 -0
  11. package/chunks/IslandAccordion.module-7xAwgJVI.js +22 -0
  12. package/chunks/LightBoxContent-DmoszkOx.js +56 -0
  13. package/chunks/LightBoxControls.module-42gn-co3.js +16 -0
  14. package/chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js +8 -0
  15. package/chunks/{ListItemControlsButton-Ms4q9wDe.js → ListItemControlsButton-BoEiexyr.js} +6 -6
  16. package/chunks/ListItemTail.module-BB5TJPEc.js +12 -0
  17. package/chunks/ListMasterFooter.module-DxZ_nXDV.js +10 -0
  18. package/chunks/Notification.module-C-HCMpAz.js +21 -0
  19. package/chunks/Overlay.module-q-oPhooa.js +18 -0
  20. package/chunks/Page.module-DjGbJ-Uw.js +12 -0
  21. package/chunks/{RightBorderArrow-D6ZllSTT.js → RightBorderArrow-BHW7rkmN.js} +4 -4
  22. package/chunks/SMSInput.module-Ci4GRnk_.js +16 -0
  23. package/chunks/StatusTracker.module-zTyojoH4.js +24 -0
  24. package/chunks/{SuggestFieldMobileDropdownHint-Cc_fZLBH.js → SuggestFieldMobileDropdownHint-CMKMF0PQ.js} +2 -2
  25. package/chunks/TableFooter.module-DrRycaTr.js +13 -0
  26. package/chunks/TabsExtended.module-Be8qpZYz.js +16 -0
  27. package/chunks/TabsLine.module-DKAp48Sx.js +23 -0
  28. package/chunks/TooltipDesktop.module-D72ObNia.js +19 -0
  29. package/chunks/{UploadZoneInput-Bkv3b0F5.js → UploadZoneInput-pdhICY56.js} +3 -3
  30. package/chunks/{utils-CVSz7tV_.js → utils-B7AjUpy-.js} +2 -2
  31. package/chunks/utils-C-1ATq_g.js +24 -0
  32. package/chunks/{utils-DWPj89gs.js → utils-C8a4iCV0.js} +6 -6
  33. package/chunks/{utils-BZFu5eVD.js → utils-C9-tOm2Z.js} +10 -10
  34. package/chunks/utils-DwX2_kEA.js +72 -0
  35. package/chunks/{vendor-CehxOAkM.js → vendor-Ba_pyhza.js} +5132 -5003
  36. package/components/AbstractTree/AbstractTreeNode.js +1 -1
  37. package/components/AccordionBase/protected/AccordionBase.js +1 -1
  38. package/components/Alert/AlertContext/AlertContext.js +14 -14
  39. package/components/Alert/AlertProcess/AlertProcess.js +3 -3
  40. package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
  41. package/components/Amount/Amount.js +20 -21
  42. package/components/AmountField/AmountField.js +11 -11
  43. package/components/Body/Body.js +25 -8
  44. package/components/Body/enums.js +5 -0
  45. package/components/Button/Button.js +42 -41
  46. package/components/Button/ButtonBase.js +1 -1
  47. package/components/Button/ButtonDropdown.js +2 -2
  48. package/components/Button/ButtonDropdownExtended.js +2 -2
  49. package/components/Button/ButtonIcon.js +9 -9
  50. package/components/Card/CardAction.js +16 -16
  51. package/components/Card/CardStatic.js +3 -3
  52. package/components/Card/components/CardContent/CardContent.js +2 -2
  53. package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
  54. package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
  55. package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
  56. package/components/Card/components/CardMedia.js +2 -2
  57. package/components/Card/utils.js +1 -1
  58. package/components/CarouselExtended/CarouselExtended.js +7 -7
  59. package/components/Checkbox/Checkbox.js +21 -21
  60. package/components/Checkbox/CheckboxXGroup.js +14 -14
  61. package/components/Checkbox/CheckboxYGroup.js +2 -2
  62. package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +1 -1
  63. package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +1 -1
  64. package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +3 -3
  65. package/components/Chip/Chip.js +5 -3
  66. package/components/Chip/ChipClearButton.js +16 -24
  67. package/components/Chip/ChipDropdownArrow.js +5 -5
  68. package/components/Chip/ChipIcon.js +1 -1
  69. package/components/Chip/ChipOptions.js +6 -6
  70. package/components/Chip/ChipSelect.js +2 -2
  71. package/components/Chip/ChipSuggest/ChipSuggest.js +21 -0
  72. package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +85 -0
  73. package/components/Chip/ChipSuggest/ChipSuggestTarget.js +42 -0
  74. package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +81 -0
  75. package/components/Chip/ChipSuggest/index.js +7 -0
  76. package/components/Chip/index.js +7 -3
  77. package/components/ChipGroup/ChipGroup.js +13 -13
  78. package/components/Col/Col.js +135 -135
  79. package/components/CollapsableTree/components/CollapsableTreeNode.js +6 -6
  80. package/components/DesignTokens/DesignTokenUtils.js +2 -2
  81. package/components/DesignTokens/DesignTokensComponents.js +54 -40
  82. package/components/DesignTokens/DesignTokensComponentsThemeDark.js +59 -40
  83. package/components/DesignTokens/components/Card.js +6 -3
  84. package/components/DesignTokens/components/Island.js +1 -1
  85. package/components/DesignTokens/components/IslandAccordion.js +9 -0
  86. package/components/DesignTokens/components/LightBox.js +11 -0
  87. package/components/DesignTokens/components/Loader.js +13 -7
  88. package/components/DesignTokens/components/SMSInput.js +26 -0
  89. package/components/DesignTokens/components/StatusTracker.js +35 -0
  90. package/components/DesignTokens/components/Step.js +44 -0
  91. package/components/DesignTokens/components/index.js +76 -64
  92. package/components/Divider/Divider.js +21 -21
  93. package/components/Dropdown/desktop/DropdownDesktop.js +15 -15
  94. package/components/Dropdown/desktop/DropdownList.js +42 -41
  95. package/components/Dropdown/desktop/DropdownListItem.js +2 -2
  96. package/components/Dropdown/desktop/index.js +1 -1
  97. package/components/Dropdown/index.js +1 -1
  98. package/components/Dropdown/mobile/DropdownMobile.js +2 -2
  99. package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
  100. package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
  101. package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
  102. package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
  103. package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
  104. package/components/Dropdown/mobile/DropdownMobileInput.js +4 -4
  105. package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
  106. package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
  107. package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
  108. package/components/Ellipsis/Ellipsis.js +12 -12
  109. package/components/ExpandAnimation/ExpandAnimation.js +26 -26
  110. package/components/Footer/Footer.js +9 -20
  111. package/components/Footer/components/FooterDescription.js +2 -2
  112. package/components/Footer/components/FooterDescriptionContent.js +2 -2
  113. package/components/Footer/components/FooterDescriptionControls.js +2 -2
  114. package/components/FormField/FormField.js +9 -9
  115. package/components/FormField/components/FormFieldClear.js +10 -10
  116. package/components/FormField/components/FormFieldCounter.js +1 -1
  117. package/components/FormField/components/FormFieldDescription.js +4 -4
  118. package/components/FormField/components/FormFieldInput.js +4 -3
  119. package/components/FormField/components/FormFieldLabel.js +9 -9
  120. package/components/FormField/components/FormFieldMaskedInput.js +22 -22
  121. package/components/FormField/components/FormFieldPostfix.js +8 -8
  122. package/components/FormField/components/FormFieldPrefix.js +8 -8
  123. package/components/FormField/components/FormFieldTarget.js +11 -11
  124. package/components/FormField/components/FormFieldTextarea.js +32 -28
  125. package/components/FormField/index.js +1 -1
  126. package/components/Header/Header.js +15 -27
  127. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
  128. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
  129. package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
  130. package/components/Header/components/HeaderSubheader/HeaderSubheader.js +6 -6
  131. package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
  132. package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
  133. package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
  134. package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
  135. package/components/Header/components/HeaderTitle/HeaderTitleContent.js +15 -7
  136. package/components/Header/components/HeaderTitle/HeaderTitleControls.js +14 -6
  137. package/components/HelpBox/HelpBox.js +20 -20
  138. package/components/Island/Island.js +12 -16
  139. package/components/Island/components/IslandBody.js +4 -4
  140. package/components/Island/components/IslandFooter.js +3 -3
  141. package/components/Island/components/IslandHeader.js +4 -4
  142. package/components/Island/components/index.js +9 -0
  143. package/components/Island/index.js +7 -1
  144. package/components/Island/utils.js +1 -3
  145. package/components/IslandAccordion/IslandAccordion.js +31 -0
  146. package/components/IslandAccordion/IslandAccordionContext.js +16 -0
  147. package/components/IslandAccordion/components/IslandAccordionContent.js +12 -0
  148. package/components/IslandAccordion/components/IslandAccordionFooter.js +13 -0
  149. package/components/IslandAccordion/components/IslandAccordionItem.js +122 -0
  150. package/components/IslandAccordion/components/IslandAccordionTitle.js +21 -0
  151. package/components/IslandAccordion/components/index.js +11 -0
  152. package/components/IslandAccordion/index.js +13 -0
  153. package/components/LightBox/LightBox.js +105 -0
  154. package/components/LightBox/LightBoxContent.js +10 -0
  155. package/components/LightBox/LightBoxControls/LightBoxClose.js +53 -0
  156. package/components/LightBox/LightBoxControls/LightBoxControls.js +15 -0
  157. package/components/LightBox/LightBoxControls/LightBoxNext.js +58 -0
  158. package/components/LightBox/LightBoxControls/LightBoxPrev.js +58 -0
  159. package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +106 -0
  160. package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +35 -0
  161. package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +27 -0
  162. package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +21 -0
  163. package/components/LightBox/LightBoxTopOverlay/LightBoxTopOverlay.js +86 -0
  164. package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +63 -0
  165. package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js +28 -0
  166. package/components/LightBox/index.js +7 -0
  167. package/components/Link/Link.js +21 -21
  168. package/components/List/List.js +8 -8
  169. package/components/List/ListSortable.js +1 -1
  170. package/components/List/components/ListEmptyState.js +2 -2
  171. package/components/List/components/ListItem.js +1 -1
  172. package/components/List/components/ListItemContent.js +7 -7
  173. package/components/List/components/ListItemControls.js +5 -5
  174. package/components/List/components/ListItemControlsButton.js +2 -2
  175. package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
  176. package/components/List/components/ListItemLoading.js +7 -7
  177. package/components/List/components/ListItemSelectable.js +7 -7
  178. package/components/List/components/ListItemTable.js +4 -4
  179. package/components/List/components/ListItemTailLeft.js +2 -2
  180. package/components/List/components/ListItemTailRight.js +2 -2
  181. package/components/List/components/ListSortableItem.js +10 -10
  182. package/components/List/components/ListSortableItemControls.js +5 -5
  183. package/components/List/components/ListSortableItemTarget.js +5 -5
  184. package/components/List/index.js +1 -1
  185. package/components/ListMaster/ListMaster.js +1 -1
  186. package/components/ListMaster/components/ListMasterBody.js +1 -1
  187. package/components/ListMaster/components/ListMasterChipGroup.js +7 -7
  188. package/components/ListMaster/components/ListMasterFooter.js +2 -2
  189. package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
  190. package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
  191. package/components/ListMaster/components/ListMasterHeader.js +11 -11
  192. package/components/ListMaster/components/SelectionControls.js +3 -3
  193. package/components/Loader/LoaderMiddle/LoaderMiddle.js +18 -17
  194. package/components/Loader/LoaderSmall/LoaderSmall.js +11 -11
  195. package/components/LoaderScreen/LoaderScreen.js +17 -18
  196. package/components/Marker/Marker.js +2 -2
  197. package/components/Marker/utils.js +1 -1
  198. package/components/MarkerStatus/MarkerStatus.js +13 -13
  199. package/components/Notification/Notification.js +3 -3
  200. package/components/Notification/NotificationGrouped.js +1 -1
  201. package/components/Notification/components/NotificationBody.js +1 -1
  202. package/components/Notification/components/NotificationBodyContent.js +1 -1
  203. package/components/Notification/components/NotificationBodyList.js +2 -2
  204. package/components/Notification/components/NotificationClose.js +1 -1
  205. package/components/Notification/components/NotificationFooter.js +1 -1
  206. package/components/Notification/components/NotificationGroupedFooter.js +2 -2
  207. package/components/Notification/components/NotificationHeader.js +1 -1
  208. package/components/Notification/components/NotificationIcon.js +1 -1
  209. package/components/Notification/components/NotificationTime.js +1 -1
  210. package/components/NumberField/NumberFieldInput.js +1 -1
  211. package/components/OrderedList/OrderedList.js +7 -7
  212. package/components/OrderedList/OrderedListItem.js +9 -9
  213. package/components/Overlay/Overlay.js +2 -2
  214. package/components/Overlay/OverlayMask.js +2 -2
  215. package/components/Overlay/OverlayPanel.js +2 -2
  216. package/components/Page/Page.js +13 -13
  217. package/components/Page/components/BodyPage.js +2 -2
  218. package/components/Page/components/FooterPage.js +35 -29
  219. package/components/Page/components/HeaderPage.js +22 -28
  220. package/components/Page/components/useStickyCornerRadius.js +32 -22
  221. package/components/Pagination/components/PaginationExtended.js +6 -6
  222. package/components/Pagination/components/PaginationNavigationButton.js +5 -5
  223. package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
  224. package/components/Pagination/components/PaginationPageButton.js +6 -6
  225. package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
  226. package/components/Pagination/components/PaginationSelect.js +8 -8
  227. package/components/Pagination/utils/paginationUtils.js +1 -1
  228. package/components/Radio/Radio.js +16 -16
  229. package/components/Radio/RadioXGroup.js +12 -12
  230. package/components/Radio/RadioYGroup.js +9 -9
  231. package/components/Row/Row.js +5 -5
  232. package/components/SMSInput/SMSInput.js +41 -0
  233. package/components/SMSInput/SMSInputContext.js +23 -0
  234. package/components/SMSInput/components/RefreshIcon.js +35 -0
  235. package/components/SMSInput/components/SMSInputInput.js +63 -0
  236. package/components/SMSInput/components/SMSInputRefresh.js +39 -0
  237. package/components/SMSInput/components/SMSInputSubmit.js +43 -0
  238. package/components/SMSInput/components/SMSInputTooltip.js +38 -0
  239. package/components/SMSInput/components/SubmitIcon.js +19 -0
  240. package/components/SMSInput/index.js +5 -0
  241. package/components/SMSInput/types.js +2 -0
  242. package/components/SegmentedControl/SegmentedControl.js +14 -14
  243. package/components/SegmentedControl/SegmentedControlSegment.js +6 -6
  244. package/components/SelectExtendedField/SelectExtendedField.js +7 -7
  245. package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
  246. package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +8 -8
  247. package/components/SelectField/SelectField.js +1 -1
  248. package/components/Skeleton/Skeleton.js +10 -10
  249. package/components/Spoiler/Spoiler.js +75 -0
  250. package/components/Spoiler/index.js +5 -0
  251. package/components/StatusTracker/StatusTracker.js +45 -0
  252. package/components/StatusTracker/components/StatusTrackerAlert.js +18 -0
  253. package/components/StatusTracker/components/StatusTrackerBody.js +20 -0
  254. package/components/StatusTracker/components/StatusTrackerButton.js +16 -0
  255. package/components/StatusTracker/components/StatusTrackerDescription.js +24 -0
  256. package/components/StatusTracker/components/StatusTrackerFooter.js +28 -0
  257. package/components/StatusTracker/components/StatusTrackerHeader.js +22 -0
  258. package/components/StatusTracker/components/StatusTrackerMedia.js +11 -0
  259. package/components/StatusTracker/components/StatusTrackerStatus.js +12 -0
  260. package/components/StatusTracker/components/StatusTrackerSum.js +25 -0
  261. package/components/StatusTracker/components/StatusTrackerTitle.js +24 -0
  262. package/components/StatusTracker/enums.js +6 -0
  263. package/components/StatusTracker/index.js +5 -0
  264. package/components/Step/Step.js +49 -0
  265. package/components/Step/enums.js +6 -0
  266. package/components/Step/index.js +9 -0
  267. package/components/Stepper/RightBorderArrow.js +1 -1
  268. package/components/Stepper/Stepper.js +7 -7
  269. package/components/Stepper/StepperExtended.js +2 -2
  270. package/components/Stepper/StepperStep.js +3 -3
  271. package/components/Stepper/StepperWrapper.js +5 -5
  272. package/components/Suggest/Suggest.js +99 -0
  273. package/components/Suggest/SuggestContext.js +29 -0
  274. package/components/Suggest/SuggestMobileDropdownContent.js +96 -0
  275. package/components/Suggest/index.js +8 -0
  276. package/components/Suggest/types.js +2 -0
  277. package/components/SuggestField/SuggestField.js +11 -12
  278. package/components/SuggestField/SuggestFieldTarget.js +35 -32
  279. package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
  280. package/components/SuggestField/desktop/SuggestFieldDesktop.js +81 -80
  281. package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
  282. package/components/SuggestField/index.js +1 -1
  283. package/components/SuggestField/mobile/SuggestFieldMobile.js +27 -26
  284. package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +2 -2
  285. package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
  286. package/components/SuggestField/mobile/index.js +1 -1
  287. package/components/SwipeableArea/SwipeableArea.js +24 -24
  288. package/components/Table/FilterPanel.js +3 -3
  289. package/components/Table/MasterTable.js +18 -18
  290. package/components/Table/NoColumns.js +6 -6
  291. package/components/Table/PaginationPanel.js +3 -3
  292. package/components/Table/TableBasic/TableBasic.js +33 -32
  293. package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
  294. package/components/Table/TableBasic/components/TableBasicHeader.js +19 -18
  295. package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
  296. package/components/Table/TableBasicSettings/TableBasicSettings.js +11 -11
  297. package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +2 -2
  298. package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
  299. package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +7 -7
  300. package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
  301. package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +5 -5
  302. package/components/Table/TableFooter/TableFooter.js +2 -2
  303. package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
  304. package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +9 -9
  305. package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +10 -21
  306. package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
  307. package/components/Table/TabsLinePanel.js +6 -6
  308. package/components/Table/TabsLinePanelLinks.js +2 -2
  309. package/components/Table/utils.js +1 -1
  310. package/components/Tabs/Tabs.js +15 -15
  311. package/components/TabsExtended/TabsExtended.js +3 -3
  312. package/components/TabsExtended/components/TabsExtendedContent.js +2 -2
  313. package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
  314. package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
  315. package/components/TabsExtended/components/TabsExtendedTabButton.js +2 -2
  316. package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +2 -2
  317. package/components/TabsExtended/utils.js +1 -1
  318. package/components/TabsLine/TabsLine.js +2 -2
  319. package/components/TabsLine/components/TabsLineDesktop.js +2 -2
  320. package/components/TabsLine/components/TabsLineDropdown.js +3 -3
  321. package/components/TabsLine/components/TabsLineItem.js +2 -2
  322. package/components/TabsLine/components/TabsLineMobile.js +7 -7
  323. package/components/Tag/Tag.js +12 -12
  324. package/components/TagGroup/TagGroup.js +10 -10
  325. package/components/TextField/TextField.js +1 -1
  326. package/components/TextareaField/TextareaField.js +18 -0
  327. package/components/TextareaField/index.js +5 -0
  328. package/components/TextareaField/types.js +2 -0
  329. package/components/ThemeProvider/ThemeProvider.js +3 -3
  330. package/components/ThemeProvider/components/ThemeProviderView.js +1 -1
  331. package/components/Tooltip/components/common/TooltipBody.js +2 -2
  332. package/components/Tooltip/components/common/TooltipLink.js +19 -19
  333. package/components/Tooltip/components/common/TooltipXButton.js +1 -1
  334. package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
  335. package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
  336. package/components/Tooltip/components/mobile/TooltipMobile.js +7 -7
  337. package/components/TreeView/TreeView.js +1 -1
  338. package/components/TreeView/components/TreeViewNode.js +1 -1
  339. package/components/Triggers/TriggerClickOnKeyDownEvent.js +15 -0
  340. package/components/Typography/Caption.js +17 -17
  341. package/components/Typography/Text.js +28 -28
  342. package/components/Typography/Title.js +11 -11
  343. package/components/Typography/index.js +15 -13
  344. package/components/Typography/utils.js +1 -1
  345. package/components/UnorderedList/UnorderedList.js +6 -6
  346. package/components/UnorderedList/UnorderedListItem.js +11 -11
  347. package/components/UploadZone/UploadZone.js +3 -3
  348. package/components/UploadZone/components/UploadZoneInput.js +2 -2
  349. package/components/WindowResizeListener/WindowResizeListener.js +18 -0
  350. package/components/index.js +418 -366
  351. package/index.d.ts +740 -58
  352. package/index.js +424 -372
  353. package/package.json +33 -1
  354. package/styles/triplex-next.css +472 -441
  355. package/utils/amountUtils.js +1 -1
  356. package/utils/focus/FocusTrapUtils.js +11 -0
  357. package/utils/scroll/scrollbar.js +14 -0
  358. package/chunks/AlertProcessSpoiler-B91XiZ7K.js +0 -39
  359. package/chunks/Card.module-NgdHcwYS.js +0 -17
  360. package/chunks/Chip-XyednI9u.js +0 -87
  361. package/chunks/DropdownListItem-g0mYNHIW.js +0 -57
  362. package/chunks/DropdownMobile.module-BBY44sVr.js +0 -21
  363. package/chunks/Footer.module-4a0n1yRR.js +0 -11
  364. package/chunks/FormFieldInput-qaJqBTBV.js +0 -63
  365. package/chunks/HeaderLayoutSidebar.module-BP0DyJae.js +0 -9
  366. package/chunks/HeaderTabs.module-CXcyvbb5.js +0 -9
  367. package/chunks/HeaderTitle.module-B-6xJFnf.js +0 -9
  368. package/chunks/ListItemTail.module-D5VudFCz.js +0 -12
  369. package/chunks/ListMasterFooter.module-DzXu5TSC.js +0 -10
  370. package/chunks/Notification.module-MX1NZXsu.js +0 -21
  371. package/chunks/Overlay.module-B1IlIRoo.js +0 -18
  372. package/chunks/Page.module-Cwb_zvqj.js +0 -12
  373. package/chunks/TableFooter.module-D9_esv5A.js +0 -13
  374. package/chunks/TabsExtended.module--2PQhvJQ.js +0 -16
  375. package/chunks/TabsLine.module-CH_sqFyE.js +0 -23
  376. package/chunks/TooltipDesktop.module-D3cbaDX1.js +0 -19
  377. package/chunks/utils-D8e1oAR3.js +0 -72
  378. package/chunks/utils-dyCpsmr1.js +0 -48
  379. package/components/DesignTokens/components/Page.js +0 -9
  380. /package/components/{Island → Chip/ChipSuggest}/types.js +0 -0
@@ -0,0 +1,53 @@
1
+ import { jsxs as n, jsx as e, Fragment as f } from "react/jsx-runtime";
2
+ import { useRef as h } from "react";
3
+ import { c as u } from "../../../chunks/vendor-Ba_pyhza.js";
4
+ import { CrossStrokeSrvIcon32 as x, CrossStrokeSrvIcon20 as C } from "@sberbusiness/icons-next";
5
+ import { TriggerClickOnKeyDownEvent as E } from "../../Triggers/TriggerClickOnKeyDownEvent.js";
6
+ import { EVENT_KEY_CODES as g } from "../../../utils/keyboard.js";
7
+ import { EButtonTheme as i } from "../../Button/enums.js";
8
+ import { Button as l } from "../../Button/Button.js";
9
+ import { EComponentSize as a } from "../../../enums/EComponentSize.js";
10
+ import { s as o } from "../../../chunks/LightBoxControls.module-42gn-co3.js";
11
+ const N = ({
12
+ className: c,
13
+ onClick: t,
14
+ title: r = "Закрыть",
15
+ ...d
16
+ }) => {
17
+ const s = h(null), m = (p) => /* @__PURE__ */ n(f, { children: [
18
+ /* @__PURE__ */ e(
19
+ l,
20
+ {
21
+ className: o.lightBoxControlsDesktop,
22
+ onClick: t,
23
+ title: r,
24
+ "data-exclude-modal-focus": !0,
25
+ ref: p,
26
+ icon: /* @__PURE__ */ e(x, { paletteIndex: 0 }),
27
+ size: a.LG,
28
+ theme: i.SECONDARY_LIGHT
29
+ }
30
+ ),
31
+ /* @__PURE__ */ e(
32
+ l,
33
+ {
34
+ className: o.lightBoxControlsMobile,
35
+ onClick: t,
36
+ title: r,
37
+ "data-exclude-modal-focus": !0,
38
+ icon: /* @__PURE__ */ e(C, { paletteIndex: 0 }),
39
+ size: a.MD,
40
+ theme: i.SECONDARY_LIGHT
41
+ }
42
+ )
43
+ ] });
44
+ return /* @__PURE__ */ n("div", { className: u(c, o.lightBoxClose), ...d, children: [
45
+ /* @__PURE__ */ e("span", { className: o.withKeyboardEvent, children: /* @__PURE__ */ e(E, { eventKeyCode: g.ESCAPE, targetRef: s, children: m(s) }) }),
46
+ /* @__PURE__ */ e("span", { className: o.withoutKeyboardEvent, children: m() })
47
+ ] });
48
+ };
49
+ N.displayName = "LightBoxClose";
50
+ export {
51
+ N as LightBoxClose
52
+ };
53
+ //# sourceMappingURL=LightBoxClose.js.map
@@ -0,0 +1,15 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { LightBoxClose as m } from "./LightBoxClose.js";
3
+ import { LightBoxNext as l } from "./LightBoxNext.js";
4
+ import { LightBoxPrev as x } from "./LightBoxPrev.js";
5
+ import { c as e } from "../../../chunks/vendor-Ba_pyhza.js";
6
+ import { s as p } from "../../../chunks/LightBoxControls.module-42gn-co3.js";
7
+ const o = ({ children: t, className: r, ...s }) => /* @__PURE__ */ i("div", { className: e(r, p.lightBoxControls), ...s, "data-lightbox-component": "controls", children: t });
8
+ o.displayName = "LightBoxControls";
9
+ o.Close = m;
10
+ o.Next = l;
11
+ o.Prev = x;
12
+ export {
13
+ o as LightBoxControls
14
+ };
15
+ //# sourceMappingURL=LightBoxControls.js.map
@@ -0,0 +1,58 @@
1
+ import { jsx as e, jsxs as x, Fragment as N } from "react/jsx-runtime";
2
+ import { useRef as m } from "react";
3
+ import { c as n } from "../../../chunks/vendor-Ba_pyhza.js";
4
+ import { CaretrightStrokeSrvIcon32 as E, CaretrightStrokeSrvIcon20 as D } from "@sberbusiness/icons-next";
5
+ import { TriggerClickOnKeyDownEvent as I } from "../../Triggers/TriggerClickOnKeyDownEvent.js";
6
+ import { EVENT_KEY_CODES as R } from "../../../utils/keyboard.js";
7
+ import { Button as c } from "../../Button/Button.js";
8
+ import { EButtonTheme as s } from "../../Button/enums.js";
9
+ import { EComponentSize as f } from "../../../enums/EComponentSize.js";
10
+ import { s as o } from "../../../chunks/LightBoxControls.module-42gn-co3.js";
11
+ const v = ({
12
+ className: g,
13
+ clickByArrowRight: u,
14
+ dataTutorialId: d,
15
+ onClick: r,
16
+ title: l,
17
+ ...B
18
+ }) => {
19
+ const h = m(null), i = (t) => /* @__PURE__ */ x(N, { children: [
20
+ /* @__PURE__ */ e(
21
+ c,
22
+ {
23
+ className: n(o.lightBoxControlsDesktop, o.lightBoxNextButton),
24
+ "data-test-id": t != null && t.addDataTestId ? "lightBox-next" : void 0,
25
+ "data-tutorial-id": d,
26
+ onClick: r,
27
+ title: l,
28
+ ref: t == null ? void 0 : t.buttonRef,
29
+ icon: /* @__PURE__ */ e(E, { paletteIndex: 0 }),
30
+ size: f.LG,
31
+ theme: s.SECONDARY_LIGHT
32
+ }
33
+ ),
34
+ /* @__PURE__ */ e(
35
+ c,
36
+ {
37
+ className: n(o.lightBoxControlsMobile, o.lightBoxNextButton),
38
+ "data-test-id": t != null && t.addDataTestId ? "lightBox-next" : void 0,
39
+ "data-tutorial-id": d,
40
+ onClick: r,
41
+ title: l,
42
+ ref: t == null ? void 0 : t.buttonRef,
43
+ icon: /* @__PURE__ */ e(D, { paletteIndex: 0 }),
44
+ size: f.MD,
45
+ theme: s.SECONDARY_LIGHT
46
+ }
47
+ )
48
+ ] });
49
+ return /* @__PURE__ */ e("div", { className: n(g, o.lightBoxNext), ...B, children: u ? /* @__PURE__ */ x("span", { children: [
50
+ /* @__PURE__ */ e("span", { className: o.withKeyboardEvent, children: /* @__PURE__ */ e(I, { targetRef: h, eventKeyCode: R.ARROW_RIGHT, children: i({ addDataTestId: !0, buttonRef: h }) }) }),
51
+ /* @__PURE__ */ e("span", { className: o.withoutKeyboardEvent, children: i() })
52
+ ] }) : i({ addDataTestId: !0 }) });
53
+ };
54
+ v.displayName = "LightBoxNext";
55
+ export {
56
+ v as LightBoxNext
57
+ };
58
+ //# sourceMappingURL=LightBoxNext.js.map
@@ -0,0 +1,58 @@
1
+ import { jsx as e, jsxs as f, Fragment as g } from "react/jsx-runtime";
2
+ import { useRef as m } from "react";
3
+ import { c as n } from "../../../chunks/vendor-Ba_pyhza.js";
4
+ import { CaretleftStrokeSrvIcon32 as E, CaretleftStrokeSrvIcon20 as D } from "@sberbusiness/icons-next";
5
+ import { EButtonTheme as h } from "../../Button/enums.js";
6
+ import { TriggerClickOnKeyDownEvent as C } from "../../Triggers/TriggerClickOnKeyDownEvent.js";
7
+ import { EVENT_KEY_CODES as I } from "../../../utils/keyboard.js";
8
+ import { Button as s } from "../../Button/Button.js";
9
+ import { EComponentSize as v } from "../../../enums/EComponentSize.js";
10
+ import { s as o } from "../../../chunks/LightBoxControls.module-42gn-co3.js";
11
+ const N = ({
12
+ className: u,
13
+ clickByArrowLeft: x,
14
+ dataTutorialId: r,
15
+ onClick: d,
16
+ title: l,
17
+ ...B
18
+ }) => {
19
+ const c = m(null), i = (t) => /* @__PURE__ */ f(g, { children: [
20
+ /* @__PURE__ */ e(
21
+ s,
22
+ {
23
+ className: n(o.lightBoxControlsDesktop, o.lightBoxPrevButton),
24
+ "data-test-id": t != null && t.addDataTestId ? "lightBox-prev" : void 0,
25
+ "data-tutorial-id": r,
26
+ onClick: d,
27
+ title: l,
28
+ ref: t == null ? void 0 : t.buttonRef,
29
+ icon: /* @__PURE__ */ e(E, { paletteIndex: 0 }),
30
+ size: v.LG,
31
+ theme: h.SECONDARY_LIGHT
32
+ }
33
+ ),
34
+ /* @__PURE__ */ e(
35
+ s,
36
+ {
37
+ className: n(o.lightBoxControlsMobile, o.lightBoxPrevButton),
38
+ "data-test-id": t != null && t.addDataTestId ? "lightBox-prev" : void 0,
39
+ "data-tutorial-id": r,
40
+ onClick: d,
41
+ title: l,
42
+ ref: t == null ? void 0 : t.buttonRef,
43
+ icon: /* @__PURE__ */ e(D, { paletteIndex: 0 }),
44
+ size: v.MD,
45
+ theme: h.SECONDARY_LIGHT
46
+ }
47
+ )
48
+ ] });
49
+ return /* @__PURE__ */ e("div", { className: n(u, o.lightBoxPrev), ...B, children: x ? /* @__PURE__ */ f("span", { children: [
50
+ /* @__PURE__ */ e("span", { className: o.withKeyboardEvent, children: /* @__PURE__ */ e(C, { targetRef: c, eventKeyCode: I.ARROW_LEFT, children: i({ addDataTestId: !0, buttonRef: c }) }) }),
51
+ /* @__PURE__ */ e("span", { className: o.withoutKeyboardEvent, children: i() })
52
+ ] }) : i({ addDataTestId: !0 }) });
53
+ };
54
+ N.displayName = "LightBoxPrev";
55
+ export {
56
+ N as LightBoxPrev
57
+ };
58
+ //# sourceMappingURL=LightBoxPrev.js.map
@@ -0,0 +1,106 @@
1
+ import { jsx as i, jsxs as B, Fragment as W } from "react/jsx-runtime";
2
+ import { useState as O, useRef as x, useEffect as L } from "react";
3
+ import { c as _, F as X } from "../../../chunks/vendor-Ba_pyhza.js";
4
+ import { OverlayBase as Y, EOverlayDirection as R } from "../../Overlay/OverlayBase.js";
5
+ import { OverlayMask as j } from "../../Overlay/OverlayMask.js";
6
+ import { LightBoxSideOverlayLoader as I } from "./LightBoxSideOverlayLoader.js";
7
+ import { FocusTrapUtils as T } from "../../../utils/focus/FocusTrapUtils.js";
8
+ import { LightBoxSideOverlayCloseMobile as A } from "./LightBoxSideOverlayCloseMobile.js";
9
+ import { LightBoxSideOverlayCloseDesktop as U } from "./LightBoxSideOverlayCloseDesktop.js";
10
+ const q = "lightBoxSideOverlayMask__de7cade6", E = "lightBoxSideOverlayWrapper__13dd0b96", J = "overflowXHidden__52e21450", K = "overflowYHidden__43f25ae1", Q = "closing__a7cdf5fb", V = "opened__700be6cf", Z = "lightBoxSideOverlayContent__55d6cff1", $ = "opening__0fdcbef9", P = "sizeSM__f9ea30b2", ee = "sizeMD__08b1884a", te = "sizeLG__6e960630", oe = "lightBoxSideOverlay__38639a17", e = {
11
+ lightBoxSideOverlayMask: q,
12
+ lightBoxSideOverlayWrapper: E,
13
+ overflowXHidden: J,
14
+ overflowYHidden: K,
15
+ closing: Q,
16
+ opened: V,
17
+ lightBoxSideOverlayContent: Z,
18
+ opening: $,
19
+ sizeSM: P,
20
+ sizeMD: ee,
21
+ sizeLG: te,
22
+ lightBoxSideOverlay: oe
23
+ };
24
+ var ie = /* @__PURE__ */ ((t) => (t[t.SM = 0] = "SM", t[t.MD = 1] = "MD", t[t.LG = 2] = "LG", t))(ie || {});
25
+ const h = ({
26
+ children: t,
27
+ className: M,
28
+ focusTrapProps: l,
29
+ isLoading: a,
30
+ loadingTitle: S,
31
+ isTopLevelSideOverlayOpened: p,
32
+ isTopOverlayOpened: u,
33
+ onClose: c,
34
+ onOpen: d,
35
+ opened: o,
36
+ size: f = 1,
37
+ ...D
38
+ }) => {
39
+ const [r, v] = O(!1), [s, g] = O(!1), m = x(o), y = x(null);
40
+ L(() => {
41
+ m.current && !o ? (g(!1), v(!0)) : !m.current && o && (v(!1), g(!0)), m.current = o;
42
+ }, [o]);
43
+ const k = (n) => {
44
+ const { target: z, currentTarget: C } = n;
45
+ z === C && (r ? (v(!1), c == null || c()) : s && (g(!1), d == null || d()));
46
+ }, H = ({ opened: n }) => /* @__PURE__ */ i(j, { opened: n, className: e.lightBoxSideOverlayMask }), b = () => /* @__PURE__ */ B(
47
+ "div",
48
+ {
49
+ className: _(e.lightBoxSideOverlayContent, {
50
+ [e.closing]: r,
51
+ [e.opening]: s,
52
+ [e.opened]: o
53
+ }),
54
+ onTransitionEnd: k,
55
+ ref: y,
56
+ children: [
57
+ t,
58
+ a && /* @__PURE__ */ i(I, { loadingTitle: S })
59
+ ]
60
+ }
61
+ ), w = () => {
62
+ }, G = _(M, e.lightBoxSideOverlayWrapper, {
63
+ [e.closing]: r,
64
+ [e.opened]: o,
65
+ [e.overflowXHidden]: !!p || !!a,
66
+ [e.overflowYHidden]: !!p || !!a || !!u,
67
+ [e.sizeSM]: f === 0,
68
+ [e.sizeMD]: f === 1,
69
+ [e.sizeLG]: f === 2
70
+ /* LG */
71
+ }), F = (n) => /* @__PURE__ */ B(W, { children: [
72
+ H(n),
73
+ b()
74
+ ] }), N = /* @__PURE__ */ i(
75
+ "div",
76
+ {
77
+ className: _(e.lightBoxSideOverlay, {
78
+ [e.closing]: r,
79
+ [e.opening]: s
80
+ }),
81
+ children: /* @__PURE__ */ i(Y, { direction: R.RIGHT, opened: o, setOpened: w, children: F })
82
+ }
83
+ );
84
+ return /* @__PURE__ */ i(
85
+ X,
86
+ {
87
+ active: o && !s && !r,
88
+ ...l,
89
+ focusTrapOptions: {
90
+ clickOutsideDeactivates: !0,
91
+ initialFocus: () => T.getFirstInteractionElementByDataAttr(y.current),
92
+ preventScroll: !0,
93
+ ...l == null ? void 0 : l.focusTrapOptions
94
+ },
95
+ children: /* @__PURE__ */ i("div", { className: G, role: "dialog", "aria-modal": "true", ...D, children: N })
96
+ }
97
+ );
98
+ };
99
+ h.displayName = "LightBoxSideOverlay";
100
+ h.CloseDesktop = U;
101
+ h.CloseMobile = A;
102
+ export {
103
+ ie as ELightBoxSideOverlaySize,
104
+ h as LightBoxSideOverlay
105
+ };
106
+ //# sourceMappingURL=LightBoxSideOverlay.js.map
@@ -0,0 +1,35 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useRef as s } from "react";
3
+ import { TriggerClickOnKeyDownEvent as n } from "../../Triggers/TriggerClickOnKeyDownEvent.js";
4
+ import { EVENT_KEY_CODES as l } from "../../../utils/keyboard.js";
5
+ import { c as p } from "../../../chunks/vendor-Ba_pyhza.js";
6
+ import { CrossStrokeSrvIcon32 as f } from "@sberbusiness/icons-next";
7
+ import { EButtonTheme as a } from "../../Button/enums.js";
8
+ import { EComponentSize as c } from "../../../enums/EComponentSize.js";
9
+ import { Button as d } from "../../Button/Button.js";
10
+ import { s as u } from "../../../chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js";
11
+ const C = ({
12
+ className: r,
13
+ clickByEsc: m,
14
+ ...i
15
+ }) => {
16
+ const o = s(null), t = () => /* @__PURE__ */ e(
17
+ d,
18
+ {
19
+ "data-exclude-modal-focus": !0,
20
+ className: p(r, u.lightBoxSideOverlayCloseDesktop),
21
+ title: "Закрыть",
22
+ ...i,
23
+ ref: o,
24
+ icon: /* @__PURE__ */ e(f, { paletteIndex: 0 }),
25
+ size: c.LG,
26
+ theme: a.SECONDARY_LIGHT
27
+ }
28
+ );
29
+ return m ? /* @__PURE__ */ e(n, { eventKeyCode: l.ESCAPE, targetRef: o, children: t() }) : t();
30
+ };
31
+ C.displayName = "LightBoxSideOverlayCloseDesktop";
32
+ export {
33
+ C as LightBoxSideOverlayCloseDesktop
34
+ };
35
+ //# sourceMappingURL=LightBoxSideOverlayCloseDesktop.js.map
@@ -0,0 +1,27 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as r } from "../../../chunks/vendor-Ba_pyhza.js";
3
+ import { CrossStrokeSrvIcon20 as i } from "@sberbusiness/icons-next";
4
+ import { s as m } from "../../../chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js";
5
+ import { EButtonTheme as l } from "../../Button/enums.js";
6
+ import { EComponentSize as s } from "../../../enums/EComponentSize.js";
7
+ import { Button as a } from "../../Button/Button.js";
8
+ const p = ({
9
+ className: e,
10
+ ...t
11
+ }) => /* @__PURE__ */ o(
12
+ a,
13
+ {
14
+ "data-exclude-modal-focus": !0,
15
+ className: r(e, m.lightBoxSideOverlayCloseMobile),
16
+ title: "Закрыть",
17
+ ...t,
18
+ icon: /* @__PURE__ */ o(i, { paletteIndex: 0 }),
19
+ size: s.MD,
20
+ theme: l.SECONDARY
21
+ }
22
+ );
23
+ p.displayName = "LightBoxSideOverlayCloseMobile";
24
+ export {
25
+ p as LightBoxSideOverlayCloseMobile
26
+ };
27
+ //# sourceMappingURL=LightBoxSideOverlayCloseMobile.js.map
@@ -0,0 +1,21 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useState as s, useRef as l, useEffect as p } from "react";
3
+ import { LoaderScreen as d } from "../../LoaderScreen/LoaderScreen.js";
4
+ const n = "lightBoxSideOverlayLoaderWrapper__e4f40a9e", c = {
5
+ lightBoxSideOverlayLoaderWrapper: n
6
+ }, f = ({ loadingTitle: a }) => {
7
+ const [t, r] = s(0), e = l(null);
8
+ return p(() => {
9
+ setTimeout(() => {
10
+ if (e.current) {
11
+ const o = e.current.getBoundingClientRect();
12
+ o.top !== t && (o.top > 0 ? r(0) : r(Math.abs(o.top)));
13
+ }
14
+ });
15
+ }, []), /* @__PURE__ */ i("div", { ref: e, className: c.lightBoxSideOverlayLoaderWrapper, style: { top: `${t}px` }, children: /* @__PURE__ */ i(d, { type: "middle", children: a }) });
16
+ };
17
+ f.displayName = "LightBoxSideOverlayLoader";
18
+ export {
19
+ f as LightBoxSideOverlayLoader
20
+ };
21
+ //# sourceMappingURL=LightBoxSideOverlayLoader.js.map
@@ -0,0 +1,86 @@
1
+ import { jsx as l, jsxs as P, Fragment as I } from "react/jsx-runtime";
2
+ import { useState as v, useRef as d, useEffect as C } from "react";
3
+ import { c as R, F as S } from "../../../chunks/vendor-Ba_pyhza.js";
4
+ import { EOverlayDirection as j } from "../../Overlay/OverlayBase.js";
5
+ import { Overlay as y } from "../../Overlay/Overlay.js";
6
+ const D = "lightBoxTopOverlayMask__9410973f", E = "lightBoxTopOverlayWrapper__11edb4db", L = "closing__a7cdf5fb", A = "opened__700be6cf", V = "lightBoxTopOverlayPanel__79e54db9", $ = "lightBoxTopOverlay__57206756", t = {
7
+ lightBoxTopOverlayMask: D,
8
+ lightBoxTopOverlayWrapper: E,
9
+ closing: L,
10
+ opened: A,
11
+ lightBoxTopOverlayPanel: V,
12
+ lightBoxTopOverlay: $
13
+ }, q = ({
14
+ children: B,
15
+ focusTrapProps: r,
16
+ opened: e,
17
+ onClose: s,
18
+ onOpen: i,
19
+ ...u
20
+ }) => {
21
+ const [f, h] = v(!1), [m, O] = v(!1), [x, n] = v(0), c = d(e), a = d(null), T = () => {
22
+ if (a.current) {
23
+ const o = getComputedStyle(a.current).getPropertyValue("--lightBox-screen-top") || "0", p = a.current.getBoundingClientRect();
24
+ p.top < 0 ? n(
25
+ (g) => parseInt(g, 10) + Math.abs(p.top) + parseInt(o, 10)
26
+ ) : n(
27
+ // Оверлей расположен ниже, чем нужно.
28
+ (g) => parseInt(g, 10) - p.top + parseInt(o, 10)
29
+ );
30
+ }
31
+ }, _ = () => {
32
+ T(), O(!0), i == null || i();
33
+ };
34
+ C(() => {
35
+ c.current && !e ? h(!0) : !c.current && e && T(), c.current = e;
36
+ }, [e]);
37
+ const W = () => {
38
+ h(!1), n(0), s == null || s();
39
+ }, b = () => O(!1), k = (o) => /* @__PURE__ */ P(I, { children: [
40
+ /* @__PURE__ */ l(y.Mask, { opened: o.opened, className: t.lightBoxTopOverlayMask }),
41
+ /* @__PURE__ */ l(y.Panel, { className: t.lightBoxTopOverlayPanel, ...o, children: B })
42
+ ] }), M = () => {
43
+ }, N = R(t.lightBoxTopOverlayWrapper, {
44
+ [t.closing]: f,
45
+ [t.opened]: e
46
+ }), F = /* @__PURE__ */ l(
47
+ y,
48
+ {
49
+ onClose: W,
50
+ onClosing: b,
51
+ onOpen: _,
52
+ opened: e,
53
+ setOpened: M,
54
+ ...u,
55
+ className: t.lightBoxTopOverlay,
56
+ direction: j.TOP,
57
+ children: k
58
+ }
59
+ );
60
+ return /* @__PURE__ */ l(
61
+ S,
62
+ {
63
+ active: m,
64
+ ...r,
65
+ focusTrapOptions: {
66
+ clickOutsideDeactivates: !0,
67
+ preventScroll: !0,
68
+ ...r == null ? void 0 : r.focusTrapOptions
69
+ },
70
+ children: /* @__PURE__ */ l(
71
+ "div",
72
+ {
73
+ className: N,
74
+ ref: a,
75
+ style: x ? { top: `${x}px` } : void 0,
76
+ children: F
77
+ }
78
+ )
79
+ }
80
+ );
81
+ };
82
+ q.displayName = "LightBoxTopOverlay";
83
+ export {
84
+ q as LightBoxTopOverlay
85
+ };
86
+ //# sourceMappingURL=LightBoxTopOverlay.js.map
@@ -0,0 +1,63 @@
1
+ import { jsx as r, jsxs as N } from "react/jsx-runtime";
2
+ import { useState as m, useRef as L, useCallback as n, useLayoutEffect as c } from "react";
3
+ import { Portal as B } from "../../Portal/Portal.js";
4
+ import { LightBoxViewManagerConsts as l } from "./LightBoxViewManagerConsts.js";
5
+ import { u as k, i as P, k as p } from "../../../chunks/vendor-Ba_pyhza.js";
6
+ const g = "LightBoxMountNodeViewManager", $ = ({
7
+ lightBoxMountNode: a,
8
+ lightBoxViewManagerNode: x
9
+ }) => {
10
+ const [t, h] = m(), [s, R] = m(""), o = L(null), d = n(
11
+ (e) => {
12
+ if (!e)
13
+ return;
14
+ let i = [];
15
+ e.width <= l.lightBoxMediaPoint0 ? i.push(l.breakPointsClassNames["less-or-equal-media-point-0"]) : i.push(l.breakPointsClassNames["more-media-point-0"]), i = i.sort().join(" "), s !== i && R(i);
16
+ },
17
+ [s]
18
+ ), w = () => {
19
+ if (o.current) {
20
+ const e = o.current.getBoundingClientRect();
21
+ P(
22
+ p(t, ["top", "left", "width", "height"]),
23
+ p(e, ["top", "left", "width", "height"])
24
+ ) || h(e);
25
+ }
26
+ }, f = n(() => {
27
+ if (o.current) {
28
+ const e = o.current.getBoundingClientRect();
29
+ h(e), d(e);
30
+ }
31
+ }, [d]), u = n(() => {
32
+ s && (Array.from(a.classList).forEach((e) => {
33
+ e.includes("LB-") && a.classList.toggle(e);
34
+ }), s.split(" ").forEach((e) => a.classList.add(e)));
35
+ }, [s, a.classList]);
36
+ c(() => {
37
+ f(), a.classList.add(g);
38
+ }, []), c(() => {
39
+ u();
40
+ }, [s, u]), c(() => {
41
+ w();
42
+ });
43
+ const { ref: C } = k({
44
+ handleWidth: !0,
45
+ onResize: f,
46
+ refreshMode: "throttle",
47
+ refreshRate: 150
48
+ });
49
+ return /* @__PURE__ */ r(B, { container: x, children: /* @__PURE__ */ N("div", { ref: o, style: { height: "100%" }, children: [
50
+ /* @__PURE__ */ r("div", { ref: C, style: { width: "100%", height: "100%", position: "absolute" } }),
51
+ t && /* @__PURE__ */ r("style", { children: `
52
+ .${g} {
53
+ --lightBox-screen-left: ${t.x >= 0 ? t.x : 0}px;
54
+ --lightBox-screen-width: ${t.width}px;
55
+ --lightBox-screen-top: ${t.height}px;
56
+ }
57
+ ` })
58
+ ] }) });
59
+ };
60
+ export {
61
+ $ as LightBoxViewManager
62
+ };
63
+ //# sourceMappingURL=LightBoxViewManager.js.map
@@ -0,0 +1,28 @@
1
+ import { getScrollbarWidth as r } from "../../../utils/scroll/scrollbar.js";
2
+ const o = 64, i = 16, t = 16, e = o + i + t, a = 1024, l = {
3
+ /**
4
+ * ClassNames для обозначения ширины контейнера.
5
+ * Используются для замены media query в Css, т.к. media query учитывает только ширину экрана, а не ширину элемента.
6
+ */
7
+ breakPointsClassNames: {
8
+ // Ширина меньше или равна lightBoxMediaPoint0.
9
+ "less-or-equal-media-point-0": "global-LB-less-or-equal-media-point-0",
10
+ // Ширина больше lightBoxMediaPoint0.
11
+ // У этого класса нет стилей, поэтому тут произвольный класс.
12
+ "more-media-point-0": "global-LB-more-media-point-0"
13
+ },
14
+ // Расстояние от стрелки до лайтбокса.
15
+ lightBoxArrowMarginToLightBox: i,
16
+ // Расстояние от стрелки до края экрана.
17
+ lightBoxArrowMarginToScreen: t,
18
+ // Ширина стрелки лайтбокса.
19
+ lightBoxArrowWidth: o,
20
+ // Ширина стрелки лайтбокса с полями по бокам.
21
+ lightBoxArrowWithMarginWidth: e,
22
+ // Breakpoint для экранов менее 1024px.
23
+ lightBoxMediaPoint0: a + r()
24
+ };
25
+ export {
26
+ l as LightBoxViewManagerConsts
27
+ };
28
+ //# sourceMappingURL=LightBoxViewManagerConsts.js.map
@@ -0,0 +1,7 @@
1
+ import { LightBox as t, lightBoxMountNodeIdDefault as a, lightBoxViewManagerNodeIdDefault as d } from "./LightBox.js";
2
+ export {
3
+ t as LightBox,
4
+ a as lightBoxMountNodeIdDefault,
5
+ d as lightBoxViewManagerNodeIdDefault
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -1,20 +1,20 @@
1
- import { jsx as R, jsxs as t, Fragment as d } from "react/jsx-runtime";
1
+ import { jsx as R, jsxs as t, Fragment as i } from "react/jsx-runtime";
2
2
  import L from "react";
3
- import { c as l } from "../../chunks/vendor-CehxOAkM.js";
4
- const v = "link__873f9874", F = "wordWithContent__6c3e27a0", S = "before__748dcd5d", T = "after__0a80da7e", e = {
3
+ import { c as a } from "../../chunks/vendor-Ba_pyhza.js";
4
+ const v = "link__81e5301c", F = "wordWithContent__0a1c37b4", S = "before__2ff2f479", T = "after__61cfb574", e = {
5
5
  link: v,
6
6
  wordWithContent: F,
7
7
  before: S,
8
8
  after: T
9
9
  }, q = L.forwardRef(
10
- ({ children: i, className: N, onBlur: p, onMouseDown: f, contentAfter: s, contentBefore: o, ...C }, _) => {
11
- const c = () => o ? /* @__PURE__ */ t(d, { children: [
10
+ ({ children: d, className: f, onBlur: N, onMouseDown: p, contentAfter: s, contentBefore: o, ...C }, _) => {
11
+ const c = () => o ? /* @__PURE__ */ t(i, { children: [
12
12
  "​",
13
13
  o()
14
14
  ] }) : null, m = () => s ? s() : null, u = (n) => {
15
15
  const r = n.split(" ");
16
16
  if (r.length < 2 || r.length < 3 && o && s) {
17
- const y = l(e.wordWithContent, {
17
+ const y = a(e.wordWithContent, {
18
18
  [e.after]: !!s,
19
19
  [e.before]: !!o
20
20
  });
@@ -24,43 +24,43 @@ const v = "link__873f9874", F = "wordWithContent__6c3e27a0", S = "before__748dcd
24
24
  m()
25
25
  ] });
26
26
  }
27
- const a = r[0], h = r[r.length - 1], k = r.slice(1, -1).join(" "), b = l(e.wordWithContent, {
27
+ const l = r[0], h = r[r.length - 1], w = r.slice(1, -1).join(" "), k = a(e.wordWithContent, {
28
28
  [e.before]: !!o
29
- }), g = o ? /* @__PURE__ */ t("span", { className: b, children: [
29
+ }), g = o ? /* @__PURE__ */ t("span", { className: k, children: [
30
30
  c(),
31
- a
32
- ] }) : a, x = l(e.wordWithContent, {
31
+ l
32
+ ] }) : l, x = a(e.wordWithContent, {
33
33
  [e.after]: !!s
34
34
  }), j = s ? /* @__PURE__ */ t("span", { className: x, children: [
35
35
  h,
36
36
  m()
37
37
  ] }) : h;
38
- return /* @__PURE__ */ t(d, { children: [
38
+ return /* @__PURE__ */ t(i, { children: [
39
39
  g,
40
40
  " ",
41
- k,
41
+ w,
42
42
  " ",
43
43
  j
44
44
  ] });
45
45
  }, W = (n) => {
46
- const r = o ? o() : null, a = s ? s() : null;
47
- return /* @__PURE__ */ t(d, { children: [
46
+ const r = o ? o() : null, l = s ? s() : null;
47
+ return /* @__PURE__ */ t(i, { children: [
48
48
  r,
49
49
  n,
50
- a
50
+ l
51
51
  ] });
52
- }, w = o || s ? ((n) => typeof n == "string" ? u(n) : W(n))(i) : i;
52
+ }, b = o || s ? ((n) => typeof n == "string" ? u(n) : W(n))(d) : d;
53
53
  return /* @__PURE__ */ R(
54
54
  "a",
55
55
  {
56
56
  role: "link",
57
57
  ...C,
58
- className: l(N, e.link, "hoverable"),
59
- onBlur: p,
60
- onMouseDown: f,
61
- "data-tx": "1.3.0",
58
+ className: a(f, e.link, "hoverable"),
59
+ onBlur: N,
60
+ onMouseDown: p,
61
+ "data-tx": "1.4.0",
62
62
  ref: _,
63
- children: w
63
+ children: b
64
64
  }
65
65
  );
66
66
  }