@vibe/core 3.63.1 → 3.64.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 (586) hide show
  1. package/dist/components/AttentionBox/AttentionBox.d.ts +3 -0
  2. package/dist/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.d.ts +6 -0
  3. package/dist/components/DropdownNew/Dropdown.types.d.ts +4 -0
  4. package/dist/components/DropdownNew/context/DropdownContext.types.d.ts +1 -1
  5. package/dist/components/next/AttentionBox/AttentionBox.d.ts +4 -0
  6. package/dist/components/next/AttentionBox/AttentionBox.types.d.ts +70 -0
  7. package/dist/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.d.ts +7 -0
  8. package/dist/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.d.ts +8 -0
  9. package/dist/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.d.ts +10 -0
  10. package/dist/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.d.ts +5 -0
  11. package/dist/components/next/AttentionBox/consts/icons.d.ts +3 -0
  12. package/dist/components/next/AttentionBox/index.d.ts +2 -0
  13. package/dist/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.d.ts +5 -0
  14. package/dist/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.d.ts +5 -0
  15. package/dist/components/next/AttentionBox/utils/iconUtils.d.ts +3 -0
  16. package/dist/components/next/index.d.ts +1 -0
  17. package/dist/components/next.d.ts +1 -0
  18. package/dist/hooks/useThrottledCallback.d.ts +1 -1
  19. package/dist/hooks/useTimeout/index.d.ts +1 -1
  20. package/dist/icons/dist/react/Favorite.js +2 -0
  21. package/dist/icons/dist/react/Favorite.js.map +1 -0
  22. package/dist/metadata.json +198 -0
  23. package/dist/mocked_classnames/components/AttentionBox/AttentionBox.d.ts +3 -0
  24. package/dist/mocked_classnames/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.d.ts +6 -0
  25. package/dist/mocked_classnames/components/DropdownNew/Dropdown.types.d.ts +4 -0
  26. package/dist/mocked_classnames/components/DropdownNew/context/DropdownContext.types.d.ts +1 -1
  27. package/dist/mocked_classnames/components/next/AttentionBox/AttentionBox.d.ts +4 -0
  28. package/dist/mocked_classnames/components/next/AttentionBox/AttentionBox.types.d.ts +70 -0
  29. package/dist/mocked_classnames/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.d.ts +7 -0
  30. package/dist/mocked_classnames/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.d.ts +8 -0
  31. package/dist/mocked_classnames/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.d.ts +10 -0
  32. package/dist/mocked_classnames/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.d.ts +5 -0
  33. package/dist/mocked_classnames/components/next/AttentionBox/consts/icons.d.ts +3 -0
  34. package/dist/mocked_classnames/components/next/AttentionBox/index.d.ts +2 -0
  35. package/dist/mocked_classnames/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.d.ts +5 -0
  36. package/dist/mocked_classnames/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.d.ts +5 -0
  37. package/dist/mocked_classnames/components/next/AttentionBox/utils/iconUtils.d.ts +3 -0
  38. package/dist/mocked_classnames/components/next/index.d.ts +1 -0
  39. package/dist/mocked_classnames/components/next.d.ts +1 -0
  40. package/dist/mocked_classnames/hooks/useThrottledCallback.d.ts +1 -1
  41. package/dist/mocked_classnames/hooks/useTimeout/index.d.ts +1 -1
  42. package/dist/mocked_classnames/icons/dist/react/Favorite.js +2 -0
  43. package/dist/mocked_classnames/icons/dist/react/Favorite.js.map +1 -0
  44. package/dist/mocked_classnames/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
  45. package/dist/mocked_classnames/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
  46. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
  47. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
  48. package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
  49. package/dist/mocked_classnames/src/components/AttentionBox/AttentionBox.js.map +1 -1
  50. package/dist/mocked_classnames/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
  51. package/dist/mocked_classnames/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.js.map +1 -1
  52. package/dist/mocked_classnames/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
  53. package/dist/mocked_classnames/src/components/Avatar/Avatar.js +1 -1
  54. package/dist/mocked_classnames/src/components/Avatar/Avatar.js.map +1 -1
  55. package/dist/mocked_classnames/src/components/Avatar/Avatar.module.scss.js +1 -1
  56. package/dist/mocked_classnames/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
  57. package/dist/mocked_classnames/src/components/Avatar/AvatarContent.module.scss.js +1 -1
  58. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
  59. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
  60. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
  61. package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
  62. package/dist/mocked_classnames/src/components/Badge/Badge.module.scss.js +1 -1
  63. package/dist/mocked_classnames/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
  64. package/dist/mocked_classnames/src/components/BaseInput/BaseInput.module.scss.js +1 -1
  65. package/dist/mocked_classnames/src/components/BaseList/BaseList.module.scss.js +1 -1
  66. package/dist/mocked_classnames/src/components/BaseListItem/BaseListItem.module.scss.js +1 -1
  67. package/dist/mocked_classnames/src/components/Box/Box.module.scss.js +1 -1
  68. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
  69. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
  70. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
  71. package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
  72. package/dist/mocked_classnames/src/components/Button/Button.module.scss.js +1 -1
  73. package/dist/mocked_classnames/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
  74. package/dist/mocked_classnames/src/components/ButtonGroup/ButtonWrapper.js +1 -1
  75. package/dist/mocked_classnames/src/components/ButtonGroup/ButtonWrapper.js.map +1 -1
  76. package/dist/mocked_classnames/src/components/Checkbox/Checkbox.js +1 -1
  77. package/dist/mocked_classnames/src/components/Checkbox/Checkbox.js.map +1 -1
  78. package/dist/mocked_classnames/src/components/Checkbox/Checkbox.module.scss.js +1 -1
  79. package/dist/mocked_classnames/src/components/Chips/Chips.module.scss.js +1 -1
  80. package/dist/mocked_classnames/src/components/Clickable/Clickable.js +1 -1
  81. package/dist/mocked_classnames/src/components/Clickable/Clickable.js.map +1 -1
  82. package/dist/mocked_classnames/src/components/Clickable/Clickable.module.scss.js +1 -1
  83. package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
  84. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
  85. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
  86. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +1 -1
  87. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +1 -1
  88. package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
  89. package/dist/mocked_classnames/src/components/Combobox/Combobox.js +1 -1
  90. package/dist/mocked_classnames/src/components/Combobox/Combobox.js.map +1 -1
  91. package/dist/mocked_classnames/src/components/Combobox/Combobox.module.scss.js +1 -1
  92. package/dist/mocked_classnames/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
  93. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
  94. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
  95. package/dist/mocked_classnames/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
  96. package/dist/mocked_classnames/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
  97. package/dist/mocked_classnames/src/components/Counter/Counter.module.scss.js +1 -1
  98. package/dist/mocked_classnames/src/components/DatePicker/DateNavigationItem/DateNavigationItem.module.scss.js +1 -1
  99. package/dist/mocked_classnames/src/components/DatePicker/DatePicker.module.scss.js +1 -1
  100. package/dist/mocked_classnames/src/components/DatePicker/DatePickerHeader/DatePickerHeader.module.scss.js +1 -1
  101. package/dist/mocked_classnames/src/components/DatePicker/YearPicker/YearPicker.module.scss.js +1 -1
  102. package/dist/mocked_classnames/src/components/DatePicker/date-picker-utils.js +1 -1
  103. package/dist/mocked_classnames/src/components/DatePicker/date-picker-utils.js.map +1 -1
  104. package/dist/mocked_classnames/src/components/DatePicker/external_datepicker.scss.js +1 -1
  105. package/dist/mocked_classnames/src/components/Dialog/Dialog.js +1 -1
  106. package/dist/mocked_classnames/src/components/Dialog/Dialog.js.map +1 -1
  107. package/dist/mocked_classnames/src/components/Dialog/Dialog.module.scss.js +1 -1
  108. package/dist/mocked_classnames/src/components/Dialog/DialogContent/DialogContent.module.scss.js +1 -1
  109. package/dist/mocked_classnames/src/components/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
  110. package/dist/mocked_classnames/src/components/Divider/Divider.module.scss.js +1 -1
  111. package/dist/mocked_classnames/src/components/Dropdown/Dropdown.js +1 -1
  112. package/dist/mocked_classnames/src/components/Dropdown/Dropdown.js.map +1 -1
  113. package/dist/mocked_classnames/src/components/Dropdown/Dropdown.module.scss.js +1 -1
  114. package/dist/mocked_classnames/src/components/Dropdown/components/ChildrenContent/ChildrenContent.module.scss.js +1 -1
  115. package/dist/mocked_classnames/src/components/Dropdown/components/MultiValueContainer/MultiValueContainer.module.scss.js +1 -1
  116. package/dist/mocked_classnames/src/components/Dropdown/components/menu/menu.module.scss.js +1 -1
  117. package/dist/mocked_classnames/src/components/Dropdown/components/option/option.module.scss.js +1 -1
  118. package/dist/mocked_classnames/src/components/Dropdown/components/singleValue/singleValue.module.scss.js +1 -1
  119. package/dist/mocked_classnames/src/components/DropdownNew/components/DropdownBase/DropdownBase.module.scss.js +1 -1
  120. package/dist/mocked_classnames/src/components/DropdownNew/components/Menu/Menu.module.scss.js +1 -1
  121. package/dist/mocked_classnames/src/components/DropdownNew/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
  122. package/dist/mocked_classnames/src/components/DropdownNew/components/Trigger/Trigger.module.scss.js +1 -1
  123. package/dist/mocked_classnames/src/components/DropdownNew/components/Trigger/TriggerActions.js +1 -1
  124. package/dist/mocked_classnames/src/components/DropdownNew/components/Trigger/TriggerActions.js.map +1 -1
  125. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownComboboxController.js +1 -1
  126. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownComboboxController.js.map +1 -1
  127. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownMultiComboboxController.js +1 -1
  128. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownMultiComboboxController.js.map +1 -1
  129. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownMultiSelectController.js +1 -1
  130. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownMultiSelectController.js.map +1 -1
  131. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownSelectController.js +1 -1
  132. package/dist/mocked_classnames/src/components/DropdownNew/modes/DropdownSelectController.js.map +1 -1
  133. package/dist/mocked_classnames/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
  134. package/dist/mocked_classnames/src/components/EditableText/EditableText.module.scss.js +1 -1
  135. package/dist/mocked_classnames/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
  136. package/dist/mocked_classnames/src/components/EmptyState/EmptyState.module.scss.js +1 -1
  137. package/dist/mocked_classnames/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
  138. package/dist/mocked_classnames/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
  139. package/dist/mocked_classnames/src/components/Flex/Flex.module.scss.js +1 -1
  140. package/dist/mocked_classnames/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
  141. package/dist/mocked_classnames/src/components/Heading/Heading.module.scss.js +1 -1
  142. package/dist/mocked_classnames/src/components/HiddenText/HiddenText.module.scss.js +1 -1
  143. package/dist/mocked_classnames/src/components/Icon/Icon.module.scss.js +1 -1
  144. package/dist/mocked_classnames/src/components/Icon/hooks/useIconProps.js +1 -1
  145. package/dist/mocked_classnames/src/components/Icon/hooks/useIconProps.js.map +1 -1
  146. package/dist/mocked_classnames/src/components/IconButton/IconButton.js +1 -1
  147. package/dist/mocked_classnames/src/components/IconButton/IconButton.js.map +1 -1
  148. package/dist/mocked_classnames/src/components/IconButton/IconButton.module.scss.js +1 -1
  149. package/dist/mocked_classnames/src/components/InfoText/InfoText.module.scss.js +1 -1
  150. package/dist/mocked_classnames/src/components/Label/Label.module.scss.js +1 -1
  151. package/dist/mocked_classnames/src/components/Label/LabelCelebrationAnimation.module.scss.js +1 -1
  152. package/dist/mocked_classnames/src/components/LegacyModal/LegacyModal.module.scss.js +1 -1
  153. package/dist/mocked_classnames/src/components/LegacyModal/LegacyModalContent/LegacyModalContent.module.scss.js +1 -1
  154. package/dist/mocked_classnames/src/components/LegacyModal/LegacyModalFooter/LegacyModalFooter.module.scss.js +1 -1
  155. package/dist/mocked_classnames/src/components/LegacyModal/LegacyModalHeader/LegacyModalHeader.module.scss.js +1 -1
  156. package/dist/mocked_classnames/src/components/Link/Link.module.scss.js +1 -1
  157. package/dist/mocked_classnames/src/components/List/List.module.scss.js +1 -1
  158. package/dist/mocked_classnames/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
  159. package/dist/mocked_classnames/src/components/ListItem/ListItem.js +1 -1
  160. package/dist/mocked_classnames/src/components/ListItem/ListItem.js.map +1 -1
  161. package/dist/mocked_classnames/src/components/ListItem/ListItem.module.scss.js +1 -1
  162. package/dist/mocked_classnames/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
  163. package/dist/mocked_classnames/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
  164. package/dist/mocked_classnames/src/components/ListTitle/ListTitle.module.scss.js +1 -1
  165. package/dist/mocked_classnames/src/components/Loader/Loader.module.scss.js +1 -1
  166. package/dist/mocked_classnames/src/components/Menu/Menu/Menu.module.scss.js +1 -1
  167. package/dist/mocked_classnames/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
  168. package/dist/mocked_classnames/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
  169. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
  170. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
  171. package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
  172. package/dist/mocked_classnames/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
  173. package/dist/mocked_classnames/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
  174. package/dist/mocked_classnames/src/components/MenuButton/MenuButton.module.scss.js +1 -1
  175. package/dist/mocked_classnames/src/components/Modal/Modal/Modal.module.scss.js +1 -1
  176. package/dist/mocked_classnames/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
  177. package/dist/mocked_classnames/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
  178. package/dist/mocked_classnames/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
  179. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
  180. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
  181. package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
  182. package/dist/mocked_classnames/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
  183. package/dist/mocked_classnames/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
  184. package/dist/mocked_classnames/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
  185. package/dist/mocked_classnames/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
  186. package/dist/mocked_classnames/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
  187. package/dist/mocked_classnames/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
  188. package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
  189. package/dist/mocked_classnames/src/components/NumberField/NumberField.module.scss.js +1 -1
  190. package/dist/mocked_classnames/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
  191. package/dist/mocked_classnames/src/components/ProgressBars/LinearProgressBar/Bar/Bar.module.scss.js +1 -1
  192. package/dist/mocked_classnames/src/components/ProgressBars/LinearProgressBar/LinearProgressBar.module.scss.js +1 -1
  193. package/dist/mocked_classnames/src/components/ProgressBars/LinearProgressBar/LinearProgressBarHelpers.js +1 -1
  194. package/dist/mocked_classnames/src/components/ProgressBars/LinearProgressBar/LinearProgressBarHelpers.js.map +1 -1
  195. package/dist/mocked_classnames/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
  196. package/dist/mocked_classnames/src/components/RadioButton/RadioButton.module.scss.js +1 -1
  197. package/dist/mocked_classnames/src/components/Search/Search.module.scss.js +1 -1
  198. package/dist/mocked_classnames/src/components/Skeleton/Skeleton.module.scss.js +1 -1
  199. package/dist/mocked_classnames/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
  200. package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.js +1 -1
  201. package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.js.map +1 -1
  202. package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
  203. package/dist/mocked_classnames/src/components/Slider/Slider.module.scss.js +1 -1
  204. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
  205. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
  206. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
  207. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
  208. package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
  209. package/dist/mocked_classnames/src/components/Slider/SliderInfix.module.scss.js +1 -1
  210. package/dist/mocked_classnames/src/components/SplitButton/SplitButton.module.scss.js +1 -1
  211. package/dist/mocked_classnames/src/components/Steps/Steps.module.scss.js +1 -1
  212. package/dist/mocked_classnames/src/components/Steps/StepsCommand.module.scss.js +1 -1
  213. package/dist/mocked_classnames/src/components/Steps/StepsDot.js +1 -1
  214. package/dist/mocked_classnames/src/components/Steps/StepsDot.js.map +1 -1
  215. package/dist/mocked_classnames/src/components/Steps/StepsDot.module.scss.js +1 -1
  216. package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.js +1 -1
  217. package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.js.map +1 -1
  218. package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
  219. package/dist/mocked_classnames/src/components/Steps/StepsHeader.module.scss.js +1 -1
  220. package/dist/mocked_classnames/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
  221. package/dist/mocked_classnames/src/components/Switch/Switch.module.scss.js +1 -1
  222. package/dist/mocked_classnames/src/components/Table/Table/Table.module.scss.js +1 -1
  223. package/dist/mocked_classnames/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
  224. package/dist/mocked_classnames/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
  225. package/dist/mocked_classnames/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
  226. package/dist/mocked_classnames/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
  227. package/dist/mocked_classnames/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
  228. package/dist/mocked_classnames/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
  229. package/dist/mocked_classnames/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
  230. package/dist/mocked_classnames/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
  231. package/dist/mocked_classnames/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
  232. package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.js +1 -1
  233. package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.js.map +1 -1
  234. package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
  235. package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
  236. package/dist/mocked_classnames/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
  237. package/dist/mocked_classnames/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
  238. package/dist/mocked_classnames/src/components/Text/Text.module.scss.js +1 -1
  239. package/dist/mocked_classnames/src/components/TextArea/TextArea.module.scss.js +1 -1
  240. package/dist/mocked_classnames/src/components/TextField/TextField.module.scss.js +1 -1
  241. package/dist/mocked_classnames/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
  242. package/dist/mocked_classnames/src/components/Tipseen/Tipseen.module.scss.js +1 -1
  243. package/dist/mocked_classnames/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
  244. package/dist/mocked_classnames/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
  245. package/dist/mocked_classnames/src/components/Tipseen/TipseenImage.module.scss.js +1 -1
  246. package/dist/mocked_classnames/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
  247. package/dist/mocked_classnames/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
  248. package/dist/mocked_classnames/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
  249. package/dist/mocked_classnames/src/components/Toast/Toast.module.scss.js +1 -1
  250. package/dist/mocked_classnames/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
  251. package/dist/mocked_classnames/src/components/Toggle/MockToggle.module.scss.js +1 -1
  252. package/dist/mocked_classnames/src/components/Toggle/Toggle.js +1 -1
  253. package/dist/mocked_classnames/src/components/Toggle/Toggle.js.map +1 -1
  254. package/dist/mocked_classnames/src/components/Toggle/Toggle.module.scss.js +1 -1
  255. package/dist/mocked_classnames/src/components/Toggle/ToggleText.module.scss.js +1 -1
  256. package/dist/mocked_classnames/src/components/Tooltip/Tooltip.js +1 -1
  257. package/dist/mocked_classnames/src/components/Tooltip/Tooltip.js.map +1 -1
  258. package/dist/mocked_classnames/src/components/Tooltip/Tooltip.module.scss.js +1 -1
  259. package/dist/mocked_classnames/src/components/TransitionView/TransitionView.module.scss.js +1 -1
  260. package/dist/mocked_classnames/src/components/Typography/Typography.module.scss.js +1 -1
  261. package/dist/mocked_classnames/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
  262. package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.js +1 -1
  263. package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.js.map +1 -1
  264. package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
  265. package/dist/mocked_classnames/src/components/next/AttentionBox/AttentionBox.js +2 -0
  266. package/dist/mocked_classnames/src/components/next/AttentionBox/AttentionBox.js.map +1 -0
  267. package/dist/mocked_classnames/src/components/next/AttentionBox/AttentionBox.module.scss.js +2 -0
  268. package/dist/mocked_classnames/src/components/next/AttentionBox/AttentionBox.module.scss.js.map +1 -0
  269. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.js +2 -0
  270. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.js.map +1 -0
  271. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.js +2 -0
  272. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.js.map +1 -0
  273. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +2 -0
  274. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js.map +1 -0
  275. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js +2 -0
  276. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js.map +1 -0
  277. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +2 -0
  278. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js.map +1 -0
  279. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.js +2 -0
  280. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.js.map +1 -0
  281. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +2 -0
  282. package/dist/mocked_classnames/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js.map +1 -0
  283. package/dist/mocked_classnames/src/components/next/AttentionBox/consts/icons.js +2 -0
  284. package/dist/mocked_classnames/src/components/next/AttentionBox/consts/icons.js.map +1 -0
  285. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.js +2 -0
  286. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.js.map +1 -0
  287. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +2 -0
  288. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js.map +1 -0
  289. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.js +2 -0
  290. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.js.map +1 -0
  291. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +2 -0
  292. package/dist/mocked_classnames/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js.map +1 -0
  293. package/dist/mocked_classnames/src/components/next/AttentionBox/utils/iconUtils.js +2 -0
  294. package/dist/mocked_classnames/src/components/next/AttentionBox/utils/iconUtils.js.map +1 -0
  295. package/dist/mocked_classnames/src/components/next.js +1 -1
  296. package/dist/mocked_classnames/src/helpers/screenReaderAccessHelper.js +1 -1
  297. package/dist/mocked_classnames/src/helpers/screenReaderAccessHelper.js.map +1 -1
  298. package/dist/mocked_classnames/src/hooks/useDebounceEvent/index.js +1 -1
  299. package/dist/mocked_classnames/src/hooks/useDebounceEvent/index.js.map +1 -1
  300. package/dist/mocked_classnames/src/hooks/useElementsOverflowingIndex.js +1 -1
  301. package/dist/mocked_classnames/src/hooks/useElementsOverflowingIndex.js.map +1 -1
  302. package/dist/mocked_classnames/src/hooks/useFullKeyboardListeners.js +1 -1
  303. package/dist/mocked_classnames/src/hooks/useFullKeyboardListeners.js.map +1 -1
  304. package/dist/mocked_classnames/src/hooks/useResizeObserver.js +1 -1
  305. package/dist/mocked_classnames/src/hooks/useResizeObserver.js.map +1 -1
  306. package/dist/mocked_classnames/src/hooks/useThrottledCallback.js +1 -1
  307. package/dist/mocked_classnames/src/hooks/useThrottledCallback.js.map +1 -1
  308. package/dist/mocked_classnames/src/hooks/useTimeout/index.js +1 -1
  309. package/dist/mocked_classnames/src/hooks/useTimeout/index.js.map +1 -1
  310. package/dist/mocked_classnames/src/utils/dom-utils.js +1 -1
  311. package/dist/mocked_classnames/src/utils/dom-utils.js.map +1 -1
  312. package/dist/mocked_classnames/src/utils/function-utils.js +1 -1
  313. package/dist/mocked_classnames/src/utils/function-utils.js.map +1 -1
  314. package/dist/mocked_classnames/style/dist/index.min.css.js +1 -1
  315. package/dist/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
  316. package/dist/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
  317. package/dist/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
  318. package/dist/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
  319. package/dist/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
  320. package/dist/src/components/AttentionBox/AttentionBox.js.map +1 -1
  321. package/dist/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
  322. package/dist/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.js.map +1 -1
  323. package/dist/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
  324. package/dist/src/components/Avatar/Avatar.js +1 -1
  325. package/dist/src/components/Avatar/Avatar.js.map +1 -1
  326. package/dist/src/components/Avatar/Avatar.module.scss.js +1 -1
  327. package/dist/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
  328. package/dist/src/components/Avatar/AvatarContent.module.scss.js +1 -1
  329. package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
  330. package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
  331. package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
  332. package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
  333. package/dist/src/components/Badge/Badge.module.scss.js +1 -1
  334. package/dist/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
  335. package/dist/src/components/BaseInput/BaseInput.module.scss.js +1 -1
  336. package/dist/src/components/BaseList/BaseList.module.scss.js +1 -1
  337. package/dist/src/components/BaseListItem/BaseListItem.module.scss.js +1 -1
  338. package/dist/src/components/Box/Box.module.scss.js +1 -1
  339. package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
  340. package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
  341. package/dist/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
  342. package/dist/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
  343. package/dist/src/components/Button/Button.module.scss.js +1 -1
  344. package/dist/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
  345. package/dist/src/components/ButtonGroup/ButtonWrapper.js +1 -1
  346. package/dist/src/components/ButtonGroup/ButtonWrapper.js.map +1 -1
  347. package/dist/src/components/Checkbox/Checkbox.js +1 -1
  348. package/dist/src/components/Checkbox/Checkbox.js.map +1 -1
  349. package/dist/src/components/Checkbox/Checkbox.module.scss.js +1 -1
  350. package/dist/src/components/Chips/Chips.module.scss.js +1 -1
  351. package/dist/src/components/Clickable/Clickable.js +1 -1
  352. package/dist/src/components/Clickable/Clickable.js.map +1 -1
  353. package/dist/src/components/Clickable/Clickable.module.scss.js +1 -1
  354. package/dist/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
  355. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
  356. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
  357. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js +1 -1
  358. package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerContent.js.map +1 -1
  359. package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
  360. package/dist/src/components/Combobox/Combobox.js +1 -1
  361. package/dist/src/components/Combobox/Combobox.js.map +1 -1
  362. package/dist/src/components/Combobox/Combobox.module.scss.js +1 -1
  363. package/dist/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
  364. package/dist/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
  365. package/dist/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
  366. package/dist/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
  367. package/dist/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
  368. package/dist/src/components/Counter/Counter.module.scss.js +1 -1
  369. package/dist/src/components/DatePicker/DateNavigationItem/DateNavigationItem.module.scss.js +1 -1
  370. package/dist/src/components/DatePicker/DatePicker.module.scss.js +1 -1
  371. package/dist/src/components/DatePicker/DatePickerHeader/DatePickerHeader.module.scss.js +1 -1
  372. package/dist/src/components/DatePicker/YearPicker/YearPicker.module.scss.js +1 -1
  373. package/dist/src/components/DatePicker/date-picker-utils.js +1 -1
  374. package/dist/src/components/DatePicker/date-picker-utils.js.map +1 -1
  375. package/dist/src/components/DatePicker/external_datepicker.scss.js +1 -1
  376. package/dist/src/components/Dialog/Dialog.js +1 -1
  377. package/dist/src/components/Dialog/Dialog.js.map +1 -1
  378. package/dist/src/components/Dialog/Dialog.module.scss.js +1 -1
  379. package/dist/src/components/Dialog/DialogContent/DialogContent.module.scss.js +1 -1
  380. package/dist/src/components/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
  381. package/dist/src/components/Divider/Divider.module.scss.js +1 -1
  382. package/dist/src/components/Dropdown/Dropdown.js +1 -1
  383. package/dist/src/components/Dropdown/Dropdown.js.map +1 -1
  384. package/dist/src/components/Dropdown/Dropdown.module.scss.js +1 -1
  385. package/dist/src/components/Dropdown/components/ChildrenContent/ChildrenContent.module.scss.js +1 -1
  386. package/dist/src/components/Dropdown/components/MultiValueContainer/MultiValueContainer.module.scss.js +1 -1
  387. package/dist/src/components/Dropdown/components/menu/menu.module.scss.js +1 -1
  388. package/dist/src/components/Dropdown/components/option/option.module.scss.js +1 -1
  389. package/dist/src/components/Dropdown/components/singleValue/singleValue.module.scss.js +1 -1
  390. package/dist/src/components/DropdownNew/components/DropdownBase/DropdownBase.module.scss.js +1 -1
  391. package/dist/src/components/DropdownNew/components/Menu/Menu.module.scss.js +1 -1
  392. package/dist/src/components/DropdownNew/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
  393. package/dist/src/components/DropdownNew/components/Trigger/Trigger.module.scss.js +1 -1
  394. package/dist/src/components/DropdownNew/components/Trigger/TriggerActions.js +1 -1
  395. package/dist/src/components/DropdownNew/components/Trigger/TriggerActions.js.map +1 -1
  396. package/dist/src/components/DropdownNew/modes/DropdownComboboxController.js +1 -1
  397. package/dist/src/components/DropdownNew/modes/DropdownComboboxController.js.map +1 -1
  398. package/dist/src/components/DropdownNew/modes/DropdownMultiComboboxController.js +1 -1
  399. package/dist/src/components/DropdownNew/modes/DropdownMultiComboboxController.js.map +1 -1
  400. package/dist/src/components/DropdownNew/modes/DropdownMultiSelectController.js +1 -1
  401. package/dist/src/components/DropdownNew/modes/DropdownMultiSelectController.js.map +1 -1
  402. package/dist/src/components/DropdownNew/modes/DropdownSelectController.js +1 -1
  403. package/dist/src/components/DropdownNew/modes/DropdownSelectController.js.map +1 -1
  404. package/dist/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
  405. package/dist/src/components/EditableText/EditableText.module.scss.js +1 -1
  406. package/dist/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
  407. package/dist/src/components/EmptyState/EmptyState.module.scss.js +1 -1
  408. package/dist/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
  409. package/dist/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
  410. package/dist/src/components/Flex/Flex.module.scss.js +1 -1
  411. package/dist/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
  412. package/dist/src/components/Heading/Heading.module.scss.js +1 -1
  413. package/dist/src/components/HiddenText/HiddenText.module.scss.js +1 -1
  414. package/dist/src/components/Icon/Icon.module.scss.js +1 -1
  415. package/dist/src/components/Icon/hooks/useIconProps.js +1 -1
  416. package/dist/src/components/Icon/hooks/useIconProps.js.map +1 -1
  417. package/dist/src/components/IconButton/IconButton.js +1 -1
  418. package/dist/src/components/IconButton/IconButton.js.map +1 -1
  419. package/dist/src/components/IconButton/IconButton.module.scss.js +1 -1
  420. package/dist/src/components/InfoText/InfoText.module.scss.js +1 -1
  421. package/dist/src/components/Label/Label.module.scss.js +1 -1
  422. package/dist/src/components/Label/LabelCelebrationAnimation.module.scss.js +1 -1
  423. package/dist/src/components/LegacyModal/LegacyModal.module.scss.js +1 -1
  424. package/dist/src/components/LegacyModal/LegacyModalContent/LegacyModalContent.module.scss.js +1 -1
  425. package/dist/src/components/LegacyModal/LegacyModalFooter/LegacyModalFooter.module.scss.js +1 -1
  426. package/dist/src/components/LegacyModal/LegacyModalHeader/LegacyModalHeader.module.scss.js +1 -1
  427. package/dist/src/components/Link/Link.module.scss.js +1 -1
  428. package/dist/src/components/List/List.module.scss.js +1 -1
  429. package/dist/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
  430. package/dist/src/components/ListItem/ListItem.js +1 -1
  431. package/dist/src/components/ListItem/ListItem.js.map +1 -1
  432. package/dist/src/components/ListItem/ListItem.module.scss.js +1 -1
  433. package/dist/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
  434. package/dist/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
  435. package/dist/src/components/ListTitle/ListTitle.module.scss.js +1 -1
  436. package/dist/src/components/Loader/Loader.module.scss.js +1 -1
  437. package/dist/src/components/Menu/Menu/Menu.module.scss.js +1 -1
  438. package/dist/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
  439. package/dist/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
  440. package/dist/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
  441. package/dist/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
  442. package/dist/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
  443. package/dist/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
  444. package/dist/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
  445. package/dist/src/components/MenuButton/MenuButton.module.scss.js +1 -1
  446. package/dist/src/components/Modal/Modal/Modal.module.scss.js +1 -1
  447. package/dist/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
  448. package/dist/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
  449. package/dist/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
  450. package/dist/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
  451. package/dist/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
  452. package/dist/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
  453. package/dist/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
  454. package/dist/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
  455. package/dist/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
  456. package/dist/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
  457. package/dist/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
  458. package/dist/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
  459. package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
  460. package/dist/src/components/NumberField/NumberField.module.scss.js +1 -1
  461. package/dist/src/components/NumberField/components/NumberFieldSpinButton/NumberFieldSpinButton.module.scss.js +1 -1
  462. package/dist/src/components/ProgressBars/LinearProgressBar/Bar/Bar.module.scss.js +1 -1
  463. package/dist/src/components/ProgressBars/LinearProgressBar/LinearProgressBar.module.scss.js +1 -1
  464. package/dist/src/components/ProgressBars/LinearProgressBar/LinearProgressBarHelpers.js +1 -1
  465. package/dist/src/components/ProgressBars/LinearProgressBar/LinearProgressBarHelpers.js.map +1 -1
  466. package/dist/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
  467. package/dist/src/components/RadioButton/RadioButton.module.scss.js +1 -1
  468. package/dist/src/components/Search/Search.module.scss.js +1 -1
  469. package/dist/src/components/Skeleton/Skeleton.module.scss.js +1 -1
  470. package/dist/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
  471. package/dist/src/components/Slider/SelectionIndicator.js +1 -1
  472. package/dist/src/components/Slider/SelectionIndicator.js.map +1 -1
  473. package/dist/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
  474. package/dist/src/components/Slider/Slider.module.scss.js +1 -1
  475. package/dist/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
  476. package/dist/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
  477. package/dist/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
  478. package/dist/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
  479. package/dist/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
  480. package/dist/src/components/Slider/SliderInfix.module.scss.js +1 -1
  481. package/dist/src/components/SplitButton/SplitButton.module.scss.js +1 -1
  482. package/dist/src/components/Steps/Steps.module.scss.js +1 -1
  483. package/dist/src/components/Steps/StepsCommand.module.scss.js +1 -1
  484. package/dist/src/components/Steps/StepsDot.js +1 -1
  485. package/dist/src/components/Steps/StepsDot.js.map +1 -1
  486. package/dist/src/components/Steps/StepsDot.module.scss.js +1 -1
  487. package/dist/src/components/Steps/StepsGalleryHeader.js +1 -1
  488. package/dist/src/components/Steps/StepsGalleryHeader.js.map +1 -1
  489. package/dist/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
  490. package/dist/src/components/Steps/StepsHeader.module.scss.js +1 -1
  491. package/dist/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
  492. package/dist/src/components/Switch/Switch.module.scss.js +1 -1
  493. package/dist/src/components/Table/Table/Table.module.scss.js +1 -1
  494. package/dist/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
  495. package/dist/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
  496. package/dist/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
  497. package/dist/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
  498. package/dist/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
  499. package/dist/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
  500. package/dist/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
  501. package/dist/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
  502. package/dist/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
  503. package/dist/src/components/Tabs/Tab/Tab.js +1 -1
  504. package/dist/src/components/Tabs/Tab/Tab.js.map +1 -1
  505. package/dist/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
  506. package/dist/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
  507. package/dist/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
  508. package/dist/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
  509. package/dist/src/components/Text/Text.module.scss.js +1 -1
  510. package/dist/src/components/TextArea/TextArea.module.scss.js +1 -1
  511. package/dist/src/components/TextField/TextField.module.scss.js +1 -1
  512. package/dist/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
  513. package/dist/src/components/Tipseen/Tipseen.module.scss.js +1 -1
  514. package/dist/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
  515. package/dist/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
  516. package/dist/src/components/Tipseen/TipseenImage.module.scss.js +1 -1
  517. package/dist/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
  518. package/dist/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
  519. package/dist/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
  520. package/dist/src/components/Toast/Toast.module.scss.js +1 -1
  521. package/dist/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
  522. package/dist/src/components/Toggle/MockToggle.module.scss.js +1 -1
  523. package/dist/src/components/Toggle/Toggle.js +1 -1
  524. package/dist/src/components/Toggle/Toggle.js.map +1 -1
  525. package/dist/src/components/Toggle/Toggle.module.scss.js +1 -1
  526. package/dist/src/components/Toggle/ToggleText.module.scss.js +1 -1
  527. package/dist/src/components/Tooltip/Tooltip.js +1 -1
  528. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  529. package/dist/src/components/Tooltip/Tooltip.module.scss.js +1 -1
  530. package/dist/src/components/TransitionView/TransitionView.module.scss.js +1 -1
  531. package/dist/src/components/Typography/Typography.module.scss.js +1 -1
  532. package/dist/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
  533. package/dist/src/components/VirtualizedList/VirtualizedList.js +1 -1
  534. package/dist/src/components/VirtualizedList/VirtualizedList.js.map +1 -1
  535. package/dist/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
  536. package/dist/src/components/next/AttentionBox/AttentionBox.js +2 -0
  537. package/dist/src/components/next/AttentionBox/AttentionBox.js.map +1 -0
  538. package/dist/src/components/next/AttentionBox/AttentionBox.module.scss.js +2 -0
  539. package/dist/src/components/next/AttentionBox/AttentionBox.module.scss.js.map +1 -0
  540. package/dist/src/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.js +2 -0
  541. package/dist/src/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.js.map +1 -0
  542. package/dist/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.js +2 -0
  543. package/dist/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.js.map +1 -0
  544. package/dist/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js +2 -0
  545. package/dist/src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.module.scss.js.map +1 -0
  546. package/dist/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js +2 -0
  547. package/dist/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js.map +1 -0
  548. package/dist/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js +2 -0
  549. package/dist/src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.module.scss.js.map +1 -0
  550. package/dist/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.js +2 -0
  551. package/dist/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.js.map +1 -0
  552. package/dist/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js +2 -0
  553. package/dist/src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.module.scss.js.map +1 -0
  554. package/dist/src/components/next/AttentionBox/consts/icons.js +2 -0
  555. package/dist/src/components/next/AttentionBox/consts/icons.js.map +1 -0
  556. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.js +2 -0
  557. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.js.map +1 -0
  558. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js +2 -0
  559. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.module.scss.js.map +1 -0
  560. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.js +2 -0
  561. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.js.map +1 -0
  562. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js +2 -0
  563. package/dist/src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.module.scss.js.map +1 -0
  564. package/dist/src/components/next/AttentionBox/utils/iconUtils.js +2 -0
  565. package/dist/src/components/next/AttentionBox/utils/iconUtils.js.map +1 -0
  566. package/dist/src/components/next.js +1 -1
  567. package/dist/src/helpers/screenReaderAccessHelper.js +1 -1
  568. package/dist/src/helpers/screenReaderAccessHelper.js.map +1 -1
  569. package/dist/src/hooks/useDebounceEvent/index.js +1 -1
  570. package/dist/src/hooks/useDebounceEvent/index.js.map +1 -1
  571. package/dist/src/hooks/useElementsOverflowingIndex.js +1 -1
  572. package/dist/src/hooks/useElementsOverflowingIndex.js.map +1 -1
  573. package/dist/src/hooks/useFullKeyboardListeners.js +1 -1
  574. package/dist/src/hooks/useFullKeyboardListeners.js.map +1 -1
  575. package/dist/src/hooks/useResizeObserver.js +1 -1
  576. package/dist/src/hooks/useResizeObserver.js.map +1 -1
  577. package/dist/src/hooks/useThrottledCallback.js +1 -1
  578. package/dist/src/hooks/useThrottledCallback.js.map +1 -1
  579. package/dist/src/hooks/useTimeout/index.js +1 -1
  580. package/dist/src/hooks/useTimeout/index.js.map +1 -1
  581. package/dist/src/utils/dom-utils.js +1 -1
  582. package/dist/src/utils/dom-utils.js.map +1 -1
  583. package/dist/src/utils/function-utils.js +1 -1
  584. package/dist/src/utils/function-utils.js.map +1 -1
  585. package/dist/style/dist/index.min.css.js +1 -1
  586. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\nimport { camelCase, isFunction } from \"es-toolkit/compat\";\nimport cx from \"classnames\";\nimport React, { type CSSProperties, isValidElement, PureComponent, type ReactElement } from \"react\";\nimport { type Modifier } from \"react-popper\";\nimport Dialog from \"../Dialog/Dialog\";\nimport { type DialogAnimationType, type DialogTriggerEvent } from \"../Dialog/Dialog.types\";\nimport { HideShowEvent as HideShowEventEnum, AnimationType as AnimationTypeEnum } from \"../Dialog/DialogConstants\";\nimport type VibeComponentProps from \"../../types/VibeComponentProps\";\nimport { TooltipTheme as TooltipThemeEnum, TooltipPositions as TooltipPositionsEnum } from \"./TooltipConstants\";\nimport { type ElementContent } from \"../../types/ElementContent\";\nimport { type MoveBy } from \"../../types/MoveBy\";\nimport { getStyle } from \"../../helpers/typesciptCssModulesHelper\";\nimport styles from \"./Tooltip.module.scss\";\nimport { ComponentDefaultTestId, getTestId } from \"../../tests/test-ids-utils\";\nimport { type SubIcon } from \"../../types\";\nimport Icon from \"../Icon/Icon\";\nimport Flex from \"../Flex/Flex\";\nimport { type TooltipPositions, type TooltipTheme } from \"./Tooltip.types\";\n\nexport type TooltipProps = TooltipBaseProps & (TooltipWithChildrenProps | TooltipWithoutChildrenProps);\n\ninterface TooltipWithoutChildrenProps {\n /**\n * If true, the tooltip will be rendered even if there are no children.\n */\n forceRenderWithoutChildren: boolean;\n /**\n * The children elements that the tooltip is attached to.\n */\n children?: ReactElement | Array<ReactElement>;\n}\n\ninterface TooltipWithChildrenProps {\n /**\n * If true, the tooltip will be rendered even if there are no children.\n */\n forceRenderWithoutChildren?: boolean;\n /**\n * The children elements that the tooltip is attached to.\n */\n children: ReactElement | Array<ReactElement>;\n}\n\n// TODO TS-migration extend DialogProps, once Dialog is migrated to TS\ninterface TooltipBaseProps extends VibeComponentProps {\n /**\n * The content displayed inside the tooltip.\n */\n content: ElementContent;\n /**\n * Inline styles applied to the tooltip container.\n */\n style?: CSSProperties;\n /**\n * Class name applied to the tooltip arrow.\n */\n arrowClassName?: string;\n /**\n * Offset values for positioning adjustments.\n */\n moveBy?: MoveBy;\n /**\n * The theme of the tooltip.\n */\n theme?: TooltipTheme;\n /**\n * Function to get the container where the tooltip should be rendered.\n */\n getContainer?: () => HTMLElement;\n /**\n * Delay in milliseconds before hiding the tooltip.\n */\n hideDelay?: number;\n /**\n * Delay in milliseconds before showing the tooltip.\n */\n showDelay?: number;\n /**\n * If true, disables the slide animation of the tooltip.\n */\n disableDialogSlide?: boolean;\n /**\n * The animation type used for showing/hiding the tooltip.\n */\n animationType?: DialogAnimationType;\n /**\n * If true, renders the tooltip without a dialog.\n */\n withoutDialog?: boolean;\n /**\n * The CSS selector of the container where the tooltip should be rendered.\n */\n containerSelector?: string;\n /**\n * Delay in milliseconds before showing the tooltip immediately.\n */\n immediateShowDelay?: number;\n /**\n * If false, hides the arrow of the tooltip.\n */\n tip?: boolean;\n /**\n * If true, the tooltip is shown when the component mounts.\n */\n shouldShowOnMount?: boolean;\n /**\n * If true, hides the tooltip when the reference element is hidden.\n */\n hideWhenReferenceHidden?: boolean;\n /**\n * Callback fired when the tooltip is hidden.\n */\n onTooltipHide?: () => void;\n /**\n * Callback fired when the tooltip is shown.\n */\n onTooltipShow?: () => void;\n /**\n * Custom Popper.js modifiers.\n * https://popper.js.org/docs/v2/modifiers/\n */\n modifiers?: Array<Modifier<unknown>>;\n /**\n * The placement of the tooltip relative to the reference element.\n */\n position?: TooltipPositions;\n /**\n * Events that trigger showing the tooltip.\n */\n showTrigger?: DialogTriggerEvent | Array<DialogTriggerEvent>;\n /**\n * Events that trigger hiding the tooltip.\n */\n hideTrigger?: DialogTriggerEvent | Array<DialogTriggerEvent>;\n /**\n * If true, prevents closing the tooltip when the mouse enters it.\n */\n showOnDialogEnter?: boolean;\n /**\n * Class name applied to the reference wrapper element.\n */\n referenceWrapperClassName?: string;\n /**\n * If true, keyboard focus/blur events behave like mouse enter/leave.\n */\n addKeyboardHideShowTriggersByDefault?: boolean;\n /**\n * If true, controls the open state of the tooltip.\n */\n open?: boolean;\n /**\n * The z-index applied to the tooltip.\n */\n zIndex?: number;\n /**\n * The title of the tooltip.\n */\n title?: string;\n /**\n * The image displayed inside the tooltip.\n */\n image?: string;\n /**\n * The icon displayed next to the title.\n */\n icon?: SubIcon;\n /**\n * The maximum width of the tooltip.\n */\n maxWidth?: number;\n /**\n * The text direction of the tooltip: \"ltr\", \"rtl\", or \"auto\".\n */\n dir?: \"ltr\" | \"rtl\" | \"auto\";\n}\n// When last tooltip was shown in the last 1.5 second - the next tooltip will be shown immediately\nconst IMMEDIATE_SHOW_THRESHOLD_MS = 1500;\n\n// Shared state across multiple tooltip instances (i.e last tooltip shown time)\nconst globalState: { lastTooltipHideTS: number; openTooltipsCount: number } = {\n lastTooltipHideTS: null,\n openTooltipsCount: 0\n};\n\nexport default class Tooltip extends PureComponent<TooltipProps> {\n wasShown: boolean;\n static positions = TooltipPositionsEnum;\n static hideShowTriggers = HideShowEventEnum;\n static themes = TooltipThemeEnum;\n static animationTypes = AnimationTypeEnum;\n static defaultProps = {\n moveBy: { main: 4, secondary: 0 },\n theme: \"dark\",\n position: \"top\",\n hideDelay: 100,\n showDelay: 300,\n disableDialogSlide: true,\n animationType: AnimationTypeEnum.EXPAND,\n withoutDialog: false,\n tip: true,\n hideWhenReferenceHidden: false,\n modifiers: new Array<Modifier<unknown>>(),\n showTrigger: Tooltip.hideShowTriggers.MOUSE_ENTER,\n hideTrigger: Tooltip.hideShowTriggers.MOUSE_LEAVE,\n showOnDialogEnter: true,\n referenceWrapperClassName: \"\",\n addKeyboardHideShowTriggersByDefault: true,\n open: false\n };\n constructor(props: TooltipProps) {\n super(props);\n this.renderTooltipContent = this.renderTooltipContent.bind(this);\n this.getShowDelay = this.getShowDelay.bind(this);\n this.onTooltipShow = this.onTooltipShow.bind(this);\n this.onTooltipHide = this.onTooltipHide.bind(this);\n\n this.wasShown = false;\n }\n\n renderTooltipContent() {\n const { theme, content, className, style, maxWidth, title, image, icon, dir } = this.props;\n if (!content) {\n // don't render empty tooltip\n return null;\n }\n let contentValue;\n if (isFunction(content)) {\n contentValue = content();\n } else if (isValidElement(content)) {\n contentValue = content;\n } else if (typeof content === \"string\" && content) {\n contentValue = content;\n } else if (Array.isArray(content) && content.length > 0) {\n // allow array of elements\n contentValue = content;\n }\n\n if (!contentValue) {\n return null;\n }\n\n return (\n <div\n style={maxWidth ? ({ ...style, \"--tooltip-max-width\": `${maxWidth}px` } as CSSProperties) : style}\n className={cx(styles.tooltip, getStyle(styles, camelCase(theme)), className)}\n dir={dir}\n >\n {image && <img className={styles.image} src={image} alt=\"\" />}\n <div className={cx(styles.content)}>\n {title && (\n <Flex gap=\"xs\">\n {icon && <Icon iconSize=\"20\" icon={icon} />}\n <div className={styles.title}>{title}</div>\n </Flex>\n )}\n {contentValue}\n </div>\n </div>\n );\n }\n\n onTooltipShow() {\n if (!this.wasShown) {\n const { onTooltipShow } = this.props;\n globalState.openTooltipsCount++;\n this.wasShown = true;\n onTooltipShow && onTooltipShow();\n }\n }\n\n onTooltipHide() {\n if (this.wasShown) {\n const { onTooltipHide } = this.props;\n globalState.lastTooltipHideTS = Date.now();\n globalState.openTooltipsCount--;\n this.wasShown = false;\n onTooltipHide && onTooltipHide();\n }\n }\n\n getTimeSinceLastTooltip() {\n if (globalState.openTooltipsCount > 0) {\n return 0;\n }\n return globalState.lastTooltipHideTS ? Date.now() - globalState.lastTooltipHideTS : Infinity;\n }\n\n getShowDelay() {\n const { showDelay, immediateShowDelay } = this.props;\n const timeSinceLastTooltip = this.getTimeSinceLastTooltip();\n if ((immediateShowDelay === 0 || immediateShowDelay) && timeSinceLastTooltip < IMMEDIATE_SHOW_THRESHOLD_MS) {\n // showing the tooltip immediately (without animation)\n return {\n showDelay: immediateShowDelay,\n preventAnimation: true\n };\n }\n return {\n showDelay,\n preventAnimation: false\n };\n }\n\n render() {\n const {\n withoutDialog,\n children,\n forceRenderWithoutChildren,\n theme,\n tip,\n arrowClassName,\n id,\n \"data-testid\": dataTestId,\n position\n } = this.props;\n\n if (!children && !forceRenderWithoutChildren) {\n return null;\n }\n\n if (withoutDialog) {\n return this.renderTooltipContent();\n }\n\n const content = this.renderTooltipContent;\n const dialogProps = {\n ...this.props,\n position: position,\n \"data-testid\": dataTestId || getTestId(ComponentDefaultTestId.TOOLTIP, id),\n tooltip: tip,\n content,\n tooltipClassName: cx(styles.arrow, getStyle(styles, theme), arrowClassName),\n onDialogDidHide: this.onTooltipHide,\n onDialogDidShow: this.onTooltipShow,\n getDynamicShowDelay: this.getShowDelay\n };\n return (\n <Dialog {...dialogProps} animationType=\"expand\">\n {children}\n </Dialog>\n );\n }\n}\n"],"names":["globalState","lastTooltipHideTS","openTooltipsCount","Tooltip","_PureComponent","props","_this","_classCallCheck","_callSuper","renderTooltipContent","bind","getShowDelay","onTooltipShow","onTooltipHide","wasShown","_inherits","PureComponent","_createClass","key","value","contentValue","_this$props","this","theme","content","className","style","maxWidth","title","image","icon","dir","isFunction","isValidElement","Array","isArray","length","React","Object","assign","concat","cx","styles","tooltip","getStyle","camelCase","createElement","src","alt","Flex","gap","Icon","iconSize","Date","now","Infinity","_this$props2","showDelay","immediateShowDelay","timeSinceLastTooltip","getTimeSinceLastTooltip","preventAnimation","_this$props3","children","tip","arrowClassName","id","dataTestId","position","forceRenderWithoutChildren","withoutDialog","dialogProps","getTestId","ComponentDefaultTestId","TOOLTIP","tooltipClassName","arrow","onDialogDidHide","onDialogDidShow","getDynamicShowDelay","Dialog","animationType","positions","TooltipPositionsEnum","hideShowTriggers","HideShowEventEnum","themes","TooltipThemeEnum","animationTypes","AnimationTypeEnum","defaultProps","moveBy","main","secondary","hideDelay","disableDialogSlide","EXPAND","hideWhenReferenceHidden","modifiers","showTrigger","MOUSE_ENTER","hideTrigger","MOUSE_LEAVE","showOnDialogEnter","referenceWrapperClassName","addKeyboardHideShowTriggersByDefault","open"],"mappings":"4sBAiLA,IAGMA,EAAwE,CAC5EC,kBAAmB,KACnBC,kBAAmB,GAGAC,WAAQC,GAyB3B,SAAAD,EAAYE,GAAmB,IAAAC,EAOP,OAPOC,OAAAJ,IAC7BG,EAAAE,EAAAL,KAAAA,GAAME,KACDI,qBAAuBH,EAAKG,qBAAqBC,KAAIJ,GAC1DA,EAAKK,aAAeL,EAAKK,aAAaD,KAAIJ,GAC1CA,EAAKM,cAAgBN,EAAKM,cAAcF,KAAIJ,GAC5CA,EAAKO,cAAgBP,EAAKO,cAAcH,KAAIJ,GAE5CA,EAAKQ,UAAW,EAAMR,CACxB,CAAC,OAAAS,EAAAZ,EAjCkCa,GAiClCC,EAAAd,EAAA,CAAA,CAAAe,IAAA,uBAAAC,MAED,WACE,IAKIC,EALJC,EAAgFC,KAAKjB,MAA7EkB,EAAKF,EAALE,MAAOC,EAAOH,EAAPG,QAASC,EAASJ,EAATI,UAAWC,EAAKL,EAALK,MAAOC,EAAQN,EAARM,SAAUC,EAAKP,EAALO,MAAOC,EAAKR,EAALQ,MAAOC,EAAIT,EAAJS,KAAMC,EAAGV,EAAHU,IACxE,OAAKP,GAKDQ,EAAWR,GACbJ,EAAeI,KACNS,EAAeT,IAEI,iBAAZA,GAAwBA,GAE/BU,MAAMC,QAAQX,IAAYA,E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C,sCAAsC,EACtCC,MAAM"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\nimport { isFunction } from \"es-toolkit\";\nimport { camelCase } from \"es-toolkit\";\nimport cx from \"classnames\";\nimport React, { type CSSProperties, isValidElement, PureComponent, type ReactElement } from \"react\";\nimport { type Modifier } from \"react-popper\";\nimport Dialog from \"../Dialog/Dialog\";\nimport { type DialogAnimationType, type DialogTriggerEvent } from \"../Dialog/Dialog.types\";\nimport { HideShowEvent as HideShowEventEnum, AnimationType as AnimationTypeEnum } from \"../Dialog/DialogConstants\";\nimport type VibeComponentProps from \"../../types/VibeComponentProps\";\nimport { TooltipTheme as TooltipThemeEnum, TooltipPositions as TooltipPositionsEnum } from \"./TooltipConstants\";\nimport { type ElementContent } from \"../../types/ElementContent\";\nimport { type MoveBy } from \"../../types/MoveBy\";\nimport { getStyle } from \"../../helpers/typesciptCssModulesHelper\";\nimport styles from \"./Tooltip.module.scss\";\nimport { ComponentDefaultTestId, getTestId } from \"../../tests/test-ids-utils\";\nimport { type SubIcon } from \"../../types\";\nimport Icon from \"../Icon/Icon\";\nimport Flex from \"../Flex/Flex\";\nimport { type TooltipPositions, type TooltipTheme } from \"./Tooltip.types\";\n\nexport type TooltipProps = TooltipBaseProps & (TooltipWithChildrenProps | TooltipWithoutChildrenProps);\n\ninterface TooltipWithoutChildrenProps {\n /**\n * If true, the tooltip will be rendered even if there are no children.\n */\n forceRenderWithoutChildren: boolean;\n /**\n * The children elements that the tooltip is attached to.\n */\n children?: ReactElement | Array<ReactElement>;\n}\n\ninterface TooltipWithChildrenProps {\n /**\n * If true, the tooltip will be rendered even if there are no children.\n */\n forceRenderWithoutChildren?: boolean;\n /**\n * The children elements that the tooltip is attached to.\n */\n children: ReactElement | Array<ReactElement>;\n}\n\n// TODO TS-migration extend DialogProps, once Dialog is migrated to TS\ninterface TooltipBaseProps extends VibeComponentProps {\n /**\n * The content displayed inside the tooltip.\n */\n content: ElementContent;\n /**\n * Inline styles applied to the tooltip container.\n */\n style?: CSSProperties;\n /**\n * Class name applied to the tooltip arrow.\n */\n arrowClassName?: string;\n /**\n * Offset values for positioning adjustments.\n */\n moveBy?: MoveBy;\n /**\n * The theme of the tooltip.\n */\n theme?: TooltipTheme;\n /**\n * Function to get the container where the tooltip should be rendered.\n */\n getContainer?: () => HTMLElement;\n /**\n * Delay in milliseconds before hiding the tooltip.\n */\n hideDelay?: number;\n /**\n * Delay in milliseconds before showing the tooltip.\n */\n showDelay?: number;\n /**\n * If true, disables the slide animation of the tooltip.\n */\n disableDialogSlide?: boolean;\n /**\n * The animation type used for showing/hiding the tooltip.\n */\n animationType?: DialogAnimationType;\n /**\n * If true, renders the tooltip without a dialog.\n */\n withoutDialog?: boolean;\n /**\n * The CSS selector of the container where the tooltip should be rendered.\n */\n containerSelector?: string;\n /**\n * Delay in milliseconds before showing the tooltip immediately.\n */\n immediateShowDelay?: number;\n /**\n * If false, hides the arrow of the tooltip.\n */\n tip?: boolean;\n /**\n * If true, the tooltip is shown when the component mounts.\n */\n shouldShowOnMount?: boolean;\n /**\n * If true, hides the tooltip when the reference element is hidden.\n */\n hideWhenReferenceHidden?: boolean;\n /**\n * Callback fired when the tooltip is hidden.\n */\n onTooltipHide?: () => void;\n /**\n * Callback fired when the tooltip is shown.\n */\n onTooltipShow?: () => void;\n /**\n * Custom Popper.js modifiers.\n * https://popper.js.org/docs/v2/modifiers/\n */\n modifiers?: Array<Modifier<unknown>>;\n /**\n * The placement of the tooltip relative to the reference element.\n */\n position?: TooltipPositions;\n /**\n * Events that trigger showing the tooltip.\n */\n showTrigger?: DialogTriggerEvent | Array<DialogTriggerEvent>;\n /**\n * Events that trigger hiding the tooltip.\n */\n hideTrigger?: DialogTriggerEvent | Array<DialogTriggerEvent>;\n /**\n * If true, prevents closing the tooltip when the mouse enters it.\n */\n showOnDialogEnter?: boolean;\n /**\n * Class name applied to the reference wrapper element.\n */\n referenceWrapperClassName?: string;\n /**\n * If true, keyboard focus/blur events behave like mouse enter/leave.\n */\n addKeyboardHideShowTriggersByDefault?: boolean;\n /**\n * If true, controls the open state of the tooltip.\n */\n open?: boolean;\n /**\n * The z-index applied to the tooltip.\n */\n zIndex?: number;\n /**\n * The title of the tooltip.\n */\n title?: string;\n /**\n * The image displayed inside the tooltip.\n */\n image?: string;\n /**\n * The icon displayed next to the title.\n */\n icon?: SubIcon;\n /**\n * The maximum width of the tooltip.\n */\n maxWidth?: number;\n /**\n * The text direction of the tooltip: \"ltr\", \"rtl\", or \"auto\".\n */\n dir?: \"ltr\" | \"rtl\" | \"auto\";\n}\n// When last tooltip was shown in the last 1.5 second - the next tooltip will be shown immediately\nconst IMMEDIATE_SHOW_THRESHOLD_MS = 1500;\n\n// Shared state across multiple tooltip instances (i.e last tooltip shown time)\nconst globalState: { lastTooltipHideTS: number; openTooltipsCount: number } = {\n lastTooltipHideTS: null,\n openTooltipsCount: 0\n};\n\nexport default class Tooltip extends PureComponent<TooltipProps> {\n wasShown: boolean;\n static positions = TooltipPositionsEnum;\n static hideShowTriggers = HideShowEventEnum;\n static themes = TooltipThemeEnum;\n static animationTypes = AnimationTypeEnum;\n static defaultProps = {\n moveBy: { main: 4, secondary: 0 },\n theme: \"dark\",\n position: \"top\",\n hideDelay: 100,\n showDelay: 300,\n disableDialogSlide: true,\n animationType: AnimationTypeEnum.EXPAND,\n withoutDialog: false,\n tip: true,\n hideWhenReferenceHidden: false,\n modifiers: new Array<Modifier<unknown>>(),\n showTrigger: Tooltip.hideShowTriggers.MOUSE_ENTER,\n hideTrigger: Tooltip.hideShowTriggers.MOUSE_LEAVE,\n showOnDialogEnter: true,\n referenceWrapperClassName: \"\",\n addKeyboardHideShowTriggersByDefault: true,\n open: false\n };\n constructor(props: TooltipProps) {\n super(props);\n this.renderTooltipContent = this.renderTooltipContent.bind(this);\n this.getShowDelay = this.getShowDelay.bind(this);\n this.onTooltipShow = this.onTooltipShow.bind(this);\n this.onTooltipHide = this.onTooltipHide.bind(this);\n\n this.wasShown = false;\n }\n\n renderTooltipContent() {\n const { theme, content, className, style, maxWidth, title, image, icon, dir } = this.props;\n if (!content) {\n // don't render empty tooltip\n return null;\n }\n let contentValue;\n if (isFunction(content)) {\n contentValue = content();\n } else if (isValidElement(content)) {\n contentValue = content;\n } else if (typeof content === \"string\" && content) {\n contentValue = content;\n } else if (Array.isArray(content) && content.length > 0) {\n // allow array of elements\n contentValue = content;\n }\n\n if (!contentValue) {\n return null;\n }\n\n return (\n <div\n style={maxWidth ? ({ ...style, \"--tooltip-max-width\": `${maxWidth}px` } as CSSProperties) : style}\n className={cx(styles.tooltip, getStyle(styles, camelCase(theme)), className)}\n dir={dir}\n >\n {image && <img className={styles.image} src={image} alt=\"\" />}\n <div className={cx(styles.content)}>\n {title && (\n <Flex gap=\"xs\">\n {icon && <Icon iconSize=\"20\" icon={icon} />}\n <div className={styles.title}>{title}</div>\n </Flex>\n )}\n {contentValue}\n </div>\n </div>\n );\n }\n\n onTooltipShow() {\n if (!this.wasShown) {\n const { onTooltipShow } = this.props;\n globalState.openTooltipsCount++;\n this.wasShown = true;\n onTooltipShow && onTooltipShow();\n }\n }\n\n onTooltipHide() {\n if (this.wasShown) {\n const { onTooltipHide } = this.props;\n globalState.lastTooltipHideTS = Date.now();\n globalState.openTooltipsCount--;\n this.wasShown = false;\n onTooltipHide && onTooltipHide();\n }\n }\n\n getTimeSinceLastTooltip() {\n if (globalState.openTooltipsCount > 0) {\n return 0;\n }\n return globalState.lastTooltipHideTS ? Date.now() - globalState.lastTooltipHideTS : Infinity;\n }\n\n getShowDelay() {\n const { showDelay, immediateShowDelay } = this.props;\n const timeSinceLastTooltip = this.getTimeSinceLastTooltip();\n if ((immediateShowDelay === 0 || immediateShowDelay) && timeSinceLastTooltip < IMMEDIATE_SHOW_THRESHOLD_MS) {\n // showing the tooltip immediately (without animation)\n return {\n showDelay: immediateShowDelay,\n preventAnimation: true\n };\n }\n return {\n showDelay,\n preventAnimation: false\n };\n }\n\n render() {\n const {\n withoutDialog,\n children,\n forceRenderWithoutChildren,\n theme,\n tip,\n arrowClassName,\n id,\n \"data-testid\": dataTestId,\n position\n } = this.props;\n\n if (!children && !forceRenderWithoutChildren) {\n return null;\n }\n\n if (withoutDialog) {\n return this.renderTooltipContent();\n }\n\n const content = this.renderTooltipContent;\n const dialogProps = {\n ...this.props,\n position: position,\n \"data-testid\": dataTestId || getTestId(ComponentDefaultTestId.TOOLTIP, id),\n tooltip: tip,\n content,\n tooltipClassName: cx(styles.arrow, getStyle(styles, theme), arrowClassName),\n onDialogDidHide: this.onTooltipHide,\n onDialogDidShow: this.onTooltipShow,\n getDynamicShowDelay: this.getShowDelay\n };\n return (\n <Dialog {...dialogProps} animationType=\"expand\">\n {children}\n </Dialog>\n );\n }\n}\n"],"names":["globalState","lastTooltipHideTS","openTooltipsCount","Tooltip","_PureComponent","props","_this","_classCallCheck","_callSuper","renderTooltipContent","bind","getShowDelay","onTooltipShow","onTooltipHide","wasShown","_inherits","PureComponent","_createClass","key","value","contentValue","_this$props","this","theme","content","className","style","maxWidth","title","image","icon","dir","isFunction","isValidElement","Array","isArray","length","React","Object","assign","concat","cx","styles","tooltip","getStyle","camelCase","createElement","src","alt","Flex","gap","Icon","iconSize","Date","now","Infinity","_this$props2","showDelay","immediateShowDelay","timeSinceLastTooltip","getTimeSinceLastTooltip","preventAnimation","_this$props3","children","tip","arrowClassName","id","dataTestId","position","forceRenderWithoutChildren","withoutDialog","dialogProps","getTestId","ComponentDefaultTestId","TOOLTIP","tooltipClassName","arrow","onDialogDidHide","onDialogDidShow","getDynamicShowDelay","Dialog","animationType","positions","TooltipPositionsEnum","hideShowTriggers","HideShowEventEnum","themes","TooltipThemeEnum","animationTypes","AnimationTypeEnum","defaultProps","moveBy","main","secondary","hideDelay","disableDialogSlide","EXPAND","hideWhenReferenceHidden","modifiers","showTrigger","MOUSE_ENTER","hideTrigger","MOUSE_LEAVE","showOnDialogEnter","refer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BAGd,IAAMe,EAAUF,KAAKb,qBACf8D,EAAWjC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACZjB,KAAKjB,OAAK,CACb+D,SAAUA,EACV,cAAeD,GAAcK,EAAUC,EAAuBC,QAASR,GACvEvB,QAASqB,EACTxC,QAAAA,EACAmD,iBAAkBlC,EAAGC,EAAOkC,MAAOhC,EAASF,EAAQnB,GAAQ0C,GAC5DY,gBAAiBvD,KAAKT,cACtBiE,gBAAiBxD,KAAKV,cACtBmE,oBAAqBzD,KAAKX,eAE5B,OACE0B,EAAAS,cAACkC,EAAM1C,OAAAC,OAAA,CAAA,EAAKgC,EAAW,CAAEU,cAAc,WACpClB,EAGP,IAAC,IA3JM5D,EAAS+E,UAAGC,EACZhF,EAAgBiF,iBAAGC,EACnBlF,EAAMmF,OAAGC,EACTpF,EAAcqF,eAAGC,EACjBtF,EAAAuF,aAAe,CACpBC,OAAQ,CAAEC,KAAM,EAAGC,UAAW,GAC9BtE,MAAO,OACP6C,SAAU,MACV0B,UAAW,IACXrC,UAAW,IACXsC,oBAAoB,EACpBd,cAAeQ,EAAkBO,OACjC1B,eAAe,EACfN,KAAK,EACLiC,yBAAyB,EACzBC,UAAW,GACXC,YAAahG,EAAQiF,iBAAiBgB,YACtCC,YAAalG,EAAQiF,iBAAiBkB,YACtCC,mBAAmB,EACnBC,0BAA2B,GAC3BC,sCAAsC,EACtCC,MAAM"}
@@ -1,2 +1,2 @@
1
- var a={tooltip:"tooltip_e0737cd9a0",image:"image_65884543bd",title:"title_7745c39de4",content:"content_1aabcd4161",paddingSizeMd:"paddingSizeMd_9ab7570e2d",tooltipWhiteLink:"tooltipWhiteLink_25c666310b",arrow:"arrow_ff7f717ea2",dark:"dark_a1e5bb05f3",primary:"primary_20408886a8"};!function(a){const r="s_id-6a6e92472798_3_63_0";if("undefined"!=typeof document){const e=document.head||document.getElementsByTagName("head")[0];if(e.querySelector("#"+r))return;const o=document.createElement("style");o.id=r,e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),o.appendChild(document.createTextNode(a))}else globalThis.injectedStyles&&(globalThis.injectedStyles[r]=a)}(".tooltip_e0737cd9a0 {\n position: relative;\n display: inline-block;\n border-radius: var(--tooltip-border-radius, var(--border-radius-small));\n box-shadow: var(--box-shadow-medium);\n font: var(--font-text2-normal);\n max-width: var(--tooltip-max-width, 50vw);\n word-break: break-word;\n background-color: var(--inverted-color-background);\n color: var(--text-color-on-inverted);\n --tooltip-max-width: 240px;\n white-space: pre-wrap;\n}\n.tooltip_e0737cd9a0 .image_65884543bd {\n display: block;\n position: relative;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n padding: 2px 2px 0 2px;\n object-fit: cover;\n width: 100%;\n height: 100%;\n min-width: var(--tooltip-max-width);\n z-index: 1;\n}\n.tooltip_e0737cd9a0 .title_7745c39de4 {\n font: var(--font-text2-bold);\n}\n.tooltip_e0737cd9a0 .content_1aabcd4161 {\n word-break: break-word;\n display: inline-block;\n padding: var(--tooltip-padding, var(--spacing-small) var(--spacing-medium));\n}\n.tooltip_e0737cd9a0.paddingSizeMd_9ab7570e2d {\n border-radius: var(--border-radius-medium);\n padding: var(--spacing-medium);\n font: var(--font-text2-normal);\n}\n.tooltip_e0737cd9a0 a.tooltipWhiteLink_25c666310b {\n color: #fff;\n}\n.arrow_ff7f717ea2,\n.dark_a1e5bb05f3,\n.arrow_ff7f717ea2.dark_a1e5bb05f3 {\n background-color: var(--inverted-color-background);\n color: var(--text-color-on-inverted);\n}\n.dark-app-theme .arrow_ff7f717ea2.arrow_ff7f717ea2.dark_a1e5bb05f3, .black-app-theme .arrow_ff7f717ea2.arrow_ff7f717ea2.dark_a1e5bb05f3, .hacker-app-theme .arrow_ff7f717ea2.arrow_ff7f717ea2.dark_a1e5bb05f3,\n.dark-app-theme .arrow_ff7f717ea2.arrow_ff7f717ea2.primary_20408886a8,\n.black-app-theme .arrow_ff7f717ea2.arrow_ff7f717ea2.primary_20408886a8,\n.hacker-app-theme .arrow_ff7f717ea2.arrow_ff7f717ea2.primary_20408886a8 {\n box-shadow: none;\n}\n.primary_20408886a8,\n.arrow_ff7f717ea2.primary_20408886a8 {\n background-color: var(--primary-color);\n color: var(--text-color-on-primary);\n}");export{a as default};
1
+ var a={tooltip:"tooltip_7146f0b095",image:"image_59711f3855",title:"title_3b33e7e570",content:"content_0caa6ced9c",paddingSizeMd:"paddingSizeMd_9ff7d00b59",tooltipWhiteLink:"tooltipWhiteLink_9044d48bf5",arrow:"arrow_d8c05aa0fc",dark:"dark_e715dccb4e",primary:"primary_315328789d"};!function(a){const r="s_id-6a6e92472798_3_63_1";if("undefined"!=typeof document){const o=document.head||document.getElementsByTagName("head")[0];if(o.querySelector("#"+r))return;const e=document.createElement("style");e.id=r,o.firstChild?o.insertBefore(e,o.firstChild):o.appendChild(e),e.appendChild(document.createTextNode(a))}else globalThis.injectedStyles&&(globalThis.injectedStyles[r]=a)}(".tooltip_7146f0b095 {\n position: relative;\n display: inline-block;\n border-radius: var(--tooltip-border-radius, var(--border-radius-small));\n box-shadow: var(--box-shadow-medium);\n font: var(--font-text2-normal);\n max-width: var(--tooltip-max-width, 50vw);\n word-break: break-word;\n background-color: var(--inverted-color-background);\n color: var(--text-color-on-inverted);\n --tooltip-max-width: 240px;\n white-space: pre-wrap;\n}\n.tooltip_7146f0b095 .image_59711f3855 {\n display: block;\n position: relative;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n padding: 2px 2px 0 2px;\n object-fit: cover;\n width: 100%;\n height: 100%;\n min-width: var(--tooltip-max-width);\n z-index: 1;\n}\n.tooltip_7146f0b095 .title_3b33e7e570 {\n font: var(--font-text2-bold);\n}\n.tooltip_7146f0b095 .content_0caa6ced9c {\n word-break: break-word;\n display: inline-block;\n padding: var(--tooltip-padding, var(--spacing-small) var(--spacing-medium));\n}\n.tooltip_7146f0b095.paddingSizeMd_9ff7d00b59 {\n border-radius: var(--border-radius-medium);\n padding: var(--spacing-medium);\n font: var(--font-text2-normal);\n}\n.tooltip_7146f0b095 a.tooltipWhiteLink_9044d48bf5 {\n color: #fff;\n}\n.arrow_d8c05aa0fc,\n.dark_e715dccb4e,\n.arrow_d8c05aa0fc.dark_e715dccb4e {\n background-color: var(--inverted-color-background);\n color: var(--text-color-on-inverted);\n}\n.dark-app-theme .arrow_d8c05aa0fc.arrow_d8c05aa0fc.dark_e715dccb4e, .black-app-theme .arrow_d8c05aa0fc.arrow_d8c05aa0fc.dark_e715dccb4e, .hacker-app-theme .arrow_d8c05aa0fc.arrow_d8c05aa0fc.dark_e715dccb4e,\n.dark-app-theme .arrow_d8c05aa0fc.arrow_d8c05aa0fc.primary_315328789d,\n.black-app-theme .arrow_d8c05aa0fc.arrow_d8c05aa0fc.primary_315328789d,\n.hacker-app-theme .arrow_d8c05aa0fc.arrow_d8c05aa0fc.primary_315328789d {\n box-shadow: none;\n}\n.primary_315328789d,\n.arrow_d8c05aa0fc.primary_315328789d {\n background-color: var(--primary-color);\n color: var(--text-color-on-primary);\n}");export{a as default};
2
2
  //# sourceMappingURL=Tooltip.module.scss.js.map
@@ -1,2 +1,2 @@
1
- var e={slideshow:"slideshow_b7a79d9e5c"};!function(e){const t="s_id-1d828e3be878_3_63_0";if("undefined"!=typeof document){const d=document.head||document.getElementsByTagName("head")[0];if(d.querySelector("#"+t))return;const n=document.createElement("style");n.id=t,d.firstChild?d.insertBefore(n,d.firstChild):d.appendChild(n),n.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".slideshow_b7a79d9e5c {\n width: 100%;\n height: 100%;\n min-height: 0;\n}");export{e as default};
1
+ var e={slideshow:"slideshow_c5f5601bd9"};!function(e){const t="s_id-1d828e3be878_3_63_1";if("undefined"!=typeof document){const d=document.head||document.getElementsByTagName("head")[0];if(d.querySelector("#"+t))return;const n=document.createElement("style");n.id=t,d.firstChild?d.insertBefore(n,d.firstChild):d.appendChild(n),n.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".slideshow_c5f5601bd9 {\n width: 100%;\n height: 100%;\n min-height: 0;\n}");export{e as default};
2
2
  //# sourceMappingURL=TransitionView.module.scss.js.map
@@ -1,2 +1,2 @@
1
- var n={typography:"typography_04ff0316a9","focus-visible":"focus-visible_38c58c60af",primary:"primary_2b2b8ca5f6",secondary:"secondary_76e1248961",negative:"negative_b200c3966f",onPrimary:"onPrimary_6700ca580d",onInverted:"onInverted_6f78201fdc",fixedLight:"fixedLight_c4f9532bc6",fixedDark:"fixedDark_ce994b4cdc",inherit:"inherit_e01fd8daf8",alignInherit:"alignInherit_f6ee3b4c31",start:"start_b995a9732f",center:"center_9825222621",end:"end_dfca923825",singleLineEllipsis:"singleLineEllipsis_5c79034f7d",multiLineEllipsis:"multiLineEllipsis_4623647938"};!function(n){const e="s_id-1a3a21ac499a_3_63_0";if("undefined"!=typeof document){const r=document.head||document.getElementsByTagName("head")[0];if(r.querySelector("#"+e))return;const i=document.createElement("style");i.id=e,r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.appendChild(document.createTextNode(n))}else globalThis.injectedStyles&&(globalThis.injectedStyles[e]=n)}("/* stylelint-disable selector-class-pattern */\n.typography_04ff0316a9 > a {\n text-decoration: none;\n color: var(--link-color);\n}\n.typography_04ff0316a9 > a:focus-visible, .typography_04ff0316a9 > a.focus-visible_38c58c60af {\n outline: none;\n z-index: 11;\n border-radius: 4px;\n box-shadow: 0 0 0 3px hsla(209, 100%, 50%, 0.5), 0 0 0 1px var(--primary-hover-color) inset;\n}\n.typography_04ff0316a9 > a:focus:not(.focus-visible_38c58c60af) {\n outline: none;\n}\n.typography_04ff0316a9 > a:hover {\n text-decoration: underline;\n}\n.typography_04ff0316a9:disabled, .typography_04ff0316a9[aria-disabled=true] {\n color: var(--disabled-text-color);\n}\n.primary_2b2b8ca5f6 {\n color: var(--primary-text-color);\n}\n.secondary_76e1248961 {\n color: var(--secondary-text-color);\n}\n.negative_b200c3966f {\n color: var(--color-error);\n}\n.onPrimary_6700ca580d {\n color: var(--text-color-on-primary);\n}\n.onPrimary_6700ca580d a {\n color: var(--text-color-on-primary);\n text-decoration: underline;\n}\n.onInverted_6f78201fdc {\n color: var(--text-color-on-inverted);\n}\n.onInverted_6f78201fdc a {\n color: var(--text-color-on-inverted);\n text-decoration: underline;\n}\n.fixedLight_c4f9532bc6 {\n color: var(--fixed-light-color);\n}\n.fixedLight_c4f9532bc6 a {\n color: var(--fixed-light-color);\n text-decoration: underline;\n}\n.fixedDark_ce994b4cdc {\n color: var(--fixed-dark-color);\n}\n.fixedDark_ce994b4cdc a {\n color: var(--fixed-dark-color);\n text-decoration: underline;\n}\n.inherit_e01fd8daf8 {\n color: inherit;\n}\n.inherit_e01fd8daf8 a {\n color: inherit;\n text-decoration: underline;\n}\n.alignInherit_f6ee3b4c31 {\n text-align: inherit;\n}\n.start_b995a9732f {\n text-align: start;\n}\n.center_9825222621 {\n text-align: center;\n}\n.end_dfca923825 {\n text-align: end;\n}\n.singleLineEllipsis_5c79034f7d {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.multiLineEllipsis_4623647938 {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: var(--text-clamp-lines);\n -webkit-box-orient: vertical;\n white-space: initial;\n}");export{n as default};
1
+ var n={typography:"typography_a19c14da54","focus-visible":"focus-visible_3b9305c592",primary:"primary_20bfb5ed4b",secondary:"secondary_5c5544fbb3",negative:"negative_abb5f88fc9",onPrimary:"onPrimary_91db27618b",onInverted:"onInverted_bb484a99e5",fixedLight:"fixedLight_97df8976ba",fixedDark:"fixedDark_df5210539a",inherit:"inherit_02e7aba5bf",alignInherit:"alignInherit_dbce1a13bf",start:"start_61cf247409",center:"center_8e08b2bda5",end:"end_2fdfb01338",singleLineEllipsis:"singleLineEllipsis_926a2755db",multiLineEllipsis:"multiLineEllipsis_112495e4c6"};!function(n){const e="s_id-1a3a21ac499a_3_63_1";if("undefined"!=typeof document){const r=document.head||document.getElementsByTagName("head")[0];if(r.querySelector("#"+e))return;const a=document.createElement("style");a.id=e,r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.appendChild(document.createTextNode(n))}else globalThis.injectedStyles&&(globalThis.injectedStyles[e]=n)}("/* stylelint-disable selector-class-pattern */\n.typography_a19c14da54 > a {\n text-decoration: none;\n color: var(--link-color);\n}\n.typography_a19c14da54 > a:focus-visible, .typography_a19c14da54 > a.focus-visible_3b9305c592 {\n outline: none;\n z-index: 11;\n border-radius: 4px;\n box-shadow: 0 0 0 3px hsla(209, 100%, 50%, 0.5), 0 0 0 1px var(--primary-hover-color) inset;\n}\n.typography_a19c14da54 > a:focus:not(.focus-visible_3b9305c592) {\n outline: none;\n}\n.typography_a19c14da54 > a:hover {\n text-decoration: underline;\n}\n.typography_a19c14da54:disabled, .typography_a19c14da54[aria-disabled=true] {\n color: var(--disabled-text-color);\n}\n.primary_20bfb5ed4b {\n color: var(--primary-text-color);\n}\n.secondary_5c5544fbb3 {\n color: var(--secondary-text-color);\n}\n.negative_abb5f88fc9 {\n color: var(--color-error);\n}\n.onPrimary_91db27618b {\n color: var(--text-color-on-primary);\n}\n.onPrimary_91db27618b a {\n color: var(--text-color-on-primary);\n text-decoration: underline;\n}\n.onInverted_bb484a99e5 {\n color: var(--text-color-on-inverted);\n}\n.onInverted_bb484a99e5 a {\n color: var(--text-color-on-inverted);\n text-decoration: underline;\n}\n.fixedLight_97df8976ba {\n color: var(--fixed-light-color);\n}\n.fixedLight_97df8976ba a {\n color: var(--fixed-light-color);\n text-decoration: underline;\n}\n.fixedDark_df5210539a {\n color: var(--fixed-dark-color);\n}\n.fixedDark_df5210539a a {\n color: var(--fixed-dark-color);\n text-decoration: underline;\n}\n.inherit_02e7aba5bf {\n color: inherit;\n}\n.inherit_02e7aba5bf a {\n color: inherit;\n text-decoration: underline;\n}\n.alignInherit_dbce1a13bf {\n text-align: inherit;\n}\n.start_61cf247409 {\n text-align: start;\n}\n.center_8e08b2bda5 {\n text-align: center;\n}\n.end_2fdfb01338 {\n text-align: end;\n}\n.singleLineEllipsis_926a2755db {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.multiLineEllipsis_112495e4c6 {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: var(--text-clamp-lines);\n -webkit-box-orient: vertical;\n white-space: initial;\n}");export{n as default};
2
2
  //# sourceMappingURL=Typography.module.scss.js.map
@@ -1,2 +1,2 @@
1
- var e={virtualizedGridWrapper:"virtualizedGridWrapper_b3e76fffbc"};!function(e){const t="s_id-03a8eed790d8_3_63_0";if("undefined"!=typeof document){const d=document.head||document.getElementsByTagName("head")[0];if(d.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,d.firstChild?d.insertBefore(i,d.firstChild):d.appendChild(i),i.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".virtualizedGridWrapper_b3e76fffbc {\n height: 100%;\n width: 100%;\n}");export{e as default};
1
+ var e={virtualizedGridWrapper:"virtualizedGridWrapper_fcf4a95244"};!function(e){const t="s_id-03a8eed790d8_3_63_1";if("undefined"!=typeof document){const d=document.head||document.getElementsByTagName("head")[0];if(d.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,d.firstChild?d.insertBefore(i,d.firstChild):d.appendChild(i),i.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".virtualizedGridWrapper_fcf4a95244 {\n height: 100%;\n width: 100%;\n}");export{e as default};
2
2
  //# sourceMappingURL=VirtualizedGrid.module.scss.js.map
@@ -1,2 +1,2 @@
1
- import{slicedToArray as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import i from"classnames";import e,{forwardRef as r,useState as o,useMemo as n,useRef as l,useCallback as a,useEffect as s}from"react";import{noop as c}from"es-toolkit/compat";import{VariableSizeList as u}from"react-window";import f from"react-virtualized-auto-sizer";import d from"../../hooks/usePrevious/index.js";import m from"../../hooks/useThrottledCallback.js";import v from"../../hooks/useMergeRef.js";import{getNormalizedItems as p,getMaxOffset as h,easeInOutQuint as I,getOnItemsRenderedData as S,isLayoutDirectionScrollbarVisible as g}from"../../services/virtualized-service.js";import{getTestId as T}from"../../tests/testIds.js";import{ComponentDefaultTestId as O}from"../../tests/constants.js";import z from"./VirtualizedList.module.scss.js";var b=r((function(r,b){var y=r.className,C=r.id,j=r.items,R=void 0===j?[]:j,w=r.itemRenderer,F=void 0===w?function(t,i,e){return t}:w,L=r.getItemHeight,x=void 0===L?function(t,i){return t.height}:L,k=r.getItemSize,V=void 0===k?null:k,A=r.layout,D=void 0===A?"vertical":A,E=r.onScroll,M=r.overscanCount,N=void 0===M?0:M,U=r.getItemId,_=void 0===U?function(t,i){return t.id}:U,q=r.scrollToId,H=r.scrollDuration,P=void 0===H?200:H,W=r.onScrollToFinished,B=void 0===W?c:W,Z=r.onItemsRendered,G=r.onItemsRenderedThrottleMs,J=void 0===G?200:G,K=r.onSizeUpdate,Q=void 0===K?c:K,X=r.onVerticalScrollbarVisiblityChange,Y=void 0===X?null:X,$=r.onLayoutDirectionScrollbarVisibilityChange,tt=void 0===$?null:$,it=r.virtualListRef,et=r.scrollableClassName,rt=r.role,ot=r.ariaLabel,nt=r.style,lt=r["data-testid"],at=o(0),st=t(at,2),ct=st[0],ut=st[1],ft=o(0),dt=t(ft,2),mt=dt[0],vt=dt[1],pt="horizontal"!==D,ht=n((function(){return pt?ct:mt}),[pt,ct,mt]),It=d(q),St=l(null),gt=l(null),Tt=l(null),Ot=l(0),zt=l({initialized:!1,scrollOffsetInitial:0,scrollOffsetFinal:0,animationStartTime:0}),bt=v(b,St),yt=v(it,Tt),Ct=zt.current;Ct.initialized||(Ct.initialized=!0,Ct.scrollOffsetInitial=0,Ct.scrollOffsetFinal=0,Ct.animationStartTime=0);var jt=a((function(t,i){var e=(V||x)(t,i);return void 0===e&&console.error("Couldn't get height for item: ",t),e}),[x,V]),Rt=a((function(t,i){var e=_(t,i);return void 0===e&&console.error("Couldn't get id for item: ",t),e}),[_]),wt=n((function(){return p(R,Rt,jt)}),[R,Rt,jt]),Ft=n((function(){return h(ht,wt)}),[ht,wt]),Lt=a((function(t){var i=t.scrollDirection,e=t.scrollOffset,r=t.scrollUpdateWasRequested;Ot.current=e,r||(Ct.scrollOffsetInitial=e),E&&E(i,e,r)}),[E,Ot,Ct]),xt=a((function(){requestAnimationFrame((function(){var t,i=performance.now()-Ct.animationStartTime,e=Ct.scrollOffsetFinal-Ct.scrollOffsetInitial,r=I(Math.min(1,i/P)),o=Math.min(Ft,Ct.scrollOffsetInitial+e*r);Ot.current=o,null===(t=Tt.current)||void 0===t||t.scrollTo(o),P>i?xt():(Ct.animationStartTime=void 0,B&&B())}))}),[P,Ct,Tt,Ft,B]),kt=a((function(t){var i,e,r,o,n=t.offsetTop;Ct.animationStartTime?Ct.scrollOffsetFinal=n:(null!==(null===(e=null===(i=Tt.current)||void 0===i?void 0:i.state)||void 0===e?void 0:e.scrollOffset)&&(Ct.scrollOffsetInitial=null===(o=null===(r=Tt.current)||void 0===r?void 0:r.state)||void 0===o?void 0:o.scrollOffset),Ct.scrollOffsetInitial!==n?(Ct.scrollOffsetFinal=n,Ct.animationStartTime=performance.now(),xt()):B&&B())}),[Ct,xt,B]),Vt=a((function(t){var i=t.index;return F(R[i],i,t.style)}),[R,F]),At=a((function(t){return jt(R[t],t)}),[R,jt]),Dt=a((function(t,i){i===ct&&t===mt||setTimeout((function(){ut(i),vt(t),Q(t,i)}),0)}),[ct,mt,Q]),Et=m((function(t){if(Z){var i=S(R,wt,Rt,t.visibleStartIndex,t.visibleStopIndex,ht,Ot.current);Z(i)}}),{wait:J,trailing:!0},[Z,R,wt,Rt,ht]);return s((function(){if(q&&It!==q){var t=g(R,wt,Rt,ht),i=wt[q];t&&i&&kt(i)}}),[It,q,kt,wt,R,Rt,ht]),s((function(){Tt.current&&Tt.current.resetAfterIndex(0)}),[wt]),s((function(){var t=tt||Y;if(t){var i=g(R,wt,Rt,ht);gt.current!==i&&(gt.current=i,t(i))}}),[tt,Y,R,wt,ht,Rt]),e.createElement("div",{ref:bt,className:i(z.virtualizedListWrapper,y),id:C,role:rt,"aria-label":ot,"data-testid":lt||T(O.VIRTUALIZED_LIST,C),style:nt},e.createElement(f,null,(function(t){var i=t.height,r=t.width;return Dt(r,i),e.createElement(u,{ref:yt,height:i,width:r,itemCount:R.length,itemSize:At,onScroll:Lt,layout:D,overscanCount:N,onItemsRendered:Et,className:et},Vt)})))}));export{b as default};
1
+ import{slicedToArray as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import i from"classnames";import e,{forwardRef as r,useState as o,useMemo as n,useRef as l,useCallback as a,useEffect as s}from"react";import{noop as c}from"es-toolkit";import{VariableSizeList as u}from"react-window";import f from"react-virtualized-auto-sizer";import d from"../../hooks/usePrevious/index.js";import m from"../../hooks/useThrottledCallback.js";import v from"../../hooks/useMergeRef.js";import{getNormalizedItems as p,getMaxOffset as h,easeInOutQuint as I,getOnItemsRenderedData as S,isLayoutDirectionScrollbarVisible as g}from"../../services/virtualized-service.js";import{getTestId as T}from"../../tests/testIds.js";import{ComponentDefaultTestId as O}from"../../tests/constants.js";import z from"./VirtualizedList.module.scss.js";var b=r((function(r,b){var y=r.className,C=r.id,j=r.items,R=void 0===j?[]:j,w=r.itemRenderer,F=void 0===w?function(t,i,e){return t}:w,L=r.getItemHeight,x=void 0===L?function(t,i){return t.height}:L,k=r.getItemSize,V=void 0===k?null:k,A=r.layout,D=void 0===A?"vertical":A,E=r.onScroll,M=r.overscanCount,N=void 0===M?0:M,U=r.getItemId,_=void 0===U?function(t,i){return t.id}:U,q=r.scrollToId,H=r.scrollDuration,P=void 0===H?200:H,W=r.onScrollToFinished,B=void 0===W?c:W,Z=r.onItemsRendered,G=r.onItemsRenderedThrottleMs,J=void 0===G?200:G,K=r.onSizeUpdate,Q=void 0===K?c:K,X=r.onVerticalScrollbarVisiblityChange,Y=void 0===X?null:X,$=r.onLayoutDirectionScrollbarVisibilityChange,tt=void 0===$?null:$,it=r.virtualListRef,et=r.scrollableClassName,rt=r.role,ot=r.ariaLabel,nt=r.style,lt=r["data-testid"],at=o(0),st=t(at,2),ct=st[0],ut=st[1],ft=o(0),dt=t(ft,2),mt=dt[0],vt=dt[1],pt="horizontal"!==D,ht=n((function(){return pt?ct:mt}),[pt,ct,mt]),It=d(q),St=l(null),gt=l(null),Tt=l(null),Ot=l(0),zt=l({initialized:!1,scrollOffsetInitial:0,scrollOffsetFinal:0,animationStartTime:0}),bt=v(b,St),yt=v(it,Tt),Ct=zt.current;Ct.initialized||(Ct.initialized=!0,Ct.scrollOffsetInitial=0,Ct.scrollOffsetFinal=0,Ct.animationStartTime=0);var jt=a((function(t,i){var e=(V||x)(t,i);return void 0===e&&console.error("Couldn't get height for item: ",t),e}),[x,V]),Rt=a((function(t,i){var e=_(t,i);return void 0===e&&console.error("Couldn't get id for item: ",t),e}),[_]),wt=n((function(){return p(R,Rt,jt)}),[R,Rt,jt]),Ft=n((function(){return h(ht,wt)}),[ht,wt]),Lt=a((function(t){var i=t.scrollDirection,e=t.scrollOffset,r=t.scrollUpdateWasRequested;Ot.current=e,r||(Ct.scrollOffsetInitial=e),E&&E(i,e,r)}),[E,Ot,Ct]),xt=a((function(){requestAnimationFrame((function(){var t,i=performance.now()-Ct.animationStartTime,e=Ct.scrollOffsetFinal-Ct.scrollOffsetInitial,r=I(Math.min(1,i/P)),o=Math.min(Ft,Ct.scrollOffsetInitial+e*r);Ot.current=o,null===(t=Tt.current)||void 0===t||t.scrollTo(o),P>i?xt():(Ct.animationStartTime=void 0,B&&B())}))}),[P,Ct,Tt,Ft,B]),kt=a((function(t){var i,e,r,o,n=t.offsetTop;Ct.animationStartTime?Ct.scrollOffsetFinal=n:(null!==(null===(e=null===(i=Tt.current)||void 0===i?void 0:i.state)||void 0===e?void 0:e.scrollOffset)&&(Ct.scrollOffsetInitial=null===(o=null===(r=Tt.current)||void 0===r?void 0:r.state)||void 0===o?void 0:o.scrollOffset),Ct.scrollOffsetInitial!==n?(Ct.scrollOffsetFinal=n,Ct.animationStartTime=performance.now(),xt()):B&&B())}),[Ct,xt,B]),Vt=a((function(t){var i=t.index;return F(R[i],i,t.style)}),[R,F]),At=a((function(t){return jt(R[t],t)}),[R,jt]),Dt=a((function(t,i){i===ct&&t===mt||setTimeout((function(){ut(i),vt(t),Q(t,i)}),0)}),[ct,mt,Q]),Et=m((function(t){if(Z){var i=S(R,wt,Rt,t.visibleStartIndex,t.visibleStopIndex,ht,Ot.current);Z(i)}}),{wait:J,trailing:!0},[Z,R,wt,Rt,ht]);return s((function(){if(q&&It!==q){var t=g(R,wt,Rt,ht),i=wt[q];t&&i&&kt(i)}}),[It,q,kt,wt,R,Rt,ht]),s((function(){Tt.current&&Tt.current.resetAfterIndex(0)}),[wt]),s((function(){var t=tt||Y;if(t){var i=g(R,wt,Rt,ht);gt.current!==i&&(gt.current=i,t(i))}}),[tt,Y,R,wt,ht,Rt]),e.createElement("div",{ref:bt,className:i(z.virtualizedListWrapper,y),id:C,role:rt,"aria-label":ot,"data-testid":lt||T(O.VIRTUALIZED_LIST,C),style:nt},e.createElement(f,null,(function(t){var i=t.height,r=t.width;return Dt(r,i),e.createElement(u,{ref:yt,height:i,width:r,itemCount:R.length,itemSize:At,onScroll:Lt,layout:D,overscanCount:N,onItemsRendered:Et,className:et},Vt)})))}));export{b as default};
2
2
  //# sourceMappingURL=VirtualizedList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedList.js","sources":["../../../../src/components/VirtualizedList/VirtualizedList.tsx"],"sourcesContent":["import cx from \"classnames\";\nimport React, {\n type CSSProperties,\n type ForwardedRef,\n forwardRef,\n type LegacyRef,\n type ReactElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from \"react\";\nimport { noop as NOOP } from \"es-toolkit/compat\";\nimport {\n type ScrollDirection,\n VariableSizeList as List,\n type ListOnItemsRenderedProps,\n type ListChildComponentProps,\n type VariableSizeList\n} from \"react-window\";\nimport AutoSizer from \"react-virtualized-auto-sizer\";\nimport usePrevious from \"../../hooks/usePrevious\";\nimport useThrottledCallback from \"../../hooks/useThrottledCallback\";\nimport useMergeRef from \"../../hooks/useMergeRef\";\nimport {\n easeInOutQuint,\n getMaxOffset,\n getNormalizedItems,\n getOnItemsRenderedData,\n isLayoutDirectionScrollbarVisible\n} from \"../../services/virtualized-service\";\nimport { getTestId } from \"../../tests/test-ids-utils\";\nimport { ComponentDefaultTestId } from \"../../tests/constants\";\nimport { type VibeComponent, type VibeComponentProps } from \"../../types\";\nimport styles from \"./VirtualizedList.module.scss\";\nimport {\n type VirtualizedListItem,\n type VirtualizedListLayout,\n type VirtualizedListScrollDirection\n} from \"./VirtualizedList.types\";\n\nexport interface VirtualizedListProps extends VibeComponentProps {\n /**\n * Class name applied to the scrollable container.\n */\n scrollableClassName?: string;\n /**\n * The orientation of the list.\n */\n layout?: VirtualizedListLayout;\n /**\n * The list of items to be rendered.\n */\n items: VirtualizedListItem[];\n /**\n * Function to render each item in the list.\n */\n itemRenderer: (item: VirtualizedListItem, index: number, style: CSSProperties) => ReactElement | JSX.Element;\n /**\n * @deprecated - use `getItemSize`.\n */\n getItemHeight?: (item: VirtualizedListItem, index: number) => number;\n /**\n * Function to get the size (height/width) of each item, based on layout.\n */\n getItemSize?: (item: VirtualizedListItem, index: number) => number;\n /**\n * Function to get the unique ID of an item.\n */\n getItemId?: (item: VirtualizedListItem, index: number) => string;\n /**\n * Callback fired when the scroll animation is finished.\n */\n onScrollToFinished?: () => void;\n /**\n * Number of items to render above and below the visible portion.\n */\n overscanCount?: number;\n /**\n * The duration of the scroll animation in milliseconds.\n */\n scrollDuration?: number;\n /**\n * Callback fired when items are rendered.\n */\n onItemsRendered?: ({\n firstItemId,\n secondItemId,\n lastItemId,\n centerItemId,\n firstItemOffsetEnd,\n currentOffsetTop\n }: {\n firstItemId: string;\n secondItemId: string;\n lastItemId: string;\n centerItemId: string;\n firstItemOffsetEnd: number;\n currentOffsetTop: number;\n }) => void;\n /**\n * The delay (in ms) for throttling the `onItemsRendered` callback.\n */\n onItemsRenderedThrottleMs?: number;\n /**\n * Callback fired when the list size changes.\n */\n onSizeUpdate?: (width: number, height: number) => void;\n /**\n * @deprecated - use `onLayoutDirectionScrollbarVisibilityChange`.\n */\n onVerticalScrollbarVisiblityChange?: (value: boolean) => void;\n /**\n * Callback fired when the vertical or horizontal scrollbar visibility changes.\n */\n onLayoutDirectionScrollbarVisibilityChange?: (value: boolean) => void;\n /**\n * The ARIA role attribute applied to the list.\n */\n role?: string;\n /**\n * The ARIA label for the list.\n */\n ariaLabel?: string;\n /**\n * Custom inline styles applied to the list.\n */\n style?: CSSProperties;\n /**\n * The ID of the item to scroll to.\n */\n scrollToId?: string;\n /**\n * Reference to the virtualized list component.\n */\n virtualListRef?: ForwardedRef<HTMLElement>;\n /**\n * Callback fired when the list is scrolled.\n */\n onScroll?: (\n horizontalScrollDirection: VirtualizedListScrollDirection,\n scrollTop: number,\n scrollUpdateWasRequested: boolean\n ) => void;\n}\n\nconst VirtualizedList = forwardRef(\n (\n {\n className,\n id,\n items = [],\n itemRenderer = (item: VirtualizedListItem, _index: number, _style: CSSProperties) => item as ReactElement,\n getItemHeight = (item: VirtualizedListItem, _index: number) => item.height,\n getItemSize = null, // must be null for backward compatibility\n layout = \"vertical\",\n onScroll,\n overscanCount = 0,\n getItemId = (item: VirtualizedListItem, _index: number) => item.id,\n scrollToId,\n scrollDuration = 200,\n onScrollToFinished = NOOP,\n onItemsRendered,\n onItemsRenderedThrottleMs = 200,\n onSizeUpdate = NOOP,\n onVerticalScrollbarVisiblityChange = null,\n onLayoutDirectionScrollbarVisibilityChange = null,\n virtualListRef,\n scrollableClassName,\n role,\n ariaLabel,\n style,\n \"data-testid\": dataTestId\n }: VirtualizedListProps,\n ref: React.ForwardedRef<HTMLElement>\n ) => {\n // states\n const [listHeight, setListHeight] = useState(0);\n const [listWidth, setListWidth] = useState(0);\n\n const isVerticalList = layout !== \"horizontal\";\n const listSizeByLayout = useMemo(() => {\n return isVerticalList ? listHeight : listWidth;\n }, [isVerticalList, listHeight, listWidth]);\n\n // prevs\n const prevScrollToId = usePrevious(scrollToId);\n\n // Refs\n const componentRef = useRef(null);\n const isVerticalScrollbarVisibleRef = useRef(null);\n const listRef = useRef(null);\n const scrollTopRef = useRef(0);\n const animationDataRef = useRef({\n initialized: false,\n scrollOffsetInitial: 0,\n scrollOffsetFinal: 0,\n animationStartTime: 0\n });\n const mergedRef = useMergeRef(ref, componentRef);\n const mergedListRef = useMergeRef(virtualListRef, listRef);\n\n const animationData = animationDataRef.current;\n if (!animationData.initialized) {\n animationData.initialized = true;\n animationData.scrollOffsetInitial = 0;\n animationData.scrollOffsetFinal = 0;\n animationData.animationStartTime = 0;\n }\n\n // Callbacks\n const sizeGetter = useCallback(\n (item: VirtualizedListItem, index: number) => {\n const getSize = getItemSize || getItemHeight;\n const height = getSize(item, index);\n if (height === undefined) {\n console.error(\"Couldn't get height for item: \", item);\n }\n return height;\n },\n [getItemHeight, getItemSize]\n );\n\n const idGetter = useCallback(\n (item: VirtualizedListItem, index: number) => {\n const itemId = getItemId(item, index);\n if (itemId === undefined) {\n console.error(\"Couldn't get id for item: \", item);\n }\n return itemId;\n },\n [getItemId]\n );\n\n // Memos\n // Creates object of itemId => { item, index, size, offsetTop}\n const normalizedItems = useMemo(() => {\n return getNormalizedItems(items, idGetter, sizeGetter);\n }, [items, idGetter, sizeGetter]);\n\n const maxListOffset = useMemo(() => {\n return getMaxOffset(listSizeByLayout, normalizedItems);\n }, [listSizeByLayout, normalizedItems]);\n\n // Callbacks\n const onScrollCB = useCallback(\n ({\n scrollDirection,\n scrollOffset,\n scrollUpdateWasRequested\n }: {\n scrollDirection: ScrollDirection;\n scrollOffset: number;\n scrollUpdateWasRequested: boolean;\n }) => {\n scrollTopRef.current = scrollOffset;\n if (!scrollUpdateWasRequested) {\n animationData.scrollOffsetInitial = scrollOffset;\n }\n onScroll && onScroll(scrollDirection, scrollOffset, scrollUpdateWasRequested);\n },\n [onScroll, scrollTopRef, animationData]\n );\n\n const animateScroll = useCallback(() => {\n requestAnimationFrame(() => {\n const now = performance.now();\n const ellapsed = now - animationData.animationStartTime;\n const scrollDelta = animationData.scrollOffsetFinal - animationData.scrollOffsetInitial;\n const easedTime = easeInOutQuint(Math.min(1, ellapsed / scrollDuration));\n const scrollOffset = animationData.scrollOffsetInitial + scrollDelta * easedTime;\n const finalOffsetValue = Math.min(maxListOffset, scrollOffset);\n scrollTopRef.current = finalOffsetValue;\n listRef.current?.scrollTo(finalOffsetValue);\n\n if (ellapsed < scrollDuration) {\n animateScroll();\n } else {\n animationData.animationStartTime = undefined;\n onScrollToFinished && onScrollToFinished();\n }\n });\n }, [scrollDuration, animationData, listRef, maxListOffset, onScrollToFinished]);\n\n const startScrollAnimation = useCallback(\n (item: VirtualizedListItem) => {\n const { offsetTop } = item;\n\n if (animationData.animationStartTime) {\n // animation already in progress\n animationData.scrollOffsetFinal = offsetTop;\n return;\n }\n\n // Update the initial scroll offset with the current scroll position for react 18 batching behavior\n if (listRef.current?.state?.scrollOffset !== null) {\n animationData.scrollOffsetInitial = listRef.current?.state?.scrollOffset;\n }\n\n if (animationData.scrollOffsetInitial === offsetTop) {\n // offset already equals to item offset\n onScrollToFinished && onScrollToFinished();\n return;\n }\n\n animationData.scrollOffsetFinal = offsetTop;\n animationData.animationStartTime = performance.now();\n animateScroll();\n },\n [animationData, animateScroll, onScrollToFinished]\n );\n\n const rowRenderer = useCallback(\n ({ index, style }: { index: number; style: CSSProperties }) => {\n const item = items[index];\n return itemRenderer(item, index, style);\n },\n [items, itemRenderer]\n );\n\n const calcItemSize = useCallback(\n (index: number) => {\n const item = items[index];\n return sizeGetter(item, index);\n },\n [items, sizeGetter]\n );\n\n const updateListSize = useCallback(\n (width: number, height: number) => {\n if (height !== listHeight || width !== listWidth) {\n setTimeout(() => {\n setListHeight(height);\n setListWidth(width);\n onSizeUpdate(width, height);\n }, 0);\n }\n },\n [listHeight, listWidth, onSizeUpdate]\n );\n\n const onItemsRenderedCB = useThrottledCallback(\n ({ visibleStartIndex, visibleStopIndex }: ListOnItemsRenderedProps) => {\n if (!onItemsRendered) return;\n const data = getOnItemsRenderedData(\n items,\n normalizedItems,\n idGetter,\n visibleStartIndex,\n visibleStopIndex,\n listSizeByLayout,\n scrollTopRef.current\n );\n onItemsRendered(data);\n },\n { wait: onItemsRenderedThrottleMs, trailing: true },\n [onItemsRendered, items, normalizedItems, idGetter, listSizeByLayout]\n );\n\n // Effects\n useEffect(() => {\n // scroll to specific item\n if (scrollToId && prevScrollToId !== scrollToId) {\n const hasScrollbar = isLayoutDirectionScrollbarVisible(items, normalizedItems, idGetter, listSizeByLayout);\n const item = normalizedItems[scrollToId as keyof typeof normalizedItems];\n hasScrollbar && item && startScrollAnimation(item);\n }\n }, [prevScrollToId, scrollToId, startScrollAnimation, normalizedItems, items, idGetter, listSizeByLayout]);\n\n useEffect(() => {\n // recalculate row heights\n if (listRef.current) {\n listRef.current.resetAfterIndex(0);\n }\n }, [normalizedItems]);\n\n useEffect(() => {\n // update vertical scrollbar visibility\n const callback = onLayoutDirectionScrollbarVisibilityChange || onVerticalScrollbarVisiblityChange;\n if (callback) {\n const isVisible = isLayoutDirectionScrollbarVisible(items, normalizedItems, idGetter, listSizeByLayout);\n if (isVerticalScrollbarVisibleRef.current !== isVisible) {\n isVerticalScrollbarVisibleRef.current = isVisible;\n callback(isVisible);\n }\n }\n }, [\n onLayoutDirectionScrollbarVisibilityChange,\n onVerticalScrollbarVisiblityChange,\n items,\n normalizedItems,\n listSizeByLayout,\n idGetter\n ]);\n\n return (\n <div\n ref={mergedRef}\n className={cx(styles.virtualizedListWrapper, className)}\n id={id}\n role={role}\n aria-label={ariaLabel}\n data-testid={dataTestId || getTestId(ComponentDefaultTestId.VIRTUALIZED_LIST, id)}\n style={style}\n >\n <AutoSizer>\n {({ height, width }: { height: number; width: number }) => {\n updateListSize(width, height);\n return (\n <List\n ref={mergedListRef as unknown as LegacyRef<VariableSizeList<unknown>>}\n height={height}\n width={width}\n itemCount={items.length}\n itemSize={calcItemSize}\n onScroll={onScrollCB}\n layout={layout}\n overscanCount={overscanCount}\n onItemsRendered={onItemsRenderedCB}\n className={scrollableClassName}\n >\n {rowRenderer as VibeComponent<ListChildComponentProps>}\n </List>\n );\n }}\n </AutoSizer>\n </div>\n );\n }\n);\n\nexport default VirtualizedList;\n"],"names":["VirtualizedList","forwardRef","_ref","ref","className","id","_ref$items","items","_ref$itemRenderer","itemRenderer","item","_index","_style","_ref$getItemHeight","getItemHeight","height","_ref$getItemSize","getItemSize","_ref$layout","layout","onScroll","_ref$overscanCount","overscanCount","_ref$getItemId","getItemId","scrollToId","_ref$scrollDuration","scrollDuration","_ref$onScrollToFinish","onScrollToFinished","NOOP","onItemsRendered","_ref$onItemsRenderedT","onItemsRenderedThrottleMs","_ref$onSizeUpdate","onSizeUpdate","_ref$onVerticalScroll","onVerticalScrollbarVisiblityChange","_ref$onLayoutDirectio","onLayoutDirectionScrollbarVisibilityChange","virtualListRef","scrollableClassName","role","ariaLabel","style","dataTestId","_useState","useState","_useState2","_slicedToArray","listHeight","setListHeight","_useState3","_useState4","listWidth","setListWidth","isVerticalList","listSizeByLayout","useMemo","prevScrollToId","usePrevious","componentRef","useRef","isVerticalScrollbarVisibleRef","listRef","scrollTopRef","animationDataRef","initialized","scrollOffsetInitial","scrollOffsetFinal","animationStartTime","mergedRef","useMergeRef","mergedListRef","animationData","current","sizeGetter","useCallback","index","undefined","console","error","idGetter","itemId","normalizedItems","getNormalizedItems","maxListOffset","getMaxOffset","onScrollCB","_ref2","scrollDirection","scrollOffset","scrollUpdateWasRequested","animateScroll","requestAnimationFrame","ellapsed","performance","now","scrollDelta","easedTime","easeInOutQuint","Math","min","finalOffsetValue","_a","scrollTo","startScrollAnimation","offsetTop","_b","state","_d","_c","rowRenderer","_ref3","calcItemSize","updateListSize","width","setTimeout","onItemsRenderedCB","useThrottledCallback","_ref4","data","getOnItemsRenderedData","visibleStartIndex","visibleStopIndex","wait","trailing","useEffect","hasScrollbar","isLayoutDirectionScrollbarVisible","resetAfterIndex","callback","isVisible","React","createElement","cx","styles","virtualizedListWrapper","getTestId","ComponentDefaultTestId","VIRTUALIZED_LIST","AutoSizer","_ref5","List","itemCount","length","itemSize"],"mappings":"i0BAmJMA,IAAAA,EAAkBC,GACtB,SAAAC,EA2BEC,GACE,IA1BAC,EAASF,EAATE,UACAC,EAAEH,EAAFG,GAAEC,EAAAJ,EACFK,MAAAA,OAAQ,IAAHD,EAAG,GAAEA,EAAAE,EAAAN,EACVO,aAAAA,OAAe,IAAHD,EAAG,SAACE,EAA2BC,EAAgBC,GAAqB,OAAKF,CAAoB,EAAAF,EAAAK,EAAAX,EACzGY,cAAAA,OAAa,IAAAD,EAAG,SAACH,EAA2BC,GAAc,OAAKD,EAAKK,MAAM,EAAAF,EAAAG,EAAAd,EAC1Ee,YAAAA,OAAc,IAAHD,EAAG,KAAIA,EAAAE,EAAAhB,EAClBiB,OAAAA,OAAS,IAAHD,EAAG,WAAUA,EACnBE,EAAQlB,EAARkB,SAAQC,EAAAnB,EACRoB,cAAAA,OAAgB,IAAHD,EAAG,EAACA,EAAAE,EAAArB,EACjBsB,UAAAA,OAAS,IAAAD,EAAG,SAACb,EAA2BC,GAAc,OAAKD,EAAKL,EAAE,EAAAkB,EAClEE,EAAUvB,EAAVuB,WAAUC,EAAAxB,EACVyB,eAAAA,OAAiB,IAAHD,EAAG,IAAGA,EAAAE,EAAA1B,EACpB2B,mBAAAA,OAAqBC,IAAHF,EAAGE,EAAIF,EACzBG,EAAe7B,EAAf6B,gBAAeC,EAAA9B,EACf+B,0BAAAA,OAA4B,IAAHD,EAAG,IAAGA,EAAAE,EAAAhC,EAC/BiC,aAAAA,OAAeL,IAAHI,EAAGJ,EAAII,EAAAE,EAAAlC,EACnBmC,mCAAAA,OAAqC,IAAHD,EAAG,KAAIA,EAAAE,EAAApC,EACzCqC,2CAAAA,QAA6C,IAAHD,EAAG,KA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AA8BY,UAAYyD,IAC5CrE,GAA8BY,QAAUyD,EACxCD,EAASC,GAEZ,CACH,GAAG,CACD7F,GACAF,EACA9B,EACA6E,GACA3B,GACAyB,KAIAmD,EACEC,cAAA,MAAA,CAAAnI,IAAKoE,GACLnE,UAAWmI,EAAGC,EAAOC,uBAAwBrI,GAC7CC,GAAIA,EACJqC,KAAMA,GAAI,aACEC,GACC,cAAAE,IAAc6F,EAAUC,EAAuBC,iBAAkBvI,GAC9EuC,MAAOA,IAEPyF,EAACC,cAAAO,QACE,SAAAC,GAAyD,IAAtD/H,EAAM+H,EAAN/H,OAAQqG,EAAK0B,EAAL1B,MAEV,OADAD,GAAeC,EAAOrG,GAEpBsH,gBAACU,EAAI,CACH5I,IAAKsE,GACL1D,OAAQA,EACRqG,MAAOA,EACP4B,UAAWzI,EAAM0I,OACjBC,SAAUhC,GACV9F,SAAUoE,GACVrE,OAAQA,EACRG,cAAeA,EACfS,gBAAiBuF,GACjBlH,UAAWqC,IAEVuE,GAGN,IAIT"}
1
+ {"version":3,"file":"VirtualizedList.js","sources":["../../../../src/components/VirtualizedList/VirtualizedList.tsx"],"sourcesContent":["import cx from \"classnames\";\nimport React, {\n type CSSProperties,\n type ForwardedRef,\n forwardRef,\n type LegacyRef,\n type ReactElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from \"react\";\nimport { noop as NOOP } from \"es-toolkit\";\nimport {\n type ScrollDirection,\n VariableSizeList as List,\n type ListOnItemsRenderedProps,\n type ListChildComponentProps,\n type VariableSizeList\n} from \"react-window\";\nimport AutoSizer from \"react-virtualized-auto-sizer\";\nimport usePrevious from \"../../hooks/usePrevious\";\nimport useThrottledCallback from \"../../hooks/useThrottledCallback\";\nimport useMergeRef from \"../../hooks/useMergeRef\";\nimport {\n easeInOutQuint,\n getMaxOffset,\n getNormalizedItems,\n getOnItemsRenderedData,\n isLayoutDirectionScrollbarVisible\n} from \"../../services/virtualized-service\";\nimport { getTestId } from \"../../tests/test-ids-utils\";\nimport { ComponentDefaultTestId } from \"../../tests/constants\";\nimport { type VibeComponent, type VibeComponentProps } from \"../../types\";\nimport styles from \"./VirtualizedList.module.scss\";\nimport {\n type VirtualizedListItem,\n type VirtualizedListLayout,\n type VirtualizedListScrollDirection\n} from \"./VirtualizedList.types\";\n\nexport interface VirtualizedListProps extends VibeComponentProps {\n /**\n * Class name applied to the scrollable container.\n */\n scrollableClassName?: string;\n /**\n * The orientation of the list.\n */\n layout?: VirtualizedListLayout;\n /**\n * The list of items to be rendered.\n */\n items: VirtualizedListItem[];\n /**\n * Function to render each item in the list.\n */\n itemRenderer: (item: VirtualizedListItem, index: number, style: CSSProperties) => ReactElement | JSX.Element;\n /**\n * @deprecated - use `getItemSize`.\n */\n getItemHeight?: (item: VirtualizedListItem, index: number) => number;\n /**\n * Function to get the size (height/width) of each item, based on layout.\n */\n getItemSize?: (item: VirtualizedListItem, index: number) => number;\n /**\n * Function to get the unique ID of an item.\n */\n getItemId?: (item: VirtualizedListItem, index: number) => string;\n /**\n * Callback fired when the scroll animation is finished.\n */\n onScrollToFinished?: () => void;\n /**\n * Number of items to render above and below the visible portion.\n */\n overscanCount?: number;\n /**\n * The duration of the scroll animation in milliseconds.\n */\n scrollDuration?: number;\n /**\n * Callback fired when items are rendered.\n */\n onItemsRendered?: ({\n firstItemId,\n secondItemId,\n lastItemId,\n centerItemId,\n firstItemOffsetEnd,\n currentOffsetTop\n }: {\n firstItemId: string;\n secondItemId: string;\n lastItemId: string;\n centerItemId: string;\n firstItemOffsetEnd: number;\n currentOffsetTop: number;\n }) => void;\n /**\n * The delay (in ms) for throttling the `onItemsRendered` callback.\n */\n onItemsRenderedThrottleMs?: number;\n /**\n * Callback fired when the list size changes.\n */\n onSizeUpdate?: (width: number, height: number) => void;\n /**\n * @deprecated - use `onLayoutDirectionScrollbarVisibilityChange`.\n */\n onVerticalScrollbarVisiblityChange?: (value: boolean) => void;\n /**\n * Callback fired when the vertical or horizontal scrollbar visibility changes.\n */\n onLayoutDirectionScrollbarVisibilityChange?: (value: boolean) => void;\n /**\n * The ARIA role attribute applied to the list.\n */\n role?: string;\n /**\n * The ARIA label for the list.\n */\n ariaLabel?: string;\n /**\n * Custom inline styles applied to the list.\n */\n style?: CSSProperties;\n /**\n * The ID of the item to scroll to.\n */\n scrollToId?: string;\n /**\n * Reference to the virtualized list component.\n */\n virtualListRef?: ForwardedRef<HTMLElement>;\n /**\n * Callback fired when the list is scrolled.\n */\n onScroll?: (\n horizontalScrollDirection: VirtualizedListScrollDirection,\n scrollTop: number,\n scrollUpdateWasRequested: boolean\n ) => void;\n}\n\nconst VirtualizedList = forwardRef(\n (\n {\n className,\n id,\n items = [],\n itemRenderer = (item: VirtualizedListItem, _index: number, _style: CSSProperties) => item as ReactElement,\n getItemHeight = (item: VirtualizedListItem, _index: number) => item.height,\n getItemSize = null, // must be null for backward compatibility\n layout = \"vertical\",\n onScroll,\n overscanCount = 0,\n getItemId = (item: VirtualizedListItem, _index: number) => item.id,\n scrollToId,\n scrollDuration = 200,\n onScrollToFinished = NOOP,\n onItemsRendered,\n onItemsRenderedThrottleMs = 200,\n onSizeUpdate = NOOP,\n onVerticalScrollbarVisiblityChange = null,\n onLayoutDirectionScrollbarVisibilityChange = null,\n virtualListRef,\n scrollableClassName,\n role,\n ariaLabel,\n style,\n \"data-testid\": dataTestId\n }: VirtualizedListProps,\n ref: React.ForwardedRef<HTMLElement>\n ) => {\n // states\n const [listHeight, setListHeight] = useState(0);\n const [listWidth, setListWidth] = useState(0);\n\n const isVerticalList = layout !== \"horizontal\";\n const listSizeByLayout = useMemo(() => {\n return isVerticalList ? listHeight : listWidth;\n }, [isVerticalList, listHeight, listWidth]);\n\n // prevs\n const prevScrollToId = usePrevious(scrollToId);\n\n // Refs\n const componentRef = useRef(null);\n const isVerticalScrollbarVisibleRef = useRef(null);\n const listRef = useRef(null);\n const scrollTopRef = useRef(0);\n const animationDataRef = useRef({\n initialized: false,\n scrollOffsetInitial: 0,\n scrollOffsetFinal: 0,\n animationStartTime: 0\n });\n const mergedRef = useMergeRef(ref, componentRef);\n const mergedListRef = useMergeRef(virtualListRef, listRef);\n\n const animationData = animationDataRef.current;\n if (!animationData.initialized) {\n animationData.initialized = true;\n animationData.scrollOffsetInitial = 0;\n animationData.scrollOffsetFinal = 0;\n animationData.animationStartTime = 0;\n }\n\n // Callbacks\n const sizeGetter = useCallback(\n (item: VirtualizedListItem, index: number) => {\n const getSize = getItemSize || getItemHeight;\n const height = getSize(item, index);\n if (height === undefined) {\n console.error(\"Couldn't get height for item: \", item);\n }\n return height;\n },\n [getItemHeight, getItemSize]\n );\n\n const idGetter = useCallback(\n (item: VirtualizedListItem, index: number) => {\n const itemId = getItemId(item, index);\n if (itemId === undefined) {\n console.error(\"Couldn't get id for item: \", item);\n }\n return itemId;\n },\n [getItemId]\n );\n\n // Memos\n // Creates object of itemId => { item, index, size, offsetTop}\n const normalizedItems = useMemo(() => {\n return getNormalizedItems(items, idGetter, sizeGetter);\n }, [items, idGetter, sizeGetter]);\n\n const maxListOffset = useMemo(() => {\n return getMaxOffset(listSizeByLayout, normalizedItems);\n }, [listSizeByLayout, normalizedItems]);\n\n // Callbacks\n const onScrollCB = useCallback(\n ({\n scrollDirection,\n scrollOffset,\n scrollUpdateWasRequested\n }: {\n scrollDirection: ScrollDirection;\n scrollOffset: number;\n scrollUpdateWasRequested: boolean;\n }) => {\n scrollTopRef.current = scrollOffset;\n if (!scrollUpdateWasRequested) {\n animationData.scrollOffsetInitial = scrollOffset;\n }\n onScroll && onScroll(scrollDirection, scrollOffset, scrollUpdateWasRequested);\n },\n [onScroll, scrollTopRef, animationData]\n );\n\n const animateScroll = useCallback(() => {\n requestAnimationFrame(() => {\n const now = performance.now();\n const ellapsed = now - animationData.animationStartTime;\n const scrollDelta = animationData.scrollOffsetFinal - animationData.scrollOffsetInitial;\n const easedTime = easeInOutQuint(Math.min(1, ellapsed / scrollDuration));\n const scrollOffset = animationData.scrollOffsetInitial + scrollDelta * easedTime;\n const finalOffsetValue = Math.min(maxListOffset, scrollOffset);\n scrollTopRef.current = finalOffsetValue;\n listRef.current?.scrollTo(finalOffsetValue);\n\n if (ellapsed < scrollDuration) {\n animateScroll();\n } else {\n animationData.animationStartTime = undefined;\n onScrollToFinished && onScrollToFinished();\n }\n });\n }, [scrollDuration, animationData, listRef, maxListOffset, onScrollToFinished]);\n\n const startScrollAnimation = useCallback(\n (item: VirtualizedListItem) => {\n const { offsetTop } = item;\n\n if (animationData.animationStartTime) {\n // animation already in progress\n animationData.scrollOffsetFinal = offsetTop;\n return;\n }\n\n // Update the initial scroll offset with the current scroll position for react 18 batching behavior\n if (listRef.current?.state?.scrollOffset !== null) {\n animationData.scrollOffsetInitial = listRef.current?.state?.scrollOffset;\n }\n\n if (animationData.scrollOffsetInitial === offsetTop) {\n // offset already equals to item offset\n onScrollToFinished && onScrollToFinished();\n return;\n }\n\n animationData.scrollOffsetFinal = offsetTop;\n animationData.animationStartTime = performance.now();\n animateScroll();\n },\n [animationData, animateScroll, onScrollToFinished]\n );\n\n const rowRenderer = useCallback(\n ({ index, style }: { index: number; style: CSSProperties }) => {\n const item = items[index];\n return itemRenderer(item, index, style);\n },\n [items, itemRenderer]\n );\n\n const calcItemSize = useCallback(\n (index: number) => {\n const item = items[index];\n return sizeGetter(item, index);\n },\n [items, sizeGetter]\n );\n\n const updateListSize = useCallback(\n (width: number, height: number) => {\n if (height !== listHeight || width !== listWidth) {\n setTimeout(() => {\n setListHeight(height);\n setListWidth(width);\n onSizeUpdate(width, height);\n }, 0);\n }\n },\n [listHeight, listWidth, onSizeUpdate]\n );\n\n const onItemsRenderedCB = useThrottledCallback(\n ({ visibleStartIndex, visibleStopIndex }: ListOnItemsRenderedProps) => {\n if (!onItemsRendered) return;\n const data = getOnItemsRenderedData(\n items,\n normalizedItems,\n idGetter,\n visibleStartIndex,\n visibleStopIndex,\n listSizeByLayout,\n scrollTopRef.current\n );\n onItemsRendered(data);\n },\n { wait: onItemsRenderedThrottleMs, trailing: true },\n [onItemsRendered, items, normalizedItems, idGetter, listSizeByLayout]\n );\n\n // Effects\n useEffect(() => {\n // scroll to specific item\n if (scrollToId && prevScrollToId !== scrollToId) {\n const hasScrollbar = isLayoutDirectionScrollbarVisible(items, normalizedItems, idGetter, listSizeByLayout);\n const item = normalizedItems[scrollToId as keyof typeof normalizedItems];\n hasScrollbar && item && startScrollAnimation(item);\n }\n }, [prevScrollToId, scrollToId, startScrollAnimation, normalizedItems, items, idGetter, listSizeByLayout]);\n\n useEffect(() => {\n // recalculate row heights\n if (listRef.current) {\n listRef.current.resetAfterIndex(0);\n }\n }, [normalizedItems]);\n\n useEffect(() => {\n // update vertical scrollbar visibility\n const callback = onLayoutDirectionScrollbarVisibilityChange || onVerticalScrollbarVisiblityChange;\n if (callback) {\n const isVisible = isLayoutDirectionScrollbarVisible(items, normalizedItems, idGetter, listSizeByLayout);\n if (isVerticalScrollbarVisibleRef.current !== isVisible) {\n isVerticalScrollbarVisibleRef.current = isVisible;\n callback(isVisible);\n }\n }\n }, [\n onLayoutDirectionScrollbarVisibilityChange,\n onVerticalScrollbarVisiblityChange,\n items,\n normalizedItems,\n listSizeByLayout,\n idGetter\n ]);\n\n return (\n <div\n ref={mergedRef}\n className={cx(styles.virtualizedListWrapper, className)}\n id={id}\n role={role}\n aria-label={ariaLabel}\n data-testid={dataTestId || getTestId(ComponentDefaultTestId.VIRTUALIZED_LIST, id)}\n style={style}\n >\n <AutoSizer>\n {({ height, width }: { height: number; width: number }) => {\n updateListSize(width, height);\n return (\n <List\n ref={mergedListRef as unknown as LegacyRef<VariableSizeList<unknown>>}\n height={height}\n width={width}\n itemCount={items.length}\n itemSize={calcItemSize}\n onScroll={onScrollCB}\n layout={layout}\n overscanCount={overscanCount}\n onItemsRendered={onItemsRenderedCB}\n className={scrollableClassName}\n >\n {rowRenderer as VibeComponent<ListChildComponentProps>}\n </List>\n );\n }}\n </AutoSizer>\n </div>\n );\n }\n);\n\nexport default VirtualizedList;\n"],"names":["VirtualizedList","forwardRef","_ref","ref","className","id","_ref$items","items","_ref$itemRenderer","itemRenderer","item","_index","_style","_ref$getItemHeight","getItemHeight","height","_ref$getItemSize","getItemSize","_ref$layout","layout","onScroll","_ref$overscanCount","overscanCount","_ref$getItemId","getItemId","scrollToId","_ref$scrollDuration","scrollDuration","_ref$onScrollToFinish","onScrollToFinished","NOOP","onItemsRendered","_ref$onItemsRenderedT","onItemsRenderedThrottleMs","_ref$onSizeUpdate","onSizeUpdate","_ref$onVerticalScroll","onVerticalScrollbarVisiblityChange","_ref$onLayoutDirectio","onLayoutDirectionScrollbarVisibilityChange","virtualListRef","scrollableClassName","role","ariaLabel","style","dataTestId","_useState","useState","_useState2","_slicedToArray","listHeight","setListHeight","_useState3","_useState4","listWidth","setListWidth","isVerticalList","listSizeByLayout","useMemo","prevScrollToId","usePrevious","componentRef","useRef","isVerticalScrollbarVisibleRef","listRef","scrollTopRef","animationDataRef","initialized","scrollOffsetInitial","scrollOffsetFinal","animationStartTime","mergedRef","useMergeRef","mergedListRef","animationData","current","sizeGetter","useCallback","index","undefined","console","error","idGetter","itemId","normalizedItems","getNormalizedItems","maxListOffset","getMaxOffset","onScrollCB","_ref2","scrollDirection","scrollOffset","scrollUpdateWasRequested","animateScroll","requestAnimationFrame","ellapsed","performance","now","scrollDelta","easedTime","easeInOutQuint","Math","min","finalOffsetValue","_a","scrollTo","startScrollAnimation","offsetTop","_b","state","_d","_c","rowRenderer","_ref3","calcItemSize","updateListSize","width","setTimeout","onItemsRenderedCB","useThrottledCallback","_ref4","data","getOnItemsRenderedData","visibleStartIndex","visibleStopIndex","wait","trailing","useEffect","hasScrollbar","isLayoutDirectionScrollbarVisible","resetAfterIndex","callback","isVisible","React","createElement","cx","styles","virtualizedListWrapper","getTestId","ComponentDefaultTestId","VIRTUALIZED_LIST","AutoSizer","_ref5","List","itemCount","length","itemSize"],"mappings":"0zBAmJMA,IAAAA,EAAkBC,GACtB,SAAAC,EA2BEC,GACE,IA1BAC,EAASF,EAAT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F,EAAUC,EAAuBC,iBAAkBvI,GAC9EuC,MAAOA,IAEPyF,EAACC,cAAAO,QACE,SAAAC,GAAyD,IAAtD/H,EAAM+H,EAAN/H,OAAQqG,EAAK0B,EAAL1B,MAEV,OADAD,GAAeC,EAAOrG,GAEpBsH,gBAACU,EAAI,CACH5I,IAAKsE,GACL1D,OAAQA,EACRqG,MAAOA,EACP4B,UAAWzI,EAAM0I,OACjBC,SAAUhC,GACV9F,SAAUoE,GACVrE,OAAQA,EACRG,cAAeA,EACfS,gBAAiBuF,GACjBlH,UAAWqC,IAEVuE,GAGN,IAIT"}
@@ -1,2 +1,2 @@
1
- var e={virtualizedListWrapper:"virtualizedListWrapper_b3e76fffbc"};!function(e){const t="s_id-9250e4cf6c59_3_63_0";if("undefined"!=typeof document){const i=document.head||document.getElementsByTagName("head")[0];if(i.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,i.firstChild?i.insertBefore(d,i.firstChild):i.appendChild(d),d.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".virtualizedListWrapper_b3e76fffbc {\n height: 100%;\n width: 100%;\n}");export{e as default};
1
+ var e={virtualizedListWrapper:"virtualizedListWrapper_fcf4a95244"};!function(e){const t="s_id-9250e4cf6c59_3_63_1";if("undefined"!=typeof document){const i=document.head||document.getElementsByTagName("head")[0];if(i.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,i.firstChild?i.insertBefore(d,i.firstChild):i.appendChild(d),d.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".virtualizedListWrapper_fcf4a95244 {\n height: 100%;\n width: 100%;\n}");export{e as default};
2
2
  //# sourceMappingURL=VirtualizedList.module.scss.js.map
@@ -0,0 +1,2 @@
1
+ import{defineProperty as t}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import e,{forwardRef as o}from"react";import i from"classnames";import a from"./layouts/AttentionBoxDefault/AttentionBoxDefault.js";import s from"./layouts/AttentionBoxCompact/AttentionBoxCompact.js";import{resolveAttentionBoxIcon as n}from"./utils/iconUtils.js";import{ComponentDefaultTestId as r}from"../../../tests/constants.js";import{getTestId as l}from"../../../tests/testIds.js";import m from"./AttentionBox.module.scss.js";var c=o((function(o,c){var p=o.compact,d=void 0!==p&&p,f=o.title,u=o.animate,v=void 0===u||u,j=o.iconType,B=void 0===j?"svg":j,A=o.type,x=void 0===A?"primary":A,y=o.children,b=o.text,g=o.action,T=o.link,C=o.id,E=o.onClose,N=o.closeButtonAriaLabel,O=o.className,_=o["data-testid"],k="negative"===x?"alert":"status",D=n(o.icon,x),I=y||b,L=i(m.attention,m[x],t({},m.animate,v),O),P={onClose:E,closeButtonAriaLabel:N,action:g,link:T,icon:D,iconType:B,content:I};return e.createElement("div",{ref:c,className:L,role:k,id:C,"data-testid":_||l(r.ATTENTION_BOX,C)},d?e.createElement(s,Object.assign({},P)):e.createElement(a,Object.assign({title:f},P)))}));export{c as default};
2
+ //# sourceMappingURL=AttentionBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBox.js","sources":["../../../../../src/components/next/AttentionBox/AttentionBox.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cx from \"classnames\";\nimport type { AttentionBoxProps, AttentionBoxRole } from \"./AttentionBox.types\";\nimport AttentionBoxDefault from \"./layouts/AttentionBoxDefault/AttentionBoxDefault\";\nimport AttentionBoxCompact from \"./layouts/AttentionBoxCompact/AttentionBoxCompact\";\nimport { resolveAttentionBoxIcon } from \"./utils/iconUtils\";\nimport { ComponentDefaultTestId } from \"../../../tests/constants\";\nimport { getTestId } from \"../../../tests/test-ids-utils\";\nimport styles from \"./AttentionBox.module.scss\";\n\nconst AttentionBox = forwardRef(\n (\n {\n compact = false,\n title,\n animate = true,\n icon,\n iconType = \"svg\",\n type = \"primary\",\n children,\n text,\n action,\n link,\n id,\n onClose,\n closeButtonAriaLabel,\n className,\n \"data-testid\": dataTestId\n }: AttentionBoxProps,\n ref: React.ForwardedRef<HTMLDivElement>\n ) => {\n const role: AttentionBoxRole = type === \"negative\" ? \"alert\" : \"status\";\n const displayIcon = resolveAttentionBoxIcon(icon, type);\n const content = children || text;\n\n const baseClasses = cx(\n styles.attention,\n styles[type],\n {\n [styles.animate]: animate\n },\n className\n );\n\n const layoutSharedProps = {\n onClose,\n closeButtonAriaLabel,\n action,\n link,\n icon: displayIcon,\n iconType,\n content\n };\n\n return (\n <div\n ref={ref}\n className={baseClasses}\n role={role}\n id={id}\n data-testid={dataTestId || getTestId(ComponentDefaultTestId.ATTENTION_BOX, id)}\n >\n {compact ? (\n <AttentionBoxCompact {...layoutSharedProps} />\n ) : (\n <AttentionBoxDefault title={title} {...layoutSharedProps} />\n )}\n </div>\n );\n }\n);\n\nexport default AttentionBox;\n"],"names":["AttentionBox","forwardRef","_ref","ref","_ref$compact","compact","title","_ref$animate","animate","_ref$iconType","iconType","_ref$type","type","children","text","action","link","id","onClose","closeButtonAriaLabel","className","dataTestId","role","displayIcon","resolveAttentionBoxIcon","icon","content","baseClasses","cx","styles","attention","_defineProperty","layoutSharedProps","React","createElement","getTestId","ComponentDefaultTestId","ATTENTION_BOX","AttentionBoxCompact","Object","assign","AttentionBoxDefault"],"mappings":"kgBAUMA,IAAAA,EAAeC,GACnB,SAAAC,EAkBEC,GACE,IAAAC,EAAAF,EAjBAG,QAAAA,OAAU,IAAHD,GAAQA,EACfE,EAAKJ,EAALI,MAAKC,EAAAL,EACLM,QAAAA,OAAU,IAAHD,GAAOA,EACVE,EAAAP,EACJQ,SAAAA,OAAW,IAAHD,EAAG,MAAKA,EAAAE,EAAAT,EAChBU,KAAAA,OAAO,IAAHD,EAAG,UAASA,EAChBE,EAAQX,EAARW,SACAC,EAAIZ,EAAJY,KACAC,EAAMb,EAANa,OACAC,EAAId,EAAJc,KACAC,EAAEf,EAAFe,GACAC,EAAOhB,EAAPgB,QACAC,EAAoBjB,EAApBiB,qBACAC,EAASlB,EAATkB,UACeC,EAAUnB,EAAzB,eAIIoB,EAAkC,aAATV,EAAsB,QAAU,SACzDW,EAAcC,EAhBdtB,EAAJuB,KAgBgDb,GAC5Cc,EAAUb,GAAYC,EAEtBa,EAAcC,EAClBC,EAAOC,UACPD,EAAOjB,GAAKmB,KAETF,EAAOrB,QAAUA,GAEpBY,GAGIY,EAAoB,CACxBd,QAAAA,EACAC,qBAAAA,EACAJ,OAAAA,EACAC,KAAAA,EACAS,KAAMF,EACNb,SAAAA,EACAgB,QAAAA,GAGF,OACEO,EACEC,cAAA,MAAA,CAAA/B,IAAKA,EACLiB,UAAWO,EACXL,KAAMA,EACNL,GAAIA,EAAE,cACOI,GAAcc,EAAUC,EAAuBC,cAAepB,IAE1EZ,EACC4B,EAAAC,cAACI,EAAmBC,OAAAC,OAAA,CAAA,EAAKR,IAEzBC,EAACC,cAAAO,EAAoBF,OAAAC,OAAA,CAAAlC,MAAOA,GAAW0B,IAI/C"}
@@ -0,0 +1,2 @@
1
+ var n={attention:"attention_315fef4042",animate:"animate_c8f6a81eaf",attentionBoxAnimation:"attentionBoxAnimation_49881b5945",primary:"primary_c8e03c7ecf",positive:"positive_9e73ba2de1",negative:"negative_552148c574",warning:"warning_6d283ee370",neutral:"neutral_1c83cc6cb4"};!function(n){const e="s_id-4a6eadcbcb7d_3_63_1";if("undefined"!=typeof document){const t=document.head||document.getElementsByTagName("head")[0];if(t.querySelector("#"+e))return;const a=document.createElement("style");a.id=e,t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.appendChild(document.createTextNode(n))}else globalThis.injectedStyles&&(globalThis.injectedStyles[e]=n)}("@keyframes attentionBoxAnimation_49881b5945 {\n 0% {\n opacity: 0;\n transform: translateY(-10px);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n}\n.attention_315fef4042 {\n width: 100%;\n border-radius: var(--border-radius-medium);\n padding: var(--space-12) var(--space-16);\n position: relative;\n overflow: hidden;\n}\n.attention_315fef4042.animate_c8f6a81eaf {\n animation: attentionBoxAnimation_49881b5945 200ms var(--motion-timing-transition);\n}\n.attention_315fef4042.primary_c8e03c7ecf {\n background-color: var(--primary-selected-color);\n}\n.attention_315fef4042.positive_9e73ba2de1 {\n background-color: var(--positive-color-selected);\n}\n.attention_315fef4042.negative_552148c574 {\n background-color: var(--negative-color-selected);\n}\n.attention_315fef4042.warning_6d283ee370 {\n background-color: var(--warning-color-selected);\n}\n.attention_315fef4042.neutral_1c83cc6cb4 {\n background-color: var(--allgrey-background-color);\n}");export{n as default};
2
+ //# sourceMappingURL=AttentionBox.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBox.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__rest as t}from"../../../../../../_virtual/_tslib.js";import r,{forwardRef as e}from"react";import o from"../../../../Button/Button.js";var a=e((function(e,a){var i=e.text,n=t(e,["text"]);return r.createElement(o,Object.assign({ref:a,size:"small",kind:"secondary",color:"inverted"},n),i)}));export{a as default};
2
+ //# sourceMappingURL=AttentionBoxButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxButton.js","sources":["../../../../../../../src/components/next/AttentionBox/components/AttentionBoxButton/AttentionBoxButton.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport Button, { type ButtonProps } from \"../../../../Button/Button\";\n\nexport interface AttentionBoxButtonProps extends Omit<ButtonProps, \"size\" | \"kind\" | \"color\" | \"children\"> {\n text: string;\n}\n\nconst AttentionBoxButton = forwardRef<HTMLButtonElement, AttentionBoxButtonProps>(({ text, ...buttonProps }, ref) => (\n <Button ref={ref} size=\"small\" kind=\"secondary\" color=\"inverted\" {...buttonProps}>\n {text}\n </Button>\n));\n\nexport default AttentionBoxButton;\n"],"names":["AttentionBoxButton","forwardRef","_a","ref","text","buttonProps","__rest","React","createElement","Button","Object","assign","size","kind","color"],"mappings":"gJAOMA,IAAAA,EAAqBC,GAAuD,SAACC,EAA0BC,GAA1B,IAAEC,EAAsBF,EAAtBE,KAASC,EAAWC,EAAAJ,EAAtB,UAAkC,OACnHK,EAACC,cAAAC,EAAOC,OAAAC,OAAA,CAAAR,IAAKA,EAAKS,KAAK,QAAQC,KAAK,YAAYC,MAAM,YAAeT,GAClED,EAEJ"}
@@ -0,0 +1,2 @@
1
+ import o from"react";import t from"classnames";import e from"../../../../IconButton/IconButton.js";import s from"./AttentionBoxCloseButton.module.scss.js";import r from"../../../../../../icons/dist/react/CloseSmall.js";var a=function(a){var i=a.closeButtonAriaLabel;return o.createElement(e,{icon:r,size:"xs",kind:"tertiary",onClick:a.onClose,ariaLabel:void 0===i?"Close":i,hideTooltip:!0,className:t(s.closeButton,a.className)})};export{a as default};
2
+ //# sourceMappingURL=AttentionBoxCloseButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxCloseButton.js","sources":["../../../../../../../src/components/next/AttentionBox/components/AttentionBoxCloseButton/AttentionBoxCloseButton.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { IconButton } from \"../../../../IconButton\";\nimport { CloseSmall } from \"@vibe/icons\";\nimport styles from \"./AttentionBoxCloseButton.module.scss\";\n\nexport interface AttentionBoxCloseButtonProps {\n onClose?: (event: React.MouseEvent) => void;\n closeButtonAriaLabel?: string;\n className?: string;\n}\n\nconst AttentionBoxCloseButton = ({\n onClose,\n closeButtonAriaLabel = \"Close\",\n className\n}: AttentionBoxCloseButtonProps) => {\n return (\n <IconButton\n icon={CloseSmall}\n size=\"xs\"\n kind=\"tertiary\"\n onClick={onClose}\n ariaLabel={closeButtonAriaLabel}\n hideTooltip\n className={cx(styles.closeButton, className)}\n />\n );\n};\n\nexport default AttentionBoxCloseButton;\n"],"names":["AttentionBoxCloseButton","_ref","_ref$closeButtonAriaL","closeButtonAriaLabel","React","createElement","IconButton","icon","CloseSmall","size","kind","onClick","onClose","ariaLabel","hideTooltip","className","cx","styles","closeButton"],"mappings":"2NAYA,IAAMA,EAA0B,SAAHC,GAIM,IAH1BC,EAAAD,EACPE,qBAGA,OACEC,EAACC,cAAAC,EACC,CAAAC,KAAMC,EACNC,KAAK,KACLC,KAAK,WACLC,QATGV,EAAPW,QAUIC,eATmB,IAAHX,EAAG,QAAOA,EAU1BY,aAAW,EACXC,UAAWC,EAAGC,EAAOC,YAVhBjB,EAATc,YAaF"}
@@ -0,0 +1,2 @@
1
+ var e={closeButton:"closeButton_6cb512f1dd"};!function(e){const t="s_id-979f8aeb619b_3_63_1";if("undefined"!=typeof document){const n=document.head||document.getElementsByTagName("head")[0];if(n.querySelector("#"+t))return;const o=document.createElement("style");o.id=t,n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".closeButton_6cb512f1dd {\n flex-shrink: 0;\n}\n.closeButton_6cb512f1dd:hover {\n background-color: var(--primary-background-hover-color);\n}");export{e as default};
2
+ //# sourceMappingURL=AttentionBoxCloseButton.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxCloseButton.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import o from"react";import t from"classnames";import e from"../../../../Icon/Icon.js";import"react-inlinesvg";import"es-toolkit";import"../../../../../tests/constants.js";import i from"./AttentionBoxLeadingIcon.module.scss.js";var n=function(n){var s=n.iconType;return o.createElement(e,{icon:n.icon,iconType:void 0===s?"svg":s,iconSize:20,className:t(i.icon,n.className)})};export{n as default};
2
+ //# sourceMappingURL=AttentionBoxLeadingIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxLeadingIcon.js","sources":["../../../../../../../src/components/next/AttentionBox/components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { Icon } from \"../../../../Icon\";\nimport type { SubIcon } from \"../../../../../types\";\nimport type { IconType } from \"../../../../Icon/Icon.types\";\nimport styles from \"./AttentionBoxLeadingIcon.module.scss\";\n\nexport interface AttentionBoxLeadingIconProps {\n icon?: SubIcon;\n iconType?: IconType;\n className?: string;\n}\n\nconst AttentionBoxLeadingIcon = ({ icon, iconType = \"svg\", className }: AttentionBoxLeadingIconProps) => {\n return <Icon icon={icon} iconType={iconType} iconSize={20} className={cx(styles.icon, className)} />;\n};\n\nexport default AttentionBoxLeadingIcon;\n"],"names":["AttentionBoxLeadingIcon","_ref","_ref$iconType","iconType","React","createElement","Icon","icon","iconSize","className","cx","styles"],"mappings":"oOAaA,IAAMA,EAA0B,SAAHC,GAA2E,IAAjEC,EAAAD,EAAEE,SACvC,OAAOC,EAAAC,cAACC,EAAI,CAACC,KADwBN,EAAJM,KACRJ,cADyB,IAAHD,EAAG,MAAKA,EACVM,SAAU,GAAIC,UAAWC,EAAGC,EAAOJ,KADdN,EAATQ,YAE3D"}
@@ -0,0 +1,2 @@
1
+ var e={icon:"icon_96ead97412"};!function(e){const t="s_id-55a80ba34ba3_3_63_1";if("undefined"!=typeof document){const n=document.head||document.getElementsByTagName("head")[0];if(n.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".icon_96ead97412 {\n color: var(--primary-text-color);\n flex-shrink: 0;\n}");export{e as default};
2
+ //# sourceMappingURL=AttentionBoxLeadingIcon.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxLeadingIcon.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__rest as t}from"../../../../../../_virtual/_tslib.js";import r,{forwardRef as a}from"react";import e from"classnames";import s from"../../../../Link/Link.js";import o from"./AttentionBoxLink.module.scss.js";var m=a((function(a,m){var i=a.target,n=a.className,c=t(a,["target","className"]);return r.createElement(s,Object.assign({ref:m,target:i,className:e(o.attentionBoxLink,n)},c))}));export{m as default};
2
+ //# sourceMappingURL=AttentionBoxLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxLink.js","sources":["../../../../../../../src/components/next/AttentionBox/components/AttentionBoxLink/AttentionBoxLink.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cx from \"classnames\";\nimport { Link } from \"../../../../Link\";\nimport type { LinkProps } from \"../../../../Link\";\nimport styles from \"./AttentionBoxLink.module.scss\";\n\nexport type AttentionBoxLinkProps = LinkProps;\n\nconst AttentionBoxLink = forwardRef(\n ({ target, className, ...linkProps }: AttentionBoxLinkProps, ref: React.ForwardedRef<HTMLAnchorElement>) => {\n return <Link ref={ref} target={target} className={cx(styles.attentionBoxLink, className)} {...linkProps} />;\n }\n);\n\nexport default AttentionBoxLink;\n"],"names":["AttentionBoxLink","forwardRef","_a","ref","target","className","linkProps","__rest","React","createElement","Link","Object","assign","cx","styles","attentionBoxLink"],"mappings":"uNAQMA,IAAAA,EAAmBC,GACvB,SAACC,EAA4DC,OAA1DC,EAAiBF,EAAjBE,OAAQC,EAASH,EAATG,UAAcC,EAASC,EAAAL,EAAjC,wBACC,OAAOM,EAAAC,cAACC,EAAIC,OAAAC,OAAA,CAACT,IAAKA,EAAKC,OAAQA,EAAQC,UAAWQ,EAAGC,EAAOC,iBAAkBV,IAAgBC,GAChG"}
@@ -0,0 +1,2 @@
1
+ var e={attentionBoxLink:"attentionBoxLink_97ee75ffa5"};!function(e){const t="s_id-706944a82a98_3_63_1";if("undefined"!=typeof document){const n=document.head||document.getElementsByTagName("head")[0];if(n.querySelector("#"+t))return;const o=document.createElement("style");o.id=t,n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[t]=e)}(".attentionBoxLink_97ee75ffa5 {\n color: var(--primary-text-color);\n text-decoration: underline;\n}");export{e as default};
2
+ //# sourceMappingURL=AttentionBoxLink.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxLink.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import r from"../../../../../icons/dist/react/Info.js";import i from"../../../../../icons/dist/react/Check.js";import t from"../../../../../icons/dist/react/Alert.js";import o from"../../../../../icons/dist/react/Warning.js";import s from"../../../../../icons/dist/react/Favorite.js";var e={primary:r,positive:i,negative:t,warning:o,neutral:s};export{e as ATTENTION_BOX_DEFAULT_ICONS};
2
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sources":["../../../../../../src/components/next/AttentionBox/consts/icons.ts"],"sourcesContent":["import { Info, Check, Alert, Warning, Favorite } from \"@vibe/icons\";\nimport type { AttentionBoxType } from \"../AttentionBox.types\";\nimport type { SubIcon } from \"../../../../types\";\n\nexport const ATTENTION_BOX_DEFAULT_ICONS: Record<AttentionBoxType, SubIcon> = {\n primary: Info,\n positive: Check,\n negative: Alert,\n warning: Warning,\n neutral: Favorite\n};\n"],"names":["ATTENTION_BOX_DEFAULT_ICONS","primary","Info","positive","Check","negative","Alert","warning","Warning","neutral","Favorite"],"mappings":"4RAIO,IAAMA,EAAiE,CAC5EC,QAASC,EACTC,SAAUC,EACVC,SAAUC,EACVC,QAASC,EACTC,QAASC"}
@@ -0,0 +1,2 @@
1
+ import t from"react";import e from"../../../../Flex/Flex.js";import o from"../../../../Text/Text.js";import n from"../../components/AttentionBoxButton/AttentionBoxButton.js";import i from"../../components/AttentionBoxLink/AttentionBoxLink.js";import s from"../../components/AttentionBoxCloseButton/AttentionBoxCloseButton.js";import a from"../../components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js";import c from"./AttentionBoxCompact.module.scss.js";var m=function(m){var r=m.icon,l=m.onClose,p=m.closeButtonAriaLabel,x=void 0===p?"Close":p,B=m.action,u=m.link,f=m.content,A=!(!B&&!u);return t.createElement(e,{align:"center",className:c.container},t.createElement(e,{gap:"xs",flex:"1",className:c.mainContentGroup},r&&t.createElement(a,{icon:r,iconType:m.iconType,className:c.leadingIcon}),t.createElement(o,{type:"text2",element:"p",ellipsis:!0},f)),(A||!!l)&&t.createElement(e,{className:c.actionsGroup},u&&t.createElement(i,Object.assign({},u,{inlineText:!1})),B&&t.createElement(n,Object.assign({},B)),!!l&&t.createElement(s,{onClose:l,closeButtonAriaLabel:x})))};export{m as default};
2
+ //# sourceMappingURL=AttentionBoxCompact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxCompact.js","sources":["../../../../../../../src/components/next/AttentionBox/layouts/AttentionBoxCompact/AttentionBoxCompact.tsx"],"sourcesContent":["import React from \"react\";\nimport Flex from \"../../../../Flex/Flex\";\nimport Text from \"../../../../Text/Text\";\nimport AttentionBoxButton from \"../../components/AttentionBoxButton/AttentionBoxButton\";\nimport AttentionBoxLink from \"../../components/AttentionBoxLink/AttentionBoxLink\";\nimport AttentionBoxCloseButton from \"../../components/AttentionBoxCloseButton/AttentionBoxCloseButton\";\nimport AttentionBoxLeadingIcon from \"../../components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon\";\nimport styles from \"./AttentionBoxCompact.module.scss\";\nimport type { AttentionBoxLayoutSharedProps } from \"../../AttentionBox.types\";\n\nexport type AttentionBoxCompactProps = AttentionBoxLayoutSharedProps;\n\nconst AttentionBoxCompact = ({\n icon,\n iconType,\n onClose,\n closeButtonAriaLabel = \"Close\",\n action,\n link,\n content\n}: AttentionBoxCompactProps) => {\n const hasActions = !!(action || link);\n\n return (\n <Flex align=\"center\" className={styles.container}>\n <Flex gap=\"xs\" flex=\"1\" className={styles.mainContentGroup}>\n {icon && <AttentionBoxLeadingIcon icon={icon} iconType={iconType} className={styles.leadingIcon} />}\n <Text type=\"text2\" element=\"p\" ellipsis>\n {content}\n </Text>\n </Flex>\n {(hasActions || !!onClose) && (\n <Flex className={styles.actionsGroup}>\n {link && <AttentionBoxLink {...link} inlineText={false} />}\n {action && <AttentionBoxButton {...action} />}\n {!!onClose && <AttentionBoxCloseButton onClose={onClose} closeButtonAriaLabel={closeButtonAriaLabel} />}\n </Flex>\n )}\n </Flex>\n );\n};\n\nexport default AttentionBoxCompact;\n"],"names":["AttentionBoxCompact","_ref","icon","onClose","_ref$closeButtonAriaL","closeButtonAriaLabel","action","link","content","hasActions","React","createElement","Flex","align","className","styles","container","gap","flex","mainContentGroup","AttentionBoxLeadingIcon","iconType","leadingIcon","Text","type","element","ellipsis","actionsGroup","AttentionBoxLink","Object","assign","inlineText","AttentionBoxButton","AttentionBoxCloseButton"],"mappings":"6cAYA,IAAMA,EAAsB,SAAHC,GAQM,IAP7BC,EAAID,EAAJC,KAEAC,EAAOF,EAAPE,QAAOC,EAAAH,EACPI,qBAAAA,OAAuB,IAAHD,EAAG,QAAOA,EAC9BE,EAAML,EAANK,OACAC,EAAIN,EAAJM,KACAC,EAAOP,EAAPO,QAEMC,KAAgBH,IAAUC,GAEhC,OACEG,EAAAC,cAACC,EAAI,CAACC,MAAM,SAASC,UAAWC,EAAOC,WACrCN,EAAAC,cAACC,EAAI,CAACK,IAAI,KAAKC,KAAK,IAAIJ,UAAWC,EAAOI,kBACvCjB,GAAQQ,EAACC,cAAAS,EAAwB,CAAAlB,KAAMA,EAAMmB,SAZ5CpB,EAARoB,SAYwEP,UAAWC,EAAOO,cACpFZ,EAAAC,cAACY,EAAI,CAACC,KAAK,QAAQC,QAAQ,IAAIC,UAC5B,GAAAlB,KAGHC,KAAgBN,IAChBO,EAAAC,cAACC,EAAK,CAAAE,UAAWC,EAAOY,cACrBpB,GAAQG,gBAACkB,EAAgBC,OAAAC,OAAA,CAAA,EAAKvB,EAAM,CAAAwB,YAAY,KAChDzB,GAAUI,EAAAC,cAACqB,EAAkBH,OAAAC,OAAA,CAAA,EAAKxB,MAChCH,GAAWO,gBAACuB,EAAuB,CAAC9B,QAASA,EAASE,qBAAsBA,KAKzF"}
@@ -0,0 +1,2 @@
1
+ var n={container:"container_6a0855aa41",mainContentGroup:"mainContentGroup_197ea522c6",leadingIcon:"leadingIcon_5ff164474a",actionsGroup:"actionsGroup_8b66e3b436"};!function(n){const e="s_id-2f71fab0a877_3_63_1";if("undefined"!=typeof document){const a=document.head||document.getElementsByTagName("head")[0];if(a.querySelector("#"+e))return;const t=document.createElement("style");t.id=e,a.firstChild?a.insertBefore(t,a.firstChild):a.appendChild(t),t.appendChild(document.createTextNode(n))}else globalThis.injectedStyles&&(globalThis.injectedStyles[e]=n)}(".container_6a0855aa41 {\n gap: var(--space-32);\n}\n\n.mainContentGroup_197ea522c6 {\n min-width: 0;\n}\n\n.leadingIcon_5ff164474a {\n align-self: flex-start;\n}\n\n.actionsGroup_8b66e3b436 {\n gap: var(--space-12);\n}");export{n as default};
2
+ //# sourceMappingURL=AttentionBoxCompact.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxCompact.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{defineProperty as t}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import e from"react";import o from"classnames";import n from"../../../../Text/Text.js";import s from"../../../../Flex/Flex.js";import i from"../../components/AttentionBoxButton/AttentionBoxButton.js";import a from"../../components/AttentionBoxLink/AttentionBoxLink.js";import l from"../../components/AttentionBoxCloseButton/AttentionBoxCloseButton.js";import m from"../../components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js";import r from"./AttentionBoxDefault.module.scss.js";var c=function(c){var p=c.title,u=c.icon,x=c.iconType,B=c.onClose,f=c.closeButtonAriaLabel,A=void 0===f?"Close":f,j=c.action,d=c.link,E=c.content,g=j||d;return e.createElement("div",{className:o(r.container,t(t(t(t({},r.hasIcon,!!u),r.hasTitle,!!p),r.hasActions,g),r.hasCloseButton,!!B))},u&&e.createElement(m,{icon:u,iconType:x,className:r.icon}),p&&e.createElement(n,{type:"text1",weight:"medium",className:r.title},p),!!B&&e.createElement(l,{onClose:B,closeButtonAriaLabel:A,className:r.closeButton}),e.createElement(n,{type:"text2",className:r.text,ellipsis:!1,element:"p"},E),g&&e.createElement(s,{gap:"medium",className:r.actions},d&&e.createElement(a,Object.assign({},d,{inlineText:!1})),j&&e.createElement(i,Object.assign({},j))))};export{c as default};
2
+ //# sourceMappingURL=AttentionBoxDefault.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxDefault.js","sources":["../../../../../../../src/components/next/AttentionBox/layouts/AttentionBoxDefault/AttentionBoxDefault.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { Text } from \"../../../../Text\";\nimport { Flex } from \"../../../../Flex\";\nimport AttentionBoxButton from \"../../components/AttentionBoxButton/AttentionBoxButton\";\nimport AttentionBoxLink from \"../../components/AttentionBoxLink/AttentionBoxLink\";\nimport AttentionBoxCloseButton from \"../../components/AttentionBoxCloseButton/AttentionBoxCloseButton\";\nimport AttentionBoxLeadingIcon from \"../../components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon\";\nimport styles from \"./AttentionBoxDefault.module.scss\";\nimport type { AttentionBoxLayoutSharedProps, AttentionBoxProps } from \"../../AttentionBox.types\";\n\nexport type AttentionBoxDefaultProps = AttentionBoxLayoutSharedProps & Pick<AttentionBoxProps, \"title\">;\n\nconst AttentionBoxDefault = ({\n title,\n icon,\n iconType,\n onClose,\n closeButtonAriaLabel = \"Close\",\n action,\n link,\n content\n}: AttentionBoxDefaultProps) => {\n const hasActions = action || link;\n\n return (\n <div\n className={cx(styles.container, {\n [styles.hasIcon]: !!icon,\n [styles.hasTitle]: !!title,\n [styles.hasActions]: hasActions,\n [styles.hasCloseButton]: !!onClose\n })}\n >\n {icon && <AttentionBoxLeadingIcon icon={icon} iconType={iconType} className={styles.icon} />}\n\n {title && (\n <Text type=\"text1\" weight=\"medium\" className={styles.title}>\n {title}\n </Text>\n )}\n\n {!!onClose && (\n <AttentionBoxCloseButton\n onClose={onClose}\n closeButtonAriaLabel={closeButtonAriaLabel}\n className={styles.closeButton}\n />\n )}\n\n <Text type=\"text2\" className={styles.text} ellipsis={false} element=\"p\">\n {content}\n </Text>\n\n {hasActions && (\n <Flex gap=\"medium\" className={styles.actions}>\n {link && <AttentionBoxLink {...link} inlineText={false} />}\n {action && <AttentionBoxButton {...action} />}\n </Flex>\n )}\n </div>\n );\n};\n\nexport default AttentionBoxDefault;\n"],"names":["AttentionBoxDefault","_ref","title","icon","iconType","onClose","_ref$closeButtonAriaL","closeButtonAriaLabel","action","link","content","hasActions","React","className","cx","styles","container","_defineProperty","hasIcon","hasTitle","hasCloseButton","createElement","AttentionBoxLeadingIcon","Text","type","weight","AttentionBoxCloseButton","closeButton","text","ellipsis","element","Flex","gap","actions","AttentionBoxLink","Object","assign","inlineText","AttentionBoxButton"],"mappings":"gkBAaA,IAAMA,EAAsB,SAAHC,GASM,IAR7BC,EAAKD,EAALC,MACAC,EAAIF,EAAJE,KACAC,EAAQH,EAARG,SACAC,EAAOJ,EAAPI,QAAOC,EAAAL,EACPM,qBAAAA,OAAuB,IAAHD,EAAG,QAAOA,EAC9BE,EAAMP,EAANO,OACAC,EAAIR,EAAJQ,KACAC,EAAOT,EAAPS,QAEMC,EAAaH,GAAUC,EAE7B,OACEG,uBACEC,UAAWC,EAAGC,EAAOC,UAASC,EAAAA,EAAAA,EAAAA,EAC3BF,CAAAA,EAAAA,EAAOG,UAAYf,GACnBY,EAAOI,WAAajB,GACpBa,EAAOJ,WAAaA,GACpBI,EAAOK,iBAAmBf,KAG5BF,GAAQS,EAACS,cAAAC,EAAwB,CAAAnB,KAAMA,EAAMC,SAAUA,EAAUS,UAAWE,EAAOZ,OAEnFD,GACCU,EAACS,cAAAE,GAAKC,KAAK,QAAQC,OAAO,SAASZ,UAAWE,EAAOb,OAClDA,KAIFG,GACDO,gBAACc,EAAuB,CACtBrB,QAASA,EACTE,qBAAsBA,EACtBM,UAAWE,EAAOY,cAItBf,EAACS,cAAAE,GAAKC,KAAK,QAAQX,UAAWE,EAAOa,KAAMC,UAAU,EAAOC,QAAQ,KACjEpB,GAGFC,GACCC,EAACS,cAAAU,EAAK,CAAAC,IAAI,SAASnB,UAAWE,EAAOkB,SAClCxB,GAAQG,gBAACsB,EAAgBC,OAAAC,OAAA,CAAA,EAAK3B,EAAM,CAAA4B,YAAY,KAChD7B,GAAUI,EAACS,cAAAiB,EAAuBH,OAAAC,OAAA,CAAA,EAAA5B,KAK7C"}
@@ -0,0 +1,2 @@
1
+ var n={container:"container_ea6a1c28a7",icon:"icon_87655ca431",title:"title_baad02290a",text:"text_3cf131dae3",actions:"actions_7a987de291",closeButton:"closeButton_49bf310237",hasIcon:"hasIcon_871454a5bb",hasCloseButton:"hasCloseButton_5732065032",hasTitle:"hasTitle_e21826d539"};!function(n){const a="s_id-d1aa0b2532e6_3_63_1";if("undefined"!=typeof document){const e=document.head||document.getElementsByTagName("head")[0];if(e.querySelector("#"+a))return;const t=document.createElement("style");t.id=a,e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t),t.appendChild(document.createTextNode(n))}else globalThis.injectedStyles&&(globalThis.injectedStyles[a]=n)}(".container_ea6a1c28a7 {\n --grid-columns: auto 1fr auto;\n display: grid;\n gap: var(--space-4);\n width: 100%;\n grid-template-columns: var(--grid-columns);\n}\n.container_ea6a1c28a7 .icon_87655ca431 {\n grid-column: 1;\n grid-row: 1;\n align-self: center;\n}\n.container_ea6a1c28a7 .title_baad02290a {\n grid-row: 1;\n grid-column: 2;\n align-self: center;\n}\n.container_ea6a1c28a7 .text_3cf131dae3,\n.container_ea6a1c28a7 .actions_7a987de291 {\n grid-column: 2/-1;\n}\n.container_ea6a1c28a7 .text_3cf131dae3 {\n grid-row: 2;\n min-width: 0;\n margin-inline-end: var(--space-8);\n}\n.container_ea6a1c28a7 .closeButton_49bf310237 {\n grid-row: 1;\n grid-column: 3;\n align-self: start;\n}\n.container_ea6a1c28a7 .actions_7a987de291 {\n grid-row: 3;\n margin-block-start: var(--space-8);\n}\n.container_ea6a1c28a7:not(.hasIcon_871454a5bb) {\n --grid-columns: 1fr auto;\n}\n.container_ea6a1c28a7:not(.hasIcon_871454a5bb):not(.hasCloseButton_5732065032) {\n --grid-columns: 1fr;\n}\n.container_ea6a1c28a7:not(.hasIcon_871454a5bb) .title_baad02290a {\n grid-column: 1;\n}\n.container_ea6a1c28a7:not(.hasIcon_871454a5bb) .text_3cf131dae3,\n.container_ea6a1c28a7:not(.hasIcon_871454a5bb) .actions_7a987de291 {\n grid-column: 1/-1;\n}\n.container_ea6a1c28a7:not(.hasIcon_871454a5bb) .closeButton_49bf310237 {\n grid-column: 2;\n}\n.container_ea6a1c28a7:not(.hasCloseButton_5732065032) {\n --grid-columns: auto 1fr;\n}\n.container_ea6a1c28a7:not(.hasTitle_e21826d539) .icon_87655ca431 {\n align-self: start;\n}\n.container_ea6a1c28a7:not(.hasTitle_e21826d539) .text_3cf131dae3 {\n grid-row: 1;\n grid-column-end: -2;\n}\n.container_ea6a1c28a7:not(.hasTitle_e21826d539) .closeButton_49bf310237 {\n margin-block-start: -1px;\n}\n.container_ea6a1c28a7:not(.hasTitle_e21826d539) .actions_7a987de291 {\n grid-row: 2;\n}");export{n as default};
2
+ //# sourceMappingURL=AttentionBoxDefault.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionBoxDefault.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{ATTENTION_BOX_DEFAULT_ICONS as r}from"../consts/icons.js";var n=function(n,o){return!1===n?null:n||r[o||"primary"]};export{n as resolveAttentionBoxIcon};
2
+ //# sourceMappingURL=iconUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iconUtils.js","sources":["../../../../../../src/components/next/AttentionBox/utils/iconUtils.ts"],"sourcesContent":["import type { SubIcon } from \"../../../../types\";\nimport type { AttentionBoxType } from \"../AttentionBox.types\";\nimport { ATTENTION_BOX_DEFAULT_ICONS } from \"../consts/icons\";\n\nexport const resolveAttentionBoxIcon = (icon?: SubIcon | false, type?: AttentionBoxType): SubIcon | null => {\n if (icon === false) return null;\n return icon || ATTENTION_BOX_DEFAULT_ICONS[type || \"primary\"];\n};\n"],"names":["resolveAttentionBoxIcon","icon","type","ATTENTION_BOX_DEFAULT_ICONS"],"mappings":"iEAIO,IAAMA,EAA0B,SAACC,EAAwBC,GAC9D,OAAa,IAATD,EAAuB,KACpBA,GAAQE,EAA4BD,GAAQ,UACrD"}
@@ -1,2 +1,2 @@
1
- export{default as ModalFooter}from"./Modal/footers/ModalFooter/ModalFooter.js";export{default as ModalFooterWizard}from"./Modal/footers/ModalFooterWizard/ModalFooterWizard.js";export{default as ModalBasicLayout}from"./Modal/layouts/ModalBasicLayout/ModalBasicLayout.js";export{default as ModalMediaLayout}from"./Modal/layouts/ModalMediaLayout/ModalMediaLayout.js";export{default as ModalSideBySideLayout}from"./Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.js";export{default as Modal}from"./Modal/Modal/Modal.js";export{default as ModalHeader}from"./Modal/ModalHeader/ModalHeader.js";export{default as ModalContent}from"./Modal/ModalContent/ModalContent.js";export{default as ModalMedia}from"./Modal/ModalMedia/ModalMedia.js";export{default as Dropdown}from"./DropdownNew/Dropdown.js";
1
+ export{default as ModalFooter}from"./Modal/footers/ModalFooter/ModalFooter.js";export{default as ModalFooterWizard}from"./Modal/footers/ModalFooterWizard/ModalFooterWizard.js";export{default as ModalBasicLayout}from"./Modal/layouts/ModalBasicLayout/ModalBasicLayout.js";export{default as ModalMediaLayout}from"./Modal/layouts/ModalMediaLayout/ModalMediaLayout.js";export{default as ModalSideBySideLayout}from"./Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.js";export{default as Modal}from"./Modal/Modal/Modal.js";export{default as ModalHeader}from"./Modal/ModalHeader/ModalHeader.js";export{default as ModalContent}from"./Modal/ModalContent/ModalContent.js";export{default as ModalMedia}from"./Modal/ModalMedia/ModalMedia.js";export{default as Dropdown}from"./DropdownNew/Dropdown.js";export{default as AttentionBox}from"./next/AttentionBox/AttentionBox.js";
2
2
  //# sourceMappingURL=next.js.map
@@ -1,2 +1,2 @@
1
- import{isNil as i}from"es-toolkit/compat";function e(e){var o=e.isClickable,r=e.isDecorationOnly,n=e.isKeyboardAccessible,s=e.label,l=i(r)?!o&&!s:r;return o||s?a({label:s,isDecorationOnly:l,isKeyboardAccessible:n,isHoverOnly:!o&&!!s}):{role:l?void 0:"img","aria-hidden":l,tabIndex:void 0,"aria-label":r?void 0:s}}function o(i){var e=i.isKeyboardAccessible,o=i.isDecorationOnly,a=i.isHoverOnly;return{role:void 0!==a&&a?"img":"button",tabIndex:void 0===e||e?0:-1,"aria-hidden":void 0!==o&&o}}function a(i){var e=i.label,a=i.isDecorationOnly,r=i.isKeyboardAccessible,n=i.isHoverOnly;return Object.assign(Object.assign({},o({isDecorationOnly:void 0!==a&&a,isKeyboardAccessible:void 0===r||r,isHoverOnly:void 0!==n&&n})),{"aria-label":e})}export{a as getClickableIconScreenReaderAccessProps,o as getClickableScreenReaderAccessProps,e as getIconScreenReaderAccessProps};
1
+ import{isNil as i}from"es-toolkit";function e(e){var o=e.isClickable,a=e.isDecorationOnly,n=e.isKeyboardAccessible,s=e.label,l=i(a)?!o&&!s:a;return o||s?r({label:s,isDecorationOnly:l,isKeyboardAccessible:n,isHoverOnly:!o&&!!s}):{role:l?void 0:"img","aria-hidden":l,tabIndex:void 0,"aria-label":a?void 0:s}}function o(i){var e=i.isKeyboardAccessible,o=i.isDecorationOnly,r=i.isHoverOnly;return{role:void 0!==r&&r?"img":"button",tabIndex:void 0===e||e?0:-1,"aria-hidden":void 0!==o&&o}}function r(i){var e=i.label,r=i.isDecorationOnly,a=i.isKeyboardAccessible,n=i.isHoverOnly;return Object.assign(Object.assign({},o({isDecorationOnly:void 0!==r&&r,isKeyboardAccessible:void 0===a||a,isHoverOnly:void 0!==n&&n})),{"aria-label":e})}export{r as getClickableIconScreenReaderAccessProps,o as getClickableScreenReaderAccessProps,e as getIconScreenReaderAccessProps};
2
2
  //# sourceMappingURL=screenReaderAccessHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"screenReaderAccessHelper.js","sources":["../../../src/helpers/screenReaderAccessHelper.ts"],"sourcesContent":["import { isNil } from \"es-toolkit/compat\";\n\nexport function getIconScreenReaderAccessProps({\n isClickable,\n isDecorationOnly,\n isKeyboardAccessible,\n label\n}: {\n isClickable: boolean;\n isDecorationOnly: boolean;\n isKeyboardAccessible?: boolean;\n label: string;\n}) {\n const overrideIsDecorationOnly = isNil(isDecorationOnly) ? !isClickable && !label : isDecorationOnly;\n if (isClickable || label) {\n return getClickableIconScreenReaderAccessProps({\n label,\n isDecorationOnly: overrideIsDecorationOnly,\n isKeyboardAccessible,\n isHoverOnly: !isClickable && !!label\n });\n }\n return {\n role: overrideIsDecorationOnly ? undefined : \"img\",\n \"aria-hidden\": overrideIsDecorationOnly,\n tabIndex: undefined,\n \"aria-label\": isDecorationOnly ? undefined : label\n };\n}\n\nexport function getClickableScreenReaderAccessProps({\n isKeyboardAccessible = true,\n isDecorationOnly = false,\n isHoverOnly = false\n}: {\n isKeyboardAccessible?: boolean;\n isDecorationOnly?: boolean;\n isHoverOnly: boolean;\n}) {\n return {\n role: isHoverOnly ? \"img\" : \"button\",\n tabIndex: isKeyboardAccessible ? 0 : -1,\n \"aria-hidden\": isDecorationOnly\n };\n}\n\nexport function getClickableIconScreenReaderAccessProps({\n label,\n isDecorationOnly = false,\n isKeyboardAccessible = true,\n isHoverOnly = false\n}: {\n label: string;\n isDecorationOnly?: boolean;\n isKeyboardAccessible?: boolean;\n isHoverOnly?: boolean;\n}) {\n return {\n ...getClickableScreenReaderAccessProps({ isDecorationOnly, isKeyboardAccessible, isHoverOnly }),\n \"aria-label\": label\n };\n}\n"],"names":["getIconScreenReaderAccessProps","_ref","isClickable","isDecorationOnly","isKeyboardAccessible","label","overrideIsDecorationOnly","isNil","getClickableIconScreenReaderAccessProps","isHoverOnly","role","undefined","tabIndex","getClickableScreenReaderAccessProps","_ref2","_ref2$isKeyboardAcces","_ref2$isDecorationOnl","_ref2$isHoverOnly","_ref3","_ref3$isDecorationOnl","_ref3$isKeyboardAcces","_ref3$isHoverOnly","Object","assign"],"mappings":"0CAEM,SAAUA,EAA8BC,GAU7C,IATCC,EAAWD,EAAXC,YACAC,EAAgBF,EAAhBE,iBACAC,EAAoBH,EAApBG,qBACAC,EAAKJ,EAALI,MAOMC,EAA2BC,EAAMJ,IAAqBD,IAAgBG,EAAQF,EACpF,OAAID,GAAeG,EACVG,EAAwC,CAC7CH,MAAAA,EACAF,iBAAkBG,EAClBF,qBAAAA,EACAK,aAAcP,KAAiBG,IAG5B,CACLK,KAAMJ,OAA2BK,EAAY,MAC7C,cAAeL,EACfM,cAAUD,EACV,aAAcR,OAAmBQ,EAAYN,EAEjD,CAEgB,SAAAQ,EAAmCC,GAQlD,IAAAC,EAAAD,EAPCV,qBAA2BY,EAAAF,EAC3BX,iBAAwBc,EAAAH,EACxBL,YAMA,MAAO,CACLC,UAPY,IAAHO,GAAQA,EAOG,MAAQ,SAC5BL,cAVqB,IAAHG,GAAOA,EAUQ,GAAK,EACtC,mBAViB,IAAHC,GAAQA,EAY1B,UAEgBR,EAAuCU,GAUtD,IATCb,EAAKa,EAALb,MAAKc,EAAAD,EACLf,iBAAwBiB,EAAAF,EACxBd,qBAA2BiB,EAAAH,EAC3BT,YAOA,OAAAa,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACKV,EAAoC,CAAEV,sBAVxB,IAAHgB,GAAQA,EAUqCf,0BATtC,IAAHgB,GAAOA,EASwDX,iBARrE,IAAHY,GAAQA,KAQ8E,CAC/F,aAAchB,GAElB"}
1
+ {"version":3,"file":"screenReaderAccessHelper.js","sources":["../../../src/helpers/screenReaderAccessHelper.ts"],"sourcesContent":["import { isNil } from \"es-toolkit\";\n\nexport function getIconScreenReaderAccessProps({\n isClickable,\n isDecorationOnly,\n isKeyboardAccessible,\n label\n}: {\n isClickable: boolean;\n isDecorationOnly: boolean;\n isKeyboardAccessible?: boolean;\n label: string;\n}) {\n const overrideIsDecorationOnly = isNil(isDecorationOnly) ? !isClickable && !label : isDecorationOnly;\n if (isClickable || label) {\n return getClickableIconScreenReaderAccessProps({\n label,\n isDecorationOnly: overrideIsDecorationOnly,\n isKeyboardAccessible,\n isHoverOnly: !isClickable && !!label\n });\n }\n return {\n role: overrideIsDecorationOnly ? undefined : \"img\",\n \"aria-hidden\": overrideIsDecorationOnly,\n tabIndex: undefined,\n \"aria-label\": isDecorationOnly ? undefined : label\n };\n}\n\nexport function getClickableScreenReaderAccessProps({\n isKeyboardAccessible = true,\n isDecorationOnly = false,\n isHoverOnly = false\n}: {\n isKeyboardAccessible?: boolean;\n isDecorationOnly?: boolean;\n isHoverOnly: boolean;\n}) {\n return {\n role: isHoverOnly ? \"img\" : \"button\",\n tabIndex: isKeyboardAccessible ? 0 : -1,\n \"aria-hidden\": isDecorationOnly\n };\n}\n\nexport function getClickableIconScreenReaderAccessProps({\n label,\n isDecorationOnly = false,\n isKeyboardAccessible = true,\n isHoverOnly = false\n}: {\n label: string;\n isDecorationOnly?: boolean;\n isKeyboardAccessible?: boolean;\n isHoverOnly?: boolean;\n}) {\n return {\n ...getClickableScreenReaderAccessProps({ isDecorationOnly, isKeyboardAccessible, isHoverOnly }),\n \"aria-label\": label\n };\n}\n"],"names":["getIconScreenReaderAccessProps","_ref","isClickable","isDecorationOnly","isKeyboardAccessible","label","overrideIsDecorationOnly","isNil","getClickableIconScreenReaderAccessProps","isHoverOnly","role","undefined","tabIndex","getClickableScreenReaderAccessProps","_ref2","_ref2$isKeyboardAcces","_ref2$isDecorationOnl","_ref2$isHoverOnly","_ref3","_ref3$isDecorationOnl","_ref3$isKeyboardAcces","_ref3$isHoverOnly","Object","assign"],"mappings":"mCAEM,SAAUA,EAA8BC,GAU7C,IATCC,EAAWD,EAAXC,YACAC,EAAgBF,EAAhBE,iBACAC,EAAoBH,EAApBG,qBACAC,EAAKJ,EAALI,MAOMC,EAA2BC,EAAMJ,IAAqBD,IAAgBG,EAAQF,EACpF,OAAID,GAAeG,EACVG,EAAwC,CAC7CH,MAAAA,EACAF,iBAAkBG,EAClBF,qBAAAA,EACAK,aAAcP,KAAiBG,IAG5B,CACLK,KAAMJ,OAA2BK,EAAY,MAC7C,cAAeL,EACfM,cAAUD,EACV,aAAcR,OAAmBQ,EAAYN,EAEjD,CAEgB,SAAAQ,EAAmCC,GAQlD,IAAAC,EAAAD,EAPCV,qBAA2BY,EAAAF,EAC3BX,iBAAwBc,EAAAH,EACxBL,YAMA,MAAO,CACLC,UAPY,IAAHO,GAAQA,EAOG,MAAQ,SAC5BL,cAVqB,IAAHG,GAAOA,EAUQ,GAAK,EACtC,mBAViB,IAAHC,GAAQA,EAY1B,UAEgBR,EAAuCU,GAUtD,IATCb,EAAKa,EAALb,MAAKc,EAAAD,EACLf,iBAAwBiB,EAAAF,EACxBd,qBAA2BiB,EAAAH,EAC3BT,YAOA,OAAAa,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACKV,EAAoC,CAAEV,sBAVxB,IAAHgB,GAAQA,EAUqCf,0BATtC,IAAHgB,GAAOA,EASwDX,iBARrE,IAAHY,GAAQA,KAQ8E,CAC/F,aAAchB,GAElB"}
@@ -1,2 +1,2 @@
1
- import{slicedToArray as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{useState as r,useRef as e,useEffect as a,useMemo as n,useCallback as o}from"react";import{noop as u,debounce as i}from"es-toolkit/compat";function l(l){var c=l.delay,f=void 0===c?0:c,m=l.onChange,p=l.initialStateValue,v=void 0===p?"":p,d=l.trim,s=r(v),g=t(s,2),V=g[0],h=g[1],y=e(null);a((function(){y.current=v}));var C=n((function(){return f?m?i(m,f):u:m}),[m,f]),_=o((function(t){var r=t.target.value,e=d?r.trim():r;h(e),C(e)}),[C,h,d]),b=o((function(){h(""),m&&m("")}),[h,m]);return v!==y.current&&v!==V&&h(v),{inputValue:V,onEventChanged:_,clearValue:b,updateValue:h}}export{l as default};
1
+ import{slicedToArray as r}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{useState as t,useRef as e,useEffect as a,useMemo as n,useCallback as u}from"react";import{noop as i,debounce as o}from"es-toolkit";function l(l){var c=l.delay,f=void 0===c?0:c,m=l.onChange,p=l.initialStateValue,v=void 0===p?"":p,d=l.trim,s=t(v),g=r(s,2),V=g[0],h=g[1],y=e(null);a((function(){y.current=v}));var C=n((function(){return f?m?o(m,f):i:m}),[m,f]),_=u((function(r){var t=r.target.value,e=d?t.trim():t;h(e),C(e)}),[C,h,d]),b=u((function(){h(""),m&&m("")}),[h,m]);return v!==y.current&&v!==V&&h(v),{inputValue:V,onEventChanged:_,clearValue:b,updateValue:h}}export{l as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/hooks/useDebounceEvent/index.ts"],"sourcesContent":["import {\n useMemo,\n useCallback,\n useState,\n useRef,\n useEffect,\n type ChangeEvent,\n type Dispatch,\n type SetStateAction\n} from \"react\";\nimport { noop, debounce } from \"es-toolkit/compat\";\n\nexport type UseDebounceResult = {\n inputValue: string;\n onEventChanged: (event: ChangeEvent<Partial<HTMLInputElement> | Partial<HTMLTextAreaElement>>) => void;\n clearValue: () => void;\n updateValue: Dispatch<SetStateAction<string>>;\n};\n\nexport default function useDebounceEvent({\n delay = 0,\n onChange,\n initialStateValue = \"\",\n trim\n}: {\n onChange: (value: string) => void;\n initialStateValue?: string;\n delay?: number;\n trim?: boolean;\n}) {\n const [inputValue, setValue] = useState<string>(initialStateValue);\n const previousValue = useRef<string>(null);\n\n useEffect(() => {\n previousValue.current = initialStateValue;\n });\n\n const debounceCallback = useMemo(() => {\n if (!delay) {\n return onChange;\n }\n\n if (!onChange) {\n return noop;\n }\n\n return debounce(onChange, delay);\n }, [onChange, delay]);\n\n const onEventChanged = useCallback(\n (event: ChangeEvent<Partial<HTMLInputElement> | Partial<HTMLTextAreaElement>>) => {\n const { value } = event.target;\n const finalValue = trim ? value.trim() : value;\n setValue(finalValue);\n debounceCallback(finalValue);\n },\n [debounceCallback, setValue, trim]\n );\n\n const clearValue = useCallback(() => {\n setValue(\"\");\n if (onChange) {\n onChange(\"\");\n }\n }, [setValue, onChange]);\n\n if (initialStateValue !== previousValue.current && initialStateValue !== inputValue) {\n setValue(initialStateValue);\n }\n\n return { inputValue, onEventChanged, clearValue, updateValue: setValue };\n}\n"],"names":["useDebounceEvent","_ref","_ref$delay","delay","onChange","_ref$initialStateValu","initialStateValue","trim","_useState","useState","_useState2","_slicedToArray","inputValue","setValue","previousValue","useRef","useEffect","current","debounceCallback","useMemo","debounce","noop","onEventChanged","useCallback","event","value","target","finalValue","clearValue","updateValue"],"mappings":"gOAmBc,SAAUA,EAAgBC,GAUvC,IAAAC,EAAAD,EATCE,MAAAA,OAAQ,IAAHD,EAAG,EAACA,EACTE,EAAQH,EAARG,SAAQC,EAAAJ,EACRK,kBAAAA,OAAoB,IAAHD,EAAG,GAAEA,EACtBE,EAAIN,EAAJM,KAOAC,EAA+BC,EAAiBH,GAAkBI,EAAAC,EAAAH,EAAA,GAA3DI,EAAUF,EAAA,GAAEG,EAAQH,EAAA,GACrBI,EAAgBC,EAAe,MAErCC,GAAU,WACRF,EAAcG,QAAUX,CAC1B,IAEA,IAAMY,EAAmBC,GAAQ,WAC/B,OAAKhB,EAIAC,EAIEgB,EAAShB,EAAUD,GAHjBkB,EAJAjB,CAQX,GAAG,CAACA,EAAUD,IAERmB,EAAiBC,GACrB,SAACC,GACC,IAAQC,EAAUD,EAAME,OAAhBD,MACFE,EAAapB,EAAOkB,EAAMlB,OAASkB,EACzCZ,EAASc,GACTT,EAAiBS,EAClB,GACD,CAACT,EAAkBL,EAAUN,IAGzBqB,EAAaL,GAAY,WAC7BV,EAAS,IACLT,GACFA,EAAS,GAEb,GAAG,CAACS,EAAUT,IAMd,OAJIE,IAAsBQ,EAAcG,SAAWX,IAAsBM,GACvEC,EAASP,GAGJ,CAAEM,WAAAA,EAAYU,eAAAA,EAAgBM,WAAAA,EAAYC,YAAahB,EAChE"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/hooks/useDebounceEvent/index.ts"],"sourcesContent":["import {\n useMemo,\n useCallback,\n useState,\n useRef,\n useEffect,\n type ChangeEvent,\n type Dispatch,\n type SetStateAction\n} from \"react\";\nimport { debounce } from \"es-toolkit\";\nimport { noop } from \"es-toolkit\";\n\nexport type UseDebounceResult = {\n inputValue: string;\n onEventChanged: (event: ChangeEvent<Partial<HTMLInputElement> | Partial<HTMLTextAreaElement>>) => void;\n clearValue: () => void;\n updateValue: Dispatch<SetStateAction<string>>;\n};\n\nexport default function useDebounceEvent({\n delay = 0,\n onChange,\n initialStateValue = \"\",\n trim\n}: {\n onChange: (value: string) => void;\n initialStateValue?: string;\n delay?: number;\n trim?: boolean;\n}) {\n const [inputValue, setValue] = useState<string>(initialStateValue);\n const previousValue = useRef<string>(null);\n\n useEffect(() => {\n previousValue.current = initialStateValue;\n });\n\n const debounceCallback = useMemo(() => {\n if (!delay) {\n return onChange;\n }\n\n if (!onChange) {\n return noop;\n }\n\n return debounce(onChange, delay);\n }, [onChange, delay]);\n\n const onEventChanged = useCallback(\n (event: ChangeEvent<Partial<HTMLInputElement> | Partial<HTMLTextAreaElement>>) => {\n const { value } = event.target;\n const finalValue = trim ? value.trim() : value;\n setValue(finalValue);\n debounceCallback(finalValue);\n },\n [debounceCallback, setValue, trim]\n );\n\n const clearValue = useCallback(() => {\n setValue(\"\");\n if (onChange) {\n onChange(\"\");\n }\n }, [setValue, onChange]);\n\n if (initialStateValue !== previousValue.current && initialStateValue !== inputValue) {\n setValue(initialStateValue);\n }\n\n return { inputValue, onEventChanged, clearValue, updateValue: setValue };\n}\n"],"names":["useDebounceEvent","_ref","_ref$delay","delay","onChange","_ref$initialStateValu","initialStateValue","trim","_useState","useState","_useState2","_slicedToArray","inputValue","setValue","previousValue","useRef","useEffect","current","debounceCallback","useMemo","debounce","noop","onEventChanged","useCallback","event","value","target","finalValue","clearValue","updateValue"],"mappings":"yNAoBc,SAAUA,EAAgBC,GAUvC,IAAAC,EAAAD,EATCE,MAAAA,OAAQ,IAAHD,EAAG,EAACA,EACTE,EAAQH,EAARG,SAAQC,EAAAJ,EACRK,kBAAAA,OAAoB,IAAHD,EAAG,GAAEA,EACtBE,EAAIN,EAAJM,KAOAC,EAA+BC,EAAiBH,GAAkBI,EAAAC,EAAAH,EAAA,GAA3DI,EAAUF,EAAA,GAAEG,EAAQH,EAAA,GACrBI,EAAgBC,EAAe,MAErCC,GAAU,WACRF,EAAcG,QAAUX,CAC1B,IAEA,IAAMY,EAAmBC,GAAQ,WAC/B,OAAKhB,EAIAC,EAIEgB,EAAShB,EAAUD,GAHjBkB,EAJAjB,CAQX,GAAG,CAACA,EAAUD,IAERmB,EAAiBC,GACrB,SAACC,GACC,IAAQC,EAAUD,EAAME,OAAhBD,MACFE,EAAapB,EAAOkB,EAAMlB,OAASkB,EACzCZ,EAASc,GACTT,EAAiBS,EAClB,GACD,CAACT,EAAkBL,EAAUN,IAGzBqB,EAAaL,GAAY,WAC7BV,EAAS,IACLT,GACFA,EAAS,GAEb,GAAG,CAACS,EAAUT,IAMd,OAJIE,IAAsBQ,EAAcG,SAAWX,IAAsBM,GACvEC,EAASP,GAGJ,CAAEM,WAAAA,EAAYU,eAAAA,EAAgBM,WAAAA,EAAYC,YAAahB,EAChE"}
@@ -1,2 +1,2 @@
1
- import{slicedToArray as e}from"../../_virtual/_rollupPluginBabelHelpers.js";import{useState as n,useCallback as t,useEffect as r}from"react";import{last as i}from"es-toolkit/compat";import o from"./useResizeObserver.js";function l(l){var c=l.ref,u=l.children,a=l.paddingSize,f=l.resizeDebounceTime,d=l.ignoreLast,s=n(null),h=e(s,2),m=h[0],g=h[1],p=t((function(e){g(e.borderBoxSize.inlineSize)}),[g]);o({ref:c,callback:p,debounceTime:f});var v=n([]),L=e(v,2),b=L[0],z=L[1],x=n(null),S=e(x,2),T=S[0],j=S[1];return r((function(){if(d)if(!b.slice(0,-1).find((function(e){return e.totalLength>m-a})))j(-1);else{var e=b.length>0?i(b).childLength:0;j(b.findIndex((function(n){return n.totalLength>m-a-e})))}else j(b.findIndex((function(e){return e.totalLength>m-a})))}),[b,m,j,a,d]),r((function(){if(c.current){var e=[],n=0;c.current.childNodes.forEach((function(t){var r=t.clientWidth;e.push({childLength:r,totalLength:n+=r})})),z(e)}}),[u,c,z]),T}export{l as default};
1
+ import{slicedToArray as e}from"../../_virtual/_rollupPluginBabelHelpers.js";import{useState as n,useCallback as r,useEffect as t}from"react";import{last as i}from"es-toolkit";import o from"./useResizeObserver.js";function l(l){var u=l.ref,c=l.children,f=l.paddingSize,a=l.resizeDebounceTime,d=l.ignoreLast,s=n(null),h=e(s,2),g=h[0],m=h[1],p=r((function(e){m(e.borderBoxSize.inlineSize)}),[m]);o({ref:u,callback:p,debounceTime:a});var v=n([]),L=e(v,2),b=L[0],z=L[1],x=n(null),S=e(x,2),T=S[0],j=S[1];return t((function(){if(d)if(!b.slice(0,-1).find((function(e){return e.totalLength>g-f})))j(-1);else{var e=b.length>0?i(b).childLength:0;j(b.findIndex((function(n){return n.totalLength>g-f-e})))}else j(b.findIndex((function(e){return e.totalLength>g-f})))}),[b,g,j,f,d]),t((function(){if(u.current){var e=[],n=0;u.current.childNodes.forEach((function(r){var t=r.clientWidth;e.push({childLength:t,totalLength:n+=t})})),z(e)}}),[c,u,z]),T}export{l as default};
2
2
  //# sourceMappingURL=useElementsOverflowingIndex.js.map