@itwin/core-react 4.0.0-dev.16 → 4.0.0-dev.17

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 (384) hide show
  1. package/lib/cjs/core-react/UiCore.js.map +1 -1
  2. package/lib/cjs/core-react/_geometry.scss +70 -70
  3. package/lib/cjs/core-react/_helpers.scss +51 -51
  4. package/lib/cjs/core-react/_math.scss +13 -13
  5. package/lib/cjs/core-react/_scrollbar.scss +51 -51
  6. package/lib/cjs/core-react/_typography.scss +44 -44
  7. package/lib/cjs/core-react/_z-index.scss +65 -65
  8. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  9. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +79 -79
  10. package/lib/cjs/core-react/badge/Badge.js.map +1 -1
  11. package/lib/cjs/core-react/badge/Badge.scss +13 -13
  12. package/lib/cjs/core-react/badge/BadgeUtilities.js.map +1 -1
  13. package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
  14. package/lib/cjs/core-react/badge/NewBadge.js.map +1 -1
  15. package/lib/cjs/core-react/badge/NewBadge.scss +9 -9
  16. package/lib/cjs/core-react/base/Centered.js.map +1 -1
  17. package/lib/cjs/core-react/base/Div.js.map +1 -1
  18. package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +1 -1
  19. package/lib/cjs/core-react/base/FillCentered.js.map +1 -1
  20. package/lib/cjs/core-react/base/FlexWrapContainer.js.map +1 -1
  21. package/lib/cjs/core-react/base/Gap.js.map +1 -1
  22. package/lib/cjs/core-react/base/PointerEvents.js.map +1 -1
  23. package/lib/cjs/core-react/base/ScrollView.js.map +1 -1
  24. package/lib/cjs/core-react/base/base.scss +42 -42
  25. package/lib/cjs/core-react/base/classes.scss +13 -13
  26. package/lib/cjs/core-react/base/index.scss +5 -5
  27. package/lib/cjs/core-react/button/UnderlinedButton.js.map +1 -1
  28. package/lib/cjs/core-react/button/UnderlinedButton.scss +32 -32
  29. package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
  30. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +21 -21
  31. package/lib/cjs/core-react/classes.scss +11 -11
  32. package/lib/cjs/core-react/colorthemes.scss +61 -61
  33. package/lib/cjs/core-react/colorvariables.scss +131 -131
  34. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  35. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +236 -236
  36. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  37. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  38. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  39. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  40. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  41. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  42. package/lib/cjs/core-react/contextmenu/TildeFinder.js.map +1 -1
  43. package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
  44. package/lib/cjs/core-react/dialog/Dialog.scss +245 -245
  45. package/lib/cjs/core-react/dialog/GlobalDialog.js.map +1 -1
  46. package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
  47. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +85 -85
  48. package/lib/cjs/core-react/enums/Alignment.js.map +1 -1
  49. package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
  50. package/lib/cjs/core-react/enums/Orientation.js.map +1 -1
  51. package/lib/cjs/core-react/enums/SortDirection.js.map +1 -1
  52. package/lib/cjs/core-react/enums/TimeFormat.js.map +1 -1
  53. package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
  54. package/lib/cjs/core-react/expandable/ExpandableList.scss +8 -8
  55. package/lib/cjs/core-react/expandable/classes.scss +7 -7
  56. package/lib/cjs/core-react/expandable/index.scss +5 -5
  57. package/lib/cjs/core-react/expandable/list.scss +35 -35
  58. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  59. package/lib/cjs/core-react/focustrap/FocusTrap.js.map +1 -1
  60. package/lib/cjs/core-react/hocs/withIsPressed.js.map +1 -1
  61. package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
  62. package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
  63. package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +1 -1
  64. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  65. package/lib/cjs/core-react/icons/IconComponent.scss +20 -20
  66. package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
  67. package/lib/cjs/core-react/icons/SvgPath.scss +15 -15
  68. package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
  69. package/lib/cjs/core-react/icons/WebFontIcon.scss +17 -17
  70. package/lib/cjs/core-react/icons/classes.scss +10 -10
  71. package/lib/cjs/core-react/icons/index.scss +6 -6
  72. package/lib/cjs/core-react/icons/mixins.scss +25 -25
  73. package/lib/cjs/core-react/icons/variables.scss +12 -12
  74. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  75. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
  76. package/lib/cjs/core-react/index.scss +21 -21
  77. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  78. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  79. package/lib/cjs/core-react/inputs/InputStatus.js.map +1 -1
  80. package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +1 -1
  81. package/lib/cjs/core-react/inputs/classes.scss +8 -8
  82. package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
  83. package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +35 -35
  84. package/lib/cjs/core-react/inputs/index.scss +9 -9
  85. package/lib/cjs/core-react/inputs/input-label.scss +90 -90
  86. package/lib/cjs/core-react/inputs/input.scss +58 -58
  87. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  88. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +88 -88
  89. package/lib/cjs/core-react/inputs/variables.scss +38 -38
  90. package/lib/cjs/core-react/layout-variables.scss +17 -17
  91. package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
  92. package/lib/cjs/core-react/listbox/Listbox.scss +54 -54
  93. package/lib/cjs/core-react/loading/LoadingBar.js.map +1 -1
  94. package/lib/cjs/core-react/loading/LoadingBar.scss +29 -29
  95. package/lib/cjs/core-react/loading/LoadingPrompt.js.map +1 -1
  96. package/lib/cjs/core-react/loading/LoadingPrompt.scss +33 -33
  97. package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
  98. package/lib/cjs/core-react/loading/LoadingSpinner.scss +26 -26
  99. package/lib/cjs/core-react/loading/LoadingStatus.js.map +1 -1
  100. package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -20
  101. package/lib/cjs/core-react/loading/index.scss +5 -5
  102. package/lib/cjs/core-react/loading/mixins.scss +57 -57
  103. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  104. package/lib/cjs/core-react/messagebox/MessageBox.scss +56 -56
  105. package/lib/cjs/core-react/notification/MessageRenderer.js.map +1 -1
  106. package/lib/cjs/core-react/notification/MessageType.js.map +1 -1
  107. package/lib/cjs/core-react/popup/Popup.js.map +1 -1
  108. package/lib/cjs/core-react/popup/Popup.scss +240 -240
  109. package/lib/cjs/core-react/radialmenu/Annulus.js.map +1 -1
  110. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  111. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +55 -55
  112. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  113. package/lib/cjs/core-react/searchbox/SearchBox.scss +47 -47
  114. package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
  115. package/lib/cjs/core-react/settings/SettingsContainer.scss +68 -68
  116. package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
  117. package/lib/cjs/core-react/style/baseline.scss +11 -11
  118. package/lib/cjs/core-react/style/breakpoints.scss +41 -41
  119. package/lib/cjs/core-react/style/colors.scss +77 -77
  120. package/lib/cjs/core-react/style/index.scss +10 -10
  121. package/lib/cjs/core-react/style/mixins.scss +27 -27
  122. package/lib/cjs/core-react/style/opacity.scss +16 -16
  123. package/lib/cjs/core-react/style/themecolors.scss +123 -123
  124. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  125. package/lib/cjs/core-react/tabs/VerticalTabs.js.map +1 -1
  126. package/lib/cjs/core-react/tabs/classes.scss +7 -7
  127. package/lib/cjs/core-react/tabs/index.scss +5 -5
  128. package/lib/cjs/core-react/tabs/tabs.scss +96 -96
  129. package/lib/cjs/core-react/tabs/vertical.scss +51 -51
  130. package/lib/cjs/core-react/text/BlockText.js.map +1 -1
  131. package/lib/cjs/core-react/text/BodyText.js.map +1 -1
  132. package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
  133. package/lib/cjs/core-react/text/FilteredText.js.map +1 -1
  134. package/lib/cjs/core-react/text/FilteredText.scss +10 -10
  135. package/lib/cjs/core-react/text/MutedText.js.map +1 -1
  136. package/lib/cjs/core-react/text/StyledText.js.map +1 -1
  137. package/lib/cjs/core-react/text/TextProps.js.map +1 -1
  138. package/lib/cjs/core-react/text/block.scss +15 -15
  139. package/lib/cjs/core-react/text/body.scss +13 -13
  140. package/lib/cjs/core-react/text/classes.scss +10 -10
  141. package/lib/cjs/core-react/text/disabled.scss +10 -10
  142. package/lib/cjs/core-react/text/index.scss +10 -10
  143. package/lib/cjs/core-react/text/mixins.scss +24 -24
  144. package/lib/cjs/core-react/text/muted.scss +10 -10
  145. package/lib/cjs/core-react/tree/Branch.js.map +1 -1
  146. package/lib/cjs/core-react/tree/Branch.scss +12 -12
  147. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  148. package/lib/cjs/core-react/tree/ExpansionToggle.scss +32 -32
  149. package/lib/cjs/core-react/tree/Node.js.map +1 -1
  150. package/lib/cjs/core-react/tree/Node.scss +68 -68
  151. package/lib/cjs/core-react/tree/Placeholder.js.map +1 -1
  152. package/lib/cjs/core-react/tree/Placeholder.scss +17 -17
  153. package/lib/cjs/core-react/tree/Tree.js.map +1 -1
  154. package/lib/cjs/core-react/tree/Tree.scss +21 -21
  155. package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -1
  156. package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -1
  157. package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -1
  158. package/lib/cjs/core-react/utils/IconHelper.js.map +1 -1
  159. package/lib/cjs/core-react/utils/IconWebComponent.js.map +1 -1
  160. package/lib/cjs/core-react/utils/Point.js.map +1 -1
  161. package/lib/cjs/core-react/utils/Props.js.map +1 -1
  162. package/lib/cjs/core-react/utils/Rectangle.js.map +1 -1
  163. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  164. package/lib/cjs/core-react/utils/Size.js.map +1 -1
  165. package/lib/cjs/core-react/utils/Timer.js.map +1 -1
  166. package/lib/cjs/core-react/utils/UiGeometry.js.map +1 -1
  167. package/lib/cjs/core-react/utils/flattenChildren.js.map +1 -1
  168. package/lib/cjs/core-react/utils/getBestBWContrastColor.js.map +1 -1
  169. package/lib/cjs/core-react/utils/getCssVariable.js.map +1 -1
  170. package/lib/cjs/core-react/utils/getDisplayName.js.map +1 -1
  171. package/lib/cjs/core-react/utils/getUserColor.js.map +1 -1
  172. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  173. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  174. package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +1 -1
  175. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  176. package/lib/cjs/core-react/utils/hooks/useEventListener.js.map +1 -1
  177. package/lib/cjs/core-react/utils/hooks/useInterval.js.map +1 -1
  178. package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  179. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  180. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  181. package/lib/cjs/core-react/utils/hooks/useRefEffect.js.map +1 -1
  182. package/lib/cjs/core-react/utils/hooks/useRefState.js.map +1 -1
  183. package/lib/cjs/core-react/utils/hooks/useRefs.js.map +1 -1
  184. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  185. package/lib/cjs/core-react/utils/hooks/useTargeted.js.map +1 -1
  186. package/lib/cjs/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  187. package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  188. package/lib/cjs/core-react/utils/isPromiseLike.js.map +1 -1
  189. package/lib/cjs/core-react/utils/shallowDiffers.js.map +1 -1
  190. package/lib/cjs/core-react/utils/typeUtils.js.map +1 -1
  191. package/lib/cjs/core-react.js.map +1 -1
  192. package/lib/esm/core-react/UiCore.js.map +1 -1
  193. package/lib/esm/core-react/_geometry.scss +70 -70
  194. package/lib/esm/core-react/_helpers.scss +51 -51
  195. package/lib/esm/core-react/_math.scss +13 -13
  196. package/lib/esm/core-react/_scrollbar.scss +51 -51
  197. package/lib/esm/core-react/_typography.scss +44 -44
  198. package/lib/esm/core-react/_z-index.scss +65 -65
  199. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  200. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +79 -79
  201. package/lib/esm/core-react/badge/Badge.js.map +1 -1
  202. package/lib/esm/core-react/badge/Badge.scss +13 -13
  203. package/lib/esm/core-react/badge/BadgeUtilities.js.map +1 -1
  204. package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
  205. package/lib/esm/core-react/badge/NewBadge.js.map +1 -1
  206. package/lib/esm/core-react/badge/NewBadge.scss +9 -9
  207. package/lib/esm/core-react/base/Centered.js.map +1 -1
  208. package/lib/esm/core-react/base/Div.js.map +1 -1
  209. package/lib/esm/core-react/base/DivWithOutsideClick.js.map +1 -1
  210. package/lib/esm/core-react/base/FillCentered.js.map +1 -1
  211. package/lib/esm/core-react/base/FlexWrapContainer.js.map +1 -1
  212. package/lib/esm/core-react/base/Gap.js.map +1 -1
  213. package/lib/esm/core-react/base/PointerEvents.js.map +1 -1
  214. package/lib/esm/core-react/base/ScrollView.js.map +1 -1
  215. package/lib/esm/core-react/base/base.scss +42 -42
  216. package/lib/esm/core-react/base/classes.scss +13 -13
  217. package/lib/esm/core-react/base/index.scss +5 -5
  218. package/lib/esm/core-react/button/UnderlinedButton.js.map +1 -1
  219. package/lib/esm/core-react/button/UnderlinedButton.scss +32 -32
  220. package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
  221. package/lib/esm/core-react/checklistbox/CheckListBox.scss +21 -21
  222. package/lib/esm/core-react/classes.scss +11 -11
  223. package/lib/esm/core-react/colorthemes.scss +61 -61
  224. package/lib/esm/core-react/colorvariables.scss +131 -131
  225. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  226. package/lib/esm/core-react/contextmenu/ContextMenu.scss +236 -236
  227. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  228. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  229. package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  230. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  231. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  232. package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  233. package/lib/esm/core-react/contextmenu/TildeFinder.js.map +1 -1
  234. package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
  235. package/lib/esm/core-react/dialog/Dialog.scss +245 -245
  236. package/lib/esm/core-react/dialog/GlobalDialog.js.map +1 -1
  237. package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
  238. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +85 -85
  239. package/lib/esm/core-react/enums/Alignment.js.map +1 -1
  240. package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
  241. package/lib/esm/core-react/enums/Orientation.js.map +1 -1
  242. package/lib/esm/core-react/enums/SortDirection.js.map +1 -1
  243. package/lib/esm/core-react/enums/TimeFormat.js.map +1 -1
  244. package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
  245. package/lib/esm/core-react/expandable/ExpandableList.scss +8 -8
  246. package/lib/esm/core-react/expandable/classes.scss +7 -7
  247. package/lib/esm/core-react/expandable/index.scss +5 -5
  248. package/lib/esm/core-react/expandable/list.scss +35 -35
  249. package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  250. package/lib/esm/core-react/focustrap/FocusTrap.js.map +1 -1
  251. package/lib/esm/core-react/hocs/withIsPressed.js.map +1 -1
  252. package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
  253. package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
  254. package/lib/esm/core-react/icons/ConditionalIconItem.js.map +1 -1
  255. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  256. package/lib/esm/core-react/icons/IconComponent.scss +20 -20
  257. package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
  258. package/lib/esm/core-react/icons/SvgPath.scss +15 -15
  259. package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
  260. package/lib/esm/core-react/icons/WebFontIcon.scss +17 -17
  261. package/lib/esm/core-react/icons/classes.scss +10 -10
  262. package/lib/esm/core-react/icons/index.scss +6 -6
  263. package/lib/esm/core-react/icons/mixins.scss +25 -25
  264. package/lib/esm/core-react/icons/variables.scss +12 -12
  265. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  266. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
  267. package/lib/esm/core-react/index.scss +21 -21
  268. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  269. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  270. package/lib/esm/core-react/inputs/InputStatus.js.map +1 -1
  271. package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +1 -1
  272. package/lib/esm/core-react/inputs/classes.scss +8 -8
  273. package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
  274. package/lib/esm/core-react/inputs/iconinput/IconInput.scss +35 -35
  275. package/lib/esm/core-react/inputs/index.scss +9 -9
  276. package/lib/esm/core-react/inputs/input-label.scss +90 -90
  277. package/lib/esm/core-react/inputs/input.scss +58 -58
  278. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  279. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +88 -88
  280. package/lib/esm/core-react/inputs/variables.scss +38 -38
  281. package/lib/esm/core-react/layout-variables.scss +17 -17
  282. package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
  283. package/lib/esm/core-react/listbox/Listbox.scss +54 -54
  284. package/lib/esm/core-react/loading/LoadingBar.js.map +1 -1
  285. package/lib/esm/core-react/loading/LoadingBar.scss +29 -29
  286. package/lib/esm/core-react/loading/LoadingPrompt.js.map +1 -1
  287. package/lib/esm/core-react/loading/LoadingPrompt.scss +33 -33
  288. package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
  289. package/lib/esm/core-react/loading/LoadingSpinner.scss +26 -26
  290. package/lib/esm/core-react/loading/LoadingStatus.js.map +1 -1
  291. package/lib/esm/core-react/loading/LoadingStatus.scss +20 -20
  292. package/lib/esm/core-react/loading/index.scss +5 -5
  293. package/lib/esm/core-react/loading/mixins.scss +57 -57
  294. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  295. package/lib/esm/core-react/messagebox/MessageBox.scss +56 -56
  296. package/lib/esm/core-react/notification/MessageRenderer.js.map +1 -1
  297. package/lib/esm/core-react/notification/MessageType.js.map +1 -1
  298. package/lib/esm/core-react/popup/Popup.js.map +1 -1
  299. package/lib/esm/core-react/popup/Popup.scss +240 -240
  300. package/lib/esm/core-react/radialmenu/Annulus.js.map +1 -1
  301. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  302. package/lib/esm/core-react/radialmenu/RadialMenu.scss +55 -55
  303. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  304. package/lib/esm/core-react/searchbox/SearchBox.scss +47 -47
  305. package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
  306. package/lib/esm/core-react/settings/SettingsContainer.scss +68 -68
  307. package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
  308. package/lib/esm/core-react/style/baseline.scss +11 -11
  309. package/lib/esm/core-react/style/breakpoints.scss +41 -41
  310. package/lib/esm/core-react/style/colors.scss +77 -77
  311. package/lib/esm/core-react/style/index.scss +10 -10
  312. package/lib/esm/core-react/style/mixins.scss +27 -27
  313. package/lib/esm/core-react/style/opacity.scss +16 -16
  314. package/lib/esm/core-react/style/themecolors.scss +123 -123
  315. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  316. package/lib/esm/core-react/tabs/VerticalTabs.js.map +1 -1
  317. package/lib/esm/core-react/tabs/classes.scss +7 -7
  318. package/lib/esm/core-react/tabs/index.scss +5 -5
  319. package/lib/esm/core-react/tabs/tabs.scss +96 -96
  320. package/lib/esm/core-react/tabs/vertical.scss +51 -51
  321. package/lib/esm/core-react/text/BlockText.js.map +1 -1
  322. package/lib/esm/core-react/text/BodyText.js.map +1 -1
  323. package/lib/esm/core-react/text/DisabledText.js.map +1 -1
  324. package/lib/esm/core-react/text/FilteredText.js.map +1 -1
  325. package/lib/esm/core-react/text/FilteredText.scss +10 -10
  326. package/lib/esm/core-react/text/MutedText.js.map +1 -1
  327. package/lib/esm/core-react/text/StyledText.js.map +1 -1
  328. package/lib/esm/core-react/text/TextProps.js.map +1 -1
  329. package/lib/esm/core-react/text/block.scss +15 -15
  330. package/lib/esm/core-react/text/body.scss +13 -13
  331. package/lib/esm/core-react/text/classes.scss +10 -10
  332. package/lib/esm/core-react/text/disabled.scss +10 -10
  333. package/lib/esm/core-react/text/index.scss +10 -10
  334. package/lib/esm/core-react/text/mixins.scss +24 -24
  335. package/lib/esm/core-react/text/muted.scss +10 -10
  336. package/lib/esm/core-react/tree/Branch.js.map +1 -1
  337. package/lib/esm/core-react/tree/Branch.scss +12 -12
  338. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  339. package/lib/esm/core-react/tree/ExpansionToggle.scss +32 -32
  340. package/lib/esm/core-react/tree/Node.js.map +1 -1
  341. package/lib/esm/core-react/tree/Node.scss +68 -68
  342. package/lib/esm/core-react/tree/Placeholder.js.map +1 -1
  343. package/lib/esm/core-react/tree/Placeholder.scss +17 -17
  344. package/lib/esm/core-react/tree/Tree.js.map +1 -1
  345. package/lib/esm/core-react/tree/Tree.scss +21 -21
  346. package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -1
  347. package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -1
  348. package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -1
  349. package/lib/esm/core-react/utils/IconHelper.js.map +1 -1
  350. package/lib/esm/core-react/utils/IconWebComponent.js.map +1 -1
  351. package/lib/esm/core-react/utils/Point.js.map +1 -1
  352. package/lib/esm/core-react/utils/Props.js.map +1 -1
  353. package/lib/esm/core-react/utils/Rectangle.js.map +1 -1
  354. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  355. package/lib/esm/core-react/utils/Size.js.map +1 -1
  356. package/lib/esm/core-react/utils/Timer.js.map +1 -1
  357. package/lib/esm/core-react/utils/UiGeometry.js.map +1 -1
  358. package/lib/esm/core-react/utils/flattenChildren.js.map +1 -1
  359. package/lib/esm/core-react/utils/getBestBWContrastColor.js.map +1 -1
  360. package/lib/esm/core-react/utils/getCssVariable.js.map +1 -1
  361. package/lib/esm/core-react/utils/getDisplayName.js.map +1 -1
  362. package/lib/esm/core-react/utils/getUserColor.js.map +1 -1
  363. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  364. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  365. package/lib/esm/core-react/utils/hooks/useDisposable.js.map +1 -1
  366. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  367. package/lib/esm/core-react/utils/hooks/useEventListener.js.map +1 -1
  368. package/lib/esm/core-react/utils/hooks/useInterval.js.map +1 -1
  369. package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  370. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  371. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  372. package/lib/esm/core-react/utils/hooks/useRefEffect.js.map +1 -1
  373. package/lib/esm/core-react/utils/hooks/useRefState.js.map +1 -1
  374. package/lib/esm/core-react/utils/hooks/useRefs.js.map +1 -1
  375. package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  376. package/lib/esm/core-react/utils/hooks/useTargeted.js.map +1 -1
  377. package/lib/esm/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  378. package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  379. package/lib/esm/core-react/utils/isPromiseLike.js.map +1 -1
  380. package/lib/esm/core-react/utils/shallowDiffers.js.map +1 -1
  381. package/lib/esm/core-react/utils/typeUtils.js.map +1 -1
  382. package/lib/esm/core-react.js.map +1 -1
  383. package/lib/public/locales/en/UiCore.json +30 -30
  384. 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;;;+FAG+F;AAC/F;;GAEG;AACH,+BAA+B;AAC/B,qEAA0D;AAC1D,iDAA8C;AAC9C,uCAAoC;AAEpC;;IAEI;AACJ,SAAgB,iBAAiB,CAAoB,QAAkD;IACrG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC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MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAEzG,OAAO,CACL,6BAAK,GAAG,EAAE,YAAY,EAAE,SAAS,EAAC,4BAA4B,EAAC,KAAK,EAAE,KAAK,IACxE,WAAW,IAAI,QAAQ,CACpB,CACP,CAAC;AACJ,CAAC;AA7BD,gEA6BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\nimport * as React from \"react\";\r\nimport { ResizeObserver } from \"./ResizeObserverPolyfill\";\r\nimport { useRefEffect } from \"./useRefEffect\";\r\nimport { useRefs } from \"./useRefs\";\r\n\r\n/** Uses ResizeObserver API to notify about element bound changes.\r\n * @internal\r\n */\r\nexport function useResizeObserver<T extends Element>(onResize?: (width: number, height: number) => void) {\r\n const [bounds, setBounds] = React.useState({ width: 0, height: 0 });\r\n const resizeObserver = React.useRef<ResizeObserver | null>(null);\r\n const rafRef = React.useRef(0); // set to non-zero when requestAnimationFrame processing is active\r\n const isMountedRef = React.useRef(false);\r\n const owningWindowRef = React.useRef<any>(null);\r\n\r\n // istanbul ignore next\r\n const resizeObserverCleanup = () => {\r\n if (rafRef.current)\r\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\r\n\r\n resizeObserver.current?.disconnect();\r\n resizeObserver.current = null;\r\n };\r\n\r\n React.useEffect(() => {\r\n isMountedRef.current = true;\r\n return () => {\r\n isMountedRef.current = false;\r\n if (rafRef.current)\r\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\r\n owningWindowRef.current?.removeEventListener(\"beforeunload\", resizeObserverCleanup);\r\n };\r\n }, []);\r\n\r\n const processResize = React.useCallback((target: HTMLElement) => {\r\n const newBounds = target.getBoundingClientRect();\r\n // istanbul ignore else\r\n if (isMountedRef.current && (bounds.width !== newBounds.width || bounds.height !== newBounds.height)) {\r\n setBounds(newBounds);\r\n onResize && onResize(newBounds.width, newBounds.height);\r\n }\r\n }, [onResize, bounds.height, bounds.width]);\r\n\r\n const handleResize = React.useCallback((entries: any[]) => {\r\n // istanbul ignore if\r\n if (!isMountedRef.current || !Array.isArray(entries) || 0 === entries.length) {\r\n return;\r\n }\r\n const target = entries[0].target as HTMLElement;\r\n // istanbul ignore next\r\n owningWindowRef.current && owningWindowRef.current.removeEventListener(\"beforeunload\", resizeObserverCleanup);\r\n\r\n owningWindowRef.current = target.ownerDocument.defaultView;\r\n // istanbul ignore else\r\n if (owningWindowRef.current) {\r\n owningWindowRef.current.addEventListener(\"unload\", resizeObserverCleanup);\r\n\r\n // using requestAnimationFrame to stop the \"ResizeObserver loop completed with undelivered notifications.\" and\r\n // \"ResizeObserver loop limit exceeded\" messages reported to window.onError\r\n rafRef.current = owningWindowRef.current.requestAnimationFrame(() => processResize(target));\r\n }\r\n }, [processResize]);\r\n\r\n const observerRef = useRefEffect((instance: T | null) => {\r\n resizeObserver.current = new ResizeObserver(handleResize);\r\n if (instance) {\r\n resizeObserver.current.observe(instance);\r\n const newBounds = instance.getBoundingClientRect();\r\n onResize && onResize(newBounds.width, newBounds.height);\r\n setBounds(newBounds);\r\n }\r\n\r\n return () => {\r\n instance && ( /* istanbul ignore next */resizeObserver.current?.unobserve(instance));\r\n resizeObserver.current = null;\r\n };\r\n }, [handleResize, onResize]);\r\n\r\n const handleRef = React.useCallback((instance: Element | null) => {\r\n const newBounds = instance && instance.getBoundingClientRect();\r\n // istanbul ignore if\r\n if (newBounds && (bounds.width !== newBounds.width || bounds.height !== newBounds.height)) {\r\n setBounds(newBounds);\r\n onResize && onResize(newBounds.width, newBounds.height);\r\n }\r\n }, [bounds.height, bounds.width, onResize]);\r\n\r\n const ref = useRefs(handleRef, observerRef);\r\n return ref;\r\n}\r\n\r\n/** React hook that uses ResizeObserver API to notify about element bound changes. Note: to work similar to ReactResizeDetector\r\n * width and height are initialized as undefined and only set during after mount if bounds are non-zero. This implementation properly\r\n * handles observing element in pop-out/child windows.\r\n * @internal\r\n */\r\nexport function useLayoutResizeObserver(inElement: HTMLElement | null, onResize?: (width?: number, height?: number) => void) {\r\n const inBoundingRect = inElement?.getBoundingClientRect();\r\n const [bounds, setBounds] = React.useState<{ width?: number, height?: number }>({ width: inBoundingRect?.width, height: inBoundingRect?.height });\r\n const [watchedElement, setWatchedElement] = React.useState(inElement);\r\n const resizeObserver = React.useRef<ResizeObserver | null>(null);\r\n const rafRef = React.useRef(0); // set to non-zero when requestAnimationFrame processing is active\r\n const isMountedRef = React.useRef(false);\r\n const owningWindowRef = React.useRef<any>(null);\r\n\r\n // istanbul ignore next\r\n const resizeObserverCleanup = () => {\r\n if (rafRef.current)\r\n owningWindowRef.current.cancelAnimationFrame(rafRef.current);\r\n\r\n resizeObserver.current?.disconnect();\r\n resizeObserver.current = null;\r\n };\r\n\r\n React.useEffect(() => {\r\n isMountedRef.current = true;\r\n setWatchedElement(inElement);\r\n\r\n // istanbul ignore next\r\n if (inElement) {\r\n const newBounds = inElement.getBoundingClientRect();\r\n onResize && onResize(newBounds.width, newBounds.height);\r\n setBounds(newBounds);\r\n }\r\n\r\n return () => {\r\n isMountedRef.current = false;\r\n (rafRef.current && owningWindowRef.current) && owningWindowRef.current.cancelAnimationFrame(rafRef.current);\r\n owningWindowRef.current && owningWindowRef.current.removeEventListener(\"beforeunload\", resizeObserverCleanup);\r\n };\r\n }, [onResize, inElement]);\r\n\r\n const processResize = React.useCallback((target: HTMLElement) => {\r\n const newBounds = target.getBoundingClientRect();\r\n // istanbul ignore next\r\n if (isMountedRef.current && (bounds.width !== newBounds.width || bounds.height !== newBounds.height)) {\r\n onResize && onResize(newBounds.width, newBounds.height);\r\n setBounds(newBounds);\r\n }\r\n }, [bounds.height, bounds.width, onResize]);\r\n\r\n const handleResize = React.useCallback((entries: any[]) => {\r\n // istanbul ignore next\r\n if (!isMountedRef.current || !Array.isArray(entries) || 0 === entries.length) {\r\n return;\r\n }\r\n const target = entries[0].target as HTMLElement;\r\n // istanbul ignore next\r\n if (owningWindowRef.current)\r\n owningWindowRef.current.removeEventListener(\"beforeunload\", resizeObserverCleanup);\r\n\r\n owningWindowRef.current = target.ownerDocument.defaultView;\r\n // istanbul ignore else\r\n if (owningWindowRef.current) {\r\n owningWindowRef.current.addEventListener(\"unload\", resizeObserverCleanup);\r\n\r\n // using requestAnimationFrame to stop the \"ResizeObserver loop completed with undelivered notifications.\" and\r\n // \"ResizeObserver loop limit exceeded\" messages reported to window.onError\r\n rafRef.current = owningWindowRef.current.requestAnimationFrame(() => processResize(target));\r\n }\r\n }, [processResize]);\r\n\r\n React.useLayoutEffect(() => {\r\n if (!watchedElement) {\r\n return;\r\n }\r\n resizeObserver.current = new ResizeObserver(handleResize);\r\n resizeObserver.current.observe(watchedElement);\r\n return () => {\r\n // istanbul ignore next\r\n resizeObserver.current?.disconnect();\r\n resizeObserver.current = null;\r\n };\r\n }, [handleResize, watchedElement]);\r\n\r\n return [bounds.width, bounds.height];\r\n}\r\n\r\n/** Prop the ElementResizeObserver sends to the render function.\r\n * @public\r\n */\r\nexport interface RenderPropsArgs {\r\n width?: number;\r\n height?: number;\r\n}\r\n\r\n/** ElementResizeObserver provides functionality similar to ReactResizeDetector when a render function is specified. This implementation properly handles\r\n * observing element in pop-out/child windows.\r\n * @public\r\n */\r\nexport function ElementResizeObserver({ watchedElement, render }: { watchedElement: HTMLElement | null, render: (props: RenderPropsArgs) => JSX.Element }) {\r\n const [width, height] = useLayoutResizeObserver(watchedElement);\r\n return render({ width, height });\r\n}\r\n\r\n/** ResizableContainerObserver is a component that provides the functionality similar to the ReactResizeDetector option that call a function when\r\n * the observed element is resized. This implementation properly handles observing element in pop-out/child windows. If children nodes are defined then\r\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\r\n * size changes from its parent container.\r\n * @public\r\n */\r\nexport function ResizableContainerObserver({ onResize, children }: { onResize: (width: number, height: number) => void, children?: React.ReactNode }) {\r\n const containerRef = React.useRef<HTMLDivElement>(null); // set to non-zero when requestAnimationFrame processing is active\r\n const [containerElement, setContainerElement] = React.useState<HTMLElement | null>(null);\r\n const isMountedRef = React.useRef(false);\r\n const hasChildren = React.Children.count(children) !== 0;\r\n\r\n // if no children are specified then monitor size of parent element.\r\n React.useEffect(() => {\r\n // istanbul ignore next\r\n if (!isMountedRef.current && containerRef.current) {\r\n isMountedRef.current = true;\r\n const hasParent = !!containerRef.current.parentElement;\r\n setContainerElement(hasChildren && hasParent ? containerRef.current : containerRef.current.parentElement);\r\n }\r\n }, [hasChildren]);\r\n\r\n const processResize = React.useCallback((width?: number, height?: number) => {\r\n // istanbul ignore next\r\n onResize(width ?? 0, height ?? 0);\r\n }, [onResize]);\r\n\r\n useLayoutResizeObserver(containerElement, processResize);\r\n const style: React.CSSProperties = hasChildren ? { width: \"100%\", height: \"100%\" } : { display: \"none\" };\r\n\r\n return (\r\n <div ref={containerRef} className=\"uicore-resizable-container\" style={style}>\r\n {hasChildren && children}\r\n </div>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"useResizeObserver.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useResizeObserver.tsx"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,+BAA+B;AAC/B,qEAA0D;AAC1D,iDAA8C;AAC9C,uCAAoC;AAEpC;;IAEI;AACJ,SAAgB,iBAAiB,CAAoB,QAAkD;IACrG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IACpE,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,kEAAkE;I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,CAAC;AA7BD,gEA6BC","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 { ResizeObserver } 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>(onResize?: (width: number, height: number) => void) {\n const [bounds, setBounds] = React.useState({ 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 // istanbul ignore next\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(\"beforeunload\", resizeObserverCleanup);\n };\n }, []);\n\n const processResize = React.useCallback((target: HTMLElement) => {\n const newBounds = target.getBoundingClientRect();\n // istanbul ignore else\n if (isMountedRef.current && (bounds.width !== newBounds.width || bounds.height !== newBounds.height)) {\n setBounds(newBounds);\n onResize && onResize(newBounds.width, newBounds.height);\n }\n }, [onResize, bounds.height, bounds.width]);\n\n const handleResize = React.useCallback((entries: any[]) => {\n // istanbul ignore if\n if (!isMountedRef.current || !Array.isArray(entries) || 0 === entries.length) {\n return;\n }\n const target = entries[0].target as HTMLElement;\n // istanbul ignore next\n owningWindowRef.current && owningWindowRef.current.removeEventListener(\"beforeunload\", resizeObserverCleanup);\n\n owningWindowRef.current = target.ownerDocument.defaultView;\n // istanbul ignore else\n if (owningWindowRef.current) {\n owningWindowRef.current.addEventListener(\"unload\", resizeObserverCleanup);\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(() => processResize(target));\n }\n }, [processResize]);\n\n const observerRef = useRefEffect((instance: T | null) => {\n resizeObserver.current = new ResizeObserver(handleResize);\n if (instance) {\n resizeObserver.current.observe(instance);\n const newBounds = instance.getBoundingClientRect();\n onResize && onResize(newBounds.width, newBounds.height);\n setBounds(newBounds);\n }\n\n return () => {\n instance && ( /* istanbul ignore next */resizeObserver.current?.unobserve(instance));\n resizeObserver.current = null;\n };\n }, [handleResize, onResize]);\n\n const handleRef = React.useCallback((instance: Element | null) => {\n const newBounds = instance && instance.getBoundingClientRect();\n // istanbul ignore if\n if (newBounds && (bounds.width !== newBounds.width || bounds.height !== newBounds.height)) {\n setBounds(newBounds);\n onResize && onResize(newBounds.width, newBounds.height);\n }\n }, [bounds.height, bounds.width, onResize]);\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(inElement: HTMLElement | null, onResize?: (width?: number, height?: number) => void) {\n const inBoundingRect = inElement?.getBoundingClientRect();\n const [bounds, setBounds] = React.useState<{ width?: number, height?: number }>({ 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 // istanbul ignore next\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 // istanbul ignore next\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 && owningWindowRef.current) && owningWindowRef.current.cancelAnimationFrame(rafRef.current);\n owningWindowRef.current && owningWindowRef.current.removeEventListener(\"beforeunload\", resizeObserverCleanup);\n };\n }, [onResize, inElement]);\n\n const processResize = React.useCallback((target: HTMLElement) => {\n const newBounds = target.getBoundingClientRect();\n // istanbul ignore next\n if (isMountedRef.current && (bounds.width !== newBounds.width || bounds.height !== newBounds.height)) {\n onResize && onResize(newBounds.width, newBounds.height);\n setBounds(newBounds);\n }\n }, [bounds.height, bounds.width, onResize]);\n\n const handleResize = React.useCallback((entries: any[]) => {\n // istanbul ignore next\n if (!isMountedRef.current || !Array.isArray(entries) || 0 === entries.length) {\n return;\n }\n const target = entries[0].target as HTMLElement;\n // istanbul ignore next\n if (owningWindowRef.current)\n owningWindowRef.current.removeEventListener(\"beforeunload\", resizeObserverCleanup);\n\n owningWindowRef.current = target.ownerDocument.defaultView;\n // istanbul ignore else\n if (owningWindowRef.current) {\n owningWindowRef.current.addEventListener(\"unload\", resizeObserverCleanup);\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(() => processResize(target));\n }\n }, [processResize]);\n\n React.useLayoutEffect(() => {\n if (!watchedElement) {\n return;\n }\n resizeObserver.current = new ResizeObserver(handleResize);\n resizeObserver.current.observe(watchedElement);\n return () => {\n // istanbul ignore next\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 */\nexport function ElementResizeObserver({ watchedElement, render }: { watchedElement: HTMLElement | null, render: (props: RenderPropsArgs) => JSX.Element }) {\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 */\nexport function ResizableContainerObserver({ onResize, children }: { onResize: (width: number, height: number) => void, children?: React.ReactNode }) {\n const containerRef = React.useRef<HTMLDivElement>(null); // set to non-zero when requestAnimationFrame processing is active\n const [containerElement, setContainerElement] = 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 // istanbul ignore next\n if (!isMountedRef.current && containerRef.current) {\n isMountedRef.current = true;\n const hasParent = !!containerRef.current.parentElement;\n setContainerElement(hasChildren && hasParent ? containerRef.current : containerRef.current.parentElement);\n }\n }, [hasChildren]);\n\n const processResize = React.useCallback((width?: number, height?: number) => {\n // istanbul ignore next\n onResize(width ?? 0, height ?? 0);\n }, [onResize]);\n\n useLayoutResizeObserver(containerElement, processResize);\n const style: React.CSSProperties = hasChildren ? { width: \"100%\", height: \"100%\" } : { display: \"none\" };\n\n return (\n <div ref={containerRef} className=\"uicore-resizable-container\" style={style}>\n {hasChildren && children}\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useTargeted.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useTargeted.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAE/B;;GAEG;AACI,MAAM,WAAW,GAAG,CAAC,GAA6B,EAAE,EAAE;IAC3D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,yBAAyB,GAAG,CAAC,CAAe,EAAE,EAAE;YACpD,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,YAAY,IAAI,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3G,CAAC,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;QACpE,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;QACzE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACV,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAZW,QAAA,WAAW,eAYtB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport * as React from \"react\";\r\n\r\n/** Returns a stateful value that indicates if the component is targeted/hovered.\r\n * @internal\r\n */\r\nexport const useTargeted = (ref: React.RefObject<Element>) => {\r\n const [targeted, setTargeted] = React.useState(false);\r\n React.useEffect(() => {\r\n const handleDocumentPointerMove = (e: PointerEvent) => {\r\n setTargeted(!!ref.current && !!e.target && (e.target instanceof Node) && ref.current.contains(e.target));\r\n };\r\n document.addEventListener(\"pointermove\", handleDocumentPointerMove);\r\n return () => {\r\n document.removeEventListener(\"pointermove\", handleDocumentPointerMove);\r\n };\r\n }, [ref]);\r\n return targeted;\r\n};\r\n"]}
1
+ {"version":3,"file":"useTargeted.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useTargeted.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAE/B;;GAEG;AACI,MAAM,WAAW,GAAG,CAAC,GAA6B,EAAE,EAAE;IAC3D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,yBAAyB,GAAG,CAAC,CAAe,EAAE,EAAE;YACpD,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,YAAY,IAAI,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3G,CAAC,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;QACpE,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;QACzE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACV,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAZW,QAAA,WAAW,eAYtB","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 */\n\nimport * as React from \"react\";\n\n/** Returns a stateful value that indicates if the component is targeted/hovered.\n * @internal\n */\nexport const useTargeted = (ref: React.RefObject<Element>) => {\n const [targeted, setTargeted] = React.useState(false);\n React.useEffect(() => {\n const handleDocumentPointerMove = (e: PointerEvent) => {\n setTargeted(!!ref.current && !!e.target && (e.target instanceof Node) && ref.current.contains(e.target));\n };\n document.addEventListener(\"pointermove\", handleDocumentPointerMove);\n return () => {\n document.removeEventListener(\"pointermove\", handleDocumentPointerMove);\n };\n }, [ref]);\n return targeted;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useThrottledFn.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useThrottledFn.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,mCAAkC;AAUlC,MAAM,cAAc,GAAqB;IACvC,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF;;GAEG;AACH,SAAgB,cAAc,CAC5B,kBAAqB,EACrB,QAAgB,EAChB,YAAkC,EAClC,UAA4B,cAAc;IAE1C,MAAM,iBAAiB,GAAG,IAAA,iBAAQ,EAAC,kBAAkB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1E,uDAAuD;IACvD,OAAO,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;AAC5D,CAAC;AATD,wCASC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { throttle } from \"lodash\";\r\n\r\n/** lodash throttle options\r\n * @internal\r\n */\r\nexport interface ThrottleSettings {\r\n leading: boolean;\r\n trailing: boolean;\r\n}\r\n\r\nconst defaultOptions: ThrottleSettings = {\r\n leading: false,\r\n trailing: true,\r\n};\r\n\r\n/** Used to throttle function calls\r\n * @internal\r\n */\r\nexport function useThrottledFn<T extends (...args: any) => any>(\r\n functionToThrottle: T,\r\n waitTime: number,\r\n dependencies: React.DependencyList,\r\n options: ThrottleSettings = defaultOptions,\r\n) {\r\n const throttledFunction = throttle(functionToThrottle, waitTime, options);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n return React.useCallback(throttledFunction, dependencies);\r\n}\r\n"]}
1
+ {"version":3,"file":"useThrottledFn.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useThrottledFn.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,mCAAkC;AAUlC,MAAM,cAAc,GAAqB;IACvC,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF;;GAEG;AACH,SAAgB,cAAc,CAC5B,kBAAqB,EACrB,QAAgB,EAChB,YAAkC,EAClC,UAA4B,cAAc;IAE1C,MAAM,iBAAiB,GAAG,IAAA,iBAAQ,EAAC,kBAAkB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1E,uDAAuD;IACvD,OAAO,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;AAC5D,CAAC;AATD,wCASC","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 */\n\nimport * as React from \"react\";\nimport { throttle } from \"lodash\";\n\n/** lodash throttle options\n * @internal\n */\nexport interface ThrottleSettings {\n leading: boolean;\n trailing: boolean;\n}\n\nconst defaultOptions: ThrottleSettings = {\n leading: false,\n trailing: true,\n};\n\n/** Used to throttle function calls\n * @internal\n */\nexport function useThrottledFn<T extends (...args: any) => any>(\n functionToThrottle: T,\n waitTime: number,\n dependencies: React.DependencyList,\n options: ThrottleSettings = defaultOptions,\n) {\n const throttledFunction = throttle(functionToThrottle, waitTime, options);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(throttledFunction, dependencies);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useWidgetOpacityContext.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useWidgetOpacityContext.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAU/B;;;GAGG;AACH,gEAAgE;AACnD,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAA4B;IACjF,YAAY,EAAE,0BAA0B,CAAC,CAAC,WAAqC,EAAE,EAAE,CAAC,KAAK,EAAE;IAC3F,cAAc,EAAE,GAAG;CACpB,CAAC,CAAC;AAEH;;GAEG;AACH,SAAgB,uBAAuB;IACrC,OAAO,KAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AAChD,CAAC;AAFD,0DAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport * as React from \"react\";\r\n\r\n/** Properties for [[WidgetOpacityContext]]\r\n * @internal\r\n */\r\nexport interface WidgetOpacityContextProps {\r\n readonly onElementRef: (elementRef: React.RefObject<Element>) => void;\r\n readonly proximityScale: number;\r\n}\r\n\r\n/**\r\n * Context used by Widgets and child components to process opacity changes based on mouse proximity.\r\n * @internal\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport const WidgetOpacityContext = React.createContext<WidgetOpacityContextProps>({\r\n onElementRef: /* istanbul ignore next */ (_elementRef: React.RefObject<Element>) => void {},\r\n proximityScale: 1.0,\r\n});\r\n\r\n/** Hook for using [[WidgetOpacityContext]]\r\n * @internal\r\n */\r\nexport function useWidgetOpacityContext() {\r\n return React.useContext(WidgetOpacityContext);\r\n}\r\n"]}
1
+ {"version":3,"file":"useWidgetOpacityContext.js","sourceRoot":"","sources":["../../../../../src/core-react/utils/hooks/useWidgetOpacityContext.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAU/B;;;GAGG;AACH,gEAAgE;AACnD,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAA4B;IACjF,YAAY,EAAE,0BAA0B,CAAC,CAAC,WAAqC,EAAE,EAAE,CAAC,KAAK,EAAE;IAC3F,cAAc,EAAE,GAAG;CACpB,CAAC,CAAC;AAEH;;GAEG;AACH,SAAgB,uBAAuB;IACrC,OAAO,KAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AAChD,CAAC;AAFD,0DAEC","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 */\n\nimport * as React from \"react\";\n\n/** Properties for [[WidgetOpacityContext]]\n * @internal\n */\nexport interface WidgetOpacityContextProps {\n readonly onElementRef: (elementRef: React.RefObject<Element>) => void;\n readonly proximityScale: number;\n}\n\n/**\n * Context used by Widgets and child components to process opacity changes based on mouse proximity.\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const WidgetOpacityContext = React.createContext<WidgetOpacityContextProps>({\n onElementRef: /* istanbul ignore next */ (_elementRef: React.RefObject<Element>) => void {},\n proximityScale: 1.0,\n});\n\n/** Hook for using [[WidgetOpacityContext]]\n * @internal\n */\nexport function useWidgetOpacityContext() {\n return React.useContext(WidgetOpacityContext);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"isPromiseLike.js","sourceRoot":"","sources":["../../../../src/core-react/utils/isPromiseLike.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;GAEG;AACH,SAAgB,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,IAAI,CAAC,OAAQ,GAAW,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC;AAC3F,CAAC;AAFD,sCAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\n/** Checks if the specified argument is a promise\r\n * @internal\r\n */\r\nexport function isPromiseLike(obj: unknown): obj is PromiseLike<unknown> {\r\n return !!(obj && (typeof obj === \"object\") && (typeof (obj as any).then === \"function\"));\r\n}\r\n"]}
1
+ {"version":3,"file":"isPromiseLike.js","sourceRoot":"","sources":["../../../../src/core-react/utils/isPromiseLike.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;GAEG;AACH,SAAgB,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,IAAI,CAAC,OAAQ,GAAW,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC;AAC3F,CAAC;AAFD,sCAEC","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 */\n\n/** Checks if the specified argument is a promise\n * @internal\n */\nexport function isPromiseLike(obj: unknown): obj is PromiseLike<unknown> {\n return !!(obj && (typeof obj === \"object\") && (typeof (obj as any).then === \"function\"));\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"shallowDiffers.js","sourceRoot":"","sources":["../../../../src/core-react/utils/shallowDiffers.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;GAEG;AACI,MAAM,cAAc,GAAG,CAAC,CAAqC,EAAE,CAAqC,EAAW,EAAE;IACtH,IAAI,CAAC,KAAK,CAAC;QACT,OAAO,KAAK,CAAC;IACf,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS;QACpC,OAAO,IAAI,CAAC;IACd,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE;QACjB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACX,OAAO,IAAI,CAAC;KACf;IACD,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE;QACjB,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACf,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAdW,QAAA,cAAc,kBAczB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\n/** Performs a shallow difference check on two objects.\r\n * @internal\r\n */\r\nexport const shallowDiffers = (a: { [key: string]: any } | undefined, b: { [key: string]: any } | undefined): boolean => {\r\n if (a === b)\r\n return false;\r\n if (a === undefined || b === undefined)\r\n return true;\r\n for (const i in a) {\r\n if (!(i in b))\r\n return true;\r\n }\r\n for (const i in b) {\r\n if (a[i] !== b[i])\r\n return true;\r\n }\r\n return false;\r\n};\r\n"]}
1
+ {"version":3,"file":"shallowDiffers.js","sourceRoot":"","sources":["../../../../src/core-react/utils/shallowDiffers.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;GAEG;AACI,MAAM,cAAc,GAAG,CAAC,CAAqC,EAAE,CAAqC,EAAW,EAAE;IACtH,IAAI,CAAC,KAAK,CAAC;QACT,OAAO,KAAK,CAAC;IACf,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS;QACpC,OAAO,IAAI,CAAC;IACd,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE;QACjB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACX,OAAO,IAAI,CAAC;KACf;IACD,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE;QACjB,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACf,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAdW,QAAA,cAAc,kBAczB","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 */\n\n/** Performs a shallow difference check on two objects.\n * @internal\n */\nexport const shallowDiffers = (a: { [key: string]: any } | undefined, b: { [key: string]: any } | undefined): boolean => {\n if (a === b)\n return false;\n if (a === undefined || b === undefined)\n return true;\n for (const i in a) {\n if (!(i in b))\n return true;\n }\n for (const i in b) {\n if (a[i] !== b[i])\n return true;\n }\n return false;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"typeUtils.js","sourceRoot":"","sources":["../../../../src/core-react/utils/typeUtils.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\n/** Used to omit properties in a given interface\r\n * @public\r\n */\r\nexport type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;\r\n"]}
1
+ {"version":3,"file":"typeUtils.js","sourceRoot":"","sources":["../../../../src/core-react/utils/typeUtils.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 */\n\n/** Used to omit properties in a given interface\n * @public\n */\nexport type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-react.js","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;AAE/F,gFAAgF;AAEhF,sDAAoC;AAEpC,2DAAyC;AACzC,oEAAkD;AAClD,+DAA6C;AAC7C,8DAA4C;AAE5C,wDAAsC;AACtC,wEAAsD;AACtD,6DAA2C;AAC3C,iEAA+C;AAC/C,sEAAoD;AACpD,wDAAsC;AACtC,kEAAgD;AAChD,+DAA6C;AAE7C,uEAAqD;AAErD,yEAAuD;AAEvD,uEAAqD;AACrD,gFAA8D;AAC9D,8EAA4D;AAC5D,2EAAyD;AACzD,0EAAwD;AACxD,6EAA2D;AAC3D,4EAA0D;AAE1D,6DAA2C;AAC3C,mEAAiD;AAEjD,iFAA+D;AAE/D,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,gEAA8C;AAE9C,yEAAuD;AAEvD,2EAAyD;AACzD,mEAAiD;AAEjD,kEAAgD;AAChD,uEAAqD;AACrD,gEAA8C;AAE9C,yEAAuD;AACvD,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAE/C,uEAAqD;AAErD,2EAAyD;AAEzD,iEAA+C;AAC/C,kEAAgD;AAChD,0EAAwD;AACxD,4EAA0D;AAC1D,8EAA4D;AAE5D,+DAA6C;AAE7C,kEAAg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AGG;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":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore focustrap imagecheckbox iconinput hocs numberinput numericinput\r\n\r\nexport * from \"./core-react/UiCore\";\r\n\r\nexport * from \"./core-react/badge/Badge\";\r\nexport * from \"./core-react/badge/BadgeUtilities\";\r\nexport * from \"./core-react/badge/BetaBadge\";\r\nexport * from \"./core-react/badge/NewBadge\";\r\n\r\nexport * from \"./core-react/base/Div\";\r\nexport * from \"./core-react/base/DivWithOutsideClick\";\r\nexport * from \"./core-react/base/Centered\";\r\nexport * from \"./core-react/base/FillCentered\";\r\nexport * from \"./core-react/base/FlexWrapContainer\";\r\nexport * from \"./core-react/base/Gap\";\r\nexport * from \"./core-react/base/PointerEvents\";\r\nexport * from \"./core-react/base/ScrollView\";\r\n\r\nexport * from \"./core-react/button/UnderlinedButton\";\r\n\r\nexport * from \"./core-react/checklistbox/CheckListBox\";\r\n\r\nexport * from \"./core-react/contextmenu/ContextMenu\";\r\nexport * from \"./core-react/contextmenu/ContextMenuDirection\";\r\nexport * from \"./core-react/contextmenu/ContextMenuDivider\";\r\nexport * from \"./core-react/contextmenu/ContextMenuItem\";\r\nexport * from \"./core-react/contextmenu/ContextSubMenu\";\r\nexport * from \"./core-react/contextmenu/GlobalContextMenu\";\r\nexport * from \"./core-react/contextmenu/PopupContextMenu\";\r\n\r\nexport * from \"./core-react/dialog/Dialog\";\r\nexport * from \"./core-react/dialog/GlobalDialog\";\r\n\r\nexport * from \"./core-react/elementseparator/ElementSeparator\";\r\n\r\nexport * from \"./core-react/enums/Alignment\";\r\nexport * from \"./core-react/enums/CheckBoxState\";\r\nexport * from \"./core-react/enums/Orientation\";\r\nexport * from \"./core-react/enums/SortDirection\";\r\nexport * from \"./core-react/enums/TimeFormat\";\r\n\r\nexport * from \"./core-react/expandable/ExpandableList\";\r\n\r\nexport * from \"./core-react/focus/ItemKeyboardNavigator\";\r\nexport * from \"./core-react/focustrap/FocusTrap\";\r\n\r\nexport * from \"./core-react/hocs/withIsPressed\";\r\nexport * from \"./core-react/hocs/withOnOutsideClick\";\r\nexport * from \"./core-react/hocs/withTimeout\";\r\n\r\nexport * from \"./core-react/icons/ConditionalIconItem\";\r\nexport * from \"./core-react/icons/IconComponent\";\r\nexport * from \"./core-react/icons/SvgPath\";\r\nexport * from \"./core-react/icons/WebFontIcon\";\r\n\r\nexport * from \"./core-react/autosuggest/AutoSuggest\";\r\n\r\nexport * from \"./core-react/imagecheckbox/ImageCheckBox\";\r\n\r\nexport * from \"./core-react/inputs/InputLabel\";\r\nexport * from \"./core-react/inputs/InputStatus\";\r\nexport * from \"./core-react/inputs/iconinput/IconInput\";\r\nexport * from \"./core-react/inputs/LabeledComponentProps\";\r\nexport * from \"./core-react/inputs/numberinput/NumberInput\";\r\n\r\nexport * from \"./core-react/listbox/Listbox\";\r\n\r\nexport * from \"./core-react/loading/LoadingBar\";\r\nexport * from \"./core-react/loading/LoadingPrompt\";\r\nexport * from \"./core-react/loading/LoadingSpinner\";\r\nexport * from \"./core-react/loading/LoadingStatus\";\r\n\r\nexport * from \"./core-react/messagebox/MessageBox\";\r\n\r\nexport * from \"./core-react/notification/MessageRenderer\";\r\nexport * from \"./core-react/notification/MessageType\";\r\n\r\nexport * from \"./core-react/popup/Popup\";\r\n\r\nexport * from \"./core-react/radialmenu/RadialMenu\";\r\nexport * from \"./core-react/radialmenu/Annulus\";\r\n\r\nexport * from \"./core-react/searchbox/SearchBox\";\r\n\r\nexport * from \"./core-react/settings/SettingsManager\";\r\nexport * from \"./core-react/settings/SettingsContainer\";\r\n\r\nexport * from \"./core-react/tabs/VerticalTabs\";\r\nexport * from \"./core-react/tabs/Tabs\";\r\n\r\nexport * from \"./core-react/text/BodyText\";\r\nexport * from \"./core-react/text/BlockText\";\r\nexport * from \"./core-react/text/DisabledText\";\r\nexport * from \"./core-react/text/FilteredText\";\r\nexport * from \"./core-react/text/MutedText\";\r\nexport * from \"./core-react/text/StyledText\";\r\nexport * from \"./core-react/text/TextProps\";\r\n\r\nexport { ExpansionToggle, ExpansionToggleProps } from \"./core-react/tree/ExpansionToggle\";\r\nexport { TreeBranch, TreeBranchProps } from \"./core-react/tree/Branch\";\r\nexport { TreeNode, TreeNodeProps, NodeCheckboxProps, NodeCheckboxRenderer, NodeCheckboxRenderProps } from \"./core-react/tree/Node\";\r\nexport { Tree, TreeProps } from \"./core-react/tree/Tree\";\r\nexport { TreeNodePlaceholder, TreeNodePlaceholderProps } from \"./core-react/tree/Placeholder\";\r\n\r\nexport * from \"./core-react/uistate/UiStateEntry\";\r\nexport * from \"./core-react/uistate/UiStateStorage\";\r\nexport * from \"./core-react/uistate/LocalStateStorage\";\r\n\r\nexport * from \"./core-react/utils/IconHelper\";\r\nexport * from \"./core-react/utils/Point\";\r\nexport * from \"./core-react/utils/Props\";\r\nexport * from \"./core-react/utils/Rectangle\";\r\nexport * from \"./core-react/utils/Size\";\r\nexport * from \"./core-react/utils/Timer\";\r\nexport * from \"./core-react/utils/UiGeometry\";\r\nexport * from \"./core-react/utils/flattenChildren\";\r\nexport * from \"./core-react/utils/getBestBWContrastColor\";\r\nexport * from \"./core-react/utils/getCssVariable\";\r\nexport * from \"./core-react/utils/getDisplayName\";\r\nexport * from \"./core-react/utils/getUserColor\";\r\nexport * from \"./core-react/utils/shallowDiffers\";\r\nexport * from \"./core-react/utils/typeUtils\";\r\nexport * from \"./core-react/utils/isPromiseLike\";\r\nexport * from \"./core-react/utils/ScrollPositionMaintainer\";\r\n\r\nexport * from \"./core-react/utils/hooks/useDisposable\";\r\nexport * from \"./core-react/utils/hooks/useEffectSkipFirst\";\r\nexport * from \"./core-react/utils/hooks/useEventListener\";\r\nexport * from \"./core-react/utils/hooks/ResizeObserverPolyfill\";\r\nexport * from \"./core-react/utils/hooks/useOnOutsideClick\";\r\nexport * from \"./core-react/utils/hooks/useProximityToMouse\";\r\nexport * from \"./core-react/utils/hooks/useRefEffect\";\r\nexport * from \"./core-react/utils/hooks/useRefs\";\r\nexport * from \"./core-react/utils/hooks/useRefState\";\r\nexport * from \"./core-react/utils/hooks/useResizeObserver\";\r\nexport * from \"./core-react/utils/hooks/useTargeted\";\r\nexport * from \"./core-react/utils/hooks/useWidgetOpacityContext\";\r\nexport * from \"./core-react/utils/hooks/useInterval\";\r\nexport * from \"./core-react/utils/hooks/useCrossOriginPopup\";\r\n\r\n/** @docs-package-description\r\n * The core-react package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\r\n * For more information, see [learning about core-react]($docs/learning/ui/core/index.md).\r\n */\r\n/**\r\n * @docs-group-description AutoSuggest\r\n * Component for input with an auto-suggestion dropdown.\r\n */\r\n/**\r\n * @docs-group-description Base\r\n * Low-level classes and components for building application UI.\r\n */\r\n/**\r\n * @docs-group-description Button\r\n * Components for working with various Buttons.\r\n */\r\n/**\r\n * @docs-group-description Checkbox\r\n * Component is a wrapper for the `<input type=\"checkbox\">` HTML element.\r\n */\r\n/**\r\n * @docs-group-description CheckListBox\r\n * Components for working with a Check listbox.\r\n */\r\n/**\r\n * @docs-group-description Common\r\n * Common classes and enums used across various UI components.\r\n */\r\n/**\r\n * @docs-group-description ContextMenu\r\n * Components for working with a Context Menu.\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Components for working with a Dialog or MessageBox.\r\n */\r\n/**\r\n * @docs-group-description ElementSeparator\r\n * Components for working with a ElementSeparator.\r\n */\r\n/**\r\n * @docs-group-description Expandable\r\n * Components for working with a ExpandableBlock or ExpandableList.\r\n */\r\n/**\r\n * @docs-group-description Form\r\n * Components used to create a Form using supplied properties to specify fields.\r\n */\r\n/**\r\n * @docs-group-description Icon\r\n * Component that renders core-react icon when given an icon name or SVG source.\r\n */\r\n/**\r\n * @docs-group-description Inputs\r\n * Components for working with input controls, such as Input, IconInput and NumberInput.\r\n */\r\n/**\r\n * @docs-group-description Loading\r\n * Components for working with Loading spinners and progress indicators and bars.\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Components for working with messages and tooltips.\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Components for working with a Popup.\r\n */\r\n/**\r\n * @docs-group-description RadialMenu\r\n * Components for working with a RadialMenu.\r\n */\r\n/**\r\n * @docs-group-description Radio\r\n * Component is a wrapper for the `<input type=\"radio\">` HTML element.\r\n */\r\n/**\r\n * @docs-group-description SearchBox\r\n * Components for working with a SearchBox.\r\n */\r\n/**\r\n * @docs-group-description Select\r\n * Component is a wrapper for the `<select>` HTML element.\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Manager and UI Components that allow users to modify settings for different packages and extensions.\r\n */\r\n/**\r\n * @docs-group-description Slider\r\n * Component displays a range slider with thumbs for changing the value.\r\n */\r\n/**\r\n * @docs-group-description SplitButton\r\n * Components for working with a SplitButton.\r\n */\r\n/**\r\n * @docs-group-description Tabs\r\n * Components for working with horizontal or vertical tabs.\r\n */\r\n/**\r\n * @docs-group-description Text\r\n * Components for working with styled text.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Components for a container rendering elements that can be grouped together.\r\n */\r\n/**\r\n * @docs-group-description Toggle\r\n * Components for working with a Toggle switch.\r\n */\r\n/**\r\n * @docs-group-description Tooltip\r\n * Components for working with a Tooltip.\r\n */\r\n/**\r\n * @docs-group-description Tree\r\n * Presentation React components for working with a Tree.\r\n */\r\n/**\r\n * @docs-group-description UiStateStorage\r\n * Interfaces and classes for working with persistent UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes, functions and React hooks for working with a UI.\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OAAA;AACxB,mDAAuE;AAA9D,oGAAA,UAAU,OAAA;AACnB,+CAAmI;AAA1H,gGAAA,QAAQ,OAAA;AACjB,+CAAyD;AAAhD,4FAAA,IAAI,OAAA;AACb,6DAA8F;AAArF,kHAAA,mBAAmB,OAAA;AAE5B,oEAAkD;AAClD,sEAAoD;AACpD,yEAAuD;AAEvD,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,qEAAmD;AACnD,4EAA0D;AAC1D,oEAAkD;AAClD,oEAAkD;AAClD,kEAAgD;AAChD,oEAAkD;AAClD,+DAA6C;AAC7C,mEAAiD;AACjD,8EAA4D;AAE5D,yEAAuD;AACvD,8EAA4D;AAC5D,4EAA0D;AAC1D,kFAAgE;AAChE,6EAA2D;AAC3D,+EAA6D;AAC7D,wEAAsD;AACtD,mEAAiD;AACjD,uEAAqD;AACrD,6EAA2D;AAC3D,uEAAqD;AACrD,mFAAiE;AACjE,uEAAqD;AACrD,+EAA6D;AAE7D;;;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\n// cSpell:ignore focustrap imagecheckbox iconinput hocs numberinput numericinput\n\nexport * from \"./core-react/UiCore\";\n\nexport * from \"./core-react/badge/Badge\";\nexport * from \"./core-react/badge/BadgeUtilities\";\nexport * from \"./core-react/badge/BetaBadge\";\nexport * from \"./core-react/badge/NewBadge\";\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 * 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 { ExpansionToggle, ExpansionToggleProps } from \"./core-react/tree/ExpansionToggle\";\nexport { TreeBranch, TreeBranchProps } from \"./core-react/tree/Branch\";\nexport { TreeNode, TreeNodeProps, NodeCheckboxProps, NodeCheckboxRenderer, NodeCheckboxRenderProps } from \"./core-react/tree/Node\";\nexport { Tree, TreeProps } from \"./core-react/tree/Tree\";\nexport { TreeNodePlaceholder, TreeNodePlaceholderProps } 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\";\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\";\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\n/** @docs-package-description\n * The core-react package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\n * For more information, see [learning about core-react]($docs/learning/ui/core/index.md).\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 +1 @@
1
- {"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,4EAA4E;AAC5E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,2CAA2C;AAE3C;;;GAGG;AACH,MAAa,MAAM;IAIjB;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,YAA0B;QACvD,IAAI,MAAM,CAAC,YAAY,EAAE;YACvB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,kCAAkC,CAAC,CAAC;YAClF,OAAO;SACR;QAED,MAAM,CAAC,aAAa,GAAG,YAAY,CAAC;QACpC,MAAM,MAAM,CAAC,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC3E,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,SAAS;YACvD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;QAE/D,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IAED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S,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC;IAClB,CAAC;;AAtEc,mBAAY,GAAG,KAAK,CAAC;SADzB,MAAM","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\n/** Import color variables, layout variables and Sass classes barrel file */\r\nimport \"./colorthemes.scss\";\r\nimport \"./colorvariables.scss\";\r\nimport \"./layout-variables.scss\";\r\nimport \"./classes.scss\";\r\n\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\nimport { getClassName, UiError } from \"@itwin/appui-abstract\";\r\nimport { IconWebComponent } from \"./utils/IconWebComponent\";\r\n// cSpell:ignore colorthemes colorvariables\r\n\r\n/**\r\n * Manages the Localization service for the core-react package.\r\n * @public\r\n */\r\nexport class UiCore {\r\n private static _initialized = false;\r\n private static _localization?: Localization;\r\n\r\n /**\r\n * Registers the Localization service namespace for UiCore.\r\n * @param localization The internationalization service created by the host application.\r\n */\r\n public static async initialize(localization: Localization): Promise<void> {\r\n if (UiCore._initialized) {\r\n Logger.logInfo(UiCore.loggerCategory(UiCore), `UiCore.initialize already called`);\r\n return;\r\n }\r\n\r\n UiCore._localization = localization;\r\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\r\n if (window.customElements.get(\"svg-loader\") === undefined)\r\n window.customElements.define(\"svg-loader\", IconWebComponent);\r\n\r\n UiCore._initialized = true;\r\n }\r\n\r\n /** Unregisters the UiCore localization namespace */\r\n public static terminate() {\r\n if (UiCore._localization)\r\n UiCore._localization.unregisterNamespace(UiCore.localizationNamespace);\r\n UiCore._localization = undefined;\r\n\r\n UiCore._initialized = false;\r\n }\r\n\r\n /** Determines if UiCore has been initialized */\r\n public static get initialized(): boolean { return UiCore._initialized; }\r\n\r\n /** The internationalization service created by the host application.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore else\r\n if (!UiCore._localization)\r\n throw new UiError(UiCore.loggerCategory(this), \"localization: UiCore.initialize has not been called. Unable to return Localization object.\");\r\n // istanbul ignore next\r\n return UiCore._localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiCore\";\r\n }\r\n\r\n /** Calls localization.getLocalizedStringWithNamespace with the \"UiCore\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n if (!UiCore._localization) {\r\n Logger.logError(UiCore.loggerCategory(this), `translate: UiCore must be initialize with a localization provider. Returning blank string.`);\r\n return \"\";\r\n }\r\n return UiCore._localization.getLocalizedString(key, { ns: UiCore.localizationNamespace });\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"core-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,4EAA4E;AAC5E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,2CAA2C;AAE3C;;;GAGG;AACH,MAAa,MAAM;IAIjB;;;OAGG;IACI,MAAM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,MAAM,CAAC,aAAa,EAAE;YACzB,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,4FAA4F,CAAC,CAAC;YAC3I,OAAO,EAAE,CAAC;SACX;QACD,OAAO,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED,gBAAgB;IACT,MAAM,KAAK,WAAW;QAC3B,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,cAAc,CAAC,GAAQ;QACnC,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC;IAClB,CAAC;;AAtEc,mBAAY,GAAG,KAAK,CAAC;SADzB,MAAM","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 */\n\n/** Import color variables, layout variables and Sass classes barrel file */\nimport \"./colorthemes.scss\";\nimport \"./colorvariables.scss\";\nimport \"./layout-variables.scss\";\nimport \"./classes.scss\";\n\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { Localization } from \"@itwin/core-common\";\nimport { getClassName, UiError } from \"@itwin/appui-abstract\";\nimport { IconWebComponent } from \"./utils/IconWebComponent\";\n// cSpell:ignore colorthemes colorvariables\n\n/**\n * Manages the Localization service for the core-react package.\n * @public\n */\nexport class UiCore {\n private static _initialized = false;\n private static _localization?: Localization;\n\n /**\n * Registers the Localization service namespace for UiCore.\n * @param localization The internationalization service created by the host application.\n */\n public static async initialize(localization: Localization): Promise<void> {\n if (UiCore._initialized) {\n Logger.logInfo(UiCore.loggerCategory(UiCore), `UiCore.initialize already called`);\n return;\n }\n\n UiCore._localization = localization;\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\n if (window.customElements.get(\"svg-loader\") === undefined)\n window.customElements.define(\"svg-loader\", IconWebComponent);\n\n UiCore._initialized = true;\n }\n\n /** Unregisters the UiCore localization namespace */\n public static terminate() {\n if (UiCore._localization)\n UiCore._localization.unregisterNamespace(UiCore.localizationNamespace);\n UiCore._localization = undefined;\n\n UiCore._initialized = false;\n }\n\n /** Determines if UiCore has been initialized */\n public static get initialized(): boolean { return UiCore._initialized; }\n\n /** The internationalization service created by the host application.\n * @internal\n */\n public static get localization(): Localization {\n // istanbul ignore else\n if (!UiCore._localization)\n throw new UiError(UiCore.loggerCategory(this), \"localization: UiCore.initialize has not been called. Unable to return Localization object.\");\n // istanbul ignore next\n return UiCore._localization;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiCore\";\n }\n\n /** Calls localization.getLocalizedStringWithNamespace with the \"UiCore\" namespace. Do NOT include the namespace in the key.\n * @internal\n */\n public static translate(key: string | string[]): string {\n if (!UiCore._localization) {\n Logger.logError(UiCore.loggerCategory(this), `translate: UiCore must be initialize with a localization provider. Returning blank string.`);\n return \"\";\n }\n return UiCore._localization.getLocalizedString(key, { ns: UiCore.localizationNamespace });\n }\n\n /** @internal */\n public static get packageName(): string {\n return \"core-react\";\n }\n\n /** @internal */\n public static loggerCategory(obj: any): string {\n const className = getClassName(obj);\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\n return category;\n }\n\n}\n"]}
@@ -1,70 +1,70 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @mixin triangle-common {
6
- width: 0;
7
- height: 0;
8
- border-style: solid;
9
- }
10
-
11
- @mixin triangle-left-color($color) {
12
- border-color: transparent $color transparent transparent;
13
- }
14
-
15
- @mixin triangle-left($height, $width: $height, $color: currentColor) {
16
- border-width: ($height * 0.5) $width ($height * 0.5) 0;
17
-
18
- @include triangle-common;
19
- @include triangle-left-color($color);
20
- }
21
-
22
- @mixin triangle-top-color($color) {
23
- border-color: transparent transparent $color transparent;
24
- }
25
-
26
- @mixin triangle-top($height, $width: $height, $color: currentColor) {
27
- border-width: 0 ($width * 0.5) $height ($width * 0.5);
28
-
29
- @include triangle-common;
30
- @include triangle-top-color($color);
31
- }
32
-
33
- @mixin triangle-right-color($color) {
34
- border-color: transparent transparent transparent $color;
35
- }
36
-
37
- @mixin triangle-right($height, $width: $height, $color: currentColor) {
38
- border-width: ($height * 0.5) 0 ($height * 0.5) $width;
39
-
40
- @include triangle-common;
41
- @include triangle-right-color($color);
42
- }
43
-
44
- @mixin triangle-bottom-color($color) {
45
- border-color: $color transparent transparent transparent;
46
- }
47
-
48
- @mixin triangle-bottom($height, $width: $height, $color: currentColor) {
49
- border-width: $height ($width * 0.5) 0 ($width * 0.5);
50
-
51
- @include triangle-common;
52
- @include triangle-bottom-color($color);
53
- }
54
-
55
- @mixin triangle-bottom-right-color($color) {
56
- border-color: transparent transparent $color transparent;
57
- }
58
-
59
- @mixin triangle-bottom-right($height, $width: $height, $color: currentColor) {
60
- border-width: 0 0 $height $width;
61
-
62
- @include triangle-common;
63
- @include triangle-bottom-right-color($color);
64
- }
65
-
66
- @mixin oval($width, $height: $width) {
67
- width: $width;
68
- height: $height;
69
- border-radius: #{$width * 0.5} / #{$height * 0.5};
70
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @mixin triangle-common {
6
+ width: 0;
7
+ height: 0;
8
+ border-style: solid;
9
+ }
10
+
11
+ @mixin triangle-left-color($color) {
12
+ border-color: transparent $color transparent transparent;
13
+ }
14
+
15
+ @mixin triangle-left($height, $width: $height, $color: currentColor) {
16
+ border-width: ($height * 0.5) $width ($height * 0.5) 0;
17
+
18
+ @include triangle-common;
19
+ @include triangle-left-color($color);
20
+ }
21
+
22
+ @mixin triangle-top-color($color) {
23
+ border-color: transparent transparent $color transparent;
24
+ }
25
+
26
+ @mixin triangle-top($height, $width: $height, $color: currentColor) {
27
+ border-width: 0 ($width * 0.5) $height ($width * 0.5);
28
+
29
+ @include triangle-common;
30
+ @include triangle-top-color($color);
31
+ }
32
+
33
+ @mixin triangle-right-color($color) {
34
+ border-color: transparent transparent transparent $color;
35
+ }
36
+
37
+ @mixin triangle-right($height, $width: $height, $color: currentColor) {
38
+ border-width: ($height * 0.5) 0 ($height * 0.5) $width;
39
+
40
+ @include triangle-common;
41
+ @include triangle-right-color($color);
42
+ }
43
+
44
+ @mixin triangle-bottom-color($color) {
45
+ border-color: $color transparent transparent transparent;
46
+ }
47
+
48
+ @mixin triangle-bottom($height, $width: $height, $color: currentColor) {
49
+ border-width: $height ($width * 0.5) 0 ($width * 0.5);
50
+
51
+ @include triangle-common;
52
+ @include triangle-bottom-color($color);
53
+ }
54
+
55
+ @mixin triangle-bottom-right-color($color) {
56
+ border-color: transparent transparent $color transparent;
57
+ }
58
+
59
+ @mixin triangle-bottom-right($height, $width: $height, $color: currentColor) {
60
+ border-width: 0 0 $height $width;
61
+
62
+ @include triangle-common;
63
+ @include triangle-bottom-right-color($color);
64
+ }
65
+
66
+ @mixin oval($width, $height: $width) {
67
+ width: $width;
68
+ height: $height;
69
+ border-radius: #{$width * 0.5} / #{$height * 0.5};
70
+ }
@@ -1,51 +1,51 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- // Generates map from array.
7
- // Key of each entry is ($array entry value: result of $fn call).
8
- // $fn is called with specified $args.
9
- // Usage example:
10
- /*
11
- $counter: 0;
12
- @function step($step) {
13
- $counter: $counter + $step !global;
14
- @return $counter;
15
- }
16
- uicore-map-from-array($array, step, 1000);
17
- */
18
- @function uicore-map-from-array($array, $fn, $args...) {
19
- $map: ();
20
- @each $item in $array {
21
- $kvp: (
22
- $item: call($fn, $args...)
23
- );
24
- $map: map-merge($map, $kvp)
25
- }
26
- @return $map;
27
- }
28
-
29
- // Generates map from array.
30
- // Key of each entry is ($array entry value: result of $fn call).
31
- // $fn is called with one argument:
32
- // 1. First entry with $initialArg
33
- // 2. Other entries with previous result of $fn call.
34
- // Usage example:
35
- /*
36
- @function step($counter) {
37
- @return $counter + 1000;
38
- }
39
- uicore-map-from-array-with-result-arg($array, step, 0);
40
- */
41
- @function uicore-map-from-array-with-result-arg($array, $fn, $initialArg) {
42
- $map: ();
43
- $result: $initialArg;
44
- @each $item in $array {
45
- $result: call($fn, $result);
46
- $kvp: ($item: $result);
47
- $map: map-merge($map, $kvp)
48
- }
49
- @return $map;
50
- }
51
-
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // Generates map from array.
7
+ // Key of each entry is ($array entry value: result of $fn call).
8
+ // $fn is called with specified $args.
9
+ // Usage example:
10
+ /*
11
+ $counter: 0;
12
+ @function step($step) {
13
+ $counter: $counter + $step !global;
14
+ @return $counter;
15
+ }
16
+ uicore-map-from-array($array, step, 1000);
17
+ */
18
+ @function uicore-map-from-array($array, $fn, $args...) {
19
+ $map: ();
20
+ @each $item in $array {
21
+ $kvp: (
22
+ $item: call($fn, $args...)
23
+ );
24
+ $map: map-merge($map, $kvp)
25
+ }
26
+ @return $map;
27
+ }
28
+
29
+ // Generates map from array.
30
+ // Key of each entry is ($array entry value: result of $fn call).
31
+ // $fn is called with one argument:
32
+ // 1. First entry with $initialArg
33
+ // 2. Other entries with previous result of $fn call.
34
+ // Usage example:
35
+ /*
36
+ @function step($counter) {
37
+ @return $counter + 1000;
38
+ }
39
+ uicore-map-from-array-with-result-arg($array, step, 0);
40
+ */
41
+ @function uicore-map-from-array-with-result-arg($array, $fn, $initialArg) {
42
+ $map: ();
43
+ $result: $initialArg;
44
+ @each $item in $array {
45
+ $result: call($fn, $result);
46
+ $kvp: ($item: $result);
47
+ $map: map-merge($map, $kvp)
48
+ }
49
+ @return $map;
50
+ }
51
+
@@ -1,13 +1,13 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @function sqrt($x, $iterations: 10) {
6
- $sqr: 1;
7
-
8
- @for $i from 1 through $iterations {
9
- $sqr: ($sqr - ($sqr * $sqr - $x) / (2 * $sqr));
10
- }
11
-
12
- @return $sqr;
13
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @function sqrt($x, $iterations: 10) {
6
+ $sqr: 1;
7
+
8
+ @for $i from 1 through $iterations {
9
+ $sqr: ($sqr - ($sqr * $sqr - $x) / (2 * $sqr));
10
+ }
11
+
12
+ @return $sqr;
13
+ }