@itwin/core-react 4.15.4 → 4.16.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 (350) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/lib/cjs/core-react/UiCore.d.ts +1 -0
  3. package/lib/cjs/core-react/UiCore.d.ts.map +1 -1
  4. package/lib/cjs/core-react/UiCore.js +2 -0
  5. package/lib/cjs/core-react/UiCore.js.map +1 -1
  6. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +5 -3
  7. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  8. package/lib/cjs/core-react/autosuggest/AutoSuggest.js +1 -2
  9. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  10. package/lib/cjs/core-react/badge/Badge.d.ts +3 -2
  11. package/lib/cjs/core-react/badge/Badge.d.ts.map +1 -1
  12. package/lib/cjs/core-react/badge/Badge.js +5 -2
  13. package/lib/cjs/core-react/badge/Badge.js.map +1 -1
  14. package/lib/cjs/core-react/badge/BadgeType.d.ts +6 -0
  15. package/lib/cjs/core-react/badge/BadgeType.d.ts.map +1 -1
  16. package/lib/cjs/core-react/badge/BadgeType.js +2 -1
  17. package/lib/cjs/core-react/badge/BadgeType.js.map +1 -1
  18. package/lib/cjs/core-react/badge/DeprecatedBadge.d.ts +10 -0
  19. package/lib/cjs/core-react/badge/DeprecatedBadge.d.ts.map +1 -0
  20. package/lib/cjs/core-react/badge/DeprecatedBadge.js +29 -0
  21. package/lib/cjs/core-react/badge/DeprecatedBadge.js.map +1 -0
  22. package/lib/cjs/core-react/badge/DeprecatedBadge.scss +11 -0
  23. package/lib/cjs/core-react/badge/NewBadge.scss +4 -0
  24. package/lib/cjs/core-react/badge/TechnicalPreviewBadge.js +2 -2
  25. package/lib/cjs/core-react/badge/TechnicalPreviewBadge.js.map +1 -1
  26. package/lib/cjs/core-react/badge/TechnicalPreviewBadge.scss +4 -0
  27. package/lib/cjs/core-react/colorthemes.scss +0 -8
  28. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +3 -6
  29. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  30. package/lib/cjs/core-react/contextmenu/ContextMenu.js +2 -4
  31. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  32. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +5 -6
  33. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.d.ts +1 -3
  34. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.d.ts.map +1 -1
  35. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js +1 -7
  36. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  37. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts +2 -2
  38. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
  39. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js +3 -3
  40. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  41. package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts +8 -6
  42. package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
  43. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js +6 -7
  44. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  45. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +3 -4
  46. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  47. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +6 -5
  48. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  49. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts +2 -1
  50. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  51. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +1 -0
  52. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  53. package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts +2 -0
  54. package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
  55. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js +2 -3
  56. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  57. package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
  58. package/lib/cjs/core-react/elementseparator/ElementSeparator.js +0 -1
  59. package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
  60. package/lib/cjs/core-react/enums/CheckBoxState.d.ts +1 -0
  61. package/lib/cjs/core-react/enums/CheckBoxState.d.ts.map +1 -1
  62. package/lib/cjs/core-react/enums/CheckBoxState.js +1 -0
  63. package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
  64. package/lib/cjs/core-react/enums/Orientation.d.ts +1 -0
  65. package/lib/cjs/core-react/enums/Orientation.d.ts.map +1 -1
  66. package/lib/cjs/core-react/enums/Orientation.js +1 -0
  67. package/lib/cjs/core-react/enums/Orientation.js.map +1 -1
  68. package/lib/cjs/core-react/enums/TimeFormat.d.ts +1 -0
  69. package/lib/cjs/core-react/enums/TimeFormat.d.ts.map +1 -1
  70. package/lib/cjs/core-react/enums/TimeFormat.js +1 -0
  71. package/lib/cjs/core-react/enums/TimeFormat.js.map +1 -1
  72. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts.map +1 -1
  73. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  74. package/lib/cjs/core-react/focustrap/FocusTrap.js +1 -1
  75. package/lib/cjs/core-react/focustrap/FocusTrap.js.map +1 -1
  76. package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts +0 -2
  77. package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts.map +1 -1
  78. package/lib/cjs/core-react/hocs/withOnOutsideClick.js +0 -1
  79. package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
  80. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts +1 -0
  81. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts.map +1 -1
  82. package/lib/cjs/core-react/icons/ConditionalIconItem.js +2 -0
  83. package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +1 -1
  84. package/lib/cjs/core-react/icons/IconComponent.d.ts +3 -0
  85. package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
  86. package/lib/cjs/core-react/icons/IconComponent.js +1 -0
  87. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  88. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +0 -1
  89. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -1
  90. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js +0 -2
  91. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  92. package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
  93. package/lib/cjs/core-react/inputs/InputLabel.js +1 -8
  94. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  95. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  96. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  97. package/lib/cjs/core-react/l10n/LocalizationProvider.d.ts +1 -0
  98. package/lib/cjs/core-react/l10n/LocalizationProvider.d.ts.map +1 -1
  99. package/lib/cjs/core-react/l10n/LocalizationProvider.js +1 -0
  100. package/lib/cjs/core-react/l10n/LocalizationProvider.js.map +1 -1
  101. package/lib/cjs/core-react/l10n/useTranslation.d.ts.map +1 -1
  102. package/lib/cjs/core-react/l10n/useTranslation.js +1 -1
  103. package/lib/cjs/core-react/l10n/useTranslation.js.map +1 -1
  104. package/lib/cjs/core-react/listbox/Listbox.d.ts +10 -7
  105. package/lib/cjs/core-react/listbox/Listbox.d.ts.map +1 -1
  106. package/lib/cjs/core-react/listbox/Listbox.js +6 -3
  107. package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
  108. package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
  109. package/lib/cjs/core-react/messagebox/MessageBox.js +2 -9
  110. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  111. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +0 -2
  112. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  113. package/lib/cjs/core-react/radialmenu/RadialMenu.js +0 -2
  114. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  115. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +3 -3
  116. package/lib/cjs/core-react/searchbox/SearchBox.d.ts +0 -2
  117. package/lib/cjs/core-react/searchbox/SearchBox.d.ts.map +1 -1
  118. package/lib/cjs/core-react/searchbox/SearchBox.js +0 -2
  119. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  120. package/lib/cjs/core-react/settings/SettingsContainer.d.ts +7 -3
  121. package/lib/cjs/core-react/settings/SettingsContainer.d.ts.map +1 -1
  122. package/lib/cjs/core-react/settings/SettingsContainer.js +14 -19
  123. package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
  124. package/lib/cjs/core-react/settings/SettingsManager.d.ts +3 -1
  125. package/lib/cjs/core-react/settings/SettingsManager.d.ts.map +1 -1
  126. package/lib/cjs/core-react/settings/SettingsManager.js +6 -10
  127. package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
  128. package/lib/cjs/core-react/tabs/Tabs.d.ts +0 -3
  129. package/lib/cjs/core-react/tabs/Tabs.d.ts.map +1 -1
  130. package/lib/cjs/core-react/tabs/Tabs.js +0 -4
  131. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  132. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  133. package/lib/cjs/core-react/tree/ExpansionToggle.js +0 -1
  134. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  135. package/lib/cjs/core-react/tree/Node.d.ts +2 -0
  136. package/lib/cjs/core-react/tree/Node.d.ts.map +1 -1
  137. package/lib/cjs/core-react/tree/Node.js +1 -5
  138. package/lib/cjs/core-react/tree/Node.js.map +1 -1
  139. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +2 -2
  140. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts.map +1 -1
  141. package/lib/cjs/core-react/uistate/LocalStateStorage.js +3 -4
  142. package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -1
  143. package/lib/cjs/core-react/uistate/UiStateEntry.d.ts +1 -0
  144. package/lib/cjs/core-react/uistate/UiStateEntry.d.ts.map +1 -1
  145. package/lib/cjs/core-react/uistate/UiStateEntry.js +2 -0
  146. package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -1
  147. package/lib/cjs/core-react/uistate/UiStateStorage.d.ts +3 -0
  148. package/lib/cjs/core-react/uistate/UiStateStorage.d.ts.map +1 -1
  149. package/lib/cjs/core-react/uistate/UiStateStorage.js +1 -0
  150. package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -1
  151. package/lib/cjs/core-react/utils/IconWebComponent.d.ts.map +1 -1
  152. package/lib/cjs/core-react/utils/IconWebComponent.js +1 -3
  153. package/lib/cjs/core-react/utils/IconWebComponent.js.map +1 -1
  154. package/lib/cjs/core-react/utils/ListenerType.d.ts +15 -0
  155. package/lib/cjs/core-react/utils/ListenerType.d.ts.map +1 -0
  156. package/lib/cjs/core-react/utils/ListenerType.js +3 -0
  157. package/lib/cjs/core-react/utils/ListenerType.js.map +1 -0
  158. package/lib/cjs/core-react/utils/Rectangle.d.ts +1 -0
  159. package/lib/cjs/core-react/utils/Rectangle.d.ts.map +1 -1
  160. package/lib/cjs/core-react/utils/Rectangle.js.map +1 -1
  161. package/lib/cjs/core-react/utils/Size.d.ts +1 -0
  162. package/lib/cjs/core-react/utils/Size.d.ts.map +1 -1
  163. package/lib/cjs/core-react/utils/Size.js.map +1 -1
  164. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.d.ts +1 -0
  165. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +1 -1
  166. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +1 -0
  167. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  168. package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts +3 -2
  169. package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -1
  170. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +2 -1
  171. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  172. package/lib/cjs/core-react.d.ts +5 -0
  173. package/lib/cjs/core-react.d.ts.map +1 -1
  174. package/lib/cjs/core-react.js +10 -6
  175. package/lib/cjs/core-react.js.map +1 -1
  176. package/lib/esm/core-react/UiCore.d.ts +1 -0
  177. package/lib/esm/core-react/UiCore.d.ts.map +1 -1
  178. package/lib/esm/core-react/UiCore.js +2 -0
  179. package/lib/esm/core-react/UiCore.js.map +1 -1
  180. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +5 -3
  181. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  182. package/lib/esm/core-react/autosuggest/AutoSuggest.js +1 -2
  183. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  184. package/lib/esm/core-react/badge/Badge.d.ts +3 -2
  185. package/lib/esm/core-react/badge/Badge.d.ts.map +1 -1
  186. package/lib/esm/core-react/badge/Badge.js +5 -2
  187. package/lib/esm/core-react/badge/Badge.js.map +1 -1
  188. package/lib/esm/core-react/badge/BadgeType.d.ts +6 -0
  189. package/lib/esm/core-react/badge/BadgeType.d.ts.map +1 -1
  190. package/lib/esm/core-react/badge/BadgeType.js +2 -1
  191. package/lib/esm/core-react/badge/BadgeType.js.map +1 -1
  192. package/lib/esm/core-react/badge/DeprecatedBadge.d.ts +10 -0
  193. package/lib/esm/core-react/badge/DeprecatedBadge.d.ts.map +1 -0
  194. package/lib/esm/core-react/badge/DeprecatedBadge.js +25 -0
  195. package/lib/esm/core-react/badge/DeprecatedBadge.js.map +1 -0
  196. package/lib/esm/core-react/badge/DeprecatedBadge.scss +11 -0
  197. package/lib/esm/core-react/badge/NewBadge.scss +4 -0
  198. package/lib/esm/core-react/badge/TechnicalPreviewBadge.js +2 -2
  199. package/lib/esm/core-react/badge/TechnicalPreviewBadge.js.map +1 -1
  200. package/lib/esm/core-react/badge/TechnicalPreviewBadge.scss +4 -0
  201. package/lib/esm/core-react/colorthemes.scss +0 -8
  202. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +3 -6
  203. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  204. package/lib/esm/core-react/contextmenu/ContextMenu.js +2 -4
  205. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  206. package/lib/esm/core-react/contextmenu/ContextMenu.scss +5 -6
  207. package/lib/esm/core-react/contextmenu/ContextMenuDirection.d.ts +1 -3
  208. package/lib/esm/core-react/contextmenu/ContextMenuDirection.d.ts.map +1 -1
  209. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js +1 -7
  210. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  211. package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts +2 -2
  212. package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
  213. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js +3 -3
  214. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  215. package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts +8 -6
  216. package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
  217. package/lib/esm/core-react/contextmenu/ContextMenuItem.js +6 -7
  218. package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  219. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +3 -4
  220. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  221. package/lib/esm/core-react/contextmenu/ContextSubMenu.js +6 -5
  222. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  223. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts +2 -1
  224. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  225. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +1 -0
  226. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  227. package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts +2 -0
  228. package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
  229. package/lib/esm/core-react/contextmenu/PopupContextMenu.js +2 -3
  230. package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  231. package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
  232. package/lib/esm/core-react/elementseparator/ElementSeparator.js +0 -1
  233. package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
  234. package/lib/esm/core-react/enums/CheckBoxState.d.ts +1 -0
  235. package/lib/esm/core-react/enums/CheckBoxState.d.ts.map +1 -1
  236. package/lib/esm/core-react/enums/CheckBoxState.js +1 -0
  237. package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
  238. package/lib/esm/core-react/enums/Orientation.d.ts +1 -0
  239. package/lib/esm/core-react/enums/Orientation.d.ts.map +1 -1
  240. package/lib/esm/core-react/enums/Orientation.js +1 -0
  241. package/lib/esm/core-react/enums/Orientation.js.map +1 -1
  242. package/lib/esm/core-react/enums/TimeFormat.d.ts +1 -0
  243. package/lib/esm/core-react/enums/TimeFormat.d.ts.map +1 -1
  244. package/lib/esm/core-react/enums/TimeFormat.js +1 -0
  245. package/lib/esm/core-react/enums/TimeFormat.js.map +1 -1
  246. package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts.map +1 -1
  247. package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  248. package/lib/esm/core-react/focustrap/FocusTrap.js +1 -1
  249. package/lib/esm/core-react/focustrap/FocusTrap.js.map +1 -1
  250. package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts +0 -2
  251. package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts.map +1 -1
  252. package/lib/esm/core-react/hocs/withOnOutsideClick.js +0 -1
  253. package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
  254. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts +1 -0
  255. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts.map +1 -1
  256. package/lib/esm/core-react/icons/ConditionalIconItem.js +2 -0
  257. package/lib/esm/core-react/icons/ConditionalIconItem.js.map +1 -1
  258. package/lib/esm/core-react/icons/IconComponent.d.ts +3 -0
  259. package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
  260. package/lib/esm/core-react/icons/IconComponent.js +1 -0
  261. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  262. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +0 -1
  263. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -1
  264. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js +0 -2
  265. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  266. package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
  267. package/lib/esm/core-react/inputs/InputLabel.js +1 -8
  268. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  269. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  270. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  271. package/lib/esm/core-react/l10n/LocalizationProvider.d.ts +1 -0
  272. package/lib/esm/core-react/l10n/LocalizationProvider.d.ts.map +1 -1
  273. package/lib/esm/core-react/l10n/LocalizationProvider.js +1 -0
  274. package/lib/esm/core-react/l10n/LocalizationProvider.js.map +1 -1
  275. package/lib/esm/core-react/l10n/useTranslation.d.ts.map +1 -1
  276. package/lib/esm/core-react/l10n/useTranslation.js +1 -1
  277. package/lib/esm/core-react/l10n/useTranslation.js.map +1 -1
  278. package/lib/esm/core-react/listbox/Listbox.d.ts +10 -7
  279. package/lib/esm/core-react/listbox/Listbox.d.ts.map +1 -1
  280. package/lib/esm/core-react/listbox/Listbox.js +6 -3
  281. package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
  282. package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
  283. package/lib/esm/core-react/messagebox/MessageBox.js +2 -9
  284. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  285. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +0 -2
  286. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  287. package/lib/esm/core-react/radialmenu/RadialMenu.js +0 -2
  288. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  289. package/lib/esm/core-react/radialmenu/RadialMenu.scss +3 -3
  290. package/lib/esm/core-react/searchbox/SearchBox.d.ts +0 -2
  291. package/lib/esm/core-react/searchbox/SearchBox.d.ts.map +1 -1
  292. package/lib/esm/core-react/searchbox/SearchBox.js +0 -2
  293. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  294. package/lib/esm/core-react/settings/SettingsContainer.d.ts +7 -3
  295. package/lib/esm/core-react/settings/SettingsContainer.d.ts.map +1 -1
  296. package/lib/esm/core-react/settings/SettingsContainer.js +14 -19
  297. package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
  298. package/lib/esm/core-react/settings/SettingsManager.d.ts +3 -1
  299. package/lib/esm/core-react/settings/SettingsManager.d.ts.map +1 -1
  300. package/lib/esm/core-react/settings/SettingsManager.js +6 -10
  301. package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
  302. package/lib/esm/core-react/tabs/Tabs.d.ts +0 -3
  303. package/lib/esm/core-react/tabs/Tabs.d.ts.map +1 -1
  304. package/lib/esm/core-react/tabs/Tabs.js +0 -4
  305. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  306. package/lib/esm/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  307. package/lib/esm/core-react/tree/ExpansionToggle.js +0 -1
  308. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  309. package/lib/esm/core-react/tree/Node.d.ts +2 -0
  310. package/lib/esm/core-react/tree/Node.d.ts.map +1 -1
  311. package/lib/esm/core-react/tree/Node.js +1 -5
  312. package/lib/esm/core-react/tree/Node.js.map +1 -1
  313. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +2 -2
  314. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts.map +1 -1
  315. package/lib/esm/core-react/uistate/LocalStateStorage.js +3 -4
  316. package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -1
  317. package/lib/esm/core-react/uistate/UiStateEntry.d.ts +1 -0
  318. package/lib/esm/core-react/uistate/UiStateEntry.d.ts.map +1 -1
  319. package/lib/esm/core-react/uistate/UiStateEntry.js +2 -0
  320. package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -1
  321. package/lib/esm/core-react/uistate/UiStateStorage.d.ts +3 -0
  322. package/lib/esm/core-react/uistate/UiStateStorage.d.ts.map +1 -1
  323. package/lib/esm/core-react/uistate/UiStateStorage.js +1 -0
  324. package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -1
  325. package/lib/esm/core-react/utils/IconWebComponent.d.ts.map +1 -1
  326. package/lib/esm/core-react/utils/IconWebComponent.js +1 -3
  327. package/lib/esm/core-react/utils/IconWebComponent.js.map +1 -1
  328. package/lib/esm/core-react/utils/ListenerType.d.ts +15 -0
  329. package/lib/esm/core-react/utils/ListenerType.d.ts.map +1 -0
  330. package/lib/esm/core-react/utils/ListenerType.js +2 -0
  331. package/lib/esm/core-react/utils/ListenerType.js.map +1 -0
  332. package/lib/esm/core-react/utils/Rectangle.d.ts +1 -0
  333. package/lib/esm/core-react/utils/Rectangle.d.ts.map +1 -1
  334. package/lib/esm/core-react/utils/Rectangle.js.map +1 -1
  335. package/lib/esm/core-react/utils/Size.d.ts +1 -0
  336. package/lib/esm/core-react/utils/Size.d.ts.map +1 -1
  337. package/lib/esm/core-react/utils/Size.js.map +1 -1
  338. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts +1 -0
  339. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +1 -1
  340. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +1 -0
  341. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  342. package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts +3 -2
  343. package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -1
  344. package/lib/esm/core-react/utils/hooks/useResizeObserver.js +2 -1
  345. package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  346. package/lib/esm/core-react.d.ts +5 -0
  347. package/lib/esm/core-react.d.ts.map +1 -1
  348. package/lib/esm/core-react.js +6 -2
  349. package/lib/esm/core-react.js.map +1 -1
  350. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useResizeObserver.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useResizeObserver.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAkD;IAElD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IACrD,MAAM,cAAc,GAAG,KAAK,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------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\nimport * as React from \"react\";\nimport { getResizeObserver } from \"./ResizeObserverPolyfill\";\nimport { useRefEffect } from \"./useRefEffect\";\nimport { useRefs } from \"./useRefs\";\n\n/** Uses ResizeObserver API to notify about element bound changes.\n * @internal\n */\nexport function useResizeObserver<T extends Element>(\n onResize?: (width: number, height: number) => void\n) {\n const bounds = React.useRef({ width: 0, height: 0 });\n const resizeObserver = React.useRef<ResizeObserver | null>(null);\n const rafRef = React.useRef(0); // set to non-zero when requestAnimationFrame processing is active\n const isMountedRef = React.useRef(false);\n const owningWindowRef = React.useRef<any>(null);\n\n const resizeObserverCleanup = () => {\n if (rafRef.current)\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n\n resizeObserver.current?.disconnect();\n resizeObserver.current = null;\n };\n\n React.useEffect(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n if (rafRef.current)\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n owningWindowRef.current?.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n };\n }, []);\n\n const processResize = React.useCallback(\n (target: HTMLElement) => {\n const newBounds = target.getBoundingClientRect();\n if (\n isMountedRef.current &&\n (bounds.current.width !== newBounds.width ||\n bounds.current.height !== newBounds.height)\n ) {\n bounds.current = newBounds;\n onResize && onResize(newBounds.width, newBounds.height);\n }\n },\n [onResize]\n );\n\n const handleResize = React.useCallback(\n (entries: any[]) => {\n if (\n !isMountedRef.current ||\n !Array.isArray(entries) ||\n 0 === entries.length\n ) {\n return;\n }\n const target = entries[0].target as HTMLElement;\n owningWindowRef.current &&\n owningWindowRef.current.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n\n owningWindowRef.current = target.ownerDocument.defaultView;\n if (owningWindowRef.current) {\n owningWindowRef.current.addEventListener(\n \"unload\",\n resizeObserverCleanup\n );\n\n // using requestAnimationFrame to stop the \"ResizeObserver loop completed with undelivered notifications.\" and\n // \"ResizeObserver loop limit exceeded\" messages reported to window.onError\n rafRef.current = owningWindowRef.current.requestAnimationFrame(() =>\n processResize(target)\n );\n }\n },\n [processResize]\n );\n\n const observerRef = useRefEffect(\n (instance: T | null) => {\n const RO = getResizeObserver();\n resizeObserver.current = new RO(handleResize);\n if (instance) {\n resizeObserver.current.observe(instance);\n const newBounds = instance.getBoundingClientRect();\n onResize && onResize(newBounds.width, newBounds.height);\n bounds.current = newBounds;\n }\n\n return () => {\n instance && resizeObserver.current?.unobserve(instance);\n resizeObserver.current = null;\n };\n },\n [handleResize, onResize]\n );\n\n const handleRef = React.useCallback(\n (instance: Element | null) => {\n const newBounds = instance && instance.getBoundingClientRect();\n if (\n newBounds &&\n (bounds.current.width !== newBounds.width ||\n bounds.current.height !== newBounds.height)\n ) {\n bounds.current = newBounds;\n onResize && onResize(newBounds.width, newBounds.height);\n }\n },\n [onResize]\n );\n\n const ref = useRefs(handleRef, observerRef);\n return ref;\n}\n\n/** React hook that uses ResizeObserver API to notify about element bound changes. Note: to work similar to ReactResizeDetector\n * width and height are initialized as undefined and only set during after mount if bounds are non-zero. This implementation properly\n * handles observing element in pop-out/child windows.\n * @internal\n */\nexport function useLayoutResizeObserver(\n inElement: HTMLElement | null,\n onResize?: (width?: number, height?: number) => void\n) {\n const inBoundingRect = inElement?.getBoundingClientRect();\n const [bounds, setBounds] = React.useState<{\n width?: number;\n height?: number;\n }>({ width: inBoundingRect?.width, height: inBoundingRect?.height });\n const [watchedElement, setWatchedElement] = React.useState(inElement);\n const resizeObserver = React.useRef<ResizeObserver | null>(null);\n const rafRef = React.useRef(0); // set to non-zero when requestAnimationFrame processing is active\n const isMountedRef = React.useRef(false);\n const owningWindowRef = React.useRef<any>(null);\n\n const resizeObserverCleanup = () => {\n if (rafRef.current)\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n\n resizeObserver.current?.disconnect();\n resizeObserver.current = null;\n };\n\n React.useEffect(() => {\n isMountedRef.current = true;\n setWatchedElement(inElement);\n\n if (inElement) {\n const newBounds = inElement.getBoundingClientRect();\n onResize && onResize(newBounds.width, newBounds.height);\n setBounds(newBounds);\n }\n\n return () => {\n isMountedRef.current = false;\n rafRef.current &&\n owningWindowRef.current &&\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n owningWindowRef.current &&\n owningWindowRef.current.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n };\n }, [onResize, inElement]);\n\n const processResize = React.useCallback(\n (target: HTMLElement) => {\n const newBounds = target.getBoundingClientRect();\n if (\n isMountedRef.current &&\n (bounds.width !== newBounds.width || bounds.height !== newBounds.height)\n ) {\n onResize && onResize(newBounds.width, newBounds.height);\n setBounds(newBounds);\n }\n },\n [bounds.height, bounds.width, onResize]\n );\n\n const handleResize = React.useCallback(\n (entries: any[]) => {\n if (\n !isMountedRef.current ||\n !Array.isArray(entries) ||\n 0 === entries.length\n ) {\n return;\n }\n const target = entries[0].target as HTMLElement;\n if (owningWindowRef.current)\n owningWindowRef.current.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n\n owningWindowRef.current = target.ownerDocument.defaultView;\n if (owningWindowRef.current) {\n owningWindowRef.current.addEventListener(\n \"unload\",\n resizeObserverCleanup\n );\n\n // using requestAnimationFrame to stop the \"ResizeObserver loop completed with undelivered notifications.\" and\n // \"ResizeObserver loop limit exceeded\" messages reported to window.onError\n rafRef.current = owningWindowRef.current.requestAnimationFrame(() =>\n processResize(target)\n );\n }\n },\n [processResize]\n );\n\n React.useLayoutEffect(() => {\n if (!watchedElement) {\n return;\n }\n const RO = getResizeObserver();\n resizeObserver.current = new RO(handleResize);\n resizeObserver.current.observe(watchedElement);\n return () => {\n resizeObserver.current?.disconnect();\n resizeObserver.current = null;\n };\n }, [handleResize, watchedElement]);\n\n return [bounds.width, bounds.height];\n}\n\n/** Prop the ElementResizeObserver sends to the render function.\n * @public\n */\nexport interface RenderPropsArgs {\n width?: number;\n height?: number;\n}\n\n/** ElementResizeObserver provides functionality similar to ReactResizeDetector when a render function is specified. This implementation properly handles\n * observing element in pop-out/child windows.\n * @public\n * @deprecated in 4.15.0. Used internally.\n */\nexport function ElementResizeObserver({\n watchedElement,\n render,\n}: {\n watchedElement: HTMLElement | null;\n render: (props: RenderPropsArgs) => React.ReactElement;\n}) {\n const [width, height] = useLayoutResizeObserver(watchedElement);\n return render({ width, height });\n}\n\n/** ResizableContainerObserver is a component that provides the functionality similar to the ReactResizeDetector option that call a function when\n * the observed element is resized. This implementation properly handles observing element in pop-out/child windows. If children nodes are defined then\n * the div added by the component is considered the container whose size will be observed. If no children are provided then the component will report\n * size changes from its parent container.\n * @public\n * @deprecated in 4.15.0. Please use third party packages.\n */\nexport function ResizableContainerObserver({\n onResize,\n children,\n}: {\n onResize: (width: number, height: number) => void;\n children?: React.ReactNode;\n}) {\n const containerRef = React.useRef<HTMLDivElement>(null); // set to non-zero when requestAnimationFrame processing is active\n const [containerElement, setContainerElement] =\n React.useState<HTMLElement | null>(null);\n const isMountedRef = React.useRef(false);\n const hasChildren = React.Children.count(children) !== 0;\n\n // if no children are specified then monitor size of parent element.\n React.useEffect(() => {\n if (!isMountedRef.current && containerRef.current) {\n isMountedRef.current = true;\n const hasParent = !!containerRef.current.parentElement;\n setContainerElement(\n hasChildren && hasParent\n ? containerRef.current\n : containerRef.current.parentElement\n );\n }\n }, [hasChildren]);\n\n const processResize = React.useCallback(\n (width?: number, height?: number) => {\n onResize(width ?? 0, height ?? 0);\n },\n [onResize]\n );\n\n useLayoutResizeObserver(containerElement, processResize);\n const style: React.CSSProperties = hasChildren\n ? { width: \"100%\", height: \"100%\" }\n : { display: \"none\" };\n\n return (\n <div\n ref={containerRef}\n className=\"uicore-resizable-container\"\n style={style}\n >\n {hasChildren && children}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"useResizeObserver.js","sourceRoot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E,EAAE;QAClC,QAAQ,CAAC,KAAK,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;IACpC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,uBAAuB,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;IACzD,MAAM,KAAK,GAAwB,WAAW;QAC5C,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;QACnC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAExB,OAAO,CACL,6BACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAC,4BAA4B,EACtC,KAAK,EAAE,KAAK,IAEX,WAAW,IAAI,QAAQ,CACpB,CACP,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\nimport * as React from \"react\";\nimport { getResizeObserver } from \"./ResizeObserverPolyfill\";\nimport { useRefEffect } from \"./useRefEffect\";\nimport { useRefs } from \"./useRefs\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Uses ResizeObserver API to notify about element bound changes.\n * @internal\n */\nexport function useResizeObserver<T extends Element>(\n onResize?: (width: number, height: number) => void\n) {\n const bounds = React.useRef({ width: 0, height: 0 });\n const resizeObserver = React.useRef<ResizeObserver | null>(null);\n const rafRef = React.useRef(0); // set to non-zero when requestAnimationFrame processing is active\n const isMountedRef = React.useRef(false);\n const owningWindowRef = React.useRef<any>(null);\n\n const resizeObserverCleanup = () => {\n if (rafRef.current)\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n\n resizeObserver.current?.disconnect();\n resizeObserver.current = null;\n };\n\n React.useEffect(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n if (rafRef.current)\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n owningWindowRef.current?.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n };\n }, []);\n\n const processResize = React.useCallback(\n (target: HTMLElement) => {\n const newBounds = target.getBoundingClientRect();\n if (\n isMountedRef.current &&\n (bounds.current.width !== newBounds.width ||\n bounds.current.height !== newBounds.height)\n ) {\n bounds.current = newBounds;\n onResize && onResize(newBounds.width, newBounds.height);\n }\n },\n [onResize]\n );\n\n const handleResize = React.useCallback(\n (entries: any[]) => {\n if (\n !isMountedRef.current ||\n !Array.isArray(entries) ||\n 0 === entries.length\n ) {\n return;\n }\n const target = entries[0].target as HTMLElement;\n owningWindowRef.current &&\n owningWindowRef.current.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n\n owningWindowRef.current = target.ownerDocument.defaultView;\n if (owningWindowRef.current) {\n owningWindowRef.current.addEventListener(\n \"unload\",\n resizeObserverCleanup\n );\n\n // using requestAnimationFrame to stop the \"ResizeObserver loop completed with undelivered notifications.\" and\n // \"ResizeObserver loop limit exceeded\" messages reported to window.onError\n rafRef.current = owningWindowRef.current.requestAnimationFrame(() =>\n processResize(target)\n );\n }\n },\n [processResize]\n );\n\n const observerRef = useRefEffect(\n (instance: T | null) => {\n const RO = getResizeObserver();\n resizeObserver.current = new RO(handleResize);\n if (instance) {\n resizeObserver.current.observe(instance);\n const newBounds = instance.getBoundingClientRect();\n onResize && onResize(newBounds.width, newBounds.height);\n bounds.current = newBounds;\n }\n\n return () => {\n instance && resizeObserver.current?.unobserve(instance);\n resizeObserver.current = null;\n };\n },\n [handleResize, onResize]\n );\n\n const handleRef = React.useCallback(\n (instance: Element | null) => {\n const newBounds = instance && instance.getBoundingClientRect();\n if (\n newBounds &&\n (bounds.current.width !== newBounds.width ||\n bounds.current.height !== newBounds.height)\n ) {\n bounds.current = newBounds;\n onResize && onResize(newBounds.width, newBounds.height);\n }\n },\n [onResize]\n );\n\n const ref = useRefs(handleRef, observerRef);\n return ref;\n}\n\n/** React hook that uses ResizeObserver API to notify about element bound changes. Note: to work similar to ReactResizeDetector\n * width and height are initialized as undefined and only set during after mount if bounds are non-zero. This implementation properly\n * handles observing element in pop-out/child windows.\n * @internal\n */\nexport function useLayoutResizeObserver(\n inElement: HTMLElement | null,\n onResize?: (width?: number, height?: number) => void\n) {\n const inBoundingRect = inElement?.getBoundingClientRect();\n const [bounds, setBounds] = React.useState<{\n width?: number;\n height?: number;\n }>({ width: inBoundingRect?.width, height: inBoundingRect?.height });\n const [watchedElement, setWatchedElement] = React.useState(inElement);\n const resizeObserver = React.useRef<ResizeObserver | null>(null);\n const rafRef = React.useRef(0); // set to non-zero when requestAnimationFrame processing is active\n const isMountedRef = React.useRef(false);\n const owningWindowRef = React.useRef<any>(null);\n\n const resizeObserverCleanup = () => {\n if (rafRef.current)\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n\n resizeObserver.current?.disconnect();\n resizeObserver.current = null;\n };\n\n React.useEffect(() => {\n isMountedRef.current = true;\n setWatchedElement(inElement);\n\n if (inElement) {\n const newBounds = inElement.getBoundingClientRect();\n onResize && onResize(newBounds.width, newBounds.height);\n setBounds(newBounds);\n }\n\n return () => {\n isMountedRef.current = false;\n rafRef.current &&\n owningWindowRef.current &&\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n owningWindowRef.current &&\n owningWindowRef.current.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n };\n }, [onResize, inElement]);\n\n const processResize = React.useCallback(\n (target: HTMLElement) => {\n const newBounds = target.getBoundingClientRect();\n if (\n isMountedRef.current &&\n (bounds.width !== newBounds.width || bounds.height !== newBounds.height)\n ) {\n onResize && onResize(newBounds.width, newBounds.height);\n setBounds(newBounds);\n }\n },\n [bounds.height, bounds.width, onResize]\n );\n\n const handleResize = React.useCallback(\n (entries: any[]) => {\n if (\n !isMountedRef.current ||\n !Array.isArray(entries) ||\n 0 === entries.length\n ) {\n return;\n }\n const target = entries[0].target as HTMLElement;\n if (owningWindowRef.current)\n owningWindowRef.current.removeEventListener(\n \"beforeunload\",\n resizeObserverCleanup\n );\n\n owningWindowRef.current = target.ownerDocument.defaultView;\n if (owningWindowRef.current) {\n owningWindowRef.current.addEventListener(\n \"unload\",\n resizeObserverCleanup\n );\n\n // using requestAnimationFrame to stop the \"ResizeObserver loop completed with undelivered notifications.\" and\n // \"ResizeObserver loop limit exceeded\" messages reported to window.onError\n rafRef.current = owningWindowRef.current.requestAnimationFrame(() =>\n processResize(target)\n );\n }\n },\n [processResize]\n );\n\n React.useLayoutEffect(() => {\n if (!watchedElement) {\n return;\n }\n const RO = getResizeObserver();\n resizeObserver.current = new RO(handleResize);\n resizeObserver.current.observe(watchedElement);\n return () => {\n resizeObserver.current?.disconnect();\n resizeObserver.current = null;\n };\n }, [handleResize, watchedElement]);\n\n return [bounds.width, bounds.height];\n}\n\n/** Prop the ElementResizeObserver sends to the render function.\n * @public\n * @deprecated in 4.16.0. Interface used in a deprecated component {@link ElementResizeObserver}.\n */\nexport interface RenderPropsArgs {\n width?: number;\n height?: number;\n}\n\n/** ElementResizeObserver provides functionality similar to ReactResizeDetector when a render function is specified. This implementation properly handles\n * observing element in pop-out/child windows.\n * @public\n * @deprecated in 4.15.0. Used internally.\n */\nexport function ElementResizeObserver({\n watchedElement,\n render,\n}: {\n watchedElement: HTMLElement | null;\n render: (props: RenderPropsArgs) => React.ReactElement;\n}) {\n const [width, height] = useLayoutResizeObserver(watchedElement);\n return render({ width, height });\n}\n\n/** ResizableContainerObserver is a component that provides the functionality similar to the ReactResizeDetector option that call a function when\n * the observed element is resized. This implementation properly handles observing element in pop-out/child windows. If children nodes are defined then\n * the div added by the component is considered the container whose size will be observed. If no children are provided then the component will report\n * size changes from its parent container.\n * @public\n * @deprecated in 4.15.0. Please use third party packages.\n */\nexport function ResizableContainerObserver({\n onResize,\n children,\n}: {\n onResize: (width: number, height: number) => void;\n children?: React.ReactNode;\n}) {\n const containerRef = React.useRef<HTMLDivElement>(null); // set to non-zero when requestAnimationFrame processing is active\n const [containerElement, setContainerElement] =\n React.useState<HTMLElement | null>(null);\n const isMountedRef = React.useRef(false);\n const hasChildren = React.Children.count(children) !== 0;\n\n // if no children are specified then monitor size of parent element.\n React.useEffect(() => {\n if (!isMountedRef.current && containerRef.current) {\n isMountedRef.current = true;\n const hasParent = !!containerRef.current.parentElement;\n setContainerElement(\n hasChildren && hasParent\n ? containerRef.current\n : containerRef.current.parentElement\n );\n }\n }, [hasChildren]);\n\n const processResize = React.useCallback(\n (width?: number, height?: number) => {\n onResize(width ?? 0, height ?? 0);\n },\n [onResize]\n );\n\n useLayoutResizeObserver(containerElement, processResize);\n const style: React.CSSProperties = hasChildren\n ? { width: \"100%\", height: \"100%\" }\n : { display: \"none\" };\n\n return (\n <div\n ref={containerRef}\n className=\"uicore-resizable-container\"\n style={style}\n >\n {hasChildren && children}\n </div>\n );\n}\n"]}
@@ -91,6 +91,7 @@ export * from "./core-react/utils/getUserColor";
91
91
  export * from "./core-react/utils/shallowDiffers";
92
92
  export * from "./core-react/utils/typeUtils";
93
93
  export * from "./core-react/utils/isPromiseLike";
94
+ export * from "./core-react/utils/ListenerType";
94
95
  export * from "./core-react/utils/ScrollPositionMaintainer";
95
96
  export * from "./core-react/utils/getObjectClassName";
96
97
  export * from "./core-react/utils/hooks/useDisposable";
@@ -162,6 +163,10 @@ export * from "./core-react/utils/hooks/useCrossOriginPopup";
162
163
  * @docs-group-description Inputs
163
164
  * Components for working with input controls, such as Input, IconInput and NumberInput.
164
165
  */
166
+ /**
167
+ * @docs-group-description Listbox
168
+ * Components for working with a Listbox.
169
+ */
165
170
  /**
166
171
  * @docs-group-description Loading
167
172
  * Components for working with Loading spinners and progress indicators and bars.
@@ -1 +1 @@
1
- {"version":3,"file":"core-react.d.ts","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,uBAAuB,C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AAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AAEtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAI7D;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
1
+ {"version":3,"file":"core-react.d.ts","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8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
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
+ /* eslint-disable deprecation/deprecation */
5
6
  export * from "./core-react/UiCore";
6
7
  export * from "./core-react/badge/Badge";
7
8
  export * from "./core-react/badge/BadgeType";
@@ -72,13 +73,11 @@ export * from "./core-react/text/FilteredText";
72
73
  export * from "./core-react/text/MutedText";
73
74
  export * from "./core-react/text/StyledText";
74
75
  export * from "./core-react/text/TextProps";
75
- /* eslint-disable deprecation/deprecation */
76
76
  export { ExpansionToggle, } from "./core-react/tree/ExpansionToggle";
77
77
  export { TreeBranch } from "./core-react/tree/Branch";
78
78
  export { TreeNode, } from "./core-react/tree/Node";
79
79
  export { Tree } from "./core-react/tree/Tree";
80
80
  export { TreeNodePlaceholder, } from "./core-react/tree/Placeholder";
81
- /* eslint-enable deprecation/deprecation */
82
81
  export * from "./core-react/uistate/UiStateEntry";
83
82
  export * from "./core-react/uistate/UiStateStorage";
84
83
  export * from "./core-react/uistate/LocalStateStorage";
@@ -98,6 +97,7 @@ export * from "./core-react/utils/getUserColor";
98
97
  export * from "./core-react/utils/shallowDiffers";
99
98
  export * from "./core-react/utils/typeUtils";
100
99
  export * from "./core-react/utils/isPromiseLike";
100
+ export * from "./core-react/utils/ListenerType";
101
101
  export * from "./core-react/utils/ScrollPositionMaintainer";
102
102
  export * from "./core-react/utils/getObjectClassName";
103
103
  export * from "./core-react/utils/hooks/useDisposable";
@@ -170,6 +170,10 @@ registerIconWebComponent();
170
170
  * @docs-group-description Inputs
171
171
  * Components for working with input controls, such as Input, IconInput and NumberInput.
172
172
  */
173
+ /**
174
+ * @docs-group-description Listbox
175
+ * Components for working with a Listbox.
176
+ */
173
177
  /**
174
178
  * @docs-group-description Loading
175
179
  * Components for working with Loading spinners and progress indicators and bars.
@@ -1 +1 @@
1
- {"version":3,"file":"core-react.js","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,cAAc,qBA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A8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AAEtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAE7D,wBAAwB,EAAE,CAAC;AAE3B;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\nexport * from \"./core-react/UiCore\";\n\nexport * from \"./core-react/badge/Badge\";\nexport * from \"./core-react/badge/BadgeType\";\n\nexport * from \"./core-react/base/Div\";\nexport * from \"./core-react/base/DivWithOutsideClick\";\nexport * from \"./core-react/base/Centered\";\nexport * from \"./core-react/base/FillCentered\";\nexport * from \"./core-react/base/FlexWrapContainer\";\nexport * from \"./core-react/base/Gap\";\nexport * from \"./core-react/base/PointerEvents\";\nexport * from \"./core-react/base/ScrollView\";\n\nexport * from \"./core-react/button/UnderlinedButton\";\n\nexport * from \"./core-react/checklistbox/CheckListBox\";\n\nexport * from \"./core-react/contextmenu/ContextMenu\";\nexport * from \"./core-react/contextmenu/ContextMenuDirection\";\nexport * from \"./core-react/contextmenu/ContextMenuDivider\";\nexport * from \"./core-react/contextmenu/ContextMenuItem\";\nexport * from \"./core-react/contextmenu/ContextSubMenu\";\nexport * from \"./core-react/contextmenu/GlobalContextMenu\";\nexport * from \"./core-react/contextmenu/PopupContextMenu\";\n\nexport * from \"./core-react/dialog/Dialog\";\nexport * from \"./core-react/dialog/GlobalDialog\";\n\nexport * from \"./core-react/elementseparator/ElementSeparator\";\n\nexport * from \"./core-react/enums/Alignment\";\nexport * from \"./core-react/enums/CheckBoxState\";\nexport * from \"./core-react/enums/Orientation\";\nexport * from \"./core-react/enums/SortDirection\";\nexport * from \"./core-react/enums/TimeFormat\";\n\nexport * from \"./core-react/expandable/ExpandableList\";\n\nexport * from \"./core-react/focus/ItemKeyboardNavigator\";\nexport * from \"./core-react/focustrap/FocusTrap\";\n\nexport * from \"./core-react/hocs/withIsPressed\";\nexport * from \"./core-react/hocs/withOnOutsideClick\";\nexport * from \"./core-react/hocs/withTimeout\";\n\nexport { LocalizationProvider } from \"./core-react/l10n/LocalizationProvider\";\nexport { usePackageTranslation } from \"./core-react/l10n/usePackageTranslation\";\n\nexport * from \"./core-react/icons/ConditionalIconItem\";\nexport * from \"./core-react/icons/IconComponent\";\nexport * from \"./core-react/icons/SvgPath\";\nexport * from \"./core-react/icons/WebFontIcon\";\n\nexport * from \"./core-react/autosuggest/AutoSuggest\";\n\nexport * from \"./core-react/imagecheckbox/ImageCheckBox\";\n\nexport * from \"./core-react/inputs/InputLabel\";\nexport * from \"./core-react/inputs/InputStatus\";\nexport * from \"./core-react/inputs/iconinput/IconInput\";\nexport * from \"./core-react/inputs/LabeledComponentProps\";\nexport * from \"./core-react/inputs/numberinput/NumberInput\";\n\nexport * from \"./core-react/listbox/Listbox\";\n\nexport * from \"./core-react/loading/LoadingBar\";\nexport * from \"./core-react/loading/LoadingPrompt\";\nexport * from \"./core-react/loading/LoadingSpinner\";\nexport * from \"./core-react/loading/LoadingStatus\";\n\nexport * from \"./core-react/messagebox/MessageBox\";\n\nexport * from \"./core-react/notification/MessageRenderer\";\nexport * from \"./core-react/notification/MessageType\";\n\nexport * from \"./core-react/popup/Popup\";\n\nexport * from \"./core-react/radialmenu/RadialMenu\";\nexport * from \"./core-react/radialmenu/Annulus\";\n\nexport * from \"./core-react/searchbox/SearchBox\";\n\nexport * from \"./core-react/settings/SettingsManager\";\nexport * from \"./core-react/settings/SettingsContainer\";\n\nexport * from \"./core-react/tabs/VerticalTabs\";\nexport * from \"./core-react/tabs/Tabs\";\n\nexport * from \"./core-react/text/BodyText\";\nexport * from \"./core-react/text/BlockText\";\nexport * from \"./core-react/text/DisabledText\";\nexport * from \"./core-react/text/FilteredText\";\nexport * from \"./core-react/text/MutedText\";\nexport * from \"./core-react/text/StyledText\";\nexport * from \"./core-react/text/TextProps\";\n\n/* eslint-disable deprecation/deprecation */\n\nexport {\n ExpansionToggle,\n ExpansionToggleProps,\n} from \"./core-react/tree/ExpansionToggle\";\nexport { TreeBranch, TreeBranchProps } from \"./core-react/tree/Branch\";\nexport {\n TreeNode,\n TreeNodeProps,\n NodeCheckboxProps,\n NodeCheckboxRenderer,\n NodeCheckboxRenderProps,\n} from \"./core-react/tree/Node\";\nexport { Tree, TreeProps } from \"./core-react/tree/Tree\";\nexport {\n TreeNodePlaceholder,\n TreeNodePlaceholderProps,\n} from \"./core-react/tree/Placeholder\";\n\n/* eslint-enable deprecation/deprecation */\n\nexport * from \"./core-react/uistate/UiStateEntry\";\nexport * from \"./core-react/uistate/UiStateStorage\";\nexport * from \"./core-react/uistate/LocalStateStorage\";\n\nexport * from \"./core-react/utils/IconHelper\";\nimport { registerIconWebComponent } from \"./core-react/utils/IconWebComponent\";\nexport * from \"./core-react/utils/Point\";\nexport * from \"./core-react/utils/Props\";\nexport * from \"./core-react/utils/Rectangle\";\nexport * from \"./core-react/utils/Size\";\nexport * from \"./core-react/utils/Timer\";\nexport * from \"./core-react/utils/UiGeometry\";\nexport * from \"./core-react/utils/flattenChildren\";\nexport * from \"./core-react/utils/getBestBWContrastColor\";\nexport * from \"./core-react/utils/getCssVariable\";\nexport * from \"./core-react/utils/getDisplayName\";\nexport * from \"./core-react/utils/getUserColor\";\nexport * from \"./core-react/utils/shallowDiffers\";\nexport * from \"./core-react/utils/typeUtils\";\nexport * from \"./core-react/utils/isPromiseLike\";\nexport * from \"./core-react/utils/ScrollPositionMaintainer\";\nexport * from \"./core-react/utils/getObjectClassName\";\n\nexport * from \"./core-react/utils/hooks/useDisposable\";\nexport * from \"./core-react/utils/hooks/useEffectSkipFirst\";\nexport * from \"./core-react/utils/hooks/useEventListener\";\nexport * from \"./core-react/utils/hooks/ResizeObserverPolyfill\";\nexport * from \"./core-react/utils/hooks/useOnOutsideClick\";\nexport * from \"./core-react/utils/hooks/useProximityToMouse\";\nexport * from \"./core-react/utils/hooks/useRefEffect\";\nexport * from \"./core-react/utils/hooks/useRefs\";\nexport * from \"./core-react/utils/hooks/useRefState\";\nexport * from \"./core-react/utils/hooks/useResizeObserver\";\nexport * from \"./core-react/utils/hooks/useTargeted\";\nexport * from \"./core-react/utils/hooks/useWidgetOpacityContext\";\nexport * from \"./core-react/utils/hooks/useInterval\";\nexport * from \"./core-react/utils/hooks/useCrossOriginPopup\";\n\nregisterIconWebComponent();\n\n/** @docs-package-description\n * The core-react package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\n */\n/**\n * @docs-group-description AutoSuggest\n * Component for input with an auto-suggestion dropdown.\n */\n/**\n * @docs-group-description Base\n * Low-level classes and components for building application UI.\n */\n/**\n * @docs-group-description Button\n * Components for working with various Buttons.\n */\n/**\n * @docs-group-description Checkbox\n * Component is a wrapper for the `<input type=\"checkbox\">` HTML element.\n */\n/**\n * @docs-group-description CheckListBox\n * Components for working with a Check listbox.\n */\n/**\n * @docs-group-description Common\n * Common classes and enums used across various UI components.\n */\n/**\n * @docs-group-description ContextMenu\n * Components for working with a Context Menu.\n */\n/**\n * @docs-group-description Dialog\n * Components for working with a Dialog or MessageBox.\n */\n/**\n * @docs-group-description ElementSeparator\n * Components for working with a ElementSeparator.\n */\n/**\n * @docs-group-description Expandable\n * Components for working with a ExpandableBlock or ExpandableList.\n */\n/**\n * @docs-group-description Form\n * Components used to create a Form using supplied properties to specify fields.\n */\n/**\n * @docs-group-description Icon\n * Component that renders core-react icon when given an icon name or SVG source.\n */\n/**\n * @docs-group-description Inputs\n * Components for working with input controls, such as Input, IconInput and NumberInput.\n */\n/**\n * @docs-group-description Loading\n * Components for working with Loading spinners and progress indicators and bars.\n */\n/**\n * @docs-group-description Notification\n * Components for working with messages and tooltips.\n */\n/**\n * @docs-group-description Popup\n * Components for working with a Popup.\n */\n/**\n * @docs-group-description RadialMenu\n * Components for working with a RadialMenu.\n */\n/**\n * @docs-group-description Radio\n * Component is a wrapper for the `<input type=\"radio\">` HTML element.\n */\n/**\n * @docs-group-description SearchBox\n * Components for working with a SearchBox.\n */\n/**\n * @docs-group-description Select\n * Component is a wrapper for the `<select>` HTML element.\n */\n/**\n * @docs-group-description Settings\n * Manager and UI Components that allow users to modify settings for different packages and extensions.\n */\n/**\n * @docs-group-description Slider\n * Component displays a range slider with thumbs for changing the value.\n */\n/**\n * @docs-group-description SplitButton\n * Components for working with a SplitButton.\n */\n/**\n * @docs-group-description Tabs\n * Components for working with horizontal or vertical tabs.\n */\n/**\n * @docs-group-description Text\n * Components for working with styled text.\n */\n/**\n * @docs-group-description Tiles\n * Components for a container rendering elements that can be grouped together.\n */\n/**\n * @docs-group-description Toggle\n * Components for working with a Toggle switch.\n */\n/**\n * @docs-group-description Tooltip\n * Components for working with a Tooltip.\n */\n/**\n * @docs-group-description Tree\n * Presentation React components for working with a Tree.\n */\n/**\n * @docs-group-description UiStateStorage\n * Interfaces and classes for working with persistent UI settings.\n */\n/**\n * @docs-group-description Utilities\n * Various utility classes, functions and React hooks for working with a UI.\n */\n"]}
1
+ {"version":3,"file":"core-react.js","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,4CAA4C;AAE5C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,sCAAsC,CAAC;AAErD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAE1D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AAEjD,cAAc,gDAAgD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD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DAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAE7D,wBAAwB,EAAE,CAAC;AAE3B;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/* eslint-disable deprecation/deprecation */\n\nexport * from \"./core-react/UiCore\";\n\nexport * from \"./core-react/badge/Badge\";\nexport * from \"./core-react/badge/BadgeType\";\n\nexport * from \"./core-react/base/Div\";\nexport * from \"./core-react/base/DivWithOutsideClick\";\nexport * from \"./core-react/base/Centered\";\nexport * from \"./core-react/base/FillCentered\";\nexport * from \"./core-react/base/FlexWrapContainer\";\nexport * from \"./core-react/base/Gap\";\nexport * from \"./core-react/base/PointerEvents\";\nexport * from \"./core-react/base/ScrollView\";\n\nexport * from \"./core-react/button/UnderlinedButton\";\n\nexport * from \"./core-react/checklistbox/CheckListBox\";\n\nexport * from \"./core-react/contextmenu/ContextMenu\";\nexport * from \"./core-react/contextmenu/ContextMenuDirection\";\nexport * from \"./core-react/contextmenu/ContextMenuDivider\";\nexport * from \"./core-react/contextmenu/ContextMenuItem\";\nexport * from \"./core-react/contextmenu/ContextSubMenu\";\nexport * from \"./core-react/contextmenu/GlobalContextMenu\";\nexport * from \"./core-react/contextmenu/PopupContextMenu\";\n\nexport * from \"./core-react/dialog/Dialog\";\nexport * from \"./core-react/dialog/GlobalDialog\";\n\nexport * from \"./core-react/elementseparator/ElementSeparator\";\n\nexport * from \"./core-react/enums/Alignment\";\nexport * from \"./core-react/enums/CheckBoxState\";\nexport * from \"./core-react/enums/Orientation\";\nexport * from \"./core-react/enums/SortDirection\";\nexport * from \"./core-react/enums/TimeFormat\";\n\nexport * from \"./core-react/expandable/ExpandableList\";\n\nexport * from \"./core-react/focus/ItemKeyboardNavigator\";\nexport * from \"./core-react/focustrap/FocusTrap\";\n\nexport * from \"./core-react/hocs/withIsPressed\";\nexport * from \"./core-react/hocs/withOnOutsideClick\";\nexport * from \"./core-react/hocs/withTimeout\";\n\nexport { LocalizationProvider } from \"./core-react/l10n/LocalizationProvider\";\nexport { usePackageTranslation } from \"./core-react/l10n/usePackageTranslation\";\n\nexport * from \"./core-react/icons/ConditionalIconItem\";\nexport * from \"./core-react/icons/IconComponent\";\nexport * from \"./core-react/icons/SvgPath\";\nexport * from \"./core-react/icons/WebFontIcon\";\n\nexport * from \"./core-react/autosuggest/AutoSuggest\";\n\nexport * from \"./core-react/imagecheckbox/ImageCheckBox\";\n\nexport * from \"./core-react/inputs/InputLabel\";\nexport * from \"./core-react/inputs/InputStatus\";\nexport * from \"./core-react/inputs/iconinput/IconInput\";\nexport * from \"./core-react/inputs/LabeledComponentProps\";\nexport * from \"./core-react/inputs/numberinput/NumberInput\";\n\nexport * from \"./core-react/listbox/Listbox\";\n\nexport * from \"./core-react/loading/LoadingBar\";\nexport * from \"./core-react/loading/LoadingPrompt\";\nexport * from \"./core-react/loading/LoadingSpinner\";\nexport * from \"./core-react/loading/LoadingStatus\";\n\nexport * from \"./core-react/messagebox/MessageBox\";\n\nexport * from \"./core-react/notification/MessageRenderer\";\nexport * from \"./core-react/notification/MessageType\";\n\nexport * from \"./core-react/popup/Popup\";\n\nexport * from \"./core-react/radialmenu/RadialMenu\";\nexport * from \"./core-react/radialmenu/Annulus\";\n\nexport * from \"./core-react/searchbox/SearchBox\";\n\nexport * from \"./core-react/settings/SettingsManager\";\nexport * from \"./core-react/settings/SettingsContainer\";\n\nexport * from \"./core-react/tabs/VerticalTabs\";\nexport * from \"./core-react/tabs/Tabs\";\n\nexport * from \"./core-react/text/BodyText\";\nexport * from \"./core-react/text/BlockText\";\nexport * from \"./core-react/text/DisabledText\";\nexport * from \"./core-react/text/FilteredText\";\nexport * from \"./core-react/text/MutedText\";\nexport * from \"./core-react/text/StyledText\";\nexport * from \"./core-react/text/TextProps\";\n\nexport {\n ExpansionToggle,\n ExpansionToggleProps,\n} from \"./core-react/tree/ExpansionToggle\";\nexport { TreeBranch, TreeBranchProps } from \"./core-react/tree/Branch\";\nexport {\n TreeNode,\n TreeNodeProps,\n NodeCheckboxProps,\n NodeCheckboxRenderer,\n NodeCheckboxRenderProps,\n} from \"./core-react/tree/Node\";\nexport { Tree, TreeProps } from \"./core-react/tree/Tree\";\nexport {\n TreeNodePlaceholder,\n TreeNodePlaceholderProps,\n} from \"./core-react/tree/Placeholder\";\n\nexport * from \"./core-react/uistate/UiStateEntry\";\nexport * from \"./core-react/uistate/UiStateStorage\";\nexport * from \"./core-react/uistate/LocalStateStorage\";\n\nexport * from \"./core-react/utils/IconHelper\";\nimport { registerIconWebComponent } from \"./core-react/utils/IconWebComponent\";\nexport * from \"./core-react/utils/Point\";\nexport * from \"./core-react/utils/Props\";\nexport * from \"./core-react/utils/Rectangle\";\nexport * from \"./core-react/utils/Size\";\nexport * from \"./core-react/utils/Timer\";\nexport * from \"./core-react/utils/UiGeometry\";\nexport * from \"./core-react/utils/flattenChildren\";\nexport * from \"./core-react/utils/getBestBWContrastColor\";\nexport * from \"./core-react/utils/getCssVariable\";\nexport * from \"./core-react/utils/getDisplayName\";\nexport * from \"./core-react/utils/getUserColor\";\nexport * from \"./core-react/utils/shallowDiffers\";\nexport * from \"./core-react/utils/typeUtils\";\nexport * from \"./core-react/utils/isPromiseLike\";\nexport * from \"./core-react/utils/ListenerType\";\nexport * from \"./core-react/utils/ScrollPositionMaintainer\";\nexport * from \"./core-react/utils/getObjectClassName\";\n\nexport * from \"./core-react/utils/hooks/useDisposable\";\nexport * from \"./core-react/utils/hooks/useEffectSkipFirst\";\nexport * from \"./core-react/utils/hooks/useEventListener\";\nexport * from \"./core-react/utils/hooks/ResizeObserverPolyfill\";\nexport * from \"./core-react/utils/hooks/useOnOutsideClick\";\nexport * from \"./core-react/utils/hooks/useProximityToMouse\";\nexport * from \"./core-react/utils/hooks/useRefEffect\";\nexport * from \"./core-react/utils/hooks/useRefs\";\nexport * from \"./core-react/utils/hooks/useRefState\";\nexport * from \"./core-react/utils/hooks/useResizeObserver\";\nexport * from \"./core-react/utils/hooks/useTargeted\";\nexport * from \"./core-react/utils/hooks/useWidgetOpacityContext\";\nexport * from \"./core-react/utils/hooks/useInterval\";\nexport * from \"./core-react/utils/hooks/useCrossOriginPopup\";\n\nregisterIconWebComponent();\n\n/** @docs-package-description\n * The core-react package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\n */\n/**\n * @docs-group-description AutoSuggest\n * Component for input with an auto-suggestion dropdown.\n */\n/**\n * @docs-group-description Base\n * Low-level classes and components for building application UI.\n */\n/**\n * @docs-group-description Button\n * Components for working with various Buttons.\n */\n/**\n * @docs-group-description Checkbox\n * Component is a wrapper for the `<input type=\"checkbox\">` HTML element.\n */\n/**\n * @docs-group-description CheckListBox\n * Components for working with a Check listbox.\n */\n/**\n * @docs-group-description Common\n * Common classes and enums used across various UI components.\n */\n/**\n * @docs-group-description ContextMenu\n * Components for working with a Context Menu.\n */\n/**\n * @docs-group-description Dialog\n * Components for working with a Dialog or MessageBox.\n */\n/**\n * @docs-group-description ElementSeparator\n * Components for working with a ElementSeparator.\n */\n/**\n * @docs-group-description Expandable\n * Components for working with a ExpandableBlock or ExpandableList.\n */\n/**\n * @docs-group-description Form\n * Components used to create a Form using supplied properties to specify fields.\n */\n/**\n * @docs-group-description Icon\n * Component that renders core-react icon when given an icon name or SVG source.\n */\n/**\n * @docs-group-description Inputs\n * Components for working with input controls, such as Input, IconInput and NumberInput.\n */\n/**\n * @docs-group-description Listbox\n * Components for working with a Listbox.\n */\n/**\n * @docs-group-description Loading\n * Components for working with Loading spinners and progress indicators and bars.\n */\n/**\n * @docs-group-description Notification\n * Components for working with messages and tooltips.\n */\n/**\n * @docs-group-description Popup\n * Components for working with a Popup.\n */\n/**\n * @docs-group-description RadialMenu\n * Components for working with a RadialMenu.\n */\n/**\n * @docs-group-description Radio\n * Component is a wrapper for the `<input type=\"radio\">` HTML element.\n */\n/**\n * @docs-group-description SearchBox\n * Components for working with a SearchBox.\n */\n/**\n * @docs-group-description Select\n * Component is a wrapper for the `<select>` HTML element.\n */\n/**\n * @docs-group-description Settings\n * Manager and UI Components that allow users to modify settings for different packages and extensions.\n */\n/**\n * @docs-group-description Slider\n * Component displays a range slider with thumbs for changing the value.\n */\n/**\n * @docs-group-description SplitButton\n * Components for working with a SplitButton.\n */\n/**\n * @docs-group-description Tabs\n * Components for working with horizontal or vertical tabs.\n */\n/**\n * @docs-group-description Text\n * Components for working with styled text.\n */\n/**\n * @docs-group-description Tiles\n * Components for a container rendering elements that can be grouped together.\n */\n/**\n * @docs-group-description Toggle\n * Components for working with a Toggle switch.\n */\n/**\n * @docs-group-description Tooltip\n * Components for working with a Tooltip.\n */\n/**\n * @docs-group-description Tree\n * Presentation React components for working with a Tree.\n */\n/**\n * @docs-group-description UiStateStorage\n * Interfaces and classes for working with persistent UI settings.\n */\n/**\n * @docs-group-description Utilities\n * Various utility classes, functions and React hooks for working with a UI.\n */\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-react",
3
- "version": "4.15.4",
3
+ "version": "4.16.0",
4
4
  "description": "iTwin.js UI core components",
5
5
  "main": "lib/cjs/core-react.js",
6
6
  "module": "lib/esm/core-react.js",